Accidental touch prevention method, electronic device and storage medium
By detecting conditions such as motion state and dark light environment in electronic devices, if specific conditions are met, the anti-touch mode is entered to reduce the probability of false touching and power consumption, the problem of high false touching frequency of electronic devices in non-lock screen and bright screen state is solved, and user experience and power management are improved.
Patent Information
- Application Number
- PCT/CN2024/109576
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-15
- Filing Date
- 2024-08-02
- Publication Date
- 2025-05-22
AI Technical Summary
Electronic devices are prone to accidental touching when they are not locked and bright, resulting in increased power consumption and reduced user experience.
By detecting multiple conditions of motion state, dark light environment, top facing gravity and touch events, if at least two conditions are met, the electronic device enters the anti-touch mode, displays the anti-touch interface and reduces the refresh frequency to save power.
It effectively reduces the probability of electronic devices accidentally touching in non-locked and bright screen states, saves power, reduces the impact of accidentally touching on the application, and improves user experience.
Smart Images

Figure CN2024109576_22052025_PF_FP_ABST
Abstract
Description
Method for preventing accidental touch, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on November 15, 2023, with application number 202311533002.2 and invention name “A method for preventing accidental touch, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method for preventing accidental touches, an electronic device, and a storage medium. Background Art
[0003] To enhance the operability of electronic devices, they use touch screens (or touch panels (TP) for short) to interact with users. Users can manipulate the electronic devices to perform various functions by touching the screens with their fingers or styluses.
[0004] However, while electronic devices with touch screens offer improved operability, they are also more prone to accidental touches. For example, if the electronic device is placed in a user's pocket, the user or the pocket may accidentally touch the screen or buttons of the electronic device, causing the screen to light up or even causing applications on the electronic device to be misoperated. This not only increases the power consumption of the electronic device but also significantly reduces the user experience.
[0005] Summary of the Invention
[0006] The present application provides an anti-mistouch method, an electronic device, and a storage medium, which can reduce the probability of mistouch occurring in an electronic device when the screen is not locked and is on, thereby improving the user experience.
[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0008] In a first aspect, a method for preventing accidental touches is provided. The method includes: when an electronic device is in an unlocked and illuminated screen state, the electronic device displays an accidental touch prevention interface in response to a preset accidental touch prevention condition, the accidental touch prevention interface being used to indicate entry into an accidental touch prevention mode. In response to a preset exit condition, the electronic device stops displaying the accidental touch prevention interface.
[0009] In this way, electronic devices can prevent the occurrence of accidental touch events, reduce the probability of accidental touches when the electronic device is not locked and the screen is on, save power of the electronic device, reduce the impact of accidental touches on applications in the electronic device, and enhance the user experience.
[0010] In one possible implementation of the first aspect, the preset accidental touch prevention condition includes: detecting that the electronic device satisfies at least two of the following conditions: being in motion, being in a dimly lit environment, having its top facing the direction of gravity, and a touch event. In this implementation, if the electronic device detects that at least two of the conditions are met, the electronic device satisfies the preset accidental touch prevention condition. In this manner, the electronic device can determine whether the preset accidental touch prevention condition is met by combining multiple conditions.
[0011] In another possible implementation of the first aspect, the electronic device collects acceleration data and further inputs the acceleration data into a preset neural network model to obtain an output result of the preset neural network model. The output result is used to indicate whether the electronic device is in motion. If the output result indicates that the electronic device is in motion, the electronic device detects that the motion state is satisfied.
[0012] In another possible implementation of the first aspect, the electronic device obtains ambient light intensity. If the ambient light intensity is less than a first preset light value, the electronic device detects that the environment is dark.
[0013] In another possible implementation of the first aspect, the electronic device acquires posture information. If it is detected according to the posture information that the orientation of the top or head of the electronic device is consistent with the direction of gravity, the electronic device detects that the top is facing the direction of gravity.
[0014] In another possible implementation of the first aspect, the preset exit condition includes: detecting that the electronic device is in a non-dark light environment, that the top of the electronic device is facing in a direction opposite to the direction of gravity, that the screen-on duration has reached a preset screen-off duration, or that a preset touch event has occurred. In this implementation, if the electronic device detects that any one of the following conditions is met: that the electronic device is in a non-dark light environment, that the top of the electronic device is facing in a direction opposite to the direction of gravity, that the screen-on duration has reached a preset screen-off duration, or that a preset touch event has occurred, the preset exit condition is satisfied.
[0015] In another possible implementation of the first aspect, if the ambient light intensity of the current environment is greater than or equal to a second preset light value, the electronic device detects that the environment satisfies a non-dark light condition.
[0016] In another possible implementation of the first aspect, the electronic device acquires posture information. If it is detected based on the posture information that the orientation of the top or head of the electronic device is consistent with the opposite direction of gravity, the electronic device detects that the top is facing the opposite direction of gravity.
[0017] In another possible implementation of the first aspect, the electronic device obtains a screen-on duration. If the screen-on duration reaches a preset screen-off duration, the electronic device detects that the screen-on duration reaches the preset screen-off duration.
[0018] In another possible implementation of the first aspect, the electronic device locks the refresh frequency to a first refresh frequency in the anti-mistouch mode. The first refresh frequency is a lower refresh frequency. The electronic device may have multiple different refresh frequencies, such as a lower refresh frequency (which may be referred to as the first refresh frequency, 60 Hz) and a higher refresh frequency (which may be referred to as the second refresh frequency, such as 120 Hz). In the anti-mistouch mode, the electronic device locks the refresh frequency of the screen at a lower refresh frequency, which can minimize power consumption in the anti-mistouch mode and improve the battery life of the electronic device.
[0019] In another possible implementation of the first aspect, the touch event includes a large object event, and the large object event satisfies a preset large object condition. The preset large object condition includes: the touch area is greater than a preset touch area threshold; or the first axis of the touch area is greater than a first preset length, and the first axis is greater than the second axis of the touch area. In this implementation, the large object event is a touch event that satisfies the preset large object condition. The large object event has a large touch area, or the axial length of the touch area is long. The electronic device can use the large object event as a condition for entering an anti-accidental touch mode.
[0020] In another possible implementation of the first aspect, if the capacitance value corresponding to the touch event is greater than a preset capacitance value, the large object event is a large object event in a handheld scenario. The large object event in a handheld scenario satisfies the preset large object condition for the handheld scenario. In this implementation, the large object event in the handheld scenario is typically triggered by a user's touch operation. The electronic device can identify the large object event in the handheld scenario based on the preset large object condition for the handheld scenario.
[0021] In another possible implementation of the first aspect, if the capacitance value corresponding to the large object event is less than or equal to a preset capacitance value, then the large object event is a touch event in a non-handheld scenario. The large object event in the non-handheld scenario satisfies the preset large object condition in the non-handheld scenario. In this implementation, the large object event in the non-handheld scenario is typically triggered by a touch of an object such as a pocket or backpack. The electronic device can identify the large object event in the non-handheld scenario through the preset large object condition in the non-handheld scenario. The trigger threshold corresponding to the preset large object condition in the non-handheld scenario is lower than the trigger threshold corresponding to the preset large object condition in the handheld scenario.
[0022] In another possible implementation of the first aspect, the electronic device includes a preset application, and if the preset application is running, the anti-accidental touch function corresponding to the anti-accidental touch mode is turned off. Alternatively, if the preset application is running, the threshold corresponding to the preset anti-accidental touch condition is increased, for example, the first preset illumination value corresponding to a dark light environment is increased, and / or the preset touch area threshold or the first preset length corresponding to a large object event is increased. In this way, if the user is using the electronic device in scenarios such as playing games, watching videos, or typing, the electronic device can increase the difficulty of entering the anti-accidental touch mode, reducing the impact of false triggering of the anti-accidental touch mode on the user experience.
[0023] In a second aspect, the present application provides an electronic device comprising: a screen, a memory, and one or more processors. The memory and the screen are respectively coupled to the processors. The screen is configured to display an anti-mistouch interface. The memory stores computer program code, which includes computer instructions that, when executed by the processor, cause the electronic device to perform the method described in the first aspect and any possible implementation thereof.
[0024] In a third aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any possible implementation thereof.
[0025] In a fourth aspect, the present application provides a computer program product comprising program instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible implementation thereof. For example, the computer may be the electronic device described above.
[0026] In a fifth aspect, the present application provides a chip system, which is applied to an electronic device. The chip system includes an interface circuit and a processor. The interface circuit and the processor are interconnected via a circuit. The interface circuit is configured to receive signals from a memory and send signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device executes the method described in the first aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] FIG1 is a schematic diagram of an electronic device entering an anti-mistouch mode in an always-on display mode according to an embodiment of the present application;
[0028] FIG2 is a flowchart of an example of triggering an anti-accidental touch mode provided in an embodiment of the present application;
[0029] FIG3 is a hardware structure block diagram of a mobile phone 100, an example of an electronic device provided in an embodiment of the present application;
[0030] FIG4 is a software structure block diagram of a mobile phone 100, an example of an electronic device provided in an embodiment of the present application;
[0031] FIG5 is a schematic diagram of a scenario in which a user holds a handheld electronic device while running, according to an embodiment of the present application;
[0032] FIG6 is a schematic diagram of an output result of a preset neural network model provided in an embodiment of the present application;
[0033] FIG7 is a schematic diagram of a touch area provided in an embodiment of the present application;
[0034] FIG8 is a schematic diagram of a touch point on a screen provided by an embodiment of the present application;
[0035] FIG9 is a flow chart of a method for preventing accidental touches provided in an embodiment of the present application;
[0036] FIG10 is a flowchart of Example 1 of an anti-accidental touch method provided in an embodiment of the present application;
[0037] FIG11 is a flow chart of a second example of an anti-accidental touch method provided in an embodiment of the present application;
[0038] FIG12 is a schematic diagram of an anti-mistouch interface provided in an embodiment of the present application;
[0039] FIG13 is a schematic diagram of an anti-mistouch function setting page provided in an embodiment of the present application;
[0040] FIG14 is a flowchart of exiting the anti-mistouch mode provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] Electronic devices have advantages such as portability and are usually carried by users. For example, users can carry electronic devices by hand-held means or by placing them in pockets, backpacks, etc. At present, the screens of electronic devices are usually touch screens (or called touch screens). Electronic devices receive user touch operations through touch screens, respond according to user operations, and provide services to users. In the process of users carrying electronic devices, the electronic devices may be accidentally touched. An accidental touch can be understood as the electronic device receiving a touch signal when the user has no intention to operate the electronic device. The touch signal may be generated by the user's touch operation, or it may be generated by other objects touching the screen of the electronic device.
[0042] For example, if an electronic device is placed in a pocket while a user's hand is also in the same pocket, the user's hand may come into contact with the screen of the electronic device, causing the screen to light up or unlock. This accidental touch not only consumes the battery of the electronic device but may also cause applications on the electronic device to be misoperated, seriously affecting the user experience.
[0043] In order to reduce the occurrence of accidental touches, some anti-accidental touch solutions for electronic devices are introduced below.
[0044] In some implementations, when the electronic device is in a locked screen state, the electronic device can determine whether to enter an anti-mistouch mode based on the posture information of the electronic device, the ambient light of the environment, whether there is an object approaching, etc.
[0045] Among them, the lock screen state may refer to the state in which the screen or interface of the electronic device is in a locked state. In the lock screen state, the electronic device needs to receive a password or detect the user's face, fingerprint, etc. before it responds to user operations. In the unlocked screen state, the electronic device can respond to user operations without receiving a password or detecting the user's face, fingerprint, etc. In the lock screen state, depending on whether the screen is lit, it can also be divided into a lock screen and light screen state and a lock screen and off screen state. The lock screen and light screen state may refer to the lock screen state in which the screen or interface of the electronic device is lit. The lock screen and off screen state (also referred to as the lock screen and off screen state) may refer to the lock screen state in which the screen or interface of the electronic device is off. In the unlocked screen state, depending on whether the screen is lit, it can also be divided into a non-lock screen and light screen state and a non-lock screen and off screen state.
[0046] The anti-mistouch mode may refer to a mode in which the electronic device does not respond to touch events other than preset touch events.
[0047] The following is an example to introduce the anti-false touch solution of electronic devices. In this example, the electronic device turns on the always-on display (AOD) function. When the electronic device turns on the always-on display function, when the electronic device is in the locked screen and off state, the screen is partially lit to display time, battery level, reminder messages and other information in the lit area of the screen, so that the user can intuitively see the required information. As shown in Figure 1, the electronic device displays time, date and battery level in part of the screen, and the other areas of the screen are off. The electronic device can determine whether to enter the anti-false touch mode based on the sensor data obtained by the sensor. For example, the proximity sensor is used to determine whether there is an object approaching the interrupt, such as judging whether there is an object approaching the electronic device through the reflection data (such as light reflection data) collected by the proximity sensor (proximity light judgment). If there is an object approaching the electronic device, the electronic device enters the anti-false touch mode. When entering the anti-false touch mode, the electronic device controls the AOD to turn off, and all areas of the screen of the electronic device are off.
[0048] In another example, as shown in Figure 2, when the electronic device is in the locked and screen-on state, the posture information obtained by the acceleration sensor and the gyroscope sensor can be used to determine whether the electronic device is in an upside-down posture (upside-down posture determination), and the ambient light data collected by the ambient light sensor can be used to determine whether the electronic device is in a low-light environment (ambient light determination). If the electronic device is in an upside-down posture and in a low-light environment, the electronic device enters an anti-inadvertent touch mode and turns off the screen.
[0049] Based on the aforementioned anti-accidental touch solutions in the locked screen state, electronic devices can reduce accidental touches to a certain extent. However, these anti-accidental touch solutions are all provided when the electronic device is in the locked screen state. Accidental touches may occur in electronic devices even when the screen is unlocked, causing the electronic device to remain in the bright screen state for a long time. This not only consumes the electronic device's power, affects the normal operation of software programs on the electronic device, or triggers the startup of unactivated software programs, but may also lead to information leakage, seriously affecting the user experience.
[0050] For example, when an electronic device is in an unlocked and bright screen state, the user forgets to lock the screen and puts the electronic device in a pocket. Since the pocket can easily come into contact with the screen of the electronic device, the electronic device in the pocket is prone to accidental touches, causing applications in the electronic device to be deleted, moved, or opened. For another example, when the user puts the electronic device into the pocket, the user accidentally touches the fingerprint unlocking area on the side of the electronic device, causing the electronic device to be unlocked. After being placed in the pocket, the electronic device is in an unlocked and bright screen state. Since the pocket comes into contact with the screen of the electronic device, the electronic device is accidentally touched in the pocket. The electronic device may make multiple calls without the user's knowledge. For another example, the electronic device is mistakenly locked through face recognition and then moved by the user. Since the user's hand easily touches the screen of the electronic device, the electronic device is prone to accidental touches. The electronic device may send messages to other users through chat software.
[0051] It can be seen that electronic devices are also prone to accidental touches when they are in a non-locked screen and bright screen state. Moreover, electronic devices do not have an anti-accidental touch solution when they are in a non-locked screen and bright screen state. In view of this, the method provided in the embodiment of the present application can perform anti-accidental touch detection on electronic devices through preset anti-accidental touch conditions when the electronic device is in a non-locked screen and bright screen state. If it is detected that the electronic device meets the preset anti-accidental touch conditions, it indicates that the electronic device is likely to be in a non-locked screen and bright screen state due to reasons such as the user forgetting to lock the screen or the user accidentally unlocking the electronic device. In this case, the electronic device enters the anti-accidental touch mode, displays an anti-accidental touch interface on the screen, and reminds the user that the electronic device enters the anti-accidental touch mode through the anti-accidental touch interface. In the anti-accidental touch mode, the electronic device does not respond to other touch events other than the preset touch events. After the electronic device enters the anti-accidental touch mode, if it detects that the preset exit condition is met, such as detecting a preset touch event in which the user indicates to turn off the anti-accidental touch mode, the anti-accidental touch interface stops being displayed. In this way, electronic devices can prevent the occurrence of accidental touch events, reduce the probability of accidental touches when the electronic device is not locked and the screen is on, save power of the electronic device, reduce the impact of accidental touches on applications in the electronic device, and enhance the user experience.
[0052] For example, the electronic devices described in the embodiments of the present application may be mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, media players, wearable devices, and the like. The embodiments of the present application do not impose any particular restrictions on the specific form of the electronic devices.
[0053] In the embodiment of the present application, the electronic device is a mobile phone 100 as an example, and the hardware structure of the electronic device is described through the mobile phone 100. As shown in Figure 3, the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195.
[0054] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), a driver processor, etc. Different processing units may be independent devices or integrated into one or more processors. The processor 110 may be the nerve center and command center of the mobile phone 100. The processor 110 may generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution.
[0055] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0056] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0057] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area.
[0058] The wireless communication function of the mobile phone 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. In some embodiments, antenna 1 of the mobile phone 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
[0059] The sensor module 180 may include sensors such as a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a Hall sensor, a touch sensor, an ambient light sensor, and a proximity sensor. The mobile phone 100 may collect various sensor data through the sensor module 180 .
[0060] The gyroscope sensor can be used to determine the posture information of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., the x, y, and z axes of the mobile phone coordinate system) can be determined by the gyroscope sensor. The gyroscope sensor can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the mobile phone 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the mobile phone 100 through reverse movement to achieve anti-shake. The gyroscope sensor can also be used for navigation and somatosensory game scenes.
[0061] The accelerometer can detect the magnitude of the phone's acceleration in all directions (typically three axes). When the phone is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0062] In some implementations, the gyroscope sensor and the acceleration sensor can be integrated into one sensor.
[0063] Mobile phone 100 can use the three-axis acceleration detected by the accelerometer to determine whether the user is in motion (or referred to as a motion state, which may include walking and running). For example, if a user is carrying mobile phone 100, mobile phone 100 can use the three-axis acceleration obtained by the accelerometer to identify whether the user holding mobile phone 100 is stationary, walking, or running. The frequency of acceleration data collected by mobile phone 100 through the accelerometer can reach up to 100 Hz.
[0064] The mobile phone 100 can also identify the head-down posture of the mobile phone 100 through the three-axis angular velocity obtained by the gyroscope sensor and the three-axis acceleration obtained by the accelerometer sensor. For example, the mobile phone 100 can perform six-axis fusion (such as using a six-axis fusion algorithm) on the three-axis angular velocity and the three-axis acceleration to determine the posture information of the mobile phone 100. The posture information includes the pitch angle (pitch), the roll angle (roll), and the yaw angle (yaw). Furthermore, based on the posture information, the mobile phone 100 can determine whether the top of the mobile phone 100 is facing the direction of gravity, that is, identify the head-down posture of the mobile phone 100.
[0065] The proximity sensor may be an optical proximity sensor, such as one including a light-emitting diode (LED) and a photodetector (e.g., a photodiode). The LED may be an infrared LED. The mobile phone 100 emits infrared light through the LED. The mobile phone 100 uses the photodetector to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, the mobile phone 100 may determine that an object is near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 may determine that no object is near the mobile phone 100.
[0066] Proximity sensors can also be provided in the receiver 170B (or earpiece) and microphone 170C. For example, the receiver 170B is provided with an ultrasonic transmitter, and the microphone 170C is provided with an ultrasonic receiver. The mobile phone 100 transmits ultrasonic pulses through the receiver 170B. The ultrasonic pulses are reflected by an object. When the microphone 170C of the mobile phone 100 detects the reflected ultrasonic pulses, it can determine that there is an object near the mobile phone 100. If insufficient reflected ultrasonic pulses are detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.
[0067] The phone 100 can use the proximity sensor to detect when the user holds the phone 100 close to their ear to make a call, so that the screen can be automatically turned off to save power. The proximity sensor can also be used to automatically unlock and lock the screen in holster mode, pocket mode, etc., and can also be used to detect accidental touches.
[0068] The ambient light sensor is used to sense ambient light brightness. Mobile phone 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light brightness. The ambient light sensor can also be used to automatically adjust white balance when taking photos. The ambient light sensor can also be used to identify low-light environments. For example, if the ambient light intensity detected by the ambient light sensor is less than a first preset light value, the phone can be considered to be in a low-light environment. The ambient light sensor can also work with sensors such as proximity sensors and accelerometers to detect whether the phone 100 is in a pocket to prevent accidental touches.
[0069] A touch sensor, also known as a "touch panel," can be located within or on the display screen 194. The touch sensor and display screen 194 together form a touch screen, also known as a "touch screen" or "touch-sensitive screen." The touch sensor is used to detect touch events applied to or near the touch sensor. The touch sensor can transmit the detected touch events to the application processor to determine the type of touch event. Mobile phone 100 can provide visual output related to the touch event through display screen 194.
[0070] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0071] It is to be understood that the interface connection relationship between the modules illustrated in this embodiment is merely a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also include more or fewer modules than those provided in the above embodiments, and different interface connection methods or a combination of multiple interface connection methods may be used between the modules. The hardware structure of the electronic device provided in the embodiments of the present application may also refer to the hardware structure of the mobile phone 100 shown in the figure. The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure.
[0072] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system of the layered architecture and the electronic device being the mobile phone 100 are taken as an example to illustrate the software structure of the electronic device.
[0073] Figure 4 is a block diagram of the software structure of the mobile phone 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, an Android runtime (Android runtime) and system libraries, a hardware abstraction layer (HAL), and a kernel layer.
[0074] The application layer may include a series of application packages. For example, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video and other applications, which are not limited in this embodiment of the present application.
[0075] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, and sensor manager, etc., but the embodiments of the present application do not impose any restrictions on this.
[0076] The Android runtime consists of core libraries and a virtual machine (VM). The Android runtime is responsible for scheduling and management of the Android system. The core libraries consist of two parts: one containing the Java language's callable functions and the other the Android core library. The application layer and the application framework layer run in the VM. The VM executes the Java files in the application layer and application framework layer as binary files. The VM is responsible for performing functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0077] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0078] The HAL layer encapsulates the Linux kernel driver, provides an interface to the upper layer, and shields the implementation details of the underlying hardware. For example, the HAL layer may include a camera HAL module, a Wi-Fi HAL module, a sensor HAL module, a touch HAL module, and so on.
[0079] The kernel layer is the layer between hardware and software. It provides drivers and system services. Drivers include at least display drivers, camera drivers, audio drivers, sensor drivers, and touch drivers.
[0080] The following uses the application processor of the mobile phone 100 having the above-mentioned layered architecture as an example to illustrate the workflow of the software and hardware of the mobile phone 100.
[0081] In this example, when the mobile phone 100 is unlocked and the screen is on, it collects sensor data (such as acceleration data, angular velocity data, light intensity data, and other sensor data) in real time through sensors such as a gyroscope sensor, an accelerometer, and an ambient light sensor. The mobile phone 100 may also include a sensor hub. The sensor hub is used to process sensor data from sensors such as the gyroscope sensor, the accelerometer, and the ambient light sensor. The sensor hub detects an anti-mistouch event based on the sensor data. An anti-mistouch event is a trigger event for the anti-mistouch mode. For example, the sensor hub detects an anti-mistouch event corresponding to the mobile phone 100 being in a moving state based on acceleration data. The sensor hub detects an anti-mistouch event corresponding to the mobile phone 100 being in an upside-down position based on acceleration data and angular velocity data. The sensor hub detects an anti-mistouch event corresponding to the mobile phone 100 being in a low-light environment based on light intensity data. If the sensor hub detects any of these anti-mistouch events, it reports the anti-mistouch event to the application processor. The sensor driver of the application processor's kernel layer reports the anti-false touch event to the sensor manager in the application framework layer through the sensor HAL module. The mobile phone 100 can also collect touch data through the touch sensor. If the touch sensor collects touch data, it reports the anti-false touch event corresponding to the touch data to the application processor of the mobile phone 100. The touch driver of the application processor's kernel layer reports the anti-false touch event corresponding to the touch data to the sensor manager in the application framework layer through the touch HAL module. The sensor manager confirms that the mobile phone 100 meets the preset anti-false touch conditions based on the anti-false touch events reported by each sensor. The sensor manager can instruct the notification manager to generate an anti-false touch interface.
[0082] It is understood that the mobile phone 100 can also implement the reporting of anti-accidental touch events and the response to anti-accidental touch events through other modes. For example, an anti-accidental touch module can be set in the application architecture layer, and the mobile phone 100 receives the anti-accidental touch events reported by each sensor through the anti-accidental touch module, and determines whether to enter the anti-accidental touch mode based on the anti-accidental touch events reported by each sensor. The embodiments of this application are only illustrative of the reporting process of the anti-accidental touch event.
[0083] In an embodiment of the present application, the electronic device can perform anti-accidental touch detection on the electronic device by using preset anti-accidental touch conditions when the screen is not locked and the screen is on, so as to prevent the occurrence of accidental touch events. The preset anti-accidental touch conditions can be set according to actual application scenarios or needs.
[0084] In some embodiments, the preset accidental touch prevention conditions include: detecting that the electronic device satisfies at least two of the following conditions: motion, low-light conditions, top facing the direction of gravity, and a touch event. The electronic device may determine whether at least two of the conditions of motion (synchronous motion of the electronic device and the user holding the electronic device), low-light conditions, top facing the direction of gravity, and a touch event are met. If the electronic device satisfies at least two of these conditions, the preset accidental touch prevention conditions are met.
[0085] In some implementations, the electronic device can determine whether a motion state, a dark environment, a top facing the direction of gravity, and a touch event are satisfied. If the electronic device meets at least two of these conditions, the electronic device meets the preset false touch prevention condition.
[0086] In other implementations, the electronic device may only need to determine whether at least two of the preset accidental touch prevention conditions are met. For example, if the preset accidental touch prevention conditions include a motion state and a touch event, the electronic device may only need to determine whether the motion state and touch event conditions are met. If the electronic device meets these two conditions, the electronic device meets the preset accidental touch prevention conditions.
[0087] The above-mentioned motion state can be understood as a non-static state. If the electronic device is in motion, it indicates that the user carrying the electronic device is in motion. As shown in Figure 5, in a scenario where a user is walking or running with an electronic device in hand, the electronic device moves with the user's movement. When the user holding the electronic device is in a running state, the user is less likely to use the electronic device. If the electronic device detects a touch event, it may be a touch event triggered by an accidental touch. Therefore, the electronic device being in motion can be used as one of the preset anti-accidental touch conditions.
[0088] Exemplarily, the electronic device can determine whether it is in motion by using acceleration data collected by an acceleration sensor. For example, the electronic device collects three-axis acceleration data in real time through an acceleration sensor. The three-axis acceleration data is acceleration data of the x-axis, y-axis, and z-axis of the mobile phone coordinate system. The mobile phone coordinate system can be a world coordinate system or a self-defined coordinate system. Furthermore, the electronic device inputs the three-axis acceleration data into a trained preset neural network model to obtain an output result of the preset neural network model. The preset neural network model is used to determine whether the electronic device is in motion based on the acceleration data. The output result of the preset neural network model indicates whether the electronic device is in motion.
[0089] Optionally, the output result may include either of two state values. If the output result is a first state value, such as "1," it indicates that the electronic device is in motion. If the output result is a second state value, such as "0," it indicates that the electronic device is stationary. Alternatively, if the output result is a first state value, it indicates that the electronic device is stationary, and if the output result is a second state value, it indicates that the electronic device is in motion, without limitation.
[0090] Optionally, the motion state can be categorized into walking and running states based on movement speed. The electronic device is considered to be in motion if the user holding the electronic device is in a walking or running state. In this case, as shown in Figure 6 , the output result of the preset neural network model may include at least one of walking state information and running state information. The walking state information indicates whether the user holding the electronic device is in a walking state. If the output result includes walking state information and the walking state information is first state information, such as "1," the user holding the electronic device is in a walking state. If the walking state information is second state information, such as "0," the user holding the electronic device is not in a walking state. The running state information indicates whether the user holding the electronic device is in a running state. If the output result includes running state information and the running state information is third state information, such as "1," the user holding the electronic device is in a running state. If the running state information is fourth state information, such as "0," the user holding the electronic device is not in a running state. The preset neural network model has powerful recognition capabilities and a high recognition accuracy. For example, the preset neural network model can achieve an accuracy rate of over 95% for identifying the running state and 100% for identifying the walking state.
[0091] It should be understood that the embodiments of the present application merely illustrate the process of determining whether an electronic device is in motion. Of course, other methods may also be used to determine whether an electronic device is in motion. For example, the electronic device may obtain the electronic device's moving speed and determine that the electronic device is in motion if the moving speed is greater than a preset speed threshold.
[0092] The above-mentioned dark light environment can be understood as an environment where the ambient light intensity is less than the first preset light value, that is, an environment with low light intensity. The first preset light value can be set according to the actual application scenario or needs. For example, the first preset light value can be set to 30 lux. If the electronic device is in a dark light environment, the electronic device may be in a pocket or backpack. In this case, the user is less likely to use the electronic device. If the electronic device detects a touch event, it may be a false touch. Therefore, the electronic device in a dark light environment can be used as one of the preset anti-false touch conditions.
[0093] Exemplarily, the electronic device can determine whether the environment in which the electronic device is located is a dark light environment through the ambient light data collected by the ambient light sensor. For example, the electronic device determines the ambient light intensity through the ambient light data collected in real time by the ambient light sensor. Furthermore, the electronic device compares the ambient light intensity with a first preset light value to determine whether the ambient light intensity is less than the first preset light value. If the ambient light intensity is less than the first preset light value, the electronic device confirms that the environment is a dark light environment. If the ambient light intensity is greater than or equal to the second preset light value, the electronic device confirms that the environment is a non-dark light environment. The second preset light value can be set according to the actual application scenario or needs. For example, the second preset light value can be set to 50 lux.
[0094] The above-mentioned top facing the direction of gravity can be understood as the top of the electronic device or the head facing downward, or referred to as the head-down posture. When the user uses the electronic device in portrait mode, the top of the electronic device or the head is facing opposite to the direction of gravity, or referred to as the head-up posture. If the top of the electronic device faces the direction of gravity, the user is less likely to use the electronic device. If the electronic device detects a touch event, it may be a false touch. Therefore, the top of the electronic device facing the direction of gravity can be used as one of the preset anti-false touch conditions.
[0095] For example, the electronic device can determine the posture information of the electronic device through the angular velocity data collected by the gyroscope sensor and the acceleration data collected by the acceleration sensor. The electronic device can determine whether the orientation of the top or head of the electronic device is consistent with the direction of gravity (i.e., determine whether the electronic device is in a head-down posture) based on the posture information. If the orientation of the top or head of the electronic device is consistent with the direction of gravity, it can be determined that the electronic device is in a head-down posture. If the orientation of the top or head of the electronic device is inconsistent with the direction of gravity, it can be determined that the electronic device is in a non-head-down posture.
[0096] It is understandable that the orientation of the top of the electronic device may be the direction in which the geometric center of the screen of the electronic device points to the top center of the screen. The orientation of the top may be consistent with the direction of gravity, and the angle between the orientation of the top and the direction of gravity may be less than a preset angle threshold. The preset angle threshold may be set according to the actual application scenario or requirements. For example, the preset angle threshold may be set to a value such as 60° or 90°. If the angle between the orientation of the top of the electronic device and the direction of gravity is less than the preset angle threshold, the orientation of the top of the electronic device is consistent with the direction of gravity, or it can be considered that the top of the electronic device is facing the direction of gravity. If the angle between the orientation of the top of the electronic device and the direction of gravity is greater than or equal to the preset angle threshold, the orientation of the top of the electronic device is inconsistent with the direction of gravity, or it can be considered that the top of the electronic device is facing the opposite direction of gravity.
[0097] The above-mentioned touch event can be understood as an event triggered by a touch operation or touch received by the electronic device on the touch screen. If the electronic device detects a touch event, it may be a false touch. The electronic device detecting a touch event can be used as a condition in the preset false touch prevention conditions.
[0098] In some implementations, a touch event is triggered by a large object, referred to as a large object event. A large object event is a touch event involving a relatively large touch area. If an electronic device detects a large object event, it is likely that the electronic device was placed in a pocket, backpack, or similar device, causing the touch event to be triggered. In this case, the touch event detected by the electronic device is likely caused by an accidental touch.
[0099] Optionally, the large object event may satisfy a preset large object condition, which may include at least one of a touch area being greater than a preset touch area threshold and a first axis of the touch area being greater than a first preset length.
[0100] If the touch area corresponding to the touch event is greater than the preset touch area threshold, it indicates that the touch area of the touch event is large. The preset touch area threshold can be set according to actual application scenarios or requirements. For example, the preset touch area threshold can be set to a value such as 400 square millimeters.
[0101] The first axis of the touch area is greater than the second axis of the touch area. For example, the first axis of the touch area may be the longest axis of the touch area, and the second axis of the touch area may be the shortest axis of the touch area. As shown in Figure 7, the touch area of the touch operation received by the electronic device on the screen is an elliptical area. The first axis of the elliptical area is the long axis of the elliptical area. The second axis of the elliptical area is the short axis of the elliptical area. The first axis of the touch area is greater than the first preset length, indicating that the axial direction of the touch area is longer, that is, the touch area is larger. The first preset length can be set according to the actual application scenario or requirements. For example, the first preset length can be set to a value such as 30 mm.
[0102] For example, if the electronic device detects a touch event, it may compare the touch area of the touch region corresponding to the touch event with a preset touch area threshold. If the touch area corresponding to the touch event is greater than the preset touch area threshold, the touch event may be considered a large object event. Alternatively, the electronic device may compare the first axis of the touch region corresponding to the touch event with a first preset length. If the first axis of the touch region corresponding to the touch event is greater than the first preset length, the touch event may be considered a large object event.
[0103] In other examples, the above-mentioned preset large object condition may also include that the second axis of the touch area is greater than a second preset length. For example, if the electronic device detects a touch event, it can compare the first axis of the touch area corresponding to the touch event with the first preset length, and compare the second axis of the touch area with the second preset length. If the first axis of the touch area corresponding to the touch event is greater than the first preset length, and the second axis is greater than the second preset length, the touch event can be considered to be a large object event. The second preset length can be set according to the actual application scenario or requirements. For example, the second preset length can be set to a value such as 12 mm.
[0104] In other implementations, the touch events detected by the electronic device may be touch events in a handheld scenario or touch events in a non-handheld scenario. A touch event in a handheld scenario is a touch event detected by the electronic device when the user is holding the electronic device. Typically, a touch event in a handheld scenario is triggered by a touch operation by the user. A touch event in a non-handheld scenario is a touch event detected when the electronic device is not held by the user. For example, a touch event is detected when the electronic device is placed in a pocket, backpack, or the like. Typically, a touch event in a non-handheld scenario is triggered by an object contacting the screen. Because the human body and objects such as pockets and backpacks differ in terms of contact capacitance and contact area size on the screen, different trigger thresholds can be set for large object events in handheld scenarios and large object events in non-handheld scenarios. The trigger threshold is a preset touch area threshold set for the touch area in the preset large object condition satisfied by the large object event, or a first preset length set for the first axis of the touch area.
[0105] Exemplarily, after detecting a touch event, the electronic device may determine whether the capacitance value (such as the maximum capacitance value) corresponding to the touch event is greater than a preset capacitance value. If the capacitance value corresponding to the touch event is greater than the preset capacitance value, it is determined that the touch event is a touch event in a handheld scenario. Further, the electronic device determines whether the touch event meets the preset large object condition in the handheld scenario. If the touch event meets the preset large object condition in the handheld scenario, it is surfaced that the touch event is a large object event in the handheld scenario. If the capacitance value corresponding to the touch event is less than or equal to the preset capacitance value, it is determined that the touch event is a touch event in a non-handheld scenario. Further, the electronic device determines whether the touch event meets the preset large object condition in the non-handheld scenario. If the touch event meets the preset large object condition in the non-handheld scenario, it is surfaced that the touch event is a large object event in the non-handheld scenario.
[0106] Since the contact capacitance of the human body on the screen in a handheld scenario is generally larger than the contact capacitance of materials such as pockets on the screen, it is possible to distinguish between touch events in a handheld scenario and touch events in a non-handheld scenario by setting an appropriate preset capacitance value. For example, the preset capacitance value can be set to 2000. Accordingly, the trigger threshold of the large object event in the handheld scenario may also be greater than the trigger threshold of the large object event in the non-handheld scenario. For example, the preset large object condition in the handheld scenario is that the touch area corresponding to the touch event is greater than 900 square millimeters (i.e., an example of the preset touch area threshold in the handheld scenario), or the first axis of the touch area corresponding to the touch event is greater than 60 millimeters (i.e., an example of the first preset length in the handheld scenario). The preset large object condition in the non-handheld scenario is that the touch area corresponding to the touch event is greater than 400 square millimeters (i.e., an example of the preset touch area threshold in the non-handheld scenario), or the first axis of the touch area corresponding to the touch event is greater than 30 millimeters (i.e., an example of the first preset length in the non-handheld scenario).
[0107] In the embodiment of the present application, the screen of the electronic device is a capacitive touch screen. As shown in FIG8 , the screen of the electronic device may include multiple evenly distributed touch points. Each touch point may be a square with a side length of 4 mm. Each touch point has a corresponding capacitance value. When the screen is touched, the capacitance value of the touch point on the screen changes. Specifically, the capacitance value of the touched touch point on the screen increases. The electronic device can detect a touch event based on the capacitance value of each touch point on the screen. Taking the above-mentioned preset capacitance value of 2000 as an example, the maximum capacitance value among the capacitance values of the touch points in the figure is 2633, which is greater than the preset capacitance value, indicating that the touch event detected by the electronic device is a touch event in a handheld scenario. Furthermore, the electronic device determines an area formed by consecutive touch points with capacitance values greater than the preset capacitance value among the touch points, and this area is the touch area corresponding to the touch event. The electronic device can calculate the area of the touch area or the major axis length, minor axis length, etc. of the touch area based on the side length of each touch point.
[0108] The above capacitance value may be a normalized capacitance value, which is a dimensionless (i.e., unitless) physical quantity. When the touch point of the screen is well grounded, the normalized capacitance value is 3000. The normalized capacitance value can reduce the impact of different touch sensor designs on the capacitance value obtained by the electronic device. Through normalization, the electronic device can normalize the capacitance value obtained at the touch point to a certain range, such as less than or equal to 3000.
[0109] It should be understood that while the embodiments of this application use a capacitive touch screen as an example to describe the large object event recognition method, the screen of an electronic device is not limited to a capacitive touch screen. The screen of an electronic device may also be a resistive touch screen or other type of touch screen. The embodiments of this application do not limit the type of touch screen.
[0110] Any one of the above-mentioned preset anti-false touch conditions corresponds to a situation where the electronic device may be accidentally touched. The combination of multiple conditions in the above-mentioned preset anti-false touch conditions can reduce the possibility of false touches and improve the accuracy of preventing false touch events. For example, the electronic device is in a dark environment and is in an upside-down posture. In this case, the electronic device is likely to be in a pocket, backpack, or other scene where false touches are likely to occur. For another example, the electronic device detects a touch event when it is in motion, in an upside-down posture, and in a dark environment. In this case, the electronic device is likely to be in a pocket, backpack, or other scene where false touches are likely to occur, and the touch event detected by the electronic device is likely to be a touch event corresponding to a false touch.
[0111] In the following embodiments, the electronic device is a mobile phone as an example to introduce the method provided by the embodiment of the present application. As shown in Figure 9, the method provided by the embodiment of the present application may include:
[0112] S901, the phone is unlocked and the screen is on.
[0113] Your phone has a lock screen feature. When the lock screen feature is enabled, the phone can be unlocked by the user, such as through fingerprint or facial recognition. After unlocking, the phone is unlocked and the screen is on. If the lock screen feature is disabled, the screen can turn on when a user action is taken, and remain on for a period of time if no user action is taken.
[0114] S902: The mobile phone determines whether a preset accidental touch prevention condition is met.
[0115] When the screen is unlocked and on, the phone collects sensor data in real time through multiple internal sensors. Furthermore, the phone uses this collected sensor data to determine whether preset conditions for accidental touch prevention are met. If the phone detects at least two of the following: motion, low-light conditions, the top of the phone facing the direction of gravity, and a touch event, the phone meets the preset conditions for accidental touch prevention.
[0116] If the mobile phone meets the preset accidental touch prevention condition, execute S903.
[0117] If the mobile phone does not meet the preset anti-accidental touch conditions, this step can be repeated. For example, the mobile phone can determine whether the preset anti-accidental touch conditions are met in a preset period (such as 2 seconds, 3 seconds, etc.).
[0118] In some implementations, the mobile phone can separately determine whether any one of the following conditions is met: motion state, low-light environment, top facing the direction of gravity, and touch event. If the mobile phone detects that at least two of the conditions are met, namely, motion state, low-light environment, top facing the direction of gravity, and touch event, the mobile phone meets the preset accidental touch prevention conditions. If the mobile phone meets the preset accidental touch prevention conditions, it can be understood that the mobile phone meets all the conditions in the preset accidental touch prevention conditions. If the mobile phone does not meet the preset accidental touch prevention conditions, it can be understood that the mobile phone does not meet one or more of the preset accidental touch prevention conditions.
[0119] The process of the mobile phone determining whether any of the conditions are met can be found above and will not be repeated here.
[0120] S903, the phone displays the anti-mistouch interface.
[0121] If the phone meets the preset accidental touch prevention conditions, it enters accidental touch prevention mode and displays the accidental touch prevention interface on the screen. The accidental touch prevention interface indicates the entry into accidental touch prevention mode. In accidental touch prevention mode, the phone does not respond to touch events other than the preset ones. Even if the phone screen is touched, it will not respond. This reduces the impact of accidental touches on the phone and the user in non-locked and bright screen scenarios.
[0122] In one example, a touch event is any touch event that can be sensed by a mobile phone. Such as a touch event with a smaller touch area whose touch area is greater than zero and smaller than the above-mentioned preset touch area threshold (which can be called a normal touch event). As shown in Figure 10, when the mobile phone is in a non-locked and bright screen state, it can respectively determine whether the mobile phone is in motion, whether the mobile phone is in a dark environment, whether the top of the mobile phone is facing the direction of gravity (i.e., head-down posture), and whether a touch event is detected. If the mobile phone detects that at least two of the multiple items of motion state, dark light environment, head-down posture and touch event are met at the same time, the mobile phone confirms that the preset anti-mistouch conditions are met, enters the anti-mistouch mode, and displays the anti-mistouch interface on the screen.
[0123] In another example, as shown in Figure 11, when the phone is in an unlocked and bright screen state, the following conditions can be determined: whether the phone is in motion, whether the phone is in a low-light environment, whether the top of the phone is facing the direction of gravity (i.e., head-down posture), and whether a large object event with a large touch area is detected. If the phone meets at least two of the following conditions: in motion, in a low-light environment, head-down posture, and a large object event, the phone confirms that the preset accidental touch prevention conditions are met, enters the accidental touch prevention mode, and displays the accidental touch prevention interface on the screen.
[0124] The preset touch event is used to indicate exiting the anti-mistouch mode. The preset touch event can be triggered by a preset operation. For example, the preset operation can be a double-click operation, multiple swipe operations, or a long press of a side button.
[0125] In some implementations, while displaying the anti-mistouch interface, the phone may also emit a prompt sound, vibrate, or other prompts to alert the user of an accidental touch. In some implementations, the anti-mistouch interface may be a transparent interface. For example, the transparency of the anti-mistouch interface may be 50%, 70%, or the like. The anti-mistouch interface may be overlaid on top of the bright screen interface. The bright screen interface is the interface displayed on the phone screen when the phone is not locked and in the bright screen state, before entering the anti-mistouch mode. If the phone meets the preset anti-mistouch conditions, the anti-mistouch interface will pop up on the bright screen interface displayed on the screen.
[0126] Exemplarily, when the mobile phone detects that it is in a dark environment, upside down, and detects a large object event, the anti-mistouch interface displayed on the screen is shown in Figure 12. In the example, the mobile phone is in an upside-down posture, and the anti-mistouch interface on the mobile phone screen is also in an inverted state with the upside-down posture of the mobile phone. The anti-mistouch interface prompts the user to enter the anti-mistouch mode. In addition to prompting the user to enter the anti-mistouch mode, the anti-mistouch interface also includes a prompt message "Do not block the top of the screen" and a prompt message "Slide twice to exit the anti-mistouch mode" to prompt the user how to exit the anti-mistouch mode. Among them, the two-slide operation is the preset operation that triggers the preset touch event.
[0127] In an embodiment of the present application, when the screen is not locked and the screen is on, the premise for the mobile phone to enter the anti-mistouch mode is that the mobile phone has turned on the anti-mistouch function corresponding to the anti-mistouch mode under the control of the user. The options of the anti-mistouch function corresponding to the anti-mistouch mode can be set uniformly with other anti-mistouch functions. For example, the anti-mistouch function corresponding to the anti-mistouch mode can be set with the same options as the anti-mistouch function in the lock screen state. Alternatively, the anti-mistouch function corresponding to the anti-mistouch mode can be set as an independent option. Of course, in some implementations, the anti-mistouch function corresponding to the anti-mistouch mode is solidified in the mobile phone and does not require user instructions to turn it on.
[0128] For example, as shown in Figure 13, the phone's settings page provides accessibility features such as gesture control, scheduled power on / off, and non-lock screen accidental touch prevention mode. The phone can be controlled by the user to enable the accidental touch prevention feature through the option corresponding to the non-lock screen accidental touch prevention mode. After enabling the accidental touch prevention feature, if the phone meets the preset accidental touch prevention conditions when the screen is unlocked and on, the phone enters the accidental touch prevention mode.
[0129] In an embodiment of the present application, when the mobile phone enters the anti-accidental touch mode, the screen refresh rate can also be locked to a first refresh rate. The first refresh rate can be the lowest refresh rate of the screen, such as 60 Hz. In this way, when the mobile phone enters the anti-accidental touch mode, the screen refresh rate will not be excessively increased due to accidental touches on the screen. Without affecting the screen display effect, the power consumption in the anti-accidental touch mode is minimized. For example, the optimized power consumption of the mobile phone can be reduced to approximately 60 mAh to 70 mAh.
[0130] It is understood that the refresh rate of a mobile phone screen can have multiple levels. For example, taking a mobile phone with two refresh rates (e.g., a first refresh rate and a second refresh rate), the refresh rate of the mobile phone can be the first refresh rate or the second refresh rate. The first refresh rate is lower than the second refresh rate. The second refresh rate can be the highest refresh rate of the mobile phone screen, such as 120 Hz.
[0131] In some implementations, if the mobile phone is running a preset application, such as a game application, video application, or office software, the mobile phone can temporarily turn off the anti-false touch function corresponding to the anti-false touch mode. Alternatively, if the mobile phone is running a preset application, the mobile phone can increase the satisfaction threshold corresponding to at least one of the above preset anti-false touch conditions. For example, the mobile phone can increase the first preset illumination value corresponding to the dark light environment, or increase the preset touch area threshold corresponding to the large object event. In this way, if the user is using mobile games, watching videos, typing, etc., the mobile phone can increase the difficulty of entering the anti-false touch mode and reduce the impact of false triggering of the anti-false touch mode on the user experience.
[0132] After a mobile phone enters accidental touch prevention mode, if the phone meets the preset exit conditions, the phone will exit the accidental touch prevention mode and stop displaying the above-mentioned accidental touch prevention interface. The preset exit conditions include: detecting that the phone is in a non-dark light environment, the top is facing the opposite direction of gravity, the screen is on for a period of time that reaches the preset screen-off time, and any of the preset touch events are detected. If the mobile phone detects that the phone is in a non-dark light environment, the top is facing the opposite direction of gravity, the screen is on for a period of time that reaches the preset screen-off time, and any of the preset touch events are detected, the electronic device meets the preset exit conditions.
[0133] A non-dark light environment is one in which the ambient light intensity is greater than or equal to the second preset light value, i.e., an environment with relatively strong light intensity. If the phone is in a non-dark light environment, it can be assumed that the phone has likely been removed from a dark light environment such as a pocket or backpack. In this case, the user is more likely to use the phone. If the phone detects that the environment has changed from a dark light environment to a non-dark light environment, the phone can exit the anti-inadvertent touch mode, such as by removing the anti-inadvertent touch interface from the screen and restoring the display interface before entering anti-inadvertent touch mode.
[0134] The top facing the opposite direction of gravity can be understood as a top-up or head-up posture, or head-up posture. When a user uses the phone in portrait mode, the top of the phone or the direction of the head is opposite to the direction of gravity. If the top of the phone faces the direction of gravity, the user is more likely to use the phone. In this case, the phone can exit accidental touch prevention mode. For example, the phone can remove the accidental touch prevention interface from the screen and restore the display interface before entering accidental touch prevention mode.
[0135] The screen-on duration is defined as the length of time the phone remains on without receiving any user input. If the screen-on duration reaches the preset screen-off duration, such as 15 seconds or 30 seconds, the phone exits accidental touch prevention mode and enters the screen-off state.
[0136] A preset touch event is used to indicate exiting the anti-mistouch mode. For example, the trigger event is triggered by swiping twice within the anti-mistouch interface. If the phone detects a preset touch event, indicating that the user wishes to exit the anti-mistouch interface, the phone will remove the anti-mistouch interface from the screen and restore the interface displayed before entering anti-mistouch mode.
[0137] For example, as shown in Figure 14, after the phone displays the anti-inadvertent touch interface, the phone determines whether it is in a non-dark light environment, whether the phone is in an upward position, whether the screen-on duration has reached a preset screen-off duration, and whether a preset touch event has been detected. If the phone is in a non-dark light environment, in an upward position, or the screen-on duration has reached a preset screen-off duration, or a preset touch event is detected, the preset exit conditions are met, and the phone exits the anti-inadvertent touch mode, and stops displaying the anti-inadvertent touch interface on the screen.
[0138] By presetting the exit conditions, the mobile phone can exit the anti-accidental touch mode in time. After exiting the anti-accidental touch mode, the mobile phone can respond to user operations normally and provide services to the user.
[0139] “It should be noted that the personal information used in the technical solution of this application is limited to information for which individual consent has been obtained, including but not limited to notifying and reminding users to read the relevant user agreement (notification) and sign the agreement (authorization) that includes authorization of relevant user information before using the function (such as turning on the anti-accidental touch function).”
[0140] In other embodiments of the present application, an electronic device is provided, comprising: a screen, a memory, and one or more processors. The screen and the memory are coupled to the processors respectively. The screen is used to display an anti-mistouch interface. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device can perform the various functions or steps in the above method embodiments. Of course, the electronic device can also include other hardware structures. For example, the electronic device also includes hardware structures such as sensors and communication modules. The structure of the electronic device can refer to the structure of the electronic device shown in Figure 3.
[0141] An embodiment of the present application also provides a chip system, which is applied to an electronic device. The chip system includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by lines. For example, the interface circuit can be used to receive signals from other devices (such as memories). For another example, the interface circuit can be used to send signals to other devices (such as processors). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0142] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step in the above-mentioned method embodiment.
[0143] The present application also provides a computer program product, which, when executed on a computer, enables the computer to perform the functions or steps of the above method embodiment. For example, the computer may be the above electronic device.
[0144] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0145] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0149] The above content is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for preventing accidental touch, characterized in that: Applied to electronic equipment, the method comprises: The electronic device is in a non-locked and screen-on state, and in response to a preset accidental touch prevention condition, the electronic device displays an accidental touch prevention interface, where the accidental touch prevention interface is used to indicate that the electronic device enters an accidental touch prevention mode; In response to a preset exit condition, the electronic device stops displaying the anti-mistouch interface.
2. The method according to claim 1, characterized in that The preset anti-mistouch conditions include: detecting that the electronic device satisfies at least two of the following conditions: being in motion, in a dark environment, with the top facing the direction of gravity, and a touch event; wherein the dark environment is an environment in which the ambient light intensity is less than a first preset light value.
3. The method according to claim 1 or 2, characterized in that: The preset exit conditions include: detecting that the electronic device meets any one of a non-dark light environment, the top is facing the opposite direction of gravity, the screen-on time reaches a preset screen-off time, and a preset touch event; wherein, the non-dark light environment is an environment where the ambient light intensity is greater than or equal to a second preset light value.
4. The method according to any one of claims 1 to 3, characterized in that The electronic device has a first refresh frequency and a second refresh frequency, and the first refresh frequency is less than the second refresh frequency; the method further includes: In the false touch prevention mode, the electronic device locks the refresh frequency to the first refresh frequency.
5. The method according to any one of claims 2 to 4, characterized in that: The touch event includes a large object event, and the large object event meets a preset large object condition; The preset large object condition includes: the touch area is greater than a preset touch area threshold; or, a first axis of the touch area is greater than a first preset length, and the first axis is greater than a second axis of the touch area.
6. The method according to claim 5, characterized in that If the capacitance value corresponding to the large object event is greater than a preset capacitance value, the large object event is a large object event in a handheld scenario; and the large object event in the handheld scenario satisfies a preset large object condition in a handheld scenario.
7. The method according to claim 5, characterized in that If the capacitance value corresponding to the large object event is less than or equal to the preset capacitance value, the large object event is a large object event in a non-handheld scenario; and the large object event in the non-handheld scenario satisfies the preset large object condition in the non-handheld scenario.
8. The method according to any one of claims 1 to 7, characterized in that The electronic device includes a preset application; and the method further includes: If the preset application is running, the anti-mistaken touch function corresponding to the anti-mistaken touch mode is turned off; or, If the preset application is running, the satisfaction threshold corresponding to at least one of the preset false touch prevention conditions is increased.
9. An electronic device, characterized in that: include: a screen, memory, and one or more processors; The memory and the screen are respectively coupled to the processor; The screen is used to display an anti-mistouch interface; The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method as claimed in any one of claims 1 to 8.
10. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Method for processing locked screen interface and terminal
CN110140342A
Mistaken touch prevention method and electronic equipment
CN114063806A
Method and device for preventing mistaken touch
CN116204075A
Display Control Method, Electronic Device, and Computer-Readable Storage Medium
US20230205417A1