[go: up one dir, main page]

CN107479700A - Blank screen gestural control method, device, storage medium and mobile terminal - Google Patents

Blank screen gestural control method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN107479700A
CN107479700A CN201710632956.7A CN201710632956A CN107479700A CN 107479700 A CN107479700 A CN 107479700A CN 201710632956 A CN201710632956 A CN 201710632956A CN 107479700 A CN107479700 A CN 107479700A
Authority
CN
China
Prior art keywords
gesture
data
black screen
application layer
layer
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201710632956.7A
Other languages
Chinese (zh)
Other versions
CN107479700B (en
Inventor
韩通
郭明强
石仁栋
张强
汪昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710632956.7A priority Critical patent/CN107479700B/en
Publication of CN107479700A publication Critical patent/CN107479700A/en
Application granted granted Critical
Publication of CN107479700B publication Critical patent/CN107479700B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

本发明实施例公开了一种黑屏手势控制方法、装置、存储介质及移动终端。该方法包括在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内;应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成;在准备完成时,应用层由所述预设节点内读取所述手势数据;应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。上述技术方案通过改变黑屏手势功能的控制逻辑,可以有效地提升黑屏手势的响应速度,缩短由检测到黑屏手势至打开该黑屏手势对应的应用程序所需的时间。

The embodiment of the invention discloses a black screen gesture control method, device, storage medium and mobile terminal. The method comprises that after waking up the system based on the black screen gesture, when the driving layer reports the black screen gesture event, performing an operation of reading gesture data of the black screen gesture in parallel, and storing the gesture data in a preset node of the driving layer; When the application layer receives the black screen gesture event, it detects whether the gesture data in the preset node is ready; when the preparation is completed, the application layer reads the gesture data from the preset node; When the gesture data is read successfully and is valid, execute the black screen gesture function corresponding to the gesture data. The above technical solution can effectively improve the response speed of the black screen gesture by changing the control logic of the black screen gesture function, and shorten the time required from detecting the black screen gesture to opening the application program corresponding to the black screen gesture.

Description

黑屏手势控制方法、装置、存储介质及移动终端Black screen gesture control method, device, storage medium and mobile terminal

技术领域technical field

本发明实施例涉及移动终端技术,尤其涉及黑屏手势控制方法、装置、存储介质及移动终端。The embodiments of the present invention relate to mobile terminal technologies, and in particular to a black screen gesture control method, device, storage medium and mobile terminal.

背景技术Background technique

目前的移动终端,例如智能手机、掌上电脑、平板电脑或掌上游戏机等通常被设计为具有触控显示屏的结构,以提供触摸输入方式,使用户的操作更加便捷。Current mobile terminals, such as smart phones, handheld computers, tablet computers or handheld game consoles, are usually designed to have a structure of a touch screen to provide a touch input method to make the user's operation more convenient.

黑屏手势在现有智能手机上有着广泛应用,当黑屏手势功能被开启后,在智能手机待机黑屏的状态下也可实现检测作用于触控显示屏上的手势操作,从而触发手机内部相应的功能或软件。黑屏手势因其能够减少了用户打开手势内部功能或应用软件的操作步骤,且具有酷炫的使用效果,而被广泛应用。但是,目前的黑屏手势处理流程存在缺陷导致移动终端对黑屏手势的响应速度慢,黑屏手势功能反应不够灵敏。触控显示屏Black screen gestures are widely used on existing smart phones. When the black screen gesture function is turned on, the gesture operation on the touch screen can also be detected when the smart phone is in standby and black screen, thereby triggering the corresponding functions inside the phone. or software. The black screen gesture is widely used because it can reduce the operation steps for the user to open the gesture's internal functions or application software, and has a cool use effect. However, defects in the current black screen gesture processing flow lead to slow response of the mobile terminal to the black screen gesture, and the response of the black screen gesture function is not sensitive enough. touch screen

发明内容Contents of the invention

本发明实施例提供一种黑屏手势控制方法、装置、存储介质及移动终端,可以提高黑屏手势的响应速度。Embodiments of the present invention provide a black screen gesture control method, device, storage medium and mobile terminal, which can improve the response speed of the black screen gesture.

第一方面,本发明实施例提供了一种黑屏手势控制方法,包括:In a first aspect, an embodiment of the present invention provides a black screen gesture control method, including:

在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内;After waking up the system based on the black screen gesture, when the driver layer reports the black screen gesture event, perform the operation of reading the gesture data of the black screen gesture in parallel, and store the gesture data in a preset node of the driver layer;

应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成;When the application layer receives the black screen gesture event, it detects whether the gesture data in the preset node is ready;

在准备完成时,应用层由所述预设节点内读取所述手势数据,其中,所述手势数据包括手势类型;When the preparation is completed, the application layer reads the gesture data from the preset node, wherein the gesture data includes gesture type;

应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。The application layer executes a black screen gesture function corresponding to the gesture data when the gesture data is read successfully and is valid.

第二方面,本发明实施例还提供了一种黑屏手势控制装置,该装置包括:In the second aspect, the embodiment of the present invention also provides a black screen gesture control device, which includes:

第一数据读取模块,用于在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内;The first data reading module is used to execute the operation of reading the gesture data of the black screen gesture in parallel when the driver layer reports the black screen gesture event after waking up the system based on the black screen gesture, and store the gesture data in the driver layer within the preset node;

数据检测模块,用于应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成;The data detection module is used for the application layer to detect whether the gesture data in the preset node is ready when receiving the black screen gesture event;

第二数据读取模块,用于在准备完成时,应用层由所述预设节点内读取所述手势数据,其中,所述手势数据包括手势类型;The second data reading module is used to read the gesture data from the preset node at the application layer when the preparation is completed, wherein the gesture data includes gesture type;

功能执行模块,用于应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。The function execution module is used for the application layer to execute the black screen gesture function corresponding to the gesture data when the gesture data is read successfully and valid.

第三方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例所述的黑屏手势控制方法。In a third aspect, the embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the black screen gesture control method as described in the embodiment of the present invention is implemented.

第四方面,本发明实施例还提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本发明实施例所述的黑屏手势控制方法。In a fourth aspect, an embodiment of the present invention also provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the computer program as described in the present invention when executing the computer program. The black screen gesture control method described in the embodiment of the invention.

本发明实施例提供的移动终端的黑屏手势控制方案,通过并行执行上报黑屏手势事件与读取手势数据的操作;并在驱动层读取手势数据的过程中若应用层接收到该黑屏手势事件,则应用层按照设定周期检测该手势数据是否准备完成;在准备完成时,应用层由该预设节点内读取手势数据,其中,所述手势数据包括手势类型;在读取成功时,判断手势数据是否有效,若有效,则执行手势数据对应的黑屏手势功能。上述技术方案通过改变黑屏手势功能的控制逻辑,可以有效地提升黑屏手势的响应速度,缩短由检测到黑屏手势至打开该黑屏手势对应的应用程序所需的时间。The black screen gesture control scheme of the mobile terminal provided by the embodiment of the present invention is to perform the operations of reporting a black screen gesture event and reading gesture data in parallel; and if the application layer receives the black screen gesture event during the process of reading the gesture data by the driver layer, Then the application layer detects whether the gesture data is ready according to the set cycle; when the preparation is completed, the application layer reads the gesture data from the preset node, wherein the gesture data includes the gesture type; when the reading is successful, it judges Whether the gesture data is valid, if valid, execute the black screen gesture function corresponding to the gesture data. The above technical solution can effectively improve the response speed of the black screen gesture by changing the control logic of the black screen gesture function, and shorten the time required from detecting the black screen gesture to opening the application program corresponding to the black screen gesture.

附图说明Description of drawings

图1是本发明实施例提供的一种黑屏手势控制方法的流程图;FIG. 1 is a flowchart of a black screen gesture control method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种安卓系统框架示意图;FIG. 2 is a schematic diagram of an Android system framework provided by an embodiment of the present invention;

图3a是本发明实施例提供的另一种黑屏手势控制方法的流程图;Fig. 3a is a flowchart of another black screen gesture control method provided by an embodiment of the present invention;

图3b是本发明实施例提供的一种黑屏手势轨迹的显示示意图;Fig. 3b is a schematic display diagram of a black screen gesture track provided by an embodiment of the present invention;

图4a是本发明实施例提供的另一种黑屏手势控制方法的流程图;Fig. 4a is a flow chart of another black screen gesture control method provided by an embodiment of the present invention;

图4b是本发明实施例提供的另一种黑屏手势轨迹的显示示意图;Fig. 4b is a schematic display diagram of another black screen gesture trajectory provided by an embodiment of the present invention;

图5是本发明实施例提供的一种黑屏手势控制装置的结构示意图;Fig. 5 is a schematic structural diagram of a black screen gesture control device provided by an embodiment of the present invention;

图6是本发明实施例提供的一种移动终端的结构示意图。Fig. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式detailed description

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

黑屏手势功能是在移动终端(例如智能手机)处于熄屏休眠的情况下,触控显示屏以低功耗状态运行,以检测熄屏下的作用于触控显示屏的黑屏手势,并根据该黑屏手势来唤醒智能手机的某项功能或开启预先设置的与黑屏手势类型对应的应用程序的功能。为了便于理解黑屏手势功能,下面对由熄屏状态下检测到黑屏手势至应用层开启该黑屏手势对应的应用程序的流程进行说明,该流程包括:将黑屏手势对应的手势数据存入驱动层的预设节点内,其中,手势数据包括手势坐标和手势类型;由驱动层执行黑屏手势数据有效性判断;若有效,则由框架层执行黑屏手势事件派发;在应用层接收到黑屏手势事件后,由应用层从驱动层内预设节点读取手势数据,手势坐标根据该手势坐标和手势类型计算黑屏手势的动画轨迹,将动画轨迹数据发送至帧缓存(FrameBuffer),以按照设定的屏幕刷新率将该动画轨迹刷新至触控显示屏,进行显示;随后,由应用层执行开启该黑屏手势对应的应用程序的操作。The black screen gesture function is that when the mobile terminal (such as a smart phone) is in the dormant state with the screen off, the touch screen operates in a low power consumption state to detect the black screen gesture acting on the touch screen when the screen is off, and according to the A blank screen gesture is used to wake up a certain function of the smart phone or to open a preset application function corresponding to the type of the blank screen gesture. In order to facilitate the understanding of the black screen gesture function, the following describes the process from detecting the black screen gesture in the off-screen state to the application layer opening the application program corresponding to the black screen gesture. The process includes: storing the gesture data corresponding to the black screen gesture in the driver layer In the preset node of , the gesture data includes gesture coordinates and gesture type; the driver layer executes the black screen gesture data validity judgment; if valid, the framework layer executes the black screen gesture event distribution; after the application layer receives the black screen gesture event , the application layer reads the gesture data from the preset node in the driver layer, the gesture coordinates calculate the animation trajectory of the black screen gesture according to the gesture coordinates and gesture type, and send the animation trajectory data to the frame buffer (FrameBuffer) to follow the set screen The refresh rate refreshes the animation track to the touch screen for display; then, the application layer executes the operation of opening the application program corresponding to the black screen gesture.

由上述黑屏手势执行流程可知,在触控显示屏显示黑屏手势轨迹并打开应用程序之前,还需要执行:在系统唤醒后,驱动层通过设定读取函数由触摸芯片中读取手势坐标,并存储于驱动层的预设节点;驱动层根据该手势坐标确定用户输入的黑屏手势的手势类型,再将该手势类型也作为手势数据存储于该预设节点内。驱动层上报黑屏手势事件。应用层在接收到黑屏手势事件后,由该预设节点读取手势数据,根据手势数据确定手势轨迹。由于上述步骤是在触控显示屏熄灭的状态下进行的,从用户的角度看来移动终端是没有反应的,即从输入黑屏手势至打开该黑屏手势对应的应用程序的延时时间较长,导致用户直观的认为黑屏手势功能反应不够灵敏。本发明实施例提供的黑屏手势控制方案可以很好的解决上述的黑屏手势对应的应用程序的开启延时较长的问题。From the above black screen gesture execution flow, before the touch screen displays the black screen gesture trajectory and opens the application program, it needs to be executed: after the system wakes up, the driver layer reads the gesture coordinates from the touch chip by setting the read function, and Stored in the default node of the driver layer; the driver layer determines the gesture type of the black screen gesture input by the user according to the gesture coordinates, and then stores the gesture type in the preset node as gesture data. The driver layer reports black screen gesture events. After the application layer receives the black screen gesture event, the preset node reads the gesture data, and determines the gesture trajectory according to the gesture data. Since the above steps are carried out when the touch screen is turned off, from the user's point of view, the mobile terminal does not respond, that is, the delay time from inputting the black screen gesture to opening the application program corresponding to the black screen gesture is relatively long. As a result, users intuitively think that the black screen gesture function is not responsive enough. The black screen gesture control solution provided by the embodiment of the present invention can well solve the above-mentioned problem of long delay in starting the application program corresponding to the black screen gesture.

图1是本发明实施例提供的一种黑屏手势控制方法的流程图,该方法由黑屏手势控制装置来执行,其中,该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:Fig. 1 is a flow chart of a black screen gesture control method provided by an embodiment of the present invention, the method is executed by a black screen gesture control device, wherein the device can be implemented by software and/or hardware, and generally can be integrated into a mobile terminal. As shown in Figure 1, the method includes:

步骤110、在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内。Step 110, after waking up the system based on the black screen gesture, when the driver layer reports the black screen gesture event, execute the operation of reading the gesture data of the black screen gesture in parallel, and store the gesture data in a preset node of the driver layer.

其中,黑屏手势事件可以是驱动层与应用层预先协商好的用于代表有黑屏手势输入的事件。Wherein, the black screen gesture event may be an event negotiated in advance between the driver layer and the application layer to represent the 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 a screen-off state after the black screen gesture function is turned on. It can be understood that the black screen gesture is not limited to a touch gesture input on the touch screen, and may also be an operation detected by a sensor of the mobile terminal. For example, the gesture of shaking the smartphone left and right, the gesture of flicking over the touch screen of the smartphone, the gesture of pressing the frame of the smartphone, and so on.

手势数据包括对应于黑屏手势的手势坐标、手势类型及预设结束位等。The gesture data includes gesture coordinates corresponding to the black screen gesture, gesture type, preset end position, and the like.

预设节点可以为文件节点,例如可以是proc-D目录下的虚拟文件节点。The preset node may be a file node, for example, a virtual file node under the proc-D directory.

图2是本发明实施例提供的一种安卓系统框架示意图。以图2所示的操作系统为安卓(Android)系统的移动终端为例,介绍本发明实施例提供的黑屏手势功能的执行流程。如图2所示,安卓系统框架由下至上包括内核层210、核心类库层220、框架层230及应用层240。其中,内核层210提供核心系统服务,包括安全、内存管理、进程管理、网络协议栈及硬件驱动等。其中,将内核层210中的硬件驱动记为驱动层211,该驱动层211包括触控显示屏驱动、摄像头驱动等。核心类库层220包括安卓运行环境(Android Runtime)和类库(Libraries)。其中,Android Runtime提供大部分在Java编程语言核心类库中可用的功能,包括核心库(Core Libraries)和Dalvik虚拟机(Dalvik VM)。每一个安卓应用程序是Dalvik虚拟机中的实例,运行在它们自己的进程中。类库供安卓系统的各个组件使用,包括如下功能:媒体库(Media Framework)、界面管理(Surface Manager)、SQLite(关系数据库引擎)及FreeType(位图和矢量字体渲染)等,其各个功能通过安卓系统的框架层230暴露给开发者使用。框架层230提供开发安卓应用程序所需的一系列类库,使开发人员可以进行快速的应用程序开发,方便重用组件,也可以通过继承实现个性化的扩展,其提供的服务包括组件管理服务、窗口管理服务、系统数据源组件、空间框架、资源管理服务及安装包管理服务等。应用层240上包括各类与用户直接交互的应用程序,或由Java语言编写的运行于后台的服务程序,包括桌面应用、联系人应用、通话应用、相机应用、图片浏览器、游戏、地图、web浏览器等程序,以及开发人员开发的其他应用程序。Fig. 2 is a schematic diagram of an Android system framework provided by an embodiment of the present invention. Taking the mobile terminal whose operating system is the Android system shown in FIG. 2 as an example, the execution flow of the black screen gesture function provided by the embodiment of the present invention is introduced. As shown in FIG. 2 , 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. Among them, the kernel layer 210 provides core system services, including security, memory management, process management, network protocol stack, and hardware drivers. Wherein, the hardware driver in the kernel layer 210 is recorded as the driver layer 211, and the driver layer 211 includes a touch screen driver, a camera driver, and the like. The core class library layer 220 includes an Android runtime environment (Android Runtime) and class libraries (Libraries). Among them, Android Runtime 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 its own process. The class library is used by various components of the Android system, including the following functions: media library (Media Framework), interface management (Surface Manager), SQLite (relational database engine) and FreeType (bitmap and vector font rendering), etc., each of which functions through The framework layer 230 of the Android system is exposed to developers. The framework layer 230 provides a series of class libraries required for developing Android applications, so that developers can develop applications quickly, facilitate reuse of components, and also realize personalized expansion through inheritance. The services it provides include component management services, Window management services, system data source components, space frames, resource management services, installation package management services, etc. The application layer 240 includes various application programs directly interacting with the user, or service programs written in the Java language and running in the background, including desktop applications, contact applications, call applications, camera applications, picture browsers, games, maps, programs such as web browsers, and other applications developed by developers.

示例性的,在黑屏手势功能开启后,触摸芯片在检测到黑屏手势时,生成一唤醒信号,并发送该唤醒信号至内核层。通过该唤醒信号触发内核层执行系统唤醒操作。在系统唤醒后,内核层调用驱动层中断处理函数执行,驱动层通过该中断处理函数读取触摸芯片中手势数据,并将读取的手势数据存储在驱动层的预设节点内。其中,触摸芯片用于输出触摸感测控制信号至触控显示屏,以检测触摸操作,识别作用于触控显示屏上的黑屏手势的手势坐标,将该手势坐标作为手势数据存储在自身的寄存器中。预设节点可以为文件节点,例如可以是proc-D目录下的虚拟文件节点。在数据读取完成后,驱动层判定该手势数据的有效性,有效性判定的方式有很多种,本实施例不作具体限定。例如,驱动层根据该手势数据包含的手势坐标确定手势类型,并将所确定的手势类型作为手势数据存储在该预设节点内。若该手势类型不是预设的黑屏手势,则判定手势数据无效。又如,驱动层统计该手势数据的数目,判定该数目是否满足绘制预设的黑屏手势的要求,若否,则判定手势数据无效。在数据有效时,驱动层上报黑屏手势事件。该黑屏手势事件经内核层、核心类库层传输至框架层,并通过框架层派发,达到应用层。应用层在获取到黑屏手势事件时,检测驱动层的预设节点中的手势数据是否准备完成。若是,则由该预设节点读取手势数据。根据该手势数据包含的手势坐标计算出黑屏手势轨迹,将该黑屏手势轨迹绘制在触控显示屏上进行显示。然后,应用层基于所读取的手势数据中的手势类型,打开与该手势类型对应的应用程序。其中,手势类型可以是预先设置于移动终端中的用于实现某一功能的手势,还可以是用户自定义的手势。例如,手势类型可以是O,代表打开相机。又如,手势类型可以是V,代表打开手电筒等等。Exemplarily, after the black-screen gesture function is enabled, the touch chip generates a wake-up signal when detecting the black-screen gesture, and sends the wake-up signal to the kernel layer. The wake-up signal is used to trigger the kernel layer to perform a system wake-up operation. After the system wakes up, 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. Among them, the touch chip is used to output the touch sensing control signal to the touch screen to detect the touch operation, identify the gesture coordinates of the black screen gesture acting on the touch screen, and store the gesture coordinates as gesture data in its own register middle. The preset node may be a file node, for example, a virtual file node under the proc-D directory. After the data is read, 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 driver layer determines the gesture type according to the gesture coordinates included in the gesture data, and stores the determined gesture type as gesture data in the preset node. If the gesture type is not a preset black screen gesture, it is determined that the gesture data is invalid. For another example, the driver layer counts the number of the gesture data, and determines whether the number meets 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 kernel layer and the core class library layer, and distributed through the framework layer to reach the application layer. When the application layer gets the black screen gesture event, it detects whether the gesture data in the preset node of the driver layer is ready. If yes, the gesture data is read by the preset node. A black screen gesture track is calculated according to the gesture coordinates contained in the gesture data, and the black screen gesture track is drawn on the touch screen for display. Then, based on the gesture type in the read gesture data, the application layer opens the application program corresponding to the gesture type. Wherein, the gesture type may be a gesture preset in the mobile terminal for realizing a certain function, or may be a user-defined gesture. For example, the gesture type could be O, which represents turning on the camera. For another example, the gesture type may be V, which means turning on a flashlight and so on.

可以理解的是,黑屏手势功能的执行流程并不限于本实施例中列举的方式。例如,还可以是在系统唤醒时即上报黑屏手势事件,内核层调用驱动层中断处理函数执行,驱动层通过该中断处理函数读取触摸芯片中手势数据,并将该手势数据存储在驱动层的预设节点内;在上报黑屏手势事件时,驱动层并行执行由该预设节点内读取手势数据,根据手势数据确定手势类型的操作;可选的,驱动层上报黑屏手势事件,该黑屏手势事件通过框架层分发至应用层。在上报黑屏手势事件时,内核层调用驱动层中断处理函数执行,驱动层通过中断处理函数并行执行从该触摸芯片中读取该黑屏手势对应的手势数据,并将该手势数据存储在驱动层的预设节点内。驱动层检测该预设节点内的手势数据是否包括预设结束位,若是,则根据手势坐标确定该黑屏手势对应的手势类型。It can be understood that the execution flow of the black screen gesture function is not limited to the manners listed in this embodiment. For example, it is also possible to report a black screen gesture event when the system wakes up, and 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 gesture data in the driver layer. In the preset node; when reporting a black screen gesture event, the driver layer executes in parallel the operation of reading gesture data from the preset node and determining the gesture type according to the gesture data; optionally, the driver layer reports a black screen gesture event, and the black screen gesture Events are distributed to the application layer through the framework layer. When reporting a black screen gesture event, the kernel layer calls the driver layer interrupt processing function to execute, and the driver layer reads the gesture data corresponding to the black screen gesture from the touch chip through the interrupt processing function in parallel, and stores the gesture data in the driver layer. in the default node. The driver layer detects whether the gesture data in the preset node includes a preset end bit, and if so, determines the gesture type corresponding to the black screen gesture according to the gesture coordinates.

步骤120、应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成。Step 120: When the application layer receives the black screen gesture event, it detects whether the gesture data in the preset node is ready.

其中,预设节点内的手势数据的状态包括准备完成及准备中。可以根据检测该预设节点中手势数据是否包括预设结束位,判定该预设节点数据处于准备完成状态或是准备中状态。例如,预先预设结束位对应的字符是“#”。在用户输入黑屏手势时,触摸芯片将检测到的黑屏手势对应的手势数据存入自身预设的寄存器中。触摸芯片在检测到黑屏手势输入完成后(例如,预设时间长度内未检测到用户输入黑屏手势),在寄存器中存储的手势数据的结尾添加“#”。驱动层按照设定周期读取该预设节点内的手势数据,若检测到该预设结束位对应的字符,即“#”,则判定该预设节点数据状态为准备完成。此时,将驱动层内的设定标识位的取值变更为代表手势数据准备完成的取值。其中,该设定标识位用于标识驱动层中的预设节点中手势数据的状态。该设定标识位的取值由驱动层是否读取到预设结束位确定。若驱动层读取到预设结束位,则更新该设定标识位的取值为准备完成状态对应的数值。若驱动层未读取到预设结束位,则保持该设定标识位的取值为准备中状态对应的数值。Wherein, the state of the gesture data in the preset node includes preparation completed and preparation in progress. It can be determined whether the preset node data is in a ready state or in a ready state according to detecting whether the gesture data in the preset node includes a preset end bit. For example, the character corresponding to the preset end bit is "#". When the user inputs a black screen gesture, the touch chip stores gesture data corresponding to the detected black screen gesture into its preset register. After the touch chip detects that the black screen gesture input is completed (for example, no black screen gesture input by the user is detected within a preset period of time), "#" is added to the end of the gesture data stored in the register. The driver layer reads the gesture data in the preset node according to the set cycle, and if the character corresponding to the preset end bit, ie "#", is detected, it is determined that the data status of the preset node is ready to complete. At this point, change the value of the setting flag in the driver layer to a value representing the completion of gesture data preparation. Wherein, the set identification bit is used to identify the state of the gesture data in the preset node in the driver layer. The value of the setting flag is determined by whether the drive layer reads the preset end bit. If the driver layer reads the preset end bit, the value of the set flag bit is updated to a value corresponding to the ready state. If the drive layer does not read the preset end bit, keep the value of the set flag bit as the value corresponding to the state of preparing.

可以理解的是,该结束位可以有很多种,并不限于本实施例列举的“#”。It can be understood that there may be many kinds of end digits, and it is not limited to "#" listed in this embodiment.

应用层在接收到黑屏手势事件后,周期性地读取配置于驱动层内的设定标识位的取值。应用层可以通过该设定标识位的取值获知该预设节点中的手势数据的状态是准备完成还是准备中。在该预设节点内的手势数据未准备完成时,启动计时器定时设定时间长度,等待该设定时间长度,再读取驱动层中该标识位的取值,以根据其取值判断该预设节点内的手势数据是否准备完成。After the application layer receives the black screen gesture event, it periodically reads the value of the set flag configured in the driver layer. The application layer can know whether the status of the gesture data in the preset node is ready or in preparation through the value of the set identification bit. When the gesture data in the preset node is not ready, start the timer to set the time length regularly, wait for the set time length, and then read the value of the flag in the driver layer to judge the value according to the value. Whether the gesture data in the preset node is ready.

可以理解的是,在内核层调用驱动层中断处理函数执行,驱动层通过该终端处理函数从该触摸芯片中读取该黑屏手势对应的手势数据,并存入驱动层的预设节点的过程中,应用层周期性的读取设定标识位。It can be understood that the driver layer interrupt processing function is called at the kernel layer, and the driver layer reads the gesture data corresponding to the black screen gesture from the touch chip through the terminal processing function, and stores it in the preset node of the driver layer. , the application layer periodically reads the set flag.

步骤130、在准备完成时,应用层由所述预设节点内读取所述手势数据。Step 130, when the preparation is completed, the application layer reads the gesture data from the preset node.

在该预设节点内的手势数据准备完成后,应用层从该预设节点内提取手势数据。例如,应用层调用设定函数从proc-D目录下的虚拟文件节点内读取手势坐标及手势类型等。After the gesture data in the preset node is prepared, the application layer extracts the gesture data from the preset node. For example, the application layer calls the setting function to read gesture coordinates and gesture types from the virtual file node in the proc-D directory.

步骤140、应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。Step 140: When the gesture data is read successfully and valid, the application layer executes a black screen gesture function corresponding to the gesture data.

其中,若应用层读取到该手势数据的预设结束位,则认为该手势数据读取成功。若应用层读取到的手势坐标的数目超过设定数量阈值,且该手势类型对应的黑屏手势为已启用的黑屏手势,则认为该黑屏手势数据有效。示例性的,应用层在由预设节点读取手势数据后,将该手势数据与预设结束位进行比对,若该手势数据包括预设结束位,则确定该手势数据读取成功,停止从预设节点读取数据。应用层根据该手势数据包括的手势类型查询已开启的黑屏手势的手势类型,若该手势类型对应的黑屏手势已开启,则统计所读取的手势数据中手势坐标的数目,判断该手势坐标的数目是否超过设定数量阈值。若是,则判定该手势数据有效。可以预先为各个黑屏手势设定绘制黑屏手势轨迹的最少手势坐标数量。Wherein, if the application layer reads the preset end bit of the gesture data, it is considered that the gesture data is read successfully. If the number of gesture coordinates read by the application layer exceeds the set number threshold, and the black screen gesture corresponding to the gesture type is an enabled black screen gesture, the black screen gesture data is considered valid. Exemplarily, after the gesture data is read by the preset node, the application layer compares the gesture data with the preset end bit, and if the gesture data includes the preset end bit, it determines that the gesture data is read successfully, and stops Read data from preset nodes. The application layer queries the gesture type of the enabled black screen gesture according to the gesture type included in the gesture data. If the black screen gesture corresponding to the gesture type has been enabled, count the number of gesture coordinates in the read gesture data, and determine the gesture coordinate. Whether the number exceeds the set number threshold. If yes, it is determined that the gesture data is valid. A minimum number of gesture coordinates for drawing a black screen gesture track may be set in advance for each black screen gesture.

在该手势数据读取成功且有效时,应用层执行所述手势数据对应的黑屏手势功能。其中,黑屏手势功能包括打开某个应用程序、执行唤醒移动终端或切歌等功能。示例性的,在该手势数据读取成功且有效时,确定该黑屏手势对应的手势轨迹,并将该手势轨迹显示于触控显示屏上。根据手势类型与黑屏手势功能的对应关系,确定待执行的操作。例如,若根据该手势类型确定待执行的操作为打开照相机,则在该手势轨迹在触控显示屏上显示设定时间后,打开照相机,并将显示界面切换至照相机界面。When the gesture data is read successfully and is valid, the application layer executes the black screen gesture function corresponding to the gesture data. Among them, the black screen gesture function includes opening a certain application program, performing functions such as waking up the mobile terminal or cutting songs. Exemplarily, when the gesture data is read successfully and is valid, the gesture track corresponding to the black screen gesture is determined, and the gesture track is displayed on the touch screen. According to the corresponding relationship between the gesture type and the black screen gesture function, the operation to be performed is determined. For example, if it is determined according to the gesture type that the operation to be performed is to turn on the camera, then turn on the camera and switch the display interface to the camera interface after the gesture track is displayed on the touch screen for a set time.

本实施例的技术方案,通过并行执行上报黑屏手势事件与读取手势数据的操作;并在驱动层读取手势数据的过程中若应用层接收到该黑屏手势事件,则应用层按照设定周期检测该手势数据是否准备完成;在准备完成时,应用层由该预设节点内读取手势数据,并在读取成功时,判断手势数据是否有效,若有效,则执行手势数据对应的黑屏手势功能。上述技术方案通过改变黑屏手势功能的控制逻辑,可以有效地提升黑屏手势的响应速度,缩短由检测到黑屏手势至打开该黑屏手势对应的应用程序所需的时间。In the technical solution of this embodiment, the operations of reporting a black screen gesture event and reading gesture data are executed in parallel; Detect whether the gesture data is ready; when the preparation is complete, the application layer reads the gesture data from the preset node, and when the reading is successful, judges whether the gesture data is valid, and if it is valid, executes the black screen gesture corresponding to the gesture data Function. The above technical solution can effectively improve the response speed of the black screen gesture by changing the control logic of the black screen gesture function, and shorten the time required from detecting the black screen gesture to opening the application program corresponding to the black screen gesture.

图3a是本发明实施例提供的另一种黑屏手势控制方法的流程图。如图3a所示,该方法包括:Fig. 3a is a flow chart of another black screen gesture control method provided by an embodiment of the present invention. As shown in Figure 3a, the method includes:

步骤301、在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内。Step 301. After waking up the system based on the black screen gesture, when the driver layer reports the black screen gesture event, execute the operation of reading the gesture data of the black screen gesture in parallel, and store the gesture data in a preset node of the driver layer.

步骤302、应用层在接收到所述黑屏手势事件时,查询驱动层中标识所述预设节点的数据状态的标识位。Step 302, when the application layer receives the black screen gesture event, query the identification bit in the driver layer that identifies the data state of the preset node.

在驱动层读取该黑屏手势的手势数据,并存储至驱动层的预设节点的过程中,若应用层接收到黑屏手势事件,则并行执行查询该预设节点内的手势数据是否包括预设结束位的操作。即在黑屏手势的手势数据写入预设节点的过程中,应用层实时检测该预设节点内的手势数据是否包括预设结束位,可以有效的避免从大量的数据中查找预设结束位而延长黑屏手势的响应时间的情况发生。When the driver layer reads the gesture data of the black screen gesture and stores it in the preset node of the driver layer, if the application layer receives a black screen gesture event, it will execute in parallel to query whether the gesture data in the preset node includes the preset end bit operation. That is, in the process of writing the gesture data of the black screen gesture to the preset node, the application layer detects in real time whether the gesture data in the preset node includes the preset end bit, which can effectively avoid finding the preset end bit from a large amount of data. A condition that prolongs the response time of screen-to-black gestures occurs.

步骤303、根据标识位的取值判断所述手势数据是否准备完成,若是,则执行步骤306,否则,执行步骤304。Step 303 , judging whether the gesture data is ready according to the value of the flag, if yes, execute step 306 , otherwise, execute step 304 .

应用层按照设定的周期读取驱动层中的标识位的取值,并将该取值与代表该预设节点内的手势数据准备完成的数值进行匹配。若该取值等于该代表手势数据准备完成的数值,则判定该预设节点内的手势数据准备完成,执行步骤306;否则,判定该预设节点内的手势数据未准备完成,执行步骤304。The application layer reads the value of the identification bit in the driver layer according to the set period, and matches the value with the value representing the completion of the gesture data preparation in the preset node. If the value is equal to the value representing the completion of gesture data preparation, it is determined that the gesture data in the preset node has been prepared, and step 306 is performed; otherwise, it is determined that the gesture data in the preset node is not ready, and step 304 is performed.

步骤304、通过计时器进行计时。Step 304, timing by a timer.

在该预设节点内的手势数据未准备完成时,启动计时器定时设定时间长度。其中,该设定时间长度等于应用层读取驱动层中标识位的第一周期。When the gesture data in the preset node is not ready, the timer is started to set the time length. Wherein, the set time length is equal to the first period for the application layer to read the identification bit in the driver layer.

步骤305、判断计时器的数值是否达到设定时间长度,若是,则执行步骤302,否则,执行步骤304。Step 305 , judging whether the value of the timer reaches the set time length, if yes, execute step 302 , otherwise, execute step 304 .

按照第二周期读取该计时器的读数,将该读取与设定时间长度比较,若大于或等于该设定时间长度,则执行步骤302;否则,返回执行步骤304;其中,第二周期小于第一周期。Read the reading of the timer according to the second cycle, compare the reading with the set time length, if it is greater than or equal to the set time length, then execute step 302; otherwise, return to execute step 304; wherein, the second cycle less than the first cycle.

步骤306、应用层由所述预设节点内读取所述手势数据。Step 306, the application layer reads the gesture data from the preset node.

步骤307、判断所述手势数据是否读取成功且有效,若是,则执行步骤308,否则,执行步骤306。Step 307 , judging whether the gesture data is read successfully and valid, if yes, execute step 308 , otherwise, execute step 306 .

步骤308、应用层通过至少一个开启线程,在后台开启所述手势类型对应的应用程序。Step 308, the application layer starts the application program corresponding to the gesture type in the background through at least one start thread.

其中,开启线程用于执行在后台打开手势类型对应的应用程序的操作。在安卓系统中,应用程序是由Activity组成的,因此,应用程序的启动过程实际上就是应用程序中的默认Activity的启动过程,包括Activity类的调用及对象的实例化等。在后台开启该手势类型对应的应用程序后,缓存应用程序界面对应的画面帧,暂不绘制应用程序界面至触控显示屏。Wherein, the opening thread is used to execute the operation of opening the application program corresponding to the gesture type in the background. In the Android system, the application program is composed of Activities, so the startup process of the application program is actually the startup process of the default Activity in the application program, including the call of the Activity class and the instantiation of the object. After the application program corresponding to the gesture type is started in the background, the screen frame corresponding to the application program interface is cached, and the application program interface is not drawn to the touch display screen temporarily.

预先建立手势类型与应用程序或手机功能的关联关系,可以以设定白名单的方式存储手势类型与应用程序(如进程号或安装包名)或手机功能(如手机唤醒、会议模式或标准模式等工作模式切换)的关联关系。可以理解的是建立手势类型与应用程序的关联关系的方式有很多种,本发明实施例不作限定。例如,可以在移动终端出厂前为移动终端的设定功能或设定应用设置快捷启动功能,通过输入设定手势可以在熄屏状态下直接执行该设定功能或打开该设定应用。以手电筒为例,在移动终端出厂前预先设置手电筒具有快捷启动功能,通过输入黑屏手势“O”可以在熄屏状态下打开手电筒。又如,移动终端提供黑屏手势配置功能,在用户开启黑屏手势功能时,提示用户选择需要设置快捷启动功能的应用程序,并输入或选择该应用程序对应的黑屏手势,从而建立手势类型与应用程序的关联关系。The relationship between gesture types and applications or mobile phone functions is established in advance. Gesture types and applications (such as process numbers or installation package names) or mobile phone functions (such as mobile phone wake-up, conference mode or standard mode) can be stored in a white list. and other work mode switch) association relationship. It can be understood that there are many ways to establish the association relationship between the gesture type and the application program, which is not limited in this embodiment of the present invention. For example, a quick launch function can be set for the setting function or setting application of the mobile terminal before leaving the factory, and the setting function can be directly executed or the setting application can be opened in the off-screen state by inputting a setting gesture. Taking the flashlight as an example, the flashlight is preset to have a quick start function before the mobile terminal leaves the factory, and the flashlight can be turned on when the screen is off by entering the black screen gesture "O". As another example, the mobile terminal provides a black screen gesture configuration function. When the user enables the black screen gesture function, the user is prompted to select the application program that needs to be set with the quick start function, and enter or select the corresponding black screen gesture of the application program, so as to establish the gesture type and application program. relationship.

应用层在接收到黑屏手势事件时,通过开启线程查询预先设定的白名单,确定与该手势类型对应的应用程序,在后台开启该应用程序。When the application layer receives a black screen gesture event, it starts a thread to query the preset white list, determines the application corresponding to the gesture type, and starts the application in the background.

步骤309、应用层通过至少一个绘制线程,与所述开启线程并行执行确定所述手势类型对应的手势轨迹,并绘制所述手势轨迹至触控显示屏。Step 309 , the application layer determines the gesture track corresponding to the gesture type through at least one drawing thread in parallel with the start thread, and draws the gesture track to the touch screen.

其中,绘制线程用于与开启线程并行执行确定该手势类型对应的手势轨迹,并显示该手势轨迹至触控显示屏的操作。可以由一个绘制线程单独完成手势轨迹的绘制,还可以是由两个或以上的绘制线程分别绘制手势轨迹片段。在各个绘制线程完成自己负责绘制的手势轨迹片段后,将已绘制完成的手势轨迹片段拼接为完整的手势轨迹,从而,可以有效地提高手势轨迹的绘制效率。Wherein, the drawing thread is used to execute the operations of determining the gesture track corresponding to the gesture type and displaying the gesture track to the touch screen in parallel with the opening thread. The drawing of the gesture trajectory can be completed by one drawing thread alone, or two or more drawing threads can respectively draw the gesture trajectory fragments. After each drawing thread completes the gesture track segments it is responsible for drawing, the drawn gesture track segments are spliced into a complete gesture track, so that the drawing efficiency of the gesture track can be effectively improved.

示例性的,应用层在通过开启线程执行在后台打开该手势类型对应的应用程序的同时,通过另外的至少一个绘制线程并行执行确定该手势类型对应的手势轨迹的操作。确定手势类型对应的手势轨迹的方式有很多种,例如,绘制线程从所述手势数据包括的坐标信息中提取满足所述手势类型的预设采样规则的采样点,根据所述采样点绘制所述手势类型对应的手势轨迹,并将包含采样点和采样点之间连线的画面帧发送至帧缓存(FrameBuffer),以动画的形式将该手势轨迹展示在触控显示屏上,以模拟该黑屏手势的绘制过程。Exemplarily, the application layer executes the operation of determining the gesture trajectory corresponding to the gesture type in parallel through at least one other drawing thread while opening the application program corresponding to the gesture type in the background by starting the thread. There are many ways to determine the gesture trajectory corresponding to the gesture type. For example, the drawing thread extracts sampling points satisfying the preset sampling rules of the gesture type from the coordinate information included in the gesture data, and draws the The gesture track corresponding to the gesture type, and send the picture frame including the sampling point and the connection between the sampling point to the frame buffer (FrameBuffer), and display the gesture track on the touch screen in the form of animation to simulate the black screen The gesture drawing process.

可选的,预设采样规则可以是每隔设定数目的手势坐标采集一个手势坐标作为采样点。可以对该采样点作曲线拟合得到用户输入的黑屏手势的手势类型对应的手势轨迹。可以以该手势轨迹的第一采样点开始,每隔设定时间间隔绘制设定数目的像素点,从而,以动画的形式展示手势轨迹的绘制过程。其中,为了保证较高的黑屏手势响应速度,该设定时间间隔为人眼能分辨图像变化的最小时间间隔,当然该时间间隔可以根据需要设定。曲线拟合是一种数据处理方式,即用连续曲线近似地刻画或比拟平面上离散点所表示的坐标之间的函数关系。Optionally, the preset sampling rule may be to collect a gesture coordinate every set number of gesture coordinates as a sampling point. Curve fitting may be performed on the sampling points to obtain a gesture trajectory corresponding to the gesture type of the black screen gesture input by the user. Starting from the first sampling point of the gesture track, a set number of pixel points can be drawn every set time interval, so that the drawing process of the gesture track can be shown in the form of animation. Wherein, in order to ensure a higher response speed of the black screen gesture, the set time interval is the minimum time interval at which human eyes can distinguish image changes, and of course the time interval can be set as required. Curve fitting is a data processing method, that is, using a continuous curve to approximately describe or compare the functional relationship between the coordinates represented by discrete points on the plane.

图3b是本发明实施例提供的一种黑屏手势轨迹的显示示意图。如图3b所示,以手势类型“W”的第一采样点301为起点,每隔设定时间间隔绘制3个采样点之间的手势轨迹。在第一次绘制时,由第一采样点301开始绘制3个采样点之间的手势轨迹,然后间隔设定时间长度进行第二次绘制。此时,由第四采样点302开始绘制3个采样点之间的手势轨迹,然后间隔设定时间长度进行第三次绘制。此时,由第七采样点303开始绘制3个采样点之间的手势轨迹,依此规则绘制手势轨迹直至绘出最后一个采样点304结束绘制,从而,实现在触控显示屏上以动画的形式显示所述手势轨迹,改善了静态显示手势轨迹的单调性问题,增加了趣味性。Fig. 3b is a schematic display diagram of a black screen gesture track provided by an embodiment of the present invention. As shown in FIG. 3 b , starting from the first sampling point 301 of the gesture type "W", the gesture track among the three sampling points is drawn every set time interval. When drawing for the first time, start from the first sampling point 301 to draw the gesture track between the 3 sampling points, and then perform the second drawing at a set time interval. At this time, the gesture trajectory between the three sampling points is drawn from the fourth sampling point 302, and then the third drawing is performed at a set time interval. At this time, the gesture track between the 3 sampling points is drawn from the seventh sampling point 303, and the gesture track is drawn according to this rule until the last sampling point 304 is drawn to end the drawing, thereby realizing animation on the touch display screen. Displaying the gesture track in a form improves the monotony problem of statically displaying the gesture track and increases interest.

步骤310、判断是否满足预设的应用程序界面的显示条件,若是,则执行步骤311,否则,执行步骤312。Step 310 , judging whether the preset display condition of the application program interface is satisfied, if yes, execute step 311 , otherwise, execute step 312 .

预先设置由手势轨迹显示界面切换至应用程序的显示界面的显示条件,该显示条件可以根据实际需要设定为该手势类型对应的应用程序于后台打开成功且触控显示屏上显示的手势轨迹绘制至最后一个采样点。Pre-set the display conditions for switching from the gesture track display interface to the display interface of the application program. The display conditions can be set as the gesture track drawing displayed on the touch screen when the application program corresponding to the gesture type is successfully opened in the background according to actual needs. to the last sampling point.

应用层在检测到用户输入的黑屏手势对应的应用程序于后台开启完成时,判断触控显示屏上的手势轨迹是否绘制至最后一个采样点,若是,则执行步骤311,否则,执行步骤312。可选的,若触控显示屏上的手势轨迹绘制至最后一个采样点,但用户输入的黑屏手势对应的应用程序未开启完成,则在触控显示屏上显示完成的手势轨迹直至检测到该应用程序在后台已开启完成,再执行步骤311。When the application layer detects that the application program corresponding to the black screen gesture input by the user has been opened in the background, it judges whether the gesture track on the touch screen is drawn to the last sampling point, and if so, executes step 311; otherwise, executes step 312. Optionally, if the gesture track on the touch screen is drawn to the last sampling point, but the application corresponding to the black screen gesture input by the user has not been started, the completed gesture track will be displayed on the touch screen until it is detected. After the application program has been started in the background, step 311 is executed.

步骤311、应用层绘制所述应用程序对应的界面至所述触控显示屏,以在所述触控显示屏上显示所述应用程序的界面。Step 311 , the application layer draws the interface corresponding to the application program to the touch display screen, so as to display the interface of the application program on the touch display screen.

从缓存有应用程序界面对应的画面帧的预设存储区域读取数据,并以设定的屏幕刷新率将该应用程序界面刷新至触控显示屏,实现由手势轨迹界面直接切换至应用程序界面。Read data from the preset storage area where the screen frame corresponding to the application program interface is cached, and refresh the application program interface to the touch screen at the set screen refresh rate, so as to realize direct switching from the gesture track interface to the application program interface .

步骤312、在触控显示屏上继续显示所述手势轨迹。Step 312, continue to display the gesture track on the touch screen.

本实施例的技术方案,通过在开启线程执行打开该手势类型对应的应用程序的同时,通过绘制线程从该手势数据的坐标信息中提取若干个满足预设采样规则的采样点,根据该采样点绘制手势轨迹,以动画的形式在触控显示屏上显示该手势轨迹;在满足针对应用程序界面的预设显示条件时,由手势轨迹显示界面切换至应用程序界面。通过采用上述技术方案,可以在执行后台打开应用程序的同时,迅速地确定用户输入的黑屏手势的手势轨迹,并将该手势轨迹生动地绘制在触控显示屏上,避免用户直观地感觉黑屏手势功能反应不灵敏的情况发生,从而进一步提升黑屏手势的响应速度。In the technical solution of this embodiment, while starting the thread to execute the application program corresponding to the gesture type, extracting several sampling points satisfying the preset sampling rules from the coordinate information of the gesture data through the drawing thread, according to the sampling point Draw the gesture track, and display the gesture track on the touch screen in the form of animation; when the preset display conditions for the application program interface are met, switch from the gesture track display interface to the application program interface. By adopting the above technical solution, it is possible to quickly determine the gesture track of the black screen gesture input by the user while opening the application program in the background, and draw the gesture track vividly on the touch display screen, so as to avoid the user intuitively feeling the black screen gesture The situation where the function is not responsive occurs, thereby further improving the response speed of the black screen gesture.

图4a是本发明实施例提供的另一种黑屏手势控制方法的流程图。如图4a所示,该方法包括:Fig. 4a is a flow chart of another black screen gesture control method provided by an embodiment of the present invention. As shown in Figure 4a, the method includes:

步骤401、触摸芯片在检测到黑屏手势时,触发内核层唤醒系统。Step 401, when the touch chip detects a black screen gesture, trigger the kernel layer to wake up the system.

步骤402、驱动层通过框架层向应用层上报所述黑屏手势对应的黑屏手势事件。Step 402, the driver layer reports the black screen gesture event corresponding to the black screen gesture to the application layer through the framework layer.

步骤403、驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内。Step 403 , when the driver layer reports the black screen gesture event, perform an operation of reading the gesture data of the black screen gesture in parallel, and store the gesture data in a preset node of the driver layer.

步骤404、应用层在接收到所述黑屏手势事件时,查询驱动层中标识所述预设节点的数据状态的标识位。Step 404 , when the application layer receives the black screen gesture event, query the identification bit in the driver layer that identifies the data state of the preset node.

步骤405、根据标识位的取值判断所述手势数据是否准备完成,若是,则执行步骤408,否则,执行步骤406。Step 405 , judging whether the gesture data is ready according to the value of the flag, if yes, execute step 408 , otherwise, execute step 406 .

步骤406、通过计时器进行计时。Step 406, timing by a timer.

步骤407、判断计时器的数值是否达到设定时间长度。Step 407, judging whether the value of the timer reaches the set time length.

步骤408、应用层由所述预设节点内读取所述手势数据。Step 408, the application layer reads the gesture data from the preset node.

步骤409、判断所述手势数据是否读取成功且有效,若是,则执行步骤410,否则,执行步骤408。Step 409 , judging whether the gesture data is read successfully and valid, if yes, execute step 410 , otherwise, execute step 408 .

步骤410、应用层确定所述手势类型对应的手势轨迹,并绘制手势轨迹至触控显示屏。Step 410, the application layer determines the gesture track corresponding to the gesture type, and draws the gesture track to the touch screen.

查询预先配置的标准图形库,确定与该手势类型匹配的标准图形。其中,该标准图形库可以设置于移动终端中,以便于应用层查询,因其不依赖于互联网而具有较快的查询速度。并且,该标准图形库可以在移动终端联网后,基于远程服务器推送的更新消息进行更新。可选的,该标准图形库还可以存储于远程服务器,以避免占用移动终端的存储空间。Query the pre-configured standard graphics library to determine the standard graphics that match the gesture type. Wherein, the standard graphics library can be set in the mobile terminal to facilitate the query of the application layer, and has a relatively fast query speed because it does not depend on the Internet. Moreover, the standard graphics library can be updated based on the update message pushed by the remote server after the mobile terminal is connected to the Internet. Optionally, the standard graphics library can also be stored in a remote server, so as to avoid occupying the storage space of the mobile terminal.

示例性的,用户输入黑屏手势的手势类型为“W”,根据该手势类型查询该标准图形库,确定设定显示效果的“W”的标准图形。其中,设定显示效果可以是系统默认的显示效果或者用户预先设定的显示效果,包括字体颜色、字形、字号等等。Exemplarily, the gesture type of the black screen gesture input by the user is "W", the standard graphic library is queried according to the gesture type, and the standard graphic of "W" for setting the display effect is determined. Wherein, the set display effect may be the default display effect of the system or the display effect preset by the user, including font color, font shape, font size and so on.

绘制线程可以根据手势类型查询标准图形库得到该黑屏手势对应的标准图形,而不需要再获取手势坐标,进行手势轨迹绘制,大大减少了数据获取量。The drawing thread can query the standard graphics library according to the gesture type to obtain the standard graphics corresponding to the black screen gesture, without the need to acquire gesture coordinates and draw the gesture trajectory, which greatly reduces the amount of data acquisition.

应用层在预先配置的标准图形库中查找到与该手势类型匹配的标准图形,绘制该标准图形的图像,并将图像数据存储于触控显示屏的帧缓存内,按照设定的屏幕刷新率将标准图形的图像刷新至触控显示屏,以在该触控显示屏上显示该标准图形的图像。The application layer finds the standard graphics that match the gesture type in the pre-configured standard graphics library, draws the image of the standard graphics, and stores the image data in the frame buffer of the touch screen, according to the set screen refresh rate The image of the standard graphic is refreshed to the touch screen to display the image of the standard graphic on the touch screen.

图4b是本发明实施例提供的另一种黑屏手势轨迹的显示示意图。如图4b所示,用户在黑屏状态下输入黑屏手势“W”,即可在触控显示屏上显示该手势类型对应的标准图形。Fig. 4b is a schematic display diagram of another black screen gesture trajectory provided by an embodiment of the present invention. As shown in FIG. 4b, when the user inputs a black screen gesture "W" in a black screen state, a standard graphic corresponding to the gesture type can be displayed on the touch screen.

步骤411、应用层开启所述手势类型对应的应用程序,并在所述触控显示屏上显示所述应用程序的界面。Step 411, the application layer starts the application program corresponding to the gesture type, and displays the interface of the application program on the touch display screen.

从缓存有应用程序界面对应的画面帧的预设存储区域读取数据,并传输至帧缓存,以按照设定的屏幕刷新率将该应用程序界面刷新至触控显示屏,将显示画面由手势轨迹直接切换至应用程序界面。Read data from the preset storage area where the screen frame corresponding to the application program interface is cached, and transfer it to the frame buffer, so as to refresh the application program interface to the touch display screen according to the set screen refresh rate, and the display screen will be displayed by gestures Tracks switch directly to the application interface.

本实施例的技术方案,通过查询预设标准图形库确定该手势类型对应的标准图形,绘制该标准图形的图像至触控显示屏;然后,开启所述手势类型对应的应用程序,并在所述触控显示屏上显示所述应用程序的界面。通过采用上述技术方案,通过查找预设标准图形库的方式,迅速地确定与用户输入的黑屏手势的手势轨迹对应的标准图形,并将该标准图形绘制在触控显示屏上,避免用户直观地感觉黑屏手势功能反应不灵敏的情况发生,从而进一步提升黑屏手势的响应速度。In the technical solution of this embodiment, the standard graphic corresponding to the gesture type is determined by querying the preset standard graphic library, and the image of the standard graphic is drawn to the touch screen; then, the application program corresponding to the gesture type is opened, and in the The interface of the application program is displayed on the touch screen. By adopting the above technical solution, by searching the preset standard graphics library, the standard graphics corresponding to the gesture trajectory of the black screen gesture input by the user is quickly determined, and the standard graphics are drawn on the touch display screen, preventing the user from intuitively It feels that the response of the black screen gesture function is not sensitive, so as to further improve the response speed of the black screen gesture.

图5是本发明实施例提供的一种黑屏手势控制装置的结构示意图。如图5所示,该装置包括:Fig. 5 is a schematic structural diagram of a black screen gesture control device provided by an embodiment of the present invention. As shown in Figure 5, the device includes:

第一数据读取模块510,用于在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内;The first data reading module 510 is configured to execute the operation of reading the gesture data of the black screen gesture in parallel when the driver layer reports the black screen gesture event after waking up the system based on the black screen gesture, and store the gesture data in the driver In the default node of the layer;

数据检测模块520,用于应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成;The data detection module 520 is used to detect whether the gesture data in the preset node is ready when the application layer receives the black screen gesture event;

第二数据读取模块530,用于在准备完成时,应用层由所述预设节点内读取所述手势数据;The second data reading module 530 is used for the application layer to read the gesture data from the preset node when the preparation is completed;

功能执行模块540,用于应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。The function execution module 540 is configured for the application layer to execute the black screen gesture function corresponding to the gesture data when the gesture data is read successfully and valid.

本实施例的技术方案提供一种黑屏手势控制装置,通过改变黑屏手势功能的控制逻辑,可以有效地提升黑屏手势的响应速度,缩短由检测到黑屏手势至打开该黑屏手势对应的应用程序所需的时间。The technical solution of this embodiment provides a black screen gesture control device. By changing the control logic of the black screen gesture function, the response speed of the black screen gesture can be effectively improved, and the time required to open the application program corresponding to the black screen gesture can be shortened. time.

可选的,在驱动层基于黑屏手势唤醒系统之前,还包括:Optionally, before the driver layer wakes up the system based on the black screen gesture, it also includes:

触摸芯片在检测到黑屏手势时,触发内核层唤醒系统;When the touch chip detects a black screen gesture, it triggers the kernel layer to wake up the system;

所述上报黑屏手势事件,包括:驱动层通过框架层向应用层上报所述黑屏手势对应的黑屏手势事件。The reporting of the black screen gesture event includes: the driver layer reports the black screen gesture event corresponding to the black screen gesture to the application layer through the framework layer.

可选的,所述并行执行读取所述黑屏手势对应的手势数据的操作,包括:Optionally, the parallel execution of reading the gesture data corresponding to the black screen gesture includes:

所述驱动层通过中断处理函数,并行执行从所述触摸芯片中读取所述黑屏手势对应的手势数据的操作。The driver layer executes in parallel the operation of reading gesture data corresponding to the black screen gesture from the touch chip through an interrupt processing function.

可选的,应用层由所述黑屏手势事件触发执行检测所述预设节点内的手势数据是否准备完成,包括:Optionally, the application layer is triggered by the black screen gesture event to detect whether the gesture data in the preset node is ready, including:

应用层在接收到所述黑屏手势事件时,查询驱动层中标识所述预设节点的数据状态的标识位;When the application layer receives the black screen gesture event, query the identification bit of the data state of the preset node in the driver layer;

应用层根据所述标识位的取值判断所述手势数据是否准备完成;The application layer judges whether the gesture data is ready according to the value of the identification bit;

若是,则应用层执行从所述预设节点内提取所述手势数据的操作;If so, the application layer performs an operation of extracting the gesture data from the preset node;

否则,在等待设定时间长度后,应用层返回执行查询所述标识位的操作。Otherwise, after waiting for a set period of time, the application layer returns to perform the operation of querying the identification bit.

可选的,在应用层由所述预设节点内读取所述手势数据之后,还包括:Optionally, after the application layer reads the gesture data from the preset node, it further includes:

应用层判断由所述预设节点内读取的手势数据是否包括所述手势数据的预设结束位,若是,则确定所述手势数据读取成功。The application layer judges whether the gesture data read from the preset node includes a preset end bit of the gesture data, and if so, determines that the gesture data is read successfully.

可选的,执行所述手势数据对应的黑屏手势功能,包括:Optionally, executing a black screen gesture function corresponding to the gesture data includes:

应用层确定所述手势类型对应的手势轨迹,并绘制手势轨迹至触控显示屏;The application layer determines the gesture trajectory corresponding to the gesture type, and draws the gesture trajectory to the touch display screen;

应用层开启所述手势类型对应的应用程序,并在所述触控显示屏上显示所述应用程序的界面。The application layer starts the application program corresponding to the gesture type, and displays the interface of the application program on the touch display screen.

可选的,执行所述手势数据对应的黑屏手势功能,包括:Optionally, executing a black screen gesture function corresponding to the gesture data includes:

应用层通过至少一个开启线程,在后台开启所述手势类型对应的应用程序;The application layer opens the application program corresponding to the gesture type in the background through at least one opening thread;

应用层通过至少一个绘制线程,与所述开启线程并行执行确定所述手势类型对应的手势轨迹,并绘制所述手势轨迹至触控显示屏的操作;The application layer determines the gesture track corresponding to the gesture type in parallel with the opening thread through at least one drawing thread, and draws the gesture track to the touch display screen;

在满足预设的显示条件时,应用层绘制所述应用程序对应的界面至所述触控显示屏,以在所述触控显示屏上显示所述应用程序的界面。When the preset display condition is satisfied, the application layer draws the interface corresponding to the application program to the touch display screen, so as to display the interface of the application program on the touch display screen.

本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种黑屏手势控制方法,该方法包括:An embodiment of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a black screen gesture control method when executed by a computer processor, the method comprising:

在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内;After waking up the system based on the black screen gesture, when the driver layer reports the black screen gesture event, perform the operation of reading the gesture data of the black screen gesture in parallel, and store the gesture data in a preset node of the driver layer;

应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成;When the application layer receives the black screen gesture event, it detects whether the gesture data in the preset node is ready;

在准备完成时,应用层由所述预设节点内读取所述手势数据;When the preparation is completed, the application layer reads the gesture data from the preset node;

应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。The application layer executes a black screen gesture function corresponding to the gesture data when the gesture data is read successfully and is valid.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, 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 connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.

当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的黑屏手势控制方法的操作,还可以执行本发明任意实施例所提供的黑屏手势控制方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by an embodiment of the present invention, the computer-executable instructions are not limited to the operation of the black screen gesture control method as described above, and can also execute the black screen provided by any embodiment of the present invention. Related operations in gesture control methods.

本发明实施例提供了一种移动终端,该移动终端中可集成本发明实施例提供的黑屏手势控制装置。图6为本发明实施例提供的一种移动终端的结构示意图。如图6所示,该移动终端可以包括:壳体(图中未示出)、存储器601、中央处理器(Central Processing Unit,CPU)602(又称处理器,以下简称CPU)、电路板(图中未示出)、触控显示屏612和电源电路(图中未示出)。所述触控显示屏612,用于将用户操作转换成电信号输入至所述处理器,并显示可视输出信号;所述电路板安置在所述触控显示屏612与所述壳体围成的空间内部;所述CPU602和所述存储器601设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器601,用于存储计算机程序;所述CPU602读取并执行所述存储器601中存储的计算机程序。所述CPU602在执行所述计算机程序时实现以下步骤:在基于黑屏手势唤醒系统后,驱动层在上报黑屏手势事件时,并行执行读取所述黑屏手势的手势数据的操作,并将所述手势数据存储在驱动层的预设节点内;应用层在接收到所述黑屏手势事件时,检测所述预设节点内的手势数据是否准备完成;在准备完成时,应用层由所述预设节点内读取所述手势数据;应用层在所述手势数据读取成功且有效时,执行所述手势数据对应的黑屏手势功能。An embodiment of the present invention provides a mobile terminal, in which the black screen gesture control device provided by the embodiment of the present invention can be integrated. FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 6, the mobile terminal may include: a housing (not shown in the figure), a memory 601, a central processing unit (Central Processing Unit, CPU) 602 (also called a processor, hereinafter referred to as CPU), a circuit board ( not shown in the figure), touch screen 612 and power supply circuit (not shown in the figure). The touch display screen 612 is used to convert user operations into electrical signals and input them to the processor, and display visible output signals; the circuit board is arranged between the touch display screen 612 and the casing inside the formed space; the CPU 602 and the memory 601 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal; the memory 601 is used to store computer programs ; The CPU 602 reads and executes the computer program stored in the memory 601 . The CPU 602 implements the following steps when executing the computer program: after waking up the system based on the black screen gesture, when the driver layer reports the black screen gesture event, executes in parallel the operation of reading the gesture data of the black screen gesture, and transfers the gesture The data is stored in the preset node of the driver layer; when the application layer receives the black screen gesture event, it detects whether the gesture data in the preset node is ready; when the preparation is completed, the application layer uses the preset node The gesture data is read within; the application layer executes the black screen gesture function corresponding to the gesture data when the gesture data is read successfully and is valid.

所述移动终端还包括:外设接口603、RF(Radio Frequency,射频)电路605、音频电路606、扬声器611、电源管理芯片608、输入/输出(I/O)子系统609、其他输入/控制设备610以及外部端口604,这些部件通过一个或多个通信总线或信号线607来通信。The mobile terminal also includes: peripheral interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio circuit 606, speaker 611, power management chip 608, input/output (I/O) subsystem 609, other input/control Device 610 and external port 604 , these components communicate via one or more communication buses or signal lines 607 .

应该理解的是,图示移动终端600仅仅是移动终端的一个范例,并且移动终端600可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 600 is only an example of a mobile terminal, and the mobile terminal 600 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may 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 integrated with the black screen gesture control device provided in this embodiment will be described in detail below, and the mobile terminal is taken as an example.

存储器601,所述存储器601可以被CPU602、外设接口603等访问,所述存储器601可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 601, the memory 601 can be accessed by the CPU 602, the peripheral interface 603, etc., the memory 601 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口603,所述外设接口603可以将设备的输入和输出外设连接到CPU602和存储器601。Peripheral interface 603 , which can connect the input and output peripherals of the device to CPU 602 and memory 601 .

I/O子系统609,所述I/O子系统609可以将设备上的输入输出外设,例如触控显示屏612和其他输入/控制设备610,连接到外设接口603。I/O子系统609可以包括显示控制器6091和用于控制其他输入/控制设备610的一个或多个输入控制器6092。其中,一个或多个输入控制器6092从其他输入/控制设备610接收电信号或者向其他输入/控制设备610发送电信号,其他输入/控制设备610可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器6092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 609 , the I/O subsystem 609 can connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610 , to the peripheral interface 603 . I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610 . Among them, one or more input controllers 6092 receive electrical signals from or send electrical signals to other input/control devices 610, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 6092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触控显示屏612,所述触控显示屏612是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch display screen 612, the touch display screen 612 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like.

I/O子系统609中的显示控制器6091从触控显示屏612接收电信号或者向触控显示屏612发送电信号。触控显示屏612检测触控显示屏上的接触,显示控制器6091将检测到的接触转换为与显示在触控显示屏612上的用户界面对象的交互,即实现人机交互,显示在触控显示屏612上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触控显示屏612形成的触摸敏感表面的延伸。The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch display 612 or sends electrical signals to the touch display 612 . The touch display screen 612 detects the contact on the touch display screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch display screen 612, that is, realizes human-computer interaction, and displays it on the touch screen. The user interface objects on the control display 612 may be icons for running games, icons for networking to corresponding networks, and the like. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by the touch display 612 .

RF电路605,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路605接收并发送RF信号,RF信号也称为电磁信号,RF电路605将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路605可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 605 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 605 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 605 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 (Subscriber Identity Module, SIM) and so on.

音频电路606,主要用于从外设接口603接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器611。The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603 , convert the audio data into electrical signals, and send the electrical signals to the speaker 611 .

扬声器611,用于将手机通过RF电路605从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 611 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 605 into sound and play the sound to the user.

电源管理芯片608,用于为CPU602、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 608 is used for power supply and power management for the hardware connected to the CPU 602 , the I/O subsystem and the peripheral interface.

本发明实施例提供的移动终端,可以有效地提升黑屏手势的响应速度,缩短由检测到黑屏手势至打开该黑屏手势对应的应用程序所需的时间。The mobile terminal provided by the embodiment of the present invention can effectively improve the response speed of the black screen gesture, and shorten the time required from detecting the black screen gesture to opening the application program corresponding to the black screen gesture.

上述实施例中提供的黑屏手势控制装置、存储介质及移动终端可执行本发明任意实施例所提供的黑屏手势控制方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的黑屏手势控制方法。The black screen gesture control device, storage medium, and mobile terminal provided in the above embodiments can execute the black screen gesture control method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the black screen gesture control method provided in any embodiment of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

  1. A kind of 1. blank screen gestural control method, it is characterised in that including:
    After based on blank screen gesture wake-up system, for driving layer when reporting blank screen gesture event, parallel perform reads the blank screen The operation of the gesture data of gesture, and the gesture data is stored in the default node of driving layer;
    When receiving the blank screen gesture event, whether the gesture data detected in the default node has prepared application layer Into;
    When being ready to complete, application layer by reading the gesture data in the default node, wherein, the gesture data includes Gesture-type;
    Application layer the gesture data read successfully and it is effective when, perform blank screen gesture function corresponding to the gesture data.
  2. 2. according to the method for claim 1, it is characterised in that before driving layer is based on blank screen gesture wake-up system, also Including:
    Chip is touched when detecting blank screen gesture, triggering inner nuclear layer wakes up system;
    It is described to report blank screen gesture event, including:Driving layer is reported corresponding to the blank screen gesture by ccf layer to application layer Blank screen gesture event.
  3. 3. according to the method for claim 2, it is characterised in that parallel perform reads hand corresponding to the blank screen gesture The operation of gesture data, including:
    The driving layer is read corresponding to the blank screen gesture by interrupt processing function, parallel perform from the touch chip The operation of gesture data.
  4. 4. according to the method for claim 1, it is characterised in that application layer triggers perform detection by the blank screen gesture event Whether the gesture data in the default node is ready to complete, including:
    Application layer identifies the data mode of the default node when receiving the blank screen gesture event in query driven layer Flag;
    Application layer judges whether the gesture data is ready to complete according to the value of the flag;
    If so, then application layer performs the operation that the gesture data is extracted out of described default node;
    Otherwise, after setting time length is waited, application layer returns to the operation for performing and inquiring about the flag.
  5. 5. according to the method for claim 1, it is characterised in that in application layer by reading the gesture in the default node After data, in addition to:
    Application layer judges the default stop bits for whether including the gesture data by the gesture data read in the default node, If, it is determined that the gesture data is read successfully.
  6. 6. method according to any one of claim 1 to 5, it is characterised in that perform black corresponding to the gesture data Shield gesture function, including:
    Application layer determines gesture path corresponding to the gesture-type, and draws gesture path to touching display screen;
    Application layer opens application program corresponding to the gesture-type, and the application program is shown on the touching display screen Interface.
  7. 7. method according to any one of claim 1 to 5, it is characterised in that perform black corresponding to the gesture data Shield gesture function, including:
    Application layer is opening application program corresponding to the gesture-type from the background by least one unlatching thread;
    Application layer passes through at least one drafting thread, hand corresponding with the unlatching thread parallel execution determination gesture-type Gesture track, and draw operation of the gesture path to touching display screen;
    When meeting default display condition, interface corresponding to the application layer drafting application program to the touching display screen, To show the interface of the application program on the touching display screen.
  8. A kind of 8. blank screen gesture control device, it is characterised in that including:
    First data read module, for after based on blank screen gesture wake-up system, driving layer when reporting blank screen gesture event, The parallel operation for performing the gesture data for reading the blank screen gesture, and the gesture data is stored in the default section for driving layer Point in;
    Data detection module, for application layer when receiving the blank screen gesture event, detect the hand in the default node Whether gesture data are ready to complete;
    Second data read module, for when being ready to complete, application layer by reading the gesture data in the default node, Wherein, the gesture data includes gesture-type;
    Function execution module, for application layer the gesture data read successfully and it is effective when, perform the gesture data pair The blank screen gesture function answered.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The blank screen gestural control method as described in any in claim 1 to 7 is realized during row.
  10. 10. a kind of mobile terminal, including touching display screen, memory, processor and storage are on a memory and can be in processor The computer program of upper operation, it is characterised in that described in the computing device during computer program realize as claim 1 to Any described blank screen gestural control method in 7.
CN201710632956.7A 2017-07-28 2017-07-28 Black screen gesture control method and device, storage medium and mobile terminal Expired - Fee Related CN107479700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710632956.7A CN107479700B (en) 2017-07-28 2017-07-28 Black screen gesture control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710632956.7A CN107479700B (en) 2017-07-28 2017-07-28 Black screen gesture control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107479700A true CN107479700A (en) 2017-12-15
CN107479700B CN107479700B (en) 2020-05-12

Family

ID=60598279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710632956.7A Expired - Fee Related CN107479700B (en) 2017-07-28 2017-07-28 Black screen gesture control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107479700B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407842A (en) * 2018-10-22 2019-03-01 Oppo广东移动通信有限公司 Interface operation method, device, electronic equipment and computer readable storage medium
CN109933253A (en) * 2019-01-23 2019-06-25 努比亚技术有限公司 Method for controlling application starting, terminal and computer readable storage medium
CN110032397A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Application processing method and apparatus, electronic device, computer-readable storage medium
CN112462963A (en) * 2019-09-09 2021-03-09 北京小米移动软件有限公司 Non-contact gesture control method and device and storage medium
CN112527093A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Gesture input method and electronic equipment
CN114443238A (en) * 2020-11-03 2022-05-06 华为技术有限公司 Application calling method and device, terminal equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104137034A (en) * 2011-11-30 2014-11-05 惠普发展公司,有限责任合伙企业 Input mode based on gesture position
CN104238916A (en) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 Method for starting application or application function by mobile terminal and mobile terminal
CN106576123A (en) * 2015-09-02 2017-04-19 华为技术有限公司 Method and device for controlling electronic equipment, and electronic equipment
CN106843728A (en) * 2017-01-16 2017-06-13 珠海市魅族科技有限公司 A kind of operation trace processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104137034A (en) * 2011-11-30 2014-11-05 惠普发展公司,有限责任合伙企业 Input mode based on gesture position
CN104238916A (en) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 Method for starting application or application function by mobile terminal and mobile terminal
CN106576123A (en) * 2015-09-02 2017-04-19 华为技术有限公司 Method and device for controlling electronic equipment, and electronic equipment
CN106843728A (en) * 2017-01-16 2017-06-13 珠海市魅族科技有限公司 A kind of operation trace processing method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032397A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Application processing method and apparatus, electronic device, computer-readable storage medium
CN110032397B (en) * 2018-01-10 2023-01-31 Oppo广东移动通信有限公司 Application processing method and device, electronic equipment and computer readable storage medium
CN109407842A (en) * 2018-10-22 2019-03-01 Oppo广东移动通信有限公司 Interface operation method, device, electronic equipment and computer readable storage medium
CN109933253A (en) * 2019-01-23 2019-06-25 努比亚技术有限公司 Method for controlling application starting, terminal and computer readable storage medium
CN112462963A (en) * 2019-09-09 2021-03-09 北京小米移动软件有限公司 Non-contact gesture control method and device and storage medium
CN112527093A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Gesture input method and electronic equipment
CN114443238A (en) * 2020-11-03 2022-05-06 华为技术有限公司 Application calling method and device, terminal equipment and medium

Also Published As

Publication number Publication date
CN107479700B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN107483721B (en) Control method, device, storage medium and mobile terminal based on black screen gesture
CN107463329B (en) Black screen gesture detection method, device, storage medium and mobile terminal
CN107450837B (en) Method, device, storage medium and mobile terminal for responding to black screen gesture
US20190370095A1 (en) Method and device for preloading application, storage medium and intelligent terminal
CN107479816B (en) Recognition methods, device, storage medium and the mobile terminal of blank screen gesture
CN107479700B (en) Black screen gesture control method and device, storage medium and mobile terminal
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
WO2019019816A1 (en) Method and device for reducing power consumption of mobile terminal, storage medium and mobile terminal
CN107748686A (en) Application startup optimization method, device, storage medium and intelligent terminal
WO2019218886A1 (en) Application pre-loading management method, device, storage medium and smart terminal
CN108710512B (en) Application program preloading method and device, storage medium and intelligent terminal
CN107422860B (en) Control method and device based on black screen gesture, storage medium and mobile terminal
CN107402713B (en) Method and device for accelerating black screen gesture processing, storage medium and mobile terminal
WO2019047231A1 (en) Touch operation response method and device
CN107608551B (en) Touch operation response method and device
CN107577415A (en) Touch operation response method and device
CN107608550A (en) Touch operation response method and device
CN107391021A (en) Black screen gesture recognition method, device, storage medium and mobile terminal
WO2019047226A1 (en) Touch operation response method and device
CN107529636A (en) Method and device for improving black screen gesture response, storage medium and mobile terminal
CN107395888B (en) Processing method and device of black screen gesture, storage medium and mobile terminal
WO2019047234A1 (en) Touch operation response method and apparatus
HK1246427B (en) Identification method and device for black screen gesture, storage medium and mobile terminal
HK1246427A1 (en) Identification method and device for black screen gesture, storage medium and mobile terminal
HK1246536B (en) Control method and apparatus based on black screen gesture, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200512