Display screen control method and apparatus and terminal
First Claim
Patent Images
1. A method comprising:
- obtaining, by a terminal, a height difference between a height of an initial position of the terminal and a height of a target position of the terminal and an acceleration of the terminal, wherein the terminal moves from the initial position to the target position;
determining, by the terminal, according to the height difference and the acceleration, whether a first predetermined movement is satisfied, wherein the first predetermined movement requires that the height difference be a positive number and be greater than or equal to a first height threshold and that an absolute value of the acceleration be greater than or equal to a first acceleration threshold;
triggering the terminal to turn on a display screen of the terminal, in response to determining that the first predetermined movement is satisfied;
determining, by the terminal, according to the height difference and the acceleration, whether a second predetermined movement is satisfied, wherein the second predetermined movement requires that the height difference be a negative number and be less than or equal to a second height threshold and that an absolute value of the acceleration be greater than or equal to the first acceleration threshold; and
triggering the terminal to turn off the display screen, in response to determining that the second predetermined movement is satisfied.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention disclose a display screen control method and apparatus, and a terminal. The method in the embodiments of the present invention includes obtaining a height difference and an acceleration that are generated when a terminal moves from an initial position to a target position and determining, according to the height difference and the acceleration, whether a first predetermined movement is satisfied. The method also includes when the first predetermined movement is satisfied, triggering the terminal to turn on a display screen.
10 Citations
15 Claims
-
1. A method comprising:
-
obtaining, by a terminal, a height difference between a height of an initial position of the terminal and a height of a target position of the terminal and an acceleration of the terminal, wherein the terminal moves from the initial position to the target position; determining, by the terminal, according to the height difference and the acceleration, whether a first predetermined movement is satisfied, wherein the first predetermined movement requires that the height difference be a positive number and be greater than or equal to a first height threshold and that an absolute value of the acceleration be greater than or equal to a first acceleration threshold; triggering the terminal to turn on a display screen of the terminal, in response to determining that the first predetermined movement is satisfied; determining, by the terminal, according to the height difference and the acceleration, whether a second predetermined movement is satisfied, wherein the second predetermined movement requires that the height difference be a negative number and be less than or equal to a second height threshold and that an absolute value of the acceleration be greater than or equal to the first acceleration threshold; and triggering the terminal to turn off the display screen, in response to determining that the second predetermined movement is satisfied. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A terminal comprising:
-
a processor; and a non-transitory computer readable storage medium storing a program for execution by the processor, the program including instructions to; obtain a height difference between a height of an initial position of the terminal and a height of a target position of the terminal and an acceleration, wherein the terminal moves from the initial position to the target position; determine, according to the height difference and the acceleration, whether a first predetermined movement is satisfied, wherein the first predetermined movement requires that the height difference be a positive number and be greater than or equal to a first height threshold and that an absolute value of the acceleration be greater than or equal to a first acceleration threshold; trigger the terminal to turn on a display screen in response to the first predetermined movement is satisfied; determine, according to the height difference and the acceleration, whether a second predetermined movement is satisfied, wherein the second predetermined movement requires that the height difference be a negative number and be less than or equal to a second height threshold and that an absolute value of the acceleration be greater than or equal to the first acceleration threshold; and trigger the terminal to turn off the display screen, in response to the second predetermined movement is satisfied. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer readable storage medium storing a program for execution by a processor, the program including instructions for:
-
obtaining a height difference between a height of an initial position of a terminal and a height of a target position of the terminal and an acceleration generated by the terminal moving from the initial position to the target position; determining, according to the height difference and the acceleration, whether a first predetermined movement is satisfied, wherein the first predetermined movement requires that the height difference be a positive number and be greater than or equal to a first height threshold and that an absolute value of the acceleration be greater than or equal to a first acceleration threshold; triggering the terminal to turn on a display screen, in response to determining that the first predetermined movement is satisfied; determining, by the terminal, according to the height difference and the acceleration, whether a second predetermined movement is satisfied, wherein the second predetermined movement requires that the height difference be a negative number and be less than or equal to a second height threshold and that an absolute value of the acceleration be greater than or equal to the first acceleration threshold; and triggering the terminal to turn off the display screen, in response to determining that the second predetermined movement is satisfied. - View Dependent Claims (12, 13, 14, 15)
-
Specification