WO2019019835A1 - 响应黑屏手势的方法、装置、存储介质及移动终端 - Google Patents

响应黑屏手势的方法、装置、存储介质及移动终端 Download PDF

Info

Publication number
WO2019019835A1
WO2019019835A1 PCT/CN2018/091632 CN2018091632W WO2019019835A1 WO 2019019835 A1 WO2019019835 A1 WO 2019019835A1 CN 2018091632 W CN2018091632 W CN 2018091632W WO 2019019835 A1 WO2019019835 A1 WO 2019019835A1
Authority
WO
WIPO (PCT)
Prior art keywords
gesture
black screen
screen gesture
black
touch display
Prior art date
Application number
PCT/CN2018/091632
Other languages
English (en)
French (fr)
Inventor
石仁栋
汪昊
韩通
张强
郭明强
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019019835A1 publication Critical patent/WO2019019835A1/zh

Links

Images

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/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present disclosure relates to the field of mobile terminal technologies, for example, to a method, an apparatus, a storage medium, and a mobile terminal that respond to a black screen gesture.
  • Mobile terminals such as smart phones, PDAs, tablets or handheld game consoles, are usually designed with a touch display structure to provide a touch input method to make the user's operation more convenient.
  • the black screen gesture is a unique feature of the smart phone and has a futuristic function.
  • the black screen gesture function is turned on, the gesture operation on the touch display screen can also be detected when the smart phone is in a black screen. Trigger the corresponding function or software inside the phone.
  • the method, device, storage medium and mobile terminal provided in response to the black screen gesture provided by the present disclosure can effectively improve the problem that the black screen gesture response is not timely.
  • the present disclosure provides a method of responding to a black screen gesture, including:
  • the black screen gesture event is reported to the application layer, so that the touch display screen displays the gesture track corresponding to the black screen gesture, and the working mode of the touch display screen is controlled to maintain the gesture mode.
  • the present disclosure also provides an apparatus for responding to a black screen gesture, the apparatus comprising:
  • a gesture acquiring module configured to acquire a black screen gesture input on the touch display screen when the working mode of the touch display screen is a gesture mode
  • a gesture matching module configured to determine whether the black screen gesture is a gesture corresponding to the preset operation performed in an off-screen state
  • the event reporting module is configured to report a black screen gesture event to the application layer if the black screen gesture is a gesture corresponding to the preset operation performed in the blanking state, so that the touch display screen displays the gesture corresponding to the black screen gesture.
  • the trajectory, and controlling the working mode of the touch display screen maintains the gesture mode unchanged.
  • the present disclosure also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method of responding to a black screen gesture as provided by the present disclosure.
  • the present disclosure also provides a mobile terminal, including a touch display screen, a memory, a processor, and a computer program stored on the memory and operable on the processor, the touch display screen including a touch chip configured to detect a black screen gesture; the touch chip is configured to maintain the operation mode of the touch display screen unchanged under the control of the processor; the processor is configured to execute the computer program to implement the present disclosure A method of responding to black-screen gestures.
  • FIG. 1 is a flowchart of a method for responding to a black screen gesture according to an embodiment
  • FIG. 2 is a schematic diagram of a gesture template correction interface provided by an embodiment
  • FIG. 3 is a schematic diagram of a sub gesture trajectory of a black screen gesture track according to an embodiment
  • FIG. 4 is a schematic diagram of an Android system framework provided by an embodiment
  • FIG. 5 is a flowchart of a method for awakening system based on a black screen gesture according to an embodiment
  • FIG. 6 is a flowchart of another method for responding to a black screen gesture according to an embodiment
  • FIG. 7 is a flowchart of still another method for responding to a black screen gesture according to an embodiment
  • FIG. 8a is a structural block diagram of an apparatus for responding to a black screen gesture according to an embodiment
  • FIG. 8b is a structural block diagram of another apparatus for responding to a black screen gesture according to an embodiment
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment.
  • Some embodiments are described as a process or method depicted as a flowchart, although the flowcharts describe each step as a sequential process, many of the steps in the flowchart can be implemented in parallel, concurrently or concurrently. In addition, the order of each step can be rearranged. The process may be terminated when the operation is complete, but may also have additional steps not included in the figures.
  • the processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
  • the black screen gesture function is that when the mobile terminal (such as a smart phone) is in a sleep-off state, the touch display screen operates in a low power consumption state to detect a black screen gesture acting on the touch display screen in the off-screen state, and according to The black screen gesture wakes up a function of the smartphone or turns on a preset function corresponding to the type of the black screen gesture type.
  • the following describes the flow of the application corresponding to the black screen gesture detected by the blank screen gesture to the application layer, and the process includes: storing the gesture data corresponding to the black screen gesture into the driver layer.
  • the drive layer performs black screen gesture data validity determination; if valid, the frame layer performs black screen gesture event dispatch; after the application layer receives the black screen gesture event
  • the application layer reads the gesture coordinates from the preset node in the driver layer, calculates the animation track of the black screen gesture according to the gesture coordinates and the gesture type, and sends the animation track data to the frame buffer (Frame Buffer) to refresh according to the set screen. Rate the animation track to the touch display screen for display; then, the application layer performs an operation of opening the application corresponding to the black screen gesture.
  • a user may use a black screen gesture to perform a continuous cut operation.
  • the process of performing the cut song operation by the black screen gesture is generally: after detecting a black screen gesture of the cut song, the mobile terminal responds to the black screen gesture, lights the touch display screen to display the trace of the black screen gesture, and then turns off the touch screen display.
  • the touch display screen exits the gesture mode for detecting the black screen gesture when the screen is bright, and enters the normal mode, and the touch display screen cannot detect the black screen gesture in the normal mode.
  • the touch screen can re-enter the gesture mode after the set time has elapsed after the screen is reset.
  • the set time is set by the system default, and can generally take about 2s.
  • the mobile terminal After the screen is turned off, and before the touch screen re-enters the gesture mode, if the user inputs a black screen gesture for cutting the song, the mobile terminal does not respond to the black screen gesture for cutting the song. At this time, for the user, the black screen gesture of the cut song input by the user is not responded, thereby causing the user to intuitively think that the response of the black screen gesture function is not sensitive enough.
  • the related black screen gesture processing process has a defect, and the response of the mobile terminal to the black screen gesture input by the user in some application scenarios is not timely enough, thereby causing the user to intuitively think that the response of the black screen gesture function is not sensitive enough.
  • the solution for responding to a black screen gesture provided by the present disclosure can well solve the problem that the touch display screen leaks and responds to a black screen gesture after returning from a bright screen to a blank screen.
  • FIG. 1 is a flowchart of a method for responding to a black screen gesture according to an embodiment of the present disclosure, where the method may be performed by a device that responds to a black screen gesture, where the device may be implemented by at least one of software and hardware, and generally integrated in In the mobile terminal.
  • the method includes:
  • step 110 when the working mode of the touch display screen is the gesture mode, the black screen gesture input on the touch display screen is acquired.
  • the working mode of the touch display includes a gesture mode and a normal mode.
  • gesture mode the touch display can detect black screen gestures.
  • normal mode the touch screen cannot detect black screen gestures.
  • the operating mode switching of the touch display can be controlled by the touch chip.
  • the touch chip is disposed in the touch display screen. If the touch chip outputs a touch sensing control signal to the touch display screen, the touch display screen is in the gesture mode.
  • the touch display can detect a black screen gesture input by the user in the gesture mode. If the touch chip outputs a display signal to the touch display screen, an electric field is formed between the upper and lower substrates of the touch display screen based on the display signal, and the liquid crystal in the touch display screen is deflected under the action of the electric field to realize display.
  • the touch display is in normal mode.
  • the black screen gesture may be a touch gesture input by the user on the touch display screen of the mobile terminal in the off-screen state after the black screen gesture function is turned on.
  • the black screen gesture is not limited to the touch gesture input on the touch display screen, but may be an operation detected by a sensor of the mobile terminal or the like. For example, shaking the gesture of the smartphone from side to side, gestures from the touch screen of the smartphone, gestures pressing the border of the smartphone, and the like.
  • the kernel layer calls the driver layer interrupt processing function to execute, and the driver layer reads the gesture data in the touch chip through the interrupt processing function, and writes the read gesture data into the preset node of the driver layer.
  • the gesture data includes gesture coordinates and a preset end bit. For example, the character corresponding to the predefined end bit is "#".
  • the touch chip stores the gesture data corresponding to the detected black screen gesture into a preset register. The touch chip adds "#" to the end of the gesture data stored in the register after detecting that the black screen gesture input is completed.
  • curve fitting is a data processing method, that is, a continuous curve is used to approximate or compare the function relationship between the coordinates represented by discrete points on the plane.
  • the gesture track is matched with a pre-stored black screen gesture template to determine a black screen gesture corresponding to the gesture track.
  • the driver layer can also perform the drawing operation of the gesture track without waiting for the end bit to be detected.
  • the driving layer can draw the gesture track while reading the gesture data, that is, every set time length, the driving layer draws a sub-track of the gesture track according to the gesture data acquired in the time length until the driver layer reads the end. Bit, determine that the gesture track is drawn.
  • the black screen gesture template is to count the trajectory of a black screen gesture input by a certain number of users using the black screen gesture function, and obtain a gesture trajectory of each black screen gesture whose frequency exceeds the set frequency, and the extracted frequency exceeds the set frequency.
  • the black screen gesture template is composed of the target gesture track and the corresponding black screen gesture.
  • the black screen gesture template is configured in the mobile terminal before the mobile terminal leaves the factory.
  • a gesture template correction interface diagram can be used to set a gesture template correction function in the mobile terminal.
  • the selection box 210 and the handwriting area 220 having the pull-down menu function are displayed, prompting the user to select a black screen gesture and input the gesture track corresponding to the selected black screen gesture.
  • the black screen gesture selected by the user and the newly input gesture track are stored in association. If the instruction to exit the gesture template correction function is not detected, the next black screen gesture and the black screen gesture track selected by the user are acquired, and the black screen gesture is stored in association with the black screen gesture track until an instruction to exit the gesture template correction function is detected.
  • the black screen gesture template may be updated according to a writing habit of the mobile terminal user according to a set time period.
  • the update time may be set as the update condition, and when the usage time of the black screen gesture function reaches the update time, an update indication is generated, and the update operation is triggered by the update indication to perform the update operation of the black screen gesture template.
  • the update time can also be the system default time.
  • the process of updating the black screen gesture template according to the writing habit of the user may be: when the driving layer detects the update indication, the end time of the update operation of the previous black screen gesture template is used as the start time, and the start time is obtained.
  • the gesture track of the black screen gesture in the time interval is used as a training sample, and each gesture track included in the sample is respectively divided into at least two sub-gesture tracks by the set feature points.
  • Deviation between the template gesture of the same gesture type and the sub-gesture trajectory of the sample gesture is determined.
  • the number of sub-gesture trajectories whose deviation of the sub-gesture trajectory exceeds the set deviation threshold is counted.
  • a template gesture that determines that the number exceeds a set threshold is determined, and the template gesture is replaced with a sample gesture.
  • FIG. 3 is a schematic diagram of a sub-gesture track of a black screen gesture track provided by this embodiment.
  • the black screen gesture track in FIG. 3 is a track obtained by the driver layer identifying the black screen gesture input by the user in the off-screen state, and the black screen gesture track is not displayed in the touch screen display at this time.
  • the gesture track is divided into a first sub-gesture track 301, a second sub-gesture track 302, a third sub-gesture track 303, and a third feature point by using three feature points located at the inflection point.
  • the four sub gesture track 304 for the gesture track “W”, the gesture track is divided into a first sub-gesture track 301, a second sub-gesture track 302, a third sub-gesture track 303, and a third feature point by using three feature points located at the inflection point.
  • the four sub gesture track 304 for the gesture track “W”, the gesture track is divided into a first sub-gesture track 301, a second sub-ges
  • the gesture trajectory of the black screen gesture "W" in the black screen gesture template is divided into a first sub-track 305, a second sub-track 306, a third sub-track 307, and a fourth sub-track 308 using the same feature points.
  • the first sub-gesture track 301 and the first sub-track 305 are compared to determine a first deviation.
  • the deviation between each group of sub-tracks is determined by comparing the remaining three sets of sub-tracks.
  • the determined deviation is compared to a set deviation threshold, respectively.
  • the number of sub-tracks whose deviation exceeds the set deviation threshold is determined. If the number exceeds the set threshold, the gesture track of the sample gesture “W” is used to replace the gesture track of the black screen gesture “W” stored in the template gesture.
  • the black screen gesture template is personalized according to the writing habit of the user, and the recognition rate of the black screen gesture is improved.
  • step 120 it is determined whether the black screen gesture is a gesture corresponding to the preset operation performed in the screen-off state, and if yes, step 130 is performed.
  • the preset operation is an operation that can be performed when the touch display screen is not lit.
  • it can be a song-cutting operation, an open flashlight application, or other operations that can be performed without a bright screen.
  • the operation performed in the blanking state may be configured in the mobile terminal by way of a white list before the mobile terminal leaves the factory.
  • the mobile terminal may obtain an update message for the whitelist that is pushed by the mobile terminal server.
  • the whitelist that is pre-configured by the mobile terminal can be updated by downloading the whitelist in a manner of accessing the mobile terminal server.
  • the user After detecting the black screen gesture, the user queries the white list according to the black screen gesture to determine whether the black screen gesture belongs to the white list. If yes, it is determined that the black screen gesture is a gesture corresponding to the preset operation performed in the off-screen state.
  • step 130 the black screen gesture event is reported to the application layer, so that the touch display screen displays the gesture track corresponding to the black screen gesture, and the working mode of the touch display screen is controlled to maintain the gesture mode.
  • the black screen gesture event may be an event that is pre-negotiated by the driver layer and the application layer for representing a black screen gesture input.
  • the touch chip when it detects a user inputting a black screen gesture, it sends an interrupt wake-up signal to the kernel layer.
  • the kernel layer performs a system wake-up operation when an interrupt wake-up signal is acquired. If the black screen gesture is valid, the driver layer reports a black screen gesture event to the application layer. After receiving the black screen gesture event, the application layer acquires the gesture coordinates and the gesture type corresponding to the black screen gesture. The application layer draws a gesture track according to the gesture coordinates. At this time, the touch display screen of the mobile terminal is illuminated, and the gesture track is displayed on the touch display screen. When the preset end display condition is satisfied, the touch display screen is restored to the off screen state.
  • the preset end display condition includes a set display duration, a set user operation for the mobile terminal, and the like.
  • the driver layer acquires the gesture data corresponding to the black screen gesture, and performs validity determination based on the gesture data.
  • the black screen gesture event is reported to the application layer.
  • the application layer acquires the gesture data, and draws a black screen gesture track based on the gesture coordinates and the gesture type included in the gesture data, and displays the black screen gesture track on the touch display screen. Since the black screen gesture track is to be displayed, the touch display screen needs to be illuminated.
  • the touch screen When the touch display is lit, the touch screen is controlled to not switch between working modes, that is, the working mode is maintained as the gesture mode. Therefore, after the touch screen is turned off again, if the user immediately inputs a black screen gesture, since the working mode of the touch screen is still in the gesture mode, the black screen gesture input again can be detected and responded to, thereby avoiding The black screen gesture cannot be detected within a short time after the bright screen is switched to the black screen.
  • FIG. 4 is a schematic diagram of an Android system framework provided by this embodiment.
  • the execution flow of the black screen gesture function provided in this embodiment is described by taking the mobile terminal shown in FIG. 4 as an example of the mobile terminal of the Android system.
  • the Android system framework includes a kernel layer 410, a core class library layer 420, a framework layer 430, and an application layer 440 from bottom to top.
  • the kernel layer 410 provides core system services, including security, memory management, process management, network protocol stack, and hardware drivers.
  • the hardware driver in the kernel layer 410 is referred to as a driving layer 411, and the driving layer 411 includes a touch screen display driver, a camera driver, and the like.
  • the core class library layer 420 includes an Android runtime environment (Android Runtime) and a class library (Libraries). Among them, Android Runtime provides most of the features available in the Java programming language core class library, including Core Libraries and Dalvik VMs. Each Android application is an instance of the Dalvik virtual machine running in their own process.
  • the class library is used by every component of the Android system, including the following functions: Media Framework, Surface Manager, SQLite (Relational Database Engine), and FreeType (Bitmap and Vector Font Rendering). It is exposed to developers through the framework layer 430 of Android.
  • the framework layer 430 provides a series of libraries needed to develop Android applications, enabling developers to develop applications quickly, to reuse components, and to extend personalization through inheritance.
  • the services provided include component management services.
  • the application layer 440 includes a plurality of applications that directly interact with the user, or a server running in the background written in the Java language, including a desktop application, a contact application, a call application, a camera application, a picture browser, a game, a map, and Programs such as web browsers, and other applications developed by developers.
  • the touch chip After the black screen gesture function is turned on, the touch chip generates a wake-up signal when detecting a black screen gesture, and sends the wake-up signal to the kernel layer.
  • the wake-up signal triggers the kernel layer to perform a system wake-up operation.
  • the kernel layer calls the driver layer interrupt processing function to execute, and the driver layer reads the gesture data in the touch chip through the interrupt processing function, and stores the read gesture data in the preset node of the driver layer.
  • the preset node may be a file node, for example, a virtual file node in a proc-D directory.
  • the driver layer determines the validity of the gesture data. There are various ways to determine the validity.
  • the driver layer determines the gesture type according to the gesture coordinates included in the gesture data, and uses the determined gesture type as the gesture type.
  • Gesture data is stored in the preset node. If the gesture type is not a preset black screen gesture, it is determined that the gesture data is invalid.
  • the driving layer counts the number of the gesture data, determines whether the number satisfies the requirement of drawing a preset black screen gesture, and if not, determines that the gesture data is invalid. When the data is valid, the driver layer reports a black screen gesture event. The black screen gesture event is transmitted to the framework layer through the core class library layer and distributed through the framework layer to reach the application layer.
  • the gesture data is read by the preset node of the driver layer. After the gesture data is read, the black screen gesture track is calculated according to the gesture coordinates included in the gesture data, and the black screen gesture track is drawn on the touch display screen for display.
  • the application layer opens an application corresponding to the gesture type based on the type of gesture in the read gesture data.
  • the gesture type may be a gesture for implementing a function preset in the mobile terminal, or may be a user-defined gesture.
  • the gesture type can be O, which means that the camera is turned on.
  • the gesture type can be V, which means turning on the flashlight and the like.
  • the black screen gesture event may be reported when the system wakes up, the kernel layer calls the driver layer interrupt processing function, and the driver layer reads the operation of the gesture data in the touch chip through the interrupt processing function, and stores the gesture data in the driver.
  • the driver layer reads the gesture data and determines the gesture type according to the gesture data in parallel; for example, the driver layer acquires the gesture data in the preset node, and the gesture data is Curve fitting is used to obtain the closest gesture type of the black screen gesture, and the gesture type can also be stored as gesture data in the preset node.
  • the application layer When the application layer receives the black screen gesture event, it detects whether the gesture data in the preset node is ready to be completed according to the set period. When the preparation is completed, the application layer reads the gesture data from the preset node. When the gesture data is successfully read and valid, the black screen gesture track is calculated according to the gesture coordinates and the gesture type included in the gesture data, and the black screen gesture track is drawn on the touch display screen for display. The application layer opens an application corresponding to the gesture type based on the type of gesture in the read gesture data.
  • the method provided by the embodiment when detecting that the currently input black screen gesture is a gesture corresponding to the preset operation performed in the screen-out state, reporting the black screen gesture event corresponding to the black screen gesture to the application layer, so that the touch screen display is displayed.
  • a gesture track corresponding to the black screen gesture and controlling the working mode of the touch display screen to maintain the gesture mode unchanged, so that the user can newly respond to the newly input black screen gesture after the touch screen is turned off, which can effectively improve
  • the problem that the black screen gesture responds is not timely, and the touch screen display is prevented from leaking and responding to the black screen gesture after returning from the bright screen to the blank screen.
  • FIG. 5 is a flowchart of a method for awakening system based on a black screen gesture provided by this embodiment. As shown in FIG. 5, the method includes:
  • step 510 when the user configures the switch state of the black screen gesture switch, the driver layer acquires configuration information for the switch state of each black screen gesture in the application layer.
  • the configuration information includes a state in which the blackout gesture switch is turned on or off at the application layer.
  • a switch that controls whether the black screen gesture is enabled or not is set in advance at the application layer and the driver layer.
  • the black screen gesture switch can be displayed in the form of a switch control in the application layer for the user to select to turn on or off the black screen gesture corresponding to the black screen gesture switch.
  • the display interface switches to a black screen gesture interface, and the black screen gesture interface includes preset black screen gestures (such as “O”, “V”, “ ⁇ ”, “W” and "M”, etc.) and the corresponding black screen gesture switch, also includes options for custom black screen gestures.
  • the return value of the switch control corresponding to the black screen gesture “O” becomes the preset value corresponding to the start black screen gesture (for example, a return value of 1 represents a black screen gesture).
  • This preset value can be set by the program developer.
  • the application layer monitors the return value of the switch control corresponding to each black screen gesture in the black screen gesture interface.
  • the switch state of each black screen gesture in the application layer is determined according to the return value of the switch control.
  • the application layer sends the switch status as configuration information to the drive layer.
  • step 520 the driver layer transmits the configuration information to the touch chip, so that the touch chip turns on the interrupt wake-up function corresponding to the enabled black screen gesture according to the configuration information.
  • the interrupt wake-up function includes, based on the detected black screen gesture, the touch chip sends an interrupt wake-up signal to the kernel layer to trigger the kernel layer to perform a system wake-up operation.
  • the touch chip sends an interrupt wake-up signal to the kernel layer.
  • the configuration information is sent to the touch chip.
  • the touch chip After receiving the configuration information, the touch chip identifies a black screen gesture with the right to wake up the system based on the configuration information. Therefore, the touch chip only responds to the enabled black screen gesture, and reports the interrupt wake-up signal, and ignores the black screen gesture that is not enabled, so as to prevent the black screen gesture that is not enabled by the user from triggering the wake-up of the system, and reducing the power consumption of the mobile terminal.
  • step 530 when the user inputs a black screen gesture, the touch chip acquires gesture coordinates corresponding to the black screen gesture.
  • touch display displays include panels, contact sensors, flexible circuit boards, and touch chips.
  • the panel is the surface layer of the touch display screen, and the user's touch operation acts on the panel.
  • a contact sensor is fabricated according to the structure of the touch display screen and the design requirements of the touch chip. The contact sensor is electrically connected to the touch chip through a flexible circuit board.
  • the capacitive touch display when the user inputs a black screen gesture, the user and the touch display surface form a coupling capacitor due to the human body electric field.
  • the capacitor is a direct conductor, and the finger contacts the contact point.
  • a small current is drawn, which flows from the electrodes on the four corners of the touch screen, and the current flowing through the four electrodes is proportional to the distance from the finger to the four corners.
  • the touch chip passes the four currents. The exact calculation of the ratio yields the position of the touch point, ie the gesture coordinates.
  • step 540 the touch chip identifies a black screen gesture based on the gesture coordinates.
  • the touch chip performs curve fitting on the gesture coordinates in real time, and obtains the closest gesture track of the black screen gesture input by the user.
  • the drawn black screen gesture track is matched with the pre-stored black screen gesture template.
  • the black screen gesture input by the user is determined according to the matching result, and the gesture type of the black screen gesture is stored, so that the driver layer can acquire the gesture type while acquiring the gesture coordinate, and the driver layer does not need to perform gesture matching again. Since the touch chip draws the gesture coordinates in real time, the execution speed is improved.
  • the touch chip can also store the gesture coordinates corresponding to the black screen gesture when the black screen gesture input is detected.
  • the gesture track is drawn based on the gesture coordinates.
  • step 550 the touch chip determines whether the black screen gesture is an enabled black screen gesture. If yes, step 560 is performed, and if no, step 580 is performed.
  • the touch chip queries the configuration information to determine whether the black screen gesture is an open black screen gesture. Therefore, it is known whether the interrupt wake-up function corresponding to the black screen gesture is enabled. If yes, step 560 is performed, and if no, step 580 is performed.
  • step 560 the touch chip determines that the interrupt wake-up function corresponding to the black screen gesture has been turned on, and sends an interrupt wake-up signal to the kernel layer.
  • the touch chip sends an interrupt wake-up signal to the kernel layer.
  • step 570 upon acquiring the interrupt wake-up signal, the kernel layer performs a system wake-up operation based on the interrupt wake-up signal.
  • step 580 the touch chip determines that the interrupt wakeup function corresponding to the black screen gesture is not turned on, and abandons the send interrupt wakeup signal to the kernel layer.
  • the touch chip abandons responding to the black screen gesture, that is, does not send an interrupt wake-up signal to the kernel layer. Therefore, the mobile terminal is not woken up by the input of the unenable black screen gesture.
  • the method provided by the embodiment provides an interrupt wake-up function for the enabled black screen gesture according to the switch state of the black screen gesture configured by the user in the application layer by setting the interrupt wake-up function on the touch chip in advance, thereby, after the black screen gesture is input, If it is determined that the black screen gesture is enabled, the interrupt wake-up signal is sent to the kernel layer. If it is determined that the black screen gesture is not turned on, and the black screen gesture is not responded, the unintentional input of the black screen gesture may be effectively prevented, causing the system to be frequently woken up, which is reduced. Power consumption of mobile terminals.
  • FIG. 6 is a flowchart of another method for responding to a black screen gesture provided by this embodiment. As shown in FIG. 6, the method includes:
  • step 610 after detecting the system wake-up operation, the driver layer interrupt processing function is used to read the gesture data corresponding to the black screen gesture currently input by the user from the touch chip, and store the gesture data in the driver layer. Set the node.
  • the system wake-up indicates that the mobile terminal is woken up by the sleep state.
  • the system can be woken up by a touch operation input by the user on the touch display. For example, when the touch chip detects a touch operation, it generates a wake-up signal and transmits the wake-up signal to the kernel layer.
  • the kernel layer performs a system wake-up operation based on the wake-up signal.
  • step 620 the driver layer reads gesture data within the preset node.
  • step 630 when the end bit of the gesture data is detected, the driving layer curve-fits the gesture coordinates included in the gesture data to obtain a gesture track, and the gesture track is identified to determine the black screen gesture.
  • the driver layer curve fits the gesture coordinates in the read gesture data to get the closest gesture trajectory.
  • the black screen gesture input by the user is recognized by matching the gesture track with the black screen gesture template.
  • the driving layer may also perform curve fitting on the read gesture coordinates without waiting for the end bit to be detected, and may perform a curve when the gesture data read by the touch chip reaches a set number. Fit, until the end bit is detected, the resulting gesture trajectory is matched with the black screen gesture template, thereby shortening the time required for black screen gesture recognition.
  • step 640 it is determined whether the black screen gesture switch corresponding to the black screen gesture is in an open state. If yes, step 650 is performed, and if no, step 690 is performed.
  • a switch for controlling whether the black screen gesture is enabled or not is set in advance at the application layer and the driver layer.
  • the driver layer receives the configuration information sent by the application layer, thereby acquiring the switch state for each black screen gesture switch in the application layer.
  • the switch state of the black screen gesture switch pre-configured in the drive layer is updated according to the switch state, so that the state of the black screen gesture switch in the drive layer is the same as the switch state in the application layer.
  • the driver layer checks for a black screen gesture
  • the driver layer queries the switch state of the black screen gesture switch corresponding to the black screen gesture. If the black screen gesture switch is in an open state, it is determined that the detected black screen gesture has been enabled, then step 650 is performed, and if the black screen gesture switch is in the off state, step 690 is performed.
  • step 650 it is determined whether the black screen gesture is a gesture corresponding to the preset operation performed in the screen-off state. If yes, step 660 is performed, and if no, step 670 is performed. In step 660, the black screen gesture event is reported to the application layer, so that the touch display screen displays the gesture track corresponding to the black screen gesture, and the working mode of the touch display screen is controlled to maintain the gesture mode.
  • the switching of the working mode of the touch display screen can be controlled by the drive layer sending mode switching instruction.
  • the mode switching instruction is not sent to the touch chip. At this time, the working mode of the touch display maintains the gesture mode.
  • step 670 the driver layer reports a black screen gesture event to the application layer, and controls the touch screen to exit the gesture mode when the touch screen displays the gesture track corresponding to the black screen gesture.
  • the driver layer When the black screen gesture switch corresponding to the detected black screen gesture is in an open state, the driver layer reports a black screen gesture event to the application layer. After receiving the black screen gesture event, the application layer acquires gesture data corresponding to the black screen gesture, draws a gesture track based on the gesture data, and lights the touch display screen to display the gesture track. Since the detected black screen gesture is not a gesture corresponding to the preset operation performed in the screen-off state, after the touch screen is illuminated, the driver layer sends a mode switching instruction to the touch chip, so that the touch screen exits the gesture mode. Enter normal mode.
  • the touch display screen is triggered to exit the gesture mode, and there are various ways to enter the normal mode. For example, when the driver layer detects the user's operation on the wakeup source, the touch display screen is illuminated, and the touch display exit gesture is controlled. Mode, etc.
  • the wake-up source includes a power button or a primary button (HOME button).
  • step 680 when it is detected that the touch display screen is off, the driving layer controls the working mode of the touch display screen to switch back to the gesture mode.
  • the driver layer outputs a mode switching command to the touch chip to control the touch display screen to re-enter the gesture mode.
  • step 690 the blackout gesture event is discarded to the application layer.
  • the driver layer determines that the black screen gesture corresponding to the preset operation performed in the detected blackout state is not enabled, the black screen gesture event is not reported to the application layer. Therefore, the application layer does not perform data acquisition operations based on black screen gestures that are not enabled.
  • the method provided in this embodiment is to query whether the black screen gesture triggering the black screen gesture event is enabled before the black screen gesture event is reported, and if yes, report the black screen gesture event to the application layer, and if not, discard the black screen gesture event to the application layer. It can avoid reporting the black screen gesture event triggered by the black screen gesture that is not turned on to the application layer.
  • FIG. 7 is a flowchart of still another method for responding to a black screen gesture according to the embodiment. As shown in FIG. 7, the method includes:
  • step 700 when the user inputs a black screen gesture, the touch chip acquires gesture coordinates corresponding to the black screen gesture.
  • the touch chip identifies the black screen gesture as a cut song gesture based on the gesture coordinates.
  • step 720 the touch chip determines whether the cut song gesture is an enabled black screen gesture. If yes, step 740 is performed, and if no, step 730 is performed.
  • the touch chip queries the configuration information to determine whether the cut gesture is enabled. If yes, step 740 is performed, and if no, step 730 is performed.
  • step 730 the touch chip determines that the interrupt wakeup function corresponding to the cut song gesture is not turned on, and abandons the send interrupt wakeup signal to the kernel layer.
  • the touch chip does not respond to the cut gesture, ie, does not send an interrupt wakeup signal to the kernel layer.
  • step 740 the touch chip determines that the interrupt wakeup function corresponding to the cut song gesture is turned on, and sends an interrupt wakeup signal to the kernel layer.
  • the touch chip determines that the interrupt wakeup function corresponding to the cut song gesture is turned on, and sends an interrupt wakeup signal to the kernel layer.
  • step 750 upon acquiring the interrupt wake-up signal, the kernel layer performs a system wake-up operation based on the interrupt wake-up signal.
  • step 760 the driver layer determines whether the cut song gesture is a gesture corresponding to the preset operation performed in the screen-out state. If yes, step 770 is performed, and if no, step 780 is performed.
  • the driver layer After the system wakes up, the driver layer reads the gesture data from the touch chip through the interrupt processing function, and the gesture data includes gesture coordinates and gesture type.
  • the driving layer determines that the black screen gesture input by the user is a cut song gesture according to the type of the read gesture, queries a gesture corresponding to the preset operation performed in the preset screen-out state, and determines whether the operation corresponding to the cut song gesture is performed under the screen-out.
  • step 770 the driver layer reports a black screen gesture event to the application, so that the touch display screen displays the gesture track corresponding to the cut song gesture, and controls the working mode of the touch display screen to maintain the gesture mode.
  • the driver layer When the cut gesture is a gesture corresponding to the preset operation performed in the screen-out state, the driver layer reports the black screen gesture event to the application layer, and does not send the mode switching instruction to the touch chip, so that the working mode of the touch display maintains the gesture. The mode is unchanged. At this time, if the user inputs a black screen gesture immediately after the touch screen is turned off again, the touch display screen can also detect the newly input black screen gesture.
  • step 780 the driver layer reports a black screen gesture event to the application layer, and controls the touch screen to exit the gesture mode when the touch screen displays the gesture track corresponding to the black screen gesture.
  • step 790 when it is detected that the touch display screen is off, the driving layer controls the working mode of the touch display screen to switch back to the gesture mode.
  • the black screen gesture when the user inputs a black screen gesture, the black screen gesture is recognized by the touch chip, and only the black screen gesture that turns on the interrupt wake-up function can wake up the system; after the system wakes up, the driver layer reads the black screen gesture from the touch chip.
  • the result is a cut song gesture, determining whether the cut song gesture is a gesture corresponding to the preset operation performed in the off-screen state, and if so, controlling the touch display screen not to exit the gesture mode when displaying the gesture track of the cut gesture If not, controlling the touch screen to exit the gesture mode can effectively avoid the situation that the black screen gesture cannot be detected within the set time after the screen is turned off, and can reduce the power consumption of the mobile terminal.
  • FIG. 8 is a structural block diagram of an apparatus for responding to a black screen gesture according to the embodiment.
  • the apparatus can be implemented in at least one of software and hardware, generally integrated in a mobile terminal. As shown in Figure 8a, the apparatus can include:
  • the gesture obtaining module 810 is configured to acquire a black screen gesture input on the touch display screen when the working mode of the touch display screen is a gesture mode;
  • the gesture matching module 820 is configured to determine whether the black screen gesture is a gesture corresponding to the preset operation performed in an off-screen state;
  • the event reporting module 830 is configured to report a black screen gesture event to the application layer if the black screen gesture is a gesture corresponding to the preset operation performed in the screen-off state, so that the touch screen displays a gesture corresponding to the black screen gesture.
  • the trajectory, and controlling the working mode of the touch display screen maintains the gesture mode unchanged.
  • the device for responding to the black screen gesture in the embodiment can effectively improve the problem that the black screen gesture response is not timely, and avoid the situation that the touch screen display leaks and responds to the black screen gesture after the screen is restored from the bright screen to the screen.
  • FIG. 8b is a structural block diagram of another apparatus for responding to a black screen gesture according to an embodiment. As shown in FIG. 8b, the apparatus may further include:
  • the wake-up operation detecting module 840 is configured to detect a system wake-up operation based on a black-screen gesture before acquiring a black-screen gesture input by the user on the touch display screen;
  • the gesture data reading module 850 is configured to read the gesture data corresponding to the black screen gesture from the touch chip by using a driver layer interrupt processing function before acquiring a black screen gesture input by the user on the touch display screen, and The gesture data is stored in a preset node of the driver layer;
  • gesture acquisition module 810 is configured to:
  • the gesture coordinates included in the gesture data are curve-fitted to obtain a gesture track, and the gesture track is identified to determine the black screen gesture.
  • the above apparatus further includes:
  • the mode switching module 860 is configured to: after determining whether the black screen gesture is a gesture corresponding to the preset operation performed in the screen-off state, if the black screen gesture is not a gesture corresponding to the preset operation performed in the screen-out state, And reporting a black screen gesture event to the application layer, and controlling the touch screen to exit the gesture mode when the touch screen displays the gesture track corresponding to the black screen gesture;
  • the working mode of the touch display is controlled to switch to the gesture mode again.
  • the above apparatus further includes:
  • the configuration information obtaining module 870 is configured to acquire configuration information about a switch state of each black screen gesture in the application layer when the user configures a switch state of the black screen gesture switch;
  • the configuration information sending module 880 is configured to send the configuration information to the touch chip, so that the touch chip turns on the interrupt wake-up function corresponding to the enabled black screen gesture according to the configuration information.
  • the above apparatus comprises:
  • the gesture state determining module 890 is configured to determine, after acquiring the black screen gesture input on the touch display screen, the touch chip determines whether the black screen gesture is an enabled black screen gesture;
  • the touch chip determines that the interrupt wake-up function corresponding to the black screen gesture is turned on, sends an interrupt wake-up signal to the kernel layer, and the interrupt wake-up signal is used to wake up the system.
  • the above apparatus comprises:
  • the configuration information synchronization module 892 is configured to acquire configuration information for a switch state of each black screen gesture in the application layer when the user configures a switch state of the black screen gesture switch, and update a black screen gesture preset in the driver layer according to the configuration information. Switching state of the switch;
  • the above apparatus comprises:
  • the switch state determining module 894 is configured to determine whether the black screen gesture switch corresponding to the black screen gesture is in an open state before the black screen gesture event is reported to the application layer.
  • the above apparatus comprises:
  • the mode exit module 896 is configured to illuminate the touch display screen and control the touch display exit gesture mode when detecting the operation of the wake-up source, wherein the wake-up source includes a power key or a primary key.
  • the embodiment further provides a storage medium containing computer executable instructions for performing a method of responding to a black screen gesture when executed by a computer processor, the method comprising:
  • the working mode of the touch display screen is the gesture mode, acquiring a black screen gesture input by the user on the touch display screen;
  • the black screen gesture event is reported to the application layer, so that the touch display screen displays the gesture track corresponding to the black screen gesture, and the working mode of the touch display screen is controlled to maintain the gesture mode.
  • the storage medium can be any type of memory device or storage device.
  • the term "storage medium” is intended to include: a mounting medium such as a CD-ROM, a floppy disk or a tape device; a computer system memory or a random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.
  • Non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like.
  • the storage medium may also include other types of memory or combinations. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet.
  • the second computer system can provide program instructions to the first computer for execution.
  • storage medium includes two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (eg, a computer program) executable by one or more processors.
  • a storage medium including computer executable instructions provided by this embodiment may perform related operations in a method of responding to a black screen gesture provided by any embodiment.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • the mobile terminal may include: a housing (not shown), a touch display 912, a physical button 913, a memory 901, a central processing unit (CPU) 902, and a circuit board ( Not shown in the drawing) and power supply circuit (not shown).
  • the touch display screen 912 is configured to convert a user operation into an electrical signal input to the processor, and display a visual output signal; the physical button 913, including a power button or a HOME button, is set to obtain a user operation.
  • the touch display screen 912 includes a touch chip, and the touch chip is configured to maintain the operation mode of the touch display screen unchanged under the control of the processor, and Storing configuration information for a switch state of each black screen gesture in the application layer, and determining, according to the configuration information, whether to enable an interrupt wakeup function corresponding to the enabled black screen gesture, wherein the touch chip sends when the interrupt wakeup function is executed Interrupting the wake-up signal to the core layer;
  • the circuit board is disposed inside the space enclosed by the casing; the CPU 902 and the memory 901 are disposed on the circuit board; and the power circuit is configured to be the electronic Powering one or more circuits or devices of the device; the memory 901, configured to store executable program code; the CPU 902 by reading the The executable program code stored in the memory 901 is configured to run a computer program corresponding to the executable program code to implement the following steps: when the working mode of the touch display screen is the gesture mode, acquiring the user on the touch display screen
  • the mobile terminal further includes: a peripheral interface 903, a radio frequency circuit (RF) 905, an audio circuit 906, a speaker 911, a power management chip 908, an input/output (I/O) subsystem 909, and a touch display.
  • RF radio frequency circuit
  • I/O input/output subsystem 909
  • Screen 912, other input/control devices 910, and external port 904 are communicated via one or more communication buses or signal lines 907.
  • the illustrated mobile terminal 900 is merely one example of a mobile terminal, and the mobile terminal 900 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have different Component configuration.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the mobile terminal for responding to a black screen gesture provided in this embodiment is described in detail below.
  • the mobile terminal takes a mobile phone as an example.
  • the memory 901 can be accessed by the CPU 902, the peripheral interface 903, etc., and the memory 901 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 903 which can connect the input and output peripherals of the device to CPU 902 and memory 901.
  • the I/O subsystem 909 can connect input and output peripherals on the device, such as touch display 912 and other input/control devices 910, to peripheral interface 903.
  • the I/O subsystem 909 can include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910.
  • one or more input controllers 9092 receive electrical signals from other input/control devices 910 or transmit electrical signals to other input/control devices 910, and other input/control devices 910 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 9092 can be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch display 912 is an input interface and an output interface between the user electronic device and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, and video.
  • the display controller 9091 in the I/O subsystem 909 receives an electrical signal from the touch display 912 or transmits an electrical signal to the touch display 912.
  • the touch display 912 detects the contact on the touch display screen, and the display controller 9091 converts the detected contact into an interaction with the user interface object displayed on the touch display screen 912, that is, realizes human-computer interaction, and displays the touch.
  • the user interface objects on the control display 912 can be icons that run the game, icons that are networked to the respective network, and the like.
  • the device may further comprise a light mouse, the touch sensitive surface that does not display the visual output, or an extension of the touch sensitive surface formed by the touch display screen.
  • the RF circuit 905 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages or emails.
  • the RF circuit 905 receives and transmits an RF signal, also referred to as an electromagnetic signal, and the RF circuit 905 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal and communicates with the communication network and other devices through the electromagnetic signal.
  • RF circuitry 905 may include known circuitry for performing these functions, including but not limited to an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, CODEC (COder-DECoder) chipset and Subscriber Identity Module (SIM) and so on.
  • CODEC COder-DECoder
  • SIM Subscriber Identity Module
  • the audio circuit 906 is arranged to receive audio data from the peripheral interface 903, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 911.
  • the speaker 911 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 905 to sound and play the sound to the user.
  • the power management chip 908 is configured to provide power and power management for the hardware connected to the CPU 902, the I/O subsystem, and the peripheral interface.
  • the mobile terminal provided in this embodiment can effectively improve the problem that the black screen gesture response is not timely, and avoid the situation that the touch display screen leaks and responds to the black screen gesture after returning from the bright screen to the blank screen.
  • the apparatus for responding to a black screen gesture, the storage medium, and the method for responding to a black screen gesture provided by any embodiment provided by the foregoing embodiments are provided with the corresponding functional modules and beneficial effects of performing the method.

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)
  • User Interface Of Digital Computer (AREA)

Abstract

一种响应黑屏手势的方法、装置、存储介质及移动终端。该方法包括在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势;判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;若是,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。

Description

响应黑屏手势的方法、装置、存储介质及移动终端 技术领域
本公开涉及移动终端技术领域,例如涉及响应黑屏手势的方法、装置、存储介质及移动终端。
背景技术
移动终端,例如智能手机、掌上电脑、平板电脑或掌上游戏机等,通常被设计为具有触控显示屏的结构,以提供触摸输入方式,使用户的操作更加便捷。
黑屏手势是智能手机的一个独具特色又具有科技未来感的功能,当黑屏手势功能被开启后,在智能手机待机黑屏的状态下也可实现检测作用于触控显示屏上的手势操作,从而触发手机内部相应的功能或软件。
发明内容
本公开提供的响应黑屏手势的方法、装置、存储介质及移动终端,可以有效地改善黑屏手势响应不及时的问题。
本公开提供了一种响应黑屏手势的方法,包括:
在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势;
判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;
若是,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
本公开还提供了一种响应黑屏手势的装置,该装置包括:
手势获取模块,设置为在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势;
手势匹配模块,设置为判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;
事件上报模块,设置为若所述黑屏手势是熄屏状态下执行的与预设操作对应的手势,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
本公开还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开所提供的响应黑屏手势的方法。
本公开还提供了一种移动终端,包括触控显示屏、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述触控显示屏,包括触摸芯片,设置为检测黑屏手势;所述触摸芯片,设置为在处理器的控制下,使所述触控显示屏的工作模式维持手势模式不变;所述处理器,设置为执行所述计算机程序时实现如本公开提供的响应黑屏手势的方法。
附图说明
图1是一实施例提供的一种响应黑屏手势的方法的流程图;
图2是一实施例提供的手势模板矫正界面示意图;
图3是一实施例提供的一种黑屏手势轨迹的子手势轨迹的示意图;
图4是一实施例提供的一种安卓系统框架示意图;
图5是一实施例提供的一种基于黑屏手势唤醒系统的方法的流程图;
图6是一实施例提供的另一种响应黑屏手势的方法的流程图;
图7是一实施例提供的又一种响应黑屏手势的方法的流程图;
图8a是一实施例提供的一种响应黑屏手势的装置的结构框图;
图8b是一实施例提供的另一种响应黑屏手势的装置的结构框图;
图9是一实施例提供的一种移动终端的结构示意图。
具体实施方式
一些实施例被描述成作为流程图描绘的处理或方法,虽然流程图将每步骤描述成顺序的处理,但是流程图中的许多步骤可以被并行地、并发地或者同时实施。此外,每个步骤的顺序可以被重新安排。当操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
黑屏手势功能是在移动终端(例如智能手机)处于熄屏休眠的情况下,触控显示屏以低功耗状态运行,以在熄屏状态下检测作用于触控显示屏的黑屏手势,并根据该黑屏手势来唤醒智能手机的一项功能或开启预先设置的与黑屏手势类型对应的应用程序的功能。为了便于理解黑屏手势功能,下面对由熄屏状态下检测到黑屏手势至应用层开启该黑屏手势对应的应用程序的流程进行说明,该流程包括:将黑屏手势对应的手势数据存入驱动层的预设节点内,其中,手势数据包括手势坐标和手势类型;由驱动层执行黑屏手势数据有效性判断;若有效,则由框架层执行黑屏手势事件派发;在应用层接收到黑屏手势事件后,由应用层从驱动层内预设节点读取手势坐标,根据该手势坐标和手势类型计算黑屏手势的动画轨迹,将动画轨迹数据发送至帧缓存(Frame Buffer),以按照设定的屏幕刷新率将该动画轨迹刷新至触控显示屏,进行显示;随后,由应用层执行开启该黑屏手势对应的应用程序的操作。
例如,用户可能会利用黑屏手势进行连续切歌操作。通过黑屏手势执行切歌操作的流程一般是,在检测到一个切歌的黑屏手势后,移动终端响应该黑屏手势,点亮触控显示屏以显示该黑屏手势的轨迹,再熄灭触控显示屏。其中,触控显示屏在亮屏时退出检测黑屏手势的手势模式,进入正常模式,并且触控显示屏在正常模式下,触控显示屏不能检测黑屏手势。在重新熄屏后经过设定时间,触控显示屏才能重新进入手势模式。该设定时间由系统默认设置,一般可以取2s左右。在熄屏之后,且触控显示屏重新进入手势模式之前,若用户再输入用于切歌的黑屏手势,则移动终端不会响应该用于切歌的黑屏手势。此时,对于用户来说,用户输入的切歌的黑屏手势没有被响应,从而,导致用户直观地认为黑屏手势功能的响应不够灵敏。
相关的黑屏手势处理流程存在缺陷导致移动终端对一些应用场景下用户输入的黑屏手势的响应不够及时,进而导致用户直观地认为黑屏手势功能的反应不够灵敏。本公开提供的响应黑屏手势的方案可以很好的解决上述的触控显示屏在由亮屏恢复至熄屏后漏响应黑屏手势的问题。
图1为本实施例提供的一种响应黑屏手势的方法的流程图,该方法可以由响应黑屏手势的装置来执行,其中,该装置可由软件和硬件中的至少之一实现,一般可集成在移动终端中。 如图1所示,该方法包括:
在步骤110中,在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势。
其中,触控显示屏的工作模式包括手势模式和正常模式。在手势模式下,触控显示屏可以检测黑屏手势。在正常模式下,触控显示屏无法检测到黑屏手势。触控显示屏的工作模式切换可以由触摸芯片控制。触摸芯片设置于触控显示屏中,若触摸芯片输出触摸感测控制信号至触控显示屏,则触控显示屏处于手势模式。触控显示屏在手势模式下可以检测用户输入的黑屏手势。若触摸芯片输出显示信号至触控显示屏,则基于该显示信号在触控显示屏的上下基板之间形成电场,触控显示屏内的液晶在电场的作用下发生偏转,实现显示,此时,触控显示屏处于正常模式。
黑屏手势可以是用户在黑屏手势功能开启后,在处于熄屏状态的移动终端的触控显示屏上输入的触摸手势。黑屏手势并不限于在触控显示屏上输入的触摸手势,还可以是由移动终端的传感器检测到的操作等。例如,左右摇晃智能手机的手势,从智能手机的触控显示屏上空拂过的手势及按压智能手机边框的手势等等。
例如,在系统唤醒后,内核层调用驱动层中断处理函数执行,驱动层通过中断处理函数读取触摸芯片内的手势数据,并将已读取的手势数据写入驱动层的预设节点内。其中,手势数据包括手势坐标和预设的结束位。例如,预先定义结束位对应的字符是“#”。在用户输入黑屏手势时,触摸芯片将检测到的黑屏手势对应的手势数据存入本身预设的寄存器中。触摸芯片在检测到黑屏手势输入完成后,在寄存器中存储的手势数据的结尾添加“#”。驱动层在读取到该结束位对应的字符,即“#”时,对预设节点内已读入的手势坐标作曲线拟合得到与该黑屏手势最接近的手势轨迹。其中,曲线拟合是一种数据处理方式,即用连续曲线近似地刻画或比拟平面上离散点所表示的坐标之间的函数关系。将该手势轨迹与预先存储的黑屏手势模板进行匹配,确定所述手势轨迹对应的黑屏手势。驱动层也可以无需等待检测到该结束位才执行手势轨迹的绘制操作。驱动层可以边读取手势数据边绘制手势轨迹,即每隔设定时间长度,驱动层根据在该时间长度内获取的手势数据绘制出手势轨迹的一个子轨迹,直至驱动层读取到该结束位,确定手势轨迹绘制完成。
其中,黑屏手势模板的配置方式有多种。例如,该黑屏手势模板是对一定数目的用户正常使用黑屏手势功能输入的黑屏手势的轨迹进行统计,得到每个黑屏手势的出现频率超过设定频率的手势轨迹,抽离出该出现频率超过设定频率的手势轨迹的共性,据此拟合出目标手势轨迹。由该目标手势轨迹及对应的黑屏手势组成黑屏手势模板。在移动终端出厂前,将该黑屏手势模板配置于移动终端中。
如图2所示的手势模板校正界面示意图,可以在移动终端中设置手势模板校正功能。在用户进入手势模板校正功能界面时,显示具有下拉菜单功能的选择框210和手写区域220,提示用户选择一个黑屏手势并输入已选择的黑屏手势对应的手势轨迹。在用户输入黑屏手势轨迹后,将用户选择的黑屏手势及该新输入的手势轨迹关联存储。若未检测到退出手势模板校正功能的指令,则获取用户选择的下一个黑屏手势及黑屏手势轨迹,将该黑屏手势与黑屏手势轨迹关联存储,直至检测到退出手势模板校正功能的指令。
在一实施例中,可以按照设定时间周期,根据移动终端用户的书写习惯更新该黑屏手势 模板。例如,用户在初次使用黑屏手势功能时,可以设置更新时间作为更新条件,实现当黑屏手势功能的使用时间达到该更新时间时,生成更新指示,由该更新指示触发执行黑屏手势模板的更新操作。其中,该更新时间还可以是系统默认时间。
在一实施例中,根据用户的书写习惯更新该黑屏手势模板的流程可以是:驱动层在检测到该更新指示时,以上一次黑屏手势模板的更新操作的结束时刻作为开始时间,获取由开始时间至检测到更新指示的当前时间之间的时间区间内的黑屏手势的手势轨迹。将该时间区间内的黑屏手势的手势轨迹作为训练样本,由设定的特征点分别将所述样本包括的每个手势轨迹划分为至少两个子手势轨迹。确定相同手势类型的模板手势与样本手势的子手势轨迹间的偏差。统计所述该子手势轨迹的偏差超过设定偏差阈值的子手势轨迹的数目。确定该数目超过设定阈值的模板手势,采用样本手势替换该模板手势。
图3是本实施例提供的一种黑屏手势轨迹的子手势轨迹的示意图。图3中的黑屏手势轨迹是驱动层在熄屏状态下识别用户输入的黑屏手势得到的轨迹,此时并未在触控显示屏中显示黑屏手势轨迹。如图3所示,对于手势轨迹“W”,采用位于拐点处的3个特征点将该手势轨迹划分为第一子手势轨迹301、第二子手势轨迹302、第三子手势轨迹303及第四子手势轨迹304。采用同样的特征点将黑屏手势模板中的黑屏手势“W”的手势轨迹划分为第一子轨迹305、第二子轨迹306、第三子轨迹307和第四子轨迹308。比对第一子手势轨迹301与第一子轨迹305,确定第一偏差。同样的,分别比对剩下的三组子轨迹,确定每组子轨迹间的偏差。分别将所确定的偏差与设定偏差阈值进行比较。确定偏差超过设定偏差阈值的子轨迹数目,若该数目超过设定阈值,则采用样本手势“W”的手势轨迹替换该模板手势中存储的黑屏手势“W”的手势轨迹。从而,实现根据用户的书写习惯个性化的调整黑屏手势模板,提高了黑屏手势的识别率。
在步骤120中,判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势,若是,则执行步骤130。
其中,预设操作为在触控显示屏未点亮的情况下即可执行的操作。例如,可以是切歌操作、打开手电筒应用或其它无需亮屏即可执行的操作。
在一实施例中,可以在移动终端出厂前,通过白名单的形式将在熄屏状态下执行的操作配置在移动终端中。移动终端可以在联网后,获取移动终端服务器推送的针对该白名单的更新消息。可以通过访问该移动终端服务器的方式下载该白名单的方式,更新移动终端预先配置的白名单。
在检测到用户输入黑屏手势后,根据该黑屏手势查询该白名单,判断该黑屏手势是否属于该白名单。若是,则确定该黑屏手势为熄屏状态下执行的预设操作对应的手势。
在步骤130中,上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
其中,黑屏手势事件可以是驱动层与应用层预先协商好的用于代表有黑屏手势输入的事件。
例如,触摸芯片在检测到用户输入黑屏手势时,发送中断唤醒信号至内核层。内核层在获取到中断唤醒信号时,执行系统唤醒操作。若该黑屏手势有效,则驱动层上报黑屏手势事件至应用层。应用层在接收到黑屏手势事件后,获取该黑屏手势对应的手势坐标和手势类型。 应用层根据该手势坐标绘制手势轨迹,此时,移动终端的触控显示屏点亮,该手势轨迹被显示在触控显示屏上。在满足预设的结束显示条件时,触控显示屏再恢复为熄屏状态。其中,预设的结束显示条件包括设定的显示持续时间,设定的用户针对移动终端的操作等。
再例如,若用户当前输入的黑屏手势为熄屏状态下执行的预设操作对应的手势,则驱动层获取该黑屏手势对应的手势数据,基于该手势数据进行有效性判断。在确定该黑屏手势有效时,上报黑屏手势事件至应用层。应用层在接收到黑屏手势事件后,获取该手势数据,并基于该手势数据包括的手势坐标及手势类型绘制黑屏手势轨迹,并在触控显示屏上显示该黑屏手势轨迹。由于要显示黑屏手势轨迹,需要点亮触控显示屏。在触控显示屏点亮时,控制触控显示屏不进行工作模式切换,即维持工作模式为手势模式不变。从而,在触控显示屏再次熄灭后,若用户立即输入黑屏手势,由于触控显示屏的工作模式仍然处于手势模式,可以检测到该再次输入的黑屏手势,并对其进行响应,避免了由亮屏切换至黑屏后的较短时间内无法检测黑屏手势的情况发生。
图4是本实施例提供的一种安卓系统框架示意图。以图4所示的操作系统为安卓(Android)系统的移动终端为例,介绍本实施例提供的黑屏手势功能的执行流程。如图4所示,安卓系统框架由下至上包括内核层410、核心类库层420、框架层430及应用层440。其中,内核层410提供核心系统服务,包括安全、内存管理、进程管理、网络协议栈及硬件驱动等。其中,将内核层410中的硬件驱动记为驱动层411,该驱动层411包括触控显示屏驱动、摄像头驱动等。核心类库层420包括安卓运行环境(Android Runtime)和类库(Libraries)。其中,Android Runtime提供大部分在Java编程语言核心类库中可用的功能,包括核心库(Core Libraries)和达尔维克虚拟机(Dalvik VM)。每一个安卓应用程序是Dalvik虚拟机中的实例,运行在它们自己的进程中。类库供安卓系统的每个组件使用,包括如下功能:媒体库(Media Framework)、界面管理(Surface Manager)、SQLite(关系数据库引擎)及FreeType(位图和矢量字体渲染)等,每个功能通过安卓系统的框架层430暴露给开发者使用。框架层430提供开发安卓应用程序所需的一系列类库,使开发人员可以进行快速的应用程序开发,方便重用组件,也可以通过继承实现个性化的扩展,其提供的服务包括组件管理服务、窗口管理服务、系统数据源组件、空间框架、资源管理服务及安装包管理服务等。应用层440上包括多类与用户直接交互的应用程序,或由Java语言编写的运行于后台的服务程序,包括桌面应用、联系人应用、通话应用、相机应用、图片浏览器、游戏、地图和web浏览器等程序,以及开发人员开发的其他应用程序。
例如,在黑屏手势功能开启后,触摸芯片在检测到黑屏手势时,生成一唤醒信号,并发送该唤醒信号至内核层。通过该唤醒信号触发内核层执行系统唤醒操作。在系统唤醒后,内核层调用驱动层中断处理函数执行,驱动层通过该中断处理函数读取触摸芯片中手势数据,并将读取的手势数据存储在驱动层的预设节点内。其中,预设节点可以为文件节点,例如可以是proc-D目录下的虚拟文件节点。在数据读取完成后,驱动层判定该手势数据的有效性,有效性判定的方式有很多种,例如,驱动层根据该手势数据包含的手势坐标确定手势类型,并将所确定的手势类型作为手势数据存储在该预设节点内。若该手势类型不是预设的黑屏手势,则判定手势数据无效。又如,驱动层统计该手势数据的数目,判定该数目是否满足绘制预设的黑屏手势的要求,若否,则判定手势数据无效。在数据有效时,驱动层上报黑屏手势 事件。该黑屏手势事件通过核心类库层传输至框架层,并通过框架层派发,达到应用层。应用层在获取到黑屏手势事件时,由驱动层的预设节点读取手势数据。在手势数据读取完成后,根据该手势数据包含的手势坐标计算出黑屏手势轨迹,将该黑屏手势轨迹绘制在触控显示屏上进行显示。应用层基于所读取的手势数据中的手势类型,打开与该手势类型对应的应用程序。其中,手势类型可以是预先设置于移动终端中的用于实现一功能的手势,还可以是用户自定义的手势。例如,手势类型可以是O,代表打开相机。又如,手势类型可以是V,代表打开手电筒等等。
例如,还可以是在系统唤醒时即上报黑屏手势事件,内核层调用驱动层中断处理函数执行,驱动层通过该中断处理函数读取触摸芯片中手势数据的操作,并将该手势数据存储在驱动层的预设节点内;在黑屏手势事件上报时,并行执行驱动层读取手势数据和根据手势数据确定手势类型的操作;例如,驱动层获取该预设节点内的手势数据,对该手势数据作曲线拟合得到该黑屏手势最接近的手势类型,将该手势类型也可以作为手势数据存储在该预设节点内。在应用层接收到黑屏手势事件时,按照设定周期检测该预设节点内的手势数据是否准备完成。在准备完成时,应用层由该预设节点内读取该手势数据。在该手势数据读取成功且有效时,根据该手势数据包含的手势坐标和手势类型计算出黑屏手势轨迹,将该黑屏手势轨迹绘制在触控显示屏上进行显示。应用层基于所读取的手势数据中的手势类型,打开与该手势类型对应的应用程序。
本实施例提供的方法,通过检测到当前输入的黑屏手势为熄屏状态下执行的预设操作对应的手势时,上报该黑屏手势对应的黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变,从而,可以在触控显示屏熄灭后迅速响应用户新输入的黑屏手势,可以有效地改善黑屏手势响应不及时的问题,避免触控显示屏在由亮屏恢复至熄屏后漏响应黑屏手势的情况发生。
图5是本实施例提供的一种基于黑屏手势唤醒系统的方法的流程图。如图5所示,该方法包括:
在步骤510中,在用户配置黑屏手势开关的开关状态时,驱动层获取针对应用层中每个黑屏手势的开关状态的配置信息。
其中,该配置信息包括针对每个黑屏手势开关在应用层开启与否的状态。
预先在应用层和驱动层设置控制黑屏手势启用与否的开关。可以在应用层以开关控件的形式展示黑屏手势开关,以供用户选择开启或关闭该黑屏手势开关对应的黑屏手势。例如,在用户点击设置中的黑屏手势功能选项时,显示界面切换至黑屏手势界面,该黑屏手势界面包括预先设置的黑屏手势(如“O”、“V”、“<”、“W”及“M”等)及对应的黑屏手势开关,还包括自定义黑屏手势的选项。若用户打开黑屏手势“O”对应的黑屏手势开关,则表明启用黑屏手势“O”。此时,黑屏手势“O”对应的开关控件的返回值变为启动黑屏手势对应的预设值(例如,返回值为1代表启动黑屏手势)。该预设值可以由程序开发者设定。
例如,应用层监测黑屏手势界面中每个黑屏手势对应的开关控件的返回值。根据该开关控件的返回值确定应用层中每个黑屏手势的开关状态。应用层将所述开关状态作为配置信息下发至驱动层。
在步骤520中,驱动层将所述配置信息发送至触摸芯片,以使所述触摸芯片根据所述配 置信息打开已启用的黑屏手势对应的中断唤醒功能。
其中,中断唤醒功能包括基于检测到的该黑屏手势,触摸芯片会发送中断唤醒信号至内核层,以触发内核层执行系统唤醒的操作。在执行所述中断唤醒功能时,触摸芯片发送中断唤醒信号至内核层。
驱动层接收到该基于黑屏手势的开关状态的配置信息时,将该配置信息发送至触摸芯片。触摸芯片在接收到该配置信息后,基于该配置信息标识具有唤醒系统权限的黑屏手势。从而,触摸芯片仅对已启用的黑屏手势做出响应,并上报中断唤醒信号,而忽略未启用的黑屏手势,避免用户未启用的黑屏手势触发系统唤醒的情况发生,降低了移动终端的功耗。
在步骤530中,在用户输入黑屏手势时,所述触摸芯片获取该黑屏手势对应的手势坐标。
例如,触控显示屏包括面板、接触性传感器、柔性电路板及触摸芯片。其中,面板为触控显示屏的表层,用户的触摸操作作用于该面板上。根据触控显示屏的结构与触摸芯片设计要求制作接触性传感器。接触性传感器通过柔性电路板与触摸芯片电连接。
以电容式触控显示屏为例,当用户输入黑屏手势时,由于人体电场,用户和触控显示屏表面形成一个耦合电容,对于高频电流来说,电容是直接导体,于是手指从接触点吸走一个很小的电流,这个电流分别从触控显示屏的四角上的电极中流出,并且流经这四个电极的电流与手指到四角的距离成正比,触摸芯片通过对这四个电流比例的精确计算,得出触摸点的位置,即手势坐标。
在步骤540中,触摸芯片基于手势坐标识别黑屏手势。
例如,触摸芯片实时对手势坐标进行曲线拟合,得到用户输入的黑屏手势最接近的手势轨迹。在检测到用户输入完成时,将绘制后的黑屏手势轨迹与预先存储的黑屏手势模板进行匹配。根据匹配结果确定用户输入的黑屏手势,并存储该黑屏手势的手势类型,以便于驱动层在获取手势坐标的同时,可以获取该手势类型,无需驱动层再次执行手势匹配。由于触摸芯片实时对手势坐标进行绘制,提高了执行速度。
其中,触摸芯片还可以在检测到黑屏手势输入时,存储黑屏手势对应的手势坐标,待确定用户输入完成时,基于该手势坐标绘制手势轨迹。
在步骤550中,触摸芯片判断所述黑屏手势是否为已启用的黑屏手势,若是,则执行步骤560,若否,执行步骤580。
触摸芯片查询该配置信息,确定该黑屏手势是否为已开启的黑屏手势,从而,获知该黑屏手势对应的中断唤醒功能是否开启,若是,则执行步骤560,若否,执行步骤580。
在步骤560中,触摸芯片判定所述黑屏手势对应的中断唤醒功能已打开,发送中断唤醒信号至内核层。
若确定用户输入的该黑屏手势已启用,则触摸芯片发送中断唤醒信号至内核层。
在步骤570中,在获取到中断唤醒信号时,内核层基于所述中断唤醒信号执行系统唤醒操作。
在步骤580中,触摸芯片判定所述黑屏手势对应的中断唤醒功能未打开,放弃发送中断唤醒信号至内核层。
若确定用户输入的黑屏手势未启用,则触摸芯片放弃响应该黑屏手势,即不发送中断唤醒信号至内核层。因此,移动终端不会因该未启用的黑屏手势的输入而被唤醒。
本实施例提供的方法,通过预先在触摸芯片设置中断唤醒功能,根据用户在应用层配置的黑屏手势的开关状态,为已启用的黑屏手势打开中断唤醒功能,从而,在黑屏手势输入后,若确定该黑屏手势已启用,则发送中断唤醒信号至内核层,若确定黑屏手势未开启,不响应该黑屏手势,可以有效的防止用户无意识的输入黑屏手势导致系统被频繁唤醒的情况发生,降低了移动终端的功耗。
图6是本实施例提供的另一种响应黑屏手势的方法的流程图。如图6所示,该方法包括:
在步骤610中,在检测到所述系统唤醒操作后,通过驱动层中断处理函数,从触摸芯片内读取用户当前输入的黑屏手势对应的手势数据,并将该手势数据存储于驱动层的预设节点内。
其中,系统唤醒表示移动终端由休眠状态被唤醒。可以由用户在触控显示屏上输入的触摸操作触发系统唤醒。例如,触摸芯片在检测到触摸操作时,生成一唤醒信号,传输该唤醒信号至内核层。内核层基于该唤醒信号执行系统唤醒操作。
在步骤620中,驱动层读取所述预设节点内的手势数据。
在步骤630中,在检测到所述手势数据的结束位时,驱动层对所述手势数据包括的手势坐标作曲线拟合得到手势轨迹,识别所述手势轨迹确定所述黑屏手势。
在检测到结束位时,驱动层对所读取的手势数据中的手势坐标作曲线拟合得到最接近的手势轨迹。通过将该手势轨迹与黑屏手势模板进行匹配的方式,识别用户输入的黑屏手势。
在一实施例中,驱动层也可以不用等到检测到该结束位时,才对所读取的手势坐标作曲线拟合,可以在由触摸芯片读取的手势数据达到设定数目时即进行曲线拟合,直至检测到结束位时,将得到的手势轨迹与黑屏手势模板匹配,从而缩短了黑屏手势识别所需的时间。
在步骤640中,判断所述黑屏手势对应的黑屏手势开关是否处于打开状态,若是,则执行步骤650,若否,执行步骤690。
其中,预先在应用层和驱动层设置控制黑屏手势启用与否的开关。在用户配置黑屏手势开关时,驱动层接收应用层发送的配置信息,从而获取针对应用层中每个黑屏手势开关的开关状态。根据该开关状态更新预先配置在驱动层中的黑屏手势开关的开关状态,使驱动层内的黑屏手势开关的状态与应用层内的开关状态相同。
驱动层在检查到黑屏手势时,查询该黑屏手势对应的黑屏手势开关的开关状态。若该黑屏手势开关为打开状态,则确定所检测到的黑屏手势已被启用,则执行步骤650,若该黑屏手势开关为关闭状态,执行步骤690。
在步骤650中,判断所述黑屏手势是否是熄屏状态下执行的预设操作对应的手势,若是,则执行步骤660,若否,执行步骤670。在步骤660中,上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
触控显示屏的工作模式的切换可以由驱动层发送模式切换指令进行控制。在触控显示屏点亮以显示当前输入的黑屏手势的手势轨迹时,驱动层若判断该黑屏手势执行的操作是预设的熄屏状态下执行的操作,则不发送模式切换指令至触摸芯片,此时,触控显示屏的工作模式维持手势模式不变。
在步骤670中,驱动层上报黑屏手势事件至应用层,并在触控显示屏显示与所述黑屏手 势对应的手势轨迹时,控制触控显示屏退出手势模式。
在检测到的黑屏手势对应的黑屏手势开关处于打开状态时,驱动层上报黑屏手势事件至应用层。应用层在接收到黑屏手势事件后,获取该黑屏手势对应的手势数据,基于该手势数据绘制手势轨迹,点亮触控显示屏以显示该手势轨迹。由于所检测到的黑屏手势不是熄屏状态下执行的预设操作对应的手势,在触控显示屏点亮后,驱动层发送模式切换指令至触摸芯片,以使触控显示屏退出手势模式,进入正常模式。
其中,触发触控显示屏退出手势模式,进入正常模式的方式有多种,例如,驱动层在检测到用户对唤醒源的操作时,点亮触控显示屏,并控制触控显示屏退出手势模式等。其中,唤醒源包括电源键或主键(HOME键)等。
在步骤680中,在检测到触控显示屏熄灭时,驱动层控制触控显示屏的工作模式重新切换至手势模式。
若移动终端未退出黑屏手势功能,则在触控显示屏再次熄灭时,驱动层输出模式切换指令至触摸芯片,以控制触控显示屏重新进入手势模式。
在步骤690中,放弃上报黑屏手势事件至应用层。
由于驱动层确定所检测到的熄屏状态下执行的预设操作对应的黑屏手势未被启用,不上报黑屏手势事件至应用层。因此,应用层不会基于未启用的黑屏手势执行数据获取操作。
本实施例提供的方法,通过在上报黑屏手势事件之前,查询触发该黑屏手势事件的黑屏手势是否启用,若是,则上报黑屏手势事件至应用层,若否,放弃上报黑屏手势事件至应用层,可以避免上报未开启的黑屏手势触发的黑屏手势事件至应用层的情况发生。
图7是本实施例提供的又一种响应黑屏手势的方法的流程图。如图7所示,该方法包括:
在步骤700中,在用户输入黑屏手势时,所述触摸芯片获取该黑屏手势对应的手势坐标。
在步骤710中,触摸芯片基于手势坐标识别所述黑屏手势为切歌手势。
在步骤720中,触摸芯片判断该切歌手势是否为已启用的黑屏手势,若是,则执行步骤740,若否,执行步骤730。
触摸芯片查询配置信息确定切歌手势是否已启用,若是,则执行步骤740,若否,执行步骤730。
在步骤730中,触摸芯片判定所述切歌手势对应的中断唤醒功能未打开,放弃发送中断唤醒信号至内核层。
若切歌手势不是已启用的黑屏手势,则触摸芯片不响应该切歌手势,即不发送中断唤醒信号至内核层。
在步骤740中,触摸芯片判定所述切歌手势对应的中断唤醒功能已打开,发送中断唤醒信号至内核层。
若切歌手势是已启用的黑屏手势,则触摸芯片判定切歌手势对应的中断唤醒功能已打开,发送中断唤醒信号至内核层。
在步骤750中,在获取到中断唤醒信号时,内核层基于所述中断唤醒信号执行系统唤醒操作。
在步骤760中,驱动层判断切歌手势是否是熄屏状态下执行的预设操作对应的手势,若是,则执行步骤770,若否,执行步骤780。
驱动层在系统唤醒后,通过中断处理函数由触摸芯片中读取手势数据,该手势数据包括手势坐标和手势类型。驱动层根据读取的手势类型确定用户输入的黑屏手势是切歌手势,查询预先设置的熄屏状态下执行的预设操作对应的手势,判断切歌手势对应的操作是否在熄屏下进行。
在步骤770中,驱动层上报黑屏手势事件至应用程,以使触控显示屏显示与所述切歌手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
在切歌手势是熄屏状态下执行的预设操作对应的手势时,驱动层上报黑屏手势事件至应用层,同时不向触摸芯片发送模式切换指令,以使触控显示屏的工作模式维持手势模式不变。此时,若用户在触控显示屏再次熄灭后立即输入黑屏手势,触控显示屏也能检测到该新输入的黑屏手势。
在步骤780中,驱动层上报黑屏手势事件至应用层,并在触控显示屏显示与所述黑屏手势对应的手势轨迹时,控制触控显示屏退出手势模式。
在步骤790中,在检测到触控显示屏熄灭时,驱动层控制触控显示屏的工作模式重新切换至手势模式。
本实施例提供的方法,通过在用户输入黑屏手势时,通过触摸芯片识别黑屏手势,只有打开中断唤醒功能的黑屏手势才能唤醒系统;在系统唤醒后,驱动层从触摸芯片读取黑屏手势的识别结果为切歌手势,判断该切歌手势是否为熄屏状态下执行的预设操作对应的手势,若是,则在显示该切歌手势的手势轨迹时,控制触控显示屏不退出手势模式,若否,控制触控显示屏退出手势模式,可以有效的避免恢复熄屏后的设定时间内无法检测黑屏手势的情况发生,同时可以降低移动终端功耗。
图8a是本实施例提供的一种响应黑屏手势的装置的结构框图。该装置可有软件和硬件中的至少之一实现,一般集成在移动终端中。如图8a所示,该装置可以包括:
手势获取模块810,设置为在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势;
手势匹配模块820,设置为判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;
事件上报模块830,设置为若所述黑屏手势是熄屏状态下执行的预设操作对应的手势,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
本实施例的响应黑屏手势的装置,可以有效地改善黑屏手势响应不及时的问题,避免触控显示屏在由亮屏恢复至熄屏后漏响应黑屏手势的情况发生。
图8b是一实施例提供的另一种响应黑屏手势的装置的结构框图如图8b所示,上述装置还可以包括:
唤醒操作检测模块840,设置为在获取用户在所述触控显示屏上输入的黑屏手势之前,检测基于黑屏手势的系统唤醒操作;
手势数据读取模块850,设置为在获取用户在所述触控显示屏上输入的黑屏手势之前,通过驱动层中断处理函数,从触摸芯片内读取所述黑屏手势对应的手势数据,并将所述手势数据存储于驱动层的预设节点内;
以及,手势获取模块810是设置为:
读取所述预设节点内的手势数据;
在检测到所述手势数据的结束位时,对所述手势数据包括的手势坐标作曲线拟合得到手势轨迹,识别所述手势轨迹确定所述黑屏手势。
在一实施例中,上述装置还包括:
模式切换模块860,设置为在判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势之后,若所述黑屏手势不是熄屏状态下执行的与预设操作对应的手势,则上报黑屏手势事件至应用层,并在触控显示屏显示与所述黑屏手势对应的手势轨迹时,控制触控显示屏退出手势模式;
在检测到触控显示屏熄灭时,控制触控显示屏的工作模式重新切换至手势模式。
在一实施例中,上述装置还包括:
配置信息获取模块870,设置为在用户配置黑屏手势开关的开关状态时,获取针对应用层中每个黑屏手势的开关状态的配置信息;
配置信息发送模块880,设置为将所述配置信息发送至触摸芯片,以使所述触摸芯片根据所述配置信息打开已启用的黑屏手势对应的中断唤醒功能。
在一实施例中,上述装置包括:
手势状态判断模块890,设置为在获取在所述触控显示屏上输入的黑屏手势之后,所述触摸芯片判断所述黑屏手势是否为已启用的黑屏手势;
若是,则所述触摸芯片判定所述黑屏手势对应的中断唤醒功能已打开,发送中断唤醒信号至内核层,所述中断唤醒信号用于唤醒系统。
在一实施例中,上述装置包括:
配置信息同步模块892,设置为在用户配置黑屏手势开关的开关状态时,获取针对应用层中每个黑屏手势的开关状态的配置信息,根据所述配置信息更新预置在驱动层中的黑屏手势开关的开关状态;
在一实施例中,上述装置包括:
开关状态判断模块894,设置为在上报黑屏手势事件至应用层之前,判断所述黑屏手势对应的黑屏手势开关是否处于打开状态;
若是,则上报黑屏手势事件至应用层;
若否,放弃上报黑屏手势事件至应用层。
在一实施例中,上述装置包括:
模式退出模块896,设置为在检测到对唤醒源的操作时,点亮触控显示屏,并控制触控显示屏退出手势模式,其中,所述唤醒源包括电源键或主键。
本实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种响应黑屏手势的方法,该方法包括:
在触控显示屏的工作模式为手势模式时,获取用户在所述触控显示屏上输入的黑屏手势;
判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;
若是,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
存储介质可以是任何类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机执行。术语“存储介质”包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如计算机程序)。
本实施例所提供的一种包含计算机可执行指令的存储介质可以执行任意实施例所提供的响应黑屏手势的方法中的相关操作。
本实施例提供了一种移动终端,该移动终端中可集成本实施例提供的响应黑屏手势的装置。图9为本实施例提供的一种移动终端的结构示意图。如图9所示,该移动终端可以包括:壳体(图中未示出)、触控显示屏912、物理按键913、存储器901、中央处理器(Central Processing Unit,CPU)902、电路板(图中未示出)和电源电路(图中未示出)。所述触控显示屏912,设置为将用户操作转换成电信号输入至所述处理器,并显示可视输出信号;所述物理按键913,包括电源键或HOME键等,设置为获取用户操作,发出唤醒信号至CPU902;所述触控显示屏912包括触摸芯片,所述触摸芯片,设置为在处理器的控制下,使所述触控显示屏的工作模式维持手势模式不变,以及,存储针对应用层中每个黑屏手势的开关状态的配置信息,并根据所述配置信息判定是否打开已启用的黑屏手势对应的中断唤醒功能,其中,在执行所述中断唤醒功能时,触摸芯片发送中断唤醒信号至内核层;所述电路板安置在所述壳体围成的空间内部;所述CPU902和所述存储器901设置在所述电路板上;所述电源电路,设置为为所述电子设备的一个或多个个电路或器件供电;所述存储器901,设置为存储可执行程序代码;所述CPU902通过读取所述存储器901中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:在触控显示屏的工作模式为手势模式时,获取用户在所述触控显示屏上输入的黑屏手势;判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;若是,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
所述移动终端还包括:外设接口903、)射频电路(Radio Frequency,RF)905、音频电路906、扬声器911、电源管理芯片908、输入/输出(I/O)子系统909、触控显示屏912、其他输入/控制设备910以及外部端口904,这些部件通过一个或多个通信总线或信号线907来通信。
图示移动终端900仅仅是移动终端的一个范例,并且移动终端900可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的多种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于响应黑屏手势的移动终端进行详细的描述,该移动终端以手机为例。
存储器901,所述存储器901可以被CPU902、外设接口903等访问,所述存储器901可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口903,所述外设接口903可以将设备的输入和输出外设连接到CPU902和存储器901。
I/O子系统909,所述I/O子系统909可以将设备上的输入输出外设,例如触控显示屏912和其他输入/控制设备910,连接到外设接口903。I/O子系统909可以包括显示控制器9091和用于控制其他输入/控制设备910的一个或多个输入控制器9092。其中,一个或多个输入控制器9092从其他输入/控制设备910接收电信号或者向其他输入/控制设备910发送电信号,其他输入/控制设备910可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。其中,输入控制器9092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触控显示屏912,所述触控显示屏912是用户电子设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标和视频等。
I/O子系统909中的显示控制器9091从触控显示屏912接收电信号或者向触控显示屏912发送电信号。触控显示屏912检测触控显示屏上的接触,显示控制器9091将检测到的接触转换为与显示在触控显示屏912上的用户界面对象的交互,即实现人机交互,显示在触控显示屏912上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。其中,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触控显示屏形成的触摸敏感表面的延伸。
RF电路905,设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息或电子邮件等。RF电路905接收并发送RF信号,RF信号也称为电磁信号,RF电路905将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路905可以包括用于执行这些功能的已知电路,RF电路905包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组和用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路906,设置为从外设接口903接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器911。
扬声器911,设置为将手机通过RF电路905从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片908,设置为为CPU902、I/O子系统及外设接口所连接的硬件进行供电及电源管理。
本实施例提供的移动终端,可以有效地改善黑屏手势响应不及时的问题,避免触控显示屏在由亮屏恢复至熄屏后漏响应黑屏手势的情况发生。
上述实施例中提供的响应黑屏手势的装置、存储介质及移动终端可执行任意实施例所提供的响应黑屏手势的方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见任意实施例所提供的响应黑屏手势的方法。

Claims (20)

  1. 一种响应黑屏手势的方法,包括:
    在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势;
    判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;
    若是,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
  2. 根据权利要求1所述的方法,其中,所述获取用户在所述触控显示屏上输入的黑屏手势之前,还包括:
    检测基于黑屏手势的系统唤醒操作;
    在检测到所述系统唤醒操作后,通过驱动层中断处理函数,从触摸芯片内读取所述黑屏手势对应的手势数据,并将所述手势数据存储于驱动层的预设节点内;
    以及,获取用户在所述触控显示屏上输入的黑屏手势,包括:
    读取所述预设节点内的手势数据;
    在检测到所述手势数据的结束位时,对所述手势数据包括的手势坐标作曲线拟合得到手势轨迹,识别所述手势轨迹确定所述黑屏手势。
  3. 根据权利要求1所述的方法,其中,所述判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势之后还包括:
    若否,则上报黑屏手势事件至应用层,并在触控显示屏显示与所述黑屏手势对应的手势轨迹时,控制触控显示屏退出手势模式;
    在检测到触控显示屏熄灭时,控制触控显示屏的工作模式重新切换至手势模式。
  4. 根据权利要求1所述的方法,还包括:
    在配置黑屏手势开关的开关状态时,获取针对应用层中每个黑屏手势的开关状态的配置信息;
    将所述配置信息发送至触摸芯片,以使所述触摸芯片根据所述配置信息打开已启用的黑屏手势对应的中断唤醒功能。
  5. 根据权利要求4所述的方法,其中,所述获取在所述触控显示屏上输入的黑屏手势之后还包括:
    所述触摸芯片判断所述黑屏手势是否为已启用的黑屏手势;
    若是,则所述触摸芯片判定所述黑屏手势对应的中断唤醒功能已打开,发送中断唤醒信号至内核层,其中,所述中断唤醒信号用于唤醒系统。
  6. 根据权利要求1所述的方法,还包括:
    在配置黑屏手势开关的开关状态时,获取针对应用层中每个黑屏手势的开关状态的配置信息,根据所述配置信息更新预置在驱动层中的黑屏手势开关的开关状态;
    以及,所述上报黑屏手势事件至应用层之前,还包括:
    判断所述黑屏手势对应的黑屏手势开关是否处于打开状态;
    若是,则上报黑屏手势事件至应用层;
    若否,放弃上报黑屏手势事件至应用层。
  7. 根据权利要求1所述的方法,其中,所述获取用户在所述触控显示屏上输入的黑屏手势之前,还包括:
    检测基于黑屏手势的系统唤醒操作;
    在检测到所述系统唤醒操作后,通过驱动层中断处理函数,从触摸芯片内读取所述黑屏手势对应的手势数据,并将所述手势数据存储于驱动层的预设节点内;
    以及,获取用户在所述触控显示屏上输入的黑屏手势,包括:
    每隔设定时间长度,读取所述预设节点内的在所述设定时间长度内的手势数据;
    对所述设定时间长度内的手势数据包括的手势坐标作曲线拟合得到子轨迹,直至读取到结束位时,得到多个所述子轨迹构成的手势轨迹;
    识别所述手势轨迹确定所述黑屏手势。
  8. 根据权利要求2或7所述的方法,其中,识别所述手势轨迹确定所述黑屏手势包括:
    将所述手势轨迹与预先存储的黑屏手势模板进行匹配,根据匹配结果确定所述手势轨迹对应的黑屏手势。
  9. 根据权利要求8所述的方法,还包括:
    在检测到针对黑屏手势模板的更新指示时,获取上一次更新所述黑屏手势模板的时间至检测到所述更新指示的时间段内的黑屏手势的手势轨迹;
    将所述时间段内的黑屏手势的手势轨迹作为训练样本,使用所述训练样本更新所述黑屏手势模板。
  10. 根据权利要求9所述的方法,其中,所述使用所述训练样本更新所述黑屏手势模板包括:
    对手势类型相同的所述训练样本中的手势轨迹和所述黑屏手势模板中的手势轨迹,使用同样的设定的特征点划分为至少两个子手势轨迹;
    确定所述训练样本中的手势轨迹和所述黑屏手势模板中的手势轨迹对应的子手势轨迹间的偏差;
    统计所述子手势轨迹间的偏差超过设定偏差阈值的子手势轨迹的数目;
    当所述数目超过设定阈值时,采用所述训练样本中的手势轨迹替换所述黑屏手势模板中的手势轨迹。
  11. 根据权利要求1至10任一所述的方法,还包括:
    在检测到对唤醒源的操作时,点亮触控显示屏,并控制触控显示屏退出手势模式,其中,所述唤醒源包括电源键或主键。
  12. 一种响应黑屏手势的装置,包括:
    手势获取模块,设置为在触控显示屏的工作模式为手势模式时,获取在所述触控显示屏上输入的黑屏手势;
    手势匹配模块,设置为判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势;
    事件上报模块,设置为若所述黑屏手势是熄屏状态下执行的与预设操作对应的手势,则上报黑屏手势事件至应用层,以使触控显示屏显示与所述黑屏手势对应的手势轨迹,并且控制所述触控显示屏的工作模式维持手势模式不变。
  13. 根据权利要求12所述的装置,还包括:
    唤醒操作检测模块,设置为在获取用户在所述触控显示屏上输入的黑屏手势之前,检测基于黑屏手势的系统唤醒操作;
    手势数据读取模块,设置为在获取用户在所述触控显示屏上输入的黑屏手势之前,通过驱动层中断处理函数,从触摸芯片内读取所述黑屏手势对应的手势数据,并将所述手势数据存储于驱动层的预设节点内;
    以及,手势获取模块是设置为:读取所述预设节点内的手势数据;在检测到所述手势数据的结束位时,对所述手势数据包括的手势坐标作曲线拟合得到手势轨迹,识别所述手势轨迹确定所述黑屏手势。
  14. 根据权利要求12所述的装置,还包括:
    模式切换模块,设置为在判断所述黑屏手势是否是熄屏状态下执行的与预设操作对应的手势之后,若所述黑屏手势不是熄屏状态下执行的与预设操作对应的手势,则上报黑屏手势事件至应用层,并在触控显示屏显示与所述黑屏手势对应的手势轨迹时,控制触控显示屏退出手势模式;
    在检测到触控显示屏熄灭时,控制触控显示屏的工作模式重新切换至手势模式。
  15. 根据权利要求12所述的装置,还包括:
    配置信息获取模块,设置为在用户配置黑屏手势开关的开关状态时,获取针对应用层中每个黑屏手势的开关状态的配置信息;
    配置信息发送模块,设置为将所述配置信息发送至触摸芯片,以使所述触摸芯片根据所述配置信息打开已启用的黑屏手势对应的中断唤醒功能。
  16. 根据权利要求15所述的装置,还包括:
    手势状态判断模块,设置为在获取在所述触控显示屏上输入的黑屏手势之后,所述触摸芯片判断所述黑屏手势是否为已启用的黑屏手势;
    若是,则所述触摸芯片判定所述黑屏手势对应的中断唤醒功能已打开,发送中断唤醒信号至内核层,所述中断唤醒信号用于唤醒系统。
  17. 根据权利要求12所述的装置,还包括:
    配置信息同步模块,设置为在用户配置黑屏手势开关的开关状态时,获取针对应用层中每个黑屏手势的开关状态的配置信息,根据所述配置信息更新预置在驱动层中的黑屏手势开关的开关状态;
    开关状态判断模块,设置为在上报黑屏手势事件至应用层之前,判断所述黑屏手势对应的黑屏手势开关是否处于打开状态;
    若是,则上报黑屏手势事件至应用层;
    若否,放弃上报黑屏手势事件至应用层。
  18. 一种计算机可读存储介质,所述存储介质上存储有计算机程序,所述程序被处理器执行时实现如权利要求1至11中任一所述的响应黑屏手势的方法。
  19. 一种移动终端,包括触控显示屏、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,
    所述触控显示屏,包括触摸芯片,设置为检测黑屏手势;
    所述触摸芯片,设置为在所述处理器的控制下,使所述触控显示屏的工作模式维持手势模式不变;
    所述处理器,设置为执行所述计算机程序时实现如权利要求1至11中任一所述的响应黑屏手势的方法。
  20. 根据权利要求19所述的移动终端,其中,
    所述触摸芯片,还设置为存储针对应用层中每个黑屏手势的开关状态的配置信息,并根据所述配置信息判定是否打开已启用的黑屏手势对应的中断唤醒功能,其中,在执行所述中断唤醒功能时,触摸芯片发送中断唤醒信号至内核层。
PCT/CN2018/091632 2017-07-28 2018-06-15 响应黑屏手势的方法、装置、存储介质及移动终端 WO2019019835A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710632256.8 2017-07-28
CN201710632256.8A CN107450837B (zh) 2017-07-28 2017-07-28 响应黑屏手势的方法、装置、存储介质及移动终端

Publications (1)

Publication Number Publication Date
WO2019019835A1 true WO2019019835A1 (zh) 2019-01-31

Family

ID=60490296

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/091632 WO2019019835A1 (zh) 2017-07-28 2018-06-15 响应黑屏手势的方法、装置、存储介质及移动终端

Country Status (2)

Country Link
CN (1) CN107450837B (zh)
WO (1) WO2019019835A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450837B (zh) * 2017-07-28 2019-09-24 Oppo广东移动通信有限公司 响应黑屏手势的方法、装置、存储介质及移动终端
CN108572732B (zh) * 2018-04-02 2021-06-29 Oppo广东移动通信有限公司 电子装置、黑屏手势检测方法及相关产品
CN108563367A (zh) * 2018-06-14 2018-09-21 爱图智能(深圳)有限公司 一种触摸显示屏的自动唤醒方法和装置、可读写存储介质
TWI779240B (zh) * 2018-09-19 2022-10-01 大陸商北京集創北方科技股份有限公司 指紋應用方法及採用該方法的資訊處理裝置
CN111258455B (zh) * 2020-01-17 2023-08-18 Oppo广东移动通信有限公司 一种事件流处理方法、事件流处理装置及移动终端
CN111356217B (zh) * 2020-02-17 2023-07-21 Oppo广东移动通信有限公司 终端控制方法、装置、终端设备以及存储介质
CN111580904B (zh) * 2020-04-20 2023-05-16 北京小米移动软件有限公司 显示状态切换方法、显示状态切换装置及存储介质
CN111625175B (zh) * 2020-05-06 2021-06-22 Oppo(重庆)智能科技有限公司 触控事件处理方法、触控事件处理装置、介质与电子设备
CN115185447A (zh) * 2022-07-22 2022-10-14 广东明创软件科技有限公司 终端控制方法及相关装置
CN118069020A (zh) * 2022-11-22 2024-05-24 Oppo广东移动通信有限公司 设备控制方法、装置以及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391707A (zh) * 2014-12-05 2015-03-04 上海斐讯数据通信技术有限公司 一种应用程序的启动方法及启动装置
CN104572186A (zh) * 2014-12-25 2015-04-29 深圳市金立通信设备有限公司 一种执行操作指令的方法
CN104951078A (zh) * 2015-06-26 2015-09-30 上海斐讯数据通信技术有限公司 一种手势唤醒黑屏的方法和系统
CN105183352A (zh) * 2015-09-01 2015-12-23 广东欧珀移动通信有限公司 一种在终端黑屏状态下实现更多手势识别的方法及装置
CN105426095A (zh) * 2015-10-28 2016-03-23 广东欧珀移动通信有限公司 一种熄屏状态下开启移动终端摄像功能的方法及装置
CN107450837A (zh) * 2017-07-28 2017-12-08 广东欧珀移动通信有限公司 响应黑屏手势的方法、装置、存储介质及移动终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104137034A (zh) * 2011-11-30 2014-11-05 惠普发展公司,有限责任合伙企业 基于手势位置的输入模式
CN104238916A (zh) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 一种移动终端启动应用或应用功能的方法及移动终端
CN106576123A (zh) * 2015-09-02 2017-04-19 华为技术有限公司 控制电子设备的方法、装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391707A (zh) * 2014-12-05 2015-03-04 上海斐讯数据通信技术有限公司 一种应用程序的启动方法及启动装置
CN104572186A (zh) * 2014-12-25 2015-04-29 深圳市金立通信设备有限公司 一种执行操作指令的方法
CN104951078A (zh) * 2015-06-26 2015-09-30 上海斐讯数据通信技术有限公司 一种手势唤醒黑屏的方法和系统
CN105183352A (zh) * 2015-09-01 2015-12-23 广东欧珀移动通信有限公司 一种在终端黑屏状态下实现更多手势识别的方法及装置
CN105426095A (zh) * 2015-10-28 2016-03-23 广东欧珀移动通信有限公司 一种熄屏状态下开启移动终端摄像功能的方法及装置
CN107450837A (zh) * 2017-07-28 2017-12-08 广东欧珀移动通信有限公司 响应黑屏手势的方法、装置、存储介质及移动终端

Also Published As

Publication number Publication date
CN107450837B (zh) 2019-09-24
CN107450837A (zh) 2017-12-08

Similar Documents

Publication Publication Date Title
WO2019019835A1 (zh) 响应黑屏手势的方法、装置、存储介质及移动终端
CN107395889B (zh) 降低移动终端功耗的方法、装置、存储介质及移动终端
US11086510B2 (en) Split screen control method based on screen-off gestures, and storage medium and mobile terminal thereof
US10761722B2 (en) Black screen gesture detection method and device, storage medium, and mobile terminal
US10901608B2 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
US10831314B2 (en) Method and electronic device for preventing touch button from being false triggered
US11604660B2 (en) Method for launching application, storage medium, and terminal
US11449123B2 (en) Prompt information display method and electronic device
US10466849B2 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
WO2019233241A1 (zh) 应用程序启动方法、装置、存储介质及终端
CN107450838B (zh) 黑屏手势的响应方法、装置、存储介质及移动终端
CN107479700B (zh) 黑屏手势控制方法、装置、存储介质及移动终端
WO2021109875A1 (zh) 实现游戏应用的方法、装置、存储介质及电子设备
KR20160014481A (ko) Idle 모드에서 동작하는 전자 장치 및 방법
US10466894B2 (en) Method, device, storage medium and mobile terminal for recognizing an off-screen gesture
CN107402713B (zh) 加快黑屏手势处理的方法、装置、存储介质及移动终端
WO2021036926A1 (zh) 显示方法和电子设备
CN106776259B (zh) 一种移动终端帧率检测方法、装置及移动终端
WO2019019899A1 (zh) 改善黑屏手势响应的方法、装置、存储介质及移动终端
CN107766218A (zh) 系统优化方法、装置、存储介质及终端设备
US10666789B2 (en) Control method and device for sensors of mobile terminal, storage medium and mobile terminal
CN118069020A (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: 18837584

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: 18837584

Country of ref document: EP

Kind code of ref document: A1