Mistaken touch prevention method of display screen and electronic equipment
By detecting the posture of the electronic device and using the acceleration sensor to determine whether it is a false touch, the frequent AOD display problem caused by false touch under the touch display is solved, reducing power consumption and improving user experience.
Patent Information
- Application Number
- CN202411191011.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-08-28
AI Technical Summary
When the AOD function of the electronic device is set to touch display, the user may cause frequent AOD display due to mistaken touch, which increases power consumption.
By detecting the posture of the electronic device, the acceleration sensor is used to determine whether it is a head-down attitude. If yes, the AOD interface is not displayed to avoid frequent display caused by mistake; if not, the AOD interface is displayed in response to the user's operation, register and Cancel the sensor to reduce power consumption.
It effectively prevents AOD display caused by mistaken touch, reduces power consumption of electronic devices, and improves user experience.
Smart Images

Figure CN119248124A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a method for preventing accidental touches of a display screen and an electronic device. Background Art
[0002] Currently, in order to improve the user experience of electronic devices, electronic devices have launched an always on display (AOD) function, which can also be called off-screen display. That is, when the electronic device is off, it can still display information such as time, date, notifications, etc. for user convenience.
[0003] For the AOD function, the user can also set the display mode, such as setting the touch display mode. In the scenario of setting the touch display, if the user clicks or touches the display screen of the electronic device, the electronic device will display the AOD, and if the user does not click or touch the display screen, the electronic device will still be in the off state.
[0004] However, in the light-touch display mode, some accidental touches on the display screen may occur, causing the electronic device to frequently perform AOD display and increase power consumption. Summary of the invention
[0005] The present application provides a method for preventing accidental touches of a display screen and an electronic device, which can timely prevent accidental touches when the AOD function of the electronic device is set to a light-touch display mode, thereby reducing the power consumption of the electronic device caused by frequent AOD display due to accidental touches.
[0006] In a first aspect, the present application provides a method for preventing accidental touches of a display screen, the method being performed by an electronic device, the electronic device having an AOD function turned on and being set to a light touch display mode, the method comprising:
[0007] When the electronic device is in the screen-off state and a first operation is detected, if the electronic device is in the first posture, the AOD interface is not displayed, and the electronic device continues to be in the screen-off state;
[0008] If the electronic device is not in the first posture, the AOD interface is displayed in response to the first operation, wherein the first operation includes a click or touch operation of the user on the display screen of the electronic device, and the first posture represents a posture in which the top of the electronic device is close to the ground relative to the bottom, and there is a preset angle between the top direction of the electronic device and the horizontal direction, the top of the electronic device is the end on which a camera is installed, and the preset angle is any angle in the range of [M, N], and both M and N are greater than 0° and less than 180°.
[0009] In this implementation, since the electronic device is set to display the AOD interface by light touch, under normal circumstances, the electronic device needs to display AOD when receiving the user's click or touch operation on the display screen. However, in some abnormal circumstances, such as when the user puts the electronic device in the pocket to walk or exercise, the electronic device may be accidentally touched and frequently display AOD. Since the electronic device may be in an upside-down posture when put into the pocket, and the upside-down posture is not the posture of the user when in normal use, the present application can judge the posture of the electronic device, and if it is in an upside-down posture (i.e., the first posture), no AOD display is performed.
[0010] In view of this, when the electronic device is in the screen-off state and detects the first operation, the current posture can be determined. If the electronic device is in the first posture, the AOD interface is not displayed and the screen continues to be in the screen-off state. If the electronic device is not in the first posture, it means that the electronic device may be in the posture of normal use by the user, and the AOD interface can be displayed normally. In this way, the purpose of preventing accidental touches can be achieved, while reducing the power consumption of the electronic device.
[0011] In combination with the first aspect, in some implementations of the first aspect, after the first operation is detected, the method further includes:
[0012] The first operation is received, a sensor is registered, sensor data is acquired from the sensor, and the sensor is unregistered.
[0013] The electronic device can determine whether it is the first gesture based on the sensor data. Therefore, when the electronic device detects the first operation, it can receive the first operation and register the sensor to obtain the sensor data. To further reduce the power consumption of the electronic device, the sensor can be unregistered after the sensor data is obtained to reduce the working power consumption of the sensor.
[0014] In some implementations, the sensor is an acceleration sensor, and the sensor data acquired by the electronic device is acceleration data, that is, the electronic device can determine its own posture based on the acceleration data.
[0015] In combination with the first aspect, in some implementations of the first aspect, when the electronic device is not in the first posture, registering the sensor, acquiring sensor data from the sensor, and canceling the registration of the sensor include:
[0016] Before displaying the AOD interface, register the sensor, obtain the sensor data from the sensor, and cancel the registration of the sensor.
[0017] Since the electronic device can register the sensor after detecting the first operation to obtain sensor data to determine the posture of the electronic device, if the electronic device is not in the first posture scenario, the electronic device needs to complete the process before displaying the AOD interface, that is, register the sensor, obtain sensor data from the sensor, and cancel the registration of the sensor before displaying the AOD interface.
[0018] In combination with the first aspect, in some implementations of the first aspect, if the electronic device is in the first posture, not displaying the AOD interface includes:
[0019] The electronic device is determined to be in a first posture based on the sensor data, and the AOD interface is not displayed.
[0020] That is to say, after the electronic device acquires the sensor data, it can determine the posture of the electronic device according to the sensor data. When the electronic device is determined to be in the first posture based on the sensor data, the AOD interface is not displayed.
[0021] In combination with the first aspect, in some implementations of the first aspect, if the electronic device is not in the first posture, displaying the AOD interface in response to the first operation includes:
[0022] It is determined based on the sensor data that the electronic device is not in a first posture, and in response to the first operation, the AOD interface is displayed.
[0023] Corresponding to the above process, when it is determined based on the sensor data that the electronic device is not in the first posture, the electronic device can respond to the first operation and display the AOD interface. Thus, the electronic device can timely prevent accidental touches according to the posture and reduce the power consumption of the electronic device.
[0024] In combination with the first aspect, in some implementations of the first aspect, the receiving the first operation and registering the sensor includes:
[0025] receiving the first operation, and determining whether the electronic device has no proximity light sensor and gyroscope sensor but has the acceleration sensor;
[0026] If the electronic device does not have the proximity light sensor and the gyro sensor but has the acceleration sensor, the acceleration sensor is registered.
[0027] Because when an electronic device has a proximity light sensor and a gyroscope sensor, the relevant technology can judge the false touch behavior based on the data collected by these two sensors, and the embodiment of the present application can be used for electronic devices with only built-in acceleration sensors. Therefore, it can be judged whether the electronic device has no proximity light sensor and gyroscope sensor. If so, the acceleration sensor can be registered to obtain the acceleration sensor to judge the posture of the electronic device. Therefore, electronic devices with different configurations (especially low-end configurations) can be prevented from false touches, reducing the power consumption of electronic devices.
[0028] In combination with the first aspect, in some implementations of the first aspect, acquiring sensor data from the sensor and canceling registration of the sensor includes:
[0029] If the sensor data is acquired within a first time period, determining whether the electronic device is in the first posture based on the sensor data, and canceling the registration of the sensor;
[0030] If the sensor data is not acquired within the first time period, the sensor is deregistered and the AOD interface is displayed.
[0031] It can be seen from the above description that the electronic device identifies the posture of the electronic device within a period of time before the AOD interface is displayed or not displayed after the first operation is detected. If this period of time is long, it will cause the phenomenon of delayed response of the electronic device, which is obviously not good for the user experience. Therefore, in this implementation method, a first time length (for example, 80 milliseconds) can be set. If the sensor data is obtained within this time length, it can be determined based on the sensor data whether the electronic device is in the first posture, and the sensor registration can be cancelled after the determination result is obtained. If the sensor data is still not obtained within the first time length, the electronic device can no longer wait for a long time to avoid causing the electronic device to be unresponsive for a long time. At this time, the registration sensor can be directly cancelled to execute the normal process of displaying the AOD interface.
[0032] In some implementations, the electronic device may obtain only the first frame of acceleration data, and cancel the sensor registration after obtaining the first frame of sensor data to reduce power consumption caused by continuous activation of the sensor.
[0033] In a second aspect, the present application provides a device, which is included in an electronic device, and the device has the function of implementing the electronic device behavior in the above-mentioned first aspect and the possible implementation of the above-mentioned first aspect. The function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a receiving module or unit, a processing module or unit, etc.
[0034] In a third aspect, the present application provides an electronic device, the electronic device comprising: one or more processors, and a memory;
[0035] The memory is coupled to the one or more processors, and the memory is used to store computer program code, wherein the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute any one of the methods in the technical solution of the first aspect.
[0036] In a fourth aspect, the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method in the first aspect and any possible implementation thereof.
[0037] Optionally, the chip system also includes a memory, and the memory is connected to the processor via circuits or wires.
[0038] Further optionally, the chip system also includes a communication interface.
[0039] In a fifth aspect, the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on an electronic device, the electronic device executes any one of the methods in the technical solution of the first aspect.
[0040] In a sixth aspect, the present application provides a computer program product, the computer program product comprising: a computer program code, when the computer program code runs on an electronic device, the electronic device executes any one of the methods in the technical solution of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a schematic diagram of an interface effect of an AOD display provided in an embodiment of the present application;
[0042] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0043] Figure 3 is a schematic diagram of an electronic device switching between various states provided in an embodiment of the present application;
[0044] Figure 4 is a schematic diagram of a posture effect of an electronic device provided in an embodiment of the present application;
[0045] Figure 5 This is a schematic diagram of an electronic device in an upside-down posture provided by an embodiment of the present application;
[0046] Figure 6is a schematic diagram of an example provided in an embodiment of the present application with an angle of [M, N] with respect to the horizontal direction;
[0047] Figure 7 is a flow chart of a method for preventing accidental touches of a display screen provided in an embodiment of the present application;
[0048] Figure 8 This is a schematic diagram of dividing the system architecture of an electronic device provided in an embodiment of the present application;
[0049] Fig. 9 This is a timing interaction diagram of a method for preventing accidental touches of a display screen provided in an embodiment of the present application;
[0050] Fig.10 It is a flowchart of another method for preventing accidental touches of a display screen provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0052] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.
[0053] Currently, in order to improve the user experience of electronic devices (such as mobile phones and other devices), electronic devices have launched the AOD function, which can also be called off-screen display, that is, when the electronic device is off, it can still display information such as time, date, notifications, etc. for the convenience of users. For example, the interface effect of electronic devices performing AOD display can be seen in Figure 1 As shown in the figure, it can be seen that the electronic device will display information such as time, date, notification, etc. in one area, and other areas may remain in a black screen state. Of course, the electronic device can also add a background to the displayed information to perform AOD display on the entire display screen. The embodiment of the present application does not limit the display effect.
[0054] For the AOD function, users can also set the display mode, such as setting a touch display, timed display or all-day display. Among them, in the scenario of setting a timed display, the user can set the time period for the timed display, such as setting the time period from 7:00 to 22:00 for AOD display, and the screen remains off in other time periods. In the scenario of setting an all-day display, the electronic device will perform AOD display at any time, and the corresponding power consumption of the electronic device in this way is higher. In the scenario of setting a touch display, if the user clicks or touches the display screen of the electronic device, the electronic device will perform AOD display. If the user does not click or touch the display screen, the electronic device will still be off. The power consumption of the electronic device in this way is lower.
[0055] However, in the light touch display mode, some cases of accidental touches on the display screen may occur, causing the electronic device to frequently perform AOD display and increase power consumption. For example, if a user puts an electronic device in a pocket and walks or exercises, the electronic device will move with the user's movements, which may cause accidental touches on the display screen. At this time, the electronic device must frequently respond to touch events to perform AOD display. Obviously, compared with normal use scenarios, these abnormal situations will cause the power consumption of the electronic device to increase.
[0056] With the continuous improvement of electronic technology, the built-in devices of electronic devices are also constantly being optimized. For example, electronic devices can be equipped with proximity light sensors, gyroscope sensors (Gyro), and acceleration sensors (ACC) and other devices. For high-end electronic devices with multiple sensors built in, the motion state, environment, and posture of the electronic device can be analyzed through real-time data from multiple sensors to determine whether the display screen of the electronic device is accidentally touched. However, for electronic devices that only have a single sensor built in (for example, only an acceleration sensor), there is currently no solution to detect whether the display screen has been accidentally touched, and accordingly, it is impossible to prevent accidental touches in the event of an accidental touch, which will result in frequent AOD displays when the AOD function is set to light touch display.
[0057] In view of this, an embodiment of the present application provides a method for preventing accidental touches of a display screen, which is applied to an electronic device with a single sensor (such as an accelerometer) built in. When the AOD function is set to a light touch display mode, if the electronic device is in an off-screen state, when an event of clicking or touching the display screen is detected, the posture of the electronic device can be judged according to the real-time data of the accelerometer, and then according to the posture of the electronic device, it is determined whether to respond to the event of clicking or touching the display screen, so as to determine whether to perform AOD display, thereby achieving the purpose of preventing accidental touches and reducing the power consumption of the electronic device. It can be understood that the method for preventing accidental touches of a display screen provided by the present application can be applied to electronic devices with AOD functions such as mobile phones, tablet computers, and wearable devices, and the embodiments of the present application do not limit the specific types of electronic devices.
[0058] For example, Figure 2 1 is a schematic diagram of the structure of an example of an electronic device 100 provided in an embodiment of the present application. Taking the electronic device 100 as a mobile phone as an example, the electronic device 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 screen 194, and a subscriber identity module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, a bone conduction sensor 180M, and the like.
[0059] 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 processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, an audio digital signal processor (ADSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0060] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0061] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0062] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0063] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0064] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0065] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0066] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0067] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0068] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0069] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0070] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0071] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 180E can also be used to identify the posture of the electronic device, and is applied to applications such as horizontal and vertical screen switching, pedometers, AOD displays, etc. In an embodiment of the present application, the AOD application can obtain data collected by the acceleration sensor to determine whether the electronic device is in an upside-down posture. If it is in an upside-down posture, the user's click or touch event of the display screen is not processed, that is, the AOD interface is not displayed. If it is not in an upside-down posture, the event is responded to and the AOD interface is displayed.
[0072] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be arranged on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194. In an embodiment of the present application, the touch sensor 180K can detect and report an event of a user clicking or touching the display screen when the AOD function of the electronic device 100 is set to a light touch display mode.
[0073] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0074] Before introducing the method for preventing accidental touches of the display screen of the embodiment of the present application, we first briefly introduce the various states of the display screen of the electronic device when the AOD function is turned on. It can be seen from the above description that when the AOD function is set to the touch display mode, if the user clicks or touches the display screen of the electronic device, the electronic device will perform AOD display. If the user does not click or touch the display screen, the electronic device will still be in the off state. Therefore, the states of the display screen of the electronic device can be divided into ON state, OFF state, DOZE state and DOZE_SUPPEND state. The ON state refers to the state when the display screen is lit, such as the lock screen interface, desktop interface or application interface; the OFF state refers to the off state of the display screen, that is, a completely black screen; the DOZE state refers to the state when the display screen is off, at which time the AOD interface can be displayed, that is, the above Figure 1 The DOZE_SUPPEND state refers to the state in which the AOD interface is continuously displayed, for example, the AOD function is set to be displayed all day.
[0075] The above-mentioned states can be switched to each other under certain conditions. Figure 3As shown, when the AOD function is set to the touch display mode, when the electronic device is in the ON state, if the user presses the power button or the user does not operate for a certain period of time, the electronic device will enter the OFF state. When the electronic device is in the OFF state, if the user presses the power button, it will return to the ON state. If the user clicks or touches the display screen, the electronic device will enter the DOZE state and display the AOD interface. When the electronic device is in the DOZE state, if the user presses the power button or double-clicks the display screen, the electronic device will enter the ON state. If the user does not operate for a certain period of time, the electronic device will enter the OFF state. If the AOD function is set to display all day, the electronic device will enter the DOZE_SUPPEND state after being in the DOZE state for a certain period of time. At this time, the AOD interface continues to be displayed on the display screen, but the AOD application is in sleep mode and will not refresh the AOD interface. If the user presses the power button, the electronic device will enter the ON state. When the user clicks or touches the display screen, lifts the electronic device, or updates the device at a scheduled time, the electronic device will switch the DOZE_SUPPEND state to the DOZE state to refresh the AOD interface, and then switch back to the DOZE_SUPPEND state after the refresh.
[0076] Then we briefly introduce the posture of the electronic device. Usually, when a user normally uses an electronic device, the electronic device will be in a vertical posture, a horizontal posture, or a posture with a certain inclination angle between these two postures. For example, Figure 4 As shown, Figure 4 Figure (a) is a schematic diagram of an electronic device in a vertical position. Figure 4 Figure (b) is a schematic diagram of an electronic device in a horizontal position, or an electronic device is in a horizontal position. Figure 4 The vertical posture of (a) in the figure has a certain tilt angle, or the electronic device is Figure 4 The horizontal posture of Figure (b) has a certain tilt angle, and these postures appear more frequently in scenarios where users normally use electronic devices. If a user puts an electronic device in his pocket and walks or exercises, the electronic device may be upside down, and the upside-down posture of the electronic device is not the posture when the user is in normal use. Therefore, the embodiment of the present application can regard the upside-down posture of the electronic device as an abnormal posture. When the AOD function of the electronic device is set to a light touch display mode, the operation of clicking or touching the display screen that triggers the AOD display under this abnormal posture may not be responded to, thereby achieving the purpose of preventing accidental touches.
[0077] For example, the head-down posture of the electronic device can be as follows: Figure 5As shown, it can include a vertical downward posture and a posture with a certain tilt angle to the vertical downward posture. For the convenience of description, the head-down posture can be referred to as the first posture later, that is, the first posture represents a posture in which the top of the electronic device is close to the ground relative to the bottom, and there is a preset angle between the top direction of the electronic device and the horizontal direction. Here, the top of the electronic device is the end where the camera is installed, and the preset angle is any angle in the range of [M, N], where M and N are both greater than 0° and less than 180°. Figure 6 As shown, assuming that the horizontal direction and the vertical direction are used as the coordinate system, the direction with an angle of M with the horizontal direction is the L direction, and the direction with an angle of N with the horizontal direction is the P direction, then the first posture of the electronic device is a posture in any direction between the L direction and the P direction, and the top of the electronic device is facing downward. It can be understood that the larger the range of [M, N], the more scenarios in which the posture of the electronic device is classified as the first posture. In order to reduce the probability that the posture of the user using the electronic device normally is misjudged as the first posture, the embodiment of the present application can set the range of [M, N] to the range of [45°, 135°].
[0078] Based on the above scenario, in an embodiment of the present application, when the AOD function of the electronic device is set to a touch display mode, if the electronic device is in an off-screen state, when an event of clicking or touching the display screen is detected, the posture of the electronic device can be judged according to the real-time data of the acceleration sensor. If the electronic device is in a first posture, it means that it is an abnormal posture, and the probability of the user using the electronic device is small. The electronic device may not respond to the event of clicking or touching the display screen, that is, it does not perform AOD display, so as to reduce the power consumption of the electronic device. If the electronic device is not in the first posture, the AOD display is performed normally.
[0079] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 2 Taking the electronic device with the structure shown as an example, the method for preventing accidental touches of the display screen provided in the embodiment of the present application is specifically described in combination with the accompanying drawings and application scenarios.
[0080] Figure 7 1 is a flow chart of a method for preventing accidental touch of a display screen provided in an embodiment of the present application. The method is executed by an electronic device. The electronic device has turned on the AOD function and is set to a light touch display mode. The method includes:
[0081] S101, when the electronic device is in a screen-off state and a first operation is detected, acquiring sensor data.
[0082] The first operation may be an operation in which the user clicks or touches the display screen. If the electronic device is in a screen-off state (i.e., OFF state) and the first operation is detected, the AOD display should be performed. However, in order to prevent accidental touches, the present application first obtains sensor data, and then determines whether it may be an accidental touch operation based on the sensor data. If it is an accidental touch operation, the AOD display will not be responded.
[0083] In some embodiments, the sensor data may be data collected by an acceleration sensor.
[0084] S102: Determine whether the electronic device is in a first posture according to sensor data.
[0085] Among them, the first posture is the posture of the electronic device with its head down. According to the above definition of the first posture, the electronic device can determine the angle between the top direction of the electronic device and the horizontal direction based on the sensor data (which can be recorded as the first angle). If the first angle calculated at this time is within the range of [M, N] corresponding to the above preset angle, the electronic device is determined to be in the first posture. If the first angle is not within the range of [M, N] corresponding to the above preset angle, the electronic device is determined not to be in the first posture.
[0086] In some embodiments, when the sensor data is data collected by an acceleration sensor, that is, the sensor data is acceleration data, the electronic device can calculate the first angle according to the acceleration data.
[0087] Exemplarily, the acceleration data may include three-axis acceleration values (x, y, z), for example (x, y, z) = (156.97095, -3.0434287, 2.3492842). The electronic device may calculate the corresponding heading angle (yaw), pitch angle (pitch) and roll angle (roll) based on the three-axis acceleration values, and the above-mentioned first angle corresponds to the pitch angle. Optionally, the electronic device may calculate the first angle based on the relationship of atan2((float)(0-y), z)×180 / π. Then, if the first angle is within the range of [M, N], the electronic device is determined to be in the first posture.
[0088] S103: If the electronic device is in the first posture, the AOD interface is not displayed and the screen remains off.
[0089] S104: If the electronic device is not in the first posture, displaying the AOD interface in response to the first operation.
[0090] That is to say, if the electronic device is in the first posture, the first operation is most likely an accidental touch operation, the electronic device can receive but not respond to the first operation, not display the AOD interface, and continue to maintain the original screen-off state. If the electronic device is not in the first posture, the first operation is most likely a normal touch operation, the electronic device can respond to the first operation and display the AOD interface.
[0091] In some embodiments, because when the electronic device is in the screen-off state, the installed applications and built-in devices are usually in a dormant state (except for some applications or devices that are set to continue working when the screen is off), so when the electronic device detects the first operation to obtain sensor data, the sensor needs to be activated to collect data. In order to reduce the power consumption of the sensor, the electronic device can register the sensor to obtain the first frame of sensor data when the first operation is detected, such as registering the acceleration sensor (ACC) to obtain the first frame of acceleration data, and cancel the registration of the sensor after obtaining the first frame of sensor data to reduce the power consumption caused by the continuous activation of the sensor. In this embodiment, if only the first frame of sensor data is obtained, there may be a scenario in which the electronic device is determined to be in the first posture according to the first frame of sensor data, but the electronic device soon changes to a posture that is not the first posture. At this time, the result obtained according to the first frame of sensor data will still be used, and the AOD interface will not be displayed.
[0092] It can be understood that the embodiments of the present application are only for the scenario where the electronic device is in the screen-off state. If the electronic device is in the first posture but not in the screen-off state, the normal processing flow still needs to be performed.
[0093] The above-mentioned method for preventing accidental touches of the display screen, when the AOD function is set to the light-touch display mode, if the electronic device is in the screen-off state, then when an event of clicking or touching the display screen is detected, the posture of the electronic device can be judged according to the real-time data of the acceleration sensor, and then according to the posture of the electronic device, it can be determined whether to respond to the event of clicking or touching the display screen, so as to determine whether to perform AOD display, thereby achieving the purpose of preventing accidental touches and reducing the power consumption of the electronic device.
[0094] To support Figure 7 The implementation process of the embodiment shown in the figure, the embodiment of the present application can also divide the system architecture of the electronic device, such as Figure 8 As shown, the electronic device may include hardware such as an AP processor, an ADSP processor, a sensor, and a display screen.
[0095] The AP processor is the main processor, responsible for the main data processing flow in the electronic device, and can control the working status of hardware such as the display screen. The ADSP processor communicates with sensors (such as accelerometers), and the sensors can transmit sensor data to the ADSP processor, which then transmits the sensor data to the AP processor for processing.
[0096] When the screen of the electronic device is off, the AP processor can be in sleep mode, but the ADSP processor is still working with low power consumption. Therefore, the ADSP processor can receive data sent by some sensors and notify the AP processor to start processing.
[0097] A layered software architecture can be deployed in the AP processor. Taking the layered architecture Android system as an example, the layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0098] The application layer can include a series of application packages. Figure 8 As shown, the application package may include an AOD application, as well as other applications, and other applications may include, for example, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. The AOD application may execute a process of determining the posture of the electronic device according to the sensor data.
[0099] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0100] like Figure 8 As shown, the application framework layer may include a sensor manager service (SMS), a power manager service (PMS), a display composition service (SurfaceFlinger), and a display service (Display).
[0101] SMS can receive data requests from the application layer to obtain corresponding data from the kernel layer driver. For example, the AOD application can send a data request to SMS to request sensor data. SMS will obtain the sensor data from the corresponding sensor driver and return it to the AOD application. PMS can also receive data instructions from the application layer to control the hardware power-on through the kernel layer driver. For example, the AOD application can send a state switching instruction to PMS (such as switching to DOZE state), and PMS will power on the display through the display driver to display the AOD interface. SurfaceFlinger is a system service whose function is to receive buffered data from different layers for synthesis and then send it to the display device for display. Display can receive some parameter data from SurfaceFlinger and modify its own status bit according to the parameters. The change of the status bit can be monitored by the AOD application. When AOD monitors the changed data, it can instruct PMS to perform corresponding processing. For example, in an embodiment of the present application, PMS can call the SurfaceFlinger interface to instruct the display driver to switch to the DOZE state. At the same time, SurfaceFlinger transmits the power mode setting parameters to the Display. When the AOD application monitors that the Display has switched to the DOZE state, it can instruct the PMS to display the backlight.
[0102] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0103] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0104] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0105] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0106] The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, sensor drivers, etc.
[0107] A sensor management system can be deployed in the ADSP processor, which can receive data collected by sensors and transmit the data to the sensor driver in the core layer of the AP processor. The SMS can then obtain sensor data from the corresponding sensor driver when needed.
[0108] The sensor may include a touch sensor, an acceleration sensor, etc. The touch sensor is used to detect the user's click or touch operation on the display screen, and the acceleration sensor is used to collect acceleration data.
[0109] exist Figure 8 Based on the system architecture shown, Fig. 9 A schematic diagram of timing interaction of a method for preventing accidental touches of a display screen provided in an embodiment of the present application is shown, which may specifically include:
[0110] S11, the electronic device is in a screen-off state, and a touch sensor detects a first operation.
[0111] The first operation may be an operation in which the user clicks or touches the display screen. It is understood that the electronic device should have turned on the AOD function at this time and set it to a light touch display mode.
[0112] S12: The touch sensor sends a first event to the AOD application.
[0113] The first event may be an event generated based on the first operation, for example, a light touch input_716 event. It can be understood that the touch sensor transmits the first event to the AP processor through the ADSP processor, and then sends it to the AOD application.
[0114] S13, the AOD application sends a first request to the SMS, requesting to register with the ACC.
[0115] To reduce the power consumption of the sensor, ACC can be in sleep mode when the screen of the electronic device is off. When the AOD application needs to obtain acceleration data, it can request to register ACC to activate ACC and collect acceleration data.
[0116] S14, SMS requests acceleration data from ACC via sensor drive.
[0117] S15, ACC returns acceleration data to SMS through sensor drive.
[0118] That is, the SMS can obtain the acceleration data collected by the ACC through the sensor drive. In some implementations, the SMS can request the ACC to obtain only the first frame of acceleration data.
[0119] S16, SMS sends acceleration data to the AOD application.
[0120] S17, the AOD application sends a second request to the SMS, requesting to cancel the registration of the ACC.
[0121] That is to say, after the AOD application receives the acceleration data, it can immediately cancel the registration of ACC to reduce the power consumption of ACC.
[0122] S18, the AOD application determines whether the electronic device is in the first posture according to the acceleration data.
[0123] The process of the AOD application determining whether the electronic device is in the first posture can be referred to the description of S102 above, which will not be repeated here.
[0124] S19: If the electronic device is in the first posture, the AOD application does not process the first event and does not trigger the display of the AOD interface.
[0125] That is, if the electronic device is in the first posture, the above-mentioned first operation is most likely an accidental touch operation, and the AOD application can receive but not process the first event, and does not trigger the display of the AOD interface, and continues to keep the electronic device in the original off-screen state.
[0126] S20: If the electronic device is not in the first posture, the AOD application sends a third request to the PMS, requesting to switch to the DOZE state.
[0127] That is, if the electronic device is not in the first posture, the first operation is most likely a normal touch operation, and the electronic device needs to switch from the OFF state to the DOZE state to display the AOD interface. Therefore, the AOD application can send a request to the PMS to switch to the DOZE state.
[0128] S21, PMS calls the SurfaceFlinger interface.
[0129] S22, SurfaceFlinger passes the power mode setting parameters to the display driver and Display at the same time, indicating the switching of the DOZE state.
[0130] S23, the display driver powers on the display screen.
[0131] S24, the AOD application detects that the Display has switched to the DOZE state.
[0132] For steps S21-S24, that is, in the process of switching the DOZE state, PMS can call the SurfaceFlinger interface and pass the set power mode (setPowerMode) parameter to the display driver and Display at the same time. The parameter can represent the state of the display. For example, the parameter is 0 for the OFF state, 1 for the DOZE state, 2 for the ON state, and 3 for the DOZE_SUPPEND state. If the DOZE state needs to be switched at this time, the parameter value passed by SurfaceFlinger to the display driver and Display at the same time can be 1.
[0133] After the display driver receives the above parameters, it can power on the display. Because the AOD application cannot directly obtain data such as parameter changes of the display driver, the data changes of the Display can be monitored by the AOD application later. For example, after SurfaceFlinger passes the power mode setting parameters to the Display, the value of a status bit in the Display changes, indicating that the DOZE state has been switched, and the change of this status bit can be monitored by the AOD application.
[0134] In some implementations, the AOD application can register in advance to monitor the status bit change events in the Display, such as registering and monitoring through the onRegist mechanism. Optionally, the AOD application can complete the registration and monitoring process when the display screen of the electronic device is in the OFF state. In some implementations, the AOD application can complete the callback of the registration and monitoring through the onDisplayChanged() function and monitor that the Display has switched to the DOZE state.
[0135] S25, the AOD application sends a fourth request to the PMS, requesting lower backlight display.
[0136] S26, the PMS drives the lower backlight to the display.
[0137] S27, the display driver sets the backlight of the display screen and displays the AOD interface.
[0138] After the display screen is powered on, the AOD application can trigger the PMS to perform lower backlight display and finally display the AOD interface, that is, when the electronic device is not in the first posture, it responds normally to the above first operation and displays the AOD interface.
[0139] It can be understood that when the AOD application determines that the electronic device is not in the first posture, it can generate a view corresponding to the AOD interface, transmit the view to SurfaceFlinger for synthesis, and then send it to the display driver. After the display driver sets the backlight, the AOD interface will be displayed accordingly.
[0140] The above-mentioned method for preventing accidental touches of the display screen, when the AOD function is set to the light-touch display mode, if the electronic device is in the screen-off state, then when an event of clicking or touching the display screen is detected, the posture of the electronic device can be judged according to the real-time data of the acceleration sensor, and then according to the posture of the electronic device, it can be determined whether to respond to the event of clicking or touching the display screen, so as to determine whether to perform AOD display, thereby achieving the purpose of preventing accidental touches and reducing the power consumption of the electronic device.
[0141] For the above Fig. 9 The process in which the AOD application receives the first event and obtains acceleration data to determine the posture of the electronic device is described in detail below with an embodiment. Fig.10 FIG. 1 is a flow chart of another method for preventing accidental touches of a display screen provided in an embodiment of the present application, which may specifically include:
[0142] S31: The AOD application receives a first event.
[0143] The first event here refers to the event sent after the touch sensor detects the first operation, that is, the user clicks or touches the display screen at this time. It may be a normal operation to trigger the AOD display, or it may be a false touch. Therefore, the AOD application can determine whether it is a false touch based on the following process to prevent false touches.
[0144] S32, determining whether the electronic device has no proximity light sensor and gyro sensor but has an acceleration sensor, if yes, executing S33, if no, executing S41.
[0145] Because when the electronic device has a proximity light sensor and a gyroscope sensor, the relevant technology can judge the false touch behavior based on the data collected by these two sensors, and the embodiment of the present application is aimed at an electronic device that only has a built-in acceleration sensor (ACC). Therefore, the AOD application can determine whether the electronic device has no proximity light sensor and gyroscope sensor. If so, continue with the subsequent process. If not, it can respond to the first operation and execute the process of normally displaying the AOD interface in S41.
[0146] S33, instructing the main thread to wait for the first time period, and instructing the child thread to register the ACC.
[0147] The purpose of making the main thread wait for the first time length is to wait for ACC to report acceleration data and perform subsequent judgment process, that is, the main thread delays processing of the first event. Optionally, the first time length can be 80 milliseconds (ms), and the main thread can use PostDelay mechanism to delay processing of the first event.
[0148] In some implementations, after the main thread starts waiting, the message that the main thread is waiting for may also be written into the waiting queue.
[0149] S34, whether the AOD application obtains acceleration data within the first time period, if yes, execute S35, if no, instruct the child thread to cancel the registration of ACC, and execute S41.
[0150] If the AOD application obtains the acceleration data sent by the ACC (i.e., the acceleration data transmitted via SMS) within the first waiting period of the main thread, the posture of the electronic device can be determined based on the acceleration data. If the acceleration data is not obtained within the first waiting period, that is, the main thread has waited for the first waiting period, the main thread cannot wait for a long time to avoid causing the electronic device to be unresponsive for a long time. At this time, the registration of the ACC can be cancelled, the first operation can be responded to, and the process of displaying the AOD interface normally in S41 is executed.
[0151] In some implementations, the AOD application may only obtain the first frame of acceleration data to reduce power consumption caused by continuous activation of the sensor.
[0152] S35, the AOD application determines whether the electronic device is in the first posture according to the acceleration data, and if so, executes S36, otherwise executes S37.
[0153] The process of the AOD application determining whether the electronic device is in the first posture can be referred to the description of S102 above, which will not be repeated here.
[0154] S36, remove the message that the main thread is waiting for, and assign the preset status bit to the first value.
[0155] S37, remove the message that the main thread is waiting for, and assign the preset status bit to the second value.
[0156] Here, the AOD application can set a status bit in advance, assign the status bit to the first value when the electronic device is in the first posture, and assign the status bit to the second value when the electronic device is not in the first posture. At the same time, regardless of whether the electronic device is in the first posture, the message that the main thread is waiting for must be removed so that the main thread can perform subsequent processing. Exemplarily, the first value can be 1 and the second value can be 0.
[0157] S38, instructing the child thread to cancel the registration of ACC.
[0158] Among them, because the above-mentioned AOD application has obtained the acceleration data and analyzed it to determine the posture of the electronic device, the child thread can cancel the registration of ACC in time to reduce the power consumption of ACC.
[0159] S39, the AOD application determines whether the status bit is the first value, if so, executes S40, if not, executes S41.
[0160] S40: The AOD application does not process the first event, and does not trigger display of the AOD interface.
[0161] When the status bit is the first value, that is, the electronic device is in the first posture, the above-mentioned first operation is most likely an accidental touch operation, and the AOD application can receive but not process the first event, and does not trigger the display of the AOD interface, and continues to keep the electronic device in the original off-screen state.
[0162] S41, the AOD application requests the PMS to switch to the DOZE state and display the AOD interface.
[0163] When the state bit is not the first value, that is, the electronic device is not in the first posture, the first operation is most likely a normal touch operation, and the electronic device needs to switch from the OFF state to the DOZE state to display the AOD interface. Therefore, the AOD application can send a request to the PMS to switch to the DOZE state.
[0164] Among them, the implementation process of S41 can refer to the description of S20-S27 above, and will not be repeated here.
[0165] The above-mentioned method for preventing accidental touches of the display screen, when the AOD function is set to the light-touch display mode, if the electronic device is in the screen-off state, then when an event of clicking or touching the display screen is detected, the posture of the electronic device can be judged according to the real-time data of the acceleration sensor, and then according to the posture of the electronic device, it can be determined whether to respond to the event of clicking or touching the display screen, so as to determine whether to perform AOD display, thereby achieving the purpose of preventing accidental touches and reducing the power consumption of the electronic device.
[0166] The above describes in detail an example of the method for preventing accidental touches of a display screen provided by an embodiment of the present application. It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the present application.
[0167] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each function can be divided into various functional modules, such as a detection unit, a processing unit, a display unit, etc., or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0168] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0169] The electronic device provided in this embodiment is used to execute the above-mentioned method for preventing accidental touches of a display screen, and thus can achieve the same effect as the above-mentioned implementation method.
[0170] In the case of an integrated unit, the electronic device may further include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the electronic device. The storage module may be used to support the electronic device to execute stored program codes and data, etc. The communication module may be used to support the electronic device to communicate with other devices.
[0171] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0172] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a Figure 2 Device of the structure shown.
[0173] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the method for preventing accidental touches of a display screen in any of the above embodiments. The storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0174] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the method for preventing accidental touches of a display screen in the above-mentioned embodiment.
[0175] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the anti-mistouch method of the display screen in the above-mentioned method embodiments.
[0176] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0177] Through the description of the above implementation methods, technical personnel in the relevant field can 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.
[0178] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0179] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for preventing accidental touches of a display screen, the method being executed by an electronic device, characterized in that: The electronic device has turned on the all-weather display AOD function and is set to a light touch display mode, and the method includes: When the electronic device is in the screen-off state and a first operation is detected, if the electronic device is in the first posture, the AOD interface is not displayed, and the electronic device continues to be in the screen-off state; If the electronic device is not in the first posture, the AOD interface is displayed in response to the first operation, wherein the first operation includes a click or touch operation of the user on the display screen of the electronic device, and the first posture represents a posture in which the top of the electronic device is close to the ground relative to the bottom, and there is a preset angle between the top direction of the electronic device and the horizontal direction, the top of the electronic device is the end on which a camera is installed, and the preset angle is any angle in the range of [M, N], and both M and N are greater than 0° and less than 180°.
2. The method according to claim 1, characterized in that After the first operation is detected, the method further includes: The first operation is received, a sensor is registered, sensor data is acquired from the sensor, and the sensor is unregistered.
3. The method according to claim 2, characterized in that When the electronic device is not in the first posture, the registering the sensor, acquiring sensor data from the sensor, and canceling the registration of the sensor include: Before displaying the AOD interface, register the sensor, obtain the sensor data from the sensor, and cancel the registration of the sensor.
4. The method according to claim 2 or 3, characterized in that: If the electronic device is in the first posture, then the AOD interface is not displayed, including: The electronic device is determined to be in a first posture based on the sensor data, and the AOD interface is not displayed.
5. The method according to claim 2 or 3, characterized in that: If the electronic device is not in the first posture, displaying the AOD interface in response to the first operation includes: It is determined based on the sensor data that the electronic device is not in a first posture, and in response to the first operation, the AOD interface is displayed.
6. The method according to any one of claims 2 to 5, characterized in that The sensor is an acceleration sensor, and the sensor data is acceleration data.
7. The method according to claim 6, characterized in that The receiving the first operation and registering the sensor includes: receiving the first operation, and determining whether the electronic device has no proximity light sensor and gyroscope sensor but has the acceleration sensor; If the electronic device does not have the proximity light sensor and the gyro sensor but has the acceleration sensor, the acceleration sensor is registered.
8. The method according to any one of claims 2 to 7, characterized in that The acquiring sensor data from the sensor and cancelling the registration of the sensor comprises: If the sensor data is acquired within a first time period, determining whether the electronic device is in the first posture based on the sensor data, and canceling the registration of the sensor; If the sensor data is not acquired within the first time period, the sensor is deregistered and the AOD interface is displayed.
9. The method according to claim 8, characterized in that The sensor data acquired by the electronic device is the first frame of sensor data.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors, and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method as claimed in any one of claims 1 to 9.
11. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when executed on an electronic device, enable the electronic device to perform the method as claimed in any one of claims 1 to 9.
Citation Information
Patent Citations
Screen-off display method and electronic equipment
CN110012153A
Screen-off display control method, electronic equipment and medium
CN116450069A
Screen-off control method, electronic equipment and storage medium
CN116700585A
Screen display control method and electronic device
WO2020155876A1
Method for always on display, and electronic device
WO2020168976A1
Cited By
Equipment control method and device, electronic equipment and storage medium
CN120973286A
