WO2015003648A1 - 终端设备及其加解锁方法 - Google Patents

终端设备及其加解锁方法 Download PDF

Info

Publication number
WO2015003648A1
WO2015003648A1 PCT/CN2014/082009 CN2014082009W WO2015003648A1 WO 2015003648 A1 WO2015003648 A1 WO 2015003648A1 CN 2014082009 W CN2014082009 W CN 2014082009W WO 2015003648 A1 WO2015003648 A1 WO 2015003648A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
virtual key
virtual
received
predetermined
Prior art date
Application number
PCT/CN2014/082009
Other languages
English (en)
French (fr)
Inventor
彭海
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2015003648A1 publication Critical patent/WO2015003648A1/zh
Priority to US14/961,280 priority Critical patent/US10599329B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04104Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a terminal device and an unlocking method thereof. Background technique
  • the LCD Liquid Crystal Display
  • the phone enters the sleep state
  • the virtual button and the AA (Active Area) area on the touch panel (TP) do not respond to the touch operation.
  • the virtual button and the touch screen are simultaneously locked.
  • the unlocked mobile phone needs to be unlocked, press the power button or the lock screen button again to make the LCD bright screen
  • the mobile phone kernel program and the touch screen are all awakened
  • the virtual button and the touch screen are simultaneously unlocked
  • the virtual button and the touch screen are simultaneously
  • the AA area on the top can respond to the touch operation, and unlock the virtual button of the mobile phone and the touch screen.
  • the technical problem to be solved by the present invention is: How to prevent the erroneous operation of the virtual key to interrupt the application being processed when the touch screen of the terminal device is in the unlocked state.
  • the present invention provides an unlocking method for unlocking a virtual button area of the terminal device when the touch screen of the terminal device is in an unlocked state, the method comprising:
  • the virtual key area of the terminal device is set to be a locked state or an unlocked state.
  • the predetermined unlocking condition includes a predetermined length of time and a predetermined order, and determining that the received virtual key event satisfies a predetermined unlocking condition
  • the virtual button area of the terminal device is a locked state or an unlocked state, including: determining that, in the predetermined time length range, the reporting order of the plurality of virtual key events received from the first time to the last time satisfies the predetermined In sequence, the virtual button area of the terminal device is set to be locked or unlocked.
  • the method before determining that the received virtual key event meets a predetermined unlocking condition, the method includes:
  • the predetermined unlocking condition further includes a predetermined length of time and a predetermined number of key presses, where the determining The received virtual key event satisfies a predetermined unlocking condition, and the virtual key area of the terminal device is set to be locked or unlocked, and further includes:
  • the determining, that the received number of times of the multiple virtual button events is satisfied, within the predetermined length of time The predetermined number of keystrokes, setting the virtual button area of the terminal device to a locked state or an unlocked state including:
  • the virtual button area of the terminal device is set to be locked or unlocked;
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the first The number of keystrokes, setting the virtual button area of the terminal device to an unlocked state or a locked state; or
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the second button number And setting a virtual button area of the terminal device to an unlocked state or a locked state.
  • the present invention provides a terminal device, including: a receiving unit, configured to receive a plurality of reported virtual button events when the touch screen of the terminal device is in an unlocked state;
  • the processing unit is configured to determine that the received virtual key event satisfies a predetermined unlocking condition, and set the virtual key area of the terminal device to be a locked state or an unlocked state.
  • the predetermined unlocking condition includes a predetermined length of time and a predetermined sequence
  • the processing unit is further configured to determine, within the predetermined length of time, from The reporting sequence of the plurality of virtual key events received from the first time to the last time satisfies the predetermined order, and the virtual key area of the terminal device is set to be locked or unlocked.
  • the processing unit is further configured to determine, before determining that the received virtual key event meets a predetermined unlocking condition The escalation incident reported.
  • the predetermined unlocking condition further includes a predetermined length of time and a predetermined number of key times
  • the processing unit The method is further configured to: determine that the received number of times of the multiple virtual button events meets a predetermined number of button times, and set the virtual button area of the terminal device to be locked or unlocked.
  • the processing unit is further configured to: When the number of times the first virtual button event is received is the first button number, the virtual button area of the terminal device is set to be locked or unlocked; or
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of reporting the first virtual button event is the first The number of two keystrokes is set to the unlocked state or the locked state of the virtual button area of the terminal device;
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the first The number of keystrokes, setting the virtual button area of the terminal device to an unlocked state or a locked state; or
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the second button number And setting a virtual button area of the terminal device to an unlocked state or a locked state.
  • the virtual button area of the terminal device when the touch screen of the terminal device is in the unlock state, if the system of the terminal device meets the unlocking condition in the received multiple virtual button events, the virtual button area of the terminal device may be set to the locked state or the unlocked state. Therefore, the virtual button area of the terminal device can be independently unlocked. When the user mistakenly operates on the virtual button when using the touch screen, the virtual button area is locked, so that the application being processed does not need to be interrupted, and the user experience is improved.
  • FIG. 1 a is a flowchart of an unlocking method according to Embodiment 1 of the present invention.
  • FIG. 1b is a schematic diagram of a virtual button in an unlocking method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a method for adding and unlocking according to Embodiment 2 of the present invention
  • FIG. 3a is a flowchart of a method for adding and unlocking according to Embodiment 3 of the present invention.
  • FIG. 3b is a schematic diagram of an application scenario of a locking method according to Embodiment 3 of the present invention.
  • FIG. 3 is a schematic diagram of an application scenario of an encryption and unlocking method according to Embodiment 3 of the present invention
  • FIG. 4 is a flowchart of an encryption and unlocking method according to Embodiment 4 of the present invention.
  • 5 is a structural block diagram of a terminal device according to Embodiment 5 of the present invention
  • 6 is a structural block diagram of a terminal device according to Embodiment 6 of the present invention
  • FIG. 7 is a structural block diagram of a terminal device according to Embodiment 7 of the present invention. detailed description
  • FIG. 1 is a flowchart of a method for adding and unlocking according to Embodiment 1 of the present invention. As shown in FIG. 1 , the unlocking method is used to unlock and unlock the virtual button area of the terminal device when the touch screen of the terminal device is in the unlock state, which may include the following steps:
  • Step 101 Receive multiple virtual button events reported
  • the virtual keys in the terminal device such as a mobile phone, a tablet, etc.
  • the number of virtual buttons of different types of terminal devices may be different, and may be one or multiple.
  • FIG. 1B it is a schematic diagram of a virtual button in an unlocking method according to Embodiment 1 of the present invention.
  • the virtual button may include, for example, a menu button, a home button, a back button, or a search button. Wait.
  • the touch screen driver reports the virtual button event corresponding to the virtual button to the system of the terminal device in response to the user's click operation.
  • Step 102 Determine that the received virtual key event satisfies a predetermined unlocking condition, and set a virtual key area of the terminal device to be a locked state or an unlocked state.
  • the terminal device's system can acquire virtual key events through a function that acquires virtual keys. For example: In Android (Android) system, you can modify the getevent function in an Eventhub.cpp program in the terminal device system, you can add a global virtual button lock in the getevent function. Aspirations. In the getevent function, the virtual button event reported by the touch screen driver in response to the user's click operation may be acquired. The virtual key event includes a time parameter. When the system receives a reported virtual key event, the system may increase the judgment to determine whether the unlocking condition is satisfied.
  • Android Android
  • the lock flag bit in the getevent function can be set to the unlock state.
  • the touch screen and the virtual button of the terminal device are simultaneously unlocked.
  • the terminal device is processing a certain In an application, in order to prevent the application from being suspended in advance by accidentally pressing the virtual button during the processing of the application, the user can independently lock or unlock the virtual button area of the terminal device.
  • the predetermined locking condition is: Slide from the first virtual button of the terminal device to the last virtual button. If the system of the terminal device obtains the first virtual key event reported from the getevent function, it is determined whether there are other virtual button events of the terminal device in the predetermined time length range, and the last one is reported. After the virtual key event, the lifting event is reported. If these conditions are met, the lock flag is locked. After the lock, if a virtual key event occurs, the virtual key event can no longer be reported to the system. At this time, the touch screen of the terminal device is still in a responsive unlock state, and the user can still perform operations such as games, even if the virtual button is accidentally pressed during the operation, the application will not be suspended in advance.
  • the predetermined locking condition is the reverse order of the unlocking condition
  • the system detects the last virtual key event reported from the getevent function, it starts to determine whether there are other terminal devices within a predetermined time length range.
  • the virtual key events are reported in reverse order, and the lifting event is reported after the first virtual key event is reported. If yes, the lock flag can be set to the unlocked state, and the virtual key event is reported to the system again.
  • the virtual button area of the terminal device may be set to the locked state. Or unlocking the state. Therefore, the virtual button area of the terminal device can be independently unlocked.
  • the virtual button area is locked, so that the application being processed does not need to be interrupted, and the application is improved. user experience.
  • FIG. 2 is a flowchart of a method for adding and unlocking according to Embodiment 2 of the present invention.
  • the unlocking condition includes a predetermined length of time and a predetermined sequence
  • the step 102 determines that the received virtual key event satisfies a predetermined unlocking condition
  • the setting of the virtual key area of the terminal device to the locked state or the unlocked state may specifically include:
  • Step 201 Determine that, in the range of the predetermined length of time, the reporting order of the plurality of virtual key events received from the first time to the last time satisfies the predetermined sequence, and set the virtual key area of the terminal device to Locked or unlocked.
  • the system of the terminal device may preset a time length range and an order for determining, and when the system of the terminal device receives the virtual button event reported in response to the user operation, the virtual button event may carry a time parameter, Indicates the moment when the virtual button event occurs.
  • the system can determine whether the interval between the first received virtual key event and the last received virtual key event is within a predetermined length of time; in addition, the system can also determine whether the received virtual key event is received. It is reported in the order in which the system is scheduled. If yes, it indicates that the user operation satisfies the predetermined order in the predetermined unlocking conditions. If the predetermined time length and the predetermined order are satisfied, the virtual button area can be set to Locked or unlocked. If there is a condition that is not met, you can end the process of adding and unlocking, and process these virtual button events according to the normal process of the system.
  • the terminal device has, for example, four virtual buttons from left to right, which are a menu button, a home button, a back button, and a search button.
  • the predetermined time length is 100 ms (microseconds)
  • the predetermined order is from the menu key through the home button, the return button to the search button.
  • the user slides from the menu key through the home button and the back button to the search button.
  • the virtual button events received by the system in sequence are: click event of the menu key, click event of the home key, click event of the return key, The click event of the search key, at this time, it can be judged that the lock condition is satisfied, and the virtual key area can be placed in the lock state.
  • the predetermined order in the unlocking condition and the locking condition may be the same, for example: In the locked state of the virtual button area, within 100 ms, the virtual button events received by the system in sequence are: a click event of the menu key, a click of the home key The virtual button area can be unlocked by the event, the click event of the return key, and the click event of the search key. Further, the predetermined order in the unlocking condition and the locking condition may be different, for example, the predetermined order in the unlocking condition is the reverse order of the locking condition.
  • the number of virtual buttons involved in the locking condition and the unlocking condition may be the same, as described above. Both the example lock condition and the unlock condition require four virtual key events to be received in a predetermined order. The number of virtual keys involved in the locking condition and the unlocking condition may also be different.
  • the locking condition adopts four virtual key events of the above example, and the unlocking condition only uses two virtual key events from the search key sliding to the return key.
  • the predetermined length of time in the locking condition and the unlocking condition may be the same or different, for example, all are lOOms, or the locking condition is 100ms, and the unlocking condition is 200ms.
  • the order of the length of the time and the order of the reporting may be changed. For example, the order of reporting may be determined first, then the length of time range may be determined, or both.
  • the virtual button area of the terminal device may be set to the locked state. Or unlocking the state. Therefore, the virtual button area of the terminal device can be independently unlocked.
  • the virtual button area is locked, so that the application being processed does not need to be interrupted, and the application is improved. user experience.
  • FIG. 3a is a flowchart of a method for adding and unlocking according to Embodiment 3 of the present invention.
  • 3a and FIG. 2 have the same meanings as the steps of FIG. 3a.
  • the main difference from the previous embodiment is: before determining that the received virtual key event satisfies a predetermined unlocking condition
  • the unlocking method includes: Step 301: Determine a lifting event that is received by the reporting.
  • the lifting event can be determined by power and coordinates. For example: When the finger clicks to the up state, the force applied to the virtual button area changes. In this case, the system can receive the escalated event. When the finger slides out of the virtual button area, the range of the click exceeds the coordinate range of the virtual button area. In this case, the system can also receive the reported lifting event. The system can use the lift event as a trigger for the judgment.
  • FIG. 3b is a schematic diagram of an application scenario of a locking method according to Embodiment 3 of the present invention. As shown in FIG. 3b, the specific process may include the following steps:
  • Step 401 The system of the terminal device receives a plurality of virtual button events reported in response to the user operation, for example: if the user clicks a menu button in the virtual keyboard area, the click event of the reported menu button may be received;
  • Step 402 Determine whether a lifting event is received, and if yes, perform step 403; otherwise, return Going back to step 401, waiting to receive other virtual key events and continuing processing. Or if the lifting event is not received after the predetermined length of time has elapsed, the locking process can be ended and processed according to the normal workflow.
  • Step 403 Determine whether the reporting sequence of the virtual key event received by the user within a predetermined length of time satisfies a predetermined sequence, and if yes, execute step 404; otherwise, end the locking process, according to a normal workflow process, Continue to perform step 401;
  • FIG. 3 is a schematic diagram of an application scenario of an unlocking method according to Embodiment 3 of the present invention.
  • the terminal device for example, the mobile phone can have four virtual buttons from left to right, namely menu key (me nu ), home button (home), return button (back), search button (search).
  • menu key me nu
  • home button home
  • return button back
  • search button search
  • the predetermined order in the locking condition is from the menu key through the home button, the return button to the search button.
  • After receiving the lifting event it starts to determine whether the order of the four virtual button events received 100ms before the lifting event is: the click event of the menu key, the click event of the home button, the click event of the return key, the search The click event of the key, if yes, the virtual button area can be placed in a locked state.
  • the predetermined length of the terminal device is 100ms, but within 100ms, the lifting event has not been received, and it can be determined that the unlocking condition is not satisfied, and the unlocking process ends.
  • the user directly raises the menu button after clicking, and the system will receive the click event and the lift event of the reported menu button, but only the click event of the menu button does not satisfy the order of the lock condition. You can end the locking process and follow the normal workflow of the click event of the menu button.
  • the unlocking process is similar to the locking process.
  • the predetermined sequence and time length range in the unlocking condition may be the same as or different from the locking condition.
  • Step 404 Set the virtual button area to the locked state.
  • the virtual key lock flag bit in the getevent function can be set to the locked state.
  • the virtual button area of the terminal device may be set to the locked state. Or unlocking the state. Therefore, the virtual button area of the terminal device can be independently unlocked.
  • the virtual button area is locked, so that the application being processed does not need to be interrupted, and the application is improved. user experience.
  • FIG. 4 is a flowchart of a method for adding and unlocking according to Embodiment 4 of the present invention. 4 is the same as that of FIGS. 1a, 2, and 3a, and has the same meaning as shown in FIG. 4, and the main method of adding the unlocking method in the above embodiment.
  • the predetermined unlocking condition may include a predetermined length of time and a predetermined number of key presses
  • step 102 determines that the received virtual key event satisfies a predetermined unlocking condition, and sets a virtual key area of the terminal device.
  • the locked state or the unlocked state may also include:
  • Step 501 Determine that the number of times of receiving the plurality of virtual key events exceeds a predetermined number of key presses within the predetermined length of time, and setting a virtual key area of the terminal device to be a locked state or an unlocked state. .
  • the virtual button may be unlocked in response to the number of times the user clicks on the virtual button, and may include any of the following cases.
  • Case 1 When the number of times of receiving the first virtual button event is the first button number, the virtual button area of the terminal device is set to be locked or unlocked.
  • the virtual button area when the virtual button area is unlocked, the virtual button area can be placed in the locked state by clicking the menu button three times in succession.
  • the virtual button area can be unlocked by clicking the menu button three times in succession.
  • the virtual button area of the terminal device is set to be locked or unlocked, and the report of the first virtual button event is received.
  • the virtual button area of the terminal device is set to an unlocked state or a locked state.
  • the virtual button area when the virtual button area is unlocked, the virtual button area can be placed in the locked state by clicking the menu button three times in succession. When the virtual button area needs to be unlocked, the virtual button area can be placed by continuously clicking the menu button twice. Unlocked state;
  • the locking and unlocking are corresponding. That is to say, when the number of times of receiving the first virtual button event is the first button number, when the virtual button area of the terminal device is set to the locked state, when the first virtual button event is received If the number of times of reporting is the second button number, the virtual button area of the terminal device is set to an unlocked state. Or, when the number of times of receiving the first virtual button event is the first button number, if the virtual button area of the terminal device is set to the unlock state, the number of times of reporting the first virtual button event is the first In the case of two button times, the virtual button area of the terminal device is set to be locked. The following three or four cases are similar.
  • Case 3 when the number of times of receiving the first virtual button event is the first button number, the setting is set.
  • the virtual button area of the terminal device is an unlocked state or an unlocked state.
  • the virtual button area of the terminal device is set to an unlocked state or a locked state.
  • the virtual button area when the virtual button area is unlocked, the virtual button area can be placed in the locked state by clicking the menu button three times in succession.
  • the virtual button area can be unlocked by clicking the search button three times in succession. status.
  • Case 4 When the number of times of receiving the first virtual button event is the first button number, the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is The number of two keystrokes is set to the unlocked state or the locked state of the virtual button area of the terminal device.
  • the virtual button area in the unlocked state of the virtual button area, the virtual button area can be placed in the locked state by clicking the menu button three times in succession.
  • the virtual button area can be placed by continuously clicking the search button twice. Unlocked status.
  • the first button number and the second button number are preferably at least twice, and can be applied to a terminal device having a plurality of virtual buttons.
  • Case 1 and Case 2 can also be specifically applied to a terminal device such as an Apple mobile phone having only one virtual button.
  • the number of key presses in this embodiment can be used in combination with other unlocking conditions in the above embodiment. For example: simultaneously satisfying a predetermined order, a predetermined length of time, and a predetermined number of key presses; or, simultaneously satisfying a predetermined order, a predetermined length of time, a received lift event, and a predetermined number of key presses.
  • the virtual button area of the terminal device may be set to the locked state. Or unlocking the state. Therefore, the virtual button area of the terminal device can be independently unlocked.
  • the virtual button area is locked, so that the application being processed does not need to be interrupted, and the application is improved. user experience.
  • FIG. 5 is a structural block diagram of a terminal device according to Embodiment 5 of the present invention. As shown in FIG. 5, the terminal device 50 includes:
  • the receiving unit 51 is configured to receive more reports when the touch screen of the terminal device 50 is in an unlocked state.
  • Virtual button events
  • the processing unit 52 is configured to determine that the received virtual key event satisfies a predetermined unlocking condition, and set the virtual key area of the terminal device 50 to be a locked state or an unlocked state.
  • the terminal device 50 in this embodiment may perform any one of the above-described embodiments.
  • the processing unit 52 of the terminal device 50 can acquire a virtual key event by a function of acquiring a virtual key.
  • a virtual key event For example: In Android (Android) system, you can modify the getevent function in an Eventhub.cpp program in the terminal device 50 system, you can add a global virtual button lock flag in the getevent function.
  • the getevent function the virtual button event reported by the touch screen driver in response to the user's click operation may be acquired.
  • the virtual key event includes a time parameter. When the system receives a virtual button event reported, the system may increase the judgment to determine whether the unlocking condition is satisfied.
  • the virtual button and the touch screen may be in a responsive state, that is, an unlocked state.
  • the terminal device 50 is processing an application
  • the user can lock the virtual button area of the terminal device 50.
  • the receiving unit 51 may receive the virtual key event reported in response to the user's click operation, and then the processing unit 52 determines that the user operation satisfies all the predetermined unlocking conditions.
  • the virtual button area can be placed in a locked state, and no longer responds to the user's virtual key operation, but can still respond to the user's operation on the touch screen.
  • the unlocking method when the virtual button of the terminal device 50 is in the locked state is similar to the locking method described above, and details are not described herein again.
  • the processing unit may set the virtual button area of the terminal device to be added.
  • the lock state or the unlock state therefore, the virtual button area of the terminal device can be independently unlocked, and when the user mistakenly operates on the virtual button when using the touch screen, the virtual button area is locked, so that the application being processed does not need to be interrupted. Improve the user experience.
  • FIG. 6 is a structural block diagram of a terminal device according to Embodiment 6 of the present invention. As shown in FIG. 6, the terminal device 60 includes:
  • the receiving unit 61 is configured to receive the reported multiple virtual key events when the touch screen of the terminal device 60 is in the unlocked state;
  • the processing unit 62 is configured to determine that the received virtual key event satisfies a predetermined unlocking condition, and set the virtual key area of the terminal device 60 to be a locked state or an unlocked state.
  • the predetermined unlocking condition includes a predetermined length of time and a predetermined order, and the processing unit 62 is further configured to determine, within the predetermined length of time, from The reporting sequence of the plurality of virtual key events received from the first time to the last time satisfies the predetermined order, and the virtual key area of the terminal device 60 is set to be a locked state or an unlocked state.
  • the system of the terminal device 60 may preset a range of time lengths and sequences for determining.
  • the virtual button event may carry a time parameter. Indicates the moment when the virtual button event occurs.
  • the processing unit 62 may determine whether the interval between the first received virtual button event and the last received virtual button event is within a predetermined length of time, and further, determine whether the received multiple virtual button events are in accordance with the system. In a predetermined order, if the predetermined length of time and the predetermined order are satisfied, the processing unit 62 may set the virtual button area to the locked state or the unlocked state. If one of the conditions is not satisfied, the unlocking process may be ended to resume the normal processing of the terminal device 60.
  • the processing unit 62 is further configured to determine that the reported lifting event is received before determining that the received virtual key event satisfies a predetermined unlocking condition.
  • the lifting event can be determined by power and coordinates. For example: When the finger clicks the state to the raised state, the force applied to the virtual button area changes, in which case the receiving unit 61 can receive the reported lifting event. When the finger slides out of the virtual button area, the range of the click exceeds the coordinate range of the virtual button area. In this case, the receiving unit 61 can also receive the reported lifting event. Processing unit 62 may use the raise event as a trigger condition for the determination. For a specific example, refer to the related description in the unlocking method of Embodiment 3.
  • the predetermined unlocking condition further includes a predetermined length of time and a predetermined number of key presses
  • the processing unit 62 is further configured to: determine the predetermined length of time range The number of times of receiving the plurality of virtual key events is a predetermined number of key presses, and the virtual key area of the terminal device 60 is set to a locked state or an unlocked state.
  • processing unit 62 is further configured to:
  • the virtual button area of the terminal device 60 is set to be locked or unlocked, and the number of times of reporting the first virtual button event is The second button times, the virtual button area of the terminal device 60 is set to an unlocked state or a locked state; or
  • the virtual button area of the terminal device 60 is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the number of times.
  • a virtual button area of the terminal device 60 is set to an unlocked state or a locked state;
  • the virtual button area of the terminal device 60 is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the second button. The number of times, the virtual button area of the terminal device 60 is set to an unlocked state or a locked state.
  • the processing unit may set the virtual button area of the terminal device to be added.
  • the lock state or the unlock state therefore, the virtual button area of the terminal device can be independently unlocked, and when the user mistakenly operates on the virtual button when using the touch screen, the virtual button area is locked, so that the application being processed does not need to be interrupted. Improve the user experience.
  • FIG. 7 is a structural block diagram of a terminal device according to Embodiment 7 of the present invention.
  • the terminal device 70 may be a host server having a computing capability, a personal computer PC, or a portable computer or terminal that can be carried.
  • the specific embodiments of the present invention do not limit the specific implementation of the computing node.
  • the terminal device 70 includes a processor (processor ⁇ 1, a communication interface 72, a memory array 73, and a bus 74.
  • the processor 71, the communication interface 72, and the memory 73 are completed by the bus 74. Communication.
  • the communication interface 72 is configured to communicate with a network element, where the network element includes, for example, a virtual machine management center and a shared memory.
  • the processor 71 is for executing a program.
  • the processor 71 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • ASIC Application Specific Integrated Circuit
  • the memory 73 is used to store files.
  • Memory 73 may contain high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • Memory 73 can also be a memory array.
  • the memory 73 may also be partitioned, and the blocks may be combined into a virtual volume according to a certain rule.
  • the above program may be a program code including computer operating instructions.
  • the program is specifically configured to: when the touch screen of the terminal device is in an unlocked state, the virtual button area of the terminal device is unlocked, specifically:
  • the virtual key area of the terminal device is set to be a locked state or an unlocked state.
  • the predetermined unlocking condition includes a predetermined length of time and a predetermined order, and the determining that the received virtual key event satisfies a predetermined unlocking condition, and setting a virtual key area of the terminal device to be locked Status or unlock status, including:
  • the method includes:
  • the predetermined unlocking condition further includes a predetermined length of time and a predetermined number of key presses, wherein the determined virtual key event satisfies a predetermined unlocking condition, and the virtual key area of the terminal device is set to The locked state or the unlocked state also includes:
  • the determining determines the plurality of virtualities received within the predetermined length of time
  • the number of times of reporting the key event is a predetermined number of key presses, and the virtual key area of the terminal device is set to be locked or unlocked, including:
  • the virtual button area of the terminal device is set to be locked or unlocked;
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of reporting the first virtual button event is the first The number of two keystrokes is set to the unlocked state or the locked state of the virtual button area of the terminal device;
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the first The number of keystrokes, setting the virtual button area of the terminal device to an unlocked state or a locked state; or
  • the virtual button area of the terminal device is set to be locked or unlocked, and the number of times of receiving the second virtual button event is the second button number And setting a virtual button area of the terminal device to an unlocked state or a locked state.
  • the function is implemented in the form of computer software and sold or used as a stand-alone product, it may be considered to some extent that all or part of the technical solution of the present invention (for example, a part contributing to the prior art) is It is embodied in the form of computer software products.
  • the computer software product is typically stored in a computer readable storage medium, including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of various embodiments of the present invention. .
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了一种终端设备及其加解锁方法,其中,该加解锁方法用于在终端设备的触摸屏处于解锁状态下,对所述终端设备的虚拟按键区域进行加解锁,该方法包括:接收上报的多个虚拟按键事件;确定所接收到的虚拟按键事件满足预定的加解锁条件,设置所述终端设备的虚拟按键区域为加锁状态或者解锁状态。本发明实施例能够将终端设备的虚拟按键区域独立进行加解锁,在触摸屏解锁状态下,能够将虚拟按键区域设置为加锁状态,用户在使用触摸屏时误操作到虚拟按键上时,不会中断正在处理的应用,提高了用户体验。

Description

说 明 书
终端设备及其加解锁方法 技术领域
本发明涉及移动通信领域, 尤其涉及一种终端设备及其加解锁方法。 背景技术
目前, 很多终端设备例如: 手机、 平板电脑等采用电容或电阻触摸屏, 为 了防止终端设备在不使用时误触发屏幕, 多具备锁触摸屏和解锁触摸屏的功 能。 例如: 大部分采用 Android操作系统的手机的触摸屏下方具有 3或 4个虚拟 按键, 如分别是菜单键 (menu) 、 主页键 (home) 、 返回键 (back) 、 搜索 键 (search) 等。 为了避免在手机闲置时被误操作, 在手机静置一段时间, 或 者用户主动按下电源 (power) 按键或锁屏的按键, 手机可以进入锁屏状态。 在锁屏状态下, LCD (Liquid Crystal Display, 液晶显示器)灭屏, 手机进入休 眠状态, 虚拟按键和触摸屏 (Touch Pannel, TP) 上的 AA (Active Area, 活动 区域) 区都不响应触摸操作, 此时, 虚拟按键和触摸屏同时被加锁。 当需要对 已经加锁的手机进行解锁时,再次按下 power按键或锁屏的按键,可以使得 LCD 亮屏, 手机内核程序、 触摸屏都被唤醒, 虚拟按键和触摸屏同时被解锁, 虚拟 按键和触摸屏上的 AA区都可以响应触摸操作, 完成手机虚拟按键和触摸屏的 解锁。
在手机屏幕越来越大, 边框越来越窄的情况下, 使用触摸屏时非常容易误 按到虚拟按键上,现有的加解锁方案中,在虚拟按键和触摸屏的解锁的状态下, 如果用户按到虚拟按键,会中止当前处理的应用,例如:玩游戏如水果忍者时, 需要手指在全屏上滑动操作时, 经常会误按到主页键或者返回键使得游戏中 止, 影响用户体验。 发明内容
有鉴于此, 本发明所要解决的技术问题是: 在终端设备的触摸屏处于解锁 状态下, 如何防止误操作虚拟按键中断正在处理的应用。 为了实现上述目的, 在第一方面, 本发明提供了一种加解锁方法, 用于在 终端设备的触摸屏处于解锁状态下, 对所述终端设备的虚拟按键区域进行加解 锁, 该方法包括:
接收上报的多个虚拟按键事件;
确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备 的虚拟按键区域为加锁状态或者解锁状态。
结合第一方面, 在第一种可能的实现方式中, 预定的加解锁条件包括预定 的时间长度和预定的顺序,所述确定所接收到的虚拟按键事件满足预定的加解 锁条件, 设置所述终端设备的虚拟按键区域为加锁状态或者解锁状态, 包括: 确定在所述预定的时间长度范围内, 从第一次到最后一次接收到的多个虚 拟按键事件的上报顺序满足所述预定的顺序, 设置所述终端设备的虚拟按键区 域为加锁状态或者解锁状态。
结合第一方面的第一种可能的实现方式, 在第二种可能的实施方式中, 在 确定所接收到的虚拟按键事件满足预定的加解锁条件之前, 包括:
确定收到上报的抬起事件。
结合第一方面及第一方面的任一种可能的实现方式,在第三种可能的实施 方式中, 所述预定的加解锁条件还包括预定的时间长度和预定的按键次数, 所 述确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备的 虚拟按键区域为加锁状态或者解锁状态, 还包括:
确定在所述预定的时间长度范围内, 接收到的所述多个虚拟按键事件的上 报次数满足预定的按键次数, 设置所述终端设备的虚拟按键区域为加锁状态或 者解锁状态。
结合第一方面的第三种可能的实现方式, 在第四种可能的实施方式中, 所 述确定在所述预定的时间长度范围内, 接收到的所述多个虚拟按键事件的上报 次数满足预定的按键次数, 设置所述终端设备的虚拟按键区域为加锁状态或者 解锁状态, 包括:
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或者解锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键事件的上 报次数为第二按键次数, 则设置所述终端设备的虚拟按键区域为解锁状态或加 锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为所述第一按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状 态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为第二按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状态。
在第二方面, 本发明提供了一种终端设备, 其特征在于, 包括: 接收单元, 用于在终端设备的触摸屏处于解锁状态下, 接收上报的多个虚 拟按键事件;
处理单元, 用于确定所接收到的虚拟按键事件满足预定的加解锁条件, 设 置所述终端设备的虚拟按键区域为加锁状态或者解锁状态。
结合第二方面, 在第一种可能的实现方式, 所述预定的加解锁条件包括预 定的时间长度和预定的顺序, 所述处理单元还用于确定在所述预定的时间长度 范围内, 从第一次到最后一次接收到的多个虚拟按键事件的上报顺序满足所述 预定的顺序, 设置所述终端设备的虚拟按键区域为加锁状态或者解锁状态。
结合第二方面的第一种可能的实现方式, 在第二种可能的实施方式中, 所 述处理单元还用于在确定所接收到的虚拟按键事件满足预定的加解锁条件之 前, 确定收到上报的抬起事件。
结合第二方面及第二方面的任一种可能的实现方式,在第三种可能的实施 方式中, 所述预定的加解锁条件还包括预定的时间长度和预定的按键次数, 所 述处理单元还用于: 确定在所述预定的时间长度范围内, 接收到的所述多个虚 拟按键事件的上报次数满足预定的按键次数, 设置所述终端设备的虚拟按键区 域为加锁状态或者解锁状态。
结合第二方面的第三种可能的实现方式, 在第四种可能的实施方式中, 所 述处理单元还用于: 当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或者解锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键事件的上 报次数为第二按键次数, 则设置所述终端设备的虚拟按键区域为解锁状态或加 锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为所述第一按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状 态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为第二按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状态。
本发明实施例在终端设备的触摸屏处于解锁状态下, 如果终端设备的系统 在收到的多个虚拟按键事件满足加解锁条件, 可以将终端设备的虚拟按键区域 设置为加锁状态或者解锁状态, 因此, 能够对终端设备的虚拟按键区域独立进 行加解锁, 用户在使用触摸屏时误操作到虚拟按键上时, 虚拟按键区域为加锁 状态, 则无需中断正在处理的应用, 提高了用户体验。 附图说明
包含在说明书中并且构成说明书的一部分的说明书附图与说明书一起示 出了本发明的示例性实施例、 特征和方面, 并且用于解释本发明的原理。
图 1 a为本发明实施例一的加解锁方法的流程图 ·'
图 lb为本发明实施例一的加解锁方法中虚拟按键的示意图;
图 2为本发明实施例二的加解锁方法的流程图;
图 3a为本发明实施例三的加解锁方法的流程图;
图 3b为本发明实施例三的加锁方法的一个应用场景的示意图;
图 3c为本发明实施例三的加解锁方法的一个应用场景的示意图; 图 4为本发明实施例四的加解锁方法的流程图 ·'
图 5为本发明实施例五的终端设备的结构框图; 图 6为本发明实施例六的终端设备的结构框图;
图 7为本发明实施例七的终端设备的结构框图。 具体实施方式
以下将参考附图详细说明本发明的各种示例性实施例、 特征和方面。 附图 中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的 各种方面, 但是除非特别指出, 不必按比例绘制附图。
在这里专用的词"示例性 "意为 "用作例子、实施例或说明性"。这里作为"示 例性"所说明的任何实施例不必解释为优于或好于其它实施例。
另外, 为了更好的说明本发明, 在下文的具体实施方式中给出了众多的具 体细节。本领域技术人员应当理解,没有这些具体细节,本发明同样可以实施。 在另外一些实例中, 对于大家熟知的方法、 手段、 元件和电路未作详细描述, 以便于凸显本发明的主旨。
实施例一
图 la为本发明实施例一的加解锁方法的流程图。 如图 la所示, 该加解锁方 法用于在终端设备的触摸屏处于解锁状态下,对所述终端设备的虚拟按键区域 进行加解锁, 具体可以包括以下歩骤:
歩骤 101、 接收上报的多个虚拟按键事件;
其中, 终端设备例如手机、 平板电脑等中的虚拟按键一般与触摸屏是分离 的, 可以位于触摸屏的下方或其他位置。 不同类型的终端设备的虚拟按键的个 数可以不同, 可以是一个, 也可以是多个。 如图 lb所示, 为本发明实施例一的 加解锁方法中虚拟按键的示意图, 虚拟按键可以包括如菜单键(menu)、 主页 键 (home) 、 返回键 (back) 或搜索键 (search) 等。 本发明实施例中, 当用 户点击终端设备的某一虚拟按键时, 响应于用户的点击操作, 触摸屏驱动会向 终端设备的系统上报该虚拟按键对应的虚拟按键事件。
歩骤 102、 确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所 述终端设备的虚拟按键区域为加锁状态或者解锁状态。
终端设备的系统可以通过一个获取虚拟按键的函数获取虚拟按键事件。例 如: 在安卓 (Android) 系统中, 可以修改终端设备系统中的一个 Eventhub.cpp 程序中的 getevent函数, 可以在 getevent函数中增加一个全局的虚拟按键的锁标 志位。 在 getevent函数中, 可以获取触摸屏驱动响应用户点击操作上报的虚拟 按键事件, 虚拟按键事件中包括时间参数, 当系统接收到上报的一个虚拟按键 事件时, 可以增加判断, 确定是否满足加解锁条件。
在终端设备例如: 手机、 平板电脑等开机后, getevent函数中的锁标志位 可以设置为解锁状态,这时,终端设备的触摸屏和虚拟按键同时处于解锁状态, 此时, 在终端设备正在处理某一应用时, 为了防止处理该应用过程中误按到虚 拟按键而提前中止该应用,用户可以对终端设备的虚拟按键区域独立进行加锁 或解锁。
以加锁过程为例, 如果预定的加锁条件为: 从终端设备的第一个虚拟按键 滑动到最后一个虚拟按键。 如果终端设备的系统从 getevent函数中获取到上报 的第一个虚拟按键事件, 则开始判断在预定的时间长度范围内是否有终端设备 的其他几个虚拟按键事件的按照顺序上报, 并且上报最后一个虚拟按键事件之 后才上报抬起事件,如果这些条件都满足,将锁标志位置为加锁状态,加锁后, 如果后续有虚拟按键事件发生, 可以不再向系统上报虚拟按键事件。 此时终端 设备的触摸屏仍然处于可响应的解锁状态,用户仍然可以进行游戏等应用的操 作, 即使在操作过程中误按到虚拟按键也不会提前中止应用。
相似地, 在解锁过程, 如果预定的加锁条件为解锁条件的逆序, 系统从 getevent函数中检测到上报的最后一个虚拟按键事件时, 开始判断在预定的时 间长度范围内是否有终端设备其他几个虚拟按键事件按照逆序上报, 并且在上 报第一个虚拟按键事件之后才上报抬起事件, 如果是, 可以将锁标志位置为解 锁状态, 重新向系统上报虚拟按键事件。
本实施例的加解锁方法, 在终端设备的触摸屏处于解锁状态下, 如果终端 设备的系统在收到的多个虚拟按键事件满足加解锁条件, 可以将终端设备的虚 拟按键区域设置为加锁状态或者解锁状态, 因此, 能够对终端设备的虚拟按键 区域独立进行加解锁, 用户在使用触摸屏时误操作到虚拟按键上时, 虚拟按键 区域为加锁状态, 则无需中断正在处理的应用, 提高了用户体验。
实施例二
图 2为本发明实施例二的加解锁方法的流程图。 图 2与图 la标号相同的歩骤 具有相同的含义, 如图 2所示, 与上一实施例的主要区别在于: 所述预定的加 解锁条件包括预定的时间长度和预定的顺序, 歩骤 102确定所接收到的虚拟按 键事件满足预定的加解锁条件, 设置所述终端设备的虚拟按键区域为加锁状态 或者解锁状态具体可以包括:
歩骤 201、 确定在所述预定的时间长度范围内, 从第一次到最后一次接收 到的多个虚拟按键事件的上报顺序满足所述预定的顺序, 设置所述终端设备的 虚拟按键区域为加锁状态或者解锁状态。
具体地, 终端设备的系统可以预先设定用于判断的时间长度范围和顺序, 当终端设备的系统接收到响应用户操作上报的虚拟按键事件时, 该虚拟按键事 件中可以携带一个时间参数, 用于表示该虚拟按键事件发生的时刻。 系统可以 判断第一次接收到的虚拟按键事件与最后一次接收到的虚拟按键事件上报的 间隔时间是否在预定的时间长度范围内; 此外, 系统还可以判断接收到的这一 系列虚拟按键事件是否是按照系统预定的顺序上报的, 如果是, 则说明用户操 作满足预定的加解锁条件中的预定的顺序,在预定的时间长度和预定的顺序都 满足的情况下, 可以将虚拟按键区域设置为加锁状态或解锁状态。 如果有一个 条件不满足, 则可以结束加解锁流程, 按照系统正常的过程处理这些虚拟按键 事件。
例如, 终端设备例如: 手机从左到右可以依次有四个虚拟按键, 分别为菜 单键、 主页键、 返回键、 搜索键。 以加锁过程为例, 在触摸屏和虚拟按键区域 均处于解锁的状态下, 假设预定的时间长度为 100ms (微秒) , 预定的顺序为 从菜单键经过主页键、 返回键到搜索键。 在 100ms内, 用户从菜单键依次经过 主页键、 返回键一直滑动到搜索键, 系统按照顺序收到的虚拟按键事件为: 菜 单键的点击事件、主页键的点击事件、返回键的点击事件、搜索键的点击事件, 这时, 可以判断满足加锁条件, 可以将虚拟按键区域置于加锁状态。 解锁条件 和加锁条件中预定的顺序可以相同, 例如: 在虚拟按键区域处于加锁状态下, 在 100ms内, 系统按照顺序收到的虚拟按键事件为: 菜单键的点击事件、 主页 键的点击事件、 返回键的点击事件、 搜索键的点击事件, 可以将虚拟按键区域 置于解锁状态。 此外, 解锁条件和加锁条件中预定的顺序也可以不同, 例如, 解锁条件中预定的顺序为加锁条件的逆序。
进一歩地, 加锁条件和解锁条件涉及的虚拟按键的个数可以相同, 如上述 例子加锁条件和解锁条件都需要按照预定的顺序接收到四个虚拟按键事件。加 锁条件和解锁条件涉及的虚拟按键的个数也可以不相同, 如加锁条件采用上述 例子的四个虚拟按键事件,解锁条件仅采用从搜索键滑动到返回键两个虚拟按 键事件。
进一歩地, 加锁条件和解锁条件中预定的时间长度范围可以相同, 也可以 不同, 例如都为 lOOms, 或者加锁条件为 100ms, 解锁条件为 200ms。
其中, 时间长度范围和上报顺序的判断顺序可以改变, 例如, 可以先判断 上报顺序, 再判断时间长度范围, 或者二者同时判断。
本实施例的加解锁方法, 在终端设备的触摸屏处于解锁状态下, 如果终端 设备的系统在收到的多个虚拟按键事件满足加解锁条件, 可以将终端设备的虚 拟按键区域设置为加锁状态或者解锁状态, 因此, 能够对终端设备的虚拟按键 区域独立进行加解锁, 用户在使用触摸屏时误操作到虚拟按键上时, 虚拟按键 区域为加锁状态, 则无需中断正在处理的应用, 提高了用户体验。
实施例三
图 3a为本发明实施例三的加解锁方法的流程图。 图 3a与图 la、 图 2标号相 同的歩骤具有相同的含义, 如图 3a所示, 与上一实施例的主要区别在于: 在确 定所接收到的虚拟按键事件满足预定的加解锁条件之前, 该加解锁方法包括: 歩骤 301、 确定收到上报的抬起事件。
其中, 抬起事件可以由力量和坐标来确定。 例如: 当手指点击状态到抬起 状态, 施加在虚拟按键区域的力量会发生变化, 这种情况下, 系统会可以收到 上报的抬起事件。 当手指滑出虚拟按键区域, 则点击的范围超出了虚拟按键区 域的坐标范围, 这种情况下, 系统也会可以收到上报的抬起事件。 系统可以将 抬起事件作为判断的触发条件。
图 3b为本发明实施例三的加锁方法的一个应用场景的示意图, 如图 3b所 示, 具体流程可以包括以下歩骤:
歩骤 401、 终端设备的系统接收由于响应用户操作而上报的多个虚拟按键 事件, 例如: 如果用户点击到虚拟键盘区域中的菜单键, 则可以收到上报的菜 单键的点击事件;
歩骤 402、 判断是否收到抬起事件, 如果是, 则执行歩骤 403 ; 否则可以返 回执行歩骤 401, 等待接收到其他的虚拟按键事件后继续处理。 或者如果经过 预定的时间长度范围后, 没有收到上报的抬起事件可以结束此次加锁流程, 按 照正常工作流程处理。
歩骤 403、 判断用户在预定的时间长度范围内收到的虚拟按键事件的上报 顺序是否满足预定的顺序, 如果是, 则执行歩骤 404; 否则结束加锁流程, 按 照正常工作流程处理, 可以继续执行歩骤 401 ;
如图 3c所示, 为本发明实施例三的加解锁方法的一个应用场景的示意图。 终端设备例如:手机从左到右可以依次有四个虚拟按键,分别为菜单键 (menu)、 主页键 (home) 、 返回键 (back) 、 搜索键 (search) 。 以加锁过程为例, 假 设加锁条件中预定的顺序为从菜单键经过主页键、 返回键到搜索键。 在收到抬 起事件后,开始判断在收到抬起事件前 100ms收到的 4个虚拟按键事件的顺序是 否为: 菜单键的点击事件、 主页键的点击事件、 返回键的点击事件、 搜索键的 点击事件, 如果是, 则可以将虚拟按键区域置于加锁状态。 再如: 终端设备预 定的时间长度为 100ms, 但在 100ms内, 一直未接收到抬起事件, 可以判断为 不满足加解锁条件, 此次加解锁流程结束。 又如: 用户对菜单键进行点击操作 后直接抬起, 系统会收到上报的菜单键的点击事件和抬起事件, 但是仅收到菜 单键的点击事件并不满足加锁条件的顺序, 则可以结束加锁流程, 按照菜单键 的点击事件的正常工作流程处理。 解锁过程与加锁过程类似, 解锁条件中预定 的顺序与时间长度范围, 与加锁条件可以相同, 也可以不同。
歩骤 404、 将虚拟按键区域设置为加锁状态, 例如: 可以将 getevent函数中 的虚拟按键锁标志位设置为加锁状态。
本实施例的加解锁方法, 在终端设备的触摸屏处于解锁状态下, 如果终端 设备的系统在收到的多个虚拟按键事件满足加解锁条件, 可以将终端设备的虚 拟按键区域设置为加锁状态或者解锁状态, 因此, 能够对终端设备的虚拟按键 区域独立进行加解锁, 用户在使用触摸屏时误操作到虚拟按键上时, 虚拟按键 区域为加锁状态, 则无需中断正在处理的应用, 提高了用户体验。
实施例四
图 4为本发明实施例四的加解锁方法的流程图。 图 4与图 la、 图 2、 图 3a标 号相同的歩骤具有相同的含义, 如图 4所示, 与上述实施例中加解锁方法的主 要区别在于,所述预定的加解锁条件可以包括预定的时间长度和预定的按键次 数, 歩骤 102确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述 终端设备的虚拟按键区域为加锁状态或者解锁状态还可以包括:
歩骤 501、 确定在所述预定的时间长度范围内, 接收到的所述多个虚拟按 键事件的上报次数满足预定的按键次数, 设置所述终端设备的虚拟按键区域为 加锁状态或者解锁状态。
具体地, 可以采用响应用户对虚拟按键点击操作的次数, 对虚拟按键进行 加解锁, 可以包括以下任意一种情况。
情况一、 当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所 述终端设备的虚拟按键区域为加锁状态或者解锁状态。
例如, 在虚拟按键区域为解锁状态下, 连续点击三次菜单键就可以将虚拟 按键区域置于加锁状态, 在虚拟按键区域需要解锁时, 连续点击三次菜单键就 可以将虚拟按键区域置于解锁状态;
情况二、 当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所 述终端设备的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键 事件的上报次数为第二按键次数, 则设置所述终端设备的虚拟按键区域为解锁 状态或加锁状态。
例如, 在虚拟按键区域为解锁状态下, 连续点击三次菜单键就可以将虚拟 按键区域置于加锁状态, 在虚拟按键区域需要解锁时, 连续点击两次菜单键就 可以将虚拟按键区域置于解锁状态;
可以理解的是, 加锁与解锁是对应的。 也即是说, 当收到第一虚拟按键事 件的上报次数为第一按键次数, 则设置所述终端设备的虚拟按键区域为加锁状 态时, 则当收到所述第一虚拟按键事件的上报次数为第二按键次数, 则设置所 述终端设备的虚拟按键区域为解锁状态。 或者, 当收到第一虚拟按键事件的上 报次数为第一按键次数, 则设置所述终端设备的虚拟按键区域为解锁状态时, 则当收到所述第一虚拟按键事件的上报次数为第二按键次数, 则设置所述终端 设备的虚拟按键区域为加锁状态。 以下情况三或四也类似。 情况三、 当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述 终端设备的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的 上报次数为所述第一按键次数, 设置所述终端设备的虚拟按键区域为解锁状态 或加锁状态。
例如, 在虚拟按键区域为解锁状态下, 连续点击三次菜单键就可以将虚拟 按键区域置于加锁状态, 在虚拟按键区域需要解锁时, 连续点击三次搜索键就 可以将虚拟按键区域置于解锁状态。
情况四、 当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述 终端设备的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的 上报次数为第二按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加 锁状态。
例如, 在虚拟按键区域为解锁状态下, 连续点击三次菜单键就可以将虚拟 按键区域置于加锁状态, 在虚拟按键区域需要解锁时, 连续点击两次搜索键就 可以将虚拟按键区域置于解锁状态。
上述的情况一到情况四中,第一按键次数、第二按键次数优选为至少两次, 可以应用于具有多个虚拟按键的终端设备。 其中, 情况一和情况二还可以具体 应用到只有一个虚拟按键的终端设备例如苹果手机中。
进一歩地, 本实施例中的按键次数可以与以上实施例中的其他加解锁条件 结合使用。 例如: 同时满足预定的顺序、 预定的时间长度及预定的按键次数; 或者, 同时满足预定的顺序、 预定的时间长度、 收到抬起事件及预定的按键次 数。
本实施例的加解锁方法, 在终端设备的触摸屏处于解锁状态下, 如果终端 设备的系统在收到的多个虚拟按键事件满足加解锁条件, 可以将终端设备的虚 拟按键区域设置为加锁状态或者解锁状态, 因此, 能够对终端设备的虚拟按键 区域独立进行加解锁, 用户在使用触摸屏时误操作到虚拟按键上时, 虚拟按键 区域为加锁状态, 则无需中断正在处理的应用, 提高了用户体验。
实施例五
图 5为本发明实施例五的终端设备的结构框图。 如图 5所示, 该终端设备 50 包括:
接收单元 51, 用于在终端设备 50的触摸屏处于解锁状态下, 接收上报的多 个虚拟按键事件;
处理单元 52, 用于确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备 50的虚拟按键区域为加锁状态或者解锁状态。
具体地, 本实施例中的终端设备 50可以执行上述实施例中的任意一种加解 锁方法。终端设备 50的处理单元 52可以通过一个获取虚拟按键的函数获取虚拟 按键事件。 例如: 在安卓 (Android) 系统中, 可以修改终端设备 50系统中的 一个 Eventhub.cpp程序中的 getevent函数,可以在 getevent函数中增加一个全局的 虚拟按键的锁标志位。 在 getevent函数中, 可以获取触摸屏驱动响应用户点击 操作上报的虚拟按键事件, 虚拟按键事件中包括时间参数, 当系统接收到上报 的一个虚拟按键事件时, 可以增加判断, 确定是否满足加解锁条件。 本实施例 中的终端设备 50, 例如智能手机、 平板电脑等, 其开机时, 虚拟按键和触摸屏 都可能处于可响应状态, 即解锁状态, 此时, 在终端设备 50正在处理某一应用 时, 为了防止处理该应用过程中误按到虚拟按键而提前中止该应用, 用户可以 对终端设备 50的虚拟按键区域进行加锁。 此时, 如果用户按照预定的加解锁条 件对虚拟按键进行操作,接收单元 51可以接收到因响应用户点击操作而上报的 虚拟按键事件, 之后处理单元 52判断用户操作满足预定的所有加解锁条件时, 可以将虚拟按键区域置于加锁状态, 不再响应用户的虚拟按键操作, 而仍然可 以响应用户对触摸屏的操作。终端设备 50的虚拟按键处于加锁状态时的解锁方 法与上述的加锁方法类似, 在此不再赘述。
本实施例的终端设备中, 在终端设备的触摸屏处于解锁状态下, 如果终端 设备的接收单元收到的多个虚拟按键事件满足加解锁条件, 处理单元可以将终 端设备的虚拟按键区域设置为加锁状态或者解锁状态, 因此, 能够对终端设备 的虚拟按键区域独立进行加解锁, 用户在使用触摸屏时误操作到虚拟按键上 时,虚拟按键区域为加锁状态,则无需中断正在处理的应用,提高了用户体验。
实施例六
图 6为本发明实施例六的终端设备的结构框图。 如图 6所示, 该终端设备 60 包括:
接收单元 61, 用于在终端设备 60的触摸屏处于解锁状态下, 接收上报的多 个虚拟按键事件; 处理单元 62, 用于确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备 60的虚拟按键区域为加锁状态或者解锁状态。 进一歩地, 在 一种可能的实现方式中,所述预定的加解锁条件包括预定的时间长度和预定的 顺序, 所述处理单元 62还用于确定在所述预定的时间长度范围内, 从第一次到 最后一次接收到的多个虚拟按键事件的上报顺序满足所述预定的顺序, 设置所 述终端设备 60的虚拟按键区域为加锁状态或者解锁状态。
具体地, 终端设备 60的系统可以预先设定用于判断的时间长度范围和顺 序, 当接收单元 61接收到响应用户操作上报的虚拟按键事件时, 该虚拟按键事 件中可以携带一个时间参数, 用于表示该虚拟按键事件发生的时刻。 处理单元 62可以判断第一次接收到的虚拟按键事件与最后一次接收到的虚拟按键事件 上报的间隔时间是否在预定的时间长度范围内, 此外, 判断接收到的多个虚拟 按键事件是否按系统预定的顺序上报的,在预定的时间长度和预定的顺序都满 足的情况下, 处理单元 62可以将虚拟按键区域设置为加锁状态或解锁状态。 如 果有一个条件不满足, 则可以结束加解锁流程, 恢复终端设备 60的正常处理流 程。
进一歩地, 在一种可能的实现方式中, 所述处理单元 62还用于在确定所接 收到的虚拟按键事件满足预定的加解锁条件之前, 确定收到上报的抬起事件。
具体地, 抬起事件可以由力量和坐标来确定。 例如: 当手指点击状态到抬 起状态, 施加在虚拟按键区域的力量会发生变化, 这种情况下, 接收单元 61会 可以收到上报的抬起事件。 当手指滑出虚拟按键区域, 则点击的范围超出了虚 拟按键区域的坐标范围, 这种情况下, 接收单元 61也会可以收到上报的抬起事 件。 处理单元 62可以将抬起事件作为判断的触发条件。 具体示例可以参见实施 例三的加解锁方法中的相关描述。
进一歩地, 在一种可能的实现方式中, 所述预定的加解锁条件还包括预定 的时间长度和预定的按键次数, 所述处理单元 62还用于: 确定在所述预定的时 间长度范围内, 接收到的所述多个虚拟按键事件的上报次数满足预定的按键次 数, 设置所述终端设备 60的虚拟按键区域为加锁状态或者解锁状态。
具体地, 所述处理单元 62还用于:
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备 60的虚拟按键区域为加锁状态或者解锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备 60的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键事件的 上报次数为第二按键次数, 则设置所述终端设备 60的虚拟按键区域为解锁状态 或加锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 60的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次 数为所述第一按键次数, 设置所述终端设备 60的虚拟按键区域为解锁状态或加 锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 60的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次 数为第二按键次数, 设置所述终端设备 60的虚拟按键区域为解锁状态或加锁状 态。
情况一到情况四的具体示例可以参见实施例四的加解锁方法中的相关描 述。
本实施例的终端设备中, 在终端设备的触摸屏处于解锁状态下, 如果终端 设备的接收单元收到的多个虚拟按键事件满足加解锁条件, 处理单元可以将终 端设备的虚拟按键区域设置为加锁状态或者解锁状态, 因此, 能够对终端设备 的虚拟按键区域独立进行加解锁, 用户在使用触摸屏时误操作到虚拟按键上 时,虚拟按键区域为加锁状态,则无需中断正在处理的应用,提高了用户体验。
实施例七
图 7为本发明实施例七的终端设备的结构框图。 所述终端设备 70可以是具 备计算能力的主机服务器、个人计算机 PC、或者可携带的便携式计算机或终端 等。 本发明具体实施例并不对计算节点的具体实现做限定。
所述终端设备 70包括处理器 (processor^ 1、 通信接口(Communications Interface)72,存储器 (memory array)73和总线 74。其中,处理器 71、通信接口 72、 以及存储器 73通过总线 74完成相互间的通信。
通信接口 72用于与网元通信, 其中网元包括例如虚拟机管理中心、 共享存 处理器 71用于执行程序。 处理器 71可能是一个中央处理器 CPU, 或者是专 用集成电路 ASIC (Application Specific Integrated Circuit) , 或者是被配置成实 施本发明实施例的一个或多个集成电路。
存储器 73用于存放文件。存储器 73可能包含高速 RAM存储器,也可能还包 括非易失性存储器 (non-volatile memory), 例如至少一个磁盘存储器。存储器 73 也可以是存储器阵列。 存储器 73还可能被分块, 并且所述块可按一定的规则组 合成虚拟卷。
在一种可能的实施方式中, 上述程序可为包括计算机操作指令的程序代 码。 该程序具体可用于: 在终端设备的触摸屏处于解锁状态下, 对所述终端设 备的虚拟按键区域进行加解锁, 具体包括:
接收上报的多个虚拟按键事件;
确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备 的虚拟按键区域为加锁状态或者解锁状态。
进一歩地, 所述预定的加解锁条件包括预定的时间长度和预定的顺序, 所 述确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备的 虚拟按键区域为加锁状态或者解锁状态, 包括:
确定在所述预定的时间长度范围内, 从第一次到最后一次接收到的多个虚 拟按键事件的上报顺序满足所述预定的顺序, 设置所述终端设备的虚拟按键区 域为加锁状态或者解锁状态。
进一歩地, 在确定所接收到的虚拟按键事件满足预定的加解锁条件之前, 包括:
确定收到上报的抬起事件。
进一歩地,所述预定的加解锁条件还包括预定的时间长度和预定的按键次 数, 所述确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端 设备的虚拟按键区域为加锁状态或者解锁状态, 还包括:
确定在所述预定的时间长度范围内, 接收到的所述多个虚拟按键事件的上 报次数满足预定的按键次数, 设置所述终端设备的虚拟按键区域为加锁状态或 者解锁状态。
进一歩地, 所述确定在所述预定的时间长度范围内, 接收到的所述多个虚 拟按键事件的上报次数满足预定的按键次数, 设置所述终端设备的虚拟按键区 域为加锁状态或者解锁状态, 包括:
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或者解锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键事件的上 报次数为第二按键次数, 则设置所述终端设备的虚拟按键区域为解锁状态或加 锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为所述第一按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状 态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为第二按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状态。
本领域普通技术人员可以意识到, 本文所描述的实施例中的各示例性单元 及算法歩骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现。 这 些功能究竟以硬件还是软件形式来实现, 取决于技术方案的特定应用和设计约 束条件。专业技术人员可以针对特定的应用选择不同的方法来实现所描述的功 能, 但是这种实现不应认为超出本发明的范围。
如果以计算机软件的形式来实现所述功能并作为独立的产品销售或使用 时, 则在一定程度上可认为本发明的技术方案的全部或部分(例如对现有技术 做出贡献的部分)是以计算机软件产品的形式体现的。 该计算机软件产品通常 存储在计算机可读取的存储介质中, 包括若干指令用以使得计算机设备(可以 是个人计算机、 服务器、 或者网络设备等)执行本发明各实施例方法的全部或 部分歩骤。 而前述的存储介质包括 U盘、 移动硬盘、 只读存储器 (ROM , Read-Only Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种加解锁方法, 其特征在于, 用于在终端设备的触摸屏处于解锁状态 下, 对所述终端设备的虚拟按键区域进行加解锁, 该方法包括:
接收上报的多个虚拟按键事件;
确定所接收到的虚拟按键事件满足预定的加解锁条件, 设置所述终端设备 的虚拟按键区域为加锁状态或者解锁状态。
2、 根据权利要求 1所述的加解锁方法, 其特征在于, 所述预定的加解锁条 件包括预定的时间长度和预定的顺序, 所述确定所接收到的虚拟按键事件满足 预定的加解锁条件, 设置所述终端设备的虚拟按键区域为加锁状态或者解锁状 态, 包括:
确定在所述预定的时间长度范围内, 从第一次到最后一次接收到的多个虚 拟按键事件的上报顺序满足所述预定的顺序, 设置所述终端设备的虚拟按键区 域为加锁状态或者解锁状态。
3、 根据权利要求 2所述的加解锁方法, 其特征在于, 在确定所接收到的虚 拟按键事件满足预定的加解锁条件之前, 包括:
确定收到上报的抬起事件。
4、根据权利要求 1-3中任一项所述的加解锁方法, 其特征在于, 所述预定的 加解锁条件还包括预定的时间长度和预定的按键次数, 所述确定所接收到的虚 拟按键事件满足预定的加解锁条件, 设置所述终端设备的虚拟按键区域为加锁 状态或者解锁状态, 还包括:
确定在所述预定的时间长度范围内, 接收到的所述多个虚拟按键事件的上 报次数满足预定的按键次数, 设置所述终端设备的虚拟按键区域为加锁状态或 者解锁状态。
5、 根据权利要求 4所述的加解锁方法, 其特征在于, 所述确定在所述预定 的时间长度范围内, 接收到的所述多个虚拟按键事件的上报次数满足预定的按 键次数, 设置所述终端设备的虚拟按键区域为加锁状态或者解锁状态, 包括: 当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或者解锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键事件的上 报次数为第二按键次数, 则设置所述终端设备的虚拟按键区域为解锁状态或加 锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为所述第一按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状 态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为第二按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状态。
6、 一种终端设备, 其特征在于, 包括:
接收单元, 用于在终端设备的触摸屏处于解锁状态下, 接收上报的多个虚 拟按键事件;
处理单元, 用于确定所接收到的虚拟按键事件满足预定的加解锁条件, 设 置所述终端设备的虚拟按键区域为加锁状态或者解锁状态。
7、 根据权利要求 6所述的终端设备, 其特征在于, 所述预定的加解锁条件 包括预定的时间长度和预定的顺序, 所述处理单元还用于确定在所述预定的时 间长度范围内, 从第一次到最后一次接收到的多个虚拟按键事件的上报顺序满 足所述预定的顺序, 设置所述终端设备的虚拟按键区域为加锁状态或者解锁状 态。
8、 根据权利要求 7所述的终端设备, 其特征在于, 所述处理单元还用于在 确定所接收到的虚拟按键事件满足预定的加解锁条件之前, 确定收到上报的抬 起事件。
9、根据权利要求 6-8中任一项所述的终端设备, 其特征在于, 所述预定的加 解锁条件还包括预定的时间长度和预定的按键次数, 所述处理单元还用于: 确 定在所述预定的时间长度范围内, 接收到的所述多个虚拟按键事件的上报次数 满足预定的按键次数, 设置所述终端设备的虚拟按键区域为加锁状态或者解锁 状态。
10、 根据权利要求 9所述的终端设备, 其特征在于, 所述处理单元还用于: 当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或者解锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 则设置所述终端设 备的虚拟按键区域为加锁状态或解锁状态, 当收到所述第一虚拟按键事件的上 报次数为第二按键次数, 则设置所述终端设备的虚拟按键区域为解锁状态或加 锁状态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为所述第一按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状 态; 或
当收到第一虚拟按键事件的上报次数为第一按键次数, 设置所述终端设备 的虚拟按键区域为加锁状态或解锁状态, 当收到第二虚拟按键事件的上报次数 为第二按键次数, 设置所述终端设备的虚拟按键区域为解锁状态或加锁状态。
PCT/CN2014/082009 2013-07-12 2014-07-11 终端设备及其加解锁方法 WO2015003648A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/961,280 US10599329B2 (en) 2013-07-12 2015-12-07 Terminal device and locking or unlocking method for terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013102935894A CN103399704A (zh) 2013-07-12 2013-07-12 终端设备及其加解锁方法
CN201310293589.4 2013-07-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/961,280 Continuation US10599329B2 (en) 2013-07-12 2015-12-07 Terminal device and locking or unlocking method for terminal device

Publications (1)

Publication Number Publication Date
WO2015003648A1 true WO2015003648A1 (zh) 2015-01-15

Family

ID=49563341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082009 WO2015003648A1 (zh) 2013-07-12 2014-07-11 终端设备及其加解锁方法

Country Status (3)

Country Link
US (1) US10599329B2 (zh)
CN (1) CN103399704A (zh)
WO (1) WO2015003648A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325594A (zh) * 2016-08-04 2017-01-11 北京奇虎科技有限公司 虚拟按键的锁定方法、装置和移动终端

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399704A (zh) * 2013-07-12 2013-11-20 华为终端有限公司 终端设备及其加解锁方法
CN104539987A (zh) * 2014-11-27 2015-04-22 四川长虹电器股份有限公司 一种电视机遥控器的锁定方法
CN104598783B (zh) * 2014-12-22 2018-01-19 广东欧珀移动通信有限公司 一种智能终端的解锁方法及装置
CN104778046A (zh) * 2015-04-22 2015-07-15 北京智膜科技有限公司 一种基于应用程序自动生成位置图标的方法和装置
CN105808049B (zh) * 2016-02-26 2019-03-19 努比亚技术有限公司 一种实现移动终端的控制方法和装置
CN107479803B (zh) * 2017-08-09 2020-11-10 联宝(合肥)电子科技有限公司 一种控制方法及电子设备
CN109507913B (zh) * 2017-11-30 2022-04-01 蔚来(安徽)控股有限公司 换电加解锁控制系统及控制方法
CN113946226A (zh) * 2020-07-15 2022-01-18 炬芯科技股份有限公司 按键处理方法、装置、可读存储介质及电子设备
CN115392895B (zh) * 2022-10-28 2023-03-24 深圳市小赢信息技术有限责任公司 基于热点账户的账户数据处理方法、装置、终端及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515959A (zh) * 2008-02-18 2009-08-26 纬创资通股份有限公司 手机及其操作方法
CN102419687A (zh) * 2010-09-27 2012-04-18 Lg电子株式会社 移动终端以及控制其的方法
WO2012070682A1 (ja) * 2010-11-24 2012-05-31 日本電気株式会社 入力装置及び入力装置の制御方法
CN102937870A (zh) * 2012-12-04 2013-02-20 周万荣 一种人机操作界面解锁的方法和终端
CN103399704A (zh) * 2013-07-12 2013-11-20 华为终端有限公司 终端设备及其加解锁方法

Family Cites Families (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4742327A (en) * 1983-12-07 1988-05-03 Essex-Tec Corporation Keyless access control and security system
US5996894A (en) * 1998-03-24 1999-12-07 Compeye Corporation Virtual key pad for optical scanning apparatus
US9164654B2 (en) * 2002-12-10 2015-10-20 Neonode Inc. User interface for mobile computer unit
US7992007B2 (en) * 2002-02-05 2011-08-02 Cardinalcommerce Corporation Dynamic pin pad for credit/debit/ other electronic transactions
US20050085215A1 (en) * 2003-10-21 2005-04-21 Nokia Corporation Method and related apparatus for emergency calling in a touch screen mobile phone from a touch screen and keypad lock active state
US7450111B2 (en) * 2004-10-27 2008-11-11 Nokia Corporation Key functionality for communication terminal
US7484173B2 (en) * 2005-10-18 2009-01-27 International Business Machines Corporation Alternative key pad layout for enhanced security
US7657849B2 (en) * 2005-12-23 2010-02-02 Apple Inc. Unlocking a device by performing gestures on an unlock image
US8311530B2 (en) * 2007-01-26 2012-11-13 Research In Motion Limited Touch entry of password on a mobile device
US8223126B2 (en) * 2007-04-17 2012-07-17 Nokia Corporation Apparatuses and methods for facilitating user designation of device functions
US20090243897A1 (en) * 2008-04-01 2009-10-01 Davidson Wayne A Method and apparatus for entering alphanumeric data via keypads or display screens
US8413066B2 (en) 2008-11-06 2013-04-02 Dmytro Lysytskyy Virtual keyboard with visually enhanced keys
US8355698B2 (en) * 2009-03-30 2013-01-15 Microsoft Corporation Unlock screen
KR101564222B1 (ko) * 2009-05-26 2015-11-06 삼성전자주식회사 휴대단말의 잠금 모드 해제 방법 및 장치
US8458485B2 (en) * 2009-06-17 2013-06-04 Microsoft Corporation Image-based unlock functionality on a computing device
WO2010149224A1 (en) * 2009-06-26 2010-12-29 Nokia Corporation Method, apparatus and computer program code handling a user input
US20110130170A1 (en) * 2009-07-21 2011-06-02 Lg Electronics Inc. Mobile terminal and method of controlling the operation of the mobile terminal
US9563350B2 (en) * 2009-08-11 2017-02-07 Lg Electronics Inc. Mobile terminal and method for controlling the same
US8811948B2 (en) * 2010-07-09 2014-08-19 Microsoft Corporation Above-lock camera access
TWI441072B (zh) * 2010-09-21 2014-06-11 Altek Corp 觸控螢幕解鎖方法及其具有攝像功能之電子裝置
FR2969777B1 (fr) * 2010-12-22 2013-01-04 Eads Defence & Security Sys Procede d'activation d'un mecanisme, et dispositif mettant en oeuvre un tel procede.
TW201229877A (en) * 2011-01-03 2012-07-16 Compal Electronics Inc Method for preventing touch keyboard from being mis-touched and electrical apparatus with touch keyboard
WO2012116647A1 (zh) * 2011-03-02 2012-09-07 联想(北京)有限公司 终端设备控制方法及终端设备和电子设备
US20130036461A1 (en) * 2011-08-01 2013-02-07 Apple Inc. Image-based authentication
CN103164039A (zh) 2011-12-16 2013-06-19 希姆通信息技术(上海)有限公司 终端设备及控制方法
KR101452565B1 (ko) * 2012-01-19 2014-10-22 삼성전자주식회사 이동 단말에서의 점진적 잠금 해제 방법 및 이를 위한 이동 단말
TW201349017A (zh) * 2012-05-23 2013-12-01 Wistron Corp 使用節奏式點擊以觸控解鎖的方法及其相關電子裝置
US9009630B2 (en) * 2012-06-05 2015-04-14 Microsoft Corporation Above-lock notes
EP2741199B1 (en) * 2012-12-06 2020-08-05 Samsung Electronics Co., Ltd Application individual lock mechanism for a touch screen device
CN103019596B (zh) 2012-12-07 2016-12-21 Tcl通讯(宁波)有限公司 一种基于触摸屏实现虚拟按键操作的方法及移动终端
CN103116450A (zh) 2013-01-22 2013-05-22 上海艾为电子技术有限公司 控制设备状态的方法、装置及一种设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515959A (zh) * 2008-02-18 2009-08-26 纬创资通股份有限公司 手机及其操作方法
CN102419687A (zh) * 2010-09-27 2012-04-18 Lg电子株式会社 移动终端以及控制其的方法
WO2012070682A1 (ja) * 2010-11-24 2012-05-31 日本電気株式会社 入力装置及び入力装置の制御方法
CN102937870A (zh) * 2012-12-04 2013-02-20 周万荣 一种人机操作界面解锁的方法和终端
CN103399704A (zh) * 2013-07-12 2013-11-20 华为终端有限公司 终端设备及其加解锁方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325594A (zh) * 2016-08-04 2017-01-11 北京奇虎科技有限公司 虚拟按键的锁定方法、装置和移动终端

Also Published As

Publication number Publication date
CN103399704A (zh) 2013-11-20
US20160085442A1 (en) 2016-03-24
US10599329B2 (en) 2020-03-24

Similar Documents

Publication Publication Date Title
WO2015003648A1 (zh) 终端设备及其加解锁方法
US11216097B2 (en) Fingerprint verification method and electronic device for performing the same
EP3443446B1 (en) Electronic device comprising force sensor
US9207860B2 (en) Method and apparatus for detecting a gesture
WO2018107900A1 (zh) 一种触摸屏的防误触方法、装置、移动终端及存储介质
US20170336970A1 (en) Electronic device comprising display
US10509530B2 (en) Method and apparatus for processing touch input
EP2825944A1 (en) Touch screen hover input handling
JP6616896B2 (ja) 指紋認識方法及び電子デバイス
CN109491573B (zh) 电子装置控制方法以及执行此方法的电子装置
US20200264727A1 (en) Touch recognition method and electronic device executing same
CN106445328B (zh) 一种移动终端屏幕的解锁方法及移动终端
WO2014190598A1 (zh) 通过移动终端远程控制数字电视终端的方法及其系统
WO2014190597A1 (zh) 通过移动终端远程控制数字电视终端的方法及其系统
CN110989820A (zh) 处理器功耗的控制方法、装置、处理器及电子装置
WO2018018858A1 (zh) 解锁方法及装置、计算机存储介质
EP3757831B1 (en) Fingerprint event processing method, apparatus, and terminal
WO2019072169A1 (zh) 防误触检测方法、装置及终端
EP3528103B1 (en) Screen locking method, terminal and screen locking device
US9696793B2 (en) Systems and methods for selectably suppressing computing input events triggered by variable pressure and variable displacement sensors
CN103135918A (zh) 解锁方法、可携式电子装置、触控检测装置
CN108073348A (zh) 用于电子装置的热键触发系统与方法
EP3410281B1 (en) Processing method and electronic device
EP2667288B1 (en) Method and apparatus for detecting a gesture
TW201409293A (zh) 行動裝置以及喚醒方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14823227

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14823227

Country of ref document: EP

Kind code of ref document: A1