Screen-off interface display method, electronic equipment and computer readable storage medium

CN120641870APending Publication Date: 2025-09-12HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480010839.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-10
Filing Date
2024-12-24
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

When a traditional terminal device switches to local or full screen mode after the screen is turned off in AOD state, the display effect is single, resulting in a low user experience.

Method used

By receiving user operations, playing the screen-destroying animation, and entering the full screen or local AOD mode according to the current configuration value of the configuration item, ensuring that the last frame of the screen-destroying animation is associated with the screen-destroying picture in the full screen-destroying AOD mode, achieving the consistency of the animation.

Benefits of technology

Improve user experience, avoid interface jumps through coherent animation transitions, and enhance the richness of display effects of terminal devices between different states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120641870A_ABST
    Figure CN120641870A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of terminals, and provides a screen-off interface display method, electronic equipment and a computer readable storage medium, the method comprises the following steps: receiving a first operation input by a user on a theme selection interface, in response to the first operation, selecting a first theme, the first theme corresponding to a first configuration file and a first resource bundle, the first configuration file at least comprises a first configuration item, and the first configuration item is used for indicating whether the first theme supports a full-screen AOD mode or not; receiving a second operation executed by the user in the unlocking state, wherein the second operation is a screen-off operation; in response to the second operation, playing the first screen-off animation; and after the first screen-off animation is played, responding to the current configuration value of the first configuration item to enable the first theme to support the full-screen AOD mode, and entering the full-screen AOD mode. The method can improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Screen-off interface display method, electronic device, and computer-readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 10, 2024, with application number 202410042446.4 and application name “Screen-off interface display method, electronic device and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a method for displaying an off-screen interface, an electronic device, and a computer-readable storage medium. Background Art

[0003] As the functions of terminal devices become more and more abundant, people's requirements for the user experience of terminal devices are also getting higher and higher.

[0004] The display effects of terminal devices in various scenarios have also attracted people's attention. For example, users will set different desktop and lock screen wallpapers according to their personal preferences.

[0005] In traditional display modes, if the user presses the power button to turn off the screen while the screen is unlocked, the terminal device will immediately turn off the screen. If the user has enabled the AOD function, after the screen turns off, the terminal device switches to partial AOD mode, which has a simple display effect and results in a poor user experience. Summary of the Invention

[0006] The present application provides a method, device, chip, electronic device, computer-readable storage medium and computer program product for displaying an off-screen interface, which can enhance user experience.

[0007] In a first aspect, a method for displaying a screen-off interface is provided, which is applied to an electronic device, the method comprising: receiving a first operation input by a user in a theme selection interface, the first operation being used to select a first theme; selecting the first theme in response to the first operation, the first theme corresponding to a first configuration file and a first resource package, the first configuration file including at least a first configuration item, the first configuration item being used to indicate whether the first theme supports full-screen AOD mode; receiving a second operation performed by the user in an unlocked state, the second operation being a screen-off operation; playing a first screen-off animation in response to the second operation; after playing the first screen-off animation, entering the full-screen AOD mode in response to the current configuration value of the first configuration item that the first theme supports full-screen AOD mode, the first screen-off animation being a resource in the first resource package, the last frame of the first screen-off animation being associated with the screen-off picture displayed in the full-screen AOD mode; wherein, in the full-screen AOD mode, the number of first pixels in the total number of pixels on the screen of the electronic device exceeds a first preset ratio, and the first pixels are the pixels that are lit on the screen.

[0008] After the user applies the first theme, if the user performs a screen-off operation, the terminal device can play a screen-off animation and enter the full-screen AOD mode based on the indication of the current configuration value of the first configuration item. Since the last frame of the screen-off animation is associated with the screen-off image displayed in the full-screen AOD mode, the content displayed by the two is the same or similar. In the process of entering the full-screen AOD mode after the screen-off animation is played, there will be no obvious jump in the interface, the display effect is coherent, and the user experience is improved.

[0009] In some possible implementations, playing the first screen-off animation includes: obtaining a first video file, the first video file being a resource in a first resource package, the first video file corresponding to a full-screen AOD mode and a current color mode of the current system; in response to the current configuration value of the second configuration item being support for playing the screen-off animation, playing the first screen-off animation according to the third configuration item, the second configuration item and the third configuration item being configuration items in the first configuration file, the second configuration item being used to indicate whether playing the screen-off animation is supported, and the third configuration item being used to indicate whether frame extraction is supported when playing the screen-off animation; when the current configuration value of the third configuration item is support for frame extraction when playing the first screen-off animation, extracting frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, the arrangement order of the multiple video frames in the first frame extraction sequence being the same as the arrangement order of the multiple video frames in the first video file; reversing the first frame extraction sequence to play the first screen-off animation; or, when the current configuration value of the third configuration item is not support for frame extraction when playing the screen-off animation, reversing the video frames in the first video file frame by frame to play the first screen-off animation.

[0010] The second and third configuration items above allow you to flexibly configure the playback mode and speed of the screen-off animation, providing more diverse usage scenarios.

[0011] In some possible implementations, the method also includes: in full-screen AOD mode, receiving a third operation input by the user, the third operation being used to light up the screen of the electronic device; in response to the first operation, the electronic device enters a bright screen state, and plays the first lock screen animation according to the fourth configuration item, the fourth configuration item being used to indicate the total number of frames of the first lock screen animation, the first lock screen animation being the first video interval from the first frame to the second frame in the first video file, the first frame being the first frame of the first video file, and the number of frames in the first video interval being the total number of frames of the first lock screen animation; after playing the first lock screen animation, entering the first bright screen lock screen state; in the first bright screen lock screen state, displaying the first lock screen interface, and the background image of the first lock screen interface being the last frame of the first lock screen animation.

[0012] In the first bright screen lock state, the electronic device displays the first lock screen interface. The background image of the first lock screen interface is the last frame of the first lock screen animation. This can ensure that the process of entering the lock screen interface from the full-screen AOD state displays a coherent animation without interface jumps, thereby improving the user experience.

[0013] In some possible implementations, when the first theme supports depth of field effect, in response to the first operation, after the first theme is selected, the method includes: obtaining a first lock screen picture from a first resource package, the first lock screen picture is a resource in the first resource package, and the first lock screen picture and the second frame include the same display content; in the first light-screen lock screen state, the step of displaying the first lock screen interface includes: displaying the first lock screen interface in the first light-screen lock screen state; displaying the first lock screen picture on the layer of the first lock screen interface.

[0014] If the first theme supports the depth of field effect, a layer of the first lock screen picture can be generated above the layer of the lock screen interface, and the first lock screen picture can be displayed above the layer of the first lock screen interface. When other operations are received, the first lock screen interface layer is destroyed and the first lock screen interface is displayed. The content displayed by the first lock screen picture is the same as the last frame (that is, the second frame) of the first lock screen animation, which can show the depth of field effect, and can make the process of entering the lock screen interface from the full-screen AOD state display a coherent animation without interface jumps, thereby improving the user experience.

[0015] In some possible implementations, the method also includes: in the first screen-on / lock state, receiving a fourth operation input by the user, the fourth operation being used to unlock the screen of the electronic device; in response to the fourth operation, playing the first desktop animation according to the fourth configuration item and the fifth configuration item, the fifth configuration item indicating the total number of frames of the first desktop animation, the first desktop animation being the second video interval from the third frame to the fourth frame in the first video file, the third frame being the next frame of the second frame, and the number of frames in the second video interval being the total number of frames of the first desktop animation; after playing the first desktop animation, displaying the first desktop, and the background image of the first desktop being the fourth frame.

[0016] If the user receives the fourth operation of unlocking the electronic device while the first lock screen is displayed, the first desktop animation can be played to enter the desktop. Specifically, the electronic device can play the second video interval between the next frame of the third frame indicated by the fourth configuration item and the fourth frame indicated by the fifth configuration item to play the first desktop animation. Since the background image of the first desktop is the fourth frame, the display effect of entering the desktop from the lock screen interface can be consistent without interface jumps, thereby improving the user experience.

[0017] In some possible implementations, the method also includes: in full-screen AOD mode, receiving a fifth operation input by the user, the fifth operation being used to unlock the screen of the electronic device; in response to the fifth operation, the electronic device enters a bright-screen unlock state, and plays the first video file according to the fourth configuration item and the fifth configuration item, the fourth configuration item and the fifth configuration item are configuration items in the first configuration file, the first video file includes a first lock screen animation and a first desktop animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is the first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, the number of frames in the first video interval is the total number of frames of the first lock screen animation, the fifth configuration item indicates the total number of frames of the first desktop animation, the first desktop animation is the second video interval from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames in the second video interval is the total number of frames of the first desktop animation; after playing the first video file, the first desktop is displayed, and the background image of the first desktop is the fourth frame.

[0018] If the user directly performs the fifth operation of unlocking the screen in full-screen AOD mode, such as touching the fingerprint spot displayed in the AOD mode to enter the fingerprint to unlock, the terminal device can continuously play the above-mentioned first lock screen animation and the first desktop animation and enter the desktop. The display effect of this process is coherent. Since the background image of the first desktop is the fourth frame, the display effect of entering the desktop from the lock screen interface is coherent. And since the background image of the first desktop is the fourth frame, the display effect of entering the desktop from the lock screen interface is coherent without any interface jumps, which improves the user experience.

[0019] In some possible implementations, the method also includes: receiving a sixth operation input by the user, the sixth operation being an operation for switching the AOD state; switching from the full-screen AOD mode to the local AOD mode in response to the sixth operation; receiving a seventh operation performed by the user in the bright-screen unlocked state, the seventh operation being a screen-off operation; playing a second screen-off animation in response to the seventh operation; entering the local AOD mode after playing the second screen-off animation, the second screen-off animation being a resource in the first resource package, and the last frame of the second screen-off animation being associated with the screen-off picture displayed in the local AOD mode; wherein, in the local AOD mode, the number of first pixels accounts for less than a second preset ratio of all pixels on the screen of the electronic device, and the second preset ratio is less than the first preset ratio.

[0020] When the user performs the sixth operation of switching the AOD state in the AOD state setting interface, the terminal device switches the full-screen AOD mode to the partial AOD mode in response to the sixth operation. If the user performs the seventh operation to turn off the screen, the terminal device can play the second screen-off animation corresponding to the partial AOD mode.

[0021] It should be noted that the last frame of the second screen-off animation is associated with the screen-off image displayed in the partial AOD mode, that is, the content displayed by the two is the same or similar. When switching from the last frame of the second screen-off animation to the partial AOD mode, the user will not feel a significant interface jump, which improves the user experience. This method supports switching between different AOD states, is highly flexible, and can adapt to the different needs of users.

[0022] In some possible implementations, playing the second screen-off animation includes: obtaining a second video file, the second video file being a video file in the first resource package, and the second video file corresponding to the local AOD mode and the current color mode; determining a first interval to be played from the second video file according to the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item, the arrangement order of the multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the second video file, the first interval to be played includes a target local lock screen animation and a second desktop animation, the sixth configuration item indicates the number of multiple local lock screen animations in the second video file, and the multiple local lock screen animations correspond to the local AOD mode The seventh configuration item indicates the target local lock screen animation corresponding to the second screen-off animation, and the target local lock screen animation is one of the multiple local lock screen animations. The eighth configuration item indicates the total number of frames of the multiple local lock screen animations. The ninth configuration item indicates the total number of frames of the first local lock screen animation in the multiple local lock screen animations. The tenth configuration item indicates the total number of frames of the second local lock screen animation in the multiple local lock screen animations. The eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The sixth, seventh, eighth, ninth, tenth and eleventh configuration items are configuration items in the first configuration file; the first local lock screen animation is from the fifth frame to the The third video interval of six frames, the fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first local lock screen animation; the second local lock screen animation is the fourth video interval from the seventh frame to the eighth frame in the second video file, the seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second local lock screen animation; the multi-segment local lock screen animation is the fifth video interval from the fifth frame to the ninth frame in the second video file, the fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multi-segment local lock screen animation; the second desktop animation is the sixth video interval from the tenth frame to the eleventh frame in the second video file, the tenth frame is the next frame of the ninth frame, and the sixth video interval is the next frame of the ninth frame. The number of frames in the interval is the total number of frames of the second desktop animation; in response to the current configuration value of the second configuration item supporting the playback of the screen-off animation, the second screen-off animation is played according to the third configuration item, and the third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation; when the current configuration value of the third configuration item is to support frame extraction when playing the second screen-off animation, frames are extracted from the first interval to be played according to a preset frame extraction multiple to obtain a second frame extraction sequence; the second frame extraction sequence is played in reverse to play the second screen-off animation; or, in response to the current configuration value of the third configuration item not supporting frame extraction when playing the screen-off animation, the first interval to be played is played in reverse frame by frame to play the second screen-off animation, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode.

[0023] The above configuration items allow you to flexibly configure the playback area, method, and speed of the screen-off animation, enriching your usage scenarios. Because the last frame of the second screen-off animation is associated with the screen-off image displayed in the local AOD mode, the interface will not experience noticeable jumps, improving the user experience.

[0024] In some possible implementations, the method also includes: in the local AOD mode, receiving an eighth operation input by the user, the eighth operation is used to light up the screen of the electronic device; in response to the eighth operation, the electronic device enters the screen-on state, and plays the second lock screen animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the off-screen picture of the local AOD mode, the second lock screen animation is one of multiple local lock screen animations, and the first frame of the second lock screen animation is associated with the current display position; after playing the second lock screen animation, entering the second screen-on lock screen state; in the second screen-on lock screen state, displaying the second lock screen interface, and the background image of the second lock screen interface is the last frame of the second lock screen animation.

[0025] In partial AOD mode, if the user enters a fingerprint at the fingerprint spot on the off-screen interface, the terminal device can determine the animation starting position and the closest display position to the current display position from multiple partial lock screen animations based on the ninth, tenth, and eleventh configuration items and the current display position of the off-screen image in partial AOD mode, and play it as the second lock screen animation. Since the background image of the second lock screen interface is the last frame of the second lock screen animation, the interface will not jump significantly during the unlocking process, improving the user experience.

[0026] In some possible implementations, the method also includes: in the second screen-on / lock state, receiving an eighth operation input by the user, the eighth operation being used to unlock the screen of the electronic device; in response to the eighth operation, playing the second desktop animation according to the eighth configuration item and the eleventh configuration item; after playing the second desktop animation, displaying the second desktop, and the background image of the second desktop is the eleventh frame.

[0027] If, in the second bright-screen lock state, the terminal device receives an unlock operation input by the user, such as inputting a fingerprint unlock operation, the electronic device may play the second desktop animation indicated by the eighth and eleventh configuration items and enter the second desktop. Since the background image of the second desktop is the last frame of the second video file, the display effect is continuous.

[0028] In some possible implementations, the method also includes: in the local AOD mode, receiving a ninth operation input by the user, the ninth operation being used to unlock the screen of the electronic device; in response to the ninth operation, the electronic device enters a bright screen state, and plays the second lock screen animation and the second desktop animation in sequence according to the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the off-screen picture in the local AOD mode, the second lock screen animation is one of multiple local lock screen animations in the second video file, the second video file is a resource in the first resource package, the multiple local lock screen animations correspond to multiple display positions of the off-screen picture in the local AOD mode, the first frame in the second lock screen animation is associated with the current display position, the ninth configuration item indicates the total number of frames of the first local lock screen animation in the multiple local lock screen animations, the tenth configuration item indicates the total number of frames of the second local lock screen animation in the multiple local lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, the ninth configuration item, the tenth configuration item and the eleventh configuration item are configuration items in the first configuration file; after playing the second desktop animation, the second desktop is displayed, and the background image of the second desktop is the last frame of the second desktop animation.

[0029] If the user directly performs the ninth operation to unlock the screen in partial AOD mode, such as entering a fingerprint in AOD mode, the terminal device determines the partial lock screen animation closest to the starting position of the current display position of the partial AOD mode off-screen image, and then plays the partial lock screen animation and the second desktop animation in sequence to enter the second desktop. This ensures a smooth transition from the AOD state to the desktop without any interface jumps, thereby improving the user experience.

[0030] In a second aspect, a screen-off interface display device is provided, comprising a unit composed of software and / or hardware, which is used to execute any one of the methods in the technical solution of the first aspect.

[0031] In a third aspect, an embodiment of the present application provides a chip comprising a processor; the processor is used to read and execute a computer program stored in a memory to execute any one of the methods in the technical solution described in the first aspect.

[0032] Optionally, the chip further includes a memory, and the memory is connected to the processor via a circuit or wire.

[0033] Further optionally, the chip also includes a communication interface.

[0034] In a fourth aspect, an electronic device is provided, which includes: a processor, a memory, and an interface; the processor, the memory, and the interface cooperate with each other so that the electronic device executes any one of the methods in the technical solution described in the first aspect; or includes any one of the chips described in the third aspect.

[0035] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the processor executes any one of the methods in the technical solution described in the first aspect.

[0036] In a sixth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on an electronic device, enables the electronic device to execute any one of the methods in the technical solution described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] FIG1 is a schematic structural diagram of a terminal device 100 provided in an embodiment of the present application;

[0038] FIG2 is a schematic diagram of an off-screen interface in a partial AOD mode provided in an embodiment of the present application;

[0039] FIG3 is a schematic diagram of an off-screen interface in a full-screen AOD mode provided in an embodiment of the present application;

[0040] FIG4 is a schematic diagram of a switch interface of an AOD state provided in an embodiment of the present application;

[0041] FIG5 is a schematic diagram of a lock screen animation in full-screen AOD mode provided by an embodiment of the present application;

[0042] FIG6 is a schematic diagram of another example of a lock screen animation in full-screen AOD mode provided in an embodiment of the present application;

[0043] FIG7 is a software structure block diagram of the terminal device 100 provided in an embodiment of the present application;

[0044] FIG8 is an interactive diagram of an example of a method for displaying a screen-off interface provided in an embodiment of the present application;

[0045] FIG9 is a flowchart of a method for displaying an off-screen interface according to an embodiment of the present application;

[0046] FIG10 is a flowchart of another example of a method for displaying a screen-off interface provided in an embodiment of the present application;

[0047] FIG11 is a schematic diagram of the structure of the screen-off interface display device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0049] In the following, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features indicated. Therefore, a feature specified as "first," "second," or "third" may explicitly or implicitly include one or more of the features.

[0050] The screen-off interface display method provided in the embodiments of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The embodiments of the present application do not impose any restrictions on the specific type of terminal device.

[0051] For example, FIG1 is a schematic diagram of the structure of a terminal device 100 provided in an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0052] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0053] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.

[0054] As terminal devices become increasingly versatile, people's expectations for user experience are also increasing. The display quality of terminal devices in various scenarios is also attracting attention. For example, users may set different desktop and lock screen wallpapers based on their personal preferences. If a user performs a screen-on-display operation while in AOD mode, the terminal device's interface will switch directly from the AOD interface to the lock screen mode, resulting in a monotonous display.

[0055] The off-screen interface display method provided in the embodiment of the present application is a display solution for a terminal device that switches from an off-screen state to a bright-screen state, which can enrich the display effect and enhance the user experience.

[0056] In order to clearly describe the detailed process of entering the screen-on state from the screen-off state, the screen-off function that controls the screen-off state is first introduced.

[0057] When the screen-off function is turned on for a terminal device, the screen can be turned off when the user is not using the terminal device.

[0058] The screen-off function is switched on and off as follows: the user can click on the desktop: Settings > Desktop and Wallpaper, and the terminal device will display the interface shown in Figure 4 a. The user clicks on the card for screen-off display in Figure 4 a to enter the screen-off setting interface shown in Figure 4 b. The screen-off setting interface includes a switch control for screen-off display. The user can click on the switch control for screen-off display in the screen-off setting interface to turn the screen-off function on or off. Optionally, the user can also select any one of the display modes: all-day display, touch display, and timed display from the display mode menu of the screen-off setting interface. Figure 4 b takes the all-day display mode as an example.

[0059] The screen-off state can be reflected as a display state of the screen of the terminal device, and can also be called the always-on display (AOD) mode or the AOD state. In the AOD state, the interface displayed on the screen is called the screen-off interface, and the picture displayed in the screen-off interface is called the screen-off picture. In the AOD state, the screen of the terminal device is not in the screen-off state, but will continue to display some useful information, such as continuously displaying time, date, battery level and other information, and can also display screen-off pictures and fingerprint spots, as shown in Figure 2. The screen-off picture in Figure 2 contains people and bicycles. In the AOD state, users can obtain important information such as time, date, notifications, and battery level without waking up the phone. Compared with frequently waking up the phone screen to view information, the AOD function can greatly reduce the number of wake-ups, thereby saving battery consumption. Optionally, the information displayed in the AOD state can also be increased or decreased based on user settings.

[0060] The AOD status can be divided into two modes based on the difference in display mode: one is the local AOD mode. In the local AOD mode, the screen-off picture will not occupy the entire screen, but only a smaller area of ​​the screen, and the screen-off picture and other areas except the time, date, notification, power and other information will be black. The other is the full-screen AOD mode. In the full-screen AOD mode, the screen-off picture occupies most of the screen (for example, the screen-off picture occupies 95 percent of the screen area), and the time, date, power and other information are displayed on the upper layer of the screen-off picture. In the full-screen AOD mode, there is no large area of ​​black screen on the screen, as shown in Figure 3. The screen-off picture in Figure 3 includes balloons and background.

[0061] In order to distinguish between the full-screen AOD mode and the local AOD mode, the distribution of the pixel values ​​of the pixels in the screen is used to describe it. The pixel value of the pixel displayed as black on the screen is 0 or close to 0 (for example, less than 10). The larger the pixel value, the higher the brightness. Then, in the local AOD mode, a smaller area of ​​the screen is used to display information such as off-screen pictures and time. This smaller area is called the display area. In the local AOD mode, the pixel values ​​of all or most of the pixels in the display area are large (higher brightness), for example, greater than 100; and the pixel values ​​of most areas of the screen other than the display area (except the area other than the off-screen pictures, time, date, notifications, power and other information) are 0 or close to 0.

[0062] In full-screen AOD mode, most or all of the area of ​​the screen is used to display the off-screen picture, and the pixel values ​​of all pixels or most of the pixels in the off-screen picture are large, for example, greater than 100. Therefore, in full-screen AOD mode, the number of pixels in the screen whose pixel values ​​are greater than a preset pixel value threshold (for example, 100) (pixels with high brightness) accounts for a large proportion of the full screen, for example, a proportion greater than a preset ratio. Optionally, the preset ratio can be any ratio between 90% and 100%. The preset pixel value threshold can be 100, 200, or other numbers that are significantly different from 0.

[0063] Whether it is full-screen AOD mode or partial AOD mode, the AOD state can also include three modes based on the difference in display timing: one is the touch mode, that is, tap to enter the AOD state. In the touch mode, if the user has not used the terminal device for a long time, the terminal device will enter the screen-off state. After entering the screen-off state, the terminal device does not display any interface. In the screen-off state, when the user taps the screen, the terminal device enters the AOD state, and the terminal device can display the corresponding screen-off interface. The other is the all-weather mode, that is, when the terminal device is not in use, it is in the AOD state all day long, and the terminal device will not automatically turn off the screen. In the all-weather mode, when the user clicks the power button or does not use the terminal device for a long time, the terminal device enters the AOD state and continuously displays the screen-off interface. There is also a timer mode, that is, when the terminal device is not in use, during the set timer period (for example, between 7 am and 11 pm), the terminal device will not automatically turn off the screen, but will continue to display the screen-off interface; and during other periods outside the set timer period, the terminal device enters the screen-off state when not in use and no longer displays any interface. In the timer mode, users can set different timer periods according to their needs. Optionally, the AOD state may also have modes based on other display timings, which is not limited in the embodiments of the present application.

[0064] The above AOD state describes the display status of the screen. In the AOD state, the terminal device can also enter Doze mode. In Doze mode, the terminal device's system applications reduce network access and CPU usage, the CPU frequency is reduced, the frame rate of the off-screen interface is reduced, and the screen brightness is reduced, thereby saving battery power.

[0065] After Doze mode has been in effect for a while, it can enter a deeper sleep mode, called Doze suspend mode. If the AOD state is set to all-day mode, in Doze suspend mode, the CPU frequency is further reduced, the frame rate of the off-screen interface is further reduced, for example, the frame rate is refreshed to one frame per second, and the screen brightness is further reduced, thereby further conserving battery power.

[0066] In the AOD state, when the user clicks the power button, the screen can enter the lock screen state from the off-screen interface, and the lock screen interface is displayed in the lock screen state. If the user sets a lock screen animation, when the terminal device enters the lock screen state from the AOD state, it will play an animation from the off-screen interface to the lock screen state. This animation is called the lock screen animation. The display effect of the lock screen animation includes two modes. One is the depth of field effect. If the user sets the depth of field effect for the lock screen animation, when the terminal device plays the lock screen animation, the foreground animation layer in the lock screen animation will cover the time layer and be displayed on the top layer. Figure 5 shows the playback process of the lock screen animation. When the terminal device displays the off-screen interface as shown in Figure a in Figure 5, the user presses the power button to trigger the playback of the lock screen animation. During the playback of the lock screen animation, the foreground animation (two superimposed circles) is gradually enlarged and displayed from the position shown in Figure a in Figure 5. The middle can be displayed as shown in Figure b in Figure 5, and then continue to play to enter the lock screen state, displaying the lock screen interface as shown in Figure c in Figure 5. Figure b in Figure 5 is an interface schematic diagram during the playback of the lock screen animation when there is a depth of field effect. As can be seen from Figure b in Figure 5, the lock screen animation (that is, the layer of the foreground animation) blocks the time layer. The other is a non-depth of field effect. If the user does not set the depth of field effect for the lock screen animation, the terminal device will always play the lock screen animation in the lower layer of the time layer in the lock screen state during the playback of the lock screen animation, and the time layer in the lock screen state will always be displayed in the upper layer of the lock screen animation. The playback process of the lock screen animation without a depth of field effect can continue to refer to Figure 5. When the terminal device displays the off-screen interface shown in Figure a in Figure 5, the user presses the power button to trigger the playback of the lock screen animation. During the playback of the lock screen animation, the two superimposed circles in the lock screen animation are gradually enlarged and displayed from the position shown in Figure a in Figure 5, and the middle can be displayed as shown in Figure 5 d, and then continue to play and enter the lock screen state, displaying the lock screen interface shown in Figure c in Figure 5. As can be seen from Figure 5 d, the lock screen animation does not block the time layer and is always displayed in the lower layer of the time layer. It should be noted that regardless of whether the user sets the depth of field effect, the terminal device can display the lock screen interface after the lock screen animation is finished playing. On the lock screen, there will be no foreground animation layer, and the time will always be displayed on the top layer without being blocked.

[0067] Under the depth of field effect, the foreground animation can not only block the time layer for display. Optionally, the foreground animation can also block other display objects in the interface, such as notifications, battery icons, etc. Optionally, under the depth of field effect, different objects in the animation can also be played in layers, with some objects located in the lower layer of the time layer and other objects covering the upper layer of the time layer to enhance the display effect. This application does not limit the specific playback form of the depth of field effect.

[0068] Figure 6 is another diagram of the interface changes during the playback of the lock screen animation. Figures 6 and 5 both use the full-screen AOD mode to enter the lock screen state for example. In the full-screen AOD mode shown in Figure a in Figure 6, the user clicks the power button to trigger the playback of the lock screen animation. During the playback of the lock screen animation, it can be displayed as shown in Figure b in Figure 6. It can be seen that the brightness of the interface in Figure b in Figure 6 becomes higher. The terminal device continues to play the lock screen animation and enters the lock screen state, displaying the lock screen interface shown in Figure c in Figure 6. The brightness of the lock screen interface shown in Figure c in Figure 6 is higher than that shown in Figure b in Figure 6, that is, during the playback of the lock screen animation shown in Figure 6, the screen gradually becomes brighter. The proportions of the interface diagram shown in Figure 6 are examples and are not used to limit the proportions displayed on the actual interface. Optionally, the interface shown in Figure 6 can also include icons such as fingerprint spots (not shown in the figure), which are not limited in the embodiments of the present application.

[0069] In order to improve the display effect when entering the bright screen state from the AOD state, an embodiment of the present application provides an off-screen interface display method, which controls the interface display form from the AOD state to the bright screen state by setting multiple configuration items, so that the display animation process is continuous, thereby improving the display effect.

[0070] Next, the software architecture on which the embodiments of the present application rely is introduced.

[0071] The software system of the terminal device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the terminal device 100.

[0072] Figure 7 is a software structure diagram of the terminal device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer, from top to bottom. The application layer may include a series of application packages.

[0073] As shown in FIG7 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0074] The application package also includes: theme package (theme module), wallpaper package (wallpaper APK), AOD module, system user interface module (System UI) and desktop launcher (launcher).

[0075] Theme packages are used to manage the settings, display, and preview of different themes.

[0076] The wallpaper package includes wallpaper modules that support a variety of different wallpaper forms, such as: folding wallpaper module, dynamic wallpaper module, 3D wallpaper module and super wallpaper module (super wallpaper service). Different wallpaper modules are used to achieve different wallpaper display effects.

[0077] The AOD module is used to implement the related display of the local AOD mode mentioned above, and is also called a local AOD module.

[0078] System UI can control the animation display mode from AOD state to lock screen state in full-screen AOD mode.

[0079] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0080] As shown in Figure 7, the application framework layer can include a window manager (WindowManagerService), a content provider, a view system, a phone manager, a resource manager, a notification manager, a theme switching service (Thememanager), a wallpaper management service (WallpaperManagerSevice, or called a wallpaper framework service), a dream service (DreamService) and a power management service (PowerManagerService), etc.

[0081] The window manager is used to manage window programs, including managing the window hierarchy and display order. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0082] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0083] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0084] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including answering, hanging up, etc.).

[0085] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0086] The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and disappear automatically after a short stay without user interaction.

[0087] The theme package and super wallpaper module, supported by the theme switching service and super wallpaper management service of the application framework layer, realize the switching of the theme mode of the terminal device and display the theme of the super wallpaper corresponding to the theme mode.

[0088] The power management service is used to manage the screen status of the terminal device, whether it is on, off, and whether the screen is unlocked.

[0089] Dream Service is used to manage the display status of the terminal device's screen on, screen off, and Doze mode.

[0090] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0091] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0092] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0093] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).

[0094] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0095] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0096] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0097] A 2D graphics engine is a drawing engine for 2D drawings.

[0098] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0099] For ease of understanding, the following embodiments of this application will take a terminal device having the structure shown in Figures 1 and 7 as an example, and combine the accompanying drawings and application scenarios to specifically explain the screen-off interface display method provided in the embodiments of this application.

[0100] The user can select the wallpaper theme to be applied by setting the theme package. For example, the user clicks the theme card in Figure 4a to enter the theme selection interface to select the desired wallpaper theme. Figure 4a shows an example in which the user selects and applies Theme 1 as the wallpaper theme.

[0101] After the user selects the required wallpaper theme and applies it, if the terminal device enters the AOD state or the screen-off state, and then enters the screen-on state again, the terminal device can display the corresponding animation effect according to the selected wallpaper theme.

[0102] First, the process of the user setting the theme package to make the selected wallpaper theme effective is described, as shown in Figure 8:

[0103] S701. The user sets a wallpaper theme (wallpaper type) for the super wallpaper.

[0104] It should be noted that wallpaper themes can include multiple wallpaper themes, such as super wallpaper, 3D wallpaper, dynamic wallpaper and folding wallpaper. Different wallpaper themes have different display effects.

[0105] Specifically, the user can operate on the terminal device, select Settings > Desktop and Wallpaper to open the Desktop and Wallpaper interface shown in Figure 4a, and then click the theme card to enter the theme package settings page. The user selects the desired Super Wallpaper wallpaper theme from multiple wallpaper themes to be selected on the settings page.

[0106] S702. The theme module responds to the user selecting the wallpaper theme of super wallpaper by setting the package name of the super wallpaper service (for example, live.wallpaper.paradise) and launching the super wallpaper service through the wallpaper framework service.

[0107] Specifically, in response to the user selecting a wallpaper theme for a super wallpaper, the theme package launches the corresponding super wallpaper service (SuperWallpaperService) through the wallpaper framework service according to the package name of the super wallpaper service. Alternatively, if the user selects a wallpaper theme for a dynamic wallpaper, the dynamic wallpaper service is launched and the dynamic wallpaper effect is displayed.

[0108] S703. The super wallpaper service obtains resources corresponding to the wallpaper theme according to the wallpaper theme.

[0109] Specifically, the super wallpaper service obtains the lock screen animation, desktop animation, lock screen image, desktop wallpaper and other resources corresponding to the super wallpaper from the preset resource path according to the wallpaper theme of the super wallpaper.

[0110] Optionally, the resource path may be: / product h / region comm / china / themes / FoldingFan.hwt, where FoldingFan.hwt is a resource package corresponding to the wallpaper theme of the super wallpaper, and the resource package may be a file in hwt format.

[0111] S704: The wallpaper framework service also sends a broadcast message carrying the current wallpaper theme to the System UI.

[0112] For example, if the wallpaper theme is 3D wallpaper before the user sets a new wallpaper theme, and the user selects a Super Wallpaper theme, the Wallpaper Framework Service also sends a broadcast message to the System UI. This broadcast message carries the Super Wallpaper identifier (e.g., package name), indicating that the wallpaper theme has switched from 3D wallpaper to Super Wallpaper.

[0113] S705. The super wallpaper service is launched by the wallpaper framework service and parses the configuration file of the corresponding theme package according to the wallpaper theme.

[0114] Optionally, the configuration file may be an XML file, for example, named livepaper.xml. The configuration file includes multiple configuration items, which are used to configure the playback mode of the lock screen animation and the desktop animation.

[0115] In order to clearly introduce the technical solution of this application, the configuration items are described in detail here. The multiple configuration items in the configuration file include but are not limited to some or all of the following configuration items 1 to 16:

[0116] 1. support_background_blur (support background blur): Indicates whether the screen is blurred when sliding in the locked state. For example, when the value of this configuration item is false, the screen is not blurred when sliding in the locked state; when the value of this configuration item is true, the screen is blurred when sliding in the locked state.

[0117] 2. support_dark_mode (support dark mode): Indicates whether to follow the system color scheme. For example, when the value of this configuration item is false, the lock screen animation and desktop animation can support dark mode; when the value of this configuration item is true, the lock screen animation and desktop animation cannot support dark mode.

[0118] 3.aod_to_lock_total_frame (local AOD - total number of lock screen frames): represents the total number of frames of the animation from local AOD mode to lock screen state.

[0119] 4. lock_to_launcher_total_frame (lock screen - desktop total frame count): represents the total number of frames of the animation from the lock screen state to the desktop.

[0120] In an embodiment of the present application, the animation from the local AOD mode to the lock screen state, and the animation from the lock screen state to the desktop can be stored as a video file, and the video interval of the video file to be played can be determined in different scenarios based on specific configuration items.

[0121] For example, when the configuration item aod_to_lock_total_frame is 51, it means that the animation from the partial AOD mode to the lock screen state includes 51 frames of images. When the terminal device enters the lock screen state from the AOD mode, these 51 frames of images can be played.

[0122] For example, if the lock_to_launcher_total_frame configuration item is 35, it means that the animation from the lock screen to the desktop consists of 35 frames. If the animation from the partial AOD mode to the lock screen and the animation from the lock screen to the desktop are part of a video file consisting of 86 frames (51 + 35), when the terminal device is unlocked from the lock screen and enters the desktop, the video interval from frames 52 to 86 of this video file will be played, that is, the last 35 frames of the 86 frames will be played.

[0123] 5.aod_style (AOD style): represents the style of AOD corresponding to the super wallpaper.

[0124] For example, when aod_style is: WisdomLightclock; Wisdom_Light, WisdomLightclock is the identifier of the AOD style (e.g., name), and Wisdom_Light is the identifier of the AOD theme (e.g., name). The AOD module can display the corresponding AOD theme and style in AOD mode according to the name of the AOD style and the name of the AOD theme configured in the configuration item. Optionally, the AOD style configuration item can be used to configure the AOD style in the local AOD mode.

[0125] 6.aod_support_transition_animation (supports screen-off animation transition): Indicates whether the screen brightness gradually dims after the screen-off animation is played, thereby connecting to the screen-off interface.

[0126] For example, when this configuration item is false, it means that the screen brightness gradually dims after the super wallpaper animation is completed; when this configuration item is set to true, it means that the screen brightness gradually dims after the super wallpaper animation is completed. Optionally, this configuration item can default to false. Optionally, this configuration item can be used to configure the display method in the local AOD mode. Since the black area accounts for a large proportion in the off-screen interface of the local AOD mode, this configuration item can make the screen brightness gradually dim after the super wallpaper animation is completed, and connect with the off-screen interface in the local AOD mode without causing a sudden change.

[0127] 7.support_frame_extraction (supports frame extraction for screen-off animation): indicates whether the screen-off animation supports frame extraction. The screen-off animation is the animation played when the screen switches from the on state to the off state. When this configuration item is false, it means that frame extraction is not supported and can only be played frame by frame. When this configuration item is true, it means that frame extraction is supported. You can further set the frame extraction method according to other configuration items, such as configuration item 11 (the default paragraph for the screen-off animation) below.

[0128] 8.extract_stage_one_orig_anim_frame (total number of frames of the first animation).

[0129] 9.extract_stage_two_orig_anim_frame (total number of frames of the second animation).

[0130] Specifically, extract_stage_one_orig_anim_frame and extract_stage_two_orig_anim_frame are configuration items for the frame extraction method. Through these two configuration items, the video file that needs to be extracted is divided into three video intervals. extract_stage_one_orig_anim_frame represents the total number of frames in the first video interval, and extract_stage_two_orig_anim_frame represents the total number of frames in the second video interval. The other frames in the video file except the first video interval and the second video interval are the third video interval. In other words, the total number of frames in the third video interval is the total number of frames in the video file minus the total number of frames in the first video interval, minus the total number of frames in the second video interval.

[0131] Taking a video file including 86 frames of images as an example, when the value of support_frame_extraction indicates that frame extraction is supported, extract_stage_one_orig_anim_frame is 86, and extract_stage_two_orig_anim__frame is 0, it means that all video files are allocated to the first video interval.

[0132] For example, if the value of support_frame_extraction indicates frame extraction is supported, and extract_stage_one_orig_anim_frame is 30 and extract_stage_two_orig_anim_frame is 30, then the total number of frames in the three video segments is 30, 30, and 26 (86-30-30), respectively. Furthermore, the first video segment includes frames 1 through 30; the second video segment includes the 30 frames from frame 31 to the next frame, that is, to frame 60; and the third video segment includes the 26 frames from frame 61 to the next frame, that is, to frame 86.

[0133] Optionally, when the video file that needs to be extracted frames needs to be divided into more video intervals, other video interval configuration items can be added based on the definition of configuration items 8 and 9 to configure the total number of frames in the corresponding video interval.

[0134] 10.aod_animation_segments (number of AOD animation segments): Indicates the number of animations (videos) involved when entering the lock screen state from the local AOD mode. For example, when this configuration item is 3, it means that the number of animations involved when entering the lock screen state from the local AOD mode is 3; when this configuration item is 5, it means that the number of animations involved when entering the lock screen state from the local AOD mode is 5. In order to illustrate the specific meaning of this configuration item, the animation in the local AOD mode is introduced here.

[0135] In all-day mode with partial AOD, to prevent the off-screen image from being constantly displayed in the same position and potentially causing screen burn-in, the off-screen image will gradually move downward from the top of the screen at regular intervals. For example, when aod_animation_segments is 9, the off-screen image can move from the top position to the ninth position at the bottom of the screen, then, after a one-minute interval, start from the top position and move downward one position at one-minute intervals, repeating this cycle.

[0136] That is to say, in the local AOD mode, there are nine situations for the position of the screen-off picture. In order to ensure the continuity of the animation when entering the lock screen interface from the local AOD mode, multiple animations can be used. In each animation, the starting position of the screen-off picture is different. For example, the starting position corresponding to the screen-off picture in the first animation is at the second position. When the screen-off picture in the local AOD mode is at the first position, the second position or the third position, the user turns on the screen, and the terminal device plays the first animation. The starting position corresponding to the screen-off picture in the first animation is the same as or close to the second position, and is also close to the first position and the third position. This ensures the continuity of the animation when entering the lock screen interface from the local AOD mode when the screen-off picture is at the first position, the second position or the third position, and there will be no obvious jump in the position of the screen-off picture. Other positions can also be corresponded by using the same animation for multiple consecutive positions. It is important to ensure that the starting position corresponding to the screen-off picture in these multiple consecutive positions is the same as or close to these multiple consecutive positions, thereby ensuring the continuity of the animation. Optionally, when there are nine positions, the step between each position can be 40 pixels, and these nine positions can correspond to 5 animations respectively, so as to ensure the continuity of the animation without taking up too much storage space due to too many animations.

[0137] Optionally, in the local AOD mode, five positions can be set to display the off-screen image for the local AOD mode. The step between each of these five positions can be 80 pixels. Optionally, these five positions can correspond to three animation segments, for example, the first and second positions correspond to the first animation segment, the third position corresponds to the second animation segment, and the fourth and fifth positions correspond to the third animation segment. Then, in the local AOD mode, if the off-screen image moves to the first or second position, and the user operates to turn the screen on, the terminal device can play the first animation segment, in which the starting position corresponding to the off-screen image in the first animation segment is closer to the first and second positions than to the other positions; if the off-screen image moves to the third position, and the user operates to turn the screen on, the terminal device can play the second animation segment, in which the starting position corresponding to the off-screen image in the second animation segment is closer to the third position than to the other positions; if the off-screen image moves to the fourth or fifth position, and the user operates to turn the screen on, the terminal device can play the third animation segment, in which the starting position corresponding to the off-screen image in the third animation segment is closer to the fourth and fifth positions than to the other positions.

[0138] 11.aod_to_lock_default_animation_stage (default animation stage for screen-off animation): Indicates which animation stage of the multiple animation stages used to enter the lock screen interface in the local AOD mode mentioned above should be used by default in the screen-off animation (entering AOD mode with the screen on). Optionally, when the number of multiple animation stages is 3, this configuration item can be 1, indicating that the first animation stage is used for the screen-off animation; when the number of multiple animation stages is 5, this configuration item can be 2, indicating that the second animation stage is used for the screen-off animation.

[0139] For example, when the number of multiple animation segments is 3, the entire video file can include 188 (51*3+35) frames of images, among which frames 1 to 51 are the first animation segment, frames 52 to 102 are the third animation segment, frames 103 to 153 are the third animation segment, and frames 154 to 188 are the video interval from the lock screen interface to the desktop.

[0140] 12.support_off_screen_animation (support off-screen animation): indicates whether off-screen animation is supported.

[0141] When this configuration item is false, the screen-off animation is not supported. If the user turns off the screen, the terminal device can directly enter the screen-off state or the screen-off state without displaying the animation effect. When this configuration item is true, the screen-off animation is supported, and the display strategy of the screen-off animation can be determined according to the aforementioned configuration items 7, 8, 9, and 11.

[0142] For example, if configuration item 7 is true, and configuration items 8, 9, and 11 are 51, 51, and 1, respectively, if the user turns off the screen, the terminal device will reverse the video from frame 1 to frame 51 of the first animation segment of the video file according to the frame-snap multiple. If configuration item 11 is changed to 2, the video will reverse the video from frame 52 to frame 102 of the second animation segment of the video file. The rest of the instructions will not be repeated.

[0143] When configuration item 7 is false (frame extraction is not supported), and configuration items 8, 9, and 11 are 51, 51, and 1 respectively, if the user turns off the screen, the terminal device will reverse the first animation of the video file frame by frame, that is, reverse the video interval from frame 1 to frame 51 frame by frame.

[0144] It should be noted that the frame extraction multiplier represents the number of valid frames extracted when playing a video. For example, a frame extraction multiplier of 2 means that one frame is extracted from every two frames, that is, one frame is extracted every other frame for playback. If the frame extraction multiplier is 1.66, it means that two frames are extracted from every three frames, that is, two consecutive frames are extracted every other frame for playback. If the total number of animation frames remains unchanged, the larger the frame extraction multiplier, the shorter the playback time of the screen-off animation; the smaller the frame extraction multiplier, the longer the playback time of the screen-off animation.

[0145] 13.support_full_screen_aod (support full-screen AOD mode): indicates whether the current wallpaper theme supports full-screen AOD mode.

[0146] When the value of this configuration item is true, it means that the resource package of the parsed super wallpaper contains resources related to the full-screen AOD mode and can support the display requirements in the full-screen AOD mode; when the value of this configuration item is false, it means that the resource package of the parsed super wallpaper does not contain resources related to the full-screen AOD mode and cannot support the display requirements in the full-screen AOD mode, and can only support the operation of the partial AOD mode.

[0147] Optionally, in some wallpaper themes, the full-screen AOD mode may be preferred, and the value of this configuration item defaults to true.

[0148] 14.aod_to_lock_total_frame_full_aod (full-screen AOD - total number of frames for lock screen): Indicates the total number of frames of the animation when going from full-screen AOD mode to lock screen mode. For example, when this configuration item is 36, it means that the total number of frames of the animation when going from full-screen AOD mode to lock screen mode is 36.

[0149] 15. lock_to_launcher_total_frame_full_aod (Lock screen - desktop total frames for full-screen AOD): Indicates the total number of frames in the animation when entering the desktop from the lock screen in full-screen AOD mode. For example, if this configuration item is 35 and the total number of frames from full-screen AOD mode to lock screen mode is 36, the video file corresponding to full-screen AOD mode will contain 71 (35 + 36) frames.

[0150] 16.super_wallpaper_scheme (supports depth of field mode): Indicates whether the wallpaper theme supports depth of field effect. If the configuration value of this configuration item matches the current wallpaper theme, it means that the current wallpaper theme supports depth of field effect; if the configuration value of this configuration item does not match the current wallpaper theme, it means that the current wallpaper theme does not support depth of field effect. For example, among the three wallpaper themes, the three wallpaper themes correspond to scheme 1, scheme 2 and scheme 3 respectively. If the configuration values ​​of this configuration item are 1 and 3, and the current wallpaper theme corresponds to scheme 2, it means that the configuration values ​​of this configuration item (1 and 3) do not match the current wallpaper theme, and the current wallpaper theme does not support depth of field effect; if the current wallpaper theme corresponds to scheme 1 or scheme 3, it means that the configuration value of this configuration item matches the current wallpaper theme, and the current wallpaper theme supports depth of field effect.

[0151] Based on the descriptions of configuration items 1-16 above, it can be seen that regardless of whether the screen is in partial AOD mode or full-screen AOD mode, the animations for transitioning from the screen-off state to the locked screen state and then back to the desktop can use the same video file. Furthermore, in different display phases, different video intervals can be configured based on the relevant items in the above configuration items, and the corresponding video interval can be displayed according to the display phase.

[0152] S706: The theme module obtains the target configuration items and configuration values ​​corresponding to the wallpaper theme from the configuration file and writes them into the settings database.

[0153] For example, the theme module can obtain the target configuration items in the configuration file according to the wallpaper theme and write them into the database. When the configuration items in the off-screen state indicate support for the partial AOD mode, the configuration items related to the partial AOD mode: support_dark_mode is true, aod_animation_segments is 3, aod_to_lock_total_frame is 51, lock_to_launcher_total_frame is 35, aod_style is (WisdomLightclock; Wisdom_Light), extract_stage_one_orig_anim_frame is 86, extract_stage_two_orig_anim_frame is 0, aod_to_lock_default_animation_stage is 1 and other configuration items and their corresponding configuration values ​​are written into the settings database.

[0154] For example, when the configuration items in the screen-off state indicate support for the full-screen AOD mode, the theme module can also write the configuration items related to the full-screen AOD mode: support_dark_mode is true, support_full_screen_aod is true, aod_to_lock_total_frame_full_aod is 36, lock_to_launcher_total_frame_full_aod is 35 and other configuration items and corresponding configuration values ​​into the settings database.

[0155] Optionally, other configuration items can be selectively written as needed.

[0156] Optionally, when the configuration items of the screen-off state support the partial AOD mode and the full-screen AOD mode, the configuration items related to the partial AOD mode and the configuration items related to the full-screen AOD mode can be written into the setting database for ready call.

[0157] Optionally, the theme module can also obtain the color mode of the current system as dark mode or light mode, and write the color mode into the setting database for the super wallpaper service to read.

[0158] S707. The super wallpaper service obtains the target configuration item and the corresponding configuration value, the system color mode, and the supported screen-off state from the setting database according to the wallpaper theme.

[0159] Optionally, the supported screen-off state is used to indicate whether the partial AOD mode or the full-screen AOD mode is currently supported. The supported screen-off state includes any one of the following states:

[0160] global_only: indicates that the wallpaper theme only supports full-screen AOD mode;

[0161] local_only global: indicates that this wallpaper theme only supports local AOD mode;

[0162] global_local_recommend_global: indicates that this wallpaper theme is preferred for use in full-screen AOD mode;

[0163] global_local_recommend_local: indicates that the wallpaper theme is preferred for use in local AOD mode;

[0164] global_and_local: indicates support for full-screen AOD mode and local AOD mode.

[0165] Optionally, the target configuration item may further include part or all of the above configuration items 1-16, and the configuration value corresponding to each configuration item.

[0166] S708. SystemUI obtains the corresponding lock screen image according to the wallpaper theme carried in the received broadcast message, the system's color mode, and the AOD status, and loads the lock screen image.

[0167] Optionally, if the depth of field effect is currently set and the full-screen AOD mode is selected, SystemUI reads the lock screen image that matches the wallpaper theme from the parsed resource package according to the received wallpaper theme and loads it. The lock screen image can be the same image as the last frame of the lock screen animation mentioned above, or it can be called a placeholder image of the lock screen state, which is used to be displayed on the upper layer of the time layer after the lock screen animation is played, so that the display between the lock screen interface and the desktop is consistent, the display effect is improved, and the user experience is improved. Afterwards, if the user performs an operation such as unlocking the screen, the layer of the lock screen image (placeholder) is destroyed and no longer displayed.

[0168] For example: SystemUI can determine the placeholder image as dark_Aod_live_wallpaper.jpg when the system color mode is dark mode and the AOD state is partial AOD mode; when the color mode is light mode and the AOD mode is partial AOD mode, the super wallpaper service determines the placeholder image as Aod_live_wallpaper.jpg; when the color mode is dark mode and the AOD state is full-screen AOD mode, SystemUI determines the placeholder image as dark_fullAod_live_wallpaper.jpg; when the color mode is light mode and the AOD state is full-screen AOD mode, SystemUI determines the placeholder image as fullAod_live_wallpaper.jpg.

[0169] Optionally, if the depth of field effect is not currently set, SystemUI does not need to read the lock screen image, which simplifies the operation and saves resources.

[0170] S709. The super wallpaper service obtains the corresponding video file according to the color mode and AOD status.

[0171] Specifically, the Super Wallpaper service can determine the video file required for the animation based on the current system's color mode and AOD status. For example: when the color mode is dark mode and the AOD status is local AOD mode, the Super Wallpaper service determines that the video file required for the animation is dark video_live_wallpaper.mp4; when the color mode is light mode and the AOD mode is local AOD mode, the Super Wallpaper service determines that the video file required for the animation is video_live_wallpaper.mp4; when the color mode is dark mode and the AOD mode is full-screen AOD mode, the Super Wallpaper service determines that the video file required for the animation is dark video_live_wallpaper_fullAod.mp4; when the color mode is light mode and the AOD mode is full-screen AOD mode, the Super Wallpaper service determines that the video file required for the animation is video_live_wallpaper_fullAod.mp4.

[0172] At the same time, the super wallpaper service can also instruct the multimedia codec to initialize the desktop according to the wallpaper theme currently set by the user, so that after setting the wallpaper theme, the user can see the desktop corresponding to the applied wallpaper theme when returning to the desktop, so that the user can clearly perceive the display status after the wallpaper theme is applied, and the interactivity is strong.

[0173] The above S701 to S709 describe the detailed process of the terminal device applying the wallpaper theme set by the user.

[0174] Afterwards, if the user changes the AOD state, the above process S708 and S709 can be repeated to apply the new AOD state wallpaper theme. For details, please refer to the description of steps S710 to S711:

[0175] S710. SystemUI monitors the settings database to obtain the new system color mode and new AOD status.

[0176] It should be noted that when the user changes the AOD state (for example, switching from local AOD mode to full-screen AOD mode, or from full-screen AOD mode to local AOD mode), and / or changes the system color mode (for example, switching from dark mode to light mode, or from light to dark).

[0177] For example, if the configuration item extract_stage_one_orig_anim_frame in the configuration file is changed from 86 to 36, the frame extraction interval of the screen-off animation becomes from frame 1 to frame 36 of the video file. For another example, when the configuration item aod_style is changed, the style of the screen-off image displayed in the AOD state will also change accordingly.

[0178] S711. SystemUI obtains a new video file according to the refreshed new system color mode and new AOD status monitored.

[0179] Optionally, if the depth of field effect is currently set and the full-screen AOD mode is used, SystemUI can obtain and load a new frequency-locked image based on the refreshed new system color mode and new AOD state monitored.

[0180] The detailed description of the above S710 and S711 can be found in the description of S708 and S709 in the previous text, and will not be repeated here.

[0181] The aforementioned S701 to S711 introduced the application process of the wallpaper theme. The following introduces the off-screen interface display method in different display stages based on the application results of the application process in the previous article.

[0182] S712: The user performs a screen-lighting operation.

[0183] After the user sets the wallpaper theme and applies it, the user turns off the screen and the terminal device can enter the AOD state. The detailed process of the terminal device entering the AOD state from the bright screen unlocked state can be found in the description after the screen off operation later, which will not be repeated here.

[0184] When the terminal device enters the AOD state, if the user needs to use the terminal device, he can click the power button to perform the screen light-up without unlocking the device.

[0185] S713: The power manager generates a screen-on-unlock instruction in response to the screen-on-unlock operation.

[0186] The screen-on but not unlock instruction instructs the terminal device to enter the screen-on state, but no fingerprint is input to unlock it, that is, it enters the lock screen state.

[0187] If the current mode is full-screen AOD mode, the power manager may further execute operations from S714 to S716 in response to the screen-on but not unlock operation.

[0188] S714. The power manager sends a screen-on-but-unlock instruction to the SystemUI.

[0189] S715. System UI responds to the screen-on-but-unlock instruction and determines whether the lock screen image (placeholder image) can achieve a 0.95x zoom operation.

[0190] Optionally, the zoom factor of 0.95 here is only an example, and other zoom factors are possible, which is not limited in the embodiments of the present application.

[0191] S716. If supported, SystemUI displays the lock screen image at a zoom factor of 0.95. If not supported, SystemUI displays the placeholder image at its original size after the lock screen animation finishes.

[0192] It's important to note that the placeholder image can be scaled 0.95x. This means that after the length and width of the placeholder image are proportionally reduced to 95 percent of their original size, the size of the target object in the new placeholder image is consistent or visually consistent with the size of the dynamically changing object in the last frame of the lock screen animation. This ensures the continuity of the lock screen animation and prevents jumps caused by a significant size difference between the target object and the dynamically changing object. Dynamically changing objects are those that change frame by frame in the lock screen animation, such as the two superimposed balloons shown in Figure 5.

[0193] If the lock screen image supports 0.95x scaling, SystemUI will scale the original lock screen image by 0.95 after the lock screen animation is played, and display it as a new placeholder on the lock screen state layer. If the lock screen image does not support 0.95x scaling, SystemUI will display the original image on the lock screen state layer after the lock screen animation is played. It should be noted that the last frame of the lock screen image and the lock screen animation is the same, which can make the display effect from the lock screen animation to the lock screen state coherent, improving the user experience.

[0194] It should be noted that the above S715 and S716 are optional operations. SystemUI does not need to determine whether the lock screen image supports zooming operations, and can directly display the lock screen image in its original size.

[0195] S717. The power manager sends a screen-on-unlock instruction to the super wallpaper service through the wallpaper framework service.

[0196] S718. The super wallpaper service generates a first play instruction according to the configuration file in response to the screen-on-but-unlock instruction, and instructs the multimedia codec to play the lock screen animation according to the first play instruction.

[0197] It should be noted that if the terminal device is in full-screen AOD mode, the first play instruction is forwarded through the full-screen AOD module. Among them, the full-screen AOD module is a module in the lock screen process in SystemUI. If the terminal device is in local AOD mode, the super wallpaper service forwards the first play instruction through the local AOD module.

[0198] The multimedia codec plays the lock screen animation in response to the first play instruction with the support of the media play service of the application framework layer.

[0199] In S709 above, the Super Wallpaper Service has already determined the video file to be played. Here, based on the "On Screen, Don't Unlock" instruction, the Super Wallpaper Service determines that the lock screen animation from the AOD state to the lock screen state needs to be played. Then, based on the relevant configuration items in the configuration file indicating the lock screen animation, it determines the video interval to be played in the video file and generates a first play instruction to instruct the multimedia codec to display it.

[0200] For example, in the local AOD state, the video file determined by the super wallpaper service is dark video_live_wallpaper.mp4, and the total number of frames of the video file is 188 frames. The relevant configuration items and configuration values ​​of the lock screen animation include: support_dark_mode is true (indicating support for dark mode), aod_animation_segments is 3 (indicating that the number of animation segments in the local AOD mode is 3), aod_to_lock_total_frame is 153 (indicating that the total number of frames of the 3 animation segments in the local AOD mode is 153), extract_stage_one_orig_anim_frame is 51 (indicating that the total number of frames of the first animation segment in the local AOD mode is 51). Currently in the local AOD mode, the screen-off picture is located at the first position at the top of the screen (corresponding to the need to display the first animation segment). The super wallpaper service generates a first play instruction based on the configuration items and corresponding configuration values ​​related to the lock screen animation, and instructs the multimedia codec to play the video interval from the 1st frame to the 51st frame in dark video_live_wallpaper.mp4 according to the first play instruction. This video interval is the lock screen animation from the local AOD mode to the lock screen state. Optionally, if in the local AOD mode, the off-screen image is located in the second position at the top of the screen, and extract_stage_two_orig_anim_frame is also 51, it means that the second paragraph in the animation paragraph of the local AOD mode needs to be played, then the video interval from the 52nd frame (the next frame of the first animation paragraph) to the 102nd frame (51+51) in dark video_live_wallpaper.mp4 is played.

[0201] For example, when the video file determined by the super wallpaper service is fullAod_live_wallpaper.mp4, the total number of frames is 86 frames, and the configuration values ​​of the relevant configuration items include: support_full_screen_aod (support full-screen AOD mode) support_dark_mode is false (dark mode is not supported), aod_to_lock_total_frame_full_aod is 35 (indicating that the lock screen animation is the first 35 frames in the video file). Currently in full-screen AOD mode, the super wallpaper service generates a first play instruction based on the configuration items related to the lock screen animation and the corresponding configuration values, and instructs the multimedia codec to play the video interval from frame 1 to frame 35 in fullAod_live_wallpaper.mp4 according to the first play instruction. The video interval is the lock screen animation from full-screen AOD mode to lock screen state. If the depth of field effect is currently displayed, after playing the animation from full-screen AOD mode to lock screen state, SystemUI also displays the pre-loaded lock screen picture (placeholder).

[0202] Here, the detailed process of animation playback is explained by taking the super wallpaper service as an example of instructing the multimedia codec to play the lock screen animation according to the first play instruction. For example, in the current full-screen AOD mode, the super wallpaper service determines that the multimedia codec plays the video interval from frame 1 to frame 35 in fullAod_live_wallpaper.mp4. This video interval is the lock screen animation from full-screen AOD mode to lock screen state. The super wallpaper service generates a first play instruction based on relevant configuration items and configuration values. The first play instruction includes information on playing frames 1 to 35.

[0203] The super wallpaper service instructs the multimedia codec to play frames 1 to 35 according to a preset frame rate. Taking 60 frames per second as an example, the super wallpaper service sends a first sub-instruction to the multimedia codec to play frame 1 at the first moment, and the multimedia codec responds to the first sub-instruction to play frame 1; the super wallpaper service sends a second sub-instruction to the multimedia codec to play frame 2 at the second moment, and the multimedia codec responds to the second sub-instruction to play frame 2; the super wallpaper service sends a second sub-instruction to the multimedia codec to play frame 3 at the third moment, and the multimedia codec responds to the second sub-instruction to play frame 3, and so on, until frame 35 is played. In this way, the user can see a continuously playing screen-off animation. Optionally, if the multimedia codec does not receive any other instructions, the 35th frame can be continuously displayed. It should be noted that the interval between the previous moment and the next moment is a preset interval, and the preset interval is related to the frame rate. For example, the preset interval is the quotient of the unit time divided by the frame rate. For example, if the frame rate is 100 frames per second and the unit time is 1 second, the preset interval is 60 milliseconds. The super wallpaper service can send sub-instructions at the preset interval of 60 milliseconds to instruct the multimedia codec to play frame by frame to form an animation.

[0204] S719: The user performs a lock screen unlock operation.

[0205] When the terminal device enters the lock screen state, the user can also perform unlocking operations in the lock screen state, such as entering a fingerprint at the fingerprint spot in the lock screen state, or entering a password, face, etc. in the lock screen state.

[0206] S720. In response to the lock screen unlocking operation, SystemUI generates an unlocking instruction and sends the unlocking instruction to the super wallpaper service.

[0207] It should be noted that if the user swipes up the screen in the locked screen state, the terminal device will generate a lock screen unlock command if the face is detected and verified. The unlock command can instruct the terminal device to play the desktop animation from the locked screen state to the desktop to enter the desktop.

[0208] If the user swipes up from the locked screen and the device fails to detect their face or fails face verification, the device enters the lock screen password input interface. If the user enters the correct unlock password on the lock screen password input interface, the device generates an unlock command.

[0209] If the configuration item support_background_blur is configured with the value true, it means that background blur is supported. When entering the lock screen password input interface, the background will be blurred except for the password input area, and the user will not be able to see the clear background image. If the configuration item support_background_blur is configured with the value false, it means that background blur is not supported. When entering the lock screen password input interface, the background will not be blurred except for the password input area, and the lock screen status interface can be clearly displayed below the lock screen password input area.

[0210] S721. The super wallpaper service generates a second play instruction in response to the lock screen unlock instruction according to the configuration item, instructing the multimedia codec to play the desktop animation.

[0211] It should be noted that if the terminal device is in full-screen AOD mode, the second play instruction is forwarded through the full-screen AOD module. If the terminal device is in partial AOD mode, the wallpaper service forwards the second play instruction through the partial AOD module.

[0212] For example, in the current local AOD mode, the video file determined by the super wallpaper service is dark video_live_wallpaper.mp4, with a total frame number of 188 frames. The configuration values ​​of the relevant configuration items include: support_dark_mode is true (support dark mode), aod_animation_segments is 3, aod_to_lock_total_frame is 153 (51*3), extract_stage_one_orig_anim_frame is 51, and extract_stage_two_orig_anim_frame is 51. The super wallpaper service generates a second play instruction containing relevant configuration items and instructs the multimedia codec to play the video interval from frame 154 (the frame after 51*3) to frame 188 (the last frame of the video file) in dark video_live_wallpaper.mp4. This video interval is the desktop animation from the lock screen state to the desktop.

[0213] For another example, the current full-screen AOD mode is full, and the Super Wallpaper service determines that the video file is fullAod_live_wallpaper.mp4 with a total frame count of 86. The configuration values ​​of the relevant configuration items include: support_dark_mode is false (dark mode is not supported) and lock_to_launcher_total_frame_full_aod is 35. The Super Wallpaper service instructs the multimedia codec to play the video interval from frame 36 (the next frame after frame 35) to frame 86 (the last frame of the video file) in fullAod_live_wallpaper.mp4. This video interval is the desktop animation from the lock screen state to the desktop.

[0214] Optionally, if the user directly performs the screen-off unlocking operation in the AOD state, for example, directly pressing the fingerprint spot with a finger to unlock in the AOD state, the terminal device continuously plays the animation from the AOD state to the lock screen state and the animation from the lock screen state to the desktop.

[0215] For example, in the current partial AOD mode, the Super Wallpaper service determines that the video file is dark video_live_wallpaper.mp4, with a total of 188 frames. The configuration values ​​of the relevant configuration items include: support_dark_mode is true (support dark mode), aod_animation_segments is 3, aod_to_lock_total_frame is 153 (51*3), extract_stage_one_orig_anim_frame is 51, and extract_stage_two_orig_anim_frame is 51. If the off-screen image is located at the top of the screen, the Super Wallpaper service instructs the multimedia codec to continuously play the video segments from frames 1 to 51, and from frames 154 (the frame after 51*3) to 188 (the last frame of the video file) in dark video_live_wallpaper.mp4. This video segment is the entire animation from partial AOD mode to the desktop.

[0216] For another example, the current full-screen AOD mode is selected, and the Super Wallpaper service determines that the video file is fullAod_live_wallpaper.mp4 with a total frame count of 86. The configuration values ​​of the relevant configuration items include: support_dark_mode is false (dark mode is not supported) and lock_to_launcher_total_frame_full_aod is 35. In this case, the Super Wallpaper service instructs the multimedia codec to continuously play the video interval from frame 1 to frame 86 (the last frame of the video file) in fullAod_live_wallpaper.mp4. This video interval is the entire animation from the full-screen AOD mode to the desktop.

[0217] Optionally, if the device is currently in full-screen AOD mode and the user performs the screen-off unlocking operation, the terminal device continuously plays the lock screen animation from the AOD state to the lock screen state and the lock screen state to the desktop animation without displaying a placeholder image. The terminal device continuously plays the lock screen animation from the AOD state to the lock screen state and the lock screen state to the desktop animation, which can show a coherent unlocking process, improve the display effect, and thus enhance the user experience.

[0218] S722: The user performs a screen-off operation.

[0219] After using the terminal device, the user can click the power button to turn off the screen.

[0220] S723. In response to the screen-off operation, the power manager generates a screen-off instruction.

[0221] S724. The power manager sends the screen-off instruction to the super wallpaper service through the wallpaper framework service.

[0222] S725. The super wallpaper service generates a third play instruction in response to the screen-off instruction according to the configuration item, instructing the multimedia codec to play the screen-off animation.

[0223] It should be noted that if the terminal device is in full-screen AOD mode, the third play instruction is forwarded through the full-screen AOD module. If the terminal device is in partial AOD mode, the wallpaper service forwards the third play instruction through the partial AOD module.

[0224] For example, the video file determined by the super wallpaper service is dark video_live_wallpaper.mp4, with a total number of frames of 188. The configuration values ​​of the relevant configuration items include: support_dark_mode is true, aod_animation_segments is 3, aod_to_lock_total_frame is 153, extract_stage_one_orig_anim_frame is 51, support_off_screen_animation is true, support_frame_extraction is true, and aod_support_transition_animation is true. Currently in local AOD mode, the super wallpaper service generates a third playback instruction, instructing the multimedia codec to play the video intervals from the first frame to the 51st frame (the video interval corresponding to the first animation paragraph) and the 154th to the 188th frame in dark video_live_wallpaper.mp4, and to play the video interval in reverse in the form of frame extraction to form a screen-off animation. For example, when the frame extraction multiplier is 2, the Level Wallpaper Service generates a third play instruction, instructing the media codec to play frames 188, 186, 184, 182, and so on, up to frame 154, then play frames 51, 49, 47, and so on, up to frame 1, in sequence. Alternatively, if support_frame_extraction is set to false, the Level Wallpaper Service generates a third play instruction, instructing the media codec to play frames 188, 187, 186, 185, and so on, up to frame 154, then play frames 51, 50, 49, and so on, up to frame 1, in reverse order, to create a screen-off animation.

[0225] For another example, the video file determined by the super wallpaper service is fullAod_live_wallpaper.mp4, with a total number of frames of 86 frames. The configuration values ​​of the relevant configuration items include: support_dark_mode is false, lock_to_launcher_total_frame_full_aod is 35, support_off_screen_animation is true, support_frame_extraction is true, and aod_support_transition_animation is true. Currently in full-screen AOD mode, the super wallpaper service generates a third play instruction, instructing the multimedia codec to play the video interval from frame 1 to frame 86 in fullAod_live_wallpaper.mp4, and to play the video interval in reverse in the form of frame extraction to form a screen-off animation. For example, when the frame extraction multiple is 2, the media codec selects frame 86, frame 84, frame 82, frame 80... up to frame 2 in fullAod_live_wallpaper.mp4 and plays them sequentially. Optionally, if support_frame_extraction is changed to false, the media codec selects the 86th, 85th, 84th, 83rd, ..., and 1st frame in fullAod_live_wallpaper.mp4, and plays them in reverse frame by frame to form a screen-off animation.

[0226] Optionally, based on the above embodiment, a brightness gradient effect can be set for the screen-off animation in full-screen AOD mode. During the screen-off animation, the screen brightness gradually dims, and is close to or consistent with the brightness in full-screen AOD mode, making the display effect more coherent and improving the user experience. For example, the following steps after S726 may be included:

[0227] S726. The power manager sends a screen-off instruction to SystemUI.

[0228] S727. SystemUI obtains the brightness change range in response to the screen off instruction.

[0229] During the screen-off animation, SystemUI can obtain the screen brightness in the screen-on state. Then, SystemUI determines the brightness change gradient based on the brightness change interval between the current screen brightness and the target brightness value. This brightness change gradient can instruct the screen to gradually reduce the screen brightness. Among them, the target brightness value is lower than the screen brightness in the current state, and is the same or close to the brightness displayed in full-screen AOD mode.

[0230] S728. System UI instructs the screen brightness to gradually decrease according to the brightness change range.

[0231] Based on this, during the screen-off animation, SystemUI gradually reduces the screen brightness according to the gradient of brightness changes to adapt to the screen-off animation scenario. After the screen-off animation is played, the screen brightness is reduced to the target brightness value or close to the target brightness value, which is the same or close to the brightness displayed in full-screen AOD mode, and there will be no obvious brightness jump. In addition, during the screen-off animation, the screen brightness gradually reduces the screen brightness according to the gradient of brightness changes, the display effect is coherent, and the brightness will not jump significantly, which improves the user experience.

[0232] In the embodiment of the present application, for the same AOD state and system color mode, the display animation of different display stages (AOD state to lock screen state, lock screen state to desktop, and AOD state to desktop) is set to a video file, and the frame images displayed in different display stages are configured through different configuration items. While ensuring the coherence of the animation effect, the number of video files can also be reduced, making management easier. In addition, if the animation effect needs to be modified, it can be achieved by modifying the configuration value of the corresponding configuration item, without modifying the software code, which is more convenient and quicker to operate.

[0233] FIG9 shows a method for displaying an off-screen interface, which is applied to an electronic device and includes:

[0234] S901: Receive a first operation input by a user on a theme selection interface, where the first operation is used to select a first theme.

[0235] The first operation is to set the wallpaper theme of the super wallpaper. For example, in the desktop and wallpaper interface shown in Figure 4a, the user clicks on the theme card to enter the theme package settings page, and then selects the desired super wallpaper theme from multiple wallpaper themes to be selected on the settings page.

[0236] S902. In response to the first operation, a first theme is selected. The first theme corresponds to a first configuration file and a first resource package. The first configuration file includes at least a first configuration item (eg, configuration item 13). The first configuration item is used to indicate whether the first theme supports full-screen AOD mode.

[0237] In response to the first operation, the terminal device can set the package name of the super wallpaper service corresponding to the super wallpaper theme to launch the super wallpaper service. At the same time, the terminal device parses the first configuration file and the first resource package corresponding to the first theme. Optionally, the first configuration file is a file in XML format, for example, named livepaper.xml, which includes multiple configuration items for configuring the playback mode of the lock screen animation and the desktop animation.

[0238] S903: Receive a second operation performed by the user in the unlocked state, where the second operation is a screen-off operation.

[0239] After the user has set the wallpaper theme, the user may perform a second operation of turning off the screen.

[0240] S904: In response to the second operation, play the first screen-off animation.

[0241] In response to the second operation, the electronic device can play the first screen-off animation to enter the screen-off state.

[0242] S905. After playing the first screen-off animation, in response to the current configuration value of the first configuration item that the first theme supports full-screen AOD mode, enter the full-screen AOD mode, the first screen-off animation is a resource in the first resource package, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode; wherein, in the full-screen AOD mode, the number of first pixels accounts for more than a first preset ratio in the total number of pixels on the screen of the electronic device, and the first pixels are the pixels that are lit on the screen.

[0243] The last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode, that is, the content displayed by the two is the same or similar. In the process of switching from the last frame of the first screen-off animation to the full-screen AOD mode, the user will not feel an obvious interface jump.

[0244] It should be noted that in full-screen AOD mode, the area of ​​the off-screen picture accounts for a relatively large proportion, so the number of pixels lit on the screen is large. For example, all the pixels on the screen may be lit to display the off-screen picture, or most of the pixels (for example, more than a first preset ratio, such as 90%-100%) may be lit.

[0245] If the current configuration value of the first configuration item supports full-screen AOD mode, the full-screen AOD mode will be entered after the screen-off animation. If the current configuration value of the first configuration item does not support full-screen AOD, the partial AOD mode can be entered.

[0246] In partial AOD mode, the screen-off image is relatively small. In partial AOD mode, the number of pixels lit on the screen is small, for example, a small portion of the screen is lit to display the screen-off image (for example, less than a second preset ratio, such as 20%).

[0247] After the user applies the first theme, if the user performs a screen-off operation, the terminal device can play a screen-off animation and enter the full-screen AOD mode based on the indication of the current configuration value of the first configuration item. Since the last frame of the screen-off animation is associated with the screen-off image displayed in the full-screen AOD mode, the content displayed by the two is the same or similar. When entering the full-screen AOD mode after the screen-off animation is played, the interface will not show obvious jumps, the display effect is coherent, and the user experience is improved.

[0248] In some embodiments, playing the first screen-off animation includes: obtaining a first video file, the first video file is a resource in a first resource package, and the first video file corresponds to a full-screen AOD mode and a current color mode of the current system; in response to the current configuration value of the second configuration item (for example, configuration item 12) being support for playing the screen-off animation, playing the first screen-off animation according to the third configuration item, the second configuration item and the third configuration item (for example, configuration item 7) being configuration items in the first configuration file, the second configuration item being used to indicate whether playing the screen-off animation is supported, and the third configuration item being used to indicate whether frame extraction is supported when playing the screen-off animation; when the current configuration value of the third configuration item is support for frame extraction when playing the first screen-off animation, extracting frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of the multiple video frames in the first frame extraction sequence is the same as the arrangement order of the multiple video frames in the first video file; reversing the first frame extraction sequence to play the first screen-off animation.

[0249] The terminal device can search for the corresponding first video file from the first resource package based on the current color mode of the current system and the full-screen AOD mode. If the current color mode is dark mode, the first video file is a dark mode video file; if the current color mode is light mode, the first video file is a light mode video file. If the current AOD state is full-screen AOD mode, the first video file is a full-screen display video file.

[0250] If the current configuration value of the second configuration item is to support playing the screen-off animation, and the current configuration value of the third configuration item is to support frame extraction when playing the first screen-off animation, then the first video file can be extracted and played back in reverse according to the preset frame extraction multiple to play the first screen-off animation.

[0251] If the current configuration of the second configuration item is to support playing the screen-off animation, and the current configuration value of the third configuration item is not to support frame extraction when playing the screen-off animation, there is no need to extract frames from the first video file. The first screen-off animation can be played by reversing the video frames in the first video file frame by frame.

[0252] The second and third configuration items above allow you to flexibly configure the playback mode and speed of the screen-off animation, providing more diverse usage scenarios.

[0253] In some embodiments, the method for displaying the screen-off interface may also include, as shown in FIG10 , the following steps:

[0254] S1001. In the full-screen AOD mode, receiving a third operation input by a user, where the third operation is used to light up a screen of an electronic device.

[0255] In the full-screen AOD mode, the user performs a third operation such as clicking a power button to light up the screen.

[0256] S1002. In response to the first operation, the electronic device enters the screen-on state and plays the first lock screen animation according to the fourth configuration item (for example, configuration item 14). The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The first lock screen animation is the first video interval from the first frame to the second frame in the first video file. The first frame is the first frame of the first video file. The number of frames in the first video interval is the total number of frames of the first lock screen animation.

[0257] The electronic device enters the screen-on state in response to the third operation of lighting up the screen. In this case, the third operation does not require a password input, and the electronic device does not unlock. Instead, the electronic device plays the first video interval from the first frame to the second frame of the first video file according to the total number of frames of the first lock screen animation indicated by the fourth configuration item, thereby playing the first lock screen animation. For example, when the fourth configuration item is 36, the electronic device plays the first video interval from the first frame to the 36th frame of the first video file to play the first lock screen animation.

[0258] S1003: After playing the first lock screen animation, enter the first bright screen lock screen state.

[0259] S1004. In the first screen-on / lock state, display a first lock screen interface, where the background image of the first lock screen interface is the last frame of the first lock screen animation.

[0260] In the first bright screen lock state, the electronic device displays the first lock screen interface. The background image of the first lock screen interface is the last frame of the first lock screen animation. This can ensure that the process of entering the lock screen interface from the full-screen AOD state displays a coherent animation without interface jumps, thereby improving the user experience.

[0261] In some embodiments, when the first theme supports depth of field effect, in response to the first operation, after the first theme is selected, the method includes: obtaining a first lock screen picture from a first resource package, the first lock screen picture is a resource in the first resource package, and the first lock screen picture and the second frame include the same display content; in the first bright screen lock screen state, the step of displaying the first lock screen interface includes: displaying the first lock screen interface in the first bright screen lock screen state; displaying the first lock screen picture on the layer of the first lock screen interface.

[0262] If the first theme supports the depth of field effect, a layer of the first lock screen picture can be generated above the layer of the lock screen interface, and the first lock screen picture can be displayed above the layer of the first lock screen interface. When other operations are received, the first lock screen interface layer is destroyed and the first lock screen interface is displayed. The content displayed by the first lock screen picture is the same as the last frame (that is, the second frame) of the first lock screen animation, which can show the depth of field effect, and can make the process of entering the lock screen interface from the full-screen AOD state display a coherent animation without interface jumps, thereby improving the user experience.

[0263] In some embodiments, the method also includes: in the first screen-on lock state, receiving a fourth operation input by the user, the fourth operation being used to unlock the screen of the electronic device; in response to the fourth operation, playing the first desktop animation according to the fourth configuration item and the fifth configuration item (for example, configuration item 15), the fifth configuration item indicating the total number of frames of the first desktop animation, the first desktop animation being the second video interval from the third frame to the fourth frame in the first video file, the third frame being the next frame of the second frame, and the number of frames in the second video interval being the total number of frames of the first desktop animation; after playing the first desktop animation, displaying the first desktop, and the background image of the first desktop being the fourth frame.

[0264] If the user receives the fourth operation of unlocking the electronic device while the first lock screen is displayed, the first desktop animation can be played to enter the desktop. Specifically, the electronic device can play the second video interval between the next frame of the third frame indicated by the fourth configuration item and the fourth frame indicated by the fifth configuration item to play the first desktop animation. Since the background image of the first desktop is the fourth frame, the display effect of entering the desktop from the lock screen interface can be consistent without interface jumps, thereby improving the user experience.

[0265] In some embodiments, the method also includes: in full-screen AOD mode, receiving a fifth operation input by the user, the fifth operation is used to unlock the screen of the electronic device; in response to the fifth operation, the electronic device enters a bright screen unlock state, and plays the first video file according to the fourth configuration item and the fifth configuration item, the fourth configuration item and the fifth configuration item are configuration items in the first configuration file, the first video file includes a first lock screen animation and a first desktop animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is the first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, the number of frames in the first video interval is the total number of frames of the first lock screen animation, the fifth configuration item indicates the total number of frames of the first desktop animation, the first desktop animation is the second video interval from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames in the second video interval is the total number of frames of the first desktop animation; after playing the first video file, the first desktop is displayed, and the background image of the first desktop is the fourth frame.

[0266] If the user directly performs the fifth operation of unlocking the screen in full-screen AOD mode, such as touching the fingerprint spot displayed in the AOD mode to enter the fingerprint to unlock, the terminal device can continuously play the above-mentioned first lock screen animation and the first desktop animation and enter the desktop. The display effect of this process is coherent. Since the background image of the first desktop is the fourth frame, the display effect of entering the desktop from the lock screen interface is coherent. And since the background image of the first desktop is the fourth frame, the display effect of entering the desktop from the lock screen interface is coherent without any interface jumps, which improves the user experience.

[0267] In some embodiments, the method of the embodiment of the present application may further include: receiving a sixth operation input by the user, the sixth operation being an operation for switching the AOD state; in response to the sixth operation, switching from the full-screen AOD mode to the local AOD mode; receiving a seventh operation performed by the user in the bright-screen unlocked state, the seventh operation being a screen-off operation; in response to the seventh operation, playing a second screen-off animation; after playing the second screen-off animation, entering the local AOD mode, the second screen-off animation being a resource in the first resource package, and the last frame of the second screen-off animation being associated with the screen-off picture displayed in the local AOD mode; wherein, in the local AOD mode, the number of first pixels accounts for less than a second preset ratio of all pixels on the screen of the electronic device, and the second preset ratio is less than the first preset ratio.

[0268] When the user performs the sixth operation of switching the AOD state in the AOD state setting interface, the terminal device switches the full-screen AOD mode to the partial AOD mode in response to the sixth operation. If the user performs the seventh operation to turn off the screen, the terminal device can play the second screen-off animation corresponding to the partial AOD mode.

[0269] It should be noted that the last frame of the second screen-off animation is associated with the screen-off image displayed in the partial AOD mode, that is, the content displayed by the two is the same or similar. When switching from the last frame of the second screen-off animation to the partial AOD mode, the user will not feel a significant interface jump, which improves the user experience. This method supports switching between different AOD states, is highly flexible, and can adapt to the different needs of users.

[0270] In some embodiments, playing the second screen-off animation includes: obtaining a second video file, where the second video file is a video file in the first resource package, and the second video file corresponds to the local AOD mode and the current color mode; determining a first interval to be played from the second video file according to the sixth configuration item (for example, configuration item 10), the seventh configuration item (for example, configuration item 11), the eighth configuration item (for example, configuration item 3), the ninth configuration item (for example, configuration item 8), the tenth configuration item (for example, configuration item 9), and the eleventh configuration item (for example, configuration item 4), the arrangement order of the multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the second video file, and the first interval to be played includes the target local lock screen animation and the second desktop animation, the sixth configuration item indicates the number of multiple local lock screen animations (multi-segment animations) in the second video file, the multiple local lock screen animations correspond to multiple display positions of the screen-off pictures in the local AOD mode, the seventh configuration item indicates the target local lock screen animation corresponding to the second screen-off animation, the target local lock screen animation is one of the multiple local lock screen animations, the eighth configuration item indicates the total number of frames of the multiple local lock screen animations, the ninth configuration item indicates the total number of frames of the first local lock screen animation in the multiple local lock screen animations, the tenth configuration item indicates the total number of frames of the second local lock screen animation in the multiple local lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the sixth configuration item indicates the total number of frames of the second desktop animation in the second video file, the seventh ... Item 1, item 2, item 3, item 4, item 5, item 6, item 7, item 8, item 9, item 10 and item 11 are configuration items in the first configuration file; the first segment of partial lock screen animation is the third video interval from the fifth frame to the sixth frame in the second video file, the fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames in the first segment of partial lock screen animation; the second segment of partial lock screen animation is the fourth video interval from the seventh frame to the eighth frame in the second video file, the seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames in the second segment of partial lock screen animation; multiple segments of partial lock screen animation are the fifth video interval from the fifth frame to the ninth frame in the second video file, and the fifth video interval includes the third video interval and the There are four video intervals, and the number of frames in the fifth video interval is the total number of frames of multiple local lock screen animations; the second desktop animation is the sixth video interval from the tenth frame to the eleventh frame in the second video file, the tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video interval is the total number of frames of the second desktop animation; in response to the current configuration value of the second configuration item supporting the playback of the screen-off animation, the second screen-off animation is played according to the third configuration item, and the third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation; when the current configuration value of the third configuration item is to support frame extraction when playing the second screen-off animation, frames are extracted from the first interval to be played according to the preset frame extraction multiple to obtain a second frame extraction sequence; the second frame extraction sequence is played in reverse to play the second screen-off animation.

[0271] The above-mentioned second video file includes multiple local lock screen animations. In the first frame of each local lock screen animation, the starting position of the animation is different, which is used to correspond to the different display positions of the screen-off pictures in different local AOD modes.

[0272] During the screen-off process, the terminal device can select a segment from multiple segments of local lock screen animation as the target local lock screen animation based on the sixth to tenth configuration items above, and then play the first to-be-played interval of the second desktop animation. Afterwards, the terminal device can play the second screen-off animation according to the instructions of the above configuration items. Specifically, when the current configuration value of the third configuration item is to support frame extraction when playing the second screen-off animation, the first to-be-played interval is played back frame by frame to play the second screen-off animation. If the current configuration value of the third configuration item is not to support frame extraction when playing the screen-off animation, the first to-be-played interval is played back frame by frame to play the second screen-off animation.

[0273] The above configuration items allow you to flexibly configure the playback area, method, and speed of the screen-off animation, providing more diverse usage scenarios.

[0274] Since the last frame of the second screen-off animation is related to the screen-off picture displayed in the local AOD mode, the two display the same or similar content, and the interface will not jump significantly, which improves the user experience.

[0275] In some embodiments, the method also includes: in the local AOD mode, receiving an eighth operation input by the user, the eighth operation is used to light up the screen of the electronic device; in response to the eighth operation, the electronic device enters the screen-on state, and plays the second lock screen animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the off-screen picture of the local AOD mode, the second lock screen animation is one of multiple local lock screen animations, and the first frame of the second lock screen animation is associated with the current display position; after playing the second lock screen animation, entering the second screen-on lock screen state; in the second screen-on lock screen state, the second lock screen interface is displayed, and the background image of the second lock screen interface is the last frame of the second lock screen animation.

[0276] In local AOD mode, if the user enters a fingerprint at the fingerprint spot on the screen-off interface, the terminal device can determine the animation starting position and the closest display position to the current display position from multiple local lock screen animations based on the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the screen-off picture in local AOD mode, and play it as the second lock screen animation.

[0277] Since the background image of the second lock screen interface is the last frame of the second lock screen animation, the interface will not change significantly during the unlocking process, which improves the user experience.

[0278] In some embodiments, the method also includes: in the second screen-on lock state, receiving an eighth operation input by the user, the eighth operation being used to unlock the screen of the electronic device; in response to the eighth operation, playing the second desktop animation according to the eighth configuration item and the eleventh configuration item; after playing the second desktop animation, displaying the second desktop, and the background image of the second desktop is the eleventh frame.

[0279] If, in the second bright-screen lock state, the terminal device receives an unlock operation input by the user, such as inputting a fingerprint unlock operation, the electronic device may play the second desktop animation indicated by the eighth and eleventh configuration items and enter the second desktop. Since the background image of the second desktop is the last frame of the second video file, the display effect is continuous.

[0280] In some embodiments, the method also includes: in the local AOD mode, receiving a ninth operation input by the user, the ninth operation is used to unlock the screen of the electronic device; in response to the ninth operation, the electronic device enters the screen-on state, and plays the second lock screen animation and the second desktop animation in sequence according to the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the off-screen picture in the local AOD mode, the second lock screen animation is one of the multiple local lock screen animations in the second video file, the second video file is a resource in the first resource package, the multiple local lock screen animations correspond to multiple display positions of the off-screen picture in the local AOD mode, the first frame in the second lock screen animation is associated with the current display position, the ninth configuration item indicates the total number of frames of the first local lock screen animation in the multiple local lock screen animations, the tenth configuration item indicates the total number of frames of the second local lock screen animation in the multiple local lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, the ninth configuration item, the tenth configuration item and the eleventh configuration item are configuration items in the first configuration file; after playing the second desktop animation, the second desktop is displayed, and the background image of the second desktop is the last frame of the second desktop animation.

[0281] If the user directly performs the ninth operation to unlock the screen in partial AOD mode, such as entering a fingerprint in AOD mode, the terminal device determines the partial lock screen animation closest to the starting position of the current display position of the partial AOD mode off-screen image, and then plays the partial lock screen animation and the second desktop animation in sequence to enter the second desktop. This ensures a smooth transition from the AOD state to the desktop without any interface jumps, thereby improving the user experience.

[0282] The above describes in detail an example of the method provided by the present application. It is understandable that, in order to implement the above functions, the corresponding device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0283] The present application can divide the screen-off interface device into functional modules based on the above-mentioned method example. For example, each function can be divided into different functional modules, or two or more functions can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in this application is schematic and is only a logical functional division. In actual implementation, other division methods may be used.

[0284] FIG11 shows a schematic diagram of the structure of a screen-off interface display device provided by the present application. The device 1100 is applied to an electronic device and includes:

[0285] Receiving module 1101, configured to receive a first operation input by a user on a theme selection interface, where the first operation is used to select a first theme;

[0286] Theme module 1102 is configured to select a first theme in response to a first operation, where the first theme corresponds to a first configuration file and a first resource package, where the first configuration file includes at least a first configuration item, and the first configuration item is configured to indicate whether the first theme supports a full-screen AOD mode;

[0287] The receiving module 1101 is further configured to receive a second operation performed by the user in the unlocked state, where the second operation is a screen-off operation;

[0288] Processing module 1103 is used to play a first screen-off animation in response to a second operation; and after playing the first screen-off animation, in response to the current configuration value of the first configuration item that the first theme supports full-screen AOD mode, enter the full-screen AOD mode, the first screen-off animation is a resource in the first resource package, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode; wherein, in the full-screen AOD mode, the number of first pixels accounts for more than a first preset ratio of all pixels on the screen of the electronic device, and the first pixels are the pixels that are lit on the screen.

[0289] In some embodiments, the processing module 1103 is specifically used to obtain a first video file, which is a resource in a first resource package, and the first video file corresponds to a full-screen AOD mode and a current color mode of the current system; in response to the current configuration value of the second configuration item supporting the playback of a screen-off animation, the first screen-off animation is played according to the third configuration item, the second configuration item and the third configuration item are configuration items in the first configuration file, the second configuration item is used to indicate whether the playback of a screen-off animation is supported, and the third configuration item is used to indicate whether frame extraction is supported when playing the screen-off animation; when the current configuration value of the third configuration item is to support frame extraction when playing the first screen-off animation, the first video file is extracted according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of the multiple video frames in the first frame extraction sequence is the same as the arrangement order of the multiple video frames in the first video file; the first frame extraction sequence is played back to play the first screen-off animation; or, when the current configuration value of the third configuration item is not to support frame extraction when playing the screen-off animation, the video frames in the first video file are played back frame by frame to play the first screen-off animation.

[0290] In some embodiments, the receiving module 1101 is also used to receive a third operation input by the user in the full-screen AOD mode, and the third operation is used to light up the screen of the electronic device; the processing module 1103 is specifically used to respond to the first operation, the electronic device enters the screen-on state, and plays the first lock screen animation according to the fourth configuration item, and enters the first screen-on lock screen state after playing the first lock screen animation; and displays the first lock screen interface in the first screen-on lock screen state, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is the first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, the number of frames in the first video interval is the total number of frames of the first lock screen animation, and the background image of the first lock screen interface is the last frame of the first lock screen animation.

[0291] In some embodiments, when the first theme supports depth of field effect, the theme module 1102 is also used to obtain the first lock screen picture from the first resource package, the first lock screen picture is a resource in the first resource package, and the first lock screen picture and the second frame include the same display content; the processing module 1103 is specifically used to display the first lock screen interface in the first bright screen lock screen state; and display the first lock screen picture on the layer of the first lock screen interface.

[0292] In some embodiments, the receiving module 1101 is further configured to receive a fourth operation input by the user in the first screen-on / screen-lock state, where the fourth operation is configured to unlock the screen of the electronic device;

[0293] Processing module 1103 is also used to respond to the fourth operation, play the first desktop animation according to the fourth configuration item and the fifth configuration item, and display the first desktop after playing the first desktop animation. The fifth configuration item indicates the total number of frames of the first desktop animation. The first desktop animation is the second video interval from the third frame to the fourth frame in the first video file. The third frame is the next frame of the second frame. The number of frames in the second video interval is the total number of frames of the first desktop animation, and the background image of the first desktop is the fourth frame.

[0294] In some embodiments, the receiving module 1101 is further configured to receive a fifth operation input by the user in the full-screen AOD mode, where the fifth operation is configured to unlock the screen of the electronic device;

[0295] Processing module 1103 is also used to respond to the fifth operation, the electronic device enters the bright screen unlock state, and plays the first video file according to the fourth configuration item and the fifth configuration item. After the first video file is played, the first desktop is displayed. The fourth configuration item and the fifth configuration item are configuration items in the first configuration file. The first video file includes the first lock screen animation and the first desktop animation. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The first lock screen animation is the first video interval from the first frame to the second frame in the first video file. The first frame is the first frame of the first video file. The number of frames in the first video interval is the total number of frames of the first lock screen animation. The fifth configuration item indicates the total number of frames of the first desktop animation. The first desktop animation is the second video interval from the third frame to the fourth frame in the first video file. The third frame is the next frame of the second frame. The number of frames in the second video interval is the total number of frames of the first desktop animation. The background image of the first desktop is the fourth frame.

[0296] In some embodiments, the receiving module 1101 is further configured to receive a sixth operation input by the user, where the sixth operation is an operation of switching the AOD state;

[0297] The processing module 1103 is further configured to switch from the full-screen AOD mode to the partial AOD mode in response to a sixth operation;

[0298] The receiving module 1101 is further configured to receive a seventh operation performed by the user in the screen-on and unlocked state, where the seventh operation is a screen-off operation;

[0299] The processing module 1103 is also used to play the second screen-off animation in response to the seventh operation, and enter the local AOD mode after playing the second screen-off animation. The second screen-off animation is a resource in the first resource package, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode; wherein, in the local AOD mode, the number of first pixels accounts for less than a second preset ratio in all pixels on the screen of the electronic device, and the second preset ratio is less than the first preset ratio.

[0300] In some embodiments, the processing module 1103 is specifically used to obtain a second video file, which is a video file in the first resource package, and the second video file corresponds to the local AOD mode and the current color mode; and determine the first to-be-played interval from the second video file according to the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item and the eleventh configuration item, the arrangement order of the multiple video frames in the first to-be-played interval is the same as the arrangement order of the multiple video frames in the second video file, the first to-be-played interval includes the target local lock screen animation and the second desktop animation, the sixth configuration item indicates the number of multiple local lock screen animations in the second video file, the multiple local lock screen animations correspond to multiple display positions of the screen-off pictures in the local AOD mode, the seventh configuration item indicates the target local lock screen animation corresponding to the second screen-off animation, the target local lock screen animation is one of the multiple local lock screen animations, the eighth configuration item indicates the total number of frames of the multiple local lock screen animations, the ninth configuration item indicates the total number of frames of the first local lock screen animation in the multiple local lock screen animations, the tenth configuration item indicates the total number of frames of the second local lock screen animation in the multiple local lock screen animations, and the eleventh configuration item indicates the second desktop animation in the second video file. The total number of frames of the screen animation, the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item and the eleventh configuration item are the configuration items in the first configuration file; the first segment of the partial lock screen animation is the third video interval from the fifth frame to the sixth frame in the second video file, the fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first segment of the partial lock screen animation; the second segment of the partial lock screen animation is the fourth video interval from the seventh frame to the eighth frame in the second video file, the seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second segment of the partial lock screen animation; multiple segments of partial lock screen animation The screen animation is the fifth video interval from the fifth frame to the ninth frame in the second video file, the fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multiple local lock screen animations; the second desktop animation is the sixth video interval from the tenth frame to the eleventh frame in the second video file, the tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video interval is the total number of frames of the second desktop animation; in response to the current configuration value of the second configuration item being support for playing the screen off animation, the second screen off animation is played according to the third configuration item, and the third configuration item is used to indicate whether frame extraction is supported when playing the second screen off animation;

[0301] The processing module 1103 is also used to support frame extraction when the current configuration value of the third configuration item is to play the second screen-off animation, extract frames from the first interval to be played according to a preset frame extraction multiple to obtain a second frame extraction sequence; reverse the second frame extraction sequence to play the second screen-off animation; or, in response to the current configuration value of the third configuration item not supporting frame extraction when playing the screen-off animation, reverse the first interval to be played frame by frame to play the second screen-off animation, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode.

[0302] In some embodiments, the receiving module 1101 is further configured to receive an eighth operation input by the user in the local AOD mode, where the eighth operation is configured to light up the screen of the electronic device;

[0303] The processing module 1103 is also used to respond to the eighth operation, the electronic device enters the screen-on state, and plays the second lock screen animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the off-screen picture of the local AOD mode. After playing the second lock screen animation, it enters the second screen-on lock screen state; in the second screen-on lock screen state, the second lock screen interface is displayed, the second lock screen animation is one of multiple local lock screen animations, the first frame of the second lock screen animation is associated with the current display position, and the background image of the second lock screen interface is the last frame of the second lock screen animation.

[0304] In some embodiments, the receiving module 1101 is further configured to receive an eighth operation input by the user in the second screen-on / lock state, where the eighth operation is configured to unlock the screen of the electronic device;

[0305] The processing module 1103 is further configured to respond to the eighth operation, play the second desktop animation according to the eighth configuration item and the eleventh configuration item; after playing the second desktop animation, display the second desktop with the background image of the eleventh frame.

[0306] In some embodiments, the receiving module 1101 is further configured to receive a ninth operation input by the user in the local AOD mode, where the ninth operation is configured to unlock the screen of the electronic device;

[0307] Processing module 1103 is also used to respond to the ninth operation, the electronic device enters the screen-on state, and plays the second lock screen animation and the second desktop animation in sequence according to the ninth configuration item, the tenth configuration item, the eleventh configuration item and the current display position of the off-screen picture in the local AOD mode. After playing the second desktop animation, the second desktop is displayed. The second lock screen animation is one of the multiple local lock screen animations in the second video file. The second video file is a resource in the first resource package. The multiple local lock screen animations correspond to multiple display positions of the off-screen picture in the local AOD mode. The first frame in the second lock screen animation is associated with the current display position. The ninth configuration item indicates the total number of frames of the first local lock screen animation in the multiple local lock screen animations. The tenth configuration item indicates the total number of frames of the second local lock screen animation in the multiple local lock screen animations. The eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The ninth configuration item, the tenth configuration item and the eleventh configuration item are configuration items in the first configuration file. The background image of the second desktop is the last frame of the second desktop animation.

[0308] The specific manner in which device 1100 executes the screen-off interface method and the beneficial effects produced can be found in the relevant description in the method embodiment and will not be repeated here.

[0309] An embodiment of the present application also provides an electronic device, comprising the above-mentioned processor. The electronic device provided in this embodiment may be the terminal device 100 shown in Figure 1, which is used to execute the above-mentioned screen-off interface method. In the case of an integrated unit, the terminal device may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the terminal device, for example, it can be used to support the terminal device to execute the steps performed by the display unit, the detection unit and the processing unit. The storage module can be used to support the terminal device to execute stored program codes and data, etc. The communication module can be used to support communication between the terminal device and other devices.

[0310] The processing module may be a processor or a controller. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a device that interacts with other terminal devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.

[0311] In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in this embodiment may be a device having the structure shown in FIG. 1 .

[0312] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the screen-off interface method described in any of the above embodiments.

[0313] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the screen-off interface method in the above-mentioned embodiment.

[0314] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0315] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, the replaced units may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0316] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0317] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0318] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A method for displaying a screen-off interface, characterized in that, Applied to an electronic device, the method includes: Receiving a first operation input by a user on a theme selection interface, the first operation being used to select a first theme; In response to the first operation, selecting the first theme, the first theme corresponding to a first configuration file and a first resource pack, where the first configuration file at least includes a first configuration item, and the first configuration item is used to indicate whether the first theme supports the full-screen Always-on Display (AOD) mode; Receiving a second operation performed by the user in the unlocked state, the second operation being a screen-off operation; In response to the second operation, playing a first screen-off animation; After playing the first screen-off animation, in response to the current configuration value of the first configuration item being that the first theme supports the full-screen AOD mode, entering the full-screen AOD mode. The first screen-off animation is a resource in the first resource pack, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode; Wherein, in the full-screen AOD mode, the proportion of the number of first pixel points in all pixel points of the screen of the electronic device exceeds a first preset ratio, and the first pixel points are the pixel points lit on the screen.

2. The method according to claim 1, wherein The playing of the first screen-off animation includes: Obtaining a first video file, the first video file being a resource in the first resource pack, and the first video file corresponding to the full-screen AOD mode and the current color mode of the current system; In response to the current configuration value of a second configuration item being to support playing the screen-off animation, playing the first screen-off animation according to a third configuration item. The second configuration item and the third configuration item are configuration items in the first configuration file. The second configuration item is used to indicate whether to support playing the screen-off animation, and the third configuration item is used to indicate whether to support frame extraction when playing the screen-off animation; When the current configuration value of the third configuration item is that frame extraction is supported when playing the first screen-off animation, extracting frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of multiple video frames in the first frame extraction sequence is the same as the arrangement order of the multiple video frames in the first video file; Playing the first screen-off animation by playing the first frame extraction sequence in reverse; Or, When the current configuration value of the third configuration item is that frame extraction is not supported when playing the screen-off animation, playing the video frames in the first video file frame by frame in reverse to play the first screen-off animation.

3. The method according to claim 2, wherein The method further includes: In the full-screen AOD mode, receiving a third operation input by the user, the third operation being used to light up the screen of the electronic device; In response to the first operation, the electronic device enters the screen-on state and plays a first lock screen animation according to a fourth configuration item. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The first lock screen animation is a first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, and the number of frames in the first video interval is the total number of frames of the first lock screen animation; After playing the first lock screen animation, entering the first screen-on and lock screen state; In the first screen-on and locked state, a first lock screen interface is displayed, and the background image of the first lock screen interface is the last frame of the first lock screen animation.

4. The method according to claim 3, characterized in that, When the first theme supports a depth effect, after the first theme is selected in response to the first operation, the method includes: Obtaining a first lock screen picture from the first resource pack, where the first lock screen picture is a resource in the first resource pack, and the first lock screen picture and the second frame include the same display content; The step of displaying the first lock screen interface in the first screen-on and locked state includes: In the first screen-on and locked state, display the first lock screen interface; On top of the layer of the first lock screen interface, display the first lock screen picture.

5. The method according to claim 3, wherein The method further includes: In the first screen-on and locked state, receive a fourth operation input by the user, where the fourth operation is used to unlock the screen of the electronic device; In response to the fourth operation, play a first desktop animation according to the fourth configuration item and the fifth configuration item, where the fifth configuration item indicates the total number of frames of the first desktop animation, and the first desktop animation is the second video segment from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames of the second video segment is the total number of frames of the first desktop animation; After playing the first desktop animation, display a first desktop, and the background image of the first desktop is the fourth frame.

6. The method according to claim 2, characterized in that, The method further includes: In the full-screen AOD mode, receive a fifth operation input by the user, where the fifth operation is used to unlock the screen of the electronic device; In response to the fifth operation, the electronic device enters the screen-on and unlock state and plays the first video file according to the fourth configuration item and the fifth configuration item. The fourth configuration item and the fifth configuration item are configuration items in the first configuration file. The first video file includes a first lock screen animation and a first desktop animation. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The first lock screen animation is the first video segment from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, and the number of frames of the first video segment is the total number of frames of the first lock screen animation. The fifth configuration item indicates the total number of frames of the first desktop animation, and the first desktop animation is the second video segment from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames of the second video segment is the total number of frames of the first desktop animation; After playing the first video file, display a first desktop, and the background image of the first desktop is the fourth frame.

7. The method according to claim 1, wherein The method further includes: Receive a sixth operation input by the user, where the sixth operation is an operation to switch the AOD state; In response to the sixth operation, switch from the full-screen AOD mode to the partial AOD mode; Receive a seventh operation performed by the user in the screen-on and unlock state, where the seventh operation is a screen-off operation; In response to the seventh operation, play a second screen-off animation; After playing the second screen-off animation, enter the partial AOD mode. The second screen-off animation is a resource in the first resource package, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the partial AOD mode; Among them, in the partial AOD mode, the proportion of the number of the first pixel points in all the pixel points on the screen of the electronic device is less than a second preset ratio, and the second preset ratio is less than the first preset ratio.

8. The method according to claim 7, wherein The playing of the second screen-off animation includes: Obtain a second video file, where the second video file is a video file in the first resource package, and the second video file corresponds to the partial AOD mode and the current color mode of the current system; Determine a first playing interval from the second video file according to the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item. The arrangement order of multiple video frames in the first playing interval is the same as the arrangement order of the multiple video frames in the second video file. The first playing interval includes a target partial lock screen animation and a second desktop animation. The sixth configuration item indicates the number of multiple segments of partial lock screen animations in the second video file, and the multiple segments of partial lock screen animations correspond to multiple display positions of the screen-off picture in the partial AOD mode. The seventh configuration item indicates the target partial lock screen animation corresponding to the second screen-off animation, and the target partial lock screen animation is one of the multiple segments of partial lock screen animations. The eighth configuration item indicates the total number of frames of the multiple segments of partial lock screen animations. The ninth configuration item indicates the total number of frames of the first segment of partial lock screen animation among the multiple segments of partial lock screen animations. The tenth configuration item indicates the total number of frames of the second segment of partial lock screen animation among the multiple segments of partial lock screen animations. The eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; The first segment of partial lock screen animation is a third video interval from the fifth frame to the sixth frame in the second video file. The fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first segment of partial lock screen animation; The second segment of partial lock screen animation is a fourth video interval from the seventh frame to the eighth frame in the second video file. The seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second segment of partial lock screen animation; The multiple segments of partial lock screen animations are a fifth video interval from the fifth frame to the ninth frame in the second video file. The fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multiple segments of partial lock screen animations; The second desktop animation is the sixth video segment from the tenth frame to the eleventh frame in the second video file. The tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video segment is the total number of frames of the second desktop animation; In response to the current configuration value of the second configuration item being to support playing the screen-off animation, play the second screen-off animation according to the third configuration item, where the third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation; When the current configuration value of the third configuration item is that frame extraction is supported when playing the second screen-off animation, extract frames from the first to-be-played segment according to a preset frame extraction multiple to obtain a second frame-extracted sequence; Play the second screen-off animation by playing the second frame-extracted sequence in reverse; Or, In response to the current configuration value of the third configuration item being that frame extraction is not supported when playing the screen-off animation, play the second screen-off animation by playing the first to-be-played segment frame by frame in reverse. The last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode.

9. The method according to claim 8, wherein The method further includes: In the local AOD mode, receive an eighth operation input by the user, where the eighth operation is used to turn on the screen of the electronic device; In response to the eighth operation, the electronic device enters the screen-on state and plays a second lock screen animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the screen-off picture in the local AOD mode. The second lock screen animation is one of the multiple segments of local lock screen animations, and the first frame in the second lock screen animation is associated with the current display position; After playing the second lock screen animation, enter the second screen-on and locked state; In the second screen-on and locked state, display a second lock screen interface, where the background picture of the second lock screen interface is the last frame of the second lock screen animation.

10. The method according to claim 9, wherein The method further includes: In the second screen-on and locked state, receive an eighth operation input by the user, where the eighth operation is used to unlock the screen of the electronic device; In response to the eighth operation, play the second desktop animation according to the eighth configuration item and the eleventh configuration item; After playing the second desktop animation, display a second desktop, where the background picture of the second desktop is the eleventh frame.

11. The method according to claim 7, characterized in that, The method further includes: In the local AOD mode, receive a ninth operation input by the user, where the ninth operation is used to unlock the screen of the electronic device; In response to the ninth operation, the electronic device enters the screen-on state and sequentially plays a second lock screen animation and a second desktop animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the off-screen picture in the partial AOD mode. The second lock screen animation is one of multiple partial lock screen animations in a second video file, the second video file is a resource in the first resource package, the multiple partial lock screen animations correspond to multiple display positions of the off-screen picture in the partial AOD mode, the first frame in the second lock screen animation is associated with the current display position, the ninth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations, the tenth configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, and the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; After playing the second desktop animation, a second desktop is displayed, and the background picture of the second desktop is the last frame of the second desktop animation.

12. An electronic device, characterized in that, Comprising: A processor, a memory, and an interface; The processor, the memory, and the interface cooperate with each other to enable the electronic device to execute the method according to any one of claims 1 to 11.

13. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the processor is enabled to execute the method according to any one of claims 1 to 11.