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

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

Info

Publication number
WO2019019901A1
WO2019019901A1 PCT/CN2018/094916 CN2018094916W WO2019019901A1 WO 2019019901 A1 WO2019019901 A1 WO 2019019901A1 CN 2018094916 W CN2018094916 W CN 2018094916W WO 2019019901 A1 WO2019019901 A1 WO 2019019901A1
Authority
WO
WIPO (PCT)
Prior art keywords
gesture
black screen
application
screen gesture
mobile terminal
Prior art date
Application number
PCT/CN2018/094916
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 WO2019019901A1 publication Critical patent/WO2019019901A1/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 embodiments of the present disclosure relate to the field of mobile terminal technologies, for example, to a method, an apparatus, a storage medium, and a mobile terminal for responding to a black screen gesture.
  • Current mobile terminals such as smart phones, PDAs, tablets, or handheld game consoles, are generally designed to have a touch display structure, providing a user with a touch input method to make the user's operation more convenient.
  • the smart phone can also detect the gesture operation acting on the touch display screen in the standby black screen state, thereby triggering the corresponding function or software inside the mobile phone.
  • the application scenario of the black screen gesture is limited.
  • the embodiment of the present invention provides a method, a device, a storage medium, and a mobile terminal for responding to a black screen gesture, and can expand an application scenario of a black screen gesture.
  • an embodiment of the present application provides a method for responding to a black screen gesture, including:
  • the first operation corresponding to the first black screen gesture is performed, where the mobile terminal is in a blackout state when the first operation is performed;
  • the embodiment of the present application further provides a response device for a black screen gesture, the device comprising:
  • the first gesture execution module is configured to perform a first operation corresponding to the first black screen gesture when the preset first black screen gesture is detected, wherein the mobile terminal is in a blackout state when the first operation is performed ;
  • a second gesture execution module configured to perform a second operation corresponding to the second black screen gesture, if the second black screen gesture is detected, when the mobile terminal performs the first operation in the first mode.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and the program is executed by the processor to implement a black screen gesture response method according to the embodiment of the present application.
  • the embodiment of the present application further 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 response method of the black screen gesture as described in the embodiment of the present application is implemented when the processor executes the computer program.
  • the embodiment of the present application provides a response scheme of a black screen gesture, which implements operations corresponding to two black screen gestures in parallel, and can effectively expand an application scenario of a black screen gesture.
  • FIG. 1 is a flowchart of a method for responding to a black screen gesture according to an embodiment of the present application
  • FIG. 1b is a flowchart of another method for responding to a black screen gesture according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an Android system framework provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of still another method for responding to a black screen gesture according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of still another method for responding to a black screen gesture according to an embodiment of the present application
  • FIG. 5 is a flowchart of a method for responding to a black screen gesture according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of display of a black screen gesture track provided by an embodiment of the present application.
  • FIG. 7 is a structural block diagram of a device for responding to a black screen gesture according to an embodiment of the present application.
  • FIG. 7b is a structural block diagram of another apparatus for responding to a black screen gesture according to an embodiment of the present disclosure.
  • FIG. 7c is a structural block diagram of a first gesture execution module according to an embodiment of the present application.
  • 7d is a structural block diagram of a gesture recognition module provided by an embodiment of the present application.
  • FIG. 7e is a structural block diagram of a second gesture execution module provided by an embodiment of the present application.
  • FIG. 7f is a structural block diagram of still another apparatus for responding to a black screen gesture according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowchart depicts each step as a sequential process, many of the steps can be implemented in parallel, concurrently, or concurrently. Additionally, the order of one or more steps can be rearranged. The process may be terminated when its operation is completed, 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 (for example, a smart phone) is in the sleep-out state, the mobile terminal detects a black screen gesture acting on the touch display screen, and wakes up a certain function of the smart phone or starts a preset according to the black screen gesture.
  • the function of the application corresponding to the black screen gesture type In the case that the mobile terminal is in the sleep-out state, the touch display of the mobile terminal operates in a low power consumption state.
  • the process includes: storing the gesture data corresponding to the black screen gesture into the driver layer.
  • the gesture layer performs the validity determination of the gesture data corresponding to the black screen gesture; and if the gesture data corresponding to the black screen gesture is valid, the frame layer performs the black screen gesture event dispatch;
  • the application layer receives the black screen gesture event, the application layer reads the gesture type and the gesture coordinate from the preset node in the driver layer, and calculates the animation track of the black screen gesture according to the gesture coordinate and the gesture type, and sends the animation track data to the frame.
  • Cache FreBuffer
  • the operation of opening the application corresponding to the black screen gesture is performed by the application layer.
  • FIG. 1 is a flowchart of a method for responding to a black screen gesture according to an embodiment of the present disclosure.
  • the present embodiment is applicable to a response to a black screen gesture.
  • the method may be performed by a response device of a black screen gesture, and the device may be at least One to achieve: software and hardware, the method includes:
  • Step 110 Perform a first operation corresponding to the first black screen gesture when the preset first black screen gesture is detected, where the mobile terminal is in a blackout state when the first operation is performed.
  • the black screen gesture event may be an event pre-negotiated by the driver layer and the application layer to represent an event with a black screen gesture input.
  • 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 Android system framework includes a kernel layer 210, a core class library layer 220, a framework layer 230, and an application layer 240 from bottom to top.
  • the kernel layer 210 provides core system services, including security, memory management, process management, network protocol stack, and hardware drivers.
  • the hardware driver in the kernel layer 210 is referred to as a driving layer 211, and the driving layer 211 includes a touch screen display driver, a camera driver, and the like.
  • the core class library layer 220 includes an Android runtime environment (Android Runtime) and a class library (Libraries). Among them, the Android runtime environment provides most of the functions available in the Java programming language core class library, including the core library (Core Libraries) and the Dalvik virtual machine (Dalvik VM). Each Android application is an instance of the Dalvik virtual machine running in their own process.
  • the class library is used by one or more components of the Android system, including the following functions: Media Framework, Surface Manager, Relational Database Engine (SQLite), Bitmap and Vector Font Rendering (FreeType), etc. Each function is exposed to the developer through the framework layer 230 of the Android system.
  • the framework layer 230 provides a set of libraries needed to develop Android applications, enabling developers to quickly develop applications, reuse components, and extend personalization through inheritance.
  • the services provided by the framework layer 230 include component management services, window management services, system data source components, space frameworks, resource management services, and installation package management services.
  • the application layer 240 includes a plurality of applications that directly interact with the user and a service program written in the Java language and running in the background, 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, including other applications developed by developers.
  • the touch chip disposed in the touch display screen generates a wake-up signal when the black screen gesture is detected, 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 function to execute, reads the gesture data in the touch chip, and stores the read gesture data in the preset node of the driver layer.
  • the touch chip is configured to output a touch sensing control signal to the touch display screen to detect a touch operation, identify a gesture coordinate of a black screen gesture applied to the touch display screen, and store the gesture coordinate as a gesture data in itself. In the register.
  • the set node can be a file node, for example, a virtual file node in a process (proc-D) directory.
  • the driver layer determines the validity of the gesture data. There are many ways to determine the validity, which are not specifically limited in this embodiment. For example, the driving layer determines the gesture type according to the coordinate information included in the gesture data, and if the gesture type is not a preset black screen gesture, it determines that the gesture data is invalid. For another example, the driving layer collects the number of the gesture data, and determines whether the number satisfies the requirement of drawing a preset black screen gesture (ie, the enabled gesture).
  • the judgment gesture data is invalid.
  • 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 application layer acquires a black screen gesture event, the gesture data is read by the preset node of the driver layer.
  • the black screen gesture track is calculated according to the coordinate information included in the gesture data, and the black screen gesture track is drawn on the touch display screen for display.
  • the gesture type may be a gesture for implementing any 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 execution flow of the black screen gesture function is not limited to the manner enumerated in the embodiment.
  • the black screen gesture event may be reported when the system wakes up, the kernel layer calls the driver layer interrupt function execution, the gesture data in the touch chip is read, and the gesture data is stored in the setting node of the driver layer.
  • the application layer reads the gesture data from the set node.
  • the black screen gesture track is calculated according to the coordinate information included in the gesture data, and the black screen gesture track is identified to determine the gesture type.
  • the first black screen gesture may be a standard black screen gesture provided by the system, such as “O”, “M” or “C”, etc., or may be a customized black screen gesture collected according to personal habits.
  • 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. For example, when the user clicks the black screen gesture function option in the setting, the display interface switches to a black screen gesture setting interface, and the black screen gesture interface includes preset black screen gestures (such as “O”, “V”, “ ⁇ ”, “W”).
  • the application layer can monitor the return value of the switch control corresponding to each black screen gesture in the black screen gesture setting interface.
  • the switch state of the black screen gesture in the application layer is determined according to the return value of the switch control. It is also possible to match one or more black screen gestures to corresponding operations in the black screen gesture setting interface. For example, the black screen gesture “V” may be corresponding to opening a flashlight or the like.
  • the first operation may be to open any application, when the mobile terminal performs the first operation, the mobile terminal is in a blackout state, and the mobile terminal may perform the first operation and is in a mode of being in the off state.
  • the first mode exemplary, assuming that the preset first black screen gesture is a black screen gesture "V”, when detecting a black screen gesture event triggered by the black screen gesture "V”, the mobile terminal performs a first operation corresponding to the black screen gesture "V", for example The flashlight is turned on. At this time, the touch display screen of the mobile terminal is not lit, and the screen is in the off state, and the state is defined as the first mode of the mobile terminal.
  • Step 120 When the mobile terminal performs the first operation, if a second black screen gesture is detected, performing a second operation corresponding to the second black screen gesture.
  • the touch display screen of the mobile terminal Since the touch display screen of the mobile terminal is not lit in the first mode, the screen is still off, and the input condition of the black screen gesture is still satisfied. The user can continue to enter a black screen gesture on the touch display.
  • FIG. 1b is a flowchart of another method for responding to a black screen gesture according to an embodiment of the present disclosure, where the method includes:
  • Step 150 Perform a first operation corresponding to the first black screen gesture when the preset first black screen gesture is detected, where the mobile terminal is in a blackout state when the first operation is performed.
  • Step 160 When the mobile terminal performs the first operation, if the second black screen gesture is detected, the gesture type corresponding to the second black screen gesture is acquired.
  • the gesture data corresponding to the second black screen gesture is read by the touch chip, and the gesture data may include gesture coordinate information.
  • the driving layer determines the gesture type of the second black screen gesture according to the gesture data.
  • the gesture type information may be used to determine the gesture type of the second black screen gesture by using the gesture coordinate information.
  • the application layer receives the black screen gesture event reported by the driver layer, the gesture data corresponding to the second black screen gesture is acquired, where the gesture data may include gesture coordinate information and a gesture type, thereby determining the second according to the read gesture data.
  • the type of black screen gesture Curve fitting is a method of data processing that approximates the relationship between the coordinates represented by discrete points on a plane by a continuous curve.
  • Step 170 If it is determined that the second black screen gesture belongs to the preset gesture set based on the gesture type, performing the second operation and performing the second operation corresponding to the second black screen gesture.
  • the preset gesture set may be the default of the system, or may be set by the user according to actual needs.
  • the second operation may be an operation performed concurrently with the first operation, such as opening an application or the like.
  • the operation corresponding to the gesture “M” is performed, such as Switch playback songs, or turn on the camera, etc. Parallel execution of the first operation and the second operation is achieved. This method is applicable to a variety of application scenarios.
  • the first black screen gesture can be used to trigger the opening of the flashlight, and then the second black screen gesture is used to open the camera for the photographing operation, and the previously opened flashlight can be realized.
  • the role of lighting provides users with greater convenience.
  • the embodiment of the present invention provides a response scheme of a black screen gesture, which can perform operations corresponding to two black screen gestures in parallel, and can effectively extend an application scenario of a black screen gesture. Based on the above technical solutions, the method further includes:
  • the first operation and the second operation may be conflicted.
  • the first mode is exited, and only the second black screen gesture event is responded, and the second black screen is executed.
  • the second operation corresponding to the gesture.
  • the technical solution can effectively avoid the problem that the system is stuck due to conflicts between events, and the operation corresponding to the black screen gesture cannot be performed normally, and the event processing efficiency is improved.
  • FIG. 3 is a flowchart of still another method for responding to a black screen gesture according to an embodiment of the present disclosure.
  • the present embodiment is applicable to a response to a black screen gesture, and the method may be performed by a response device of a black screen gesture, and the device may be at least One to implement: software and hardware, the method includes:
  • Step 310 When the preset first black screen gesture is detected, the first application corresponding to the first black screen gesture is turned on in the background, and the function corresponding to the first application is executed.
  • the mobile terminal is in the first mode when the function corresponding to the first application is executed.
  • the open thread is used to perform an operation of opening an application corresponding to the gesture type in the background.
  • the application is composed of activities. Therefore, the startup process of the application is actually the startup process of the default activity in the application, including the call of the activity class and the object. Instantiation and so on.
  • the application corresponding to the gesture type is enabled in the background, the corresponding frame of the application interface is cached, and the application interface is not drawn to the touch display.
  • the first application is opened in the background to execute the function corresponding to the first application.
  • the first application is a flashlight, and a flashlight is turned on in the background to realize the function of illumination. At this time, the mobile terminal is in the flashlight illumination mode.
  • Step 320 Draw and display a first gesture track corresponding to the first black screen gesture on the touch display screen of the mobile terminal while the first application is being opened.
  • the drawing thread is configured to execute a gesture track corresponding to the gesture type in parallel with the opening thread, and display the gesture track to the touch display screen.
  • the gesture track can be drawn separately by one drawing thread, or the gesture track segment can be drawn by two or more drawing threads. After each drawing thread completes the gesture track segment that is responsible for drawing, the completed gesture track segment is spliced into a complete gesture track, thereby effectively improving the drawing efficiency of the gesture track.
  • a gesture image of a different display effect corresponding to the gesture type of the black screen gesture may be pre-stored in the mobile terminal.
  • the drawing thread can acquire the gesture type of the black screen gesture without retrieving the gesture coordinates, which greatly reduces the amount of data acquisition.
  • the gesture picture is determined according to the gesture type, and the gesture picture is drawn, and the drawn gesture picture is sent to a frame buffer (FrameBufier) to refresh the gesture picture to the touch display screen according to the set screen refresh rate.
  • the gesture picture of the default display effect can be selected according to the gesture type.
  • the drawing thread can acquire the gesture type and the gesture coordinate, and extract multiple of the gesture coordinates according to the setting drawing rule corresponding to the gesture type.
  • a sampling point sequentially connecting the sampling point to obtain a gesture track corresponding to the gesture type, and sending a frame frame including a connection between the sampling point and the sampling point to a frame buffer (FrameBufier), and displaying the gesture track in an animated form Touch the display to simulate the drawing process of the black screen gesture.
  • Step 330 When the display time of the first gesture track reaches a set time threshold, the touch display screen returns to the blanking state.
  • the set time threshold can be set according to actual needs, so that the user can clearly know that the first gesture track has been completed, for example, it can be 2 seconds.
  • the touch display can be controlled to be extinguished, and the purpose of saving power and energy is achieved.
  • the mobile terminal is in a black screen state again, so that the user uses the black screen gesture function again, and inputs a new black screen gesture to perform the corresponding measurement operation.
  • Step 340 When the mobile terminal performs the first operation, if a second black screen gesture is detected, determining a gesture type corresponding to the second black screen gesture.
  • Step 350 If it is determined that the second black screen gesture belongs to the preset gesture set based on the gesture type, while the mobile terminal performs the first operation, in a case where the second operation includes performing a setting function
  • the setting function is executed in the background.
  • the setting function can be switching songs and the like.
  • the second black screen gesture may be a left and right sliding gesture, and when the mobile terminal is in the first mode, the function of switching songs is performed in the background.
  • Step 360 When performing the setting function, draw and display the second gesture track corresponding to the second black screen gesture on the touch display screen of the mobile terminal.
  • the drawing thread is executed in parallel, and the gesture coordinate information is curve-fitted to obtain the gesture track closest to the second black screen gesture, determined as the second gesture track, and the second black screen is completed.
  • the gesture track corresponding to the gesture is drawn to the operation of the touch display screen.
  • the second operation includes opening the second application
  • the second application is opened in the background
  • the function corresponding to the second application is executed
  • the mobile terminal is in the second mode.
  • the second mode may refer to an operation mode in which the mobile terminal performs operations corresponding to two black screen gestures in parallel.
  • the second gesture track corresponding to the second black screen gesture is determined to be performed, and the second gesture track is drawn on the touch display screen of the mobile terminal.
  • an interface corresponding to the second application is provided to the touch display screen to display an interface of the second application on the touch display screen.
  • the second operation can not only correspond to any setting function, but also open the application, for example, the camera can be turned on or the like.
  • the display condition of the display interface of the gesture track is switched to the display condition of the display interface of the application, and the display condition may be set as the image display time of the current gesture track does not exceed the set time threshold or the like according to actual needs. If the preset display condition is met, the interface corresponding to the second application is drawn to the touch display.
  • the setting function and the drawing thread of the trajectory are executed in parallel or the opening thread of the application is executed in parallel with the drawing thread of the trajectory, so that the response speed of the black screen gesture can be effectively improved, and the black screen gesture is detected to be opened.
  • FIG. 4 is a flowchart of a method for responding to a black screen gesture according to an embodiment of the present disclosure.
  • the present embodiment is applicable to a response to a black screen gesture, and the method may be performed by a response device of a black screen gesture, and the device may be at least One to implement: software and hardware, the method includes:
  • Step 410 Perform a first operation corresponding to the first black screen gesture when the preset first black screen gesture is detected, where the mobile terminal is in a blackout state when the first operation is performed.
  • Step 420 When the mobile terminal performs the first operation, if the second black screen gesture is detected, the setting flag in the driver layer is read.
  • Step 430 Determine, according to the setting identifier, whether the gesture data in the preset node of the driving layer is ready to be completed. If the gesture data in the preset node of the driver layer is ready, step 450 is performed. If the gesture data in the preset node of the driver layer is not ready to be completed, step 440 is performed.
  • the data state of the preset node includes the preparation completion and preparation, and may determine whether the preset node data is in a ready state or a ready state according to detecting whether the gesture data in the preset node includes a set end bit.
  • the character corresponding to the preset 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.
  • the driver layer reads the gesture data in the preset node according to the set period. If the character corresponding to the preset end bit is detected, that is, “#”, it is determined that the preset node data state is ready for completion.
  • the end bit can be various, and is not limited to the "#" listed in this embodiment.
  • the flag is used to identify the state of the gesture data in the preset node in the driver layer.
  • the application layer can learn whether the state of the gesture data in the preset node is ready or completed by querying the identifier.
  • the value of the flag is determined by whether the driver layer reads the set end bit. For example, if the driver layer reads the set end bit, the value of the update flag is updated to a value corresponding to the preset preparation completion state. Thereafter, the application layer can determine that the data in the preset node is in a ready state according to the updated identifier bit. If the driver layer does not read the set end bit, the value of the flag is kept as the value corresponding to the state in preparation.
  • Step 440 After waiting for the set time length, return to perform an operation of determining whether the gesture data in the preset node is ready to be completed.
  • the set time length may be equal to a first period in which the application layer reads the identifier bit in the driver layer.
  • the application layer waits for the set time length after determining that the gesture data in the preset node is not ready, and then reads the value of the identifier bit in the driver layer to determine the preset node according to the value thereof. Whether the gesture data inside is ready to be completed.
  • Step 450 Extract the gesture data from the preset node.
  • the application layer extracts gesture data from the preset node. For example, the application layer calls the set function to read gesture data from a virtual file node in the process (proc-D) directory.
  • Step 460 If the second black screen gesture belongs to the preset gesture set, the second operation corresponding to the second black screen gesture is performed while the mobile terminal performs the first operation.
  • the mobile terminal When the second black screen gesture belongs to the preset gesture set, the mobile terminal is maintained in the first mode and does not exit, and the second operation corresponding to the second black screen gesture is performed. After performing the second operation corresponding to the completion of the second black screen gesture, the mobile terminal is in the second mode, and the second mode is a state including the first mode. For example, if the first mode of the mobile terminal is the mode of turning on the flashlight application, and if the mode of maintaining the flashlight is not exited, if the second black screen gesture input by the user is detected to be opening the camera application, the second is executed. A black screen gesture to open the camera application without turning off the flashlight application to place the mobile terminal in a mode that turns the camera and flashlight on simultaneously.
  • the technical solution of the embodiment determines whether the gesture data in the preset node of the driving layer is ready to be completed by reading the preset identifier bit in the driving layer; if the preparation is completed, reading the gesture data in the preset node Otherwise, after waiting for the set length of time, the setting flag is re-read to perform data state determination in the preset node.
  • FIG. 5 is a flowchart of a method for responding to a black screen gesture according to an embodiment of the present disclosure.
  • the present embodiment is applicable to a response to a black screen gesture.
  • the method may be performed by a response device of a black screen gesture, and the device may be at least One comes to be implemented: software and hardware, the method includes:
  • Step 510 Perform a first operation corresponding to the first black screen gesture when the preset first black screen gesture is detected, where the mobile terminal is in a blackout state when the first operation is performed.
  • Step 520 In a case that the mobile terminal performs the first operation, if a second black screen gesture is detected, determining a gesture type corresponding to the second black screen gesture.
  • Step 530 If it is determined that the second black screen gesture belongs to the preset gesture set based on the gesture type, while the mobile terminal performs the first operation, when the second operation includes opening the second application The second application is opened in the background.
  • Step 540 When the second application is started, performing, in parallel, extracting, from the coordinate information included in the gesture data, a sampling point that satisfies a preset sampling rule of the second black screen gesture.
  • the sampling rule is set in advance according to the gesture type. For example, a coordinate point may be set as a sampling point every set number of coordinate points.
  • the driving layer may obtain the coordinate information included in the gesture data, determine the gesture type, and determine a preset sampling rule that matches one or more gesture types according to the gesture type.
  • the application layer extracts the gesture data from the preset node, the application layer may acquire the The type of gesture and the corresponding preset sampling rules.
  • Step 550 Draw a second gesture track corresponding to the second black screen gesture according to the sampling point, and display the second gesture track in an animated form on the touch display screen.
  • the sampling point can be curve-fitted to obtain a gesture track corresponding to the gesture type of the black screen gesture input by the user.
  • the set number of pixel points may be drawn every set time interval starting from the first sampling point of the gesture track, thereby displaying the drawing process of the gesture track in an animated form.
  • the set time interval is a minimum time interval at which the human eye can distinguish the image change.
  • the time interval can be set as needed.
  • FIG. 6 is a schematic diagram of display of a black screen gesture track provided by an embodiment of the present application.
  • the first sample point 601 of the gesture type "W" is used as a starting point, and a gesture track between three sample points is drawn every set time interval.
  • the gesture track between the three sample points is drawn by the first sampling point 601, and then the second time is drawn by setting the time length.
  • the gesture track between the three sampling points is started by the fourth sampling point 602, and then the third time is drawn by setting the time length.
  • the gesture track between the three sampling points is started by the seventh sampling point 603, and the gesture track is drawn according to the rule until the last sampling point 604 is drawn to end the drawing, thereby realizing the animation on the touch display screen.
  • the form display of the gesture track improves the monotonicity of the static display gesture track and increases the interest.
  • Step 560 When it is detected that the second application corresponding to the black screen gesture input by the user is completed in the background, determine whether the gesture track on the touch display screen is drawn to the last sampling point, and if the gesture track on the touch display screen is drawn To the last sampling point, step 570 is performed. If the gesture track on the touch display screen is not drawn to the last sampling point, step 550 is performed.
  • the display condition that is switched from the gesture track display interface to the display interface of the application is set in advance, and the display condition may be set according to actual requirements, and the application corresponding to the gesture type is successfully opened in the background and the gesture displayed on the touch display screen is displayed.
  • the trace is drawn to the last sample point.
  • the application layer determines whether the gesture track on the touch display screen is drawn to the last sampling point when the second application corresponding to the black screen gesture detected by the user is turned on in the background, and if yes, executing step 570; otherwise, performing steps 550. In an embodiment, if the gesture track on the touch display screen is drawn to the last sampling point, but the application corresponding to the black screen gesture input by the user is not turned on, the completed gesture track is displayed on the touch display screen until the detection After the application is opened in the background, step 570 is performed.
  • Step 570 Draw an interface corresponding to the second application to the touch display screen to display an interface of the second application on the touch display screen.
  • a drawing thread extracts a plurality of sampling points that satisfy a preset sampling rule from the gesture coordinates of the gesture data, and draws a gesture track according to the sampling point.
  • the gesture track is displayed on the touch display screen in the form of an animation; when the preset display condition for the application interface is satisfied, the gesture track display interface is switched to the application interface.
  • FIG. 7a is a structural block diagram of a black-screen gesture response apparatus provided by an embodiment of the present application.
  • the apparatus may be implemented by at least one of the following: software and hardware, generally integrated in a mobile terminal.
  • the apparatus can include:
  • the first gesture execution module 710 is configured to perform a first operation corresponding to the first black screen gesture when the preset first black screen gesture is detected, where the mobile terminal is in the screen when the first operation is performed status;
  • the second gesture execution module 720 is configured to perform a second operation corresponding to the second black screen gesture if the second black screen gesture is detected when the mobile terminal performs the first operation in the first mode.
  • the embodiment of the present application provides a response device for a black screen gesture, which implements operations corresponding to two black screen gestures in parallel, and can effectively expand an application scenario of a black screen gesture.
  • FIG. 7b is a structural block diagram of another black-screen gesture response apparatus provided by an embodiment of the present application.
  • the apparatus further includes: a gesture recognition module 730, where the gesture recognition module 730 is configured to :
  • the second operation corresponding to the second black screen gesture is performed, where the operation corresponding to the gesture of the preset gesture set is An operation does not conflict.
  • FIG. 7c is a structural block diagram of a first gesture execution module according to an embodiment of the present application.
  • the first gesture execution module 710 includes:
  • the first application opening sub-module 711 is configured to enable the first application corresponding to the first black screen gesture in the background, and execute a function corresponding to the first application;
  • the first gesture trajectory drawing sub-module 712 is configured to draw and display a first gesture trajectory corresponding to the first black screen gesture on the touch display screen of the mobile terminal while the first application is being opened;
  • the display off sub-module 713 is configured to return to the off-screen state when the display time of the first gesture track reaches a set time threshold.
  • the gesture recognition module 730 is configured to:
  • FIG. 7d is a structural block diagram of a gesture recognition module provided by an embodiment of the present application.
  • the gesture recognition module 730 includes:
  • the data state judging sub-module 731 is configured to set a setting bit in the read driving layer, and determine, according to the setting flag, whether the gesture data in the preset node of the driving layer is ready to be completed;
  • the data extraction sub-module 732 is configured to extract the gesture data from the preset node if the gesture data in the preset node is ready to be completed;
  • the gesture recognition module 730 is further configured to: if the gesture data in the preset node of the driver layer is not ready to be completed, return to perform execution to determine whether the gesture data in the preset node is ready after waiting for the set time length The completed operation.
  • the second gesture execution module 720 is configured to:
  • the second gesture track corresponding to the second black screen gesture is drawn and displayed on the touch display screen of the mobile terminal.
  • FIG. 7e is a structural block diagram of a second gesture execution module according to an embodiment of the present application. As shown in FIG. 7e, the second gesture execution module 720 further includes:
  • the second application opening sub-module 721 is configured to open a second application corresponding to the second black screen gesture in the background;
  • a second gesture trajectory drawing sub-module 722 configured to draw and display a second gesture trajectory corresponding to the second black screen gesture on the touch display screen of the mobile terminal while the second application is being opened ;
  • the interface drawing sub-module 723 is configured to display an interface of the second application on the touch display screen if the display condition of the preset second application is met.
  • the second gesture trajectory rendering sub-module 722 is configured to:
  • the second gesture trajectory drawing sub-module 722 is further configured to:
  • the preset second application display condition includes:
  • the second application is successfully opened in the background, and the second gesture track displayed in an animated form on the touch display screen is displayed to the last sampling point.
  • FIG. 7f is a structural block diagram of another apparatus for responding to a black screen gesture according to an embodiment of the present application.
  • an exit module 740 is further included, and the exit module 740 is configured to:
  • the mobile terminal In a case that the second black screen gesture does not belong to the preset gesture set, the mobile terminal exits the blanking state and stops performing the first operation, and performs a second corresponding to the second black screen gesture operating.
  • the embodiment of the present application further provides a storage medium including computer executable instructions for performing a black screen gesture response when executed by a computer processor, the method comprising:
  • the first operation corresponding to the first black screen gesture is performed, where the mobile terminal is in a blackout state when the first operation is performed;
  • Storage media any of a variety of types of memory devices or storage devices.
  • the term "storage medium” is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory; (Dynamic Random Access Memory, DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data Out Random Access Memory, EDO RAM), Rambus Random Access Memory (RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); Register or other similar type of memory element, etc.
  • a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device
  • a computer system memory or a random access memory such as a dynamic random access memory
  • DRAM Double Data Rate Random Access Memory
  • SRAM Static Random Access Memory
  • the storage medium may also include other types of memory or a combination thereof. 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.
  • the term "storage medium" can include 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, embodied as a computer program) executable by one or more processors.
  • a storage medium containing computer-executable instructions which is not limited to the operation of the black-screen gesture response method as described above, and may also perform a black-screen gesture provided by any embodiment of the present application. Related operations in the response method.
  • FIG. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • the mobile terminal may include: a casing (not shown), a memory 801, a central processing unit (CPU) 802 (also referred to as a processor, hereinafter referred to as a CPU), and a circuit board ( Not shown in the drawing), touch display 812 and power supply circuit (not shown).
  • CPU central processing unit
  • FIG. 8 the mobile terminal may include: a casing (not shown), a memory 801, a central processing unit (CPU) 802 (also referred to as a processor, hereinafter referred to as a CPU), and a circuit board ( Not shown in the drawing), touch display 812 and power supply circuit (not shown).
  • CPU central processing unit
  • the touch display screen 812 is configured to convert a user operation into an electrical signal input to the processor, and display a visual output signal;
  • the circuit board is disposed on the touch display screen 812 and the housing a space inside the CPU 802 and the memory 801 are disposed on the circuit board;
  • the power circuit is configured to supply power to each circuit or device of the mobile terminal;
  • the memory 801 is configured to store a computer a program; the CPU 802 reads and executes a computer program stored in the memory 801.
  • the CPU 802 when executing the computer program, implements a first operation corresponding to the first black screen gesture when a preset first black screen gesture is detected, wherein, when the first operation is performed, The mobile terminal is in a blackout state; when the mobile terminal performs the first operation, if a second black screen gesture is detected, performing a second operation corresponding to the second black screen gesture.
  • the mobile terminal further includes: a peripheral interface 803, a radio frequency (RF) circuit 805, an audio circuit 806, a speaker 811, a power management chip 808, and an input/output (I/O) subsystem 809.
  • RF radio frequency
  • I/O input/output
  • Other input/control devices 810 and external ports 804 are communicated via one or more communication buses or signal lines 807.
  • the illustrated mobile terminal 800 is merely one example of a mobile terminal, and the mobile terminal 800 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.
  • Each of the components shown in the figures can be implemented in at least one of: hardware, software, or a combination of hardware and software, including one or more signal processing and application specific integrated circuits.
  • the mobile terminal integrated with the black screen gesture response device provided in this embodiment is described in detail below.
  • the mobile terminal takes a mobile phone as an example.
  • the memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 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 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
  • I/O subsystem 809 which can connect input and output peripherals on the device, such as touch display 812 and other input/control devices 810, to peripheral interface 803.
  • I/O subsystem 809 can include display controller 8091 and one or more input controllers 8092 that are configured to control other input/control devices 810.
  • one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch display screen 812 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, and video.
  • the display controller 8091 in the I/O subsystem 809 receives an electrical signal from the touch display 812 or transmits an electrical signal to the touch display 812.
  • the touch display 812 detects the contact on the touch display screen, and the display controller 8091 converts the detected contact into an interaction with the user interface object displayed on the touch display screen 812, that is, realizes human-computer interaction, and displays the touch.
  • the user interface objects on the control display 812 may be icons that run the game, icons that are networked to the respective network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch display.
  • the RF circuit 805 is mainly configured to establish communication between the mobile phone and the wireless network (ie, the network side), and implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages and emails.
  • RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate.
  • RF circuitry 805 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, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • CDDEC codec CODER-DECoder
  • the audio circuit 806 is primarily configured to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
  • the speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
  • the power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem, and the peripheral interface.
  • the mobile terminal provided by the embodiment of the present invention implements operations corresponding to two black screen gestures in parallel, and can effectively expand an application scenario of a black screen gesture.
  • the response device, the storage medium, and the mobile terminal of the black screen gesture provided in the foregoing embodiments may perform a black box gesture response method provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for performing the method.
  • a black box gesture response method provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for 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

黑屏手势的响应方法、装置、存储介质及移动终端 技术领域
本公开实施例涉及移动终端技术领域,例如涉及一种黑屏手势的响应方法、装置、存储介质及移动终端。
背景技术
目前的移动终端,例如智能手机、掌上电脑、平板电脑或掌上游戏机等通常被设计为具有触控显示屏的结构,为用户提供触摸输入方式,使用户的操作更加便捷。
当黑屏手势功能被开启后,智能手机在待机黑屏的状态下也可以实现检测作用于触控显示屏上的手势操作,从而触发手机内部相应的功能或软件。但是,由于操作系统对于黑屏手势功能的设计方案的限制,导致黑屏手势的应用场景受限。
发明内容
本申请实施例提供一种黑屏手势的响应方法、装置、存储介质及移动终端,可以扩展黑屏手势的应用场景。
在一实施例中,本申请实施例提供了一种黑屏手势的响应方法,包括:
在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;
在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
在一实施例中,本申请实施例还提供了一种黑屏手势的响应装置,该装置包括:
第一手势执行模块,设置为在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;
第二手势执行模块,设置为在所述移动终端执行所述第一操作处于第一模式时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
在一实施例中,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的黑屏手势的响应方法。
在一实施例中,本申请实施例还提供了一种移动终端,包括触控显示屏、存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的黑屏手势的响应方法。
本申请实施例提供一种黑屏手势的响应方案,实现并行执行两个黑屏手势对应的操作,可以有效地扩展黑屏手势的应用场景。
附图说明
图1a为本申请实施例提供的一种黑屏手势的响应方法的流程图;
图1b为本申请实施例提供的另一种黑屏手势的响应方法的流程图;
图2是本申请实施例提供的一种安卓系统框架示意图;
图3为本申请实施例提供的又一种黑屏手势的响应方法的流程图;
图4为本申请实施例提供的再一种黑屏手势的响应方法的流程图;
图5为本申请实施例提供的还一种黑屏手势的响应方法的流程图;
图6是本申请实施例提供的一种黑屏手势轨迹的显示示意图;
图7a是本申请实施例提供的一种黑屏手势的响应装置的结构框图;
图7b是本申请实施例提供的另一种黑屏手势的响应装置的结构框图;
图7c是本申请实施例提供的第一手势执行模块的结构框图;
图7d是本申请实施例提供的手势识别模块的结构框图;
图7e是本申请实施例提供的第二手势执行模块的结构框图;
图7f是本申请实施例提供的又一种黑屏手势的响应装置的结构框图;
图8为本申请实施例提供的一种移动终端的结构示意图。
具体实施方式
下面结合附图和实施例对本申请进行说明。此处所描述的实施例仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
在一实施例中,部分示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将每个步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,一个或多个步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、以及子程序等等。
黑屏手势功能是在移动终端(例如智能手机)处于熄屏休眠的情况下,移动终端检测作用于触控显示屏的黑屏手势,并根据该黑屏手势来唤醒智能手机的某项功能或开启预先设置的与黑屏手势类型对应的应用程序的功能。在移动终端处于熄屏休眠的情况下,移动终端的触控显示屏以低功耗状态运行。为了便于理解黑屏手势功能,下面对由熄屏状态下检测到黑屏手势至应用层开启该黑屏手势对应的应用程序的流程进行说明,该流程包括:将黑屏手势对应的手势数据存入驱动层的预设节点内,其中,手势数据包括手势坐标和手势类型;由驱动层执行黑屏手势对应的手势数据有效性判断;若黑屏手势对应的手势数据有效,则由框架层执行黑屏手势事件派发;在应用层接收到黑屏手势事件后,由应用层从驱动层内预设节点读取手势类型和手势坐标,并根据该手势坐标和手势类型计算黑屏手势的动画轨迹,将动画轨迹数据发送至帧缓存(FrameBuffer),以按照设定的屏幕刷新率将该动画轨迹刷新至触控显示屏,进行显示。随后,由应用层执行开启该黑屏手势对应的应用程序的操作。
相关技术中,当采用黑屏手势触发在非亮屏状态下执行的应用程序(如手电筒功能等)时,若再次检测到新的黑屏手势,则系统需要先将第一次识别的黑屏手势对应的应用程序关闭,再对用户第二次输入的黑屏手势进行响应,无法将两个黑屏手势对应的功能并行实现,这样就限定了黑屏手势的应用场景,本申请实施例提供的黑屏手势的响应方法可以解决上述问题。
图1a为本申请实施例提供的一种黑屏手势的响应方法的流程图,本实施例可适用于对黑 屏手势响应情况,该方法可以由黑屏手势的响应装置来执行,该装置可由以下至少之一来实现:软件和硬件,该方法包括:
步骤110、在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态。
黑屏手势事件可以是驱动层与应用层预先协商好的用于代表有黑屏手势输入的事件。
其中,黑屏手势可以是用户在黑屏手势功能开启后,在处于熄屏状态的移动终端的触控显示屏上输入的触摸手势。在一实施例中,黑屏手势并不限于在触控显示屏上输入的触摸手势,还可以是由移动终端的传感器检测到的操作等。例如,左右摇晃智能手机的手势,从智能手机的触控显示屏上空拂过的手势及按压智能手机边框的手势等等。
图2是本申请实施例提供的一种安卓系统框架示意图。以图2所示的操作系统为安卓(Android)系统的移动终端为例,介绍本申请实施例提供的黑屏手势功能的执行流程。如图2所示,安卓系统框架由下至上包括内核层210、核心类库层220、框架层230以及应用层240。其中,内核层210提供核心系统服务,包括安全、内存管理、进程管理、网络协议栈以及硬件驱动等。其中,将内核层210中的硬件驱动记为驱动层211,该驱动层211包括触控显示屏驱动和摄像头驱动等。核心类库层220包括安卓运行环境(Android Runtime)和类库(Libraries)。其中,安卓运行环境提供大部分在Java编程语言核心类库中可用的功能,包括核心库(Core Libraries)和Dalvik虚拟机(Dalvik VM)。每一个安卓应用程序是Dalvik虚拟机中的实例,运行在它们自己的进程中。类库供安卓系统的一个或多个组件使用,包括如下功能:媒体库(Media Framework)、界面管理(Surface Manager)、关系数据库引擎(SQLite)以及位图和矢量字体渲染(FreeType)等,其每个功能通过安卓系统的框架层230暴露给开发者使用。框架层230提供开发安卓应用程序所需的一系列类库,使开发人员可以进行快速的应用程序开发,方便重用组件,也可以通过继承实现个性化的扩展。框架层230提供的服务包括组件管理服务、窗口管理服务、系统数据源组件、空间框架、资源管理服务以及安装包管理服务等。应用层240上包括多类与用户直接交互的应用程序以及由Java语言编写的运行于后台的服务程序,包括桌面应用、联系人应用、通话应用、相机应用、图片浏览器、游戏、地图、以及web浏览器等程序,还包括开发人员开发的其他应用程序。
示例性的,在黑屏手势功能开启后,设置于触控显示屏中的触摸芯片在检测到黑屏手势时,生成一唤醒信号,并发送该唤醒信号至内核层。通过该唤醒信号触发内核层执行系统唤醒操作。在系统唤醒后,内核层调用驱动层中断函数执行,读取触摸芯片中手势数据,并将读取的手势数据存储在驱动层的预设节点内。其中,触摸芯片设置为输出触摸感测控制信号至触控显示屏,以检测触摸操作,识别作用于触控显示屏上的黑屏手势的手势坐标,并将该手势坐标作为手势数据存储在自身的寄存器中。设定节点可以为文件节点,例如可以是进程(proc-D)目录下的虚拟文件节点。在数据读取完成后,驱动层判定该手势数据的有效性。有效性判定的方式有很多种,本实施例不作具体限定。例如,驱动层根据该手势数据包含的坐标信息确定手势类型,若手势类型不是预设的黑屏手势,则判定手势数据无效。又如,驱 动层统计该手势数据的数目,判定该数目是否满足绘制预设的黑屏手势(即已启用手势)的要求,若该手势数据的数目不满足绘制预设的黑屏手势的要求,则判定手势数据无效。在数据有效时,驱动层上报黑屏手势事件。该黑屏手势事件通过核心类库层传输至框架层,并通过框架层派发,达到应用层。应用层在获取到黑屏手势事件时,由驱动层的预设节点读取手势数据。在手势数据准备完成后,根据该手势数据包含的坐标信息计算出黑屏手势轨迹,将该黑屏手势轨迹绘制在触控显示屏上进行显示。其中,手势类型可以是预先设置于移动终端中的用于实现任一功能的手势,还可以是用户自定义的手势。例如,手势类型可以是O,代表打开相机。又如,手势类型可以是V,代表打开手电筒等等。
在一实施例中,黑屏手势功能的执行流程并不限于本实施例中列举的方式。例如,还可以是在系统唤醒时即上报黑屏手势事件,内核层调用驱动层中断函数执行,读取触摸芯片中手势数据,并将该手势数据存储在驱动层的设定节点内。与读取手势数据操作并行执行由框架层派发该黑屏手势事件至应用层;由该黑屏手势事件触发应用层执行按照设定周期检测该设定节点内的手势数据是否准备完成。在准备完成时,应用层由该设定节点内读取该手势数据。在该手势数据读取成功且有效时,根据该手势数据包含的坐标信息计算出黑屏手势轨迹,识别该黑屏手势轨迹确定手势类型。
其中,第一黑屏手势可以是系统提供的标准黑屏手势,例如是“O”、“M”或者“C”等等,也可以是根据个人习惯采集的自定义黑屏手势。预先在应用层和驱动层设置控制黑屏手势启用与否的开关。可以在应用层以开关控件的形式展示黑屏手势开关,以供用户选择开启或关闭该黑屏手势开关对应的黑屏手势。例如,在用户点击设置中的黑屏手势功能选项时,显示界面切换至黑屏手势设置界面,该黑屏手势界面包括预先设置的黑屏手势(如“O”、“V”、“<”、“W”及“M”等)及对应的黑屏手势开关,还包括自定义黑屏手势的选项。若用户打开黑屏手势“O”对应的黑屏手势开关,则表明启用黑屏手势“O”。应用层可以监测黑屏手势设置界面中每个黑屏手势对应的开关控件的返回值。根据该开关控件的返回值确定应用层中黑屏手势的开关状态。也可以在黑屏手势设置界面为一个或多个黑屏手势匹配对应的操作,例如,可以将黑屏手势“V”对应打开手电筒等。本申请实施例中,第一操作可以是打开任一应用程序,当移动终端执行该第一操作时,移动终端处于熄屏状态,可以将移动终端执行该第一操作并且处于熄屏状态的模式定义为第一模式。示例性地,假设预设的第一黑屏手势为黑屏手势“V”,当检测到由黑屏手势“V”触发的黑屏手势事件时,移动终端执行黑屏手势“V”对应的第一操作,例如是打开手电筒,此时,移动终端的触控显示屏未被点亮,处于熄屏状态,将该状态定义为移动终端的第一模式。
步骤120、在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
由于第一模式下,移动终端的触控显示屏未被点亮,依然处于熄屏状态,此时依然满足黑屏手势的输入条件。用户可以在触控显示屏上继续输入黑屏手势。
图1b为本申请实施例提供的另一种黑屏手势的响应方法的流程图,该方法包括:
步骤150、在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态。
步骤160、在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则获取所述第二黑屏手势对应的手势类型。
当驱动层检测到第二黑屏手势对应的触摸操作时,由触摸芯片内读取第二黑屏手势对应的手势数据,该手势数据可以包括手势坐标信息。驱动层根据手势数据确定第二黑屏手势的手势类型,例如可以采用曲线拟合的方式,利用手势坐标信息确定第二黑屏手势的手势类型。应用层在接收到驱动层上报的黑屏手势事件时,获取与第二黑屏手势对应的手势数据,其中,手势数据可以包括手势坐标信息及手势类型,从而,根据已读取的手势数据确定第二黑屏手势的类型。曲线拟合是一种数据处理方式,即用连续曲线近似地刻画或比拟平面上离散点所表示的坐标之间的函数关系。
步骤170、若基于所述手势类型判定所述第二黑屏手势属于预设手势集合,则在执行所述第一操作的的同时,执行所述第二黑屏手势对应的第二操作。
其中,预设手势集合可以是系统默认的,也可以是用户根据实际需求进行设定的。第二操作可以是与第一操作同时执行的操作,例如打开应用程序等。示例性地,假如第二黑屏手势对应的是“M”型手势轨迹,如上例中,移动终端处于第一模式的情况下,即手电筒处于打开状态下,执行手势“M”对应的操作,如切换播放的歌曲、或打开照相机等。实现第一操作与第二操作的并行执行。这种方式适用于多种应用场景,如用户在夜晚户外使用移动终端时,可以首先采用第一黑屏手势触发打开手电筒,再采用第二黑屏手势打开照相机进行拍照操作,则之前打开的手电筒可以实现照明的作用,为用户提供了较大的便利。
本申请实施例提供一种黑屏手势的响应方案,可以实现并行执行两个黑屏手势对应的操作,可以有效地扩展黑屏手势的应用场景。在上述技术方案的基础上,还包括:
在所述第二黑屏手势不属于所述预设手势集合时,退出所述第一模式,执行所述第二黑屏手势对应的第二操作。
其中,若第二黑屏手势不属于预设手势集合,则可以说明第一操作与第二操作可能存在冲突,此时,退出第一模式,只对第二黑屏手势事件进行响应,执行第二黑屏手势对应的第二操作。
本技术方案可以有效地避免由于事件之间存在冲突造成系统卡顿,无法正常执行黑屏手势对应的操作这一问题,提高了事件处理效率。
图3为本申请实施例提供的又一种黑屏手势的响应方法的流程图,本实施例可适用于对黑屏手势响应情况,该方法可以由黑屏手势的响应装置来执行,该装置可由以下至少之一来实现:软件和硬件,该方法包括:
步骤310、在检测到预设的第一黑屏手势时,在后台开启所述第一黑屏手势对应的第一应用程序,并执行所述第一应用程序对应的功能。
其中,在执行所述第一应用程序对应的功能时,移动终端处于第一模式。
开启线程用于执行在后台打开手势类型对应的应用程序的操作。在安卓系统中,应用程序是由活动(Activity)组成的,因此,应用程序的启动过程实际上就是应用程序中的默认活动(Activity)的启动过程,包括活动(Activity)类的调用及对象的实例化等。在后台开启该手势类型对应的应用程序后,缓存应用程序界面对应的画面帧,暂不绘制应用程序界面至触控显示屏。在后台开启第一应用程序,以执行第一应用程序对应的功能。例如,第一应用程序为手电筒,在后台开启手电筒,以实现照明的功能,此时,移动终端处于手电筒照明模式。
步骤320、在开启所述第一应用程序的同时,在所述移动终端的触控显示屏上绘制并显示所述第一黑屏手势对应的第一手势轨迹。
绘制线程用于与开启线程并行执行确定该手势类型对应的手势轨迹,并显示该手势轨迹至触控显示屏的操作。可以由一个绘制线程单独完成手势轨迹的绘制,还可以是由两个或以上的绘制线程分别绘制手势轨迹片段。在每个绘制线程完成自己负责绘制的手势轨迹片段后,将已绘制完成的手势轨迹片段拼接为完整的手势轨迹,从而,有效地提高手势轨迹的绘制效率。
示例性地,确定手势类型对应的手势轨迹的方式有很多种,例如,可以在移动终端中预先存储黑屏手势的手势类型对应的不同显示效果的手势图片。在有黑屏手势输入后,绘制线程可以获取黑屏手势的手势类型而不需要再获取手势坐标,大大减少了数据获取量。然后,根据该手势类型确定手势图片,并绘制该手势图片,将绘制好的手势图片发送至帧缓存(FrameBufier),以按照设定的屏幕刷新率将手势图片刷新至触控显示屏。其中,可以根据手势类型选择默认显示效果的手势图片。还可以是根据手势类型选择符合用户预先选择的显示效果的手势图片。又如,为了更真实的重现用户输入的黑屏手势,在有黑屏手势输入后,绘制线程可以获取手势类型和手势坐标,按照该手势类型对应的设定绘制规则提取该手势坐标中的多个采样点,顺序连接该采样点得到该手势类型对应的手势轨迹,并将包含采样点和采样点之间连线的画面帧发送至帧缓存(FrameBufier),以动画的形式将该手势轨迹展示在触控显示屏上,以模拟该黑屏手势的绘制过程。
步骤330、在所述第一手势轨迹的显示时间达到设定时间阈值时,所述触控显示屏返回所述熄屏状态。
其中,设定时间阈值可以根据实际需求进行设定,以实现用户可以清晰地获知第一手势轨迹已完成绘制为目的,例如可以是2秒钟。显示时间超过设定时间阈值时,可以控制触控显示屏熄灭,已达到省电节能的目的。且移动终端重新处于黑屏状态,以便用户再次使用黑屏手势功能,输入新的黑屏手势执行相应测操作。
步骤340、在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则获确定所述第二黑屏手势对应的手势类型。
步骤350、若基于该手势类型判定所述第二黑屏手势属于预设手势集合,则在所述移动终端执行所述第一操作的同时,在所述第二操作包括执行设定功能的情况下,在后台执行所述设定功能。
其中,设定功能可以是切换歌曲等。示例性地,第二黑屏手势可以是左右滑动的手势,当移动终端处于第一模式时,在后台执行切换歌曲的功能。
步骤360、在执行所述设定功能时,在所述移动终端的触控显示屏上绘制并显示第二黑屏手势对应的所述第二手势轨迹。
其中,在后台执行设定功能的同时,并行执行绘制线程,对手势坐标信息作曲线拟合得到与第二黑屏手势最接近的手势轨迹,确定为第二手势轨迹,并完成将第二黑屏手势对应的手势轨迹绘制至触控显示屏的操作。
可替换的,在所述第二操作包括打开第二应用程序时,在后台开启所述第二应用程序,在执行第二应用程序对应的功能时,移动终端处于第二模式。其中,第二模式可以指移动终端并行执行两个黑屏手势对应的操作的工作模式。
在开启所述第二应用程序时,并行执行确定所述第二黑屏手势对应的第二手势轨迹,并在所述移动终端的触控显示屏绘制所述第二手势轨迹的操作。
如果满足预设的显示条件,则提供所述第二应用程序对应的界面至所述触控显示屏,以在所述触控显示屏上显示所述第二应用程序的界面。
由上可知,第二操作不仅可以对应任一设定功能,也可以是打开应用程序,例如可以是打开照相机等。预先设置由手势轨迹的图像显示界面切换至应用程序的显示界面的显示条件,该显示条件可以根据实际需要设置为当前手势轨迹的图像显示时间不超过设定时间阈值等。若满足预设的显示条件,绘制第二应用程序对应的界面至触控显示屏。
通过采用上述技术方案,将设定功能与轨迹的绘制线程并行执行或应用程序的开启线程与轨迹的绘制线程并行执行,可以有效地提升黑屏手势的响应速度,缩短由检测到黑屏手势至打开该黑屏手势对应的应用程序所需的时间。
图4为本申请实施例提供的再一种黑屏手势的响应方法的流程图,本实施例可适用于对黑屏手势响应情况,该方法可以由黑屏手势的响应装置来执行,该装置可由以下至少之一来实现:软件和硬件,该方法包括:
步骤410、在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态。
步骤420、在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则读取驱动层中设定标识位。
步骤430、根据所述设定标识位判断驱动层的预设节点内的手势数据是否准备完成。若驱动层的预设节点内的手势数据准备完成,则执行步骤450,若驱动层的预设节点内的手势数据没有准备完成,则执行步骤440。
其中,该预设节点数据状态包括准备完成及准备中,可以根据检测该预设节点中手势数据是否包括设定结束位,判定该预设节点数据处于准备完成状态或是准备中状态。例如,预先设定结束位对应的字符是“#”。在用户输入黑屏手势时,触摸芯片将检测到的黑屏手势对应的手势数据存入本身预设的寄存器中。触摸芯片在检测到黑屏手势输入完成后,在寄存器 中存储的手势数据的结尾添加“#”。驱动层按照设定周期读取该预设节点内的手势数据,若检测到该预设结束位对应的字符,即“#”,则判定该预设节点数据状态为准备完成。
在一实施例中,该结束位可以有很多种,并不限于本实施例列举的“#”。
该标识位用于标识驱动层中的预设节点中手势数据的状态。应用层可以通过查询该标识位的方式获知该预设节点中的手势数据的状态是准备完成还是准备中。其中,该标识位的取值由驱动层是否读取到设定结束位确定。例如,若驱动层读取到设定结束位,则更新该标识位的取值为预设的准备完成状态对应的数值。此后,应用层根据该更新后的标识位,可以判定该预设节点内的数据为准备完成状态。若驱动层未读取到设定结束位,则保持该标识位的取值为准备中状态对应的数值。
步骤440、在等待设定时间长度后,返回执行判断所述预设节点内的手势数据是否准备完成的操作。
其中,该设定时间长度可以等于应用层读取驱动层中标识位的第一周期。示例性地,应用层在判定该预设节点内的手势数据未准备完成时,等待设定时间长度,再读取驱动层中该标识位的取值,以根据其取值判断该预设节点内的手势数据是否准备完成。
步骤450、从所述预设节点内提取所述手势数据。
其中,在该预设节点内的手势数据准备完成后,应用层从该预设节点内提取手势数据。例如,应用层调用设定函数从进程(proc-D)目录下的虚拟文件节点内读取手势数据。
步骤460、若所述第二黑屏手势属于预设手势集合,在所述移动终端执行所述第一操作的同时,执行所述第二黑屏手势对应的第二操作。
在第二黑屏手势属于预设手势集合时,维持移动终端处于第一模式不退出,执行第二黑屏手势对应的第二操作。在执行完成第二黑屏手势对应的第二操作后,移动终端处于第二模式,该第二模式为包括第一模式的状态。例如,若移动终端的第一模式为打开手电筒应用程序的模式,在维持手电筒打开的模式不退出的基础上,若检测到用户输入的第二黑屏手势是打开照相机应用程序,则执行该第二黑屏手势以打开照相机应用程序,同时不关闭手电筒应用程序,以使移动终端处于同时打开照相机和手电筒的模式。
本实施例的技术方案,通过读取驱动层中预置的标识位的方式判定驱动层的预设节点内的手势数据是否准备完成;若准备完成,则读取该预设节点内的手势数据,否则,等待设定时间长度后,重新读取该设定标识位,以进行该预设节点内数据状态判断。通过采用上述技术方案,可以有效地缩短应用层判断手势数据准备完成并读取该手势数据的时间,从而进一步提升黑屏手势的响应速度。
图5为本申请实施例提供的还一种黑屏手势的响应方法的流程图,本实施例可适用于对黑屏手势响应情况,该方法可以由黑屏手势的响应装置来执行,该装置可由以下至少之一来来实现:软件和硬件,该方法包括:
步骤510、在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态下。
步骤520、在所述移动终端执行所述第一操作的情况下,若检测到第二黑屏手势,则确定第二黑屏手势对应的手势类型。
步骤530、若基于所述手势类型判定所述第二黑屏手势属于预设手势集合,则在所述移动终端执行所述第一操作的同时,在所述第二操作包括打开第二应用程序时,在后台开启所述第二应用程序。
步骤540、在开启所述第二应用程序时,并行执行从所述手势数据包括的坐标信息中提取满足所述第二黑屏手势的预设采样规则的采样点。
其中,预先根据手势类型设置采样规则,例如,可以设置每隔设定数目的坐标点采集一个坐标点作为采样点。驱动层可以获取手势数据中包括的坐标信息,确定手势类型,可以根据手势类型确定与一个或多个手势类型匹配的预设采样规则,应用层从预设节点内提取手势数据时,可以获取该手势类型及对应的预设采样规则。
步骤550、根据所述采样点绘制所述第二黑屏手势对应的第二手势轨迹,并在所述触控显示屏上以动画的形式显示所述第二手势轨迹。
其中,可以对该采样点作曲线拟合得到用户输入的黑屏手势的手势类型对应的手势轨迹。可以以该手势轨迹的第一采样点开始,每隔设定时间间隔绘制设定数目的像素点,从而,以动画的形式展示手势轨迹的绘制过程。其中,为了保证较高的黑屏手势响应速度,该设定时间间隔为人眼能分辨图像变化的最小时间间隔,当然该时间间隔可以根据需要设定。
图6是本申请实施例提供的一种黑屏手势轨迹的显示示意图。如图6所示,以手势类型“W”的第一采样点601为起点,每隔设定时间间隔绘制3个采样点之间的手势轨迹。在第一次绘制时,由第一采样点601开始绘制3个采样点之间的手势轨迹,然后间隔设定时间长度进行第二次绘制。此时,由第四采样点602开始绘制3个采样点之间的手势轨迹,然后间隔设定时间长度进行第三次绘制。此时,由第七采样点603开始绘制3个采样点之间的手势轨迹,依此规则绘制手势轨迹直至绘出最后一个采样点604结束绘制,从而,实现在触控显示屏上以动画的形式显示所述手势轨迹,改善了静态显示手势轨迹的单调性问题,增加了趣味性。
步骤560、在检测到用户输入的黑屏手势对应的第二应用程序于后台开启完成时,判断触控显示屏上的手势轨迹是否绘制至最后一个采样点,若触控显示屏上的手势轨迹绘制至最后一个采样点,则执行步骤570,若触控显示屏上的手势轨迹没有绘制至最后一个采样点,则执行步骤550。
在所述第二应用程序于后台成功开启,且所述触控显示屏上以动画形式显示的第二手势轨迹达到最后一个采样点时,判定满足预设的显示条件。
其中,预先设置由手势轨迹显示界面切换至应用程序的显示界面的显示条件,该显示条件可以根据实际需求设定为该手势类型对应的应用程序于后台打开成功且触控显示屏上显示的手势轨迹绘制至最后一个采样点。
应用层在检测到用户输入的黑屏手势对应的第二应用程序于后台开启完成时,判断触控 显示屏上的手势轨迹是否绘制至最后一个采样点,若是,则执行步骤570,否则,执行步骤550。在一实施例中,若触控显示屏上的手势轨迹绘制至最后一个采样点,但用户输入的黑屏手势对应的应用程序未开启完成,则在触控显示屏上显示完成的手势轨迹直至检测到该应用程序在后台已开启完成,再执行步骤570。
步骤570、绘制所述第二应用程序对应的界面至所述触控显示屏,以在所述触控显示屏上显示所述第二应用程序的界面。
本实施例的技术方案,通过执行打开该手势类型对应的应用程序的同时,通过绘制线程从该手势数据的手势坐标中提取多个满足预设采样规则的采样点,根据该采样点绘制手势轨迹,以动画的形式在触控显示屏上显示该手势轨迹;在满足针对应用程序界面的预设显示条件时,由手势轨迹显示界面切换至应用程序界面。通过采用上述技术方案,可以在执行后台打开应用程序的同时,迅速地确定用户输入的黑屏手势的手势轨迹,并将该手势轨迹生动地绘制在触控显示屏上,避免用户直观地感觉黑屏手势功能反应不灵敏的情况发生,从而进一步提升黑屏手势的响应速度。
图7a是本申请实施例提供的一种黑屏手势的响应装置的结构框图,该装置可由以下至少之一来实现:软件和硬件,一般集成在移动终端中。如图7a所示,该装置可以包括:
第一手势执行模块710,设置为在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;
第二手势执行模块720,设置为在所述移动终端执行所述第一操作处于第一模式时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
本申请实施例提供一种黑屏手势的响应装置,实现并行执行两个黑屏手势对应的操作,可以有效地扩展黑屏手势的应用场景。
在一实施例中,图7b是本申请实施例提供的另一种黑屏手势的响应装置的结构框图,参见图7b,所述装置还包括:手势识别模块730,所述手势识别模块730设置为:
获取所述第二黑屏手势对应的手势类型;
如果基于所述手势类型判定所述第二黑屏手势属于预设手势集合,则执行所述第二黑屏手势对应的第二操作,其中,所述预设手势集合的手势对应的操作与所述第一操作不冲突。
在一实施例中,图7c是本申请实施例提供的第一手势执行模块的结构框图,如图7c所示,第一手势执行模块710包括:
第一应用程序开启子模块711,设置为在后台开启所述第一黑屏手势对应的第一应用程序,并执行所述第一应用程序对应的功能;
第一手势轨迹绘制子模块712,设置为在开启所述第一应用程序的同时,在所述移动终端的触控显示屏上绘制并显示所述第一黑屏手势对应的第一手势轨迹;
显示屏熄灭子模块713,设置为在所述第一手势轨迹的显示时间达到设定时间阈值时,所述触控显示屏返回所述熄屏状态。
所述手势识别模块730是设置为:
获取所述第二黑屏手势对应的手势数据;
获取所述手势数据中的手势坐标信息,根据所述手势坐标信息确定所述第二黑屏手势的手势类型。
在一实施例中,图7d是本申请实施例提供的手势识别模块的结构框图,如图7d所示,手势识别模块730包括:
数据状态判断子模块731,设置为读取驱动层中设定标识位,根据所述设定标识位判断驱动层的预设节点内的手势数据是否准备完成;
数据提取子模块732,设置为若该预设节点内的手势数据已准备完成,则从所述预设节点内提取所述手势数据;
所述手势识别模块730还设置为:若所述驱动层的预设节点内的手势数据没有准备完成,则在等待设定时间长度后,返回执行判断所述预设节点内的手势数据是否准备完成的操作。
在一实施例中,第二手势执行模块720,是设置为:
在后台执行所述所述第二黑屏手势对应的设定功能;
在执行所述设定功能的同时,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹。
在一实施例中,图7e是本申请实施例提供的第二手势执行模块的结构框图,如图7e所示,第二手势执行模块720,还包括:
第二应用开启子模块721,设置为在后台开启所述第二黑屏手势对应的第二应用程序;
第二手势轨迹绘制子模块722,设置为在开启所述第二应用程序的同时,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹;
界面绘制子模块723,设置为如果满足预设的第二应用程序的显示条件,则在所述触控显示屏上显示所述第二应用程序的界面。
在一实施例中,第二手势轨迹绘制子模块722是设置为:
从所述第二黑屏手势对应的手势数据包括的坐标信息中提取满足预设采样规则的采样点;
根据所述采样点绘制所述第二黑屏手势对应的第二手势轨迹,并在所述触控显示屏上以动画的形式显示所述第二手势轨迹。
第二手势轨迹绘制子模块722还设置为:
在绘制并显示所述第二应用程序对应的界面之前,所述第二应用程序在后台成功开启,且所述触控显示屏上以动画形式显示的第二手势轨迹达到最后一个采样点时,判定满足预设的显示条件。即:所述预设的第二应用程序显示条件包括:
所述第二应用程序在后台成功开启,且所述触控显示屏上以动画形式显示的第二手势轨迹显示到最后一个采样点。
在一实施例中,图7f是本申请实施例提供的又一种黑屏手势的响应装置的结构框图,参见图7f,还包括退出模块740,所述退出模块740设置为:
在所述第二黑屏手势不属于所述预设手势集合的情况下,所述移动终端退出所述熄屏状 态并停止执行所述第一操作,并且执行所述第二黑屏手势对应的第二操作。
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种黑屏手势响应的方法,该方法包括:
在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;
在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
存储介质——任何的多种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如动态随机存取存储器(Dynamic Random Access Memory,DRAM)、双倍速率随机存取存储器(Double Data Rate Random Access Memory,DDR RAM)、静态随机存取存储器(Static Random-Access Memory,SRAM)、扩展数据输出随机存取存储器(Extended Data Out Random Access Memory,EDO RAM),兰巴斯(Rambus)随机存取存储器(Random Access Memory,RAM)等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其他相似类型的存储器元件等。存储介质可以还包括其他类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。
本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的黑屏手势响应的方法的操作,还可以执行本申请任意实施例所提供的黑屏手势的响应方法中的相关操作。
本申请实施例提供了一种移动终端,该移动终端中可集成本申请实施例提供的黑屏手势的响应的装置。图8为本申请实施例提供的一种移动终端的结构示意图。如图8所示,该移动终端可以包括:壳体(图中未示出)、存储器801、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、电路板(图中未示出)、触控显示屏812和电源电路(图中未示出)。所述触控显示屏812,用于将用户操作转换成电信号输入至所述处理器,并显示可视输出信号;所述电路板安置在所述触控显示屏812与所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,设置为为所述移动终端的每个电路或器件供电;所述存储器801,用于存储计算机程序;所述CPU802读取并执行所述存储器801中存储的计算机程序。所述CPU802在执行所述计算机程序时实现以下步骤:在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
所述移动终端还包括:外设接口803、射频(Radio Frequency,RF)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(Input/Output,I/O)子系统809、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。
图示移动终端800仅仅是移动终端的一个范例,并且移动终端800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的每种部件可以在以下至少之一中实现:包括一个或多个信号处理以及专用集成电路在内的硬件、软件、或硬件和软件的组合。
下面就本实施例提供的集成有黑屏手势响应的装置的移动终端进行详细的描述,该移动终端以手机为例。
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如触控显示屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和设置为控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。在一实施例中,输入控制器8092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触控显示屏812,所述触控显示屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、以及视频等。
I/O子系统809中的显示控制器8091从触控显示屏812接收电信号或者向触控显示屏812发送电信号。触控显示屏812检测触控显示屏上的接触,显示控制器8091将检测到的接触转换为与显示在触控显示屏812上的用户界面对象的交互,即实现人机交互,显示在触控显示屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。在一实施例中,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触控显示屏形成的触摸敏感表面的延伸。
RF电路805,主要设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息和电子邮件等。在一实施例中,RF电路805接收并发送RF信号,RF信号也称为电磁信号,RF电路805将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路805可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编译码器(COder-DECoder,CODEC)芯片 组、用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路806,主要设置为从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。
扬声器811,设置为将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片808,设置为为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。
本申请实施例提供的移动终端,实现并行执行两个黑屏手势对应的操作,可以有效地扩展黑屏手势的应用场景。
上述实施例中提供的黑屏手势的响应装置、存储介质及移动终端可执行本申请任意实施例所提供的黑屏手势的响应方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的黑屏手势的响应方法。

Claims (20)

  1. 一种黑屏手势的响应方法,包括:
    在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;
    在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
  2. 根据权利要求1所述的方法,在检测到第二黑屏手势与执行所述第二黑屏手势对应的第二操作之间,还包括:
    获取所述第二黑屏手势对应的手势类型;
    如果基于所述手势类型判定所述第二黑屏手势属于预设手势集合,则执行所述第二黑屏手势对应的第二操作,其中,所述预设手势集合的手势对应的操作与所述第一操作不冲突。
  3. 根据权利要求1或2所述的方法,其中,执行所述第一黑屏手势对应的第一操作,包括:
    在后台开启所述第一黑屏手势对应的第一应用程序,并执行所述第一应用程序对应的功能;
    在开启所述第一应用程序的同时,在处于所述熄屏状态的所述移动终端的触控显示屏上绘制并显示所述第一黑屏手势对应的第一手势轨迹;
    在所述第一手势轨迹的显示时间达到设定时间阈值时,所述触控显示屏返回所述熄屏状态。
  4. 根据权利要求2所述的方法,其中,获取所述第二黑屏手势对应的手势类型,包括:
    获取所述第二黑屏手势对应的手势数据;
    获取所述手势数据中的手势坐标信息,根据所述手势坐标信息确定所述第二黑屏手势的手势类型。
  5. 根据权利要求4所述的方法,其中,获取所述第二黑屏手势对应的手势数据,包括:
    读取驱动层中设定标识位,根据所述设定标识位判断所述驱动层的预设节点内的手势数据是否准备完成;
    若所述驱动层的预设节点内的手势数据准备完成,则从所述预设节点内提取所述手势数据;
    若所述驱动层的预设节点内的手势数据没有准备完成,则在等待设定时间长度后,返回执行判断所述预设节点内的手势数据是否准备完成的操作。
  6. 根据权利要求1-5任一项所述的方法,其中,执行所述第二黑屏手势对应的第二操作,包括:
    在后台执行所述第二黑屏手势对应的设定功能;在执行所述设定功能的同时,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹。
  7. 根据权利要求1-5任一项所述的方法,其中,执行所述第二黑屏手势对应的第二操作,包括:
    在后台开启所述第二黑屏手势对应的第二应用程序;
    在开启所述第二应用程序的同时,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹;
    如果所述移动终端满足预设的第二应用程序的显示条件,则在所述触控显示屏上显示所述第二应用程序的界面。
  8. 根据权利要求7所述的方法,其中,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹,包括:
    从所述第二黑屏手势对应的手势数据包括的手势坐标信息中提取满足预设采样规则的采样点;
    根据所述采样点绘制所述第二黑屏手势对应的第二手势轨迹,并在所述触控显示屏上以动画的形式显示所述第二手势轨迹。
  9. 根据权利要求8所述的方法,其中,所述预设的第二应用程序的显示条件包括:
    所述第二应用程序在后台成功开启,且所述触控显示屏上以动画形式显示的第二手势轨迹显示到最后一个采样点。
  10. 根据权利要求2所述的方法,还包括:
    在所述第二黑屏手势不属于所述预设手势集合的情况下,所述移动终端退出所述熄屏状态并停止执行所述第一操作,并且执行所述第二黑屏手势对应的第二操作。
  11. 一种黑屏手势的响应装置,包括:
    第一手势执行模块,设置为在检测到预设的第一黑屏手势时,执行所述第一黑屏手势对应的第一操作,其中,在执行所述第一操作时,移动终端处于熄屏状态;
    第二手势执行模块,设置为在所述移动终端执行所述第一操作时,若检测到第二黑屏手势,则执行所述第二黑屏手势对应的第二操作。
  12. 根据权利要求11所述的装置,还包括手势识别模块,所述手势识别模块设置为:
    获取所述第二黑屏手势对应的手势类型;
    如果基于所述手势类型判定所述第二黑屏手势属于预设手势集合,则执行所述第二黑屏手势对应的第二操作,其中,所述预设手势集合的手势对应的操作与所述第一操作不冲突。
  13. 根据权利要求11或12所述的装置,其中,所述第一手势执行模块包括:
    第一应用程序开启子模块,设置为在后台开启所述第一黑屏手势对应的第一应用程序,并执行所述第一应用程序对应的功能;
    第一手势轨迹绘制子模块,设置为在开启所述第一应用程序的同时,在处于所述熄屏状态的所述移动终端的触控显示屏上绘制并显示所述第一黑屏手势对应的第一手势轨迹;
    显示屏熄灭子模块,设置为在所述第一手势轨迹的显示时间达到设定时间阈值时,所述触控显示屏返回所述熄屏状态。
  14. 根据权利要求12所述的装置,其中,所述手势识别模块是设置为:
    获取所述第二黑屏手势对应的手势数据;
    获取所述手势数据中的手势坐标信息,根据所述手势坐标信息确定所述第二黑屏手势的手势类型。
  15. 根据权利要求14所述的装置,其中,所述手势识别模块包括:
    数据状态判断子模块,设置为读取驱动层中设定标识位,根据所述设定标识位判断所述驱动层的预设节点内的手势数据是否准备完成;
    数据提取子模块,设置为若所述驱动层的预设节点内的手势数据准备完成,则从所述预设节点内提取所述手势数据;
    所述手势识别模块还设置为:若所述驱动层的预设节点内的手势数据没有准备完成,则在等待设定时间长度后,返回执行判断所述预设节点内的手势数据是否准备完成的操作。
  16. 根据权利要求11-15任一项所述的装置,其中,所述第二手势执行模块是设置为:
    在后台执行所述第二黑屏手势对应的设定功能;
    在执行所述设定功能的同时,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹。
  17. 根据权利要求11-15任一项所述的装置,其中,所述第二手势执行模块包括:
    第二应用开启子模块,设置为在后台开启所述第二黑屏手势对应的第二应用程序;
    第二手势轨迹绘制子模块,设置为在开启所述第二应用程序的同时,在所述移动终端的触控显示屏上绘制并显示所述第二黑屏手势对应的第二手势轨迹;
    界面绘制子模块,设置为如果所述移动终端满足预设的第二应用程序的显示条件,则在所述触控显示屏上显示所述第二应用程序的界面。
  18. 根据权利要求17所述的装置,其中,所述第二手势轨迹绘制子模块是设置为:
    从所述第二黑屏手势对应的手势数据包括的手势坐标信息中提取满足预设采样规则的采样点;
    根据所述采样点绘制所述第二黑屏手势对应的第二手势轨迹,并在所述触控显示屏上以动画的形式显示所述第二手势轨迹。
  19. 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如权利要求1至10中任一项所述的黑屏手势的响应方法。
  20. 一种移动终端,包括触控显示屏、存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至10中任一项所述的黑屏手势的响应方法。
PCT/CN2018/094916 2017-07-28 2018-07-06 黑屏手势的响应方法、装置、存储介质及移动终端 WO2019019901A1 (zh)

Applications Claiming Priority (2)

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

Publications (1)

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

Family

ID=60489673

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN107450838B (zh)
WO (1) WO2019019901A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450838B (zh) * 2017-07-28 2020-01-14 Oppo广东移动通信有限公司 黑屏手势的响应方法、装置、存储介质及移动终端
CN110839105A (zh) * 2018-08-17 2020-02-25 中兴通讯股份有限公司 终端管理方法、装置、终端及计算机存储介质
CN109753774B (zh) * 2019-01-08 2020-08-28 腾燊嘉诚(上海)信息科技股份有限公司 一种智能制造系统
CN111212411B (zh) * 2019-12-31 2023-11-14 宇龙计算机通信科技(深圳)有限公司 文件传输方法、装置、存储介质以及终端
CN111327762A (zh) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 操作轨迹的显示方法、装置、电子设备及存储介质
CN111356217B (zh) * 2020-02-17 2023-07-21 Oppo广东移动通信有限公司 终端控制方法、装置、终端设备以及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140100026A1 (en) * 2012-10-10 2014-04-10 Rsupport Co., Ltd. Game type unlocking method for touch screen information device
CN104346100A (zh) * 2014-10-17 2015-02-11 广东欧珀移动通信有限公司 一种智能移动终端在黑屏状态下的快捷操作方法及装置
CN105094659A (zh) * 2014-05-19 2015-11-25 中兴通讯股份有限公司 一种基于手势对应用程序进行操作的方法及终端
CN106168881A (zh) * 2016-07-12 2016-11-30 硕诺科技(深圳)有限公司 提升黑屏手势响应速度的方法
CN106708402A (zh) * 2016-11-25 2017-05-24 努比亚技术有限公司 控制终端应用的方法及装置
CN107450838A (zh) * 2017-07-28 2017-12-08 广东欧珀移动通信有限公司 黑屏手势的响应方法、装置、存储介质及移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105425941B (zh) * 2015-10-28 2019-04-16 Oppo广东移动通信有限公司 一种防止误启动移动终端中应用程序的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140100026A1 (en) * 2012-10-10 2014-04-10 Rsupport Co., Ltd. Game type unlocking method for touch screen information device
CN105094659A (zh) * 2014-05-19 2015-11-25 中兴通讯股份有限公司 一种基于手势对应用程序进行操作的方法及终端
CN104346100A (zh) * 2014-10-17 2015-02-11 广东欧珀移动通信有限公司 一种智能移动终端在黑屏状态下的快捷操作方法及装置
CN106168881A (zh) * 2016-07-12 2016-11-30 硕诺科技(深圳)有限公司 提升黑屏手势响应速度的方法
CN106708402A (zh) * 2016-11-25 2017-05-24 努比亚技术有限公司 控制终端应用的方法及装置
CN107450838A (zh) * 2017-07-28 2017-12-08 广东欧珀移动通信有限公司 黑屏手势的响应方法、装置、存储介质及移动终端

Also Published As

Publication number Publication date
CN107450838B (zh) 2020-01-14
CN107450838A (zh) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107748686B (zh) 应用程序的启动优化方法、装置、存储介质及智能终端
US11086663B2 (en) Preloading application using active window stack
US11320960B2 (en) Icon display method, device, and terminal
WO2019019901A1 (zh) 黑屏手势的响应方法、装置、存储介质及移动终端
US11086510B2 (en) Split screen control method based on screen-off gestures, and storage medium and mobile terminal thereof
US10932196B2 (en) Method for reducing power consumption of mobile terminal, storage medium and mobile terminal
US9857943B2 (en) Method for managing task on terminal device, and terminal device
WO2019206213A1 (zh) 应用程序预加载方法、装置、存储介质及终端
US10901608B2 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
CN107479700B (zh) 黑屏手势控制方法、装置、存储介质及移动终端
WO2019019835A1 (zh) 响应黑屏手势的方法、装置、存储介质及移动终端
US20200008142A1 (en) Method for Controlling Terminal, and Terminal
WO2019047738A1 (zh) 消息显示方法、装置、移动终端及存储介质
WO2019223511A1 (zh) 应用程序的预加载方法、装置、存储介质及终端
WO2019218886A1 (zh) 应用预加载管理方法、装置、存储介质及智能终端
US11455075B2 (en) Display method when application is exited and terminal
TWI646835B (zh) 一種電視節目播放方法以及相關的終端設備
WO2019019818A1 (zh) 加快黑屏手势处理的方法、装置、存储介质及移动终端
US10466894B2 (en) Method, device, storage medium and mobile terminal for recognizing an off-screen gesture
WO2019019899A1 (zh) 改善黑屏手势响应的方法、装置、存储介质及移动终端
WO2019047231A1 (zh) 触摸操作响应方法及装置
WO2019214475A1 (zh) 应用程序预加载方法以及装置、存储介质及移动终端
WO2019047226A1 (zh) 触摸操作响应方法及装置
WO2019019817A1 (zh) 基于黑屏手势的控制方法、装置、存储介质及移动终端
WO2019047183A1 (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: 18837297

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

Country of ref document: EP

Kind code of ref document: A1