Method for preventing mistaken touch of display screen and electronic device

By using an accelerometer to determine the device's attitude during the AOD (Away From Distance) function of electronic devices, the problem of frequent AOD displays caused by accidental touches is solved, resulting in reduced power consumption and improved user experience.

CN119248124BActive Publication Date: 2025-12-12HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411191011.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2025-12-12
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

When the AOD (Away From Distance) function of an electronic device is set to touch display mode, accidental touches can cause frequent AOD displays, increasing power consumption.

Method used

By using an accelerometer to determine the device's posture when the screen is off, the AOD interface is not displayed if the device is in an abnormal posture with its head down, and the operation is responded to if the device is in a normal posture, thus preventing accidental touches and reducing power consumption.

Benefits of technology

It effectively prevents accidental AOD (Away From Home) displays, reduces the power consumption of electronic devices, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248124B_ABST
    Figure CN119248124B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method for preventing mistaken touch of a display screen and an electronic device, the electronic device has started an AOD function and is set to a light touch display mode, the method comprising: in a case where the electronic device is in an off-screen state and a first operation is detected, if the electronic device is in a first posture, an AOD interface is not displayed, and the electronic device continues to be in the off-screen 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 comprises a click or touch operation of a user on the display screen of the electronic device, the first posture represents a posture in which the top end of the electronic device is close to the ground relative to the bottom end, and the top end of the electronic device has a preset angle with the horizontal direction, the top end of the electronic device is an end on which a camera is installed, and the preset angle is any angle in the range of [M, N], M and N are both greater than 0° and less than 180°. In this way, the electronic device can achieve the purpose of preventing mistaken touch, while reducing the power consumption of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronics, in particular to a method for preventing mistaken touch of a display screen and an electronic device. BACKGROUND

[0002] Currently, in order to improve the user experience of the electronic device, the electronic device has introduced an always-on display (AOD) function, which can also be referred to as an off-screen display, that is, in the case of an off-screen electronic device, information such as time, date, and notifications can still be displayed to facilitate user viewing.

[0003] For the AOD function, the user can also set the display mode, for example, set a light touch display mode. In the scenario of setting a light touch display, if the user clicks or touches the display screen of the electronic device, the electronic device will perform AOD display, and if the user does not click or touch the display screen, the electronic device will still be in an off-screen state.

[0004] However, in the light touch display mode, some mistaken touch of the display screen may occur, resulting in frequent AOD display of the electronic device and increased power consumption. SUMMARY

[0005] The present application provides a method for preventing mistaken touch of a display screen and an electronic device, which can prevent mistaken touch in time when the AOD function of the electronic device is set to a light touch display mode, and reduce the power consumption caused by frequent AOD display of the electronic device due to mistaken touch.

[0006] In a first aspect, the present application provides a method for preventing mistaken touch of a display screen, which is executed by an electronic device, the electronic device has started an AOD function and is set to a light touch display mode, and the method comprises:

[0007] In the case that the electronic device is in an off-screen state and a first operation is detected, if the electronic device is in a first posture, an AOD interface is not displayed, and the electronic device continues to be in the off-screen state.

[0008] If the electronic device is not in the first posture, an 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, the first posture represents a posture in which the top end of the electronic device is close to the ground relative to the bottom end, and the top end direction of the electronic device has a preset angle with the horizontal direction, the top end of the electronic device is an end where a camera is installed, and the preset angle is any one angle in the range of [M, N], M and N are both greater than 0° and less than 180°.

[0009] In the implementation, since the electronic device sets the way of lightly touching the AOD interface, the electronic device needs to perform AOD display when receiving the operation of clicking or touching the display screen of the user normally. However, in some abnormal cases, for example, when the user puts the electronic device into a pocket and walks or exercises, the electronic device may be frequently triggered to perform AOD display by mistake. Since the electronic device may present a head-down posture when being put into the pocket, the head-down posture is not a normal posture of the user, and therefore, the electronic device can determine the posture of the electronic device. If the electronic device is in the head-down posture (i.e., the first posture), the electronic device does not perform AOD display.

[0010] In view of this, in a case where the electronic device is in the screen-off state and the first operation is detected, the posture can be determined. 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, it is indicated that the electronic device can be in a normal posture of the user, and the AOD interface can be normally displayed. In this way, the purpose of preventing mistaken touch can be achieved, and the power consumption of the electronic device can be reduced.

[0011] With reference to the first aspect, in some implementations of the first aspect, after the first operation is detected, the method further includes:

[0012] receiving the first operation, registering the sensor, obtaining sensor data from the sensor, and unregistering the sensor.

[0013] The electronic device can determine whether the first posture is based on the sensor data. Therefore, the electronic device can receive the first operation when the first operation is detected, 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, so as to reduce the working power consumption of the sensor.

[0014] In some implementations, the sensor is an acceleration sensor, and the sensor data obtained by the electronic device is acceleration data. That is, the electronic device can determine the posture of the electronic device based on the acceleration data.

[0015] With reference to the first aspect, in some implementations of the first aspect, in a case where the electronic device is not in the first posture, the registering the sensor, obtaining sensor data from the sensor, and unregistering the sensor include:

[0016] before the AOD interface is displayed, registering the sensor, obtaining the sensor data from the sensor, and unregistering 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, the electronic device needs to complete the process before displaying the AOD interface, that is, before displaying the AOD interface, register the sensor, obtain sensor data from the sensor, and unregister the sensor.

[0018] With reference to the first aspect, in some implementations of the first aspect, if the electronic device is in the first posture, the AOD interface is not displayed, including:

[0019] The AOD interface is not displayed based on the sensor data determining that the electronic device is in the first posture.

[0020] That is, after the electronic device obtains the sensor data, the posture of the electronic device can be determined based on 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] With reference to the first aspect, in some implementations of the first aspect, if the electronic device is not in the first posture, the AOD interface is displayed in response to the first operation, including:

[0022] The AOD interface is displayed in response to the first operation based on the sensor data determining that the electronic device is not in the first posture.

[0023] Corresponding to the above process, when the electronic device is determined to be not in the first posture based on the sensor data, the electronic device can display the AOD interface in response to the first operation. Thus, the electronic device can prevent false touch in time according to the posture, and reduce the power consumption of the electronic device.

[0024] With reference to the first aspect, in some implementations of the first aspect, the receiving the first operation and registering the sensor, including:

[0025] The first operation is received, and it is determined whether the electronic device has no proximity light sensor and gyroscope sensor and has the acceleration sensor.

[0026] If the electronic device has no proximity light sensor and gyroscope sensor and has the acceleration sensor, the acceleration sensor is registered.

[0027] Because in the case that the electronic device has a proximity light sensor and a gyroscope sensor, the related art can determine the mis-touch behavior based on the data collected by the two sensors, and the embodiment of the present application can be for an electronic device that only has an acceleration sensor, so that it can determine whether the electronic device has no proximity light sensor and gyroscope sensor, and if so, the acceleration sensor can be registered to obtain the acceleration sensor to determine the posture of the electronic device. Thus, the mis-touch of electronic devices with different configurations (especially low-end configurations) can be prevented, and the power consumption of the electronic device can be reduced.

[0028] In combination with the first aspect, in some implementations of the first aspect, the obtaining of the sensor data from the sensor and the deregistering of the sensor include:

[0029] If the sensor data is obtained within the first time length, it is determined, based on the sensor data, whether the electronic device is in the first posture, and the sensor is deregistered.

[0030] If the sensor data is not obtained within the first time length, the sensor is deregistered, and the AOD interface is displayed.

[0031] As described above, 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 the period of time is long, the electronic device will have a delayed response, which is obviously not good for the user experience. Therefore, in this implementation, a first time length (for example, 80 milliseconds) can be set. If the sensor data is obtained within the time length, it can be determined, based on the sensor data, whether the electronic device is in the first posture. After the determination result is obtained, the sensor can be deregistered. If the sensor data is not obtained within the first time length, the electronic device cannot wait for a long time, which avoids the long non-response of the electronic device. At this time, the sensor can be directly deregistered, and the process of normally displaying the AOD interface is executed.

[0032] In some implementations, the electronic device can only obtain the first frame of acceleration data, and after the first frame of sensor data is obtained, the sensor is deregistered to reduce the power consumption caused by the continuous activation of the sensor.

[0033] In the second aspect, the present application provides a device, which is included in an electronic device, and has the function of implementing the behavior of the electronic device in the first aspect and the possible implementations of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above 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, comprising: one or more processors, and a memory;

[0035] The memory is coupled with the one or more processors, and the memory is configured to store computer program codes, the computer program codes comprising computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the electronic device to perform any of the methods in the technical solutions 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 comprises one or more processors, and the one or more processors are configured to invoke computer instructions to enable the electronic device to perform the method in the first aspect and any possible implementation manner thereof.

[0037] Optionally, the chip system further comprises a memory, and the memory is connected with the processor through a circuit or a wire.

[0038] Further optionally, the chip system further comprises a communication interface.

[0039] In a fifth aspect, the present application provides a computer readable storage medium, and the computer readable storage medium comprises instructions, and when the instructions are run on an electronic device, the instructions enable the electronic device to perform any of the methods in the technical solutions of the first aspect.

[0040] In a sixth aspect, the present application provides a computer program product, and the computer program product comprises computer program codes, and when the computer program codes are run on an electronic device, the computer program codes enable the electronic device to perform any of the methods in the technical solutions of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 is an example of an interface effect schematic diagram of AOD display provided by the embodiment of the present application;

[0042] Figure 2 is an example of a structural schematic diagram of an electronic device provided by the embodiment of the present application;

[0043] Figure 3 is an example of a schematic diagram of the conversion of an electronic device in various states provided by the embodiment of the present application;

[0044] Figure 4 is an example of a posture effect schematic diagram of an electronic device provided by the embodiment of the present application;

[0045] Figure 5 is an example of a posture schematic diagram of an electronic device with the head downward provided by the embodiment of the present application;

[0046] Figure 6is a schematic diagram of an example of an angle in the range of [M, N] with the horizontal direction provided by an embodiment of the present application;

[0047] Figure 7 is a flowchart of an example of a method for preventing accidental touch of a display screen provided by an embodiment of the present application;

[0048] Figure 8 is a schematic diagram of an example of division of system architecture of an electronic device provided by an embodiment of the present application;

[0049] Figure 9 is a timing interaction schematic diagram of an example of a method for preventing accidental touch of a display screen provided by an embodiment of the present application;

[0050] Figure 10 is a flowchart of another example of a method for preventing accidental touch of a display screen provided by an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; in this document, "and / or" only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0052] Hereinafter, the terms "first", "second", "third" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second", "third" can explicitly or implicitly include one or more features.

[0053] Currently, in order to improve the user experience of electronic devices (such as mobile phones and other devices), electronic devices have introduced AOD function, which can also be called screen-off display, that is, in the case of screen-off of the electronic device, information such as time, date, notification, etc. can still be displayed to facilitate the user to view. For example, the interface effect of AOD display of the electronic device can be seen from Figure 1 As shown in the figure, the electronic device can display time, date, notification, etc. in an area, and other areas can still be 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, and the display effect is not limited by the embodiments of the present application.

[0054] For the AOD function, the user can also set the display mode, such as setting a tap display, a timed display, or an all-day display. In the scenario of setting a timed display, the user can set the time period of the timed display, such as setting the time period of 7:00 to 22:00 to perform AOD display, and the electronic device is still in the screen-off state in other time periods. In the scenario of setting an all-day display, the electronic device performs AOD display at any time, and the power consumption of the electronic device is relatively high in this mode. In the scenario of setting a tap display, if the user clicks or touches the display screen of the electronic device, the electronic device performs AOD display, and if the user does not click or touch the display screen, the electronic device is still in the screen-off state, and the power consumption of the electronic device is relatively low in this mode.

[0055] However, in the tap display mode, some accidental touch of the display screen may occur, causing the electronic device to frequently perform AOD display and increasing power consumption. For example, if the user puts the electronic device in a pocket and walks or exercises, the electronic device moves with the user's action, which may cause accidental touch of the display screen. At this time, the electronic device frequently responds to the touch event to perform AOD display. Obviously, compared with the normal use scenario, these abnormal situations increase the power consumption of the electronic device.

[0056] With the continuous improvement of electronic technology, the built-in devices of the electronic device are also being optimized. For example, the electronic device can be built-in with a proximity light sensor, a gyro sensor (Gyro), and an acceleration sensor (ACC). For a high-end electronic device built-in with multiple sensors, the motion state, the environment, and the posture of the electronic device can be analyzed by using the real-time data of the multiple sensors to determine whether the display screen of the electronic device is accidentally touched. However, for an electronic device built-in with only a single sensor (for example, only an acceleration sensor), there is no solution to detect whether the display screen is accidentally touched, and the accidental touch cannot be prevented in the accidental touch scenario, which causes the electronic device to frequently perform AOD display in the tap display mode of the AOD function.

[0057] Therefore, the application provides a method for preventing mistaken touch of a display screen, which is applied to an electronic device with a single sensor (for example, an acceleration sensor) built-in. When the AOD function is set to a light touch display mode, if the electronic device is in an off-screen state, the posture of the electronic device can be determined according to real-time data of the acceleration sensor when an event of clicking or touching the display screen is detected, and then it is determined whether to respond to the event of clicking or touching the display screen according to the posture of the electronic device, so as to determine whether to perform AOD display, thereby achieving the purpose of preventing mistaken touch and reducing the power consumption of the electronic device. It can be understood that the method for preventing mistaken touch of the display screen provided by the application can be applied to electronic devices with AOD function, such as mobile phones, tablet computers, wearable devices, and the like. The specific type of the electronic device is not limited in the embodiments of the application.

[0058] Exemplarily, Figure 2 is a structural schematic diagram of an electronic device 100 provided by an embodiment of the application. Taking the electronic device 100 as a mobile phone for example, the electronic device 100 can 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 loudspeaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identity module (SIM) card interface 195, and the like. The sensor module 180 can 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 can include one or more processing units, for example: the processor 110 can 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, an audio digital signal processor (ADSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0060] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0061] The memory in the processor 110 can also be configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0062] In some embodiments, the processor 110 can include one or more interfaces. The interface can 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 can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.

[0064] The power management module 141 is used to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives the input of the battery 142 and / or the charging management module 140 to supply 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, etc. The power management module 141 can also be used to monitor the battery capacity, the battery cycle number, the battery health status (leakage, impedance), and other parameters. In some other embodiments, the power management module 141 can also be arranged in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be arranged in the same device.

[0065] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0066] The electronic device 100 realizes the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which 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 use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 can include one or N display screens 194, and N is a positive integer greater than 1.

[0068] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor, etc.

[0069] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 performs various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can 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 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0070] The electronic device 100 can implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor, etc. For example, music playing, recording, etc.

[0071] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in each direction (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 electronic device posture, and can be applied to landscape / portrait screen switching, a pedometer, AOD display, etc. In the embodiments of the present application, the AOD application can obtain the data collected by the acceleration sensor, determine whether the electronic device is in a head-down posture, and if so, not process the event of the user clicking or touching the display screen, i.e., not display the AOD interface, and if not, respond to the event and display the AOD interface.

[0072] Touch sensor 180K, also referred to as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also referred to as "touch panel". The touch sensor 180K is configured to detect a touch operation acting on or near the touch sensor 180K. The touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194. In the embodiments of the present application, the touch sensor 180K can detect the event of the user clicking or touching the display screen and report it when the AOD function of the electronic device 100 is set to the light touch display mode.

[0073] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 can include more or fewer components than those illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software or a combination of software and hardware.

[0074] Before introducing the anti-mistouch method of the display screen in the embodiments of the present application, we first introduce the states of the display screen of the electronic device when the AOD function is turned on. As described above, in the case where the AOD function is set to the light touch display mode, if the user clicks or touches the display screen of the electronic device, the electronic device will perform AOD display, and if the user does not click or touch the display screen, the electronic device will still be in the off state. Therefore, the state 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 of the display screen being turned on, for example, the state of displaying the lock screen interface, the desktop interface or the application interface. The OFF state refers to the off state of the display screen, i.e. completely black screen. The DOZE state refers to the state of the display screen being turned off, at this time the AOD interface can be displayed, i.e. the state of the display screen being turned off and displaying the AOD interface. The DOZE_SUPPEND state refers to the state of continuously displaying the AOD interface, for example, the state of the AOD function being set to all-day display. Figure 1

[0075] In some conditions, the above-mentioned states can be switched to each other. For example, the ON state can be switched to the DOZE state, the DOZE state can be switched to the DOZE_SUPPEND state, the DOZE_SUPPEND state can be switched to the ON state, and the OFF state can be switched to the DOZE state. Figure 3 ​As shown, when the AOD function is set to touch display mode, if the user presses the power button or remains inactive for a certain period of time while the electronic device is in the ON state, the electronic device will enter the OFF state. If the user presses the power button while the electronic device is in the OFF state, it will return to the ON state. If the user taps or touches the display screen, the electronic device will enter the DOZE state and display the AOD interface. If the user presses the power button or double-taps the display screen while the electronic device is in the DOZE state, the electronic device will enter the ON state. If the user remains inactive for a certain period of time, the electronic device will enter the DOZE_SUPPEND state. In this state, the AOD interface will continue to be displayed on the screen, but the AOD application will be 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 a user taps or touches the display, lifts the electronic device, or when a scheduled update occurs, the electronic device will switch from the DOZE_SUPPEND state to the DOZE state to refresh the AOD interface, and then switch back to the DOZE_SUPPEND state after refreshing.

[0076] Next, we will briefly introduce the posture of electronic devices. Normally, when users use electronic devices, they will hold them in an upright, horizontal, or tilted position. For example, such as... Figure 4 As shown, Figure 4 Figure (a) in the diagram is a schematic diagram of the electronic device in a vertical orientation. Figure 4 Figure (b) is a schematic diagram of the electronic device in a horizontal orientation, or the electronic device being in a horizontal orientation with... Figure 4 The vertical orientation in Figure (a) has a certain tilt angle, or the electronic device is in contact with... Figure 4 The horizontal postures shown in Figure (b) are postures with a certain tilt angle, which are common in scenarios where users normally use electronic devices. If a user puts the electronic device in their pocket while walking or exercising, the electronic device may be in a head-down posture, which is not the posture used by the user during normal use. Therefore, in this embodiment, the head-down posture of the electronic device can be regarded as an abnormal posture. When the AOD function of the electronic device is set to touch display mode, clicks or touch screen operations that trigger AOD display under this abnormal posture can be unresponsive, thus achieving the purpose of preventing accidental touches.

[0077] For example, the head-down posture of an electronic device can be as follows: Figure 5As shown, the head-down posture can include a vertical head-down posture and a posture with a certain inclination angle with the vertical head-down posture. For convenience of description, the head-down posture can be referred to as a first posture in the following description, that is, the first posture represents a posture in which the top end of the electronic device is close to the ground relative to the bottom end, and the direction of the top end of the electronic device has a preset angle with the horizontal direction, where the top end of the electronic device is the end on which the camera is installed, and the preset angle is any angle in the range of [M, N], both M and N are greater than 0° and less than 180°. For example, Figure 6 As shown, assuming that the horizontal direction and the vertical direction are 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, the first posture of the electronic device is a posture in any one direction between the L direction and the P direction, and the top end of the electronic device is downward. It can be understood that the larger the range of [M, N] is, 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 electronic device used by the user is misjudged as the first posture, the range of [M, N] can be set to the range of [45°, 135°] in the embodiments of the present application.

[0078] Based on the above scenario, when the AOD function of the electronic device is set to the light touch display mode, if the electronic device is in the screen-off state, the posture of the electronic device can be determined according to the real-time data of the acceleration sensor when the event of clicking or touching the display screen is detected. If the electronic device is in the first posture, it is an abnormal posture, and the probability that the user uses the electronic device is small, so the electronic device can not respond to the event of clicking or touching the display screen, that is, AOD display is not performed, so as to reduce the power consumption of the electronic device. If the electronic device is not in the first posture, AOD display is performed normally.

[0079] For ease of understanding, the following embodiments of the present application will take an electronic device with a structure as shown in Figure 2 As shown, the electronic device has a structure as shown in the figure, and the display screen of the electronic device is prevented from being touched by mistake according to the method provided by the embodiments of the present application.

[0080] Figure 7 is a flowchart of an example of the method for preventing the display screen from being touched by mistake provided by the embodiments of the present application. The method is executed by an electronic device, the AOD function of the electronic device is turned on, and the light touch display mode is set. The method comprises the following steps.

[0081] S101, in the case that the electronic device is in a screen-off state and a first operation is detected, obtaining sensor data.

[0082] The first operation can be an operation of a user clicking or touching the display screen. If the electronic device is in an off state (i.e., an OFF state) and the first operation is detected, AOD display should be performed, but in order to prevent a false touch, the sensor data is obtained first, and then it is determined whether the operation is a false touch operation according to the sensor data. If the operation is a false touch operation, the AOD display is not performed.

[0083] In some embodiments, the sensor data can be data collected by an acceleration sensor.

[0084] In some embodiments, the sensor data can be data collected by an acceleration sensor.

[0084] S102, determining whether the electronic device is in the first posture according to the sensor data.

[0085] The first posture is a posture in which the head of the electronic device is downward. According to the definition of the first posture, the electronic device can determine an angle (which can be denoted as a first angle) between the top end direction of the electronic device and the horizontal direction according to the sensor data. If the first angle calculated at this time is within the range of [M, N] corresponding to the preset angle, it is determined that the electronic device is in the first posture. If the first angle is not within the range of [M, N] corresponding to the preset angle, it is determined that the electronic device is not in the first posture.

[0086] In some embodiments, in the case that the sensor data is data collected by an acceleration sensor, i.e., the sensor data is acceleration data, the electronic device can calculate the first angle according to the acceleration data.

[0087] For example, the acceleration data can include three-axis acceleration values (x, y, z), such as (x, y, z) = (156.97095, -3.0434287, 2.3492842). The electronic device can calculate the corresponding yaw, pitch, and roll based on the three-axis acceleration values. The first angle corresponds to the pitch. Alternatively, the electronic device can calculate the first angle based on the relationship of atan2((float)(0-y), z) x 180 / π. Then, if the first angle is within the range of [M, N], it is determined that the electronic device is in the first posture.

[0088] S103, if the electronic device is in the first posture, the AOD interface is not displayed, and the off state is maintained.

[0089] S104, if the electronic device is not in the first posture, the AOD interface is displayed 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 a false 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, 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 need to work 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, for example, register 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, in order 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 that the electronic device is determined to be in the first posture according to the first frame of sensor data, but the electronic device changes to a posture that is not the first posture soon, and at this time, the AOD interface is still not displayed according to the result obtained from the first frame of sensor data.

[0092] It can be understood that the embodiments of the present application are only for the scenario that 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 anti-mis-touch method of the display screen, when the AOD function is set to a light touch display mode, if the electronic device is in a screen-off state, the posture of the electronic device can be determined according to the real-time data of the acceleration sensor when the event of clicking or touching the display screen is detected, and then it is determined whether to respond to the event of clicking or touching the display screen according to the posture of the electronic device, so as to determine whether to perform AOD display, so as to achieve the purpose of anti-mis-touch and reduce the power consumption of the electronic device.

[0094] To support the implementation process of the embodiments shown in the above Figure 7 The embodiments of the present application can also divide the system architecture of the electronic device, as shown in Figure 8 The electronic device can include an AP processor, an ADSP processor, a sensor, and a display screen, and the like.

[0095] The AP processor is a main processor responsible for the main data processing flow in the electronic device, and can control the working state of the display screen and the like. The ADSP processor is in communication connection with the sensor (such as an acceleration sensor), the sensor can transmit sensor data to the ADSP processor, and then the ADSP processor transmits the sensor data to the AP processor for processing.

[0096] When the electronic device is in the screen-off state, the AP processor can be in a sleep state, but the ADSP processor is still working in 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. For example, in a layered architecture Android system, the software is divided into several layers, each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer.

[0098] The application layer can include a series of application packages. As shown in Figure 8 , the application package can include an AOD application, and other applications, which can include, for example, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. The AOD application can perform a process of determining the posture of the electronic device according to the sensor data.

[0099] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0100] As shown in Figure 8 , the application framework layer can include a sensor management service (SMS), a power management service (PMS), a display composition service (SurfaceFlinger), and a display service (Display).

[0101] The SMS can receive a data request of an application layer to obtain corresponding data from a driver of a kernel layer. For example, the AOD application can send a data request to the SMS to request sensor data, and the SMS obtains the sensor data from a corresponding sensor driver and returns the sensor data to the AOD application. The PMS can also receive a data instruction of an application layer to control hardware to power on and the like through a driver of a kernel layer. For example, the AOD application can send a state switching instruction (such as switching to a DOZE state) to the PMS, and the PMS powers on the display through the display driver to display the AOD interface and the like. The SurfaceFlinger is a system service, and a function thereof is to receive buffer data of different layers to synthesize and then send to a display device to display. The Display can receive some parameter data of the SurfaceFlinger and modify a state bit of the Display according to the parameter. The change of the state bit can be monitored by the AOD application, and when the AOD application monitors the changed data, the PMS can be instructed to perform corresponding processing. For example, in the embodiment of the present application, the PMS can call the SurfaceFlinger interface to instruct the display driver to switch to the DOZE state, and at the same time, the SurfaceFlinger transmits a power mode parameter to the Display. When the AOD application monitors that the Display has switched to the DOZE state, the PMS can be instructed to turn off the backlight display.

[0102] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0103] The core library includes two parts: one part is a function function that needs to be called by the java language, and the other part is the core library of the Android.

[0104] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java file of the application layer and the application framework layer into a binary file. The virtual machine is used to perform the management of the object life cycle, the stack management, the thread management, the security and exception management, and the garbage collection and the like.

[0105] The system library can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (for example, OpenGL ES), a 2D graphics engine (for example, SGL), and the like. The surface manager is used to manage a display subsystem and provides a plurality of applications with fusion of 2D and 3D layers. The media libraries support playback and recording of a plurality of commonly used audio, video formats, and static image files, and the like. The media libraries can support a plurality of audio and video encoding formats, for example, MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, and the like. The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, and the like. The 2D graphics engine is a drawing engine for 2D drawing.

[0106] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a sensor driver, and the like.

[0107] The ADSP processor can be deployed with a sensor management system, which can receive data collected by a sensor and transmit the data to a sensor driver in a kernel layer of an AP processor. The SMS can obtain sensor data from the corresponding sensor driver when needed.

[0108] The sensor can include a touch sensor, an acceleration sensor, and the like. The touch sensor is used to detect a user's click or touch operation on the display screen. The acceleration sensor is used to collect acceleration data.

[0109] In the system architecture shown in FIG. 1, Figure 8 On the basis of the system architecture shown in FIG. 1, Figure 9 FIG. 6 shows a timing interaction schematic diagram of a method for preventing accidental touch of a display screen according to an embodiment of the present application. The method can include the following steps.

[0110] S11, the electronic device is in an off-screen state, and a touch sensor detects a first operation.

[0111] The first operation can be a user's click or touch operation on the display screen. It can be understood that the electronic device should have started the AOD function and set the light touch display mode at this time.

[0112] S12, the touch sensor sends a first event to an AOD application.

[0113] The first event can 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 ACC.

[0115] To reduce the power consumption of the sensor, the ACC can be in a dormant state when the electronic device is in a screen-off state, and the AOD application can request to register the ACC to activate the ACC and collect acceleration data when the AOD application needs to obtain acceleration data.

[0116] S14, the SMS requests acceleration data from the ACC through the sensor driver.

[0117] S15, the ACC returns acceleration data to the SMS through the sensor driver.

[0118] That is, the SMS can obtain acceleration data collected by the ACC through the sensor driver. In some implementations, the SMS can request the ACC to obtain only the first frame of acceleration data.

[0119] S16, the SMS sends the acceleration data to the AOD application.

[0120] S17, the AOD application sends a second request to the SMS to cancel the registration of the ACC.

[0121] That is, after the AOD application receives the acceleration data, the ACC can be immediately canceled to reduce the power consumption of the ACC.

[0122] S18, the AOD application determines whether the electronic device is in the first posture according to the acceleration data.

[0123] The process in which the AOD application determines whether the electronic device is in the first posture can be referred to the description of S102 above, and will not be described 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 and the above first operation is most likely a mis-touch operation, the AOD application can receive but not process the first event, does not trigger the display of the AOD interface, and continues to keep the original screen-off state of the electronic device.

[0126] S20, if the electronic device is not in the first posture, the AOD application sends a third request to the PMS to switch to the DOZE state.

[0127] That is, if the electronic device is not in the first posture, the above 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, the PMS calls the SurfaceFlinger interface.

[0129] S22, SurfaceFlinger simultaneously passes the setPowerMode parameter to the display driver and the Display, indicating switching the DOZE state.

[0130] S23, the display driver powers on the display screen.

[0131] S24, the AOD application listens to the Display that has switched the DOZE state.

[0132] For the steps of S21-S24, that is, in the process of switching the DOZE state, the PMS can call the SurfaceFlinger interface, and simultaneously pass the setPowerMode parameter to the display driver and the Display, which can represent the state of the display screen. Exemplarily, the parameter is 0 representing the OFF state, 1 representing the DOZE state, 2 representing the ON state, and 3 representing the DOZE_SUPPEND state. If the DOZE state needs to be switched at this time, the parameter value passed by the SurfaceFlinger to the display driver and the Display simultaneously can be 1.

[0133] After the display driver receives the above parameter, the display screen can be powered on. Since the AOD application cannot directly obtain the parameter change data of the display driver, the data change of the Display can be subsequently listened to by the AOD application. For example, after the SurfaceFlinger passes the setPowerMode parameter to the Display, the value of a certain state bit in the Display changes, representing that the DOZE state has been switched, and the change of the state bit can be listened to by the AOD application.

[0134] In some implementations, the AOD application can register to listen to the state bit change event in the Display in advance, such as through the onRegist mechanism. Optionally, the AOD application can complete the registration and listening 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 listening through the onDisplayChanged() function, and listen to that the Display has switched the DOZE state.

[0135] S25, the AOD application sends a fourth request to the PMS, requesting to display the back light.

[0136] S26, the PMS lowers the back light to the display driver.

[0137] S27, the display driver sets the back light to 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 backlight display, and finally display the AOD interface, that is, in the case that the electronic device is not in the first posture, the AOD interface is displayed in response to the first operation.

[0139] It can be understood that the AOD application can generate a view corresponding to the AOD interface when it is determined that the electronic device is not in the first posture, and transmit the view to the 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 anti-mis-touch method of the display screen can be used when the AOD function is set to a light touch display mode. If the electronic device is in a screen-off state, the posture of the electronic device can be determined according to real-time data of the acceleration sensor when an event of clicking or touching the display screen is detected, and then it is determined whether to respond to the event of clicking or touching the display screen according to the posture of the electronic device, so as to determine whether to perform AOD display, thereby achieving the purpose of preventing mis-touch and reducing the power consumption of the electronic device.

[0141] For the above Figure 9 The AOD application receives the first event, and obtains acceleration data to determine the posture of the electronic device. The process will be described in detail in an embodiment, Figure 10 is a flowchart of another example of the anti-mis-touch method of the display screen provided by the embodiment of the present application, which can specifically include:

[0142] S31, the AOD application receives the first event.

[0143] The first event here is the event sent by the touch sensor after detecting the first operation, that is, the user clicks or touches the display screen at this time. It can be a normal operation to trigger AOD display, or it can be a mis-touch. Therefore, the AOD application can determine whether it is a mis-touch based on the following process to prevent mis-touch.

[0144] S32, determine whether the electronic device has no proximity light sensor and gyroscope sensor and has acceleration sensor, if yes, execute S33, if not, execute S41.

[0145] Because in the case that the electronic device has a proximity light sensor and a gyroscope sensor, the related art can determine the mis-touch behavior based on the data collected by the two sensors, and the embodiment of the present application is aimed at an electronic device which only has an acceleration sensor (ACC). Therefore, the AOD application can determine whether the electronic device has no proximity light sensor and gyroscope sensor. If yes, continue the subsequent process, if not, respond to the first operation and execute the process of S41 to normally display the AOD interface.

[0146] S33, instructing the main thread to wait for a first time length, and instructing the sub-thread to register the ACC.

[0147] Here, the purpose of making the main thread wait for the first time length is to wait for the ACC to report acceleration data, and to perform a subsequent judgment process, i.e., the main thread delays processing the first event. Optionally, the first time length can be 80 milliseconds (ms), and the main thread can use a PostDelay mechanism to delay processing the first event.

[0148] In some implementations, after the main thread starts waiting, the main thread waiting message can also be written to the waiting queue.

[0149] S34, whether the AOD application obtains acceleration data within the first time length, if yes, S35 is executed, if not, the sub-thread is instructed to cancel the registration of the ACC, and S41 is executed.

[0150] If the AOD application obtains the acceleration data reported by the ACC (i.e., the acceleration data transmitted through the SMS) within the first time length that the main thread waits, the posture of the electronic device can be determined according to the acceleration data. If the acceleration data is not obtained within the first time length, i.e., the main thread has waited for the first time length, the main thread cannot wait for a long time any more, so as 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 is responded to, and the process of normally displaying the AOD interface in S41 is executed.

[0151] In some implementations, here the AOD application can only obtain the first frame data of the acceleration data, so as to reduce the 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, if yes, S36 is executed, if not, S37 is executed.

[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, and will not be described here.

[0154] S36, removing the main thread waiting message, and assigning a preset state bit to a first value.

[0155] S37, removing the main thread waiting message, and assigning a preset state bit to a second value.

[0156] Here, the AOD application can set a state bit in advance, assign the state bit to the first value when the electronic device is in the first posture, and assign the state bit to the second value when the electronic device is not in the first posture. At the same time, the main thread waiting message is removed regardless of whether the electronic device is in the first posture or not, so that the main thread performs a subsequent processing process. Exemplarily, the first value can be 1, and the second value can be 0.

[0157] S38, indicating that the sub-thread cancels the registration of ACC.

[0158] Wherein, since the AOD application has acquired acceleration data and analyzed, the posture of the electronic device is determined, at this time, the sub-thread can cancel the registration of ACC in time to reduce the power consumption of ACC.

[0159] S39, the AOD application judges whether the state bit is the first value, if yes, S40 is executed, if not, S41 is executed.

[0160] S40, the AOD application does not process the first event, and does not trigger the display of the AOD interface.

[0161] In the case where the state bit is the first value, that is, the electronic device is in the first posture, the first operation is probably a false touch operation, 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 original screen-off state of the electronic device.

[0162] S41, the AOD application requests the PMS to switch the DOZE state and display the AOD interface.

[0163] In the case where the state bit is not the first value, that is, the electronic device is not in the first posture, the first operation is probably a normal touch operation, and the electronic device needs to switch from the OFF state to the DOZE state and display the AOD interface. Therefore, the AOD application can send a request to the PMS to request switching the DOZE state.

[0164] The implementation process of S41 can refer to the description of S20-S27, which will not be repeated here.

[0165] The false touch prevention method of the display screen, when the AOD function is set to a light touch display mode, if the electronic device is in a screen-off state, when detecting an event of clicking or touching the display screen, the posture of the electronic device can be judged according to the real-time data of the acceleration sensor, and then whether to respond to the event of clicking or touching the display screen is determined according to the posture of the electronic device, to determine whether to perform AOD display, to achieve the purpose of false touch prevention, and to reduce the power consumption of the electronic device.

[0166] The above describes the anti-mis-touch method of the display screen in detail. It can be understood that the electronic device includes hardware and / or software modules for performing the above functions. Those skilled in the art should easily realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented in hardware or a combination of hardware and computer software. Whether a certain function is implemented in hardware or computer software driven 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 beyond the scope of the present application.

[0167] The embodiments of the present application can divide the functional modules of the electronic device according to the above method examples. For example, each functional module such as a detection unit, a processing unit, and a display unit can be divided according to each function. Alternatively, two or more functions can be integrated in one module. The integrated module can be implemented in hardware or software functional module. It should be noted that the division of the modules in the embodiments of the present application is illustrative, and is only a logical function division. Actual implementation can have another division manner.

[0168] It should be noted that all related contents of each step involved in the above method embodiments can be cited in the function description of the corresponding functional module, which will not be repeated here.

[0169] The electronic device provided by the embodiments of the present application is used to execute the anti-mis-touch method of the display screen, and thus can achieve the same effect as the above implementation method.

[0170] In the case of integrated units, the electronic device can further include a processing module, a storage module, and a communication module. The processing module can be used to control and manage the actions of the electronic device. The storage module can be used to support the electronic device to execute program codes and data. The communication module can be used to support the communication between the electronic device and other devices.

[0171] The processing module can be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure of the present application. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of digital signal processors and microprocessors, and the like. The storage module can be a memory. The communication module can be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and the like, which interacts with other electronic devices.

[0172] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device related to the embodiment can be a device with the structure as shown in the figure. Figure 2

[0173] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the anti-mis-touch method of the display screen in any of the above embodiments. The storage medium can 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 various storage medium capable of storing program codes.

[0174] The embodiment of the present application further provides a computer program product, when the computer program product runs on a computer, the computer program product makes the computer execute the related steps to realize the anti-mis-touch method of the display screen in the above embodiment.

[0175] In addition, the embodiment of the present application further provides a device, which can be a chip, a component or a module. The device can include a processor and a memory connected to each other. When the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip executes the anti-mis-touch method of the display screen in the above method embodiments.

[0176] The electronic device, the computer readable storage medium, the computer program product or the chip provided by the embodiment can be used to execute the corresponding method provided above, and the beneficial effects thereof can refer to the beneficial effects of the corresponding method provided above, which will not be described here.

[0177] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is 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 can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit.

[0179] ​The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for preventing accidental touches on a display screen, the method being executed by an electronic device, characterized in that, The electronic device has started an always-on display (AOD) function, and is set to a light touch display mode, and the method comprises the following steps: In a case where the electronic device is in an off-screen state and a first operation is detected, if the electronic device is in a first posture, an AOD interface is not displayed, and the electronic device continues to be in the off-screen state; If the electronic device is not in the first posture, an AOD interface is displayed in response to the first operation, wherein the first operation comprises a click or touch operation of a user on a display screen of the electronic device, the first posture represents a posture in which a top end of the electronic device is close to the ground relative to a bottom end, and a direction of the top end of the electronic device has a preset angle with a horizontal direction, the top end of the electronic device is an end on which a camera is installed, and the preset angle is any angle in a range of [M, N], M and N are both greater than 0° and less than 180°.

2. The method of claim 1, wherein, After the first operation is detected, the method further comprises the following steps: The first operation is received, a sensor is registered, sensor data is obtained from the sensor, and the sensor is unregistered.

3. The method of claim 2, wherein, In a case where the electronic device is not in the first posture, the sensor is registered, the sensor data is obtained from the sensor, and the sensor is unregistered, comprising the following steps: Before the AOD interface is displayed, the sensor is registered, the sensor data is obtained from the sensor, and the sensor is unregistered.

4. The method according to claim 2 or 3, characterized in that, If the electronic device is in the first posture, the AOD interface is not displayed, comprising the following steps: It is determined, based on the sensor data, that the electronic device is in the first posture, 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, the AOD interface is displayed in response to the first operation, comprising the following steps: It is determined, based on the sensor data, that the electronic device is not in the first posture, and the AOD interface is displayed in response to the first operation.

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 of claim 6, wherein, The first operation is received, and the sensor is registered, comprising the following steps: The first operation is received, and it is determined whether the electronic device has no proximity light sensor and gyroscope sensor and has the acceleration sensor; If the electronic device has no proximity light sensor and gyroscope sensor and 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 sensor data is obtained from the sensor, and the sensor is unregistered, comprising the following steps: If the sensor data is obtained within a first time period, it is determined, based on the sensor data, whether the electronic device is in the first posture, and the sensor is unregistered; If the sensor data is not obtained within the first time period, the sensor is unregistered, and the AOD interface is displayed.

9. The method of claim 8, wherein, The sensor data obtained by the electronic device is first frame sensor data.

10. An electronic device, comprising: The electronic device comprises: One or more processors, and a memory; The memory is coupled with the one or more processors, and is configured to store computer program codes, the computer program codes comprising computer instructions, which are invoked by the one or more processors to cause the electronic device to perform the method according to any one of claims 1-9.

11. A chip system, characterized by The chip system is applied to an electronic device, and the chip system comprises one or more processors configured to invoke computer instructions to cause the electronic device to perform the method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises instructions which, when executed on an electronic device, cause the electronic device to perform the method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Screen-off display method and electronic equipment

    CN110012153A

  • Screen-off display control method, electronic equipment and medium

    CN116450069A