A method, device and computer-readable storage medium for controlling under-display fingerprint display
By creating a window with a highlight map and a global mask in the under-display fingerprint recognition device, and dynamically adjusting the transparency according to the screen brightness, the screen flickering problem was solved, improving the stability of under-display fingerprint recognition and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NUBIA TECHNOLOGY CO LTD
- Filing Date
- 2022-07-26
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, under-display fingerprint recognition can easily cause the screen to flicker or shine when the HBM high-brightness mode and the DIM semi-transparent black layer are displayed simultaneously, affecting the user experience.
After the device is powered on, a window is created to draw the highlight map of the fingerprint area and a global mask. The window composition management sends corresponding control commands to dynamically adjust the transparency of the global mask according to the screen brightness in order to control the global highlight mode to be turned on and off.
It achieves stability and consistency in under-display fingerprint display, improves user experience, and solves the screen flickering problem.
Smart Images

Figure CN115273160B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communications, and more particularly to an under-display fingerprint display control method, device, and computer-readable storage medium. Background Technology
[0002] In existing technologies, under-display optical fingerprinting works by having an OLED self-emissive display in a high-brightness state, where strong light shines on the finger, and the light reflected from the finger passes through the gaps between the pixels of the OLED self-emissive display to the under-display fingerprint sampler.
[0003] To achieve the above solution, when applying lighting of a specified color, a set HBM screen global highlight mode needs to be enabled. At the same time, since HBM in highlight mode can be very dazzling to users, a DIM semi-transparent black layer also needs to be displayed on the screen to eliminate the highlight.
[0004] However, when DIM is displayed on the screen, it is difficult to synchronize with the effective time of HBM on the screen. If synchronization is not achieved, the screen will flicker or shine, which will seriously affect the user's experience of using the under-display fingerprint recognition function. Summary of the Invention
[0005] To address the aforementioned technical deficiencies in the prior art, this invention proposes an under-display fingerprint display control method, which includes:
[0006] After the device is powered on, a first window for drawing the highlight map of the fingerprint area and a second window for drawing the global mask are created, and a first instruction for turning off the global highlight mode is sent to the preset window composition management.
[0007] When a press signal is detected in the fingerprint area, the first transparency value of the corresponding global mask is found according to the first screen brightness of the device, and a second instruction containing the global highlight mode being enabled and the first transparency value is sent to the window composition management.
[0008] When a press is detected in the fingerprint area, the corresponding second transparency value of the global mask is found according to the change in the second screen brightness of the device, and a third instruction containing the global highlight mode being enabled and the second transparency value is sent to the window composition management.
[0009] When a lift signal is detected in the fingerprint area, a fourth instruction containing the global highlight mode being turned off and the transparency value being zero is sent to the window composition management.
[0010] Optionally, after the device is powered on, the steps include creating a first window for drawing a specular map and a second window for drawing a full-screen mask, and sending a first instruction to a preset window composition management system to disable the global highlight mode, prior to which the following steps are taken:
[0011] Obtain the correspondence between different transparency levels and the current screen brightness when the global mask with different transparency levels is superimposed on the global highlight mode;
[0012] Create a transparency setting table for the global mask based on the aforementioned correspondence.
[0013] Optionally, after the device is powered on, the steps of creating a first window for drawing a specular map and a second window for drawing a full-screen mask, and sending a first instruction to a preset window composition manager to disable the global highlight mode, further include:
[0014] Create a first window that is above all other windows, and a second window that is below the first window;
[0015] The window composition management receives control commands sent by the fingerprint application, wherein the control commands include the first command, the second command, the third command, and the fourth command. The first command, the second command, the third command, and the fourth command each include a first parameter for controlling whether the global highlight mode is enabled and a second parameter for setting the transparency value of the global mask.
[0016] Optionally, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, followed by:
[0017] Upon receiving the control command, the transparency value of the global mask is adjusted according to the second parameter;
[0018] Adjust the first window and the second window to be displayed or hidden based on the first parameter.
[0019] Optionally, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes:
[0020] Obtain the first parameter before compositing all current windows;
[0021] The first parameter is passed to the kernel to determine the first state of the current global highlight mode, and the kernel saves the first state.
[0022] Optionally, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes:
[0023] The kernel detects the transmission cache of the final image generated from all layers in the window composition management;
[0024] Determine whether the first state has changed.
[0025] Optionally, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes:
[0026] When the first state is the enabled state, write 1 to the register of the global highlight mode;
[0027] When the global mask is displayed in the next frame of the current screen display, the global highlight mode is enabled.
[0028] Optionally, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes:
[0029] When the first state is the off state, write 0 to the register of the global highlight mode;
[0030] If the global mask is not displayed in the next frame of the current screen display, the global highlight mode is turned off.
[0031] The present invention also proposes an under-display fingerprint display control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the under-display fingerprint display control method as described in any of the preceding claims.
[0032] The present invention also proposes a computer-readable storage medium storing an under-display fingerprint display control program, which, when executed by a processor, implements the steps of the under-display fingerprint display control method as described in any of the preceding claims.
[0033] The under-display fingerprint display control method, device, and computer-readable storage medium of the present invention, after the device is powered on, create a first window for drawing a highlight map of the fingerprint area and a second window for drawing a global mask, and send a first instruction to a preset window composition management to disable the global highlight mode; when a press signal is detected in the fingerprint area, find the corresponding first transparency value of the global mask according to the first screen brightness of the device, and send a second instruction to the window composition management containing the global highlight mode enabled and the first transparency value; when a press state is detected in the fingerprint area, find the corresponding second transparency value of the global mask according to the change state of the second screen brightness of the device, and send a third instruction to the window composition management containing the global highlight mode enabled and the second transparency value; when a release signal is detected in the fingerprint area, send a fourth instruction to the window composition management containing the global highlight mode disabled and the transparency value being zero. This achieves an under-display fingerprint display control scheme with a better user experience and improves the stability and consistency of under-display fingerprint display control. Attached Figure Description
[0034] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0035] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0036] Figure 2 This is a flowchart of the first embodiment of the under-display fingerprint display control method of the present invention;
[0037] Figure 3 This is a flowchart of the second embodiment of the under-display fingerprint display control method of the present invention;
[0038] Figure 4 This is a flowchart of the third embodiment of the under-display fingerprint display control method of the present invention;
[0039] Figure 5 This is a flowchart of the fourth embodiment of the under-display fingerprint display control method of the present invention;
[0040] Figure 6 This is a flowchart of the fifth embodiment of the under-display fingerprint display control method of the present invention;
[0041] Figure 7 This is a flowchart of the sixth embodiment of the under-display fingerprint display control method of the present invention;
[0042] Figure 8 This is a flowchart of the seventh embodiment of the under-display fingerprint display control method of the present invention;
[0043] Figure 9This is a flowchart of the eighth embodiment of the under-display fingerprint display control method of the present invention;
[0044] Figure 10 This is a control logic diagram of the second embodiment of the under-display fingerprint display control method of the present invention;
[0045] Figure 11 This is the first control logic diagram of the third embodiment of the under-display fingerprint display control method of the present invention;
[0046] Figure 12 This is the second control logic diagram of the third embodiment of the under-display fingerprint display control method of the present invention;
[0047] Figure 13 This is the third control logic diagram of the third embodiment of the under-display fingerprint display control method of the present invention;
[0048] Figure 14 This is the fourth control logic diagram of the third embodiment of the under-display fingerprint display control method of the present invention;
[0049] Figure 15 This is the fifth control logic diagram of the third embodiment of the under-display fingerprint display control method of the present invention;
[0050] Figure 16 This is the sixth control logic diagram of the third embodiment of the under-display fingerprint display control method of the present invention;
[0051] Figure 17 This is a control logic diagram of the fourth embodiment of the under-display fingerprint display control method of the present invention;
[0052] Figure 18 This is a control logic diagram of the fifth embodiment of the under-display fingerprint display control method of the present invention;
[0053] Figure 19 This is a control logic diagram of the sixth embodiment of the under-display fingerprint display control method of the present invention. Detailed Implementation
[0054] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0055] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0056] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0057] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0058] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0059] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:
[0060] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0061] WiFi is a short-range wireless transmission technology. Mobile terminals using the WiFi module 102 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0062] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0063] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0064] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0065] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0066] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0067] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0068] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0069] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0070] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0071] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0072] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0073] Based on the above-described mobile terminal hardware structure, various embodiments of the method of the present invention are proposed.
[0074] Example 1
[0075] Figure 2 This is a flowchart of the first embodiment of the under-display fingerprint display control method of the present invention. An under-display fingerprint display control method includes:
[0076] S1. After the device is powered on, create a first window for drawing the highlight map of the fingerprint area and a second window for drawing the global mask, and send a first instruction to the preset window composition management to turn off the global highlight mode.
[0077] S2. When a press signal is detected in the fingerprint area, the first transparency value of the corresponding global mask is found according to the first screen brightness of the device, and a second instruction containing the global highlight mode being enabled and the first transparency value is sent to the window composition management.
[0078] S3. When a pressed state is detected in the fingerprint area, the second transparency value of the corresponding global mask is found according to the change state of the second screen brightness of the device, and a third instruction containing the global highlight mode being enabled and the second transparency value is sent to the window composition management.
[0079] S4. When a lift signal is detected in the fingerprint area, a fourth instruction containing the global highlight mode being turned off and the transparency value being zero is sent to the window composition management.
[0080] In this embodiment, the time for the HBM global screen brightness mode to take effect is one Vsync screen refresh cycle. Based on this, an alpha data table of DIM global mask corresponding to different brightness samples is created. A DIM window is added on the App application side. During the frame synthesis process in Surfaceflinger window composition management, HBM control is sent to the kernel. The time of HBM and DIM is aligned in the kernel to solve the problems of screen HBM glare and HBM flicker.
[0081] In this embodiment, after the device is powered on, a first window for drawing the highlight map of the fingerprint area and a second window for drawing the global mask are created, and a first instruction to turn off the global highlight mode is sent to the preset window composition management. When a press signal is detected in the fingerprint area, the first transparency value of the global mask is looked up in the alpha data table according to the first screen brightness of the device, and a second instruction containing the global highlight mode being turned on and the first transparency value is sent to the window composition management. When a press state is detected in the fingerprint area, the second transparency value of the global mask is looked up in the alpha data table according to the change state of the second screen brightness of the device, and a third instruction containing the global highlight mode being turned on and the second transparency value is sent to the window composition management. When a release signal is detected in the fingerprint area, a fourth instruction containing the global highlight mode being turned off and the transparency value being zero is sent to the window composition management.
[0082] The beneficial effects of this embodiment are as follows: After the device is powered on, a first window for drawing the highlight map of the fingerprint area and a second window for drawing the global mask are created, and a first instruction to turn off the global highlight mode is sent to a preset window composition management system; when a press signal is detected in the fingerprint area, the first transparency value of the corresponding global mask is found according to the first screen brightness of the device, and a second instruction containing the global highlight mode being turned on and the first transparency value is sent to the window composition management system; when a press state is detected in the fingerprint area, the second transparency value of the corresponding global mask is found according to the change state of the second screen brightness of the device, and a third instruction containing the global highlight mode being turned on and the second transparency value is sent to the window composition management system; when a release signal is detected in the fingerprint area, a fourth instruction containing the global highlight mode being turned off and the transparency value being zero is sent to the window composition management system. This achieves a better user experience for under-display fingerprint display control, improving the stability and consistency of under-display fingerprint display control.
[0083] Example 2
[0084] Figure 3 This is a flowchart of the second embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, after the device is powered on, a first window for drawing a highlight map and a second window for drawing a full-screen mask are created, and a first instruction for disabling the global highlight mode is sent to a preset window composition management system. Prior to this, the process includes:
[0085] S01. Obtain the correspondence between different transparency levels and the current screen brightness when the global mask with different transparency levels is superimposed on the global highlight mode;
[0086] S02. Create the transparency setting table for the global mask according to the correspondence.
[0087] Optionally, in this embodiment, as Figure 10 As shown in the figure, this graph illustrates the curves of light brightness and alpha transparency. In this embodiment, the relationship between a DIM (Discrete Ink Layer), such as a semi-transparent black layer, and HBM (Hyperblind Brightness) for global screen highlighting, and the brightness is tested. The alpha transparency and light brightness of the DIM are saved in a curve table MAP. Based on this, the alpha value of HBM plus the corresponding brightness under different brightness levels can be found in this MAP according to the search requirements.
[0088] The beneficial effect of this embodiment lies in obtaining the correspondence between different transparency levels and the current screen brightness when the global mask with different transparency levels is superimposed on the global highlight mode; and creating a transparency setting table for the global mask based on the correspondence. This achieves a better user experience for under-display fingerprint display control, improving the stability and consistency of under-display fingerprint display control.
[0089] Example 3
[0090] Figure 4 This is a flowchart of the third embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, after the device is powered on, a first window for drawing a highlight map and a second window for drawing a full-screen mask are created, and a first instruction for disabling the global highlight mode is sent to a preset window composition management system. Prior to this, the method further includes:
[0091] S03. Create a first window that is above all other windows, and a second window that is below the first window;
[0092] S04. Receive control commands sent by the fingerprint application through the window composition management, wherein the control commands include the first command, the second command, the third command, and the fourth command, and the first command, the second command, the third command, and the fourth command each include a first parameter for controlling whether the global highlight mode is enabled and a second parameter for setting the transparency value of the global mask.
[0093] Optionally, in this embodiment, please refer to Figure 11 The diagram illustrates the relationship between the first window S1 and the second window S2. In this embodiment, two Surface windows (each window displayed on the screen is called a Surface) are created in the App fingerprint application layer, labeled S1 and S2 respectively. S1 is above all Surfaces and is used to draw the specular map to collect fingerprints; S2 is below S1 and is a full-screen Surface used to draw the black baffle of the DIM.
[0094] Optionally, in this embodiment, please refer to Figure 12 The diagram illustrates the logic of how the App controls the DIM via control commands. In Surfaceflinger (SF), the App's control command P is received. This command P contains two parameters: the first parameter, referred to as parameter 1 (enable), indicates whether HBM is enabled (i.e., pass Open to enable, pass Close to disable); the second parameter, referred to as parameter 2 (value), represents the alpha value of the DIM.
[0095] Optionally, in this embodiment, as Figure 13 As shown, after the device is powered on, the App creates S1 and S2, and sends the P command with parameters Close and 0 to SF to shut down HBM.
[0096] Optionally, in this embodiment, as Figure 14 As shown, when the user presses the fingerprint area, the screen brightness changes are monitored, and the alpha value a1 of the corresponding DIM is looked up from the MAP table according to the current screen brightness; then, the P command with parameters Open and a1 is sent to SF.
[0097] Optionally, in this embodiment, as Figure 15 As shown, when the brightness changes while the finger is pressed, the alpha value a2 of the corresponding DIM is looked up from the MAP table according to the current screen brightness; then, a P command with parameters Open and a2 is sent to SF.
[0098] Optionally, in this embodiment, as Figure 16 As shown, when the user lifts their finger, a P command with parameters Close and 0 is sent to SF to turn off HBM.
[0099] The beneficial effect of this embodiment is that by creating a first window above all other windows and a second window below the first window; and by receiving control commands sent by the fingerprint application through the window compositing management, wherein the control commands include a first command, a second command, a third command, and a fourth command, and each of the first, second, third, and fourth commands includes a first parameter for controlling whether the global highlight mode is enabled and a second parameter for setting the transparency value of the global mask, a better under-display fingerprint display control scheme is achieved, improving the stability and consistency of under-display fingerprint display control.
[0100] Example 4
[0101] Figure 5 This is a flowchart of the fourth embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then includes:
[0102] S51. After receiving the control command, adjust the transparency value of the global mask according to the second parameter;
[0103] S52. Adjust the first window and the second window to be in a displayed state or a hidden state according to the first parameter.
[0104] In this embodiment, please refer to Figure 17When SF receives the P command, it modifies the alpha of S2 according to parameter 2, and shows or hides the Surface according to parameter 1. If it is Open, it shows S1 and S2; if it is Close, it hides S1 and S2.
[0105] The beneficial effect of this embodiment is that, after receiving the control command, the transparency value of the global mask is adjusted according to the second parameter; and the first and second windows are adjusted to be in a displayed state or a hidden state according to the first parameter. This achieves a better user experience for under-display fingerprint display control, improving the stability and consistency of under-display fingerprint display control.
[0106] Example 5
[0107] Figure 6 This is a flowchart of the fifth embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the method further includes:
[0108] S53. Obtain the first parameter before compositing all current windows;
[0109] S54. Pass the first parameter to the kernel to determine the first state of the current global highlight mode, and have the kernel save the first state.
[0110] In this embodiment, please refer to Figure 18 After controlling the display or hiding of S2, SF notifies the kernel of the current HBM state (i.e., the value passed by parameter 1) before compositing all layers (the surfaces of all windows), and the kernel saves this state as K1.
[0111] The beneficial effect of this embodiment is that by obtaining the current first parameter before all windows are combined, passing the first parameter to the kernel, determining the first state of the current global highlight mode, and having the kernel save the first state, a better user experience under-display fingerprint display control scheme is achieved, improving the stability and consistency of under-display fingerprint display control.
[0112] Example 6
[0113] Figure 7 This is a flowchart of the sixth embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the method further includes:
[0114] S55. The kernel detects the transmission cache of the final image generated by all layers in the window composition management;
[0115] S56. Determine whether the first state has changed.
[0116] In this embodiment, please refer to Figure 19 The kernel checks whether K1 has changed in the transfer buffer (the memory where the final image generated by compositing all layers in Sf).
[0117] The beneficial effect of this embodiment is that it detects the transmission cache of the final image generated by all layers in the window compositing management through the kernel; and determines whether the first state has changed. This achieves a better user experience for under-display fingerprint display control, improving the stability and consistency of under-display fingerprint display control.
[0118] Example 7
[0119] Figure 8 This is a flowchart of the seventh embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the method further includes:
[0120] S61. When the first state is the enabled state, write 1 to the register of the global highlight mode;
[0121] S62. When the global mask is displayed in the next frame of the current screen display, the global highlight mode is turned on.
[0122] In this embodiment, please refer to Figure 19 If K1 is Open, then write 1 to the HBM register and enable HBM when a DIM image is displayed in the next frame of the screen.
[0123] The beneficial effect of this embodiment is that, by writing 1 to the register of the global highlight mode when the first state is enabled, and enabling the global highlight mode when the global mask is displayed in the next frame of the current screen display, a better under-display fingerprint display control scheme is achieved, improving the stability and consistency of under-display fingerprint display control.
[0124] Example 8
[0125] Figure 9 This is a flowchart of the eighth embodiment of the under-display fingerprint display control method of the present invention. Based on the above embodiment, the first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the method further includes:
[0126] S71. When the first state is the off state, write 0 to the register of the global highlight mode;
[0127] S72. When the global mask is not displayed in the next frame of the current screen display, the global highlight mode is turned off.
[0128] In this embodiment, please refer to Figure 19 If K1 is Close, the hbm register is written to 0, and HBM is turned off when no DIM image is displayed in the next frame of the screen.
[0129] The beneficial effect of this embodiment is that, by writing 0 to the register of the global highlight mode when the first state is off, and turning off the global highlight mode when the global mask is not displayed in the next frame of the current screen display, a better under-display fingerprint display control scheme is achieved, improving the stability and consistency of under-display fingerprint display control.
[0130] Example 9
[0131] Based on the above embodiments, the present invention also proposes an under-display fingerprint display control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the under-display fingerprint display control method as described in any of the above embodiments.
[0132] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0133] Example 10
[0134] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing an under-display fingerprint display control program, which, when executed by a processor, implements the steps of the under-display fingerprint display control method as described in any of the above claims.
[0135] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0136] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0137] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0138] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0139] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for controlling an under-display fingerprint display, characterized in that, The method includes: After the device is powered on, a first window for drawing the highlight map of the fingerprint area and a second window for drawing the global mask are created, and a first instruction for turning off the global highlight mode is sent to the preset window composition management. When a press signal is detected in the fingerprint area, the first transparency value of the corresponding global mask is found according to the first screen brightness of the device, and a second instruction containing the global highlight mode being enabled and the first transparency value is sent to the window composition management. When a press is detected in the fingerprint area, the corresponding second transparency value of the global mask is found according to the change in the second screen brightness of the device, and a third instruction containing the global highlight mode being enabled and the second transparency value is sent to the window composition management. When a lift signal is detected in the fingerprint area, a fourth instruction containing the global highlight mode being turned off and the transparency value being zero is sent to the window composition management.
2. The under-display fingerprint display control method according to claim 1, characterized in that, After the device is powered on, a first window for drawing a specular map and a second window for drawing a full-screen mask are created, and a first instruction to disable the global highlight mode is sent to the preset window composition management. Prior to this, the process includes: Obtain the correspondence between different transparency levels and the current screen brightness when the global mask with different transparency levels is superimposed on the global highlight mode; Create a transparency setting table for the global mask based on the aforementioned correspondence.
3. The under-display fingerprint display control method according to claim 2, characterized in that, After the device is powered on, a first window for drawing a specular map and a second window for drawing a full-screen mask are created, and a first instruction to disable the global highlight mode is sent to the preset window composition management. Prior to this, the process also includes: Create a first window that is above all other windows, and a second window that is below the first window; The window composition management receives control commands sent by the fingerprint application, wherein the control commands include the first command, the second command, the third command, and the fourth command. The first command, the second command, the third command, and the fourth command each include a first parameter for controlling whether the global highlight mode is enabled and a second parameter for setting the transparency value of the global mask.
4. The under-display fingerprint display control method according to claim 3, characterized in that, The first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the following is included: Upon receiving the control command, the transparency value of the global mask is adjusted according to the second parameter; Adjust the first window and the second window to be in a displayed state or a hidden state according to the first parameter.
5. The under-display fingerprint display control method according to claim 4, characterized in that, The first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes: Obtain the first parameter before compositing all current windows; The first parameter is passed to the kernel to determine the first state of the current global highlight mode, and the kernel saves the first state.
6. The under-display fingerprint display control method according to claim 5, characterized in that, The first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes: The kernel detects the transmission cache of the final image generated from all layers in the window composition management; Determine whether the first state has changed.
7. The under-display fingerprint display control method according to claim 6, characterized in that, The first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes: When the first state is the enabled state, write 1 to the register of the global highlight mode; When the global mask is displayed in the next frame of the current screen display, the global highlight mode is enabled.
8. The under-display fingerprint display control method according to claim 7, characterized in that, The first instruction, or the second instruction, or the third instruction, or the fourth instruction is sent to the window composition management, and then the process further includes: When the first state is the off state, write 0 to the register of the global highlight mode; If the global mask is not displayed in the next frame of the current screen display, the global highlight mode is turned off.
9. An under-display fingerprint display control device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the under-display fingerprint display control method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an under-display fingerprint display control program, which, when executed by a processor, implements the steps of the under-display fingerprint display control method as described in any one of claims 1 to 8.