The subject matter herein generally relates to electronic devices, and more particularly to an electronic device and a method thereof for unlocking a display of the electronic device.
A display of an electronic device can be locked to secure the electronic device. Generally, the display of the electronic device can be unlocked, for example, by inputting a code, scanning a fingerprint, or inputting a touch gesture on the display.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.
Several definitions that apply throughout this disclosure will now be presented.
The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
In general, the word “module” as used hereinafter refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware such as in an erasable-programmable read-only memory (EPROM). It will be appreciated that the modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
The electronic device 1 can further include an unlocking system 10 for unlocking the display 11. The unlocking system 10 can include a plurality of modules, such as a setting module 101, a first detecting module 102, a second detecting module 103, a third detecting module 104, a fourth detecting module 105, an executing module 106, and a notification module 107. The modules 101-107 can include one or more software programs in the form of computerized codes stored in the storage device 13. The computerized codes include instructions executed by the processing device 12 to provide functions for the modules 101-107.
The setting module 101 can define the plurality of orientations of the electronic device. In at least one embodiment, the setting module 101 can define a first orientation, a second orientation, a third orientation, and a fourth orientation. The first, second, third, and fourth orientations can be oriented 90 degrees away from each other along a common rotation direction. For example, the first orientation of the electronic device can be such that the display 11 is face up and parallel to a horizontal plane, the second orientation can be such that the electronic device 1 is rotated 90 degrees along a rotation direction away from the first orientation, the third orientation can be such that the display 11 is face down and parallel to the horizontal plane and rotated 90 degrees along the rotation direction away from the second orientation, and the fourth orientation can be such that the electronic device 1 is rotated 90 degrees along the rotation direction away from the third orientation. A direction of rotating the electronic device 1 from the first orientation to the second orientation can be defined by the setting module 101.
The first detecting module 102 can detect the first orientation of the electronic device 1 after a process of unlocking the display 11 is initialized. The first orientation can be detected within a first predetermined time duration set by the setting module 101. When the first orientation is detected within the first predetermined time duration, the first detecting module 102 controls the vibrator 15 to vibrate in a first vibration mode. The first orientation can be detected within a predetermined angle range set by the setting module 101. In at least one embodiment, the first vibration mode is a short vibration.
The second detecting module 103 can detect the second orientation of the electronic device 1 after the first orientation is detected. The second orientation can be detected within a second predetermined time duration set by the setting module 101. When the second orientation is detected within the second predetermined time duration, the second detecting module 103 controls the vibrator 15 to vibrate in the first vibration mode. The second orientation can be detected within a predetermined angle range set by the setting module 101. In at least one embodiment, after the second orientation is detected, the second detecting module 103 can save information of the second orientation to the storage device 13. The information of the second orientation can include angle information of the second orientation.
The third detecting module 104 can detect the third orientation of the electronic device 1 after the second orientation is detected. The third orientation can be detected within a third predetermined time duration set by the setting module 101. When the third orientation is detected within the third predetermined time duration, the third detecting module 104 controls the vibrator 15 to vibrate in the first vibration mode. The third orientation can be detected within a predetermined angle range set by the setting module 101.
The fourth detecting module 105 can detect the fourth orientation of the electronic device 1 after the third orientation is detected. The fourth orientation can be detected within a fourth predetermined time duration set by the setting module 101. When the fourth orientation is detected within the fourth predetermined time duration, the fourth detecting module 105 controls the vibrator 15 to vibrate in the first vibration mode. The fourth orientation can be detected within a predetermined angle range set by the setting module 101. In at least one embodiment, the fourth detecting module 105 detects the fourth orientation of the electronic device 1 by calculating an angle change in orientation according to the information of the second orientation saved in the storage device 13.
In at least one embodiment, the first, second, third, and fourth predetermined time durations can be the same. In other embodiments, the first, second, third, and fourth predetermined time durations can be different.
The executing module 106 can initialize the process of unlocking the display 11, and unlock the display 11 after the first, second, third, and fourth orientations of the electronic device 1 are detected in sequence.
The notification module 107 can control the vibrator 15 to vibrate in a second vibration mode when any of the second, third, and fourth orientations is not detected within the second, third, or fourth time durations, respectively. When the vibrator 15 is controlled to vibrate in the second vibration mode, the process of unlocking the display 11 can be returned to detecting the first orientation within the first predetermined time duration.
At block 201, a process of unlocking the display can be initialized.
At block 202, a first orientation of the electronic device can be detected. The first orientation can be detected within a first predetermined time duration. When the first orientation is detected within the first predetermined time duration, the electronic device can be controlled to vibrate in a first vibration mode, and block 203 is implemented. If the first orientation is not detected within the first predetermined time duration, block 207 is implemented. The first orientation can be detected within a predetermined angle range. In at least one embodiment, the first vibration mode is a short vibration, and the first orientation of the electronic device is such that the display is face up and parallel to a horizontal plane.
At block 203, a second orientation of the electronic device can be detected. The second orientation can be detected within a second predetermined time duration. When the second orientation is detected within the second predetermined time duration, the electronic device can be controlled to vibrate in the first vibration mode, and block 204 is implemented. If the second orientation is not detected within the second predetermined time duration, block 207 is implemented. The second orientation can be detected within a predetermined angle range. In at least one embodiment, the second orientation of the electronic device is such that the electronic device is rotated 90 degrees along a rotation direction away from the first orientation.
At block 204, a third orientation of the electronic device can be detected. The third orientation can be detected within a third predetermined time duration. When the third orientation is detected within the third predetermined time duration, the electronic device can be controlled to vibrate in the first vibration mode, and block 205 is implemented. If the third orientation is not detected within the third predetermined time duration, block 207 is implemented. The third orientation can be detected within a predetermined angle range. In at least one embodiment, the third orientation of the electronic device is such that the display is face down and parallel to the horizontal plane and rotated 90 degrees along the rotation direction away from the second orientation.
At block 205, a fourth orientation of the electronic device can be detected. The fourth orientation can be detected within a fourth predetermined time duration. When the fourth orientation is detected within the fourth predetermined time duration, the electronic device can be controlled to vibrate in the first vibration mode, and block 206 is implemented. If the fourth orientation is not detected within the fourth predetermined time duration, block 207 is implemented. The fourth orientation can be detected within a predetermined angle range. In at least one embodiment, the fourth orientation of the electronic device is such that the electronic device is rotated 90 degrees along the rotation direction away from the third orientation.
At block 206, the display of the electronic device can be unlocked.
At block 207, the electronic device can be controlled to vibrate in a second mode to notify that the corresponding orientation of the electronic device was not detected within the corresponding predetermined time duration, and block 402 can be implemented.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure up to, and including, the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410459337.9 | Sep 2014 | CN | national |