A fingerprint icon animation playing method, device and computer readable storage medium
By adding a trigger action at the system's sleep time, the problems of high code complexity and poor stability in the playback of under-display fingerprint icon animations in existing technologies are solved, resulting in more stable fingerprint icon animation playback and improved user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NUBIA TECHNOLOGY CO LTD
- Filing Date
- 2022-03-28
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, the playback process of the under-display fingerprint icon animation requires listening to multiple environment variables, resulting in high code complexity and poor stability, and making it prone to display errors.
The system adds a first action triggered by screen-off to a preset set by entering sleep time, and performs corresponding actions during different state transitions, including screen-off, sleep end, and power state, to achieve animation playback.
It reduces code space complexity, improves code stability, avoids fingerprint icon animation playback errors, and enhances the user experience of in-display fingerprint scanning.
Smart Images

Figure CN114637444B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communications, and more particularly to a method, device, and computer-readable storage medium for playing fingerprint icon animations. Background Technology
[0002] With the continuous development of smart terminal devices, the application of under-display fingerprint technology is becoming increasingly widespread.
[0003] In the existing solution, the fingerprint animation needs to be displayed in an animated manner after the screen is turned off by pressing the power button.
[0004] However, the existing solution has a problem: the system needs to be affected by multiple environmental variables in order to display the fingerprint animation.
[0005] To solve the above problems, existing technologies typically involve monitoring variable changes in multiple places within the code.
[0006] However, the code that monitors changes to variables has extremely high space complexity and poor stability. Because the process of monitoring variable changes is very complex, it is prone to errors. Once an error occurs, it can lead to the fingerprint animation not appearing when it should, or the fingerprint animation appearing when it shouldn't.
[0007] Therefore, a more complete fingerprint icon animation playback solution is urgently needed. Summary of the Invention
[0008] To address the aforementioned technical deficiencies in the prior art, this invention proposes a fingerprint icon animation playback method, which includes:
[0009] The system adds the first action triggered by screen-off to a preset set based on the system's sleep time.
[0010] Upon receiving a power button press command and entering a screen-off state, the first action triggered by the screen-off state is executed, wherein the first action includes adding a second action triggered by the end of sleep to the set.
[0011] After a preset time following the execution of the first action, the sleep ends, and the second action triggered by the end of the sleep is executed, wherein the second action includes adding a third action triggered by the power state to the set.
[0012] After the second action is performed, the third action triggered by the power state is performed, and the fingerprint icon is displayed with a preset animation.
[0013] Optionally, before adding the first action triggered by screen-off to the preset set through the system's sleep time, the process includes:
[0014] Retrieve the three-digit key value.
[0015] The three preset trigger scenarios are marked as screen off, power state, and sleep end by using the three key values.
[0016] Optionally, before adding the first action triggered by screen-off to the preset set through the system's sleep time, the method further includes:
[0017] Determine the action to be executed, the name of the action, and the triggering scenario corresponding to the action.
[0018] The action, the name, and the triggering scenario are encapsulated into a preset action class.
[0019] Optionally, before adding the first action triggered by screen-off to the preset set through the system's sleep time, the method further includes:
[0020] The set is pre-defined to store the key values and the action classes.
[0021] Add a method to the collection, the method parameters of which are the action, the name, and the triggering scenario.
[0022] Optionally, before adding the first action triggered by screen-off to the preset set through the system's sleep time, the method further includes:
[0023] Identify whether a set list corresponding to the triggering scenario exists in the set.
[0024] If the set list does not exist, then create the set list corresponding to the triggering scenario, store the set list in the set, and store the action class in the set list.
[0025] Optionally, when receiving a power button press command and entering a screen-off state, the first action triggered by the screen-off state is executed, wherein the first action includes adding a second action triggered by the end of sleep to the set, including:
[0026] When entering the screen-off state, the collection list is obtained from the collection.
[0027] The actions of the action class in the set list are executed sequentially, and the set list is cleared after execution.
[0028] Optionally, after a preset time following the execution of the first action, the sleep ends, and a second action triggered by the sleep end is executed. The second action includes adding a third action triggered by the power state to the set, including:
[0029] Upon the end of the sleep state, the list of collections is retrieved from the collection.
[0030] The actions of the action class in the set list are executed sequentially, and the set list is cleared after execution.
[0031] Optionally, after the second action is executed, the third action triggered by the power state is executed, and the fingerprint icon is displayed with a preset animation, including:
[0032] When entering the power state, the set list is obtained from the set.
[0033] The actions of the action class in the set list are executed sequentially, and the set list is cleared after execution.
[0034] The present invention also proposes a fingerprint icon animation playback device, the device comprising 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 fingerprint icon animation playback method as described in any of the preceding claims.
[0035] The present invention also proposes a computer-readable storage medium storing a fingerprint icon animation playback program, which, when executed by a processor, implements the steps of the fingerprint icon animation playback method as described in any of the preceding claims.
[0036] The fingerprint icon animation playback method, device, and computer-readable storage medium of the present invention add a first action triggered by screen-off to a preset set during the system's sleep state; upon receiving a power button press command and entering a screen-off state, the first action triggered by screen-off is executed, wherein the first action includes adding a second action triggered by sleep end to the set; after a preset time following the execution of the first action, the system enters sleep end mode and executes the second action triggered by sleep end, wherein the second action includes adding a third action triggered by power state to the set; after the second action is executed, the third action triggered by power state is executed, and the fingerprint icon is displayed with a preset animation. This achieves a fingerprint icon animation playback control scheme with lower space complexity and higher code stability, effectively avoiding fingerprint icon animation playback errors and greatly improving the user's under-display fingerprint experience. Attached Figure Description
[0037] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0038] Figure 1This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0039] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;
[0040] Figure 3 This is a flowchart of the first embodiment of the fingerprint icon animation playback method of the present invention;
[0041] Figure 4 This is a flowchart of the second embodiment of the fingerprint icon animation playback method of the present invention;
[0042] Figure 5 This is a flowchart of the third embodiment of the fingerprint icon animation playback method of the present invention;
[0043] Figure 6 This is a flowchart of the fourth embodiment of the fingerprint icon animation playback method of the present invention;
[0044] Figure 7 This is a flowchart of the fifth embodiment of the fingerprint icon animation playback method of the present invention;
[0045] Figure 8 This is a flowchart of the sixth embodiment of the fingerprint icon animation playback method of the present invention;
[0046] Figure 9 This is a flowchart of the seventh embodiment of the fingerprint icon animation playback method of the present invention;
[0047] Figure 10 This is a flowchart of the eighth embodiment of the fingerprint icon animation playback method of the present invention;
[0048] Figure 11 This is a schematic diagram of the control flow of the first embodiment of the fingerprint icon animation playback method of the present invention;
[0049] Figure 12 This is a schematic diagram of the trigger scene identifier of the second embodiment of the fingerprint icon animation playback method of the present invention;
[0050] Figure 13 This is a schematic diagram of the action encapsulation of the third embodiment of the fingerprint icon animation playback method of the present invention;
[0051] Figure 14 This is a schematic diagram illustrating the relationship between sets and actions in the fifth embodiment of the fingerprint icon animation playback method of the present invention;
[0052] Figure 15 This is a schematic diagram of the first action addition in the sixth embodiment of the fingerprint icon animation playback method of the present invention;
[0053] Figure 16This is a schematic diagram of the execution triggering scenario corresponding to the sixth embodiment of the fingerprint icon animation playback method of the present invention;
[0054] Figure 17 This is a schematic diagram of the second action addition in the seventh embodiment of the fingerprint icon animation playback method of the present invention;
[0055] Figure 18 This is a schematic diagram of the third action addition in the eighth embodiment of the fingerprint icon animation playback method of the present invention. Detailed Implementation
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] The following is combined with Figure 1A detailed introduction to each component of the mobile terminal:
[0062] 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).
[0063] WiFi is a short-range wireless transmission technology. Mobile terminals, through 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0076] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0077] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0078] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0079] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0080] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0081] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0082] Based on the aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0083] Example 1
[0084] Figure 3 This is a flowchart of the first embodiment of the fingerprint icon animation playback method of the present invention. A fingerprint icon animation playback method, the method comprising:
[0085] S1. Add the first action triggered by screen turning off to a preset set based on the system's sleep time.
[0086] S2. Upon receiving a power button press command and entering a screen-off state, execute the first action triggered by the screen-off state, wherein the first action includes adding a second action triggered by the end of sleep to the set.
[0087] S3. After a preset time following the execution of the first action, the sleep ends, and the second action triggered by the end of the sleep is executed, wherein the second action includes adding a third action triggered by the power state to the set.
[0088] S4. After the second action is executed, the third action triggered by the power state is executed, and the fingerprint icon is displayed with a preset animation.
[0089] In this embodiment, a container arithmetic algorithm is designed to eliminate the need to monitor variable changes in multiple places in the code, thereby reducing the space complexity of the code, improving the stability of the code, and thus avoiding fingerprint icon display errors.
[0090] In this embodiment, the triggering scenarios are divided into three types: first, screen off (KEY_SCREEN_OFF), second, power state Doze (KEY_SCREEN_DOZE), and third, sleep end (KEY_SLEEP_DONE). The third type can also be referred to as sleep 500ms end when sleep ends at an interval of 500ms.
[0091] In this embodiment, please refer to Figure 11The control flow diagram illustrates the process as follows: When the power button is pressed, a first action triggered by screen-off is added to a preset set based on the system's sleep time. Upon receiving the power button press command and entering the screen-off state, the first action triggered by screen-off is executed, where the first action includes adding a second action triggered by sleep end to the set. After a preset time following the execution of the first action, the system enters sleep end mode and executes the second action triggered by sleep end, where the second action includes adding a third action triggered by power state to the set. After the second action is executed, the third action triggered by power state is executed, and a fingerprint icon is displayed with a preset animation.
[0092] Optionally, in this embodiment, when a power button press command is received again during any of the above steps, all current and subsequent tasks are cleared. Specifically, in conjunction with the following embodiment, this embodiment sets the list collection corresponding to all keys in the map to empty during the system wakeup time.
[0093] The beneficial effect of this embodiment is that, by adding a first action triggered by screen-off to a preset set through the system's sleep time, and upon receiving a power button press command and entering a screen-off state, the first action triggered by screen-off is executed, wherein the first action includes adding a second action triggered by sleep end to the set; after a preset time following the execution of the first action, the system enters sleep end and executes the second action triggered by sleep end, wherein the second action includes adding a third action triggered by power state to the set; after the second action is executed, the third action triggered by power state is executed, and the fingerprint icon is displayed with a preset animation. This achieves a fingerprint icon animation playback control scheme with lower space complexity and higher code stability, effectively avoiding fingerprint icon animation playback errors and greatly improving the user's under-display fingerprint experience.
[0094] Example 2
[0095] Figure 4 This is a flowchart of the second embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, before adding the first action triggered by screen-off to the preset set through the system's sleep time, it includes:
[0096] S01, retrieve the three-digit key value.
[0097] S02. The three preset trigger scenarios are marked as screen off, power state, and sleep end by using the three key values.
[0098] In this embodiment, please refer to Figure 12The diagram illustrates the trigger scenario identifier. Each int value has 32 bits and can be used to identify 32 different event (Key) triggers. In this embodiment, the trigger scenario is marked as Key. Three bits are used to represent the trigger scenario's power state switching to screen off (KEY_SCREEN_OFF), power state Doze (KEY_SCREEN_DOZE), and sleep 500-second sleep ending (KEY_SLEEP_DONE).
[0099] The beneficial effect of this embodiment is that by retrieving a three-digit key value, and using this three-digit key value to mark the three preset trigger scenarios as screen off, power state, and sleep end, a fingerprint icon animation playback control scheme with lower space complexity and higher code stability is achieved. This effectively avoids fingerprint icon animation playback errors and greatly improves the user's under-display fingerprint experience.
[0100] Example 3
[0101] Figure 5 This is a flowchart of the third embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, before adding the first action triggered by screen-off to the preset set through the system's sleep time, it further includes:
[0102] S03. Determine the action to be executed, the name of the action, and the triggering scenario corresponding to the action.
[0103] S04. Encapsulate the action, the name, and the triggering scenario into a preset action class.
[0104] In this embodiment, please refer to Figure 13 The diagram illustrates the action encapsulation. The action to be executed is re-encapsulated into a class, which serves as the action class in this embodiment. This class is labeled ActionSub, and it primarily contains the action name (Name), the triggering scenario key, and the action itself.
[0105] The beneficial effect of this embodiment is that by determining the action to be executed, the name corresponding to the action, and the triggering scenario corresponding to the action, and encapsulating the action, the name, and the triggering scenario into a preset action class, a fingerprint icon animation playback control scheme with lower space complexity and higher code stability is achieved. This effectively avoids fingerprint icon animation playback errors and greatly improves the user's under-display fingerprint experience.
[0106] Example 4
[0107] Figure 6This is a flowchart of the fourth embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, before adding the first action triggered by screen-off to the preset set through the system's sleep time, it further includes:
[0108] S05. A set is preset to store the key values and the action classes.
[0109] S06. Add a method to the collection, wherein the method parameters are the action, the name, and the triggering scenario.
[0110] Optionally, in this embodiment, a map is designed, which stores a list of key-value pairs, namely key and ActionSub.
[0111] Optionally, in this embodiment, a method is added to the map collection, the method parameters of which are the trigger scene key, the action name, and the action; then the name, the trigger scene key, and the action are encapsulated into ActionSub.
[0112] The beneficial effect of this embodiment is that by pre-setting a set for storing the key values and the action classes, and adding a method to the set, the method parameters of which are the action, the name, and the triggering scenario, a fingerprint icon animation playback control scheme with lower space complexity and higher code stability is achieved. This effectively avoids fingerprint icon animation playback errors and greatly improves the user's under-display fingerprint experience.
[0113] Example 5
[0114] Figure 7 This is a flowchart of the fifth embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, before adding the first action triggered by screen-off to the preset set through the system's sleep time, it further includes:
[0115] S07. Identify whether a set list corresponding to the triggering scenario exists in the set.
[0116] S08. If the set list does not exist, create the set list corresponding to the triggering scenario, store the set list in the set, and store the action class in the set list.
[0117] In this embodiment, please refer to Figure 14The diagram illustrates the relationship between sets and actions. Specifically, it retrieves the set list corresponding to the trigger scene key from the map; if the set list does not exist, it is created and stored in the map. Then, the ActionSub from the above embodiment is stored in the set list.
[0118] The beneficial effect of this embodiment is that it identifies whether a set list corresponding to the triggering scenario exists in the set; if the set list does not exist, it creates the set list corresponding to the triggering scenario and stores the set list in the set, and also stores the action class in the set list. This achieves a fingerprint icon animation playback control scheme with lower space complexity and higher code stability, effectively avoiding fingerprint icon animation playback errors and greatly improving the user's under-display fingerprint experience.
[0119] Example 6
[0120] Figure 8 This is a flowchart of the sixth embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, when receiving the power button press command and entering the screen-off state, the first action triggered by the screen-off state is executed, wherein the first action includes adding a second action triggered by the end of sleep to the set, including:
[0121] S21. When entering the screen-off state, obtain the set list from the set.
[0122] S22. Execute the actions of the action class in the set list in sequence, and empty the set list after execution.
[0123] In this embodiment, please refer to Figure 15 The diagram illustrates the addition of the first action. Specifically, the system adds a screen-off triggered first action to a preset set based on the system's sleep time. That is, during the system's gotosleep period, Action1, which triggers the screen-off (KEY_SCREEN_OFF) event, is added to the map. Action1 includes adding "Sleep 500 End (KEY_SLEEP_DONE)" to the map and Action2, where Action2 sets the power state to Power Doze.
[0124] In this embodiment, please refer to Figure 16 The diagram illustrates the events corresponding to the execution trigger scenarios. When the screen is off (KEY_SCREEN_OFF) is triggered, the corresponding list collection is retrieved from the map; then, the Actions in the ActionSub collection are executed sequentially; finally, the list collection is cleared.
[0125] The beneficial effect of this embodiment is that, by retrieving the collection list from the set when entering the screen-off state, sequentially executing the actions of the action class in the collection list, and then clearing the collection list after execution, a fingerprint icon animation playback control scheme with lower space complexity and higher code stability is achieved. This effectively avoids fingerprint icon animation playback errors and greatly improves the user's under-display fingerprint experience.
[0126] Example 7
[0127] Figure 9 This is a flowchart of the seventh embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, after the first action is executed, the sleep ends at a preset time, and the second action triggered by the sleep ends is executed. The second action includes adding a third action triggered by the power state to the set, including:
[0128] S31. Upon the end of the sleep state, obtain the set list from the set.
[0129] S32. Execute the actions of the action class in the set list in sequence, and empty the set list after execution.
[0130] In this embodiment, please refer to Figure 17 The diagram illustrates the second action. In Action2, a Doze(KEY_SCREEN_DOZE) event is added to trigger Action3, and the system state is switched to Power Doze. Action3 will then display the fingerprint icon in an animated manner.
[0131] In this embodiment, when the sleep process ends after 500 milliseconds (KEY_SLEEP_DONE) and is triggered, the corresponding list collection is retrieved from the map; then, the Actions in the ActionSub collection are executed sequentially; finally, the list collection is set to empty.
[0132] The beneficial effect of this embodiment is that by retrieving the collection list from the set upon the end of the sleep state, sequentially executing the actions of the action classes in the collection list, and then emptying the collection list after execution, a fingerprint icon animation playback control scheme with lower space complexity and higher code stability is achieved. This effectively avoids fingerprint icon animation playback errors and greatly improves the user's under-display fingerprint experience.
[0133] Example 8
[0134] Figure 10This is a flowchart of the eighth embodiment of the fingerprint icon animation playback method of the present invention. Based on the above embodiment, after the second action is executed, the third action triggered by the power state is executed, and the fingerprint icon is displayed with a preset animation, including:
[0135] S33. When entering the power state, obtain the set list from the set.
[0136] S34. Execute the actions of the action class in the set list in sequence, and empty the set list after execution.
[0137] In this embodiment, please refer to Figure 18 The diagram illustrates the addition of the third action. Specifically, Action3 is added to Action2, triggering a Doze(KEY_SCREEN_DOZE) event. Simultaneously, the system state is switched to Power Doze, and the Action3 event will display the fingerprint icon in an animated manner.
[0138] In this embodiment, when the power state Doze(KEY_SCREEN_DOZE) is triggered, the corresponding list collection is retrieved from the map; then, the Actions in the ActionSub collection are executed sequentially; finally, the list collection is set to empty.
[0139] The beneficial effect of this embodiment is that, upon entering the power state, the set list is retrieved from the set; the actions of the action class in the set list are executed sequentially; and the set list is cleared after execution. This achieves a fingerprint icon animation playback control scheme with lower space complexity and higher code stability, effectively avoiding fingerprint icon animation playback errors and greatly improving the user's under-display fingerprint experience.
[0140] Example 9
[0141] Based on the above embodiments, the present invention also proposes a fingerprint icon animation playback 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 fingerprint icon animation playback method as described in any of the above embodiments.
[0142] 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.
[0143] Example 10
[0144] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a fingerprint icon animation playback program, which, when executed by a processor, implements the steps of the fingerprint icon animation playback method as described in any of the above embodiments.
[0145] 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.
[0146] 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.
[0147] 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.
[0148] 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.
[0149] 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 playing fingerprint icon animation, characterized in that, The method includes: Retrieve three-digit key values; The three preset trigger scenarios are marked as screen off KEY_SCREEN_OFF, power status KEY_SCREEN_DOZE, and sleep end KEY_SLEEP_DONE by the three key values. The system adds a first action triggered by the screen-off key_SCREEN_OFF to a preset set by entering sleep time; Upon receiving a power button press command and entering the screen-off KEY_SCREEN_OFF state, the first action triggered by the screen-off KEY_SCREEN_OFF state is executed, wherein the first action includes adding a second action triggered by the sleep end KEY_SCREEN_DOZE state to the set. After the first action is executed, the sleep end KEY_SCREEN_DOZE is entered at a preset time, and the second action triggered by the sleep end KEY_SCREEN_DOZE is executed, wherein the second action includes adding a third action triggered by the power state KEY_SCREEN_DOZE to the set; After the second action is executed, the third action triggered by the power state KEY_SCREEN_DOZE is executed. At the same time, the system state is set to the low power consumption mode Power Doze, and the fingerprint icon is displayed with a preset animation.
2. The fingerprint icon animation playback method according to claim 1, characterized in that, The method further includes: Determine the action to be executed, the name of the action, and the triggering scenario corresponding to the action; The action, the name, and the triggering scenario are encapsulated into a preset action class.
3. The fingerprint icon animation playback method according to claim 2, characterized in that, The method further includes: A set is pre-defined to store the key values and the action classes; Add a method to the collection, the method parameters of which are the action, the name, and the triggering scenario.
4. The fingerprint icon animation playback method according to claim 3, characterized in that, The method further includes: Identify whether a set list corresponding to the triggering scenario exists in the set; If the set list does not exist, then create the set list corresponding to the triggering scenario, store the set list in the set, and store the action class in the set list.
5. The fingerprint icon animation playback method according to claim 4, characterized in that, The method further includes: When entering the screen-off state, the collection list is obtained from the collection; The actions of the action class in the set list are executed sequentially, and the set list is cleared after execution.
6. The fingerprint icon animation playback method according to claim 5, characterized in that, The method further includes: Upon the end of the sleep state, retrieve the list of collections from the collection; The actions of the action class in the set list are executed sequentially, and the set list is cleared after execution.
7. The fingerprint icon animation playback method according to claim 6, characterized in that, The method further includes: When entering the power state, the set list is obtained from the set; The actions of the action class in the set list are executed sequentially, and the set list is cleared after execution.
8. A fingerprint icon animation playback 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 fingerprint icon animation playback method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a fingerprint icon animation playback program, which, when executed by a processor, implements the steps of the fingerprint icon animation playback method as described in any one of claims 1 to 7.