Screen-off interface display method, electronic equipment and computer readable storage medium
By switching the AOD status and playing related animations in the terminal device's screen-off display setting interface, the problem of inconsistent interface switching of traditional screen-off mode is solved, and the user experience and display effect are improved.
Patent Information
- Application Number
- CN202410039995.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-07-18
AI Technical Summary
The screen-off method of traditional terminal devices has a single display effect, resulting in low user experience, especially when the screen is unlocked, the interface switching is incoherent.
Provide a screen-off interface display method, by switching the AOD state in the screen-off display setting interface and playing the screen-off animation corresponding to the local or full-screen AOD mode, ensuring that the last frame of the screen-off animation is associated with the screen-off picture in the target AOD mode, and achieving a smooth interface transition.
Improves the user experience, and through flexible AOD state switching and animation design, the interface jump is avoided, providing richer display effects and coherent interface transitions.
Smart Images

Figure CN120335899A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and particularly relates to a method for displaying a screen-off interface, an electronic device, and a computer-readable storage medium. Background Art
[0002] As the functions of terminal devices become more and more abundant, people's requirements for the usage experience of terminal devices are also getting higher and higher.
[0003] The display effects of terminal devices in various scenarios have also attracted people's attention. For example, users will set different desktop, lock screen wallpapers, etc. according to their personal preferences.
[0004] In the traditional display method, if the user presses the power button to perform a screen-off operation in the screen-on and unlocked state, the terminal device will directly turn off the screen. This way of turning off the screen has a single display effect, resulting in a low user experience. Summary of the Invention
[0005] This application provides a method for displaying a screen-off interface, a device, a chip, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the user experience.
[0006] In a first aspect, a method for displaying a screen-off interface is provided, which is applied to an electronic device. The method includes: displaying a screen-off display setting interface, where the screen-off display setting interface includes a full-screen AOD control and a partial AOD control; receiving, through the screen-off display setting interface, a first operation performed by the user on the partial AOD control, where the first operation is used to switch the current AOD state from the full-screen AOD mode to the partial AOD mode; in response to the first operation, updating the configuration value of the first configuration item from the first state value to the second state value, where the first state value is used to represent that the full-screen AOD mode is in an enabled state, and the second state value is used to represent that the full-screen AOD mode is in a disabled state; in response to the current configuration value of the first configuration item being the second state value, loading the first resources corresponding to the partial AOD mode; receiving a second operation performed by the user in the screen-on and unlocked state, where the second operation is a screen-off operation; in response to the second operation, playing a first screen-off animation, where the first screen-off animation is a resource in the first resources; after playing the first screen-off animation, in response to the current configuration value of the first configuration item being the second state value, entering the partial AOD mode, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode.
[0007] By performing an operation to switch the AOD state in the screen-off display setting interface, the user can achieve the switching of the AOD state. When the AOD state is switched from the full-screen AOD mode to the partial AOD mode, if the user performs a screen-off operation, the terminal device can play the first screen-off animation corresponding to the partial AOD mode.
[0008] It should be noted that the last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode, that is, the content displayed by the two is the same or similar. During the process of switching from the last frame of the first screen-off animation to the partial AOD mode, the user will not feel an obvious jump in the interface, which improves the user experience. Through user operations, this method can change the status value of the first configuration item, thereby supporting the switching of different AOD states. It has strong flexibility and can adapt to different needs of users.
[0009] In some possible implementations, playing the first screen-off animation includes: obtaining a first video file, where the first video file is a video file in a first resource, and the first video file corresponds to a local AOD mode and the current color mode of the current system; in response to a second configuration item supporting the playing of the screen-off animation, determining a first interval to be played from the first video file according to the second configuration item, the third configuration item, the fourth configuration item, the fifth configuration item, the sixth configuration item, the seventh configuration item, and the eighth configuration item. The arrangement order of multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the first video file. The first interval to be played includes a target local lock screen animation and a first desktop animation. The third configuration item indicates the number of multiple segments of local lock screen animations in the first video file, and the multiple segments of local lock screen animations correspond to multiple display positions of the screen-off pictures in the local AOD mode. The fourth configuration item indicates the target local lock screen animation corresponding to the first screen-off animation, and the target local lock screen animation is one of the multiple segments of local lock screen animations. The fifth configuration item indicates the total number of frames of the multiple segments of local lock screen animations. The sixth configuration item indicates the total number of frames of the first segment of local lock screen animation among the multiple segments of local lock screen animations. The seventh configuration item indicates the total number of frames of the second segment of local lock screen animation among the multiple segments of local lock screen animations. The eighth configuration item indicates the total number of frames of the first desktop animation in the first video file. The second configuration item is used to indicate whether the screen-off animation is supported, and the current configuration value of the second configuration item indicates that the screen-off animation is supported; the first segment of local 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 segment of local lock screen animation; the second segment of local lock screen animation is a 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 second segment of local lock screen animation; the multiple segments of local lock screen animations are a third video interval from the first frame to the fifth frame in the first video file, the third video interval includes the first video interval and the second video interval, and the number of frames in the third video interval is the total number of frames of the multiple segments of local lock screen animations; the first desktop animation is a fourth video interval from the sixth frame to the seventh frame in the first video file, the sixth frame is the next frame of the fifth frame, and the number of frames in the fourth video interval is the total number of frames of the first desktop animation; in response to the current configuration value of the second configuration item being that the screen-off animation is supported, playing the first screen-off animation according to the ninth configuration item, and the ninth configuration item is used to indicate whether frame extraction is supported when playing the screen-off animation; when the current configuration value of the ninth configuration item is that frame extraction is supported when playing the screen-off animation, extracting frames from the first interval to be played according to a preset frame extraction multiple to obtain a first frame extraction sequence; playing the first frame extraction sequence in reverse to play the first screen-off animation; or, in response to the current configuration value of the ninth configuration item being that frame extraction is not supported when playing the screen-off animation, playing the first interval to be played frame by frame in reverse to play the first screen-off animation, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the local AOD mode.
[0010] The above first video file includes multiple segments of partial lock screen animations. In the first frame of each segment of the partial lock screen animation, the starting position of the animation is different, and is used to correspond to different display positions of the off-screen pictures in different partial AOD modes. During the screen-off process, the terminal device can select one segment from the multiple segments of partial lock screen animations as the target partial lock screen animation based on the above third to eighth configuration items, and then combine it with the first to-be-played interval of the first desktop animation. After that, the terminal device can play the first screen-off animation according to the instructions of the above configuration items. Specifically, when the current configuration value of the ninth configuration item supports frame extraction for playing the first screen-off animation, the first to-be-played interval is played in reverse with frame extraction to play the first screen-off animation. If the current configuration value of the ninth configuration item does not support frame extraction for playing the screen-off animation, the first to-be-played interval is played frame by frame in reverse to play the first screen-off animation.
[0011] Through the above configuration items, the playing area, method, and speed of the screen-off animation can be flexibly configured, and the usage scenarios are more diverse. Since the last frame of the first screen-off animation is associated with the off-screen picture displayed in the partial AOD mode, and they display the same or similar content, there will be no obvious jump in the interface, improving the user experience.
[0012] In some possible implementation manners, the method further includes: in the partial AOD mode, receiving a third operation input by the user, where the third operation is used to turn on the screen of the electronic device; in response to the third operation, the electronic device enters the screen-on state, and plays the first lock screen animation according to the sixth, seventh, eighth configuration items, and the current display position of the off-screen picture in the partial AOD mode. The first lock screen animation is one of the multiple segments of partial lock screen animations, and the first frame in the first lock screen animation is associated with the current display position; after playing the first lock screen animation, enter the first screen-on and lock screen state; in the first screen-on and lock screen state, display the first lock screen interface, and the background picture of the first lock screen interface is the last frame of the first lock screen animation.
[0013] In the partial AOD mode, if the user clicks the power button to perform the third operation, the terminal device can determine, according to the ninth, tenth, eleventh configuration items, and the current display position of the off-screen picture in the partial AOD mode, the segment whose starting position and current display position are the closest among the multiple segments of partial lock screen animations as the first lock screen animation for playing. Since the background picture of the first lock screen interface is the last frame of the first lock screen animation, there will be no obvious jump in the interface during the unlocking process, improving the user experience.
[0014] In some possible implementations, the method further includes: in the first screen-on and locked state, receiving a fourth operation input by a user, where the fourth operation is used to unlock the screen of the electronic device; in response to the fourth operation, playing a first desktop animation according to a fifth configuration item and an eighth configuration item; after playing the first desktop animation, displaying a first desktop, where the background image of the first desktop is the seventh frame.
[0015] In the first screen-on and locked state, the terminal device receives a fourth operation input by a user, such as an unlocking operation of inputting a fingerprint to unlock. Then the electronic device can play the first desktop animation indicated by the eighth configuration item and the eleventh configuration item and enter the first desktop. Since the background image of the first desktop is the last frame (the seventh frame) of the first video file, the display effect is coherent, enhancing the user experience.
[0016] In some possible implementations, the method further includes: in the partial AOD mode, receiving a fifth operation input by a 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 state and sequentially plays a first lock screen animation and a first desktop animation according to a sixth configuration item, a seventh configuration item, an eighth configuration item, and the current display position of the screen-off image in the partial AOD mode. The first lock screen animation is one of multiple partial lock screen animations in the first video file. The first video file is a resource in the first resource. The multiple partial lock screen animations correspond to multiple display positions of the screen-off image in the partial AOD mode. The first frame of the first lock screen animation is associated with the current display position. The sixth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations. The seventh configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations. The eighth configuration item indicates the total number of frames of the first desktop animation in the first video file; after playing the first desktop animation, displaying a first desktop, where the background image of the first desktop is the seventh frame.
[0017] When the user directly performs the fifth operation to unlock the screen in the partial AOD mode, such as inputting a fingerprint in the AOD mode, the terminal device determines the partial lock screen animation closest to the starting position of the current display position according to the current display position of the screen-off image in the partial AOD mode, and then sequentially plays the partial lock screen animation and the first desktop animation to enter the first desktop. This can make the display effect from the AOD state to the desktop coherent without interface jumps, enhancing the user experience.
[0018] In some possible implementations, the method further includes: receiving a sixth operation input by a user, where the sixth operation is used to enter the always-on display settings interface; in response to the sixth operation, displaying the always-on display settings interface; through the always-on display settings interface, receiving a seventh operation performed by the user on the full-screen AOD control, where the seventh operation is used to switch the current AOD state from the partial AOD mode to the full-screen AOD mode; in response to the seventh operation, updating the configuration value of the first configuration item from the second state value to the first state value; in response to the current configuration value of the first configuration item being the first state value, loading the second resource corresponding to the full-screen AOD mode; receiving an eighth operation performed by the user in the unlocked screen-on state, where the eighth operation is a screen-off operation; in response to the eighth operation, playing a second screen-off animation according to the current configuration value of the second configuration item, where the second screen-off animation is a resource in the second resource; after playing the second screen-off animation, in response to the current configuration value of the first configuration item being the first state value, entering the full-screen AOD mode, and the last frame of the second screen-off animation is associated with the always-on screen image displayed in the full-screen AOD mode; where, in the full-screen AOD mode, the proportion of the number of first pixels in all the pixels of the screen of the electronic device exceeds a first preset ratio, and the first pixels are the pixels lit on the screen; in the partial AOD mode, the proportion of the number of first pixels in all the pixels of 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.
[0019] After the terminal device plays the second screen-off animation, it enters the full-screen AOD mode. In the full-screen AOD mode, an always-on screen interface corresponding to the full-screen AOD is displayed. The always-on screen interface includes an always-on screen image corresponding to the full-screen AOD.
[0020] The user can switch the AOD state by performing an operation to switch the AOD state in the always-on display settings interface. When the AOD state is switched from the partial AOD mode to the full-screen AOD mode, if the user performs a screen-off operation, the terminal device can play the second screen-off animation corresponding to the full-screen AOD mode.
[0021] It should be noted that in the full-screen AOD mode, the area ratio of the always-on screen image is relatively large, so the number of pixels lit on the screen is large. For example, all the pixels of the screen can be lit to display the always-on screen image, or most of the pixels (for example, exceeding the first preset ratio, such as 90%-100%) can be lit. In the partial AOD mode, the always-on screen image is relatively small. In the partial AOD mode, the number of pixels lit on the screen is small. For example, a small part of the screen (for example, less than the second preset ratio, such as 20%) can be lit to display the always-on screen image.
[0022] It should be noted that the last frame of the second 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. During the process of the terminal device switching from the last frame of the second screen-off animation to the full-screen AOD mode, the user will not feel an obvious jump in the interface, improving the user experience. Through user operations, this method can change the status value of the first configuration item, thereby supporting the switching of different AOD states, with strong flexibility and being able to adapt to different user needs.
[0023] In some possible implementation manners, playing the second screen-off animation according to the current configuration value of the second configuration item includes: obtaining a second video file, where the second video file is a resource in the first resource, and the second video file corresponds to the full-screen AOD mode and the current color mode of the current system; in response to the current configuration value of the second configuration item being to support playing the screen-off animation, playing the second screen-off animation according to the third configuration item, where 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 to support frame extraction when playing the screen-off animation, extracting frames from the second video file according to a preset frame extraction multiple to obtain a second frame extraction sequence, and the arrangement order of multiple video frames in the second frame extraction sequence is the same as the arrangement order of multiple video frames in the second video file; playing the second screen-off animation by playing the second frame extraction sequence in reverse; or, when the current configuration value of the third configuration item is not to support frame extraction when playing the screen-off animation, playing the video frames in the second video file frame by frame in reverse to play the second screen-off animation.
[0024] The terminal device can search for the corresponding second video file from the second resource package according to the current color mode of the current system and the full-screen AOD mode. If the current color mode is the dark mode, the second video file is a video file in the dark mode; if the current color mode is the light mode, the second video file is a video file in the light mode. If the current AOD state is the full-screen AOD mode, the second video file is a video file for full-screen display. 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, the second screen-off animation can be played by extracting frames from the second video file and playing it in reverse according to a preset frame extraction multiple.
[0025] 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 second video file, and the video frames in the second video file are played frame by frame in reverse to play the second screen-off animation.
[0026] Through the above-mentioned second configuration item and third configuration item, the playing method and speed of the screen-off animation can be flexibly configured, and the usage scenarios are richer.
[0027] In some possible implementations, the method further includes: in the full-screen AOD mode, receiving a ninth operation input by the user, where the ninth operation is used to turn on the screen of the electronic device; in response to the ninth operation, the electronic device enters the screen-on state and plays a first lock-screen animation according to a tenth configuration item, where the tenth configuration item is used to indicate the total number of frames of a second lock-screen animation, and the second lock-screen animation is a fifth video segment from the eighth frame to the ninth frame in a second video file, the eighth frame being the first frame of the second video file, and the number of frames of the second video segment being the total number of frames of the second lock-screen animation; after playing the second lock-screen animation, entering a second screen-on and lock-screen state; in the second screen-on and lock-screen state, displaying a second lock-screen interface, where the background image of the second lock-screen interface is the last frame of the second lock-screen animation.
[0028] In the full-screen AOD mode, the user performs a ninth operation such as pressing the power button to turn on the screen. In response to the ninth operation of turning on the screen, the electronic device enters the screen-on state. At this time, no password is input during the ninth operation, and the electronic device will not be unlocked. Instead, it plays a fifth video segment from the eighth frame to the ninth frame in the second video file according to the total number of frames of the second lock-screen animation indicated by the tenth configuration item, so as to play the second lock-screen animation. In the second screen-on and lock-screen state, the electronic device displays a second lock-screen interface. Among them, the background image of the second lock-screen interface is the last frame (the ninth frame) of the second lock-screen animation, which can make the process of entering the lock-screen interface from the full-screen AOD state display a coherent animation without interface jumps, improving the user experience.
[0029] In some possible implementations, the method further includes: in the second screen-on and lock-screen state, receiving a tenth operation input by the user, where the tenth operation is used to unlock the screen of the electronic device; in response to the tenth operation, playing a second desktop animation according to the tenth configuration item and an eleventh configuration item, where the eleventh configuration item indicates the total number of frames of the second desktop animation, and the second desktop animation is a second video segment from the tenth frame to the eleventh frame in the second video file, the tenth frame being the next frame of the ninth frame, and the number of frames of the second video segment being the total number of frames of the second desktop animation; after playing the second desktop animation, displaying a second desktop, where the background image of the second desktop is the eleventh frame.
[0030] If the user receives a tenth operation to unlock the electronic device in the second screen-on and lock-screen state, a second desktop animation can be played to enter the desktop. Specifically, the electronic device can play a second video segment between the next frame of the ninth frame indicated by the tenth configuration item and the eleventh frame indicated by the eleventh configuration item to play the second desktop animation. Since the background image of the second desktop is the eleventh frame, it can make the display effect of entering the desktop from the lock-screen interface coherent without interface jumps, improving the user experience.
[0031] In some possible implementations, the method further includes: in the full-screen Always-on Display (AOD) mode, receiving an eleventh operation input by the user, where the eleventh operation is used to unlock the screen of the electronic device; in response to the eleventh operation, the electronic device enters the screen-on unlocking state and plays a second video file according to a tenth configuration item and an eleventh configuration item. The second video file includes a second lock screen animation and a second desktop animation. The tenth configuration item is used to indicate the total number of frames of the second lock screen animation, and the tenth configuration item is used to indicate the total number of frames of the second lock screen animation. The second lock screen animation is the fifth video interval from the eighth frame to the ninth frame in the second video file. The eighth frame is the first frame of the first video file. The number of frames in the second video interval is the total number of frames of the second lock screen animation. The tenth configuration item indicates the total number of frames of the second desktop 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. The number of frames in the sixth video interval is the total number of frames of the second desktop animation; after playing the second video file, display the second desktop, and the background image of the second desktop is the eleventh frame.
[0032] The user can also directly perform the eleventh operation to unlock the screen in the full-screen AOD mode. For example, touch the fingerprint spot displayed in the AOD mode to input the fingerprint for unlocking. Then the terminal device can continuously play the above-mentioned second lock screen animation and second desktop animation and enter the desktop, and the display effect of this process is coherent. Since the background image of the second desktop is the eleventh frame, it can make the display effect from the lock screen interface to the desktop coherent. And since the background image of the second desktop is the eleventh frame, it can make the display effect from the lock screen interface to the desktop coherent and there will be no interface jump, improving the user experience.
[0033] In some possible implementations, before displaying the AOD settings interface, it includes: receiving a twelfth operation input by the user, where the twelfth operation is used to select a first theme; in response to the twelfth operation, select the first theme. The first theme corresponds to a first configuration file and a first resource package. The first resource package includes at least a first resource and a second resource. The first configuration file includes a first configuration item, a second configuration item, a third configuration item, a fourth configuration item, a fifth configuration item, a sixth configuration item, a seventh configuration item, an eighth configuration item, a ninth configuration item, a tenth configuration item, an eleventh configuration item, and a twelfth configuration item. The twelfth configuration item is used to indicate whether the first theme supports the full-screen AOD mode.
[0034] Optionally, the first resource package is the resource package corresponding to the first theme. The first theme can be a super wallpaper theme. The first configuration file is a file in xml format, such as named livepaper.xml.
[0035] In a second aspect, an AOD interface display device is provided, including a unit composed of software and / or hardware, and this unit is used to execute any one of the methods in the technical solutions described in the first aspect.
[0036] In a third aspect, an embodiment of the present application provides a chip, including a processor; the processor is configured to read and execute a computer program stored in a memory to execute any one of the methods in the technical solutions described in the first aspect.
[0037] Optionally, the chip further includes a memory, and the memory is connected to the processor through a circuit or a wire.
[0038] Further optionally, the chip further includes a communication interface.
[0039] In a fourth aspect, an electronic device is provided, and the electronic device includes: 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 any one of the methods in the technical solutions described in the first aspect, or any one of the chips in the technical solutions described in the third aspect.
[0040] In a fifth aspect, a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the processor is enabled to execute any one of the methods in the technical solutions described in the first aspect.
[0041] In a sixth aspect, a computer program product is provided, and the computer program product includes: computer program code. When the computer program code runs on an electronic device, the electronic device is enabled to execute any one of the methods in the technical solutions described in the first aspect. Description of the Drawings
[0042] Figure 1 is a schematic structural diagram of a terminal device 100 provided by an embodiment of the present application;
[0043] Figure 2 is a schematic diagram of a screen-off interface in a local AOD mode provided by an embodiment of the present application;
[0044] Figure 3 is a schematic diagram of a screen-off interface in a full-screen AOD mode provided by an embodiment of the present application;
[0045] Figure 4 is a schematic diagram of a switch interface of an AOD state provided by an embodiment of the present application;
[0046] Figure 5 is a schematic diagram of a lock screen animation in a full-screen AOD mode provided by an embodiment of the present application;
[0047] Figure 6 is another schematic diagram of a lock screen animation in a full-screen AOD mode provided by an embodiment of the present application;
[0048] Figure 7It is a software structure block diagram of the terminal device 100 provided by an embodiment of the present application;
[0049] Figure 8 It is an interaction diagram of an example screen-off interface display method provided by an embodiment of the present application;
[0050] Figure 9 It is an example interface schematic diagram provided by an embodiment of the present application;
[0051] Figure 10 It is an interface diagram of an example wallpaper theme application provided by an embodiment of the present application;
[0052] Figure 11 It is a flowchart of an example screen-off interface display method provided by an embodiment of the present application;
[0053] Figure 12 It is a process of another example screen-off interface display method provided by an embodiment of the present application;
[0054] Figure 13 It is a schematic structural diagram of an example screen-off interface display device provided by an embodiment of the present application. Detailed implementation manners
[0055] Next, the technical solutions in the embodiments of the present application will be described in conjunction with the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B; herein, "and / or" is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
[0056] Hereinafter, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first", "second", and "third" may explicitly or implicitly include one or more of such features.
[0057] The screen-off interface display method provided by the embodiments of this 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, personal digital assistants (PDAs), etc. The embodiments of this application do not impose any restrictions on the specific types of terminal devices.
[0058] Exemplarily, Figure 1 is a schematic structural diagram of a terminal device 100 provided by the embodiments of this 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, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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.
[0059] It can be understood that the structure schematically shown in the embodiments of this application does not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0060] It can be understood that the interface connection relationships between the modules schematically shown in the embodiments of this application are only illustrative and do not constitute a structural limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may also adopt different interface connection methods or a combination of multiple interface connection methods in the above embodiments.
[0061] As the functions of terminal devices become increasingly rich, people's requirements for the usage experience of terminal devices are also getting higher and higher. The display effects of terminal devices in various scenarios have also attracted people's attention. For example, users can set different desktops, lock screen wallpapers, etc. according to their personal preferences. If the user performs a screen-on operation in the AOD state, the interface of the terminal device will directly switch from the AOD interface to the lock screen state, and the display effect is single.
[0062] The screen-off interface display method provided by the embodiments of the present application is a display solution for the terminal device to enter the screen-on state from the screen-off state, which can enrich the display effect and improve the user's usage experience.
[0063] To clearly describe the detailed process of entering the screen-on state from the screen-off state, the screen-off function for controlling the screen-off state will be introduced first.
[0064] When the screen-off function of the terminal device is turned on, the terminal device can enter the screen-off state when the user does not use the terminal device.
[0065] The switching method of the screen-off function is as follows: The user can click on the desktop: Settings > Desktop and Wallpaper, and the terminal device will display the interface as shown in Figure a in Figure 4 In Figure a in Figure 4 the user clicks on the card for always-on display, and enters the screen-off settings interface as shown in Figure b in Figure 4 The screen-off settings interface includes a switch control for always-on display. The user can click on the switch control for always-on display in the screen-off settings interface to turn on or off the screen-off function. Optionally, the user can also select any one of the display modes: all-day display, tap-to-display, and timed display in the menu of the display mode in the screen-off settings interface. Figure 4 Figure b in
[0066] 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 AOD state. The interface displayed on the screen in the AOD state 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 off-screen state, but will continuously display some useful information, such as continuously displaying the time, date, battery level, etc. information, and can also display the screen-off picture and fingerprint highlights, such as Figure 2 shown. Figure 2The standby screen image contains a person and a bicycle. In the AOD state, the user can obtain important information such as time, date, notifications, battery level, etc. without waking up the phone. Compared with frequently waking up the phone screen to check information, the AOD function can significantly reduce the number of awakenings, thus saving battery consumption. Optionally, the information displayed in the AOD state can also be increased or decreased based on user settings.
[0067] Based on the difference in the display method, the AOD state can be divided into two modes: one is the partial AOD mode. In the partial AOD mode, the standby screen image does not occupy the entire screen, but only occupies a small screen area, and the other areas outside the standby screen image and information such as time, date, notifications, and battery level are in a black screen state. The other is the full-screen AOD mode. In the full-screen AOD mode, the standby screen image occupies most of the screen (for example, the standby screen image occupies 95% of the screen area), and information such as time, date, and battery level is displayed on top of the standby screen image. In the full-screen AOD mode, there is no large area of black screen in the screen, such as Figure 3 shown. Figure 3 The standby screen image in contains a balloon and a background.
[0068] To distinguish between the full-screen AOD mode and the partial AOD mode, the distribution of pixel values of the pixel points in the screen is used to describe. The pixel value of the pixel points displayed as black in the screen is 0 or close to 0 (for example, less than 10), and the larger the pixel value, the higher the brightness. Then, in the partial AOD mode, a small area of the screen is used to display the standby screen image and information such as time, and this small area is called the display area. In the partial AOD mode, the pixel values of all or most of the pixel points in the display area are larger (higher brightness), for example, greater than 100; while the pixel values of most of the areas outside the display area in the screen (the areas outside the standby screen image, time, date, notifications, and battery level, etc.) are 0 or close to 0.
[0069] In the full-screen AOD mode, most or all of the area of the screen is used to display the standby screen image, and the pixel values of all or most of the pixel points in the standby screen image are larger, for example, greater than 100. Therefore, in the full-screen AOD mode, the proportion of the number of pixel points (pixel points with high brightness) with pixel values greater than the preset pixel value threshold (for example, 100) in the entire screen is relatively large, for example, the proportion is greater than the preset proportion. Optionally, the preset proportion can be any proportion between 90% and 100%. The preset pixel value threshold can be a number with a large difference from 0, such as 100, 200, etc.
[0070] Whether in the full-screen AOD mode or the partial AOD mode, based on the difference in the display timing, the AOD state can also include three modes: one is the tap mode, that is, tapping to enter the AOD state. In the tap mode, if the user does not use the terminal device all the 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. Another 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 timing mode, that is, when the terminal device is not in use, within the set timing period (for example, between 7:00 and 23:00), the terminal device will not automatically turn off the screen, but continuously display the screen-off interface; while in other periods outside the set timing period, the terminal device enters the screen-off state when not in use and no longer displays any interface. In the timing mode, the user can set different timing periods according to needs. Optionally, the AOD state can also have modes based on other display timing, which are not limited in the embodiments of the present application.
[0071] The above AOD state is a description of the display state of the screen. In the AOD state, the entire terminal device can also enter the Doze mode. In the Doze mode, the system applications of the terminal device reduce the access to the network and the occupancy of the CPU, the frequency of the CPU decreases, the frame rate of the screen-off interface drops, and the brightness of the screen decreases, thereby saving battery power.
[0072] After the Doze mode lasts for a period of time, it can enter a deeper sleep mode, that is, the Doze sleep mode, which can be called the Doze suspend mode. If the AOD state is the all-weather mode, in the Doze suspend mode, the frequency of the CPU further decreases, the frame rate of the screen-off interface also further drops, for example, the frame rate is refreshed once per second, and the brightness of the screen further decreases, thereby further saving battery power.
[0073] In the AOD state, when the user clicks the power button, the screen can enter the lock screen state from the screen-off 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 screen-off interface and switch to the lock screen state, and 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, then during the playback of the lock screen animation on the terminal device, the foreground animation layer in the lock screen animation will cover the time layer and be displayed on the top layer. Figure 5shows the playing process of the lock screen animation. When the terminal device displays the screen-off interface as shown in Figure 5 Figure a, the user presses the power button to trigger the playing of the lock screen animation. During the playing process of the lock screen animation, the foreground animation (two overlapping circles) gradually enlarges and displays from the position shown in Figure 5 Figure a, and in the middle, it can be shown as in Figure 5 Figure b, and then continues to play and enters the locked screen state, showing the lock screen interface as shown in Figure 5 Figure c. Figure 5 Figure b in Figure 5 is a schematic diagram of an interface during the playing process of the lock screen animation when there is a depth of field effect. It can be seen from Figure 5 Figure b that the lock screen animation (that is, the layer of the foreground animation) covers the time layer. Another is the non-depth of field effect. If the user does not set the depth of field effect for the lock screen animation, then during the playing process of the lock screen animation on the terminal device, the lock screen animation is always played under the time layer of the locked screen state, and the time layer of the locked screen state is always displayed above the lock screen animation. For the playing process of the lock screen animation with the non-depth of field effect, please continue to refer to Figure 5 as shown. When the terminal device displays the screen-off interface as shown in Figure 5 Figure a, the user presses the power button to trigger the playing of the lock screen animation. During the playing process of the lock screen animation, the two overlapping circles in the lock screen animation gradually enlarge and display from the position shown in Figure 5 Figure a, and in the middle, it can be shown as in Figure 5 Figure d, and then continues to play and enters the locked screen state, showing the lock screen interface as shown in Figure 5 Figure c. It can be seen from Figure 5 Figure d that the lock screen animation does not cover the time layer and is always displayed under the time layer. It should be noted that regardless of whether the user sets the depth of field effect or not, after the lock screen animation is played, the terminal device can display the lock screen interface. In the lock screen interface, there will be no layer of the foreground animation, and the time is always displayed on the upper layer and will not be blocked.
[0074] In the depth of field effect, the foreground animation can not only cover the time layer for display. Optionally, the foreground animation can also cover other display objects in the interface below, such as covering icons such as notifications and battery levels. Optionally, in the depth of field effect, different objects in the animation can also be played in layers, with some objects located under the time layer and some objects covering on the upper layer of the time layer to enhance the display effect. The present application does not limit the specific playing form of the depth of field effect.
[0075] Figure 6 is another diagram of the interface change during the playing process of the lock screen animation. Figure 6 and Figure 5 both use the full-screen AOD mode to enter the locked screen state for illustration. InFigure 6 In the full-screen AOD mode shown in Figure a, 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 6 Figure b. It can be seen that Figure 6 the interface brightness in Figure b becomes higher. The terminal device continues to play the lock screen animation and enters the locked screen state, displaying a lock screen interface as shown in Figure 6 Figure c. Figure 6 The brightness of the lock screen interface shown in Figure c is higher than that of the interface shown in Figure 6 Figure b. That is to say, during the playback of the lock screen animation shown in Figure 6 , the screen gradually brightens. Taking the proportion of the interface diagram shown in Figure 6 as an example, it is not used to limit the proportion displayed by the actual interface. Optionally, the interface shown in Figure 6 may further include icons such as fingerprint light spots (not shown in the figure), and the embodiments of the present application do not limit this.
[0076] To improve the display effect when entering the bright screen state from the AOD state, the embodiments of the present application provide a method for displaying the off-screen interface. By setting multiple configuration items, the interface display form from the AOD state to the bright screen state is controlled, so that the process of displaying the animation is coherent, thereby improving the display effect.
[0077] Next, the software architecture relied on by the embodiments of the present application is introduced.
[0078] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, the Android system with a layered architecture is taken as an example to exemplarily illustrate the software structure of the terminal device 100.
[0079] Figure 7 is the software structure block diagram of the terminal device 100 in the embodiments of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer. The application layer may include a series of application packages.
[0080] As Figure 7 shown, the application packages may include applications such as the camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0081] The application package also includes: a theme package (theme module), a wallpaper package (wallpaper APK), an AOD module, a system user interface module (System UI), and a desktop launcher (launcher).
[0082] The theme package is used to manage the settings, display, and preview of different themes.
[0083] Among them, the wallpaper package includes wallpaper modules that support multiple different wallpaper forms, such as: a folded wallpaper module, a dynamic wallpaper module, a 3D wallpaper module, and a super wallpaper module (super wallpaper service). Different wallpaper modules are used to achieve different wallpaper display effects.
[0084] The AOD module is used to implement the relevant display of the local AOD mode described above, and is also called the local AOD module.
[0085] System UI can control the animation display method from the AOD state to the locked screen state in the full-screen AOD mode.
[0086] The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0087] As Figure 7 shown, the application framework layer may include a window manager (WindowManagerService), a content provider, a view system, a telephone manager, a resource manager, a notification manager, a theme switching service (Thememanager), a wallpaper management service (WallpaperManagerSevice, or called the wallpaper framework service), a dream service (DreamService), and a power management service (PowerManagerService), etc.
[0088] The window manager is used to manage window programs, including managing the hierarchy and display order of windows. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0089] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.
[0090] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0091] The telephone manager is used to provide the communication function of the terminal device 100. For example, the management of call states (including answering, hanging up, etc.).
[0092] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on.
[0093] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages, which can disappear automatically after a short stay without user interaction.
[0094] The theme package and super wallpaper module, supported by the theme switching service and super wallpaper management service at the application framework layer, implement the switching of the theme mode of the terminal device and display the super wallpaper corresponding to the theme mode.
[0095] The power management service is used to manage the states of the screen on, screen off, and whether the screen is unlocked of the terminal device.
[0096] The dream service is used to manage the screen-on display state, screen-off display state, and display state in Doze mode of the terminal device.
[0097] Android runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
[0098] The core libraries contain two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.
[0099] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0100] The system libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (such as: OpenGL ES), 2D graphics engines (such as: SGL), etc.
[0101] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0102] The media library supports the playback and recording of a variety of common audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0103] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0104] The 2D graphics engine is a drawing engine for 2D drawing.
[0105] The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
[0106] For ease of understanding, the following embodiments of this application will take a terminal device with the Figure 1 and Figure 7 shown structure as an example, and in combination with the accompanying drawings and application scenarios, specifically elaborate on the screen-off interface display method provided by the embodiments of this application.
[0107] Users can set a theme package and select the wallpaper theme to be applied. For example, users click on the theme card in Figure a in Figure 4 to enter the theme selection interface to select the required wallpaper theme. Figure 4 In Figure a in
[0108] it is shown by taking the example that the user has selected and applied Theme 1 as the wallpaper theme.
[0109] First, the process of the user setting the theme package to make the selected wallpaper theme effective will be described. Refer to Figure 8 as shown:
[0110] S701. The user sets the wallpaper theme (wallpaper type) of the super wallpaper.
[0111] It should be noted that the wallpaper theme can include a variety of wallpaper themes, such as super wallpaper, 3D wallpaper, dynamic wallpaper, and folding wallpaper. The display effects of different wallpaper themes are different.
[0112] Specifically, the user can operate on the terminal device and open from Settings > Desktop and Wallpaper as shown in Figure 4The interface of the desktop and wallpaper shown in Figure a, and then click on the theme card to enter the theme pack settings page. The user selects the wallpaper theme of the super wallpaper they need from multiple candidate wallpaper themes in the settings page.
[0113] S702. The theme module then responds to the user's operation of selecting the super wallpaper theme, sets the package name of the super wallpaper service (for example: live.wallpaper.paradise), and launches the super wallpaper service through the wallpaper framework service.
[0114] Specifically, the theme pack responds to the user's operation of selecting the super wallpaper theme, and through the wallpaper framework service, launches the corresponding super wallpaper service (SuperWallpaperService) according to the package name of the super wallpaper service. Optionally, if the user selects the wallpaper theme of the dynamic wallpaper, the dynamic wallpaper service will be launched, and the effect of the dynamic wallpaper will be displayed.
[0115] S703. The super wallpaper service obtains the resources corresponding to the wallpaper theme according to the wallpaper theme.
[0116] Specifically, the super wallpaper service obtains resources such as the lock screen animation, desktop animation, lock screen picture, and desktop wallpaper corresponding to the super wallpaper from the preset resource path according to the wallpaper theme of the super wallpaper.
[0117] Optionally, the resource path can be: / product h / region comm / china / themes / FoldingFan.hwt. Among them, FoldingFan.hwt is the resource package corresponding to the wallpaper theme of the super wallpaper, and this resource package can be a file in hwt format.
[0118] S704. The wallpaper framework service also sends a broadcast message carrying the current wallpaper theme to System UI.
[0119] For example, if the wallpaper theme is a 3D wallpaper before the user sets a new wallpaper theme. After the user selects the wallpaper theme of the super wallpaper, the wallpaper framework service also sends a broadcast message to System UI. The broadcast message carries the identifier (such as the package name) of the super wallpaper, indicating that the wallpaper theme has been switched from the 3D wallpaper to the super wallpaper.
[0120] S705. Under the launch of the wallpaper framework service, the super wallpaper service parses the configuration file of the corresponding theme pack according to the wallpaper theme.
[0121] Optionally, this configuration file can be a file in xml format, for example named livepaper.xml. This configuration file includes multiple configuration items, and these multiple configuration items are used to configure the playback methods of the lock screen animation and the desktop animation.
[0122] To clearly introduce the technical solution of this application, the configuration items are described in detail here. Multiple configuration items in the configuration file include, but are not limited to, some or all of the following configuration items 1 to 16:
[0123] 1. support_background_blur (support background blur): It represents whether there is a blur effect when sliding the screen in the locked screen state. For example, when the value of this configuration item is false, there is no blur effect when sliding the screen in the locked screen state; when the value of this configuration item is true, there is a blur effect when sliding the screen in the locked screen state.
[0124] 2. support_dark_mode (support dark mode): It represents whether to follow the system color. For example, when the value of this configuration item is false, the lock screen animation and desktop animation can support the dark mode; when the value of this configuration item is true, the lock screen animation and desktop animation cannot support the dark mode.
[0125] 3. aod_to_lock_total_frame (partial AOD - total number of frames for lock screen): It represents the total number of frames of the animation from the partial AOD mode to the lock screen state.
[0126] 4. lock_to_launcher_total_frame (lock screen - total number of frames for launcher): It represents the total number of frames of the animation from the lock screen state to the desktop.
[0127] In the embodiments of this application, the animation from the partial 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 which video segment of this video file is played is determined according to specific configuration items in different scenarios.
[0128] 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 a total of 51 frame images. When the terminal device enters the lock screen state from the AOD mode, these 51 frame images can be played.
[0129] Another example, when the configuration item lock_to_launcher_total_frame is 35, it means that the animation from the lock screen state to the desktop includes a total of 35 frame images. If the animation from the partial AOD mode to the lock screen state and the animation from the lock screen state to the desktop together belong to a video file composed of 86 frame images (51 + 35), when the terminal device unlocks from the lock screen state and enters the desktop, the video segment from the 52nd frame to the 86th frame of this video file is played, that is, the last 35 frame images in the 86 frames are played.
[0130] 5. aod_style (AOD Style): Represents the style of the AOD corresponding to the super wallpaper.
[0131] For example, when aod_style is WisdomLightclock; Wisdom_Light, WisdomLightclock is the identifier (such as the name) of the AOD style, and Wisdom_Light is the identifier (such as the name) of the AOD theme. The AOD module can display the corresponding AOD theme and style in the AOD mode according to the name of the AOD style and the name of the AOD theme configured in this configuration item. Optionally, this configuration item for the AOD style can be used to configure the AOD style in the local AOD mode.
[0132] 6. aod_support_transition_animation (Support for screen-off animation transition): Indicates whether it supports the screen brightness gradually dimming after the screen-off animation is played to connect to the screen-off interface.
[0133] For example, when this configuration item is false, it means that it does not support the screen brightness gradually dimming after the super wallpaper animation is played; when this configuration item is set to true, it means that it supports the screen brightness gradually dimming after the super wallpaper animation is played. 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 in the screen-off interface of the local AOD mode accounts for a relatively large proportion, this configuration item can make the screen brightness gradually dim after the super wallpaper animation is played and connect to the screen-off interface in the local AOD mode without sudden changes.
[0134] 7. support_frame_extraction (Support for frame extraction of screen-off animation): Indicates whether the screen-off animation supports frame extraction. The screen-off animation is the animation played during the process of switching from the screen-on state to the screen-off state of the screen. When this configuration item is false, it means that frame extraction is not supported and only frame-by-frame playback is possible. When this configuration item is true, it means that frame extraction is supported, and then the frame extraction method can be further set according to other configuration items, such as configuration item 11 (default paragraph of the screen-off animation) below.
[0135] 8. extract_stage_one_orig_anim_frame (Total number of frames of the first-stage animation).
[0136] 9. extract_stage_two_orig_anim_frame (Total number of frames of the second-stage animation).
[0137] 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 to be frame-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 for the first and second video intervals form the third video interval. That is to say, 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 and then minus the total number of frames in the second video interval.
[0138] Taking the example that the video file includes a total of 86 frame images, when the value of support_frame_extraction indicates that frame extraction is supported, if extract_stage_one_orig_anim_frame is 86 and extract_stage_two_orig_anim__frame is 0, it means that the entire video file is allocated to the first video interval at this time.
[0139] Another example: when the value of support_frame_extraction indicates that frame extraction is supported, if extract_stage_one_orig_anim_frame is 30 and extract_stage_two_orig_anim_frame is 30, it means that the total number of frames in the three video intervals are 30, 30, and 26 (86 - 30 - 30) respectively. And the first video interval includes frames 1 to 30; the second video interval includes frames from the 31st frame to the next 30 frames, that is, up to the 60th frame; the third video interval includes frames from the 61st frame to the next 26 frames, that is, up to the 86th frame.
[0140] Optionally, when the video file to be frame-extracted needs to be divided into more video intervals, other configuration items for the corresponding video intervals can be added continuously according to the definition methods of configuration items 8 and 9 to configure the total number of frames of the corresponding video intervals.
[0141] 10. aod_animation_segments (Number of AOD animation segments): It represents the number of animations (videos) involved when entering the lock screen state from the partial AOD mode. For example, when this configuration item is 3, it means the number of animations involved when entering the lock screen state from the partial AOD mode is 3; when this configuration item is 5, it means the number of animations involved when entering the lock screen state from the partial AOD mode is 5. To illustrate the specific meaning of this configuration item, the animations in the partial AOD mode are introduced here.
[0142] In the all-weather mode of the partial AOD mode, to prevent the off-screen image from always being displayed in the same position and causing screen burn-in, the off-screen image will gradually move down from the top of the screen at regular time intervals. For example, when aod_animation_segments is 9, the off-screen image can start from the first position at the top of the screen, move down one position every minute, continue to move to the ninth position at the bottom of the screen, and then start from the first position again after an interval of one minute, moving down one position every minute, repeating in a cycle.
[0143] That is to say, in the partial AOD mode, there are nine situations for the position of the off-screen image. To ensure the continuity of the animation when entering the lock screen interface from the partial AOD mode, multiple segments of animations can be used. In each segment of the animation, the starting position of the off-screen image is different. For example, the starting position of the off-screen image in the first segment of the animation corresponds to the second position. When the off-screen image in the partial AOD mode is at the first position, the second position, or the third position, and the user lights up the screen, the terminal device plays the first segment of the animation. The starting position of the off-screen image in the first segment of the animation is the same or close to the second position, and also close to the first position and the third position, which can ensure the continuity of the animation when entering the lock screen interface when the off-screen image is at the first position, the second position, or the third position, and there will be no obvious jump in the position of the off-screen image. Other positions can also be corresponding in the way of using the same animation for multiple consecutive positions. It is important to ensure that the starting position of the off-screen image corresponding to these multiple consecutive positions is the same or close to these multiple consecutive positions, so as to ensure 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 respectively correspond to 5 segments of animations, so as to ensure the continuity of the animation on the premise of not occupying too much storage space due to too many animations.
[0144] Optionally, five positions can also be set in the local AOD mode to display the off-screen pictures of the local AOD mode. The step between each of these five positions can be 80 pixels. Optionally, these five positions can respectively correspond to 3 segments of animations. For example, the first position and the second position correspond to the first segment of animation, the third position corresponds to the second segment of animation, and the fourth position and the fifth position correspond to the third segment of animation. Then, in the local AOD mode, if the off-screen picture moves to the first position or the second position and the user operates to turn on the screen at this time, the terminal device can play the first segment of animation, and in the first segment of animation, the distance between the starting position corresponding to the off-screen picture and the first position and the second position is closer than the distance to other positions; if the off-screen picture moves to the third position and the user operates to turn on the screen, the terminal device can play the second segment of animation, and in the second segment of animation, the distance between the starting position corresponding to the off-screen picture and the third position is closer than the distance to other positions; if the off-screen picture moves to the fourth position or the fifth position and the user operates to turn on the screen, the terminal device can play the third segment of animation, and in the third segment of animation, the distance between the starting position corresponding to the off-screen picture and the fourth position and the fifth position is closer than the distance to other positions.
[0145] 11.aod_to_lock_default_animation_stage (default paragraph of the off-screen animation): It indicates which segment of the multiple segments of animations when entering the lock screen interface in the above local AOD mode needs to be used by default in the off-screen animation (when entering the AOD mode from the screen-on state). Optionally, when the number of multiple segments of animations is 3, this configuration item can be 1, indicating that the first segment of animation is used for the off-screen animation; when the number of multiple segments of animations is 5, this configuration item can be 2, indicating that the second segment of animation is used for the off-screen animation.
[0146] For example, when the number of multiple segments of animations is 3, the entire video file can include 188 (51 * 3 + 35) frame images. Among them, the 1st frame to the 51st frame are the first segment of animation, the 52nd frame to the 102nd frame are the third segment of animation, the 103rd frame to the 153rd frame are the third segment of animation, and the 154th frame to the 188th frame are the video interval from the lock screen interface to the desktop.
[0147] 12.support_off_screen_animation (support off-screen animation): It indicates whether to support off-screen animation.
[0148] When this configuration item is false, it means that off-screen animation is not supported. If the user operates to turn off the screen, the terminal device can directly enter the off-screen state or the screen-off state without showing an animation effect. When this configuration item is true, it means that off-screen animation is supported, and the display strategy of the off-screen animation can be determined according to the aforementioned configuration items 7, 8, 9, and 11.
[0149] For example, when configuration item 7 is true, and configuration items 8, 9, and 11 are 51, 51, and 1 respectively, if the user operates to turn off the screen, the terminal device will play back the 1st to 51st frames of the first animation segment of the video file in reverse at the frame extraction multiple. If configuration item 11 is changed to 2, then it will play back the 52nd to 102nd frames of the second animation segment of the video file in reverse at the frame extraction. The rest will not be elaborated.
[0150] 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 operates to turn off the screen, the terminal device will play back the first animation segment of the video file frame by frame in reverse, that is, play back the 1st to 51st frames frame by frame.
[0151] It should be noted that the frame extraction multiple represents the number of valid frames extracted when playing a video. For example, if the frame extraction multiple is 2 times, it 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 multiple 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. With the total number of animation frames remaining unchanged, the larger the frame extraction multiple, the shorter the playback duration of the screen-off animation; the smaller the frame extraction multiple, the longer the playback duration of the screen-off animation.
[0152] 13. support_full_screen_aod (Support full-screen AOD mode): Indicates whether the current wallpaper theme supports the full-screen AOD mode.
[0153] 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.
[0154] Optionally, in some wallpaper themes, the full-screen AOD mode can be preferred, and the value of this configuration item is defaulted to true.
[0155] 14. aod_to_lock_total_frame_full_aod (Full-screen AOD - Total number of frames for locking screen): Represents the total number of frames of the animation when entering the locked screen state from the full-screen AOD mode. For example, when this configuration item is 36, it means that the total number of frames of the animation when entering the locked screen state from the full-screen AOD mode is 36 frames.
[0156] 15. lock_to_launcher_total_frame_full_aod (Total number of frames for the lock screen - desktop animation in full-screen AOD): Represents the total number of frames of the animation when transitioning from the lock screen state to the desktop in the full-screen AOD mode. For example, when this configuration item is set to 35, if the total number of frames when transitioning from the full-screen AOD mode to the lock screen state is 36 frames, then the video file corresponding to the full-screen AOD mode includes 71 (35 + 36) frames.
[0157] 16. super_wallpaper_scheme (Support for depth-of-field mode): Represents whether the wallpaper theme supports the depth-of-field effect. If the configured value of this configuration item matches the current wallpaper theme, it indicates that the current wallpaper theme supports the depth-of-field effect; if the configured value of this configuration item does not match the current wallpaper theme, it indicates that the current wallpaper theme does not support the depth-of-field effect. For example, among three wallpaper themes, the three wallpaper themes correspond to Scheme 1, Scheme 2, and Scheme 3 respectively. If the configured values of this configuration item are 1 and 3, and the current wallpaper theme corresponds to Scheme 2, it means that the configured values (1 and 3) of this configuration item do not match the current wallpaper theme, and the current wallpaper theme does not support the depth-of-field effect; if the current wallpaper theme corresponds to Scheme 1 or Scheme 3, it means that the configured value of this configuration item matches the current wallpaper theme, and the current wallpaper theme supports the depth-of-field effect.
[0158] Based on the descriptions of the above configuration items 1 - 16, it can be known that regardless of whether the screen-off state is the partial AOD mode or the full-screen AOD mode, the animations when transitioning from the screen-off state to the lock screen state and then from the lock screen state to the desktop can use the same video file. Moreover, in different display stages, different video intervals can be configured according to the relevant items in the above configuration items, and the corresponding video intervals can be displayed according to the display stage.
[0159] S706. The theme module obtains the target configuration items and configured values corresponding to the wallpaper theme from the configuration file and writes them into the settings database.
[0160] For example, the theme module can obtain the target configuration items from the configuration file according to the wallpaper theme and write them into the database. When the configuration item in the screen-off state indicates 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_fram is 86, extract_stage_two_orig_anim_frame is 0, aod_to_lock_default_animation_stage is 1, etc., and the corresponding configuration values are written into the settings database.
[0161] For another example, when the configuration item in the screen-off state indicates 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, etc., and the corresponding configuration values into the settings database.
[0162] Optionally, other configuration items can be selectively written as needed.
[0163] Optionally, when the configuration item in the screen-off state supports both 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 settings database for future calls.
[0164] Optionally, the theme module can also obtain the color mode of the current system as the dark mode or the light mode and write the color mode into the settings database for the super wallpaper service to read.
[0165] S707. The super wallpaper service obtains the target configuration items, the corresponding configuration values, the color mode of the system, and the supported screen-off states from the settings database according to the wallpaper theme.
[0166] Optionally, the supported screen-off state is used to indicate whether the current supports the partial AOD mode or the full-screen AOD mode. The supported screen-off states include any one of the following states:
[0167] global_only: It indicates that this wallpaper theme only supports the full-screen AOD mode;
[0168] local_only global: It indicates that this wallpaper theme only supports the local AOD mode;
[0169] global_local_recommend_global: It indicates that this wallpaper theme is preferentially used in the full-screen AOD mode;
[0170] global_local_recommend_local: It indicates that this wallpaper theme is preferentially used in the local AOD mode;
[0171] global_and_local: It indicates support for both the full-screen AOD mode and the local AOD mode.
[0172] Optionally, the target configuration item may also include some or all of the above configuration items 1-16, as well as the configuration values corresponding to each configuration item.
[0173] S708. SystemUI obtains the corresponding lock screen image according to the wallpaper theme carried in the received broadcast message and according to the system's color mode and AOD status, and loads the lock screen image.
[0174] Optionally, if the depth of field effect is currently set and it is in the full-screen AOD mode, SystemUI reads the lock screen image that matches the wallpaper theme from the parsed resource package and loads it. This lock screen image can be the same as the last frame of the lock screen animation mentioned above, or it can also be called the placeholder image in 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, making the display between the lock screen interface and the desktop coherent, improving the display effect, and thus enhancing the user experience. After that, if the user performs an operation such as unlocking to turn on the screen, the layer of this lock screen image (placeholder image) is destroyed and no longer displayed.
[0175] For example, when the system's main color mode is dark mode and the AOD state is partial AOD mode, SystemUI can determine the placeholder image to be dark_Aod_live_wallpaper.jpg; when the color mode is light mode and the AOD mode is partial AOD mode, the super wallpaper service determines the placeholder image to be 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 to be 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 to be fullAod_live_wallpaper.jpg.
[0176] 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.
[0177] In the process of entering the lock screen state in full-screen AOD mode, SystemUI can also gradually change the brightness of the screen, for example, gradually increase the brightness from a lower level according to the preset brightness gradient during the lock screen animation, so that the lock screen animation has the effect of gradually brightening the brightness. This will make the start of the lock screen animation play the same or close to the display brightness in full-screen AOD mode, and will not show a jump in brightness due to the large difference in brightness between the off-screen interface and the lock screen animation. It will also make the screen brightness appear in the bright screen state when the lock screen animation is played and enters the lock screen state, which will not affect user use and make the display more coherent.
[0178] Correspondingly, when entering the screen-off state, SystemUI can also gradually change the brightness of the screen during the playing of the screen-off animation. For example, the brightness in the higher bright screen state can be gradually reduced according to the preset brightness gradient, so that the screen-off animation has the effect of gradually dimming the brightness. This will make the brightness of the screen-off animation the same or close to that in the unlocked or locked state when it starts playing again, and the brightness at the end will be the same or close to that in the full-screen AOD mode. The brightness jump will not be shown due to the large difference in brightness between the screen-off interface and the screen-off animation, making the display more coherent.
[0179] When entering the partial AOD mode in the locked screen state (or unlocked state), if the display timing of the AOD state is the all-day mode, after the screen-off animation is played, the terminal device first enters the screen-off state. At this time, the screen is in a black screen state and does not display any content. After the terminal device maintains the screen-off state for a period of time, such as 1 second, it enters the partial AOD mode again. In this way, due to the existence of the screen-off state in the middle, even if there is a difference in the brightness between the last frame of the lock screen animation and the brightness in the partial AOD mode, users are not easily aware of the brightness jump of the screen, thus enhancing the user experience.
[0180] If the display timing of the AOD state is the tap mode, after the terminal device plays the screen-off animation, it first keeps the screen in the powered-on state (on) and does not enter the Doze mode. After waiting for a period of time, such as 15 seconds or 1 minute, it enters the screen-off state. That is to say, before the screen-off state, the screen is kept in the powered-on state all the time, and the brightness of the screen decreases. Since it does not enter the Doze mode, there is no brightness jump between the two states, which enhances the user experience. After that, if the user taps the screen, the device can enter the partial AOD state. Due to the existence of the screen-off state in the middle, users are not easily aware of the brightness jump of the screen, thus enhancing the user experience.
[0181] S709. The super wallpaper service obtains the corresponding video file according to the color mode and the AOD state.
[0182] Specifically, the super wallpaper service can determine the video file required for the animation according to the color mode and AOD state of the current system. For example: when the color mode is the dark mode and the AOD state is the partial 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 the light mode and the AOD mode is the partial 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 the dark mode and the AOD mode is the 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 the light mode and the AOD mode is the full-screen AOD mode, the super wallpaper service determines that the video file required for the animation is video_live_wallpaper_fullAod.mp4.
[0183] Meanwhile, the super wallpaper service can also instruct the multimedia encoder / decoder to initialize the desktop according to the wallpaper theme set by the user currently, so that after the user sets the wallpaper theme and returns to the desktop, the user can see the desktop corresponding to the applied wallpaper theme, enabling the user to clearly perceive the display state after the wallpaper theme is applied, with strong interactivity.
[0184] The above S701 to S709 describe the detailed process of the terminal device applying the wallpaper theme set by the user.
[0185] After that, if the user changes the AOD state, the steps of the above processes S708 and S709 can be repeated to apply the new AOD state wallpaper theme. Specifically, refer to the description of the steps of S710 to S711:
[0186] S710. SystemUI listens to the settings database to obtain the new system color mode and the new AOD state.
[0187] It should be noted that when the user changes the AOD state (such as switching from the partial AOD mode to the full-screen AOD mode, or from the full-screen AOD mode to the partial AOD mode), and / or changes the system color mode (such as switching from the dark mode to the light mode, or from the light mode to the dark mode).
[0188] 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 the 1st frame to the 36th frame of the video file. Another example is that when the configuration item of aod_style changes, the style of the screen-off picture displayed in the AOD state will change accordingly.
[0189] S711. SystemUI obtains a new video file according to the refreshed new system color mode and the new AOD state monitored.
[0190] Optionally, if the depth of field effect is currently set and it is in the full-screen AOD mode, SystemUI can obtain a new lock screen picture according to the refreshed new system color mode and the new AOD state monitored and load it.
[0191] For the detailed description of the above S710 and S711, refer to the description of S708 and S709 in the previous text, which will not be elaborated here.
[0192] The foregoing S701 to S711 introduce the application process of the wallpaper theme. Next, based on the application results of the application process in the previous text, the display method of the screen-off interface in different display stages will be introduced.
[0193] The user can be in, such asFigure 9 In the settings interface shown in Figure a in Figure 9 , click on the "Desktop and Personalization" control to enter the Figure 9 "Desktop and Personalization" settings interface shown in Figure b in Figure 9 . In Figure b in Figure 9 , the user can click on the "Always-on Display" card to enter the Figure 9 always-on display settings interface shown in Figure b or c in Figure 9 . If the user clicks on the "Partial" control in the always-on display settings interface, then Figure 9 Figure c in
[0194] can be switched to the partial AOD mode shown in Figure b in Figure 10 . After selecting the partial AOD mode, multiple selectable personalized pictures, artistic signatures, etc. can also be displayed on the interface. After selecting the partial AOD mode, the resources corresponding to the partial AOD mode can also be loaded, for example, read into the multimedia encoder / decoder. If the user clicks on the "Full Screen" control in the always-on display settings interface, then Figure 10 Figure d in
[0195] S712. The user performs a screen-on operation.
[0196] After the user sets and applies the wallpaper theme and then operates to turn off the screen, the terminal device can enter the AOD state. For the detailed process of the terminal device entering the AOD state from the screen-on and unlocked state, refer to the description after the screen-off operation in the following text, which will not be elaborated here for the time being.
[0197] After the terminal device enters the AOD state, if the user needs to use the terminal device, the user can click on the power button to perform a screen-on without unlocking operation.
[0198] S713. The power manager generates a screen-on without unlocking instruction in response to the screen-on without unlocking operation.
[0199] The screen-on without unlocking instruction instructs the terminal device to enter the screen-on state, but no fingerprint is input for unlocking, that is, it enters the locked screen state.
[0200] If currently in the full-screen AOD mode, when the power manager responds to the screen-on without unlocking operation, it can also perform the operations of S714 to S716.
[0201] S714: The power manager sends the screen-on without unlocking instruction to SystemUI.
[0202] S715: In response to the screen-on without unlocking instruction, SystemUI determines whether the lock screen picture (placeholder) can be scaled by 0.95 times.
[0203] Optionally, the scaling factor of 0.95 here is only an example, and other scaling factors are also possible. The embodiments of the present application do not make limitations.
[0204] S716: If supported, SystemUI displays the lock screen picture at a scaling factor of 0.95 in the locked screen state. If not supported, after the lock screen animation is played, SystemUI displays the placeholder at its original size in the locked screen state.
[0205] It should be noted that the fact that the placeholder can be scaled by 0.95 times means that after the length and width of the placeholder are respectively reduced proportionally to 95% of the original size, in the new placeholder obtained, the size of the target object is the same as or visually consistent with the size of the dynamically changing object in the last frame of the lock screen animation, which can ensure the coherence of the lock screen animation and prevent jumps caused by too large a difference between the size of the target object and the size of the dynamically changing object. The dynamically changing object is the object that changes dynamically frame by frame in the lock screen animation, such as Figure 5 the two superimposed balloons shown in
[0206] If the lock screen picture supports scaling by 0.95 times, after the lock screen animation is played, SystemUI scales the original lock screen picture by a factor of 0.95 and then displays it as a new placeholder on top of the layer in the locked screen state. If the lock screen picture does not support scaling by 0.95 times, after the lock screen animation is played, SystemUI displays the original picture on top of the layer in the locked screen state. It should be noted that the lock screen picture is the same as the last frame image of the lock screen animation, which can make the display effect from the lock screen animation to the locked screen state coherent and improve the user experience.
[0207] It should be noted that the above S715 and S716 are optional operations, and SystemUI can directly display the lock screen picture according to its original size without determining whether the lock screen picture supports the scaling operation.
[0208] S717. The power manager sends the instruction of turning on the screen without unlocking to the super wallpaper service through the wallpaper framework service.
[0209] S718. In response to the instruction of turning on the screen without unlocking, the super wallpaper service generates a first playback instruction according to the configuration file, and instructs the multimedia encoder / decoder to play the lock screen animation according to the first playback instruction.
[0210] It should be noted that if the terminal device is in the full-screen AOD mode, the first playback instruction is forwarded through the full-screen AOD module. Among them, the full-screen AOD module is a module in the lock screen process of SystemUI. If the terminal device is in the partial AOD mode, the super wallpaper service forwards the first playback instruction through the partial AOD module.
[0211] In response to the first playback instruction, the multimedia encoder / decoder plays the lock screen animation with the support of the media playback service in the application framework layer.
[0212] In S709 above, the super wallpaper service has determined the video file to be played. Here, based on the instruction of turning on the screen without unlocking, the super wallpaper service determines the lock screen animation from the AOD state to the lock screen state that needs to be played, and then determines the video interval to be played in the video file based on the relevant configuration items indicating the lock screen animation in the configuration file, and generates a first playback instruction to instruct the multimedia encoder / decoder to display.
[0213] 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 this 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 the dark mode), aod_animation_segments is 3 (indicating that the number of animation segments in the local AOD mode is 3 segments), 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), and 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). In the current local AOD mode, the lock screen picture is in the first position at the top of the screen (corresponding to the need to display the first animation segment). Then, the super wallpaper service generates a first play instruction according to the configuration items related to the lock screen animation and the corresponding configuration values, and instructs the multimedia encoder / decoder 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 lock screen picture is 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 animation segment in the local AOD mode needs to be played, so play the video interval from the 52nd frame (the next frame of the first animation segment) to the 102nd frame (51 + 51) in dark video_live_wallpaper.mp4.
[0214] For another example, when the video file determined by the super wallpaper service is fullAod_live_wallpaper.mp4, the total number of frames is 86, and the configuration values of the relevant configuration items include: support_full_screen_aod (support full-screen AOD mode), support_dark_mode is false (do not support dark mode), and 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 the 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 the 1st frame to the 35th frame in fullAod_live_wallpaper.mp4 according to the first play instruction. This video interval is the lock screen animation from the full-screen AOD mode to the lock screen state. If the depth of field effect is currently displayed, after playing the animation from the full-screen AOD mode to the lock screen state, SystemUI also displays the pre-loaded lock screen picture (placeholder).
[0215] Here, the detailed process of animation playback is illustrated by taking the super wallpaper service instructing the multimedia codec to play the lock screen animation according to the first play instruction as an example. For example, in the current full-screen AOD mode, the super wallpaper service determines that the multimedia codec plays the video interval from the 1st frame to the 35th frame in fullAod_live_wallpaper.mp4. This video interval is the lock screen animation from the full-screen AOD mode to the lock screen state. The super wallpaper service generates a first play instruction based on the relevant configuration items and configuration values, and the first play instruction includes information on playing from the 1st frame to the 35th frame.
[0216] The super wallpaper service instructs the multimedia encoder / decoder to play the first frame to the 35th frame according to a preset frame rate. Taking 60 frames per second as an example, the super wallpaper service sends a first sub-instruction to play the first frame to the multimedia encoder / decoder at the first moment, and the multimedia encoder / decoder plays the first frame in response to the first sub-instruction; the super wallpaper service sends a second sub-instruction to play the second frame to the multimedia encoder / decoder at the second moment, and the multimedia encoder / decoder plays the second frame in response to the second sub-instruction; the super wallpaper service sends a second sub-instruction to play the third frame to the multimedia encoder / decoder at the third moment, and the multimedia encoder / decoder plays the third frame in response to the second sub-instruction, and so on until the 35th frame is played. Thus, the user can see the continuously played lock screen animation. Optionally, if the multimedia encoder / decoder 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, which 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, when 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 a preset interval of 60 milliseconds to instruct the multimedia encoder / decoder to play frame by frame to form an animation.
[0217] S719. The user performs a lock screen unlocking operation.
[0218] After the terminal device enters the lock screen state, the user can also perform an unlocking operation in the lock screen state. For example, enter a fingerprint at the fingerprint spot in the lock screen state, or enter a password, face, etc. in the lock screen state.
[0219] S720. In response to the lock screen unlocking operation, SystemUI generates an unlocking instruction and sends the unlocking instruction to the super wallpaper service.
[0220] It should be noted that if the user swipes up the screen in the lock screen state and the terminal device detects and verifies the face successfully, a lock screen unlocking instruction is generated. The unlocking instruction can instruct the terminal device to play the desktop animation from the lock screen state to the desktop to enter the desktop.
[0221] If the user swipes up the screen in the lock screen state and the terminal device fails to detect the face or the detected face fails the verification, the lock screen password input interface is entered. If the user enters the correct unlocking password in the lock screen password input interface, the terminal device generates an unlocking instruction.
[0222] If the configuration value of the configuration item support_background_blur is true, it indicates that background blur is supported. When entering the lock screen password input interface, in addition to the password input area, the background of the lock screen password input interface is displayed in a blurred effect, and the user cannot see the clear background picture. If the configuration value of the configuration item support_background_blur is false, it indicates that background blur is not supported. When entering the lock screen password input interface, in addition to the password input area, the background will not be blurred, and the interface in the lock screen state can be clearly displayed under the password input area of the lock screen.
[0223] S721. The super wallpaper service responds to the lock screen unlocking instruction and generates a second playback instruction according to the configuration item, instructing the multimedia encoder / decoder to play the desktop animation.
[0224] It should be noted that if the terminal device is in the full-screen AOD mode, the second playback instruction is forwarded through the full-screen AOD module. If the terminal device is in the partial AOD mode, the super wallpaper service forwards the second playback instruction through the partial AOD module.
[0225] For example, currently in the partial AOD mode, the video file determined by the super wallpaper service is dark video_live_wallpaper.mp4, and the total number of frames is 188 frames. The configuration values of the relevant configuration items include: support_dark_mode is true (support for 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 playback instruction containing the relevant configuration items and instructs the multimedia encoder / decoder to play the video interval from the 154th frame (the frame after 51 * 3) to the 188th frame (the last frame of the video file) in darkvideo_live_wallpaper.mp4. This video interval is the desktop animation from the lock screen state to the desktop.
[0226] For another example, when the current is in the full-screen AOD mode, the super wallpaper service determines that the video file is fullAod_live_wallpaper.mp4, and the total number of frames is 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. Then, the super wallpaper service instructs the multimedia encoder / decoder to play the video interval from the 36th frame (the next frame after the 35th frame) to the 86th frame (the last frame of the video file) in fullAod_live_wallpaper.mp4. This video interval is the desktop animation from the locked screen state to the desktop.
[0227] 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 locked screen state and the animation from the locked screen state to the desktop.
[0228] For example, when the current is in the partial AOD mode, the video file determined by the super wallpaper service is dark video_live_wallpaper.mp4, and the total number of frames is 188. The configuration values of the relevant configuration items include: support_dark_mode is true (dark mode is supported), 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 screen-off picture is located at the first position at the top of the screen. Then, the super wallpaper service instructs the multimedia encoder / decoder to continuously play the video interval from the 1st frame to the 51st frame and from the 154th frame (the frame after 51 * 3) to the 188th frame (the last frame of the video file) in dark video_live_wallpaper.mp4. This video interval is the entire animation from the partial AOD mode to the desktop.
[0229] For another example, when the current is in the full-screen AOD mode, the super wallpaper service determines that the video file is fullAod_live_wallpaper.mp4 and the total number of frames is 86 frames. 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. Then the super wallpaper service instructs the multimedia encoder / decoder to continuously play the video segment from the 1st frame to the 86th frame (the last frame of the video file) in fullAod_live_wallpaper.mp4. This video segment is the entire animation from the full-screen AOD mode to the desktop.
[0230] Optionally, if the user performs a screen-off unlock operation when the device is in the full-screen AOD mode, the terminal device continuously plays the lock screen animation from the AOD state to the lock screen state and the desktop animation from the lock screen state to the desktop, without displaying a placeholder image. The terminal device continuously playing the lock screen animation from the AOD state to the lock screen state and the desktop animation from the lock screen state to the desktop can show a coherent unlocking process, improving the display effect and thus enhancing the user experience.
[0231] S722. The user performs a screen-off operation.
[0232] After using the terminal device, the user can click the power button to perform a screen-off operation.
[0233] S723. In response to the screen-off operation, the power manager generates a screen-off instruction.
[0234] S724. The power manager sends the screen-off instruction to the super wallpaper service through the wallpaper framework service.
[0235] S725. In response to the screen-off instruction, the super wallpaper service generates a third playback instruction according to the configuration item, instructing the multimedia encoder / decoder to play the screen-off animation.
[0236] It should be noted that if the terminal device is in the full-screen AOD mode, the third playback instruction is forwarded through the full-screen AOD module. If the terminal device is in the partial AOD mode, the super wallpaper service forwards the third playback instruction through the partial AOD module.
[0237] For example, the video file determined by the super wallpaper service is dark video_live_wallpaper.mp4, and the total number of frames is 188 frames. 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, aod_support_transition_animation is true. Currently, in the 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 segment) and from the 154th frame to the 188th frame in dark video_live_wallpaper.mp4, and play the video interval in a frame-by-frame extraction and reverse playback manner to form a screen-off animation. For example, when the frame extraction multiple is 2 times, the super wallpaper service generates a third playback instruction, instructing the media codec to play the 188th frame, the 186th frame, the 184th frame, the 182nd frame... until the 154th frame in dark video_live_wallpaper.mp4, and then play the 51st frame, the 49th frame, the 47th frame... until the first frame, and play them in sequence. Optionally, if support_frame_extraction is changed to false, the super wallpaper service generates a third playback instruction, instructing the media codec to play the 188th frame, the 187th frame, the 186th frame, the 185th frame... until the 154th frame in dark video_live_wallpaper.mp4, and then play the 51st frame, the 50th frame, the 49th frame... until the first frame, and play them frame by frame in reverse to form a screen-off animation.
[0238] For another example, the video file determined by the super wallpaper service is fullAod_live_wallpaper.mp4, and the total number of frames is 86. 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 the full-screen AOD mode, the super wallpaper service generates a third playback instruction, instructing the multimedia codec to play the video interval from the 1st frame to the 86th frame in fullAod_live_wallpaper.mp4, and play the video interval in reverse in the form of frame extraction to form the off-screen animation. For example, when the frame extraction multiple is 2 times, the media codec selects the 86th frame, 84th frame, 82nd frame, 80th frame... until the 2nd frame in fullAod_live_wallpaper.mp4 and plays them in sequence. Optionally, if support_frame_extraction is changed to false, the media codec selects the 86th frame, 85th frame, 84th frame, 83rd frame... until the 1st frame in fullAod_live_wallpaper.mp4 and plays them frame by frame in reverse to form the off-screen animation.
[0239] Optionally, based on the above embodiments, an effect of gradual brightness change can also be set for the off-screen animation in the full-screen AOD mode. During the playback of the off-screen animation, the screen brightness gradually darkens, approaching or being the same as the brightness of the full-screen AOD mode, making the display effect more coherent and improving the user experience. For example, the following steps after S726 can be included:
[0240] S726. The power manager sends the off-screen instruction to SystemUI.
[0241] S727. In response to the off-screen instruction, SystemUI obtains the brightness change interval.
[0242] During the playback of the off-screen animation, SystemUI can obtain the screen brightness in the lit state. Then, SystemUI determines the gradient of the brightness change based on the brightness change interval between the screen brightness in the current state and the target brightness value. This gradient of the brightness change can indicate that the screen gradually reduces the screen brightness. The target brightness value is lower than the screen brightness in the current state and is the same as or close to the brightness displayed in the full-screen AOD mode.
[0243] S728. The SystemUI instructs the screen brightness to gradually decrease according to the brightness change interval.
[0244] Based on this, during the process of playing the lock screen animation, the SystemUI gradually decreases the screen brightness according to the brightness change gradient to adapt to the lock screen animation scenario. After the lock screen animation is played, the screen brightness decreases to the target brightness value or approaches the target brightness value, which is the same as or close to the brightness displayed in the full-screen AOD mode, and there will be no obvious brightness jump. Moreover, during the process of playing the lock screen animation, the screen brightness gradually decreases according to the brightness change gradient, the display effect is coherent, and the brightness does not change significantly, improving the user experience.
[0245] In the embodiments of this application, for the same AOD state and system color mode, the display animations in different display stages (from the AOD state to the lock screen state, from the lock screen state to the desktop, and from the AOD state to the desktop) are set as a video file, and different 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, which is convenient for management. In addition, in the case of needing to modify the animation effect, it can be achieved by modifying the configuration value of the corresponding configuration item, without modifying the software code, and the operation is more convenient and fast.
[0246] Figure 11 The flowchart of a lock screen interface display method provided by the embodiments of this application is applied to an electronic device and includes:
[0247] S1101. Display the lock screen display setting interface, which includes a full-screen AOD control and a partial AOD control.
[0248] The above lock screen display setting interface can be referred to Figure 9 as shown in Figures c and d in it, which includes a full-screen AOD control and a partial AOD control. The full-screen AOD control and the partial AOD control also respectively correspond to their own preview images.
[0249] S1102. Through the lock screen display setting interface, receive the first operation performed by the user on the partial AOD control, and the first operation is used to switch the current AOD state from the full-screen AOD mode to the partial AOD mode.
[0250] If the current is the full-screen AOD mode, the user can click on the partial AOD control to perform the first operation to switch the full-screen AOD mode to the partial AOD mode. Optionally, the user can also click on the full-screen AOD control to switch the partial AOD mode to the full-screen AOD mode.
[0251] S1103. In response to the first operation, update the configuration value of the first configuration item from the first state value to the second state value. The first state value is used to represent that the full-screen AOD mode is in the enabled state, and the second state value is used to represent that the full-screen AOD mode is in the disabled state.
[0252] After the user switches the full-screen AOD mode to the partial AOD mode, the configuration value of the first configuration item is updated from the first state value to the second state value. Among them, the first configuration item can be enable_full_screen_AOD, which is used to represent whether the full-screen AOD mode is enabled. When the first configuration item is the first state value (true or 1), it represents that the full-screen AOD mode is enabled, and the terminal device turns on the full-screen AOD mode. When the first configuration item is the second state value (false or 0), it represents that the full-screen AOD mode is not enabled, and the terminal device turns off the full-screen AOD mode, for example, enters the partial AOD mode.
[0253] S1104. In response to the current configuration value of the first configuration item being the second state value, load the first resource corresponding to the partial AOD mode.
[0254] When the current configuration value of the first configuration item is the second state value, it means that the full-screen AOD mode is not enabled, and the terminal device enters the partial AOD mode. At this time, the terminal device needs to load the first resource corresponding to the partial AOD mode.
[0255] S1105. Receive the second operation performed by the user in the screen-on and unlocked state. The second operation is a screen-off operation.
[0256] S1106. In response to the second operation, play the first screen-off animation. The first screen-off animation is a resource in the first resource.
[0257] After the user switches the AOD state value and then performs a screen-off operation, the terminal device can respond to the screen-off operation and play the first screen-off animation in the first resource.
[0258] Optionally, the first resource corresponds to the partial AOD mode and the current color mode of the current system. For example, if the current color mode is the dark mode, the videos and pictures in the first resource are in the dark mode; if the current color mode is the light mode, the videos and pictures in the first resource are in the light mode.
[0259] S1107. After playing the first screen-off animation, in response to the current configuration value of the first configuration item being the second state value, enter the partial AOD mode. The last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode.
[0260] After the terminal device finishes playing the first screen-off animation, it enters the partial AOD mode. In the partial AOD mode, the screen-off interface corresponding to the partial AOD is displayed. The screen-off interface includes the screen-off picture corresponding to the partial AOD.
[0261] It should be noted that in the full-screen AOD mode, the area ratio of the screen-off picture is relatively large, so the number of illuminated pixel points on the screen is large. For example, all the pixel points of the screen can be illuminated to display the screen-off picture, or most of the pixel points (for example, exceeding the first preset ratio, such as 90%-100%) are illuminated. In the partial AOD mode, the screen-off picture is relatively small. In the partial AOD mode, the number of illuminated pixel points on the screen is small. For example, a small part of the screen can be illuminated to display the screen-off picture (for example, less than the second preset ratio, such as 20%) of the pixel points are illuminated.
[0262] In the embodiment of the present application, the user can switch the AOD state by performing an operation to switch the AOD state in the screen-off display setting interface. When the AOD state is switched from the full-screen AOD mode to the partial AOD mode, if the user performs a screen-off operation, the terminal device can play the first screen-off animation corresponding to the partial AOD mode.
[0263] It should be noted that the last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode, that is, the content displayed by the two is the same or similar. During the process of the terminal device switching from the last frame of the first screen-off animation to the partial AOD mode, the user will not feel an obvious jump in the interface, which improves the user experience. This method can change the state value of the first configuration item through user operations, thereby supporting the switching of different AOD states, with strong flexibility and being able to adapt to different needs of users.
[0264] In some embodiments, the specific manner of playing the first screen-off animation may include: obtaining a first video file, where the first video file is a video file in the first resource, and the first video file corresponds to the local AOD mode and the current color mode of the current system; in response to the second configuration item supporting the playing of the screen-off animation, determining a first interval to be played from the first video file according to the second configuration item (e.g., configuration item 12), the third configuration item (e.g., configuration item 10), the fourth configuration item (e.g., configuration item 11), the fifth configuration item (e.g., configuration item 3), the sixth configuration item (e.g., configuration item 8), the seventh configuration item (e.g., configuration item 9), and the eighth configuration item (e.g., configuration item 4). The arrangement order of multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the first video file. The first interval to be played includes a target local lock screen animation and a first desktop animation. The third configuration item indicates the number of multiple segments of local lock screen animations (multiple animations) in the first video file, and the multiple segments of local lock screen animations correspond to multiple display positions of the screen-off pictures in the local AOD mode. The fourth configuration item indicates the target local lock screen animation corresponding to the first screen-off animation, and the target local lock screen animation is one of the multiple segments of local lock screen animations. The fifth configuration item indicates the total number of frames of the multiple segments of local lock screen animations. The sixth configuration item indicates the total number of frames of the first segment of local lock screen animation among the multiple segments of local lock screen animations. The seventh configuration item indicates the total number of frames of the second segment of local lock screen animation among the multiple segments of local lock screen animations. The eighth configuration item indicates the total number of frames of the first desktop animation in the first video file. The second configuration item is used to indicate whether to support the playing of the screen-off animation, and the current configuration value of the second configuration item indicates support for playing the screen-off animation; the first segment of local 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, and the number of frames in the first video interval is the total number of frames of the first segment of local lock screen animation; the second segment of local lock screen 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 second segment of local lock screen animation; the multiple segments of local lock screen animations are the third video interval from the first frame to the fifth frame in the first video file, and the third video interval includes the first video interval and the second video interval, and the number of frames in the third video interval is the total number of frames of the multiple segments of local lock screen animations; the first desktop animation is the fourth video interval from the sixth frame to the seventh frame in the first video file, the sixth frame is the next frame of the fifth frame, and the number of frames in the fourth video interval is the total number of frames of the first desktop animation; in response to the current configuration value of the second configuration item being support for playing the screen-off animation, play the first screen-off animation according to the ninth configuration item (e.g., configuration item 7). The ninth configuration item is used to indicate whether to support frame extraction when playing the screen-off animation; when the current configuration value of the ninth configuration item is support for frame extraction when playing the screen-off animation, extract frames from the first interval to be played according to a preset frame extraction multiple to obtain a first frame extraction sequence; play the first screen-off animation by playing the first frame extraction sequence in reverse;Alternatively, in response to the current configuration value of the ninth configuration item indicating that frame extraction is not supported when playing the screen-off animation, the first to-be-played interval is played in reverse frame by frame to play the first screen-off animation, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the local AOD mode.
[0265] The above first video file includes multiple segments of local lock screen animations. In the first frame of each segment of local lock screen animation, the starting position of the animation is different, corresponding to different display positions of the screen-off pictures in different local AOD modes. During the screen-off process, the terminal device can, based on the above third to eighth configuration items, select one segment from the multiple segments of local lock screen animations as the target local lock screen animation, and then the first to-be-played interval of the first desktop animation. After that, the terminal device can play the first screen-off animation according to the instructions of the above configuration items. Specifically, when the current configuration value of the ninth configuration item indicates that frame extraction is supported when playing the first screen-off animation, the first to-be-played interval is played in reverse with frame extraction to play the first screen-off animation. If the current configuration value of the ninth configuration item indicates that frame extraction is not supported when playing the screen-off animation, the first to-be-played interval is played in reverse frame by frame to play the first screen-off animation.
[0266] Through the above configuration items, the playing area, method, and speed of the screen-off animation can be flexibly configured, and the usage scenarios are more diverse. Since the last frame of the first screen-off animation is associated with the screen-off picture displayed in the local AOD mode, and the two display the same or similar content, there is no obvious jump in the interface, enhancing the user experience.
[0267] In some embodiments, in the local AOD mode, the electronic device receives a third operation input by the user, and the third operation is used to turn on the screen of the electronic device; in response to the third operation, the electronic device enters the screen-on state and plays the first lock screen animation according to the sixth, seventh, eighth configuration items and the current display position of the screen-off picture in the local AOD mode. The first lock screen animation is one of the multiple segments of local lock screen animations, and the first frame in the first lock screen animation is associated with the current display position; after playing the first lock screen animation, it enters the first screen-on lock screen state; in the first screen-on lock screen state, the 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.
[0268] In the local AOD mode, if the user clicks the power button to perform the third operation, the terminal device can, according to the ninth, tenth, eleventh configuration items and the current display position of the screen-off picture in the local AOD mode, determine the segment with the starting position and the current display position closest to each other from the multiple segments of local lock screen animations as the first lock screen animation for playing. Since the background image of the first lock screen interface is the last frame of the first lock screen animation, there is no obvious jump in the interface during the unlocking process, enhancing the user experience.
[0269] In some embodiments, when the terminal device is in the first screen-on and locked state, it receives a fourth operation input by the user, and the fourth operation is used to unlock the screen of the electronic device; in response to the fourth operation, it plays a first desktop animation according to the fifth configuration item and the eighth configuration item; after playing the first desktop animation, it displays a first desktop, and the background image of the first desktop is the seventh frame.
[0270] In the first screen-on and locked state, when the terminal device receives a fourth operation input by the user, such as an unlocking operation of inputting a fingerprint to unlock, the electronic device can play the first desktop animation indicated by the eighth configuration item and the eleventh configuration item and enter the first desktop. Since the background image of the first desktop is the last frame (the seventh frame) of the first video file, the display effect is coherent, improving the user experience.
[0271] In some embodiments, in the partial AOD mode, it receives a fifth operation input by the user, and 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 state and sequentially plays a first lock screen animation and a first desktop animation according to the sixth configuration item, the seventh configuration item, the eighth configuration item, and the current display position of the off-screen image in the partial AOD mode. The first lock screen animation is one of multiple partial lock screen animations in the first video file. The first video file is a resource in the first resource. The multiple partial lock screen animations correspond to multiple display positions of the off-screen image in the partial AOD mode. The first frame in the first lock screen animation is associated with the current display position. The sixth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations. The seventh configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations. The eighth configuration item indicates the total number of frames of the first desktop animation in the first video file; after playing the first desktop animation, it displays a first desktop, and the background image of the first desktop is the seventh frame.
[0272] When the user directly performs the fifth operation to unlock the screen in the partial AOD mode, such as inputting a fingerprint in the AOD mode, the terminal device determines the partial lock screen animation closest to the starting position of the current display position according to the current display position of the off-screen image in the partial AOD mode, and then sequentially plays the segment of the partial lock screen animation and the first desktop animation to enter the first desktop. This can make the display effect coherent when entering the desktop from the AOD state and prevent interface jumps, improving the user experience.
[0273] Figure 12 The following is a flowchart of another off-screen interface display method provided by the embodiments of the present application. The method includes:
[0274] S1201. Receive a sixth operation input by the user, and the sixth operation is used to enter the off-screen display setting interface.
[0275] S1202. In response to the sixth operation, display the screen-off display settings interface.
[0276] S1203. Through the screen-off display settings interface, receive the seventh operation performed by the user on the full-screen AOD control, and the seventh operation is used to switch the current AOD state from the partial AOD mode to the full-screen AOD mode.
[0277] S1204. In response to the seventh operation, update the configuration value of the first configuration item from the second state value to the first state value.
[0278] When the user performs the sixth operation to enter the screen-off display settings interface and clicks the full-screen AOD control to perform the seventh operation, the terminal device responds to the seventh operation of switching the AOD state and switches from the partial AOD mode to the full-screen AOD mode. Specifically, the terminal device updates the configuration value of the first configuration item from the second state value to the first state value, thereby switching from the partial AOD mode to the full-screen AOD mode.
[0279] S1205. In response to the current configuration value of the first configuration item being the first state value, load the second resource corresponding to the full-screen AOD mode.
[0280] When the current configuration value of the first configuration item is the first state value, it indicates that the full-screen AOD mode is enabled, and the terminal device enters the full-screen AOD mode. At this time, the terminal device needs to load the second resource corresponding to the full-screen AOD mode.
[0281] S1206. Receive the eighth operation performed by the user in the screen-on and unlocked state, and the eighth operation is a screen-off operation.
[0282] S1207. In response to the eighth operation, play the second screen-off animation according to the current configuration value of the second configuration item, and the second screen-off animation is a resource in the second resource.
[0283] After the user switches the AOD state value and performs a screen-off operation, the terminal device can respond to the screen-off operation and play the second screen-off animation in the second resource.
[0284] Optionally, the second resource corresponds to the full-screen AOD mode and the current color mode of the current system. For example, if the current color mode is the dark mode, the videos and pictures in the second resource are in the dark mode; if the current color mode is the light mode, the videos and pictures in the second resource are in the light mode.
[0285] S1208. After playing the second screen-off animation, in response to the current configuration value of the first configuration item being the first status value, enter the full-screen AOD mode. The last frame of the second screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode. Among them, in the full-screen AOD mode, the proportion of the number of the first pixel points in all the pixel points of the screen of the electronic device exceeds the first preset ratio, and the first pixel points are the pixel points lit on the screen; in the partial AOD mode, the proportion of the number of the first pixel points in all the pixel points of the screen of the electronic device is less than the second preset ratio, and the second preset ratio is less than the first preset ratio.
[0286] After the terminal device plays the second screen-off animation, it enters the full-screen AOD mode. In the full-screen AOD mode, the screen-off interface corresponding to the full-screen AOD is displayed. The screen-off interface includes the screen-off picture corresponding to the full-screen AOD.
[0287] The user can switch the AOD state by performing an operation to switch the AOD state in the screen-off display settings interface. When the AOD state is switched from the partial AOD mode to the full-screen AOD mode, if the user performs a screen-off operation, the terminal device can play the second screen-off animation corresponding to the full-screen AOD mode.
[0288] It should be noted that the last frame of the second 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. During the process of the terminal device switching from the last frame of the second screen-off animation to the full-screen AOD mode, the user will not feel an obvious jump in the interface, improving the user experience. This method can change the status value of the first configuration item through user operations, thereby supporting the switching of different AOD states, with strong flexibility and being able to adapt to different needs of users.
[0289] In some embodiments, the manner of playing the second screen-off animation according to the current configuration value of the second configuration item may further include: obtaining a second video file, where the second video file is a resource in the first resource, and the second video file corresponds to the full-screen AOD mode and the current color mode of the current system; 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. 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 to support frame extraction when playing the screen-off animation, extract frames from the second video file according to a preset frame extraction multiple to obtain a second frame extraction sequence, and the arrangement order of the multiple video frames in the second frame extraction sequence is the same as the arrangement order of the multiple video frames in the second video file; play the second frame extraction sequence in reverse to play the second 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, play the video frames in the second video file frame by frame in reverse to play the second screen-off animation.
[0290] The terminal device can search for the corresponding second video file from the second resource package according to the current color mode of the current system and the full-screen AOD mode. If the current color mode is the dark mode, the second video file is the video file in the dark mode; if the current color mode is the light mode, the second video file is the video file in the light mode. If the current AOD state is the full-screen AOD mode, the second video file is the video file for full-screen display.
[0291] 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, the second video file can be frame-extracted and played in reverse at a preset frame extraction multiple to play the second screen-off animation.
[0292] 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 second video file, and the video frames in the second video file are played in reverse frame by frame to play the second screen-off animation.
[0293] Through the above second configuration item and third configuration item, the playing method and speed of the screen-off animation can be flexibly configured, and the usage scenarios are richer.
[0294] In some embodiments, in the full-screen AOD mode, the terminal device also receives a ninth operation input by the user, and the ninth operation is used to turn on the screen of the electronic device; in response to the ninth operation, the electronic device enters the lit screen state and plays the first lock screen animation according to the tenth configuration item, and the tenth configuration item is used to indicate the total number of frames of the second lock screen animation, and the second lock screen animation is the fifth video interval from the eighth frame to the ninth frame in the second video file, the eighth frame is the first frame of the second video file, and the number of frames in the second video interval is the total number of frames of the second lock screen animation; after playing the second lock screen animation, it enters the second lit screen and lock screen state; in the second lit screen and 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.
[0295] In the full-screen AOD mode, the user performs the ninth operation such as clicking the power button to turn on the screen. The electronic device enters the lit screen state in response to the ninth operation of turning on the screen. At this time, no password is input for the ninth operation, and the electronic device will not be unlocked. Instead, it plays the fifth video interval from the eighth frame to the ninth frame in the second video file according to the total number of frames of the second lock screen animation indicated by the tenth configuration item, so as to play the second lock screen animation. In the second lit screen and lock screen state, the electronic device displays the second lock screen interface. Among them, the background image of the second lock screen interface is the last frame (the ninth frame) of the second lock screen animation, which can make the process of entering the lock screen interface from the full-screen AOD state display a coherent animation without interface jumps, improving the user experience.
[0296] In some embodiments, in the second bright screen lock screen state, a tenth operation input by the user is received, and the tenth operation is used to unlock the screen of the electronic device; in response to the tenth operation, a second desktop animation is played according to a tenth configuration item and an eleventh configuration item, and the eleventh configuration item indicates the total number of frames of the second desktop animation. The second desktop animation is a second video segment from the tenth frame to the eleventh frame in a second video file. The tenth frame is the next frame of the ninth frame, and the number of frames in the second video segment is the total number of frames of the second desktop animation; after playing the second desktop animation, a second desktop is displayed, and the background image of the second desktop is the eleventh frame.
[0297] If the user receives the tenth operation to unlock the electronic device in the second bright screen lock screen state, a second desktop animation can be played to enter the desktop. Specifically, the electronic device can play a second video segment between the next frame of the ninth frame indicated by the tenth configuration item and the eleventh frame indicated by the eleventh configuration item to play the second desktop animation. Since the background image of the second desktop is the eleventh frame, the display effect from the lock screen interface to the desktop can be made coherent without interface jumps, improving the user experience.
[0298] In some embodiments, in the full-screen AOD mode, an eleventh operation input by the user is received, and the eleventh operation is used to unlock the screen of the electronic device; in response to the eleventh operation, the electronic device enters the bright screen unlocking state and plays a second video file according to a tenth configuration item and an eleventh configuration item. The second video file includes a second lock screen animation and a second desktop animation. The tenth configuration item is used to indicate the total number of frames of the second lock screen animation, and the tenth configuration item is used to indicate the total number of frames of the second lock screen animation. The second lock screen animation is a fifth video segment from the eighth frame to the ninth frame in the second video file. The eighth frame is the first frame of the first video file, and the number of frames in the second video segment is the total number of frames of the second lock screen animation. The tenth configuration item indicates the total number of frames of the second desktop animation. The second desktop animation is a 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; after playing the second video file, a second desktop is displayed, and the background image of the second desktop is the eleventh frame.
[0299] The user can also directly perform the eleventh operation to unlock the screen in the full-screen AOD mode. For example, touch the fingerprint spot displayed in the AOD mode to input a fingerprint for unlocking, then the terminal device can continuously play the above-mentioned second lock screen animation and second desktop animation to enter the desktop, and the display effect of this process is coherent. Since the background image of the second desktop is the eleventh frame, the display effect from the lock screen interface to the desktop can be made coherent. And since the background image of the second desktop is the eleventh frame, the display effect from the lock screen interface to the desktop can be made coherent without interface jumps, improving the user experience.
[0300] In some embodiments, before displaying the screen-off display settings interface, the following steps are included: receiving a twelfth operation input by a user, where the twelfth operation is used to select a first theme; in response to the twelfth operation, selecting the first theme, where the first theme corresponds to a first configuration file and a first resource package, and the first resource package at least includes a first resource and a second resource, and the first configuration file includes a first configuration item, a second configuration item, a third configuration item, a fourth configuration item, a fifth configuration item, a sixth configuration item, a seventh configuration item, an eighth configuration item, a ninth configuration item, a tenth configuration item, an eleventh configuration item, and a twelfth configuration item, and the twelfth configuration item is used to indicate whether the first theme supports the full-screen AOD mode.
[0301] Optionally, the first resource package is the resource package corresponding to the first theme. The first theme may be a super wallpaper theme. The first configuration file is a file in xml format, for example, named livepaper.xml.
[0302] The above has introduced in detail the examples of the method provided by this application. It can be understood that for the corresponding device to implement the above functions, it includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed in this article, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0303] This application can perform a functional module division on the screen-off interface display device according to the above method examples. For example, each function can be divided into each functional module, or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in this application is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0304] Figure 13 The structural schematic diagram of a screen-off interface display device provided by this application is shown. The device 1300 includes:
[0305] A display module 1301, configured to display a screen-off display settings interface, where the screen-off display settings interface includes a full-screen AOD control and a partial AOD control.
[0306] A receiving module 1302, configured to receive, through a screen-off display setting interface, a first operation performed by a user on a partial AOD control, where the first operation is used to switch the current AOD state from a full-screen AOD mode to a partial AOD mode;
[0307] A processing module 1303, configured to, in response to the first operation, update a configuration value of a first configuration item from a first state value to a second state value, and in response to the current configuration value of the first configuration item being the second state value, load a first resource corresponding to the partial AOD mode, where the first state value is used to indicate that the full-screen AOD mode is an enabled state, and the second state value is used to indicate that the full-screen AOD mode is a disabled state.
[0308] The receiving module 1302 is further configured to receive a second operation performed by the user in a screen-on unlocked state, where the second operation is a screen-off operation.
[0309] The processing module 1303 is further configured to, in response to the second operation, play a first screen-off animation, and after playing the first screen-off animation, in response to the current configuration value of the first configuration item being the second state value, enter the partial AOD mode, where the first screen-off animation is a resource in the first resource, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode.
[0310] In some embodiments, the processing module 1303 is specifically configured to obtain a first video file, where the first video file is a video file in the first resource, and the first video file corresponds to the partial AOD mode and the current color mode of the current system;
[0311] The processing module 1303 is specifically configured to, in response to the second configuration item supporting the playback of the screen-off animation, determine a first interval to be played from the first video file according to the second configuration item, the third configuration item, the fourth configuration item, the fifth configuration item, the sixth configuration item, the seventh configuration item, and the eighth configuration item. The arrangement order of multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the first video file. The first interval to be played includes a target partial lock screen animation and a first desktop animation. The third configuration item indicates the number of multiple partial lock screen animations in the first video file. The multiple partial lock screen animations correspond to multiple display positions of the screen-off pictures in the partial AOD mode. The fourth configuration item indicates the target partial lock screen animation corresponding to the first screen-off animation. The target partial lock screen animation is one of the multiple partial lock screen animations. The fifth configuration item indicates the total number of frames of the multiple partial lock screen animations. The sixth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations. The seventh configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations. The eighth configuration item indicates the total number of frames of the first desktop animation in the first video file. The second configuration item is used to indicate whether to support the playback of the screen-off animation. The current configuration value of the second configuration item indicates support for the playback of the screen-off animation. The first partial 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 partial lock screen animation. The second partial lock screen 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 second partial lock screen animation. The multiple partial lock screen animations are the third video interval from the first frame to the fifth frame in the first video file. The third video interval includes the first video interval and the second video interval. The number of frames in the third video interval is the total number of frames of the multiple partial lock screen animations. The first desktop animation is the fourth video interval from the sixth frame to the seventh frame in the first video file. The sixth frame is the next frame of the fifth frame. The number of frames in the fourth video interval is the total number of frames of the first desktop animation.
[0312] The processing module 1303 is specifically configured to, in response to the current configuration value of the ninth configuration item being support for frame extraction during the playback of the screen-off animation, play the first screen-off animation according to the ninth configuration item. The ninth configuration item is used to indicate whether frame extraction is supported during the playback of the screen-off animation. When the current configuration value of the ninth configuration item is support for frame extraction during the playback of the screen-off animation, frame extraction is performed on the first interval to be played according to a preset frame extraction multiple to obtain a first frame extraction sequence. The first frame extraction sequence is played in reverse to play the first screen-off animation. Or,
[0313] The processing module 1303 is specifically configured to, in response to the current configuration value of the ninth configuration item being no support for frame extraction during the playback of the screen-off animation, play the first screen-off animation by playing the first interval to be played frame by frame in reverse. The last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode.
[0314] In some embodiments, the receiving module 1302 is further configured to receive a third operation input by a user in the local AOD mode, where the third operation is used to turn on the screen of the electronic device.
[0315] The processing module 1303 is further configured to, in response to the third operation, cause the electronic device to enter the screen-on state, and play a first lock screen animation according to the current display positions of the sixth configuration item, the seventh configuration item, the eighth configuration item, and the screen-off picture in the local AOD mode. The first lock screen animation is one of multiple segments of local lock screen animations, and the first frame in the first lock screen animation is associated with the current display position.
[0316] The processing module 1303 is further configured to enter the first screen-on and locked state after playing the first lock screen animation.
[0317] The display module 1301 is further configured to display a first lock screen interface in the first screen-on and locked state, where the background image of the first lock screen interface is the last frame of the first lock screen animation.
[0318] In some embodiments, the receiving module 1302 is further configured to receive a fourth operation input by a user in the first screen-on and locked state, where the fourth operation is used to unlock the screen of the electronic device.
[0319] The processing module 1303 is further configured to play a first desktop animation according to the fifth configuration item and the eighth configuration item in response to the fourth operation.
[0320] The display module 1301 is further configured to display a first desktop after playing the first desktop animation, where the background image of the first desktop is the seventh frame.
[0321] In some embodiments, the method further includes:
[0322] Receiving a fifth operation input by a user in the local AOD mode, where the fifth operation is used to unlock the screen of the electronic device;
[0323] In response to the fifth operation, the electronic device enters the screen-on state, and sequentially plays a first lock screen animation and a first desktop animation according to the current display positions of the sixth configuration item, the seventh configuration item, the eighth configuration item, and the screen-off picture in the local AOD mode. The first lock screen animation is one of multiple segments of local lock screen animations in a first video file, the first video file is a resource in a first resource, the multiple segments of local lock screen animations correspond to multiple display positions of the screen-off picture in the local AOD mode, the first frame in the first lock screen animation is associated with the current display position, the sixth configuration item indicates the total number of frames of the first segment of local lock screen animation among the multiple segments of local lock screen animations, the seventh configuration item indicates the total number of frames of the second segment of local lock screen animation among the multiple segments of local lock screen animations, and the eighth configuration item indicates the total number of frames of the first desktop animation in the first video file;
[0324] After playing the first desktop animation, the first desktop is displayed, and the background image of the first desktop is the seventh frame.
[0325] In some embodiments, the receiving module 1302 is further configured to receive a sixth operation input by the user, and the sixth operation is used to enter the always-on display settings interface.
[0326] The processing module 1303 is further configured to display the always-on display settings interface in response to the sixth operation.
[0327] The receiving module 1302 is further configured to receive, through the always-on display settings interface, a seventh operation performed by the user on the full-screen AOD control, and the seventh operation is used to switch the current AOD state from the partial AOD mode to the full-screen AOD mode.
[0328] The processing module 1303 is further configured to update the configuration value of the first configuration item from the second state value to the first state value in response to the seventh operation.
[0329] The processing module 1303 is further configured to load the second resource corresponding to the full-screen AOD mode in response to the current configuration value of the first configuration item being the first state value.
[0330] The receiving module 1302 is further configured to receive an eighth operation performed by the user in the screen-on and unlocked state, and the eighth operation is a screen-off operation.
[0331] The processing module 1303 is further configured to play a second screen-off animation according to the current configuration value of the second configuration item in response to the eighth operation, and the second screen-off animation is a resource in the second resource.
[0332] The processing module 1303 is further configured to enter the full-screen AOD mode after playing the second screen-off animation in response to the current configuration value of the first configuration item being the first state value. The last frame of the second screen-off animation is associated with the always-on display picture displayed in the full-screen AOD mode; wherein, in the full-screen AOD mode, the proportion of the number of first pixels in all the pixels of the screen of the electronic device exceeds a first preset ratio, and the first pixels are the lit pixels on the screen; in the partial AOD mode, the proportion of the number of first pixels in all the pixels of 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.
[0333] In some embodiments, the processing module 1303 is further configured to obtain a second video file, where the second video file is a resource in the first resource, and the second video file corresponds to the full-screen AOD mode and the 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, play the second screen-off animation according to the third configuration item, where 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 support for frame extraction when playing the screen-off animation, extract frames from the second video file according to a preset frame extraction multiple to obtain a second frame extraction sequence, and the arrangement order of the multiple video frames in the second frame extraction sequence is the same as the arrangement order of the multiple video frames in the second video file; play the second screen-off animation in reverse order of the second frame extraction sequence; or, when the current configuration value of the third configuration item is not support for frame extraction when playing the screen-off animation, play the video frames in the second video file frame by frame in reverse order to play the second screen-off animation.
[0334] In some embodiments, the receiving module 1302 is further configured to receive a ninth operation input by the user in the full-screen AOD mode, where the ninth operation is used to turn on the screen of the electronic device.
[0335] The processing module 1303 is further configured to, in response to the ninth operation, the electronic device enters the screen-on state and play the first lock screen animation according to the tenth configuration item, where the tenth configuration item is used to indicate the total number of frames of the second lock screen animation, and the second lock screen animation is the fifth video interval from the eighth frame to the ninth frame in the second video file, the eighth frame is the first frame of the second video file, and the number of frames in the second video interval is the total number of frames of the second lock screen animation.
[0336] The processing module 1303 is further configured to enter the second screen-on and lock screen state after playing the second lock screen animation.
[0337] The display module 1301 is further configured to display a second lock screen interface in the second screen-on and lock screen state, and the background image of the second lock screen interface is the last frame of the second lock screen animation.
[0338] In some embodiments, the receiving module 1302 is further configured to receive a tenth operation input by the user in the second screen-on and lock screen state, where the tenth operation is used to unlock the screen of the electronic device.
[0339] The processing module 1303 is further configured to, in response to the tenth operation, play a second desktop animation according to the tenth configuration item and the eleventh configuration item, where the eleventh configuration item indicates the total number of frames of the second desktop animation, and the second desktop animation is the second 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 second video interval is the total number of frames of the second desktop animation.
[0340] The display module 1301 is further configured to display the second desktop after playing the second desktop animation, and the background image of the second desktop is the eleventh frame.
[0341] In some embodiments, the receiving module 1302 is further configured to receive an eleventh operation input by the user in the full-screen AOD mode, and the eleventh operation is used to unlock the screen of the electronic device.
[0342] The processing module 1303 is further configured to, in response to the eleventh operation, the electronic device enters the screen-on unlocking state and plays the second video file according to the tenth configuration item and the eleventh configuration item. The second video file includes a second lock screen animation and a second desktop animation. The tenth configuration item is used to indicate the total number of frames of the second lock screen animation. The tenth configuration item is used to indicate the total number of frames of the second lock screen animation. The second lock screen animation is the fifth video interval from the eighth frame to the ninth frame in the second video file. The eighth frame is the first frame of the first video file. The number of frames in the second video interval is the total number of frames of the second lock screen animation. The tenth configuration item indicates the total number of frames of the second desktop 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. The number of frames in the sixth video interval is the total number of frames of the second desktop animation.
[0343] The display module 1301 is further configured to display the second desktop after playing the second video file, and the background image of the second desktop is the eleventh frame.
[0344] In some embodiments, the receiving module 1302 is further configured to receive a twelfth operation input by the user before displaying the always-on display setting interface, and the twelfth operation is used to select the first theme.
[0345] The processing module 1303 is further configured to, in response to the twelfth operation, select the first theme. The first theme corresponds to a first configuration file and a first resource package. The first resource package includes at least a first resource and a second resource. The first configuration file includes a first configuration item, a second configuration item, a third configuration item, a fourth configuration item, a fifth configuration item, a sixth configuration item, a seventh configuration item, an eighth configuration item, a ninth configuration item, a tenth configuration item, an eleventh configuration item, and a twelfth configuration item. The twelfth configuration item is used to indicate whether the first theme supports the full-screen AOD mode.
[0346] For the specific manner in which the apparatus 1300 executes the always-on display interface display method and the beneficial effects produced, reference may be made to the relevant descriptions in the method embodiments, which will not be elaborated here.
[0347] An embodiment of the present application further provides an electronic device, including the above-mentioned processor. The electronic device provided in this embodiment may be Figure 1The terminal device 100 shown is used to execute the above-mentioned screen-off interface display method. In the case of adopting integrated units, 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 in executing 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 in storing program codes and data, etc. The communication module can be used to support the communication between the terminal device and other devices.
[0348] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure of the present application. The processor can also be a combination that realizes computing functions, such as a combination including one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, and so on. The storage module can be a memory. The communication module can specifically be a device for interacting with other terminal devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0349] In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in this embodiment can be a device with Figure 1 the structure shown.
[0350] The 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 is caused to execute the screen-off interface display method described in any one of the above embodiments.
[0351] The embodiment of the present application also provides a computer program product. When the computer program product runs on a computer, the computer is caused to execute the above-related steps to implement the screen-off interface display method in the above embodiments.
[0352] Among them, the electronic device, the computer-readable storage medium, the computer program product, or the chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0353] In several embodiments provided in the present 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 illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, indirect couplings or communication connections of devices or units. The replaced units may or may not be physically separated. The components displayed as units can be one physical unit or multiple physical units, that is, they can be located in one place or distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0354] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0355] 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 such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods in the various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.
[0356] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for displaying a screen-off interface, characterized in that, Applied to an electronic device, the method includes: Displaying a screen-off display setting interface, where the screen-off display setting interface includes a full-screen AOD control and a partial AOD control; Receiving, through the screen-off display setting interface, a first operation performed by a user on the partial AOD control, where the first operation is used to switch the current AOD state from the full-screen AOD mode to the partial AOD mode; In response to the first operation, updating the configuration value of a first configuration item from a first state value to a second state value, where the first state value is used to represent that the full-screen AOD mode is in an enabled state, and the second state value is used to represent that the full-screen AOD mode is in a disabled state; In response to the current configuration value of the first configuration item being the second state value, loading the first resources corresponding to the partial AOD mode; Receiving a second operation performed by the user in the screen-on and unlocked state, where the second operation is a screen-off operation; In response to the second operation, playing a first screen-off animation, where the first screen-off animation is a resource in the first resources; After playing the first screen-off animation, in response to the current configuration value of the first configuration item being the second state value, entering the partial AOD mode, where the last frame of the first screen-off animation is associated with the screen-off picture displayed in the partial AOD mode.
2. The method according to claim 1, characterized in that, The playing of the first screen-off animation includes: Obtaining a first video file, where the first video file is a video file in the first resources, and the first video file corresponds to the partial AOD mode and the current color mode of the current system; In response to a second configuration item supporting the playing of the screen-off animation, determining a first playback interval from the first video file according to the second configuration item, the third configuration item, the fourth configuration item, the fifth configuration item, the sixth configuration item, the seventh configuration item, and the eighth configuration item, where the arrangement order of multiple video frames in the first playback interval is the same as the arrangement order of the multiple video frames in the first video file, the first playback interval includes a target partial lock screen animation and a first desktop animation, the third configuration item indicates the number of multiple segments of partial lock screen animations in the first video file, the multiple segments of partial lock screen animations correspond to multiple display positions of the screen-off picture in the partial AOD mode, the fourth configuration item indicates the target partial lock screen animation corresponding to the first screen-off animation, the target partial lock screen animation is one of the multiple segments of partial lock screen animations, the fifth configuration item indicates the total number of frames of the multiple segments of partial lock screen animations, the sixth 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 seventh 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 eighth configuration item indicates the total number of frames of the first desktop animation in the first video file, the second configuration item is used to indicate whether the screen-off animation is supported, and the current configuration value of the second configuration item indicates that the screen-off animation is supported; The first partial lock screen animation is the first video segment in the first video file from the first frame to the second frame, where the first frame is the first frame of the first video file, and the number of frames in the first video segment is the total number of frames of the first partial lock screen animation; The second partial lock screen animation is the second video segment in the first video file from the third frame to the fourth frame, where the third frame is the next frame after the second frame, and the number of frames in the second video segment is the total number of frames of the second partial lock screen animation; The multiple partial lock screen animations are the third video segment in the first video file from the first frame to the fifth frame, where the third video segment includes the first video segment and the second video segment, and the number of frames in the third video segment is the total number of frames of the multiple partial lock screen animations; The first home screen animation is the fourth video segment in the first video file from the sixth frame to the seventh frame, where the sixth frame is the next frame after the fifth frame, and the number of frames in the fourth video segment is the total number of frames of the first home screen animation; In response to the current configuration value of the second configuration item being to support playing the screen-off animation, play the first screen-off animation according to the ninth configuration item, where the ninth configuration item is used to indicate whether frame extraction is supported when playing the screen-off animation; When the current configuration value of the ninth configuration item is that frame extraction is supported when playing the screen-off animation, extract frames from the first interval to be played according to a preset frame extraction multiple to obtain a first frame extraction sequence; Play the first screen-off animation in reverse order by playing the first frame extraction sequence; Or, In response to the current configuration value of the ninth configuration item being that frame extraction is not supported when playing the screen-off animation, play the first interval to be played frame by frame in reverse order to play the first screen-off animation, where the last frame of the first screen-off animation is associated with the screen-off picture displayed in the local AOD mode.
3. The method according to claim 2, characterized in that The method further includes: In the local AOD mode, receive a third operation input by the user, where the third operation is used to turn on the screen of the electronic device; In response to the third operation, the electronic device enters the screen-on state and plays a first lock screen animation according to the sixth configuration item, the seventh configuration item, the eighth configuration item, and the current display position of the screen-off picture in the local AOD mode. The first lock screen animation is one of the multiple partial lock screen animations, and the first frame in the first lock screen animation is associated with the current display position; After playing the first lock screen animation, enter the first screen-on and locked state; In the first screen-on and locked state, display a first lock screen interface, where the background picture of the first lock screen interface is the last frame of the first lock screen animation.
4. 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 the first home screen animation according to the fifth configuration item and the eighth configuration item; After playing the first home screen animation, display a first home screen, where the background picture of the first home screen is the seventh frame.
5. The method according to claim 2, wherein The method further includes: In the local AOD mode, a fifth operation input by the user is received, and 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 state, and sequentially plays a first lock screen animation and a first desktop animation according to the current display positions of the sixth configuration item, the seventh configuration item, the eighth configuration item, and the off-screen picture in the local AOD mode. The first lock screen animation is one of multiple segments of local lock screen animations in a first video file, the first video file is a resource in the first resource, the multiple segments of local lock screen animations correspond to multiple display positions of the off-screen picture in the local AOD mode, the first frame in the first lock screen animation is associated with the current display position, the sixth configuration item indicates the total number of frames of the first segment of local lock screen animation among the multiple segments of local lock screen animations, the seventh configuration item indicates the total number of frames of the second segment of local lock screen animation among the multiple segments of local lock screen animations, and the eighth configuration item indicates the total number of frames of the first desktop animation in the first video file; After playing the first desktop animation, a first desktop is displayed, and the background picture of the first desktop is the seventh frame.
6. The method according to claim 4 or 5, characterized in that, The method further includes: Receiving a sixth operation input by the user, where the sixth operation is used to enter the off-screen display setting interface; In response to the sixth operation, the off-screen display setting interface is displayed; Through the off-screen display setting interface, a seventh operation performed by the user on the full-screen AOD control is received, and the seventh operation is used to switch the current AOD state from the local AOD mode to the full-screen AOD mode; In response to the seventh operation, the configuration value of the first configuration item is updated from the second state value to the first state value; In response to the current configuration value of the first configuration item being the first state value, the second resource corresponding to the full-screen AOD mode is loaded; Receiving an eighth operation performed by the user in the screen-on and unlocked state, where the eighth operation is a screen-off operation; In response to the eighth operation, a second screen-off animation is played according to the current configuration value of the second configuration item, and the second screen-off animation is a resource in the second resource; After playing the second screen-off animation, in response to the current configuration value of the first configuration item being the first state value, the full-screen AOD mode is entered, and the last frame of the second screen-off animation is associated with the off-screen 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; in the local AOD mode, the proportion of the number of first pixel points in all pixel points of 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.
7. The method according to claim 6, wherein The playing of the second screen-off animation according to the current configuration value of the second configuration item includes: Obtain a second video file, where the second video file is a resource in the first resource, and the second video file corresponds to the full-screen AOD mode and the current color mode of the current system; 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. 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 to support frame extraction when playing the screen-off animation, extract frames from the second video file according to a preset frame extraction multiple to obtain a second frame extraction sequence. The arrangement order of the multiple video frames in the second frame extraction sequence is the same as the arrangement order of the multiple video frames in the second video file; Play the second screen-off animation by playing the second frame extraction sequence in reverse; Or, When the current configuration value of the third configuration item is not to support frame extraction when playing the screen-off animation, play the video frames in the second video file frame by frame in reverse to play the second screen-off animation.
8. The method according to claim 7, characterized in that, The method further includes: In the full-screen AOD mode, receive a ninth operation input by the user, where the ninth operation is used to turn on the screen of the electronic device; In response to the ninth operation, the electronic device enters the screen-on state and plays a first lock screen animation according to the tenth configuration item. The tenth configuration item is used to indicate the total number of frames of the second lock screen animation. The second lock screen animation is the fifth video interval in the second video file from the eighth frame to the ninth frame. The eighth frame is the first frame of the second video file, and the number of frames in the second video interval is the total number of frames of the second lock screen animation; After playing the second lock screen animation, enter the second screen-on lock screen state; In the second screen-on lock screen state, display a second lock screen interface, and the background image of the second lock screen interface is the last frame of the second lock screen animation.
9. The method according to claim 8, wherein The method further includes: In the second screen-on lock screen state, receive a tenth operation input by the user, where the tenth operation is used to unlock the screen of the electronic device; In response to the tenth operation, play a second desktop animation according to the tenth configuration item and the eleventh configuration item. The eleventh configuration item indicates the total number of frames of the second desktop animation. The second desktop animation is the second video interval in the second video file from the tenth frame to the eleventh frame. The tenth frame is the next frame of the ninth frame, and the number of frames in the second video interval is the total number of frames of the second desktop animation; After playing the second desktop animation, display a second desktop, and the background image of the second desktop is the eleventh frame.
10. The method according to claim 7, wherein The method further includes: In the full-screen AOD mode, receive an eleventh operation input by the user, where the eleventh operation is used to unlock the screen of the electronic device; In response to the eleventh operation, the electronic device enters the screen-on and unlocked state, and plays the second video file according to the tenth configuration item and the eleventh configuration item. The second video file includes a second lock screen animation and a second desktop animation. The tenth configuration item is used to indicate the total number of frames of the second lock screen animation. The second lock screen animation is the fifth video segment in the second video file from the eighth frame to the ninth frame. The eighth frame is the first frame of the first video file. The number of frames in the second video segment is the total number of frames of the second lock screen animation. The tenth configuration item indicates the total number of frames of the second desktop animation. The second desktop animation is the sixth video segment in the second video file from the tenth frame to the eleventh frame. The tenth frame is the next frame after the ninth frame. The number of frames in the sixth video segment is the total number of frames of the second desktop animation; After playing the second video file, the second desktop is displayed, and the background image of the second desktop is the eleventh frame.
11. The method according to claim 9 or 10, characterized in that, Before displaying the always-on display settings interface, it includes: Receiving a twelfth operation input by the user, where the twelfth operation is used to select the first theme; In response to the twelfth operation, the first theme is selected. The first theme corresponds to a first configuration file and a first resource package. The first resource package at least includes the first resource and the second resource. The first configuration file includes the first configuration item, the second configuration item, the third configuration item, the fourth configuration item, the fifth configuration item, the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the twelfth configuration item. The twelfth configuration item is used to indicate whether the first theme supports the full-screen AOD mode.
12. An electronic device, characterized in that, It includes: 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 executes the method according to any one of claims 1 to 11.