[go: up one dir, main page]

CN106933576A - A kind of terminal unlock method, device and computer equipment - Google Patents

A kind of terminal unlock method, device and computer equipment Download PDF

Info

Publication number
CN106933576A
CN106933576A CN201710113231.7A CN201710113231A CN106933576A CN 106933576 A CN106933576 A CN 106933576A CN 201710113231 A CN201710113231 A CN 201710113231A CN 106933576 A CN106933576 A CN 106933576A
Authority
CN
China
Prior art keywords
screen
terminal
interface
screen locking
lock
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
CN201710113231.7A
Other languages
Chinese (zh)
Other versions
CN106933576B (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 CN201710113231.7A priority Critical patent/CN106933576B/en
Publication of CN106933576A publication Critical patent/CN106933576A/en
Application granted granted Critical
Publication of CN106933576B publication Critical patent/CN106933576B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种终端解锁方法、装置及计算机设备,该终端解锁方法包括:当接收到终端息屏指令时,生成启动锁屏流程的触发信号;根据触发信号,获取预设的锁屏优先操作流程,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程;对息屏流程与锁屏优先操作流程进行并行处理,得到并行处理结果;若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面。即本发明实施例从收到终端息屏指令就开始触发息屏流程与锁屏优先操作流程进行并行处理,大大的减少了锁屏耗时,提高锁屏响应速度。

The invention discloses a terminal unlocking method, device, and computer equipment. The terminal unlocking method includes: when receiving a terminal off-screen instruction, generating a trigger signal to start the lock screen process; according to the trigger signal, obtaining a preset lock screen priority Operation process, the lock screen priority operation process is the operation process related to non-interface operations in the lock screen process; the off-screen process and the lock screen priority operation process are processed in parallel to obtain parallel processing results; if it is detected that the off-screen process has been completed , the terminal lock screen interface is generated according to the parallel processing result. That is, the embodiment of the present invention starts to trigger the screen-off process and the lock-screen priority operation process to perform parallel processing after receiving the terminal screen-off instruction, which greatly reduces the time-consuming of locking the screen and improves the response speed of the lock screen.

Description

一种终端解锁方法、装置及计算机设备A terminal unlocking method, device and computer equipment

技术领域technical field

本发明属于通信技术领域,尤其涉及一种终端解锁方法、装置及计算机设备。The invention belongs to the technical field of communications, and in particular relates to a terminal unlocking method, device and computer equipment.

背景技术Background technique

随着移动互联网的迅速发展和移动终端如手机、平板等的普及,移动终端的使用量也越来越大,与此同时,终端数据的安全性也越来越受到重视。With the rapid development of the mobile Internet and the popularity of mobile terminals such as mobile phones and tablets, the use of mobile terminals is also increasing. At the same time, the security of terminal data is also receiving more and more attention.

为了可以有效保护终端的数据安全,用户通常会对终端进行锁屏保护,锁屏后需要通过输入密码或其他用户设置的解锁方式方可进入;但是,现有技术中的锁屏方式完全依赖于系统流程执行,加上由于随着终端系统版本升级需要,会执行越来越多的其他流程(如息屏相关的流程),且流程也相对越来越复杂,从而造成锁屏耗时增加,尤其在系统运行比较忙碌状态下,容易导致锁屏界面没有及时显示,具有严重延迟性。In order to effectively protect the data security of the terminal, the user usually locks the terminal for protection. After the screen is locked, it needs to enter a password or other unlocking methods set by the user to enter; however, the locking method in the prior art is completely dependent on System process execution, plus due to the need for terminal system version upgrades, more and more other processes (such as screen-off related processes) will be executed, and the processes are relatively more and more complicated, resulting in increased time-consuming for locking the screen. Especially when the system is running relatively busy, it is easy to cause the lock screen interface to not be displayed in time, resulting in serious delay.

发明内容Contents of the invention

本发明实施例提供一种终端解锁方法、装置及计算机设备,减少锁屏耗时,提高锁屏响应速度。Embodiments of the present invention provide a terminal unlocking method, device, and computer equipment, which reduce time-consuming lock screen and improve lock screen response speed.

第一方面,本发明实施例提供一种终端解锁方法,其中包括:In the first aspect, an embodiment of the present invention provides a method for unlocking a terminal, which includes:

当接收到终端息屏指令时,生成启动锁屏流程的触发信号;Generate a trigger signal to start the screen lock process when receiving the command to close the screen of the terminal;

根据所述触发信号,获取预设的锁屏优先操作流程,所述锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程;According to the trigger signal, a preset lock screen priority operation process is obtained, and the lock screen priority operation process is an operation process related to non-interface operations in the lock screen process;

对息屏流程与所述锁屏优先操作流程进行并行处理,得到并行处理结果;Perform parallel processing on the off-screen process and the lock screen priority operation process to obtain a parallel processing result;

若检测到息屏流程已完成,则根据所述并行处理结果生成终端锁屏界面。If it is detected that the off-screen process has been completed, a terminal lock screen interface is generated according to the parallel processing result.

第二方面,本发明实施例提供一种终端解锁装置,其中包括:In a second aspect, an embodiment of the present invention provides a device for unlocking a terminal, which includes:

信号生成模块,用于当接收到终端息屏指令时,生成启动锁屏流程的触发信号;A signal generation module, configured to generate a trigger signal for starting the screen lock process when receiving a terminal off-screen instruction;

获取模块,用于根据所述触发信号,获取预设的锁屏优先操作流程,所述锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程;An acquisition module, configured to acquire a preset lock screen priority operation process according to the trigger signal, and the lock screen priority operation process is an operation process related to non-interface operations in the lock screen process;

并行处理模块,用于对息屏流程与所述锁屏优先操作流程进行并行处理,得到并行处理结果;A parallel processing module, configured to perform parallel processing on the off-screen process and the lock screen priority operation process to obtain a parallel processing result;

界面生成模块,用于若检测到息屏流程已完成,则根据所述并行处理结果生成终端锁屏界面。The interface generation module is configured to generate a terminal lock screen interface according to the parallel processing result if it is detected that the screen-off process has been completed.

第三方面,本发明实施例提供一种计算机设备,其中包括:In a third aspect, an embodiment of the present invention provides a computer device, which includes:

存储有可执行程序代码的存储器;a memory storing executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行所述可执行程序代码实现如第一方面提供的终端解锁方法。The processor invokes the executable program code stored in the memory, and executes the executable program code to implement the terminal unlocking method provided in the first aspect.

本发明实施例,当接收到终端息屏指令时,生成启动锁屏流程的触发信号,从而根据该触发信号,启动息屏流程与锁屏优先操作流程进行并行处理,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程,若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面;也就是说,从收到终端息屏指令就开始触发息屏流程与锁屏优先操作流程进行并行处理,大大的减少了锁屏耗时,提高锁屏响应速度。In the embodiment of the present invention, when a terminal screen-off instruction is received, a trigger signal for starting the screen-locking process is generated, so that according to the trigger signal, the screen-off process is started and the screen-locking priority operation process is processed in parallel. The screen-locking priority operation process is For the operation process related to non-interface operations in the lock screen process, if it is detected that the screen off process has been completed, the terminal lock screen interface will be generated according to the parallel processing results; that is, the screen off process will be triggered from the receipt of the terminal screen off command Parallel processing with the lock screen priority operation process greatly reduces the time-consuming lock screen and improves the lock screen response speed.

附图说明Description of drawings

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.

图1是本发明实施例提供的终端解锁方法的流程示意图。FIG. 1 is a schematic flowchart of a method for unlocking a terminal provided by an embodiment of the present invention.

图2为本发明实施例提供的终端解锁方法的另一流程示意图。FIG. 2 is another schematic flowchart of a method for unlocking a terminal provided by an embodiment of the present invention.

图3为本发明实施例提供的终端解锁装置的结构示意图。FIG. 3 is a schematic structural diagram of a device for unlocking a terminal provided by an embodiment of the present invention.

图4为本发明实施例提供的终端解锁装置的另一结构示意图。FIG. 4 is another schematic structural diagram of a device for unlocking a terminal provided by an embodiment of the present invention.

图5为本发明实施例提供的计算机设备的结构示意图。FIG. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present invention.

具体实施方式detailed description

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.

在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present invention will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principles of the present invention are described in the above words, which are not meant to be a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware.

本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本发明的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。The principles of the invention operate with numerous other general purpose or special purpose computing, communication environments or configurations. Examples of well-known computing systems, environments, and configurations suitable for use with the present invention may include, but are not limited to, handheld phones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.

以下将分别进行详细说明。The details will be described respectively below.

在本实施例中,将从终端解锁装置的角度进行描述,该终端解锁装置可以集成在如手机、平板电脑、掌上电脑(PDA,Personal Digital Assistant)等移动终端中。In this embodiment, description will be made from the perspective of a terminal unlocking device, which can be integrated into mobile terminals such as mobile phones, tablet computers, and PDAs (Personal Digital Assistant).

请参阅图1,图1是本发明实施例提供的终端解锁方法的流程示意图。该方法包括:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for unlocking a terminal provided by an embodiment of the present invention. The method includes:

在步骤S101中,当接收到终端息屏指令时,生成启动锁屏流程的触发信号。In step S101, when a terminal screen-off command is received, a trigger signal for starting a screen-locking process is generated.

本发明实施例中,如能量power键(也称开关键)锁屏,一键锁屏,屏幕自动息屏等操作,均可认为向终端发送息屏指令,终端在接收到息屏指令时,触发启动锁屏流程。In the embodiment of the present invention, operations such as energy power key (also called on/off key) lock screen, one-key lock screen, and automatic screen off screen can all be regarded as sending a screen off command to the terminal. When the terminal receives the screen off command, Trigger to start the lock screen process.

在某些实施方式中,终端“当接收到终端息屏指令时,生成启动锁屏流程的触发信号”可以包括:In some implementations, the terminal "generating a trigger signal to start the lock screen process when receiving the terminal screen off instruction" may include:

(11)当接收到终端息屏指令时,获取锁屏相关状态。(11) When receiving an instruction to turn off the screen of the terminal, obtain related status of the screen lock.

(12)在确定锁屏相关状态与终端当前系统状态对应同步后,生成启动锁屏流程的触发信号。(12) After it is determined that the relevant state of the lock screen is correspondingly synchronized with the current system state of the terminal, a trigger signal for starting the screen lock process is generated.

可以理解的是,在启动锁屏流程之前,需要先检查终端本地的预先设置的锁屏相关状态与终端当前系统状态是否匹配,如果不匹配,则需要进行状态同步,在确定锁屏相关状态与终端当前系统状态对应同步后,生成启动锁屏流程的触发信号,以进行锁屏流程。It is understandable that, before starting the lock screen process, it is necessary to check whether the local preset lock screen related status of the terminal matches the current system status of the terminal. If they do not match, the status synchronization needs to be performed. After the current system status of the terminal is correspondingly synchronized, a trigger signal for starting the screen lock process is generated to perform the screen lock process.

在步骤S102中,根据触发信号,获取预设的锁屏优先操作流程,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程。In step S102, according to the trigger signal, a preset screen-locking priority operation process is obtained, and the screen-locking priority operation process is an operation process related to non-interface operations in the screen lock process.

在步骤S103中,对息屏流程与锁屏优先操作流程进行并行处理,得到并行处理结果。In step S103, parallel processing is performed on the screen-off process and the screen-locking priority operation process to obtain a parallel processing result.

也就是说,本发明实施例中,在进行息屏流程的同时,可以并行处理锁屏相关操作,而锁屏相关操作会预先设置有优先级,如可以先完成非界面操作相关的操作(可简称UI(用户界面,User Interface)操作),然后再处理界面操作相关的操作,等等。That is to say, in the embodiment of the present invention, while the off-screen process is being performed, operations related to the lock screen can be processed in parallel, and the operations related to the lock screen will be pre-set with priorities. For example, operations related to non-interface operations can be completed first (can be Referred to as UI (User Interface, User Interface) operation), and then deal with operations related to interface operations, and so on.

在某些实施方式中,终端“对息屏流程与所述锁屏优先操作流程进行并行处理”的同时,还可以包括:In some implementations, the terminal may also include:

当确定终端当前系统状态发生变化时,对锁屏相关状态与终端当前系统状态进行同步。When it is determined that the current system state of the terminal changes, the state related to the lock screen is synchronized with the current system state of the terminal.

也就是说,在终端启动了锁屏流程后,为了防止终端系统状态变化导致状态不同步,可以对锁屏相关状态启用了监听策略,当终端系统状态发生变化时及时再与锁屏相关状态对应检查匹配,以保持状态同步。That is to say, after the terminal starts the lock screen process, in order to prevent the status of the terminal system from being out of sync due to changes in the terminal system status, the monitoring strategy can be enabled for the status related to the lock screen, and when the terminal system status changes, it will correspond to the related status of the lock screen in time Check for a match to keep the state in sync.

在步骤S104中,若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面。In step S104, if it is detected that the off-screen process has been completed, a terminal lock screen interface is generated according to the parallel processing result.

在一种实施方式中,终端“根据并行处理结果生成终端锁屏界面”可以包括:In one embodiment, the terminal "generating the terminal lock screen interface according to the parallel processing result" may include:

(21)若并行处理结果指示锁屏优先操作流程已完成,则进入锁屏流程中与界面操作相关的操作流程并处理。(21) If the parallel processing result indicates that the lock screen priority operation process has been completed, enter and process the operation process related to the interface operation in the lock screen process.

(22)在确定与界面操作相关的操作流程完成后,进行锁屏界面的绘制,以生成终端锁屏界面。(22) After determining that the operation process related to the interface operation is completed, draw the lock screen interface to generate the terminal lock screen interface.

在另一种实施方式中,终端“根据并行处理结果生成终端锁屏界面”可以包括:In another implementation manner, the terminal "generating the terminal lock screen interface according to the parallel processing result" may include:

(31)若并行处理结果指示锁屏优先操作流程未完成,则继续执行锁屏优先操作流程,并在确定锁屏优先操作流程完成时,进入锁屏流程中与界面操作相关的操作流程并处理。(31) If the parallel processing result indicates that the lock screen priority operation process has not been completed, continue to execute the lock screen priority operation process, and when it is determined that the lock screen priority operation process is completed, enter the operation process related to the interface operation in the lock screen process and process .

(32)在确定与界面操作相关的操作流程完成后,进行锁屏界面的绘制,以生成终端锁屏界面。(32) After determining that the operation process related to the interface operation is completed, draw the lock screen interface to generate the terminal lock screen interface.

可以理解的是,在息屏相关的流程未执行完之前,与界面操作(UI)相关的操作可以延后处理,当确定息屏流程处理完成后,马上进入UI操作的流程;另外,如果之前的非UI操作已经完成则跳过,否则在UI线程继续完成非UI操作,最后在UI操作流程完成后,系统进行锁屏界面的绘制。It is understandable that before the off-screen related process is executed, the operations related to the interface operation (UI) can be postponed. When it is determined that the off-screen process is completed, the UI operation process will be entered immediately; in addition, if before If the non-UI operation has been completed, it is skipped, otherwise, the UI thread continues to complete the non-UI operation, and finally after the UI operation process is completed, the system draws the lock screen interface.

本发明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。The terms "first", "second" and "third" in the present invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion.

由上述可知,本实施例提供的终端解锁方法,当接收到终端息屏指令时,生成启动锁屏流程的触发信号,从而根据该触发信号,启动息屏流程与锁屏优先操作流程进行并行处理,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程,若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面;也就是说,从收到终端息屏指令就开始触发息屏流程与锁屏优先操作流程进行并行处理,大大的减少了锁屏耗时,提高锁屏响应速度。As can be seen from the above, the terminal unlocking method provided in this embodiment generates a trigger signal to start the screen lock process when receiving a terminal screen off command, so that according to the trigger signal, the screen off process is started and the lock screen priority operation process is processed in parallel , the lock screen priority operation process is the operation process related to non-interface operations in the lock screen process. If it is detected that the screen off process has been completed, the terminal lock screen interface will be generated according to the parallel processing result; The screen command starts to trigger the off-screen process and the lock screen priority operation process to be processed in parallel, which greatly reduces the time spent on locking the screen and improves the response speed of the lock screen.

根据上述实施例所描述的方法,以下将举例作进一步详细说明。According to the methods described in the above embodiments, examples will be given below for further detailed description.

现有技术中的锁屏方式完全依赖于系统流程执行,加上由于随着终端系统版本升级需要,会执行越来越多的其他流程(如息屏相关的流程),且流程也相对越来越复杂,从而造成锁屏耗时增加,尤其在系统运行比较忙碌状态下,容易导致锁屏界面没有及时显示,具有严重延迟性。基于此,本发明提出一种终端解锁方法,能快速响应锁屏显示,使得用户通过锁屏入口进行锁屏操作后,终端系统能快速完成锁屏显示。The lock screen method in the prior art is completely dependent on the execution of the system process. In addition, due to the upgrade of the terminal system version, more and more other processes (such as the process related to the screen) will be executed, and the process is relatively more and more complicated. The more complicated it is, the more time-consuming it will be to lock the screen, especially when the system is busy, it is easy to cause the lock screen interface to not be displayed in time, resulting in serious delays. Based on this, the present invention proposes a terminal unlocking method, which can quickly respond to the lock screen display, so that after the user performs the lock screen operation through the lock screen entry, the terminal system can quickly complete the lock screen display.

请参阅图2,图2为本发明实施例提供的终端解锁方法的另一流程示意图。该方法包括:Please refer to FIG. 2 . FIG. 2 is another schematic flowchart of a terminal unlocking method provided by an embodiment of the present invention. The method includes:

在步骤S201中,当接收到终端息屏指令时,获取锁屏相关状态。In step S201 , when receiving an instruction to turn off the screen of the terminal, obtain related status of the screen lock.

在步骤S202中,在确定锁屏相关状态与终端当前系统状态对应同步后,生成启动锁屏流程的触发信号。In step S202, after it is determined that the related state of the screen lock is synchronized with the current system state of the terminal, a trigger signal for starting the screen lock process is generated.

可以理解的是,在启动锁屏流程之前,需要先检查终端本地的预先设置的锁屏相关状态与终端当前系统状态是否匹配,如果不匹配,则需要进行状态同步,在确定锁屏相关状态与终端当前系统状态对应同步后,如果所有最新的状态都允许锁屏,才生成启动锁屏流程的触发信号,以进行锁屏流程。It is understandable that, before starting the lock screen process, it is necessary to check whether the local preset lock screen related status of the terminal matches the current system status of the terminal. If they do not match, the status synchronization needs to be performed. After the current system state of the terminal is correspondingly synchronized, if all the latest states allow screen lock, a trigger signal to start the screen lock process is generated to carry out the lock screen process.

本发明实施例中,状态同步的目的是为了及时对锁屏状态进行调整,比如终端系统随时会发生变化,如发出取消锁屏的信号,此时终端系统需要及时修正锁屏状态,并回收锁屏流程,以终止锁屏。In the embodiment of the present invention, the purpose of state synchronization is to adjust the lock screen state in time. For example, the terminal system may change at any time, such as sending a signal to cancel the lock screen. At this time, the terminal system needs to correct the lock screen state in time and recycle the lock screen. screen process to terminate the lock screen.

其中,与锁屏状态同步的系统状态可以包括以下一种或两种以上组合:Wherein, the system state synchronized with the lock screen state may include one or a combination of two or more of the following:

时区,客户识别模块(SIM,Subscriber Identification Module)状态,电话状态,信息状态,设备管理状态,用户状态,开机状态,媒体服务状态,还有其他一些设备,如指纹,电池,屏幕,各种传感器等状态。Time zone, subscriber identification module (SIM, Subscriber Identification Module) status, phone status, information status, device management status, user status, power-on status, media service status, and other devices, such as fingerprints, batteries, screens, and various sensors Waiting for status.

在步骤S203中,根据触发信号,获取预设的锁屏优先操作流程,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程。In step S203, according to the trigger signal, a preset screen-locking priority operation process is obtained, and the screen-locking priority operation process is an operation process related to non-interface operations in the screen lock process.

在步骤S204中,对息屏流程与锁屏优先操作流程进行并行处理。In step S204, the screen-off process and the screen-locking priority operation process are processed in parallel.

在本发明实施例中,在进行息屏流程的同时,可以并行处理锁屏相关操作,而锁屏相关操作会预先设置有优先级,如可以先完成较为耗时的非界面操作相关的操作(可简称非UI操作),然后再处理其他的非UI操作,最后才处理UI操作,等等。In the embodiment of the present invention, while the off-screen process is being performed, related operations related to the lock screen can be processed in parallel, and the related operations related to the lock screen will be preset with a priority, such as the more time-consuming operations related to non-interface operations can be completed first ( Can be referred to as non-UI operations), and then process other non-UI operations, and finally process UI operations, and so on.

比如,基于设置好的优先级,在接收到触发信号后,对息屏流程与锁屏流程进行并行处理时,先并行处理较为耗时的非界面操作相关的操作,然后再处理其他的非UI操作。For example, based on the set priority, after receiving the trigger signal, when the off-screen process and the lock screen process are processed in parallel, the time-consuming non-interface operation-related operations are processed in parallel first, and then other non-UI operations are processed in parallel. operate.

通常,息屏流程可以包括以下三个主要的操作:1、开始灭屏(onStartedGoingToSleep):如按下开关键后马上调用,且同步终端系统息屏触发的原因以及终端屏幕的状态;2、灭屏(onFinishedGoingToSleep):完全灭屏之后,液晶显示器(LCD,Liquid Crystal Display)关闭、屏幕背光调整为0;3、休眠(onScreenTurnedOff):灭屏动画结束之后调用,触发终端系统后台工作休眠,停止一些亮屏状态所需要的底层服务。Usually, the off-screen process can include the following three main operations: 1. OnStartedGoingToSleep: Called immediately after pressing the on/off key, and synchronizes the cause of the off-screen trigger of the terminal system and the status of the terminal screen; 2. Going off Screen (onFinishedGoingToSleep): After the screen is completely turned off, the LCD (Liquid Crystal Display) is turned off, and the screen backlight is adjusted to 0; 3. Sleep (onScreenTurnedOff): Called after the screen off animation ends, triggering the terminal system to sleep in the background and stop some The underlying services required by the bright screen state.

本发明实施例中,非UI操作可以包括:一、系统相关的监听服务(电量,电话卡,音乐等各模块的数据);二、锁屏自身服务启用,比如日志系统、统计后台、壁纸服务的初始化,完成壁纸加载,锁屏通知以及动画等等;三、系统设置状态的提前读取,比如密码样式,指纹开关,主题开关,锁屏开关等大量的数据库读取和监听。In the embodiment of the present invention, non-UI operations may include: 1. System-related monitoring services (data of various modules such as battery power, phone card, music, etc.); Initialization, completion of wallpaper loading, lock screen notification and animation, etc.; 3. Pre-reading of system setting status, such as password style, fingerprint switch, theme switch, lock screen switch, etc. A large number of database reading and monitoring.

在步骤S205中,在进行并行处理过程中,当确定终端当前系统状态发生变化时,对锁屏相关状态与终端当前系统状态进行同步。In step S205, during parallel processing, when it is determined that the current system state of the terminal changes, the state related to the lock screen is synchronized with the current system state of the terminal.

也就是说,在终端启动了锁屏流程后,为了防止终端系统状态变化导致状态不同步,可以对锁屏相关状态启用了监听策略,当终端系统状态发生变化时及时再与锁屏相关状态对应检查匹配,以保持状态同步。That is to say, after the terminal starts the lock screen process, in order to prevent the status of the terminal system from being out of sync due to changes in the terminal system status, a monitoring strategy can be enabled for the status related to the lock screen, and when the terminal system status changes, it will correspond to the related status of the lock screen Check for a match to keep the state in sync.

可以理解的是,现有的锁屏流程都是息屏流程(前述三个操作)全部完成之后才触发处理,即只有息屏流程全部处理完才开始锁屏,因此该实施例中,将锁屏流程提前到息屏流程并行处理,并且,在并行过程可以只检查锁屏相关的一些状态,这些状态可能与UI有关,也可能与UI无关,可以包括以下一种或两种以上组合:时区,SIM状态,电话状态,信息状态,设备管理状态,用户状态,开机状态,媒体服务状态,还有其他一些设备,如指纹,电池,屏幕,各种传感器等状态。It can be understood that the existing screen lock process is triggered after all the screen off processes (the aforementioned three operations) are completed, that is, the screen lock starts only after all the screen off processes have been processed. Therefore, in this embodiment, the lock screen The screen process is advanced to the off-screen process for parallel processing, and in the parallel process, only some states related to the lock screen can be checked. These states may be related to the UI or may not be related to the UI, and may include one or more combinations of the following: time zone , SIM status, phone status, information status, device management status, user status, power-on status, media service status, and other devices, such as fingerprints, batteries, screens, and various sensors.

可以理解的是,如果系统状态变化极为频繁,与界面操作相关的操作(UI操作)可以一直推迟到系统状态较为稳定后再处理。如,设置一时间间隔,若在该时间间隔内终端系统状态发生变化或状态匹配同步的次数达到一定阈值,则可以认为系统状态不稳定,等等。It can be understood that if the system state changes very frequently, operations related to interface operations (UI operations) can be postponed until the system state is relatively stable. For example, a time interval is set, and if the state of the terminal system changes or the number of times of state matching and synchronization reaches a certain threshold within the time interval, the system state can be considered unstable, and so on.

进一步的,在进行并行处理过程中,若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面,如可分别执行步骤S206a和步骤S207,或者执行步骤S206b和步骤S207:Further, during the parallel processing, if it is detected that the off-screen process has been completed, the terminal lock screen interface is generated according to the parallel processing result, for example, step S206a and step S207 can be executed respectively, or step S206b and step S207 can be executed:

在步骤S206a中,若检测到息屏流程已完成,且锁屏优先操作流程已完成,则进入锁屏流程中与界面操作相关的操作流程并处理。In step S206a, if it is detected that the screen-off process has been completed and the screen-locking priority operation process has been completed, enter into the screen-locking process and process the operation process related to the interface operation.

在步骤S206b中,若检测到息屏流程已完成,且锁屏优先操作流程未完成,则继续执行锁屏优先操作流程,并在确定锁屏优先操作流程完成时,进入锁屏流程中与界面操作相关的操作流程并处理。In step S206b, if it is detected that the off-screen process has been completed and the lock screen priority operation process is not completed, continue to execute the lock screen priority operation process, and when it is determined that the lock screen priority operation process is completed, enter the lock screen process and interface Operate related operating procedures and handle them.

在步骤S207中,在确定与界面操作相关的操作流程完成后,进行锁屏界面的绘制,以生成终端锁屏界面。In step S207, after it is determined that the operation process related to the interface operation is completed, the lock screen interface is drawn to generate the terminal lock screen interface.

可以理解的是,在息屏相关流程未执行完之前与界面操作相关的操作(UI操作)可以延后处理,待息屏流程已完成才进入与界面操作相关的操作流程。It can be understood that the operation related to the interface operation (UI operation) can be postponed before the off-screen related process is executed, and the operation process related to the interface operation will not be entered until the off-screen process is completed.

进一步的,当确定息屏流程完成后,如果之前的非UI操作已经完成则跳过,直接进入与界面操作相关的操作流程并处理;否则,未完成的非UI操作可在UI线程继续完成,最后进行锁屏界面的绘制。Further, when it is determined that the off-screen process is completed, if the previous non-UI operation has been completed, skip it, and directly enter the operation process related to the interface operation and process it; otherwise, the unfinished non-UI operation can continue to be completed in the UI thread, Finally, draw the lock screen interface.

其中,UI操作可以包括界面初始、动画启动、重新检查系统状态,保证加载的界面不会出错、以及等待下一个帧同步(vSync)信号刷新界面,等等。Wherein, the UI operation may include initializing the interface, starting an animation, rechecking the system status, ensuring that the loaded interface is error-free, waiting for the next frame synchronization (vSync) signal to refresh the interface, and so on.

也就是说,本发明实施例中,在接收到息屏指令时,锁屏开始同步处理自己的流程(如系统状态获取,壁纸准备,锁屏状态处理等),锁屏就不完全是在息屏所有相关流程执行完毕后才开始处理,而是提前与系统息屏过程进行并行处理,来保证当系统完成息屏动作时锁屏流程基本准备完毕,最后系统绘制出锁屏界面,满足用户快速息屏锁屏的需求。That is to say, in the embodiment of the present invention, when receiving the off-screen command, the lock screen starts to process its own process synchronously (such as system state acquisition, wallpaper preparation, lock screen state processing, etc.), and the lock screen is not completely in the off-screen mode. The processing starts after all related processes of the screen are executed, but is processed in parallel with the system’s off-screen process in advance to ensure that the lock screen process is basically ready when the system completes the off-screen action, and finally the system draws the lock screen interface to meet the needs of users. The needs of the screen lock screen.

由上述可知,本实施例提供的终端解锁方法,当接收到终端息屏指令时,生成启动锁屏流程的触发信号,从而根据该触发信号,启动息屏流程与锁屏优先操作流程进行并行处理,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程,若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面;也就是说,从收到终端息屏指令就开始触发息屏流程与锁屏优先操作流程进行并行处理,能解决用户快速息屏亮屏看不到锁屏的问题,大大的减少了锁屏耗时,提高锁屏响应速度,如及时显示锁屏壁纸,及时切换壁纸,及时启用指纹,及时启用一些黑屏状态下需要的服务或者硬件等,不仅使得锁屏速度响应越及时,还提升了锁屏的产品体验。As can be seen from the above, the terminal unlocking method provided by this embodiment generates a trigger signal to start the lock screen process when receiving the terminal screen off command, so that according to the trigger signal, the start of the screen off process and the lock screen priority operation process are processed in parallel , the lock screen priority operation process is the operation process related to non-interface operations in the lock screen process. If it is detected that the screen off process has been completed, the terminal lock screen interface will be generated according to the parallel processing result; The screen command starts to trigger the off-screen process and the lock screen priority operation process for parallel processing, which can solve the problem that the user cannot see the lock screen after quickly turning off the screen and brightening the screen, greatly reducing the time spent on locking the screen and improving the response speed of the lock screen, such as Display the lock screen wallpaper in time, switch the wallpaper in time, enable the fingerprint in time, and enable some services or hardware needed in the black screen state in time, which not only makes the lock screen response more timely, but also improves the product experience of the lock screen.

为便于更好的实施本发明实施例提供的终端解锁方法,本发明实施例还提供一种基于上述终端解锁方法的装置以及计算机设备。其中名词的含义与上述终端解锁的方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the terminal unlocking method provided by the embodiment of the present invention, the embodiment of the present invention further provides an apparatus and computer equipment based on the above terminal unlocking method. The meanings of the nouns are the same as those in the above method for unlocking the terminal, and for specific implementation details, please refer to the description in the method embodiments.

请参阅图3,图3为本发明实施例提供的终端解锁装置的结构示意图,该终端解锁装置300包括信号生成模块301、获取模块302、并行处理模块303以及界面生成模块304。Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a terminal unlocking device according to an embodiment of the present invention. The terminal unlocking device 300 includes a signal generation module 301 , an acquisition module 302 , a parallel processing module 303 and an interface generation module 304 .

其中信号生成模块301,用于当接收到终端息屏指令时,生成启动锁屏流程的触发信号。Wherein the signal generation module 301 is configured to generate a trigger signal for starting a screen lock process when receiving an instruction to turn off the screen of the terminal.

本发明实施例中,如能量power键(也称开关键)锁屏,一键锁屏,屏幕自动息屏等操作,均可认为向终端发送息屏指令,终端在接收到息屏指令时,触发启动锁屏流程。In the embodiment of the present invention, operations such as energy power key (also called on/off key) lock screen, one-key lock screen, and automatic screen off screen can all be regarded as sending a screen off command to the terminal. When the terminal receives the screen off command, Trigger to start the lock screen process.

获取模块302,用于根据所述触发信号,获取预设的锁屏优先操作流程,所述锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程。并行处理模块303,用于对息屏流程与所述锁屏优先操作流程进行并行处理,得到并行处理结果。The obtaining module 302 is configured to obtain a preset lock screen priority operation flow according to the trigger signal, and the lock screen priority operation flow is an operation flow related to non-interface operations in the lock screen flow. The parallel processing module 303 is configured to perform parallel processing on the off-screen process and the lock screen priority operation process to obtain a parallel processing result.

也就是说,本发明实施例中,在进行息屏流程的同时,可以并行处理锁屏相关操作,而锁屏相关操作会预先设置有优先级,如可以先完成非界面操作相关的操作(可简称用户界面UI操作),然后再处理界面操作相关的操作,等等。That is to say, in the embodiment of the present invention, while the off-screen process is being performed, operations related to the lock screen can be processed in parallel, and the operations related to the lock screen will be pre-set with priorities. For example, operations related to non-interface operations can be completed first (can be Referred to as the user interface UI operation), and then deal with the operation related to the interface operation, and so on.

界面生成模块304,用于若检测到息屏流程已完成,则根据所述并行处理结果生成终端锁屏界面。The interface generation module 304 is configured to generate a terminal lock screen interface according to the parallel processing result if it is detected that the off-screen process has been completed.

请一并参阅图4,图4为本发明实施例提供的终端解锁装置400的结构示意图,该终端解锁装置400中信号生成模块301可以包括:Please refer to FIG. 4 together. FIG. 4 is a schematic structural diagram of a terminal unlocking device 400 provided by an embodiment of the present invention. The signal generating module 301 in the terminal unlocking device 400 may include:

获取子模块3011,用于当接收到终端息屏指令时,获取锁屏相关状态。The acquisition sub-module 3011 is configured to acquire the related status of the lock screen when receiving an instruction to turn off the screen of the terminal.

信号生成子模块3012,用于在确定所述锁屏相关状态与终端当前系统状态对应同步后,生成启动锁屏流程的触发信号。The signal generation sub-module 3012 is configured to generate a trigger signal for starting the screen lock process after it is determined that the relevant state of the lock screen is synchronized with the current system state of the terminal.

可以理解的是,在启动锁屏流程之前,需要先检查终端本地的预先设置的锁屏相关状态与终端当前系统状态是否匹配,如果不匹配,则需要进行状态同步,在确定锁屏相关状态与终端当前系统状态对应同步后,生成启动锁屏流程的触发信号,以进行锁屏流程。It is understandable that, before starting the lock screen process, it is necessary to check whether the local preset lock screen related status of the terminal matches the current system status of the terminal. If they do not match, the status synchronization needs to be performed. After the current system status of the terminal is correspondingly synchronized, a trigger signal for starting the screen lock process is generated to perform the screen lock process.

如图4所示,终端解锁装置400还可以包括:As shown in Figure 4, the terminal unlocking device 400 may also include:

同步模块305,用于当确定终端当前系统状态发生变化时,对锁屏相关状态与终端当前系统状态进行同步。The synchronization module 305 is configured to, when it is determined that the current system state of the terminal has changed, synchronize the relevant state of the lock screen with the current system state of the terminal.

也就是说,在终端启动了锁屏流程后,为了防止终端系统状态变化导致状态不同步,可以对锁屏相关状态启用了监听策略,当终端系统状态发生变化时及时再与锁屏相关状态对应检查匹配,以保持状态同步。That is to say, after the terminal starts the lock screen process, in order to prevent the status of the terminal system from being out of sync due to changes in the terminal system status, a monitoring strategy can be enabled for the status related to the lock screen, and when the terminal system status changes, it will correspond to the related status of the lock screen Check for a match to keep the state in sync.

如图4所示,终端解锁装置400中界面生成模块304可以包括:As shown in FIG. 4, the interface generation module 304 in the terminal unlocking device 400 may include:

第一处理子模块3041,用于若所述并行处理结果指示锁屏优先操作流程已完成,则进入锁屏流程中与界面操作相关的操作流程并处理。The first processing sub-module 3041 is configured to enter and process an operation process related to interface operation in the lock screen process if the parallel processing result indicates that the lock screen priority operation process has been completed.

界面生成子模块3042,用于在确定与界面操作相关的操作流程完成后,进行锁屏界面的绘制,以生成终端锁屏界面。The interface generation sub-module 3042 is configured to draw the lock screen interface after determining that the operation process related to the interface operation is completed, so as to generate the terminal lock screen interface.

进一步的,界面生成模块304还可以包括:Further, the interface generating module 304 may also include:

第二处理子模块3043,用于若所述并行处理结果指示锁屏优先操作流程未完成,则继续执行所述锁屏优先操作流程,并在确定锁屏优先操作流程完成时,进入锁屏流程中与界面操作相关的操作流程并处理。The second processing sub-module 3043 is configured to continue to execute the lock screen priority operation process if the parallel processing result indicates that the lock screen priority operation process is not completed, and enter the lock screen process when it is determined that the lock screen priority operation process is completed The operation process related to the interface operation in and processed.

可以理解的是,在息屏相关的流程未执行完之前,与界面操作(UI)相关的操作可以延后处理,当确定息屏流程处理完成后,马上进入UI操作的流程;另外,如果之前的非UI操作已经完成则跳过,否则在UI线程继续完成非UI操作,最后在UI操作流程完成后,系统进行锁屏界面的绘制。It is understandable that before the off-screen related process is executed, the operations related to the interface operation (UI) can be postponed. When it is determined that the off-screen process is completed, the UI operation process will be entered immediately; in addition, if before If the non-UI operation has been completed, it is skipped, otherwise, the UI thread continues to complete the non-UI operation, and finally after the UI operation process is completed, the system draws the lock screen interface.

具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. The specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.

该终端解锁装置可以集成在如手机、平板电脑、掌上电脑PDA等移动终端中。The terminal unlocking device can be integrated in mobile terminals such as mobile phones, tablet computers, PDAs and the like.

由上述可知,本实施例提供的终端解锁装置,当接收到终端息屏指令时,生成启动锁屏流程的触发信号,从而根据该触发信号,启动息屏流程与锁屏优先操作流程进行并行处理,该锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程,若检测到息屏流程已完成,则根据并行处理结果生成终端锁屏界面;也就是说,从收到终端息屏指令就开始触发息屏流程与锁屏优先操作流程进行并行处理,大大的减少了锁屏耗时,提高锁屏响应速度。As can be seen from the above, the terminal unlocking device provided in this embodiment generates a trigger signal to start the screen lock process when receiving a terminal screen off command, so that according to the trigger signal, the screen off process is started and the screen lock priority operation process is processed in parallel , the lock screen priority operation process is the operation process related to non-interface operations in the lock screen process. If it is detected that the screen off process has been completed, the terminal lock screen interface will be generated according to the parallel processing result; The screen command starts to trigger the off-screen process and the lock screen priority operation process to be processed in parallel, which greatly reduces the time spent on locking the screen and improves the response speed of the lock screen.

本发明还提供一种计算机设备,其中该计算机设备可包括如手机、平板电脑、掌上电脑PDA等终端,请参阅图5,图5为本发明实施例提供的终端结构示意图。该终端500可以包括有一个或一个以上计算机可读存储介质的存储器501、传感器502、输入单元503、显示单元504、电源505以及包括有一个或者一个以上处理核心的处理器506等部件。本领域技术人员可以理解,图5中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The present invention also provides a computer device, wherein the computer device may include a terminal such as a mobile phone, a tablet computer, a PDA, etc. Please refer to FIG. 5 , which is a schematic structural diagram of a terminal provided by an embodiment of the present invention. The terminal 500 may include a memory 501 including one or more computer-readable storage media, a sensor 502, an input unit 503, a display unit 504, a power supply 505, and a processor 506 including one or more processing cores. Those skilled in the art can understand that the terminal structure shown in FIG. 5 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

存储器501可用于存储应用程序和数据。存储器501存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器506通过运行存储在存储器501的应用程序,从而执行各种功能应用以及数据处理。此外,存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器501还可以包括存储器控制器,以提供处理器506和输入单元503对存储器501的访问。The memory 501 can be used to store applications and data. The application programs stored in the memory 501 include executable codes. Applications can be composed of various functional modules. The processor 506 executes various functional applications and data processing by running the application programs stored in the memory 501 . In addition, the memory 501 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 501 may further include a memory controller to provide the processor 506 and the input unit 503 with access to the memory 501 .

终端还可包括至少一种传感器502,比如光传感器、重力加速度传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one sensor 502, such as a light sensor, a gravity acceleration sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the terminal moves to the ear . As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

输入单元503可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元503可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器506,并能接收处理器506发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元503还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、指纹识别模组、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 503 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 503 may include a touch-sensitive surface and other input devices. A touch-sensitive surface, also known as a touch display or trackpad, collects user touch operations on or near it (for example, the user uses a finger, stylus, etc. any suitable object or accessory on the touch-sensitive surface or on the touch-sensitive Operation near the surface), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to to the processor 506, and can receive and execute commands sent by the processor 506. In addition, touch-sensitive surfaces can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to touch-sensitive surfaces, the input unit 503 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), fingerprint recognition modules, trackballs, mice, joysticks, and the like.

显示单元504可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元504可包括显示面板。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器506以确定触摸事件的类型,随后处理器506根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图5中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 504 can be used to display information input by or provided to the user and various graphical user interfaces of the terminal. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 504 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is sent to the processor 506 to determine the type of the touch event, and then the processor 506 displays the touch event according to the type of the touch event. The corresponding visual output is provided on the panel. Although in FIG. 5, the touch-sensitive surface and the display panel are used as two independent components to realize the input and input functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize the input and output functions.

终端还包括给各个部件供电的电源505(比如电池)。优选的,电源可以通过电源管理系统与处理器506逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源505还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power source 505 (such as a battery) for powering various components. Preferably, the power supply can be logically connected to the processor 506 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 505 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

处理器506是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器501内的应用程序,以及调用存储在存储器501内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。可选的,处理器506可包括一个或多个处理核心;优选的,处理器506可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等。The processor 506 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing the application programs stored in the memory 501 and calling the data stored in the memory 501, various functions of the terminal are executed. function and process data, so as to monitor the terminal as a whole. Optionally, the processor 506 may include one or more processing cores; preferably, the processor 506 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. .

尽管图5中未示出,终端还可以包括摄像头、蓝牙模块、网络模块等,在此不再赘述。Although not shown in FIG. 5 , the terminal may also include a camera, a Bluetooth module, a network module, etc., which will not be repeated here.

具体在本实施例中,终端中的处理器506会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器501中,并由处理器506来运行存储在存储器501中的应用程序,从而实现各种功能:Specifically, in this embodiment, the processor 506 in the terminal loads the executable code corresponding to the process of one or more application programs into the memory 501 according to the following instructions, and the processor 506 runs the executable code stored in the memory. 501 applications to achieve various functions:

当接收到终端息屏指令时,生成启动锁屏流程的触发信号;根据所述触发信号,获取预设的锁屏优先操作流程,所述锁屏优先操作流程为锁屏流程中与非界面操作相关的操作流程;对息屏流程与所述锁屏优先操作流程进行并行处理,得到并行处理结果;若检测到息屏流程已完成,则根据所述并行处理结果生成终端锁屏界面。When receiving the command to close the screen of the terminal, generate a trigger signal to start the lock screen process; according to the trigger signal, obtain the preset lock screen priority operation process, and the lock screen priority operation process is the lock screen process and non-interface operation Relevant operation procedures: parallel processing of the off-screen procedure and the lock screen priority operation procedure to obtain a parallel processing result; if it is detected that the off-screen procedure has been completed, a terminal lock screen interface is generated according to the parallel processing result.

在某些实施方式中,所述处理器506用于当接收到终端息屏指令时,生成启动锁屏流程的触发信号,包括:当接收到终端息屏指令时,获取锁屏相关状态;在确定所述锁屏相关状态与终端当前系统状态对应同步后,生成启动锁屏流程的触发信号。In some implementations, the processor 506 is configured to generate a trigger signal to start the lock screen process when receiving the terminal screen off command, including: when receiving the terminal screen off command, acquiring the related state of the lock screen; After it is determined that the related state of the lock screen is correspondingly synchronized with the current system state of the terminal, a trigger signal for starting the screen lock process is generated.

在某些实施方式中,所述处理器506对息屏流程与所述锁屏优先操作流程进行并行处理的过程中,还用于:当确定终端当前系统状态发生变化时,对锁屏相关状态与终端当前系统状态进行同步。In some implementations, the processor 506 is further configured to: when it is determined that the current system status of the terminal changes, to update the screen lock related status Synchronize with the current system state of the terminal.

在一种实施方式中,所述处理器506用于根据所述并行处理结果生成终端锁屏界面时,可以包括:若所述并行处理结果指示锁屏优先操作流程已完成,则进入锁屏流程中与界面操作相关的操作流程并处理;在确定与界面操作相关的操作流程完成后,进行锁屏界面的绘制,以生成终端锁屏界面。In one embodiment, when the processor 506 is used to generate the terminal lock screen interface according to the parallel processing result, it may include: if the parallel processing result indicates that the lock screen priority operation process has been completed, enter the lock screen process and process the operation process related to the interface operation; after determining that the operation process related to the interface operation is completed, draw the lock screen interface to generate the terminal lock screen interface.

在另一种实施方式中,所述处理器506用于根据所述并行处理结果生成终端锁屏界面时,可以包括:若所述并行处理结果指示锁屏优先操作流程未完成,则继续执行所述锁屏优先操作流程,并在确定锁屏优先操作流程完成时,进入锁屏流程中与界面操作相关的操作流程并处理;在确定与界面操作相关的操作流程完成后,进行锁屏界面的绘制,以生成终端锁屏界面。In another implementation manner, when the processor 506 is used to generate the terminal lock screen interface according to the parallel processing result, it may include: if the parallel processing result indicates that the lock screen priority operation process has not been completed, continue to execute the Describe the lock screen priority operation process, and when it is determined that the lock screen priority operation process is completed, enter and process the operation process related to the interface operation in the lock screen process; after determining that the operation process related to the interface operation is completed, proceed to the lock screen interface Draw to generate the terminal lock screen interface.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对终端解锁方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases. For the part that is not described in detail in a certain embodiment, refer to the detailed description of the terminal unlocking method above, and will not be repeated here.

本发明实施例提供的所述终端解锁装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述终端解锁装置与上文实施例中的终端解锁方法属于同一构思,在所述终端解锁装置上可以运行所述终端解锁方法实施例中提供的任一方法,其具体实现过程详见所述终端解锁方法实施例,此处不再赘述。The terminal unlocking device provided by the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, etc. Any method provided in the embodiment of the terminal unlocking method can be run on the unlocking device, and its specific implementation process can be found in the embodiment of the terminal unlocking method, and will not be repeated here.

需要说明的是,对本发明所述终端解锁方法而言,本领域普通测试人员可以理解实现本发明实施例所述终端解锁方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述终端解锁方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read OnlyMemory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the terminal unlocking method of the present invention, ordinary testers in the field can understand that all or part of the process of realizing the terminal unlocking method of the embodiment of the present invention can be completed by controlling related hardware through computer programs , the computer program may be stored in a computer-readable storage medium, such as stored in the memory of the terminal, and executed by at least one processor in the terminal, and the execution process may include the steps of the terminal unlocking method Example flow. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.

对本发明实施例的所述终端解锁装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the terminal unlocking device according to the embodiment of the present invention, each functional module may be integrated into one processing chip, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .

以上对本发明实施例所提供的一种终端解锁方法、装置及计算机设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A terminal unlocking method, device and computer equipment provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for helping Understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as a limitation of the invention.

Claims (11)

1. a kind of terminal unlock method, it is characterised in that including:
When terminal breath screen instruction is received, generation starts the trigger signal of screen locking flow;
According to the trigger signal, default screen locking priority service flow is obtained, the screen locking priority service flow is screen locking stream The operating process related to non-interface operation in journey;
Parallel processing is carried out with the screen locking priority service flow to breath screen flow, parallel processing result is obtained;
If detecting breath screen flow to have completed, terminal screen lock interface is generated according to the parallel processing result.
2. terminal unlock method according to claim 1, it is characterised in that described when terminal breath screen instruction is received, The trigger signal that generation starts screen locking flow includes:
When terminal breath screen instruction is received, screen locking correlation behavior is obtained;
It is determined that after screen locking correlation behavior synchronization corresponding with terminal current system conditions, generation starts the triggering of screen locking flow Signal.
3. terminal unlock method according to claim 2, it is characterised in that described pair of breath screen flow is preferential with the screen locking Operating process carries out parallel processing, also includes:
When it is determined that terminal current system conditions change, screen locking correlation behavior and terminal current system conditions are carried out together Step.
4. terminal unlock method according to claim 1, it is characterised in that described to be generated according to the parallel processing result Terminal screen lock interface includes:
If the parallel processing result indicates screen locking priority service flow to complete, into screen locking flow with interface operation phase The operating process of pass is simultaneously processed;
It is determined that after the completion of the operating process related to interface operation, the drafting of locking screen interface is carried out, to generate terminal screen locking circle Face.
5. terminal unlock method according to claim 1, it is characterised in that described to be generated according to the parallel processing result Terminal screen lock interface includes:
If the parallel processing result indicates screen locking priority service flow not complete, the screen locking priority service stream is continued executing with Journey, and when it is determined that screen locking priority service flow is completed, the operating process related to interface operation and locate into screen locking flow Reason;
It is determined that after the completion of the operating process related to interface operation, the drafting of locking screen interface is carried out, to generate terminal screen locking circle Face.
6. a kind of terminal unlocking device, it is characterised in that including:
Signal generation module, for when terminal breath screen instruction is received, generation to start the trigger signal of screen locking flow;
Acquisition module, for according to the trigger signal, obtaining default screen locking priority service flow, the screen locking priority service Flow is operating process related to non-interface operation in screen locking flow;
Parallel processing module, for carrying out parallel processing with the screen locking priority service flow to breath screen flow, is located parallel Reason result;
Interface generation module, if having been completed for detecting breath screen flow, terminal lock is generated according to the parallel processing result Screen interface.
7. terminal unlocking device according to claim 6, it is characterised in that the signal generation module includes:
Acquisition submodule, for when terminal breath screen instruction is received, obtaining screen locking correlation behavior;
Signal generation submodule, for it is determined that after screen locking correlation behavior synchronization corresponding with terminal current system conditions, giving birth to Into the trigger signal for starting screen locking flow.
8. terminal unlocking device according to claim 7, it is characterised in that described device also includes:
Synchronization module, for when it is determined that terminal current system conditions change, being currently to screen locking correlation behavior and terminal System state is synchronized.
9. terminal unlocking device according to claim 6, it is characterised in that the interface generation module includes:
First treatment submodule, if indicating screen locking priority service flow to complete for the parallel processing result, enters lock The operating process related to interface operation and processed in screen flow;
Interface generates submodule, for it is determined that after the completion of the operating process related to interface operation, carrying out painting for locking screen interface System, to generate terminal screen lock interface.
10. terminal unlocking device according to claim 9, it is characterised in that the interface generation module also includes:
Second processing submodule, if indicating screen locking priority service flow not complete for the parallel processing result, continues to hold The row screen locking priority service flow, and when it is determined that screen locking priority service flow is completed, grasped with interface into screen locking flow Make related operating process and process.
A kind of 11. computer equipments, it is characterised in that including:
Be stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs such as claim 1 to right It is required that the method described in 5 any one.
CN201710113231.7A 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment Expired - Fee Related CN106933576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113231.7A CN106933576B (en) 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113231.7A CN106933576B (en) 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN106933576A true CN106933576A (en) 2017-07-07
CN106933576B CN106933576B (en) 2021-01-08

Family

ID=59423557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113231.7A Expired - Fee Related CN106933576B (en) 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN106933576B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032448A (en) * 2019-04-15 2019-07-19 Oppo广东移动通信有限公司 A kind of terminal unlocking control method, device and computer readable storage medium
CN111079114A (en) * 2019-12-13 2020-04-28 Oppo(重庆)智能科技有限公司 Unlocking method, device, terminal and computer readable storage medium
CN117707320A (en) * 2023-06-30 2024-03-15 荣耀终端有限公司 Method for controlling screen-off display, electronic equipment and storage medium
CN119271280A (en) * 2024-04-22 2025-01-07 荣耀终端有限公司 Screen bright processing method, device, chip, electronic device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331228A (en) * 2014-10-17 2015-02-04 小米科技有限责任公司 Screen locking method and device
WO2016107304A1 (en) * 2014-12-31 2016-07-07 中兴通讯股份有限公司 Terminal screen control method, and system and terminal
CN106250145A (en) * 2016-07-29 2016-12-21 北京金山安全软件有限公司 Screen locking method and device and terminal equipment
CN106383637A (en) * 2016-11-02 2017-02-08 青岛海信移动通信技术股份有限公司 Screen locking method and device, and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331228A (en) * 2014-10-17 2015-02-04 小米科技有限责任公司 Screen locking method and device
WO2016107304A1 (en) * 2014-12-31 2016-07-07 中兴通讯股份有限公司 Terminal screen control method, and system and terminal
CN106250145A (en) * 2016-07-29 2016-12-21 北京金山安全软件有限公司 Screen locking method and device and terminal equipment
CN106383637A (en) * 2016-11-02 2017-02-08 青岛海信移动通信技术股份有限公司 Screen locking method and device, and terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032448A (en) * 2019-04-15 2019-07-19 Oppo广东移动通信有限公司 A kind of terminal unlocking control method, device and computer readable storage medium
CN111079114A (en) * 2019-12-13 2020-04-28 Oppo(重庆)智能科技有限公司 Unlocking method, device, terminal and computer readable storage medium
CN117707320A (en) * 2023-06-30 2024-03-15 荣耀终端有限公司 Method for controlling screen-off display, electronic equipment and storage medium
CN119271280A (en) * 2024-04-22 2025-01-07 荣耀终端有限公司 Screen bright processing method, device, chip, electronic device and medium

Also Published As

Publication number Publication date
CN106933576B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
US10509530B2 (en) Method and apparatus for processing touch input
CN104156171B (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
US8732624B2 (en) Protection for unintentional inputs
US20140078091A1 (en) Terminal Device and Method for Quickly Starting Program
CN117270746A (en) Application launch in a multi-display device
US20120229406A1 (en) Method and Device for Identifying and Unlocking with Contact Surface Model
CN105630327B (en) The method of the display of portable electronic device and control optional element
CN106973099A (en) A kind of data-updating method, apparatus and system
CN107181559A (en) Processing method, device, storage medium and the terminal of Radio frequency interference
CN103838426B (en) Touch inputting method and mobile terminal
CN106919824B (en) Fingerprint unlocking control method and device and computer equipment
US20130159917A1 (en) Dynamic user interface based on connected devices
TWI675329B (en) Information image display method and device
TW201344552A (en) Mobile device and gesture determination method
CN107147453A (en) Method, device, storage medium and terminal for processing radio frequency interference
CN107395871A (en) A kind of method, apparatus, storage medium and terminal for opening application
CN108108111A (en) A kind of inspection method, device and the mobile terminal of screen locking pictorial information
CN106933576B (en) Terminal unlocking method and device and computer equipment
US20130318381A1 (en) Electronic apparatus and start method for electronic apparatus
CN106886351B (en) A method, device and computer equipment for displaying terminal time information
CN104182161A (en) Method and device for opening screen functional area
KR20110041110A (en) Method and device for managing touch function in portable terminal
CN106791170A (en) network processing method, device and terminal
CN106778131A (en) A display method, device and terminal for hiding information
EP3528103B1 (en) Screen locking method, terminal and screen locking device

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