WO2021259264A1 - Screen display method and apparatus, terminal, and computer-readable storage medium - Google Patents

Screen display method and apparatus, terminal, and computer-readable storage medium Download PDF

Info

Publication number
WO2021259264A1
WO2021259264A1 PCT/CN2021/101549 CN2021101549W WO2021259264A1 WO 2021259264 A1 WO2021259264 A1 WO 2021259264A1 CN 2021101549 W CN2021101549 W CN 2021101549W WO 2021259264 A1 WO2021259264 A1 WO 2021259264A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
aod
unlocking
terminal
display
Prior art date
Application number
PCT/CN2021/101549
Other languages
French (fr)
Chinese (zh)
Inventor
谢双双
Original Assignee
深圳市万普拉斯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2021259264A1 publication Critical patent/WO2021259264A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Definitions

  • the present invention relates to the field of terminal display technology, and in particular to a screen display method, device, terminal and computer-readable storage medium.
  • UI User Interface
  • the current application initiates the corresponding process, and the upper UI application draws and synthesizes it before it can be displayed.
  • AOD always-on display
  • the user when the user is unlocked, it will switch to display the desktop UI.
  • the desktop UI needs to be drawn, then the upper-level application is synthesized, and then the The data to be displayed is sent to the display buffer and finally displayed on the screen.
  • the purpose of the present invention is to overcome the deficiencies in the prior art and provide a screen display method, device, terminal and computer-readable storage medium.
  • the embodiment of the present invention provides a screen display method, which is applied to a terminal, and the method includes:
  • the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
  • the method before the successful unlocking operation is detected, the method further includes:
  • the terminal is in the AOD mode and displays the AOD interface; wherein the addresses in the display buffer of the AOD interface and the target interface adjacent to the AOD interface are mapped to the engine of the display.
  • the method further includes:
  • the hiding the current AOD interface and displaying the target interface pre-hidden under the AOD interface includes:
  • the engine transparency corresponding to the AOD interface is set to a transparent state, and then the AOD interface and the target interface are mixed to display the mixed buffer data on the display.
  • the unlocking is fingerprint unlocking, key unlocking, or face recognition unlocking; wherein, the fingerprint unlocking is under-screen fingerprint unlocking or off-screen fingerprint unlocking.
  • the target interface is a system desktop or an application interface displayed when the screen was last locked.
  • the embodiment of the present invention also provides a screen display device, which is applied to a terminal, and the device includes:
  • An unlocking processing unit for detecting an unlocking operation on the terminal
  • the interface display unit is configured to hide the current AOD interface and display the target interface hidden under the AOD interface in advance when the unlocking processing unit detects a successful unlocking operation on the terminal.
  • the interface display unit is further configured to display the AOD interface when the terminal is in the AOD mode; wherein the AOD interface and the target interface adjacent to the AOD interface are displayed The address in the cache is mapped to the engine of the display.
  • the above-mentioned screen display device further includes:
  • the unlocking processing unit is further configured to, when the terminal displays the AOD interface, if an unlocking operation to the terminal is detected, then judging whether the detected unlocking operation matches a preset unlocking operation; if they match, then judging The unlocking is successful; otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
  • the hiding the current AOD interface and displaying the target interface pre-hidden under the AOD interface includes:
  • the interface display unit sets the engine transparency corresponding to the AOD interface to a transparent state, and then mixes the AOD interface and the target interface to display the mixed buffer data on the display.
  • An embodiment of the present invention also provides a terminal, the terminal includes a processor and a memory, the memory stores a computer program, and the processor is configured to execute the computer program to implement the above-mentioned screen display method.
  • An embodiment of the present invention also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed, the above-mentioned screen display method is implemented.
  • the technical solution of the present invention speeds up the interface display speed of the terminal after unlocking by hiding the AOD interface and directly displaying the target interface hidden in the AOD interface in advance. For the user's intuitive feeling, the unlocking speed is accelerated and the unlocking is more sensitive. Thereby improving the user experience and so on.
  • Figure 1 shows a schematic structural diagram of a terminal
  • FIG. 2 shows a schematic diagram of the flow of the existing switching display
  • FIG. 3 shows a first schematic flowchart of a screen display method according to an embodiment of the present invention
  • FIG. 4 shows a schematic diagram of the application of the screen display method according to the embodiment of the present invention.
  • FIG. 5 shows a schematic diagram of a second flow of a screen display method according to an embodiment of the present invention
  • Fig. 6 shows a schematic structural diagram of a screen display device according to an embodiment of the present invention.
  • 100-mobile phone 110-RF circuit; 120-memory; 130-input unit; 140-display unit; 150-shooting unit; 160-audio circuit; 170-WiFi module; 180-processor; 190-power supply;
  • 200-screen display device 210-unlock processing unit; 220-interface display unit.
  • the mobile phone 100 includes: an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a photographing unit 150, an audio circuit 160, a WiFi (wireless fidelity, wireless fidelity) module 170, a processor 180, And power supply 190 and other components.
  • RF Radio Frequency
  • the mobile phone 100 includes: an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a photographing unit 150, an audio circuit 160, a WiFi (wireless fidelity, wireless fidelity) module 170, a processor 180, And power supply 190 and other components.
  • RF Radio Frequency
  • the RF circuit 110 can be used to receive and send wireless signals, etc.;
  • the memory 120 can be used to store application programs and user-related file information required for the operation of the mobile phone 100;
  • the input unit 130 can include buttons, touch panels, or other Input devices, etc., to receive information input from the user, etc.;
  • the display unit 140 may include a display panel, which is mainly used to display an interface UI containing information such as images and text;
  • the shooting unit 150 mainly includes front and rear cameras, etc., and is mainly used for Take pictures, videos, etc.;
  • the audio circuit 160 is connected to sound output devices such as earpieces, speakers, and sound input devices such as microphones, and can be used to record or play voices;
  • the WiFi module 170 can be used to send and receive wifi signals to realize information transmission, etc.
  • the processor 180 is mainly used to enable other units or modules to perform corresponding functions, etc.; and the power supply 190 mainly includes battery equipment, which is used to provide the required operating voltages for each module or unit in the mobile phone 100, etc. .
  • the structure of the mobile phone 100 shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include more or less components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the following uses a terminal as an example to illustrate the technical solution of the present invention, where the terminal is not limited to being applied to a mobile phone, but can also be applied to a tablet computer and the like.
  • AOD always on display
  • off-screen display or off-screen display
  • the AOD interface refers to the interface displayed when the terminal is in AOD mode. When the terminal is in the AOD mode, the terminal will still display some common information on the screen after the screen is turned off. For example, the AOD interface can display power, time, important notification reminders, etc. Since in the AOD mode, the user can directly see the above information without touching the terminal with his hand, which reduces the user's operation steps and provides great convenience.
  • the terminal in the AOD mode is usually in a locked screen state, so when a user needs to use an application in the terminal, it is usually necessary to perform a corresponding unlock operation on the terminal, and then exit the current AOD interface and display the required interface UI.
  • the problem of interface switching and display is involved.
  • the existing solution is mainly to draw and synthesize the display interface through the upper UI application in the system, and send the synthesized data into the display buffer (ie framebuffer), and finally display it on the screen. .
  • the existing solution process mainly includes:
  • the above two steps of destroying the AOD interface and creating the desktop UI can be performed in an agreed sequence or simultaneously.
  • the desktop UI when creating the desktop UI, the desktop UI needs to be drawn through the upper Canvas first, and after the AOD interface is destroyed, the upper SurfaceFlinger synthesizes the two interfaces, and then sends the synthesized data to the display
  • the framebuffer is cached and finally displayed on the screen.
  • the upper Surfaceflinger when sending data to the framebuffer, the upper Surfaceflinger mainly sends the data to be displayed to the framebuffer through an interface call.
  • the present invention proposes a new solution to solve the above-mentioned problems, which can speed up the display speed of the terminal interface after unlocking, and improve the user experience.
  • this embodiment proposes a screen display method, which can be applied to terminals, such as mobile phones, tablet computers, and other electronic devices that can be unlocked and displayed on the interface through a touch screen.
  • step S100 when a successful unlocking operation of the terminal is detected, the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
  • the target interface refers to the interface presented to the user at the first time after the user unlocks the terminal.
  • it can be the system desktop UI or the related application interface that was displayed when the screen was last locked.
  • the application is directly locked without exiting in time. After the unlocking is successful, the application interface that was displayed last time will continue to be displayed.
  • step S100 the terminal is in the AOD mode and displays the aforementioned AOD interface.
  • step S110 after the successful unlocking is detected, that is, after the user identity is successfully recognized, the display will be switched to the target interface.
  • this embodiment first hides the target interface under the AOD interface, and then after the unlocking is successful, the AOD interface is hidden and the target interface is controlled to be directly displayed.
  • the so-called hiding of the current AOD interface means that the AOD interface is not destroyed before the target interface appears, and the AOD interface and the target interface are combined together and sent to the display buffer.
  • the target interface will be located below the AOD interface, which can be understood as setting the adjacent layer position of the target interface and the AOD interface, and the layer of the AOD interface is located above the layer of the target interface.
  • the AOD interface Before the terminal is unlocked from the beginning to unlock successfully, the AOD interface will continue to be displayed and the target interface located below it will be blocked. After the unlocking is successful, the AOD interface at the top is immediately hidden and the target interface is displayed.
  • the addresses of the AOD interface and the target interface adjacent to the AOD interface in the display cache can be mapped together or respectively mapped to The engine of the display.
  • the data of the AOD interface and the target interface are made to correspond to two different addresses in the display buffer (framebuffer), and then the two different addresses are mapped together or respectively to the terminal's On the engine of the monitor.
  • the addresses of the AOD interface and the target interface adjacent to the AOD interface in the display cache may also be mapped to different engines of the display respectively.
  • the terminal usually includes upper-layer applications and lower-layer hardware.
  • the display includes hardware display components including a display screen at the bottom layer, a display driver, a display processing unit DPU, and an image processing unit GPU.
  • the engine refers to the image processing engine at the bottom layer for controlling the display of layer data. It can complete image processing by using the hardware image processing unit GPU and/or display processing unit DPU and send the processed data directly framebuffer. Among them, different layers can correspond to different engines.
  • the system can switch the display by notifying the underlying display. Since the AOD interface and the target interface are set with corresponding engines, the transparency of the engine corresponding to the AOD interface can be set to a transparent state, so that the AOD interface The data is not visible.
  • the transparency of the engine can be adjusted by the alpha blending method, and the background and foreground of the AOD interface can be set with different alpha values and mixed, so that the AOD interface can be set to be transparent.
  • the alpha value ranges from 0 to 1. When the alpha value is 0, the transparency of the engine is transparent; when the alpha value is 1, it is opaque.
  • the transparency is expressed in hexadecimal, and the transparency is divided into 255 levels, where the transparency of 100% is 00, and the transparency of 0% is FF. It can be understood that how to set the transparency of the engine to a transparent state can be determined according to the actual scene, which is not limited here.
  • the AOD interface and the target interface are mixed, and the mixed data is displayed.
  • the cached data in the framebuffer will be updated accordingly.
  • other interface data located below the target interface they can also be mixed together.
  • the framebuffer is a frame buffer allocated by the system for display data.
  • the updated data in the framebuffer can be directly sent to the display screen for display.
  • the screen display method proposed in this embodiment does not need to wait for the upper layer application to perform operations such as drawing and compositing, but directly controls the underlying hardware to complete the switching display of the interface.
  • the entire switching display process can be shortened by 50ms to 80ms.
  • the screen display method when the terminal displays the AOD interface, it is in the AOD mode, as shown in FIG. 5, the screen display method further includes:
  • Step S100 It is detected whether there is an unlocking operation on the terminal.
  • the unlocking operation may include, but is not limited to, fingerprint unlocking, key unlocking, facial recognition unlocking, and the like.
  • fingerprint unlocking can be divided into under-screen fingerprint unlocking or off-screen fingerprint unlocking.
  • the main principle of under-screen fingerprint unlocking is to perform user fingerprint identification through a hidden fingerprint identification sensor located at the bottom of the screen.
  • the off-screen fingerprint unlocking is other fingerprint unlocking methods besides the under-screen fingerprint unlocking, for example, by setting the fingerprint recognition sensor below the panel of the visible home button or touch virtual key on the terminal.
  • step S101 if it exists, it is determined whether the current unlocking operation matches the preset unlocking operation.
  • the terminal can have multiple unlocking methods at the same time.
  • step S101 when judging whether it matches, it needs to be matched according to the actual unlocking operation. For example, if it is an under-screen fingerprint unlocking operation, the fingerprint information obtained by the under-screen fingerprint recognition sensor is compared with the pre-stored authenticated fingerprint. If the comparison is successful, step S102 is executed, otherwise, step S103 is executed.
  • step S102 if it matches, it is determined that the unlocking is successful.
  • step S110 is executed, that is, an interface switching display operation is performed.
  • step S103 if it does not match, it is determined that the unlocking has failed, and the AOD interface is continued to be displayed.
  • the screen display method proposed in this embodiment changes the switching display process, that is, directly uses the underlying hardware to display the switching, without the need for drawing and synthesis through the upper application , Which speeds up the display of the target interface after unlocking, thereby greatly improving the user experience and so on.
  • this embodiment proposes a screen display device 200 applied to a terminal, and the device includes:
  • the unlocking processing unit 210 is configured to detect an unlocking operation on the terminal.
  • the interface display unit 220 is configured to hide the current AOD interface and display the target interface previously hidden under the AOD interface when the unlocking processing unit 210 detects a successful unlocking operation on the terminal.
  • the interface display unit 220 is also configured to display the aforementioned AOD interface when the terminal is in the AOD mode before the unlocking processing unit 210 detects a successful unlocking operation.
  • the addresses in the display cache of the AOD interface and the target interface of the adjacent AOD interface are mapped to the engine of the display.
  • the interface display unit 220 can exemplarily set the engine transparency corresponding to the AOD interface to a transparent state, and then display the AOD interface and the target interface.
  • the target interface is mixed to display the mixed buffer data on the display of the terminal.
  • the unlocking processing unit 210 is further configured to, when the terminal displays an AOD interface, if an unlocking operation on the terminal is detected, then determining whether the detected unlocking operation matches the preset unlocking operation; if they match, then determining that the unlocking is successful; Otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
  • the present invention also provides a terminal, which may include mobile terminals such as mobile phones and tablet computers, and may also be other electronic devices with touch unlocking.
  • the terminal includes a memory and a processor, and the memory stores a computer program.
  • the processor runs the computer program to enable the mobile terminal to execute the above-mentioned screen display method or the functions of each module in the above-mentioned screen display device 200.
  • the memory may include a storage program area and a storage data area, where the storage program area can store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Use the created data (such as audio data, phone book, etc.) and so on.
  • the memory 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, a flash memory device, or other volatile solid-state storage devices.
  • This embodiment also provides a computer-readable storage medium for storing the computer program used in the aforementioned terminal.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more functions for realizing the specified logical function.
  • Executable instructions may also occur in a different order from the order marked in the drawings.
  • each block in the structure diagram and/or flowchart, and the combination of the blocks in the structure diagram and/or flowchart can be used as a dedicated hardware-based system that performs specified functions or actions. , Or can be realized by a combination of dedicated hardware and computer instructions.
  • the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
  • the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present invention essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .

Abstract

Provided are a screen display method and apparatus, a terminal, and a computer-readable storage medium. The method comprises: when it is detected that an unlocking operation on a terminal is successful, hiding the current AOD interface, and displaying a target interface which is pre-hidden under the AOD interface. According to the technical solution of the present invention, the interface display speed after a terminal is unlocked can be increased, and for a user, the unlocking speed is increased, thereby improving the user experience, etc.

Description

屏幕显示方法、装置、终端和计算机可读存储介质Screen display method, device, terminal and computer readable storage medium 技术领域Technical field
本发明涉及终端显示技术领域,尤其涉及一种屏幕显示方法、装置、终端和计算机可读存储介质。The present invention relates to the field of terminal display technology, and in particular to a screen display method, device, terminal and computer-readable storage medium.
背景技术Background technique
对于现有的终端设备,如基于安卓的原生或衍生系统的终端等,在终端的显示系统中,不同的应用往往对应有不同的用户界面(UI,User Interface),在进行UI显示过程中,通常由当前应用发起相应的流程,并由上层UI应用进行绘制和合成后才能显示。例如,当设备处于灭屏显示(Always on display,AOD)状态下,当用户解锁后,则将切换显示桌面UI时,此时需要经过对桌面UI的绘制,然后经过上层应用的合成,接着将待显示的数据送入显示缓存,最终在屏幕上显示出来。此外,在进行界面切换显示时,利用上述方案时,需要对上一个界面进行及时销毁,才能使下一界面的数据被送显。这一解决方案将延长了桌面UI的显示时间,对于用户而言,其直观感受就是终端解锁速度慢,反应不够灵敏等,从而降低了用户的体验。For existing terminal devices, such as terminals based on Android's native or derivative systems, in the display system of the terminal, different applications often correspond to different user interfaces (UI, User Interface). During the UI display process, Usually the current application initiates the corresponding process, and the upper UI application draws and synthesizes it before it can be displayed. For example, when the device is in the always-on display (AOD) state, when the user is unlocked, it will switch to display the desktop UI. At this time, the desktop UI needs to be drawn, then the upper-level application is synthesized, and then the The data to be displayed is sent to the display buffer and finally displayed on the screen. In addition, when performing interface switching and display, when using the above solution, the previous interface needs to be destroyed in time to enable the data of the next interface to be displayed. This solution will extend the display time of the desktop UI. For users, the intuitive experience is that the terminal is slow to unlock and the response is not sensitive enough, thereby reducing the user's experience.
发明内容Summary of the invention
有鉴于此,本发明的目的是为了克服现有技术中的不足,提供一种屏幕显示方法、装置、终端和计算机可读存储介质。In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and provide a screen display method, device, terminal and computer-readable storage medium.
本发明的实施例提供一种屏幕显示方法,应用于终端,所述方法包括:The embodiment of the present invention provides a screen display method, which is applied to a terminal, and the method includes:
当检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面。When a successful unlocking operation of the terminal is detected, the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
在一种实施例中,在上述的屏幕显示方法中,在检测到所述解锁成功操作之前,还包括:In an embodiment, in the above-mentioned screen display method, before the successful unlocking operation is detected, the method further includes:
所述终端处于AOD模式,并显示所述AOD界面;其中,所述AOD界面和相邻所述AOD界面的所述目标界面在显示缓存中的地址映射到显示器的引擎。The terminal is in the AOD mode and displays the AOD interface; wherein the addresses in the display buffer of the AOD interface and the target interface adjacent to the AOD interface are mapped to the engine of the display.
在一种实施例中,在上述的屏幕显示方法中,还包括:In an embodiment, in the above-mentioned screen display method, the method further includes:
当所述终端显示所述AOD界面时,若检测到对终端的解锁操作,则判断检 测到的所述解锁操作与预设解锁操作是否匹配;When the terminal displays the AOD interface, if an unlocking operation to the terminal is detected, determining whether the detected unlocking operation matches a preset unlocking operation;
若匹配,则判断解锁成功;否则,判断解锁失败,并继续显示所述AOD界面。If it matches, it is judged that the unlocking is successful; otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
在一种实施例中,所述隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面包括:In an embodiment, the hiding the current AOD interface and displaying the target interface pre-hidden under the AOD interface includes:
设置所述AOD界面对应的引擎透明度为透明状态,然后对所述AOD界面和所述目标界面进行混合,以将混合后的缓存数据显示在所述显示器上。The engine transparency corresponding to the AOD interface is set to a transparent state, and then the AOD interface and the target interface are mixed to display the mixed buffer data on the display.
在一种实施例中,所述解锁为指纹解锁、按键解锁或人脸识别解锁;其中,所述指纹解锁为屏下指纹解锁或非屏下指纹解锁。In one embodiment, the unlocking is fingerprint unlocking, key unlocking, or face recognition unlocking; wherein, the fingerprint unlocking is under-screen fingerprint unlocking or off-screen fingerprint unlocking.
在一种实施例中,所述目标界面为系统桌面或上一次锁屏时显示的应用界面。In an embodiment, the target interface is a system desktop or an application interface displayed when the screen was last locked.
本发明的实施例还提供一种屏幕显示装置,应用于终端,所述装置包括:The embodiment of the present invention also provides a screen display device, which is applied to a terminal, and the device includes:
解锁处理单元,用于检测对终端的解锁操作;An unlocking processing unit for detecting an unlocking operation on the terminal;
界面显示单元,用于当所述解锁处理单元检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面。The interface display unit is configured to hide the current AOD interface and display the target interface hidden under the AOD interface in advance when the unlocking processing unit detects a successful unlocking operation on the terminal.
在一种实施例中,所述界面显示单元还用于当所述终端处于AOD模式时,显示所述AOD界面;其中,所述AOD界面和相邻所述AOD界面的所述目标界面在显示缓存中的地址映射到显示器的引擎。In an embodiment, the interface display unit is further configured to display the AOD interface when the terminal is in the AOD mode; wherein the AOD interface and the target interface adjacent to the AOD interface are displayed The address in the cache is mapped to the engine of the display.
在一种实施例中,在上述的屏幕显示装置中,还包括:In an embodiment, the above-mentioned screen display device further includes:
所述解锁处理单元还用于当所述终端显示所述AOD界面时,若检测到对终端的解锁操作,则判断检测到的所述解锁操作与预设解锁操作是否匹配;若匹配,则判断解锁成功;否则,判断解锁失败,并继续显示所述AOD界面。The unlocking processing unit is further configured to, when the terminal displays the AOD interface, if an unlocking operation to the terminal is detected, then judging whether the detected unlocking operation matches a preset unlocking operation; if they match, then judging The unlocking is successful; otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
在一种实施例中,所述隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面包括:In an embodiment, the hiding the current AOD interface and displaying the target interface pre-hidden under the AOD interface includes:
所述界面显示单元通过设置所述AOD界面对应的引擎透明度为透明状态,然后对所述AOD界面和所述目标界面进行混合,以将混合后的缓存数据显示在所述显示器上。The interface display unit sets the engine transparency corresponding to the AOD interface to a transparent state, and then mixes the AOD interface and the target interface to display the mixed buffer data on the display.
本发明的实施例还提供一种终端,所述终端包括处理器和存储器,所述存储器存储有计算机程序,所述处理器用于执行所述计算机程序以实施上述的屏幕显示方法。An embodiment of the present invention also provides a terminal, the terminal includes a processor and a memory, the memory stores a computer program, and the processor is configured to execute the computer program to implement the above-mentioned screen display method.
本发明的实施例还提供一种计算机可读存储介质,其存储有计算机程序, 所述计算机程序被执行时,实施上述的屏幕显示方法。An embodiment of the present invention also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed, the above-mentioned screen display method is implemented.
本发明的技术方案通过将AOD界面隐藏并直接显示预先隐藏于AOD界面的目标界面,加速了终端解锁后的界面显示速度,对于用户的直观感觉而言,即解锁速度得到加快,解锁更加灵敏,从而提升了用户体验等。The technical solution of the present invention speeds up the interface display speed of the terminal after unlocking by hiding the AOD interface and directly displaying the target interface hidden in the AOD interface in advance. For the user's intuitive feeling, the unlocking speed is accelerated and the unlocking is more sensitive. Thereby improving the user experience and so on.
附图说明Description of the drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show certain embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative work.
图1示出了一种终端的结构示意图;Figure 1 shows a schematic structural diagram of a terminal;
图2示出了现有的切换显示的流程示意图;FIG. 2 shows a schematic diagram of the flow of the existing switching display;
图3示出了本发明实施例的屏幕显示方法的第一流程示意图;FIG. 3 shows a first schematic flowchart of a screen display method according to an embodiment of the present invention;
图4示出了本发明实施例的屏幕显示方法的应用示意图;FIG. 4 shows a schematic diagram of the application of the screen display method according to the embodiment of the present invention;
图5示出了本发明实施例的屏幕显示方法的第二流程示意图;FIG. 5 shows a schematic diagram of a second flow of a screen display method according to an embodiment of the present invention;
图6示出了本发明实施例的屏幕显示装置的结构示意图。Fig. 6 shows a schematic structural diagram of a screen display device according to an embodiment of the present invention.
主要元件符号说明:Symbol description of main components:
100-手机;110-RF电路;120-存储器;130-输入单元;140-显示单元;150-拍摄单元;160-音频电路;170-WiFi模块;180-处理器;190-电源;100-mobile phone; 110-RF circuit; 120-memory; 130-input unit; 140-display unit; 150-shooting unit; 160-audio circuit; 170-WiFi module; 180-processor; 190-power supply;
200-屏幕显示装置;210-解锁处理单元;220-界面显示单元。200-screen display device; 210-unlock processing unit; 220-interface display unit.
具体实施方式detailed description
下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.
通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The components of the embodiments of the present invention generally described and illustrated in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.
下述各实施例均可应用于如图1所示的终端中,如手机,图1示出了该手 机的结构框图。该手机100包括:RF(Radio Frequency,射频)电路110、存储器120、输入单元130、显示单元140、拍摄单元150、音频电路160、WiFi(wireless fidelity,无线保真)模块170、处理器180、以及电源190等部件。其中,RF电路110可用于接收和发送无线信号等;存储器120可用于存储该手机100运行所需的应用程序及用户的相关文件信息等;输入单元130可包括按键、触摸面板,也可以包括其他输入设备等,以用于接收来自用户输入的信息等;显示单元140可以包括显示面板,主要用于显示包含图像、文字等信息的界面UI;拍摄单元150主要包括前后置摄像头等,主要用于拍摄图片、视频等;音频电路160连接听筒、扬声器等声音输出设备以及麦克风等声音输入设备,可用于录入或播放语音等;WiFi模块170可用于收发wifi信号以实现信息传输等。处理器180作为手机100的控制中心,主要用于使其他各单元或模块执行相应功能等;而电源190主要包括电池设备,用于为手机100中的各模块或单元提供所需的工作电压等。The following embodiments can be applied to the terminal shown in Fig. 1, such as a mobile phone, and Fig. 1 shows a structural block diagram of the mobile phone. The mobile phone 100 includes: an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a photographing unit 150, an audio circuit 160, a WiFi (wireless fidelity, wireless fidelity) module 170, a processor 180, And power supply 190 and other components. Among them, the RF circuit 110 can be used to receive and send wireless signals, etc.; the memory 120 can be used to store application programs and user-related file information required for the operation of the mobile phone 100; the input unit 130 can include buttons, touch panels, or other Input devices, etc., to receive information input from the user, etc.; the display unit 140 may include a display panel, which is mainly used to display an interface UI containing information such as images and text; the shooting unit 150 mainly includes front and rear cameras, etc., and is mainly used for Take pictures, videos, etc.; the audio circuit 160 is connected to sound output devices such as earpieces, speakers, and sound input devices such as microphones, and can be used to record or play voices; the WiFi module 170 can be used to send and receive wifi signals to realize information transmission, etc. As the control center of the mobile phone 100, the processor 180 is mainly used to enable other units or modules to perform corresponding functions, etc.; and the power supply 190 mainly includes battery equipment, which is used to provide the required operating voltages for each module or unit in the mobile phone 100, etc. .
本领域技术人员可以理解,图1中示出的手机100结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面以终端为例说明本发明的技术方案,其中,该终端并不限于应用于手机,也可以应用于平板电脑等。Those skilled in the art can understand that the structure of the mobile phone 100 shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include more or less components than shown in the figure, or a combination of certain components, or different component arrangements. The following uses a terminal as an example to illustrate the technical solution of the present invention, where the terminal is not limited to being applied to a mobile phone, but can also be applied to a tablet computer and the like.
AOD,always on display,称为熄屏显示(或灭屏显示)。而AOD界面,是指终端处于AOD模式下显示的界面。当终端处于AOD模式时,该终端在熄屏后仍会在屏幕上显示一些常用信息,例如,该AOD界面可显示如电量、时间、重要的通知提醒等。由于在AOD模式下,用户无需用手去触碰终端,便能直接看到上述信息,减少了用户操作的步骤,提供了极大的便利。AOD, always on display, is called off-screen display (or off-screen display). The AOD interface refers to the interface displayed when the terminal is in AOD mode. When the terminal is in the AOD mode, the terminal will still display some common information on the screen after the screen is turned off. For example, the AOD interface can display power, time, important notification reminders, etc. Since in the AOD mode, the user can directly see the above information without touching the terminal with his hand, which reduces the user's operation steps and provides great convenience.
处于AOD模式下的终端通常处于锁屏状态,故当用户需要使用终端中的应用时,通常需要对终端进行相应解锁操作,进而退出当前该AOD界面并显示所需的界面UI。对于这一过程,涉及到界面切换显示的问题。然而,对于切换显示流程,现有的解决方案主要是通过系统中的上层UI应用对待显示界面进行绘制与合成,并将合成后的数据送入显示缓存(即framebuffer),最终在屏幕上显示出来。The terminal in the AOD mode is usually in a locked screen state, so when a user needs to use an application in the terminal, it is usually necessary to perform a corresponding unlock operation on the terminal, and then exit the current AOD interface and display the required interface UI. For this process, the problem of interface switching and display is involved. However, for the switching display process, the existing solution is mainly to draw and synthesize the display interface through the upper UI application in the system, and send the synthesized data into the display buffer (ie framebuffer), and finally display it on the screen. .
例如,当终端解锁成功后,需要由AOD界面切换显示系统默认的界面(以下称桌面UI)时,如图2所示,现有的解决流程主要包括:For example, when the terminal is successfully unlocked, the AOD interface needs to be switched to display the system default interface (hereinafter referred to as desktop UI), as shown in Figure 2, the existing solution process mainly includes:
1)销毁AOD界面;1) Destroy the AOD interface;
2)创建桌面UI;2) Create a desktop UI;
3)将创建的桌面UI的数据发送到显示缓存中;3) Send the created desktop UI data to the display cache;
4)将显示缓存中的数据送显,即发送到屏幕上进行显示。4) Send the data in the display buffer to display, that is, send it to the screen for display.
其中,上述的销毁AOD界面和创建桌面UI,这两个步骤可按照约定的先后顺序执行,也可以同时执行。Among them, the above two steps of destroying the AOD interface and creating the desktop UI can be performed in an agreed sequence or simultaneously.
对于现有的解决方案,在创建桌面UI时,需要通过上层Canvas对桌面UI先进行绘制,以及在销毁AOD界面后,由上层SurfaceFlinger将这两个界面进行合成,然后将合成的数据送到显示缓存framebuffer中,最后显示在屏幕上。其中,在发送数据到framebuffer时,上层Surfaceflinger主要是通过接口调用方式将要显示的数据送到framebuffer。For the existing solution, when creating the desktop UI, the desktop UI needs to be drawn through the upper Canvas first, and after the AOD interface is destroyed, the upper SurfaceFlinger synthesizes the two interfaces, and then sends the synthesized data to the display The framebuffer is cached and finally displayed on the screen. Among them, when sending data to the framebuffer, the upper Surfaceflinger mainly sends the data to be displayed to the framebuffer through an interface call.
可知,每一次的切换显示都需要经过上层应用的绘制及合成才能完成,而且进行界面切换过程中,需要将前一界面及时销毁才能保证后一界面的正常显示,因此,这一方案将延长桌面UI的显示时间,对于用户而言,其直观感受就是终端在解锁速度慢、退出AOD界面的响应不够灵敏等。It can be seen that each switching display needs to be drawn and synthesized by the upper application, and during the interface switching process, the previous interface needs to be destroyed in time to ensure the normal display of the latter interface. Therefore, this solution will extend the desktop The UI display time, for the user, the intuitive feeling is that the terminal is slow in unlocking, and the response of exiting the AOD interface is not sensitive enough.
为此,本发明提出了一种新的解决方案来解决上述存在的问题,可以加快终端在解锁后的界面显示速度目的,提升用户体验等。For this reason, the present invention proposes a new solution to solve the above-mentioned problems, which can speed up the display speed of the terminal interface after unlocking, and improve the user experience.
下面以具体的实施例介绍本发明,当然,本发明并不限于这些具体的实施例。The present invention will be described below with specific embodiments. Of course, the present invention is not limited to these specific embodiments.
实施例1Example 1
请参照图3,本实施例提出一种屏幕显示方法,可应用于终端,如手机、平板电脑,以及能够通过触屏解锁及界面显示的其他电子设备等。3, this embodiment proposes a screen display method, which can be applied to terminals, such as mobile phones, tablet computers, and other electronic devices that can be unlocked and displayed on the interface through a touch screen.
步骤S100,当检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于AOD界面下的目标界面。In step S100, when a successful unlocking operation of the terminal is detected, the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
示范性地,所述目标界面是指用户在解锁终端操作后第一时间呈现给用户的界面,例如,可以是系统桌面UI,也可以是上一锁屏时正在显示的相关应用界面等,由于该应用没有及时退出就被直接锁屏,那么待解锁成功后,将继续显示上一次正在显示的应用界面。Exemplarily, the target interface refers to the interface presented to the user at the first time after the user unlocks the terminal. For example, it can be the system desktop UI or the related application interface that was displayed when the screen was last locked. The application is directly locked without exiting in time. After the unlocking is successful, the application interface that was displayed last time will continue to be displayed.
能够理解的是,在检测到上述步骤S100中的解锁成功操作之前,终端处于AOD模式并显示上述的AOD界面。It can be understood that, before the successful unlocking operation in step S100 is detected, the terminal is in the AOD mode and displays the aforementioned AOD interface.
在上述步骤S110中,当检测到解锁成功后,即成功识别出用户身份后,将切换显示到目标界面。为显示该目标界面,本实施例先将目标界面隐藏于该AOD 界面之下,然后在解锁成功后,对AOD界面进行隐藏并控制直接显示该目标界面。In the above step S110, after the successful unlocking is detected, that is, after the user identity is successfully recognized, the display will be switched to the target interface. In order to display the target interface, this embodiment first hides the target interface under the AOD interface, and then after the unlocking is successful, the AOD interface is hidden and the target interface is controlled to be directly displayed.
本实施例中,所谓隐藏当前的AOD界面是指在目标界面出现之前先不销毁AOD界面,还使AOD界面与目标界面一起合成并送入显示缓存。In this embodiment, the so-called hiding of the current AOD interface means that the AOD interface is not destroyed before the target interface appears, and the AOD interface and the target interface are combined together and sent to the display buffer.
本实施例中,该目标界面将位于该AOD界面之下,可以理解为,将目标界面与AOD界面进行相邻图层位置设置,且AOD界面的图层位于该目标界面的图层的上方。在终端从开始解锁到解锁成功之前,将会持续显示AOD界面而遮挡位于其下方的目标界面。待解锁成功后,则立即隐藏上方的AOD界面并显示目标界面。In this embodiment, the target interface will be located below the AOD interface, which can be understood as setting the adjacent layer position of the target interface and the AOD interface, and the layer of the AOD interface is located above the layer of the target interface. Before the terminal is unlocked from the beginning to unlock successfully, the AOD interface will continue to be displayed and the target interface located below it will be blocked. After the unlocking is successful, the AOD interface at the top is immediately hidden and the target interface is displayed.
在一种实施例中,对于上述的设置为相邻图层的目标界面与AOD界面,可通过将该AOD界面和相邻该AOD界面的目标界面在显示缓存中的地址一起映射或分别映射到显示器的引擎。In an embodiment, for the above-mentioned target interface and AOD interface set as adjacent layers, the addresses of the AOD interface and the target interface adjacent to the AOD interface in the display cache can be mapped together or respectively mapped to The engine of the display.
示范性地,如图4所示,使AOD界面和目标界面的数据分别对应于显示缓存(framebuffer)中的两个不同地址,然后通过将这两个不同地址一起映射或分别映射到该终端的显示器的引擎上。当然,在一些实施方式中,AOD界面和相邻该AOD界面的目标界面在显示缓存中的地址还可以是分别映射到显示器的不同引擎上。Exemplarily, as shown in FIG. 4, the data of the AOD interface and the target interface are made to correspond to two different addresses in the display buffer (framebuffer), and then the two different addresses are mapped together or respectively to the terminal's On the engine of the monitor. Of course, in some embodiments, the addresses of the AOD interface and the target interface adjacent to the AOD interface in the display cache may also be mapped to different engines of the display respectively.
终端通常包括上层应用和底层硬件。应当理解的是,所述显示器包括位于底层的显示屏、显示驱动、显示处理单元DPU及图像处理单元GPU在内的硬件显示组件。所述引擎是指位于底层的用于控制图层数据显示的图像处理引擎,其可以通过使用硬件的图像处理单元GPU和/或显示处理单元DPU来完成图像处理并将处理后的数据直接送到framebuffer中。其中,不同的图层可对应于不同的引擎。The terminal usually includes upper-layer applications and lower-layer hardware. It should be understood that the display includes hardware display components including a display screen at the bottom layer, a display driver, a display processing unit DPU, and an image processing unit GPU. The engine refers to the image processing engine at the bottom layer for controlling the display of layer data. It can complete image processing by using the hardware image processing unit GPU and/or display processing unit DPU and send the processed data directly framebuffer. Among them, different layers can correspond to different engines.
当终端解锁成功后,系统可通过通知底层显示器进行切换显示,由于AOD界面与目标界面设置有对应的引擎,则可通过设置该AOD界面对应的引擎的透明度为透明状态,以使该AOD界面的数据不可见。When the terminal is successfully unlocked, the system can switch the display by notifying the underlying display. Since the AOD interface and the target interface are set with corresponding engines, the transparency of the engine corresponding to the AOD interface can be set to a transparent state, so that the AOD interface The data is not visible.
示范性地,可通过alpha混合方法对引擎的透明度进行调节,通过将AOD界面的背景和前景设置不同的alpha值并混合,从而实现将该AOD界面设置为透明。通常地,alpha值的取值范围为0~1,其中,当alpha值为0时,此时引擎的透明度表现为透明状态;当alpha值为1时,则表现为非透明状态。Exemplarily, the transparency of the engine can be adjusted by the alpha blending method, and the background and foreground of the AOD interface can be set with different alpha values and mixed, so that the AOD interface can be set to be transparent. Generally, the alpha value ranges from 0 to 1. When the alpha value is 0, the transparency of the engine is transparent; when the alpha value is 1, it is opaque.
例如,在安卓系统中以十六进制来表示透明度,并且将透明度区分为255 阶,其中透明度100%为00,透明度0%为FF。可以理解,关于如何设置引擎的透明度为透明状态,可根据实际场景来确定,在此并不作限定。For example, in the Android system, the transparency is expressed in hexadecimal, and the transparency is divided into 255 levels, where the transparency of 100% is 00, and the transparency of 0% is FF. It can be understood that how to set the transparency of the engine to a transparent state can be determined according to the actual scene, which is not limited here.
于是,在设置AOD界面的数据为不可见后,对该AOD界面和目标界面进行混合,并将混合后的数据进行送显。Therefore, after setting the data of the AOD interface to be invisible, the AOD interface and the target interface are mixed, and the mixed data is displayed.
示范性地,利用相同或各自的图像处理引擎将这两个界面的数据进行混合,此时framebuffer中的缓存数据将会相应得到更新。此外,若还有其他的位于目标界面下方的界面数据也可以一起混合。Exemplarily, using the same or separate image processing engines to mix the data of the two interfaces, the cached data in the framebuffer will be updated accordingly. In addition, if there are other interface data located below the target interface, they can also be mixed together.
其中,framebuffer是系统为显示数据分配的一块帧缓冲区,最后,通过刷新显示屏的接口,即可将framebuffer中的更新数据直接送到显示屏上显示出来。Among them, the framebuffer is a frame buffer allocated by the system for display data. Finally, through the interface of refreshing the display screen, the updated data in the framebuffer can be directly sent to the display screen for display.
应当明白的是,本实施例提出的屏幕显示方法不需要再等待上层应用进行绘制及合成等操作,而是直接通过控制底层硬件来完成界面的切换显示。在实际的测试过程中,相比于现有的切换显示流程,整个切换显示的过程可缩短50ms~80ms不等。It should be understood that the screen display method proposed in this embodiment does not need to wait for the upper layer application to perform operations such as drawing and compositing, but directly controls the underlying hardware to complete the switching display of the interface. In the actual test process, compared with the existing switching display process, the entire switching display process can be shortened by 50ms to 80ms.
在一种实施例中,当终端显示AOD界面时,即处于AOD模式下,如图5所示,该屏幕显示方法还包括:In an embodiment, when the terminal displays the AOD interface, it is in the AOD mode, as shown in FIG. 5, the screen display method further includes:
步骤S100,检测是否存在对终端的解锁操作。Step S100: It is detected whether there is an unlocking operation on the terminal.
示范性地,该解锁操作可包括不限于为指纹解锁、按键解锁、人脸识别解锁等。例如,对于所述指纹解锁,又可以分为屏下指纹解锁或非屏下指纹解锁。Exemplarily, the unlocking operation may include, but is not limited to, fingerprint unlocking, key unlocking, facial recognition unlocking, and the like. For example, the fingerprint unlocking can be divided into under-screen fingerprint unlocking or off-screen fingerprint unlocking.
其中,屏下指纹解锁的主要原理是通过设置在屏幕下方的隐藏式指纹识别传感器来进行用户指纹识别。而该非屏下指纹解锁则是除屏下指纹解锁的其他指纹解锁方式,例如,通过将指纹识别传感器设置在终端上可见的home按键或touch虚拟键等面板下方。Among them, the main principle of under-screen fingerprint unlocking is to perform user fingerprint identification through a hidden fingerprint identification sensor located at the bottom of the screen. The off-screen fingerprint unlocking is other fingerprint unlocking methods besides the under-screen fingerprint unlocking, for example, by setting the fingerprint recognition sensor below the panel of the visible home button or touch virtual key on the terminal.
步骤S101,若存在,则判断当前解锁操作与预设解锁操作是否匹配。In step S101, if it exists, it is determined whether the current unlocking operation matches the preset unlocking operation.
通常地,该终端可以同时具备多种解锁方式。对于上述步骤S101,在判断是否匹配时,需要根据实际的解锁操作来匹配。例如,若为屏下指纹解锁操作,则将由屏下指纹识别传感器获取的指纹信息与预先存储的已认证指纹进行信息比对等。若比对成功,则执行步骤S102,否则执行步骤S103。Generally, the terminal can have multiple unlocking methods at the same time. For the above step S101, when judging whether it matches, it needs to be matched according to the actual unlocking operation. For example, if it is an under-screen fingerprint unlocking operation, the fingerprint information obtained by the under-screen fingerprint recognition sensor is compared with the pre-stored authenticated fingerprint. If the comparison is successful, step S102 is executed, otherwise, step S103 is executed.
步骤S102,若匹配,则判断解锁成功。In step S102, if it matches, it is determined that the unlocking is successful.
在解锁成功后,则执行步骤S110,即进行界面切换显示操作。After the unlocking is successful, step S110 is executed, that is, an interface switching display operation is performed.
步骤S103,若不匹配,则判断解锁失败,并继续显示AOD界面。In step S103, if it does not match, it is determined that the unlocking has failed, and the AOD interface is continued to be displayed.
若解锁不成功,则继续显示当前的AOD界面,当然也可以弹出解锁失败的 消息提醒等。对于不匹配的响应,具体可根据实际需求进行相应设置,在此并不作具体限定。If the unlocking is unsuccessful, the current AOD interface will continue to be displayed. Of course, a message reminder of the unlocking failure can also be popped up. For non-matching responses, specific settings can be made according to actual needs, and there is no specific limitation here.
针对终端由AOD界面切换显示目标界面的这一过程,本实施例提出的屏幕显示方式通过改变切换显示流程,即直接利用底层的硬件来显示切换,而不需要通过上层应用进行绘制及合成的方式,加快了解锁后的目标界面呈现速度,从而极大地提高了用户体验等。Regarding the process of the terminal switching and displaying the target interface from the AOD interface, the screen display method proposed in this embodiment changes the switching display process, that is, directly uses the underlying hardware to display the switching, without the need for drawing and synthesis through the upper application , Which speeds up the display of the target interface after unlocking, thereby greatly improving the user experience and so on.
实施例2Example 2
请参照图6,基于上述实施例1的屏幕显示方式,本实施例提出一种屏幕显示装置200,应用于终端,该装置包括:Referring to FIG. 6, based on the screen display mode of the foregoing embodiment 1, this embodiment proposes a screen display device 200 applied to a terminal, and the device includes:
解锁处理单元210,用于检测对终端的解锁操作。The unlocking processing unit 210 is configured to detect an unlocking operation on the terminal.
界面显示单元220,用于当所述解锁处理单元210检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于AOD界面下的目标界面。The interface display unit 220 is configured to hide the current AOD interface and display the target interface previously hidden under the AOD interface when the unlocking processing unit 210 detects a successful unlocking operation on the terminal.
进一步地,该界面显示单元220在解锁处理单元210检测到解锁成功操作之前,还用于当终端处于AOD模式时,显示上述的AOD界面。其中,该AOD界面和相邻AOD界面的目标界面在显示缓存中的地址映射到显示器的引擎。Further, the interface display unit 220 is also configured to display the aforementioned AOD interface when the terminal is in the AOD mode before the unlocking processing unit 210 detects a successful unlocking operation. Wherein, the addresses in the display cache of the AOD interface and the target interface of the adjacent AOD interface are mapped to the engine of the display.
对于上述的隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面,示范性地,该界面显示单元220可通过设置该AOD界面对应的引擎透明度为透明状态,然后对AOD界面和目标界面进行混合,以将混合后的缓存数据显示在终端的显示器上。For the aforementioned hiding of the current AOD interface and displaying the target interface hidden under the AOD interface in advance, the interface display unit 220 can exemplarily set the engine transparency corresponding to the AOD interface to a transparent state, and then display the AOD interface and the target interface. The target interface is mixed to display the mixed buffer data on the display of the terminal.
进一步地,该解锁处理单元210还用于当终端显示AOD界面时,若检测到对终端的解锁操作,则判断检测到的解锁操作与预设解锁操作是否匹配;若匹配,则判断解锁成功;否则,判断解锁失败,并继续显示AOD界面。Further, the unlocking processing unit 210 is further configured to, when the terminal displays an AOD interface, if an unlocking operation on the terminal is detected, then determining whether the detected unlocking operation matches the preset unlocking operation; if they match, then determining that the unlocking is successful; Otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
可以理解,上述的屏幕显示装置200对应于实施例1的屏幕显示方法。实施例1中的任何可选项也适用于本实施例,这里不再详述。It can be understood that the above-mentioned screen display device 200 corresponds to the screen display method of the first embodiment. Any options in Embodiment 1 are also applicable to this embodiment, and will not be described in detail here.
本发明还提供了一种终端,该终端可以包括手机、平板电脑等移动终端,也可以是具有触控解锁的其他电子设备等。该终端包括存储器和处理器,存储器存储有计算机程序,处理器通过运行所述计算机程序,从而使移动终端执行上述屏幕显示方法或者上述屏幕显示装置200中的各个模块的功能。The present invention also provides a terminal, which may include mobile terminals such as mobile phones and tablet computers, and may also be other electronic devices with touch unlocking. The terminal includes a memory and a processor, and the memory stores a computer program. The processor runs the computer program to enable the mobile terminal to execute the above-mentioned screen display method or the functions of each module in the above-mentioned screen display device 200.
存储器可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等; 存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may include a storage program area and a storage data area, where the storage program area can store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Use the created data (such as audio data, phone book, etc.) and so on. In addition, the memory 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, a flash memory device, or other volatile solid-state storage devices.
本实施例还提供了一种计算机可读存储介质,用于储存上述终端中使用的所述计算机程序。This embodiment also provides a computer-readable storage medium for storing the computer program used in the aforementioned terminal.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和结构图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,结构图和/或流程图中的每个方框、以及结构图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed device and method may also be implemented in other ways. The device embodiments described above are only schematic. For example, the flowcharts and structural diagrams in the accompanying drawings show the possible implementation architecture and functions of the devices, methods, and computer program products according to multiple embodiments of the present invention. And operation. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more functions for realizing the specified logical function. Executable instructions. It should also be noted that, in alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the structure diagram and/or flowchart, and the combination of the blocks in the structure diagram and/or flowchart, can be used as a dedicated hardware-based system that performs specified functions or actions. , Or can be realized by a combination of dedicated hardware and computer instructions.
另外,在本发明各个实施例中的各功能模块或单元可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或更多个模块集成形成一个独立的部分。In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是智能手机、个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到 变化或替换,都应涵盖在本发明的保护范围之内。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It should be covered within the protection scope of the present invention.

Claims (20)

  1. 一种屏幕显示方法,其特征在于,应用于终端,所述方法包括:A screen display method, characterized in that it is applied to a terminal, and the method includes:
    当检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面。When a successful unlocking operation of the terminal is detected, the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
  2. 根据权利要求1所述的屏幕显示方法,其特征在于,在检测到所述解锁成功操作之前,还包括:The screen display method according to claim 1, wherein before the successful unlocking operation is detected, the method further comprises:
    所述终端处于AOD模式,并显示所述AOD界面;其中,所述AOD界面和相邻所述AOD界面的所述目标界面在显示缓存中的地址映射到显示器的引擎。The terminal is in the AOD mode and displays the AOD interface; wherein the addresses in the display buffer of the AOD interface and the target interface adjacent to the AOD interface are mapped to the engine of the display.
  3. 根据权利要求1所述的屏幕显示方法,其特征在于,还包括:The screen display method according to claim 1, further comprising:
    当所述终端显示所述AOD界面时,若检测到对终端的解锁操作,则判断检测到的所述解锁操作与预设解锁操作是否匹配;When the terminal displays the AOD interface, if an unlocking operation to the terminal is detected, determining whether the detected unlocking operation matches a preset unlocking operation;
    若匹配,则判断解锁成功;否则,判断解锁失败,并继续显示所述AOD界面。If it matches, it is judged that the unlocking is successful; otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
  4. 根据权利要求2所述的屏幕显示方法,其特征在于,所述隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面包括:The screen display method according to claim 2, wherein the hiding the current AOD interface and displaying the target interface hidden under the AOD interface in advance comprises:
    设置所述AOD界面对应的引擎透明度为透明状态,然后对所述AOD界面和所述目标界面进行混合,以将混合后的缓存数据显示在所述显示器上。The engine transparency corresponding to the AOD interface is set to a transparent state, and then the AOD interface and the target interface are mixed to display the mixed buffer data on the display.
  5. 根据权利要求1所述的屏幕显示方法,其特征在于,所述解锁为指纹解锁、按键解锁或人脸识别解锁;其中,所述指纹解锁为屏下指纹解锁或非屏下指纹解锁。The screen display method according to claim 1, wherein the unlocking is fingerprint unlocking, key unlocking, or face recognition unlocking; wherein the fingerprint unlocking is under-screen fingerprint unlocking or off-screen fingerprint unlocking.
  6. 根据权利要求1所述的屏幕显示方法,其特征在于,所述目标界面为系统桌面或上一次锁屏时显示的应用界面。The screen display method according to claim 1, wherein the target interface is a system desktop or an application interface displayed when the screen was last locked.
  7. 一种屏幕显示装置,其特征在于,应用于终端,所述装置包括:A screen display device, characterized in that it is applied to a terminal, and the device includes:
    解锁处理单元,用于检测对终端的解锁操作;An unlocking processing unit for detecting an unlocking operation on the terminal;
    界面显示单元,用于当所述解锁处理单元检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面。The interface display unit is configured to hide the current AOD interface and display the target interface hidden under the AOD interface in advance when the unlocking processing unit detects a successful unlocking operation on the terminal.
  8. 根据权利要求7所述的屏幕显示装置,其特征在于,所述界面显示单元,还用于当所述终端处于AOD模式时,显示所述AOD界面;其中,所述AOD界面和相邻所述AOD界面的所述目标界面在显示缓存中的地址映射到显示器的引擎。The screen display device according to claim 7, wherein the interface display unit is further configured to display the AOD interface when the terminal is in the AOD mode; wherein, the AOD interface is adjacent to the The address of the target interface of the AOD interface in the display buffer is mapped to the engine of the display.
  9. 一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器存 储有计算机程序,所述处理器执行所述计算机程序以实施以下步骤:A terminal, characterized in that the terminal includes a processor and a memory, the memory stores a computer program, and the processor executes the computer program to implement the following steps:
    当检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面。When a successful unlocking operation of the terminal is detected, the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
  10. 根据权利要求9所述的终端,其特征在于,在检测到所述解锁成功操作之前,所述处理器执行所述计算机程序以进一步实施以下步骤:The terminal according to claim 9, characterized in that, before detecting the successful unlocking operation, the processor executes the computer program to further implement the following steps:
    所述终端处于AOD模式,并显示所述AOD界面;其中,所述AOD界面和相邻所述AOD界面的所述目标界面在显示缓存中的地址映射到显示器的引擎。The terminal is in the AOD mode and displays the AOD interface; wherein the addresses in the display buffer of the AOD interface and the target interface adjacent to the AOD interface are mapped to the engine of the display.
  11. 根据权利要求9所述的终端,其特征在于,所述处理器执行所述计算机程序以进一步实施以下步骤:The terminal according to claim 9, wherein the processor executes the computer program to further implement the following steps:
    当所述终端显示所述AOD界面时,若检测到对终端的解锁操作,则判断检测到的所述解锁操作与预设解锁操作是否匹配;When the terminal displays the AOD interface, if an unlocking operation to the terminal is detected, determining whether the detected unlocking operation matches a preset unlocking operation;
    若匹配,则判断解锁成功;否则,判断解锁失败,并继续显示所述AOD界面。If it matches, it is judged that the unlocking is successful; otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
  12. 根据权利要求10所述的终端,其特征在于,所述隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面包括:The terminal according to claim 10, wherein the hiding the current AOD interface and displaying the target interface hidden under the AOD interface in advance comprises:
    设置所述AOD界面对应的引擎透明度为透明状态,然后对所述AOD界面和所述目标界面进行混合,以将混合后的缓存数据显示在所述显示器上。The engine transparency corresponding to the AOD interface is set to a transparent state, and then the AOD interface and the target interface are mixed to display the mixed buffer data on the display.
  13. 根据权利要求9所述的终端,其特征在于,所述解锁为指纹解锁、按键解锁或人脸识别解锁;其中,所述指纹解锁为屏下指纹解锁或非屏下指纹解锁。The terminal according to claim 9, wherein the unlocking is fingerprint unlocking, key unlocking, or face recognition unlocking; wherein, the fingerprint unlocking is on-screen fingerprint unlocking or off-screen fingerprint unlocking.
  14. 根据权利要求9所述的终端,其特征在于,所述目标界面为系统桌面或上一次锁屏时显示的应用界面。The terminal according to claim 9, wherein the target interface is a system desktop or an application interface displayed when the screen was last locked.
  15. 一种计算机可读存储介质,其特征在于,其存储有计算机程序,所述计算机程序被执行时,实施以下步骤:A computer-readable storage medium, characterized in that it stores a computer program, and when the computer program is executed, the following steps are implemented:
    当检测到对终端的解锁成功操作时,隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面。When a successful unlocking operation of the terminal is detected, the current AOD interface is hidden and the target interface hidden under the AOD interface in advance is displayed.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,在检测到所述解锁成功操作之前,所述计算机程序被执行时以进一步实施以下步骤:The computer-readable storage medium according to claim 15, wherein the following steps are further implemented when the computer program is executed before the successful unlocking operation is detected:
    所述终端处于AOD模式,并显示所述AOD界面;其中,所述AOD界面和相邻所述AOD界面的所述目标界面在显示缓存中的地址映射到显示器的引 擎。The terminal is in the AOD mode and displays the AOD interface; wherein, the addresses in the display buffer of the AOD interface and the target interface adjacent to the AOD interface are mapped to the engine of the display.
  17. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述计算机程序被执行时以进一步实施以下步骤:The computer-readable storage medium according to claim 15, wherein the computer program is executed to further implement the following steps:
    当所述终端显示所述AOD界面时,若检测到对终端的解锁操作,则判断检测到的所述解锁操作与预设解锁操作是否匹配;When the terminal displays the AOD interface, if an unlocking operation to the terminal is detected, determining whether the detected unlocking operation matches a preset unlocking operation;
    若匹配,则判断解锁成功;否则,判断解锁失败,并继续显示所述AOD界面。If it matches, it is judged that the unlocking is successful; otherwise, it is judged that the unlocking has failed, and the AOD interface continues to be displayed.
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述隐藏当前的AOD界面并显示预先隐藏于所述AOD界面下的目标界面包括:The computer-readable storage medium according to claim 16, wherein the hiding the current AOD interface and displaying the target interface hidden in advance under the AOD interface comprises:
    设置所述AOD界面对应的引擎透明度为透明状态,然后对所述AOD界面和所述目标界面进行混合,以将混合后的缓存数据显示在所述显示器上。The engine transparency corresponding to the AOD interface is set to a transparent state, and then the AOD interface and the target interface are mixed to display the mixed buffer data on the display.
  19. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述解锁为指纹解锁、按键解锁或人脸识别解锁;其中,所述指纹解锁为屏下指纹解锁或非屏下指纹解锁。The computer-readable storage medium according to claim 15, wherein the unlocking is fingerprint unlocking, key unlocking, or face recognition unlocking; wherein the fingerprint unlocking is under-screen fingerprint unlocking or off-screen fingerprint unlocking.
  20. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述目标界面为系统桌面或上一次锁屏时显示的应用界面。The computer-readable storage medium according to claim 15, wherein the target interface is a system desktop or an application interface displayed when the screen was last locked.
PCT/CN2021/101549 2020-06-22 2021-06-22 Screen display method and apparatus, terminal, and computer-readable storage medium WO2021259264A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010577169.9A CN113900744A (en) 2020-06-22 2020-06-22 Screen display method, device, terminal and computer readable storage medium
CN202010577169.9 2020-06-22

Publications (1)

Publication Number Publication Date
WO2021259264A1 true WO2021259264A1 (en) 2021-12-30

Family

ID=79186624

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101549 WO2021259264A1 (en) 2020-06-22 2021-06-22 Screen display method and apparatus, terminal, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN113900744A (en)
WO (1) WO2021259264A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281366A (en) * 2014-09-26 2015-01-14 广州市久邦数码科技有限公司 Implementing method and system for quickly starting lock screen
CN105912905A (en) * 2016-04-11 2016-08-31 广东欧珀移动通信有限公司 Fingerprint unlocking method and terminal
US20170032140A1 (en) * 2015-07-30 2017-02-02 Samsung Electronics Co., Ltd. Apparatus and method for controlling security of electronic device
CN106469058A (en) * 2016-08-31 2017-03-01 维沃移动通信有限公司 A kind of unlocking screen method and mobile terminal
CN106485107A (en) * 2016-09-19 2017-03-08 北京小米移动软件有限公司 Screen locking method and device
CN109819114A (en) * 2019-02-20 2019-05-28 北京市商汤科技开发有限公司 Screen locking processing method and processing device, electronic equipment and storage medium
CN112417396A (en) * 2020-11-17 2021-02-26 努比亚技术有限公司 Terminal unlocking method, terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281366A (en) * 2014-09-26 2015-01-14 广州市久邦数码科技有限公司 Implementing method and system for quickly starting lock screen
US20170032140A1 (en) * 2015-07-30 2017-02-02 Samsung Electronics Co., Ltd. Apparatus and method for controlling security of electronic device
CN105912905A (en) * 2016-04-11 2016-08-31 广东欧珀移动通信有限公司 Fingerprint unlocking method and terminal
CN106469058A (en) * 2016-08-31 2017-03-01 维沃移动通信有限公司 A kind of unlocking screen method and mobile terminal
CN106485107A (en) * 2016-09-19 2017-03-08 北京小米移动软件有限公司 Screen locking method and device
CN109819114A (en) * 2019-02-20 2019-05-28 北京市商汤科技开发有限公司 Screen locking processing method and processing device, electronic equipment and storage medium
CN112417396A (en) * 2020-11-17 2021-02-26 努比亚技术有限公司 Terminal unlocking method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN113900744A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
CN105389040B (en) Electronic device including touch-sensitive display and method of operating the same
WO2020140896A1 (en) Integrated functionality of center display, driver display, and shared-experience display
WO2022063022A1 (en) Video preview method and apparatus and electronic device
WO2018161958A1 (en) Method and device for controlling mobile terminal, and mobile terminal
CN112099705B (en) Screen projection method and device and electronic equipment
US8890769B2 (en) Display system and control method
US10347221B2 (en) Electronic device and method for controlling display thereof
US10891397B2 (en) User interface display method for terminal, and terminal
WO2014206324A1 (en) Soft keyboard display method and terminal
KR20160005609A (en) Method for displaying graphic user interface and electronic device supporting the same
WO2022166820A1 (en) Application interface processing method and apparatus, electronic device, and readable storage medium
WO2022135290A1 (en) Screenshot capturing method and apparatus, and electronic device
WO2022194003A1 (en) Screen capture method and apparatus, electronic device, and readable storage medium
WO2022012665A1 (en) Wallpaper display control method and apparatus, and electronic device
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
CN115357158A (en) Message processing method and device, electronic equipment and storage medium
WO2022068768A1 (en) Permission setting method and apparatus, file playback method and apparatus, and electronic device
WO2021259264A1 (en) Screen display method and apparatus, terminal, and computer-readable storage medium
WO2023030292A1 (en) Multimedia file playback method and apparatus
US10902101B2 (en) Techniques for displaying secure content for an application through user interface context file switching
CN111010528A (en) Video call method, mobile terminal and computer readable storage medium
CN112653788B (en) User interface display method, mobile terminal and storage medium
JP2004287169A (en) Display system, display control method, and display control program
WO2022135219A1 (en) Image display method and apparatus, and electronic device
JP2014232522A (en) Information processing device, control method for information processing device, and program

Legal Events

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

Ref document number: 21828278

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.03.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21828278

Country of ref document: EP

Kind code of ref document: A1