Method, device and storage medium for controlling screen state
Abstract:
The present disclosure relates to a method, device and storage medium for controlling a screen state. The method includes: transmitting an ultrasonic transmission-signal for N times within a preset time period when detecting that an ultrasonic sensing function of the terminal is enabled, N being an integer greater than 1; receiving an ultrasonic receipt signal; generating N determination results of whether the terminal is covered, wherein each of the N determination results is based on one of the N times transmission of the ultrasonic transmission-signal and receipt of the corresponding ultrasonic receipt signal; and determining that the terminal is covered and switching the screen state of the terminal from a turn-on state to a turn-off state, when at least one of the N determination results indicates that the terminal is covered. In the technical solution, whether the terminal is covered is determined by obtaining a value of the determination result for successive multiple times within a certain time period. Thus, it may improve the accuracy of the determination, and overcome the defects in the related art where incorrect determination causes misjudgment operation such as a screen flickering. As a result, user experience can be improved.
Public/Granted literature
Information query
Patent Agency Ranking
0/0