Screen-off interface display method, electronic equipment and computer readable storage medium
By receiving user operations in the terminal device to select topics and controlling screen-destroying animations, the problem of a single display effect when the traditional terminal device switches to the lock screen state when AOD mode is switched to the lock screen state is solved, and the interface is coherent and the user experience is improved.
Patent Information
- Application Number
- CN202410042446.4
- 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 display effect of switching from AOD mode to lock screen when the screen is unlocked is single, resulting in a low user experience.
By receiving user operations to select topics and controlling the switching between screen-destroying animation and full-screen AOD mode according to the configuration file, ensure that the last frame of screen-destroying animation is associated with the screen-destroying image in full-screen AOD mode, achieving a coherent interface transition.
Improves the user experience, avoids obvious jumps through coherent interface transitions, and enhances the richness and continuity of the display effect.
Smart Images

Figure CN120335904A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and specifically 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 desktops, lock screen wallpapers, etc. according to their personal preferences.
[0004] In the traditional display method, if the user presses the power button to turn off the screen in the screen-on and unlocked state, the terminal device will directly turn off the screen. If the user enables the AOD function, after the screen is turned off, the terminal device switches to the partial AOD mode, and the display effect is single, 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: receiving a first operation input by the user on a theme selection interface, where the first operation is used to select a first theme; in response to the first operation, selecting the first theme, where the first theme corresponds to a first configuration file and a first resource package, and the first configuration file at least includes a first configuration item, and the first configuration item is used to indicate whether the first theme supports the full-screen AOD mode; receiving a second operation performed by the user in the unlocked state, where the second operation is a screen-off operation; in response to the second operation, playing a first screen-off animation; after playing the first screen-off animation, in response to the current configuration value of the first configuration item being that the first theme supports the full-screen AOD mode, entering the full-screen AOD mode, where the first screen-off animation is a resource in the first resource package, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode; where, in the full-screen AOD mode, the proportion of the number of first pixels in all pixels of the screen of the electronic device exceeds a first preset ratio, and the first pixels are the pixels lit on the screen.
[0007] After the user applies the first theme, if the user performs a screen-off operation, the terminal device can play a screen-off animation and enter the full-screen AOD mode based on the indication of the current configuration value of the first configuration item. Since the last frame of the screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode, and the content displayed by the two is the same or similar, during the process of entering the full-screen AOD mode after the screen-off animation is played, there will be no obvious jump in the interface, and the display effect is coherent, improving the user experience.
[0008] In some possible implementation manners, playing the first screen-off animation includes: obtaining a first video file, where the first video file is a resource in a first resource package, and the first 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 a second configuration item being to support playing the screen-off animation, playing the first screen-off animation according to a third configuration item, where the second configuration item and the third configuration item are configuration items in a first configuration file, the second configuration item is used to indicate whether to support playing the screen-off animation, and the third configuration item is used to indicate whether to support frame extraction when playing the screen-off animation; when the current configuration value of the third configuration item is to support frame extraction when playing the first screen-off animation, extracting frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of multiple video frames in the first frame extraction sequence is the same as the arrangement order of the multiple video frames in the first video file; playing the first screen-off animation by playing the first frame extraction sequence in reverse; or, when the current configuration value of the third configuration item is not to support frame extraction when playing the screen-off animation, playing the video frames in the first video file frame by frame in reverse to play the first screen-off animation.
[0009] Through the above-mentioned second configuration item and third configuration item, the playing manner and speed of the screen-off animation can be flexibly configured, and the usage scenarios are more diverse.
[0010] In some possible implementation manners, the method further includes: in the full-screen 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 first operation, the electronic device enters the screen-on state and plays a first lock screen animation according to a fourth configuration item, where the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is a first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, and the number of frames in the first video interval is the total number of frames of the first lock screen animation; after playing the first lock screen animation, entering the first screen-on lock screen state; in the first screen-on lock screen state, displaying a first lock screen interface, and the background picture of the first lock screen interface is the last frame of the first lock screen animation.
[0011] In the first bright screen and locked screen state, the electronic device displays a first locked screen interface. Among them, the background image of the first locked screen interface is the last frame of the first locked screen animation, which can make the process of entering the locked screen interface from the full-screen AOD state display a continuous animation without interface jumps, improving the user experience.
[0012] In some possible implementation manners, when the first theme supports a depth-of-field effect, in response to a first operation, after the first theme is selected, the method includes: obtaining a first locked screen picture from a first resource package, where the first locked screen picture is a resource in the first resource package, and the first locked screen picture and the second frame include the same display content; in the first bright screen and locked screen state, the step of displaying the first locked screen interface includes: in the first bright screen and locked screen state, displaying the first locked screen interface; and above the layer of the first locked screen interface, displaying the first locked screen picture.
[0013] If the first theme supports a depth-of-field effect, then a layer of the first locked screen picture can be generated above the layer of the locked screen interface and used to display the first locked screen picture above the layer of the first locked screen interface. When other operations are received, the layer of the first locked screen interface is destroyed and the first locked screen interface is displayed. The content displayed by the first locked screen picture is the same as the last frame (i.e., the second frame) of the first locked screen animation, and it can display the depth-of-field effect, which can make the process of entering the locked screen interface from the full-screen AOD state display a continuous animation without interface jumps, improving the user experience.
[0014] In some possible implementation manners, the method further includes: in the first bright screen and locked screen state, receiving 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, playing a first desktop animation according to a fourth configuration item and a fifth configuration item, where the fifth configuration item indicates the total number of frames of the first desktop animation, and the first desktop animation is a second video interval from the third frame to the fourth frame in a first video file, the third frame is the next frame of the second frame, and the number of frames in the second video interval is the total number of frames of the first desktop animation; after playing the first desktop animation, displaying a first desktop, and the background image of the first desktop is the fourth frame.
[0015] If the user receives a fourth operation to unlock the electronic device while the first locked screen interface is being displayed, then the first desktop animation can be played to enter the desktop. Specifically, the electronic device can play a second video interval between the next frame of the third frame indicated by the fourth configuration item and the fourth frame indicated by the fifth configuration item to play the first desktop animation. Since the background image of the first desktop is the fourth frame, it can make the display effect from the locked screen interface to the desktop continuous without interface jumps, improving the user experience.
[0016] In some possible implementations, the method further includes: in the full-screen AOD mode, receiving a fifth operation input by the user, where the fifth operation is used to unlock the screen of the electronic device; in response to the fifth operation, the electronic device enters the screen-on unlocking state and plays a first video file according to a fourth configuration item and a fifth configuration item, where the fourth configuration item and the fifth configuration item are configuration items in a first configuration file, the first video file includes a first lock screen animation and a first desktop animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is a first video segment from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, the number of frames in the first video segment is the total number of frames of the first lock screen animation, the fifth configuration item indicates the total number of frames of the first desktop animation, the first desktop animation is a second video segment from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames in the second video segment is the total number of frames of the first desktop animation; after playing the first video file, display the first desktop, and the background image of the first desktop is the fourth frame.
[0017] If the user directly performs the fifth operation to unlock the screen in the full-screen AOD mode, for example, touches the fingerprint spot displayed in the AOD mode to input a fingerprint for unlocking, the terminal device can continuously play the above-mentioned first lock screen animation and first desktop animation and enter the desktop, and the display effect of this process is coherent. Since the background image of the first desktop is the fourth frame, it can make the display effect coherent from the lock screen interface to the desktop. And since the background image of the first desktop is the fourth frame, it can make the display effect coherent from the lock screen interface to the desktop without interface jumps, improving the user experience.
[0018] In some possible implementations, the method further includes: receiving a sixth operation input by the user, where the sixth operation is an operation to switch the AOD state; in response to the sixth operation, switching from the full-screen AOD mode to the partial AOD mode; receiving a seventh operation performed by the user in the screen-on unlocking state, where the seventh operation is a screen-off operation; in response to the seventh operation, playing a second screen-off animation; after playing the second screen-off animation, entering the partial AOD mode, where the second screen-off animation is a resource in a first resource package, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the partial AOD mode; where, in the partial AOD mode, the proportion of the number of first pixels in all pixels on the screen of the electronic device is less than a second preset ratio, and the second preset ratio is less than the first preset ratio.
[0019] When the user performs the sixth operation to switch the AOD state in the AOD state setting interface, the terminal device, in response to the sixth operation, switches the full-screen AOD mode to the partial AOD mode. If the user performs the seventh operation to turn off the screen, the terminal device can play the second screen-off animation corresponding to the partial AOD mode.
[0020] It should be noted that the last frame of the second 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 second 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 supports the switching of different AOD states, has strong flexibility, and can adapt to different needs of users.
[0021] In some possible implementations, playing the second screen-off animation includes: obtaining a second video file, where the second video file is a video file in the first resource package, and the second video file corresponds to the local AOD mode and the current color mode; determining a first interval to be played from the second video file according to the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item. The arrangement order of multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the second video file. The first interval to be played includes the target local lock screen animation and the second desktop animation. The sixth configuration item indicates the number of multiple local lock screen animations in the second video file, and the multiple local lock screen animations correspond to multiple display positions of the screen-off pictures in the local AOD mode. The seventh configuration item indicates the target local lock screen animation corresponding to the second screen-off animation, and the target local lock screen animation is one of the multiple local lock screen animations. The eighth configuration item indicates the total number of frames of the multiple local lock screen animations. The ninth configuration item indicates the total number of frames of the first local lock screen animation among the multiple local lock screen animations. The tenth configuration item indicates the total number of frames of the second local lock screen animation among the multiple local lock screen animations. The eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; the first local lock screen animation is the third video interval from the fifth frame to the sixth frame in the second video file, the fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first local lock screen animation; the second local lock screen animation is the fourth video interval from the seventh frame to the eighth frame in the second video file, the seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second local lock screen animation; the multiple local lock screen animations are the fifth video interval from the fifth frame to the ninth frame in the second video file, the fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multiple local lock screen animations; the second desktop animation is the sixth video interval from the tenth frame to the eleventh frame in the second video file, the tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video interval is the total number of frames of the second desktop animation; in response to the current configuration value of the second configuration item being support for playing the screen-off animation, play the second screen-off animation according to the third configuration item, and the third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation; when the current configuration value of the third configuration item is that frame extraction is supported when playing the second screen-off animation, extract frames from the first interval to be played according to a preset frame extraction multiple to obtain a second frame extraction sequence; play the second screen-off animation by playing the second frame extraction sequence in reverse; or, in response to the current configuration value of the third configuration item being that frame extraction is not supported when playing the screen-off animation, play the first interval to be played frame by frame in reverse to play the second screen-off animation, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode.
[0022] Through the above configuration items, the playback 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 second screen-off animation is associated with the screen-off picture displayed in the local AOD mode, there is no obvious jump in the interface, improving the user experience.
[0023] In some possible implementation manners, the method further includes: in the local AOD mode, receiving an eighth operation input by a user, where the eighth operation is used to turn on the screen of the electronic device; in response to the eighth operation, the electronic device enters a screen-on state, and plays a second lock screen animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the screen-off picture in the local AOD mode, where the second lock screen animation is one of multiple segments of local lock screen animations, and the first frame in the second lock screen animation is associated with the current display position; after playing the second lock screen animation, 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 picture of the second lock screen interface is the last frame of the second lock screen animation.
[0024] In the local AOD mode, if the user inputs a fingerprint at the fingerprint spot on the screen-off interface, the terminal device can determine, according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the screen-off picture in the local AOD mode, the segment of the animation whose starting position and current display position are closest as the second lock screen animation for playback. Since the background picture of the second lock screen interface is the last frame of the second lock screen animation, there is no obvious jump in the interface during the unlocking process, improving the user experience.
[0025] In some possible implementation manners, the method further includes: in the second screen-on and lock screen state, receiving an eighth operation input by a user, where the eighth operation is used to unlock the screen of the electronic device; in response to the eighth operation, playing a second desktop animation according to the eighth configuration item and the eleventh configuration item; after playing the second desktop animation, displaying a second desktop, where the background picture of the second desktop is the eleventh frame.
[0026] If, in the second screen-on and lock screen state, the terminal device receives an unlocking operation input by a user, such as an operation of inputting a fingerprint to unlock, the electronic device can play the second desktop animation indicated by the eighth configuration item and the eleventh configuration item and enter the second desktop. Since the background picture of the second desktop is the last frame of the second video file, the display effect is coherent.
[0027] In some possible implementations, the method further includes: in the local AOD mode, receiving a ninth operation input by the user, where the ninth operation is used to unlock the screen of the electronic device; in response to the ninth operation, the electronic device enters the screen-on state, and sequentially plays a second lock screen animation and a second desktop animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the screen-off picture in the local AOD mode. The second lock screen animation is one of multiple segments of local lock screen animations in a second video file, the second video file is a resource in the first resource package, 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 second lock screen animation is associated with the current display position, the ninth 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 tenth 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 eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, and the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; after playing the second desktop animation, display the second desktop, and the background picture of the second desktop is the last frame of the second desktop animation.
[0028] If the user directly performs the ninth operation to unlock the screen in the local AOD mode, for example, inputs a fingerprint in the AOD mode, the terminal device determines the local lock screen animation that is closest to the starting position of the current display position according to the current display position of the screen-off picture in the local AOD mode, and then sequentially plays the segment of local lock screen animation and the second desktop animation to enter the second desktop. This can make the display effect from the AOD state to the desktop coherent, without interface jumps, and improve the user experience.
[0029] In a second aspect, there is provided a screen-off interface display device, including a unit composed of software and / or hardware, and the unit is used to execute any one of the methods in the technical solutions of the first aspect.
[0030] In a third aspect, an embodiment of the present application provides a chip, including a processor; the processor is used to read and execute a computer program stored in a memory to execute any one of the methods in the technical solutions described in the first aspect.
[0031] Optionally, the chip further includes a memory, and the memory is connected to the processor through a circuit or a wire.
[0032] Further optionally, the chip further includes a communication interface.
[0033] In a fourth aspect, there is provided an electronic device, where 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 includes any one of the chips described in the third aspect.
[0034] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the processor is caused to execute any one of the methods in the technical solution described in the first aspect.
[0035] In a sixth aspect, a computer program product is provided, which includes computer program code. When the computer program code runs on an electronic device, the electronic device is caused to execute any one of the methods in the technical solution described in the first aspect. Description of the Drawings
[0036] Figure 1 is a schematic structural diagram of a terminal device 100 provided by an embodiment of the present application;
[0037] Figure 2 is a schematic diagram of a screen-off interface in a local AOD mode provided by an embodiment of the present application;
[0038] 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;
[0039] Figure 4 is a schematic diagram of a switch interface in an AOD state provided by an embodiment of the present application;
[0040] 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;
[0041] 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;
[0042] Figure 7 is a software structure block diagram of the terminal device 100 provided by an embodiment of the present application;
[0043] Figure 8 is an interaction diagram of a screen-off interface display method provided by an embodiment of the present application;
[0044] Figure 9 is a flowchart of a screen-off interface display method provided by an embodiment of the present application;
[0045] Figure 10 is another flowchart of a screen-off interface display method provided by an embodiment of the present application;
[0046] Figure 11 is a schematic structural diagram of a screen-off interface display device provided by an embodiment of the present application. Detailed Embodiments
[0047] The technical solutions in the embodiments of the present application will be described below with reference to 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; "and / or" herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. 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 of" means two or more than two.
[0048] Hereinafter, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second", and "third" may explicitly or implicitly include one or more of such features.
[0049] The screen-off interface display method provided by the embodiments of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
[0050] Exemplarily, Figure 1It is a schematic structural diagram of a terminal device 100 provided by an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a key 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.
[0051] It can be understood that the structure schematically shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than 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.
[0052] It can be understood that the interface connection relationship between the modules schematically shown in the embodiment of the present application is only for illustrative purposes and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods as described in the above embodiments, or a combination of multiple interface connection methods.
[0053] 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. 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. 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.
[0054] The off-screen interface display method provided by the embodiment of the present application is a display solution for the terminal device to enter the screen-on state from the off-screen state, which can enrich the display effect and improve the user's usage experience.
[0055] To clearly describe the detailed process of entering the screen-on state from the screen-off state, first, the screen-off function that controls the screen-off state will be introduced.
[0056] When the screen-off function of the terminal device is enabled, the device can enter the screen-off state when the user is not using it.
[0057] The way to turn on and off 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 4 Figure a. The user clicks on the card for screen-off display in Figure 4 Figure a and enters the screen-off settings interface as shown in Figure 4 Figure b. The screen-off settings interface includes a switch control for screen-off display. The user can click on this switch control 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: Always-on display, Tap to show, and Scheduled display in the menu of the display mode in the screen-off settings interface. Figure 4 Figure b shows an example where the Always-on display mode is selected.
[0058] The screen-off state can be manifested 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 a completely off state, but will continuously display some useful information, such as the time, date, battery level, etc. It can also display the screen-off picture and fingerprint highlights, as shown in Figure 2 For example. Figure 2 The screen-off picture in
[0059] contains a person and a bicycle. In the AOD state, the user can obtain important information such as time, date, notifications, and battery level without having to wake up the phone. Compared with frequently waking up the phone screen to view information, the AOD function can significantly reduce the number of wake-ups, thus saving battery consumption. Optionally, the information displayed in the AOD state can also be increased or decreased based on user settings.
[0059] Based on the difference in the display mode, the AOD state can be divided into two modes: One is the partial AOD mode. In the partial AOD mode, the screen-off picture does not occupy the entire screen, but only occupies a small area of the screen, and the other areas outside the screen-off picture and the time, date, notifications, battery level, etc. show a black screen state. The other is the full-screen AOD mode. In the full-screen AOD mode, the screen-off picture occupies most of the screen (for example, the screen-off picture occupies 95% of the screen area), and the time, date, battery level, etc. are displayed on top of the screen-off picture. In the full-screen AOD mode, there is no large area of black screen in the screen, for exampleFigure 3 as shown Figure 3 The off - screen picture in [reference] contains a balloon and a background.
[0060] To distinguish between the full - screen AOD mode and the partial AOD mode, the distribution of pixel values of pixel points on the screen is used to describe. The pixel values of pixel points displayed as black on the screen are 0 or close to 0 (for example, less than 10). The larger the pixel value, the higher the brightness. Then, in the partial AOD mode, a smaller area on the screen is used to display information such as the off - screen picture and time. This smaller 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 pixel points in most areas of the screen except the display area (areas other than the off - screen picture, time, date, notification, and battery level, etc.) are 0 or close to 0.
[0061] In the full - screen AOD mode, most or all of the area of the screen is used to display the off - screen picture, and the pixel values of all or most of the pixel points in the off - screen picture are larger, for example, greater than 100. Therefore, in the full - screen AOD mode, the proportion of pixel points (bright pixel points) with pixel values greater than the preset pixel value threshold (for example, 100) in the entire screen is relatively large, for example, 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.
[0062] Whether it is 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 off - screen 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 off - screen 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 o'clock and 23 o'clock), the terminal device will not automatically turn off the screen but continuously display the off - screen 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 timings, which are not limited in the embodiments of this application.
[0063] The above AOD state describes 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 network access and CPU occupancy, the CPU frequency decreases, the frame rate of the screen-off interface drops, and the screen brightness decreases, thereby saving battery power.
[0064] After the Doze mode lasts for a period of time, it can enter a deeper sleep mode, that is, the sleep mode of Doze, which can be called the Doze suspend mode. If the AOD state is the all-weather mode, in the Doze suspend mode, the CPU frequency 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 screen brightness further decreases, thereby further saving battery power.
[0065] 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 5 Shows the playback process of the lock screen animation. When the terminal device displays the screen-off interface as shown in Figure 5 Figure a in, the user presses the power button to trigger the playback of the lock screen animation. During the playback of the lock screen animation, the foreground animation (two overlapping circles) gradually enlarges and is displayed from the Figure 5 position shown in Figure a in, and in the middle, it can be shown as shown in Figure 5 Figure b in, and then continue to play and enter the lock screen state, showing the lock screen interface as shown in Figure 5 Figure c in. Figure 5 Figure b in shows a schematic diagram of an interface during the playback of the lock screen animation with the depth of field effect. As can be seen from Figure 5 Figure b in, the lock screen animation (that is, the foreground animation layer) blocks the time layer. The other 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 playback of the lock screen animation on the terminal device, the lock screen animation always plays below the time layer of the lock screen state, and the time layer of the lock screen state is always displayed above the lock screen animation. The playback process of the lock screen animation with the non-depth of field effect can be continued to refer to as shown in Figure 5 When the terminal device displays as shown in Figure 5When the user presses the power button to trigger the playback of the lock screen animation on the lock screen interface shown in Figure a in []. During the playback of the lock screen animation, the two overlapping circles in the lock screen animation gradually zoom in and are displayed from the Figure 5 position shown in Figure a in [], and the middle can display as shown in Figure 5 Figure d in [], and then continue to play and enter the locked screen state, displaying the lock screen interface as shown in Figure 5 Figure c in []. As can be seen from Figure 5 Figure d in [], the lock screen animation does not cover the time layer and is always displayed below the time layer. It should be noted that regardless of whether the user sets the depth of field effect, 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.
[0066] 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, 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 below the time layer and some objects covering the upper layer of the time layer to enhance the display effect. The specific playback form of the depth of field effect in this application is not limited.
[0067] Figure 6 Figure [] shows another diagram of the interface change during the playback 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. In the full-screen AOD mode shown in Figure a in Figure 6 , the user clicks the power button to trigger the playback of the lock screen animation. During the playback of the lock screen animation, it can be displayed as shown in Figure 6 Figure b in []. It can be seen that Figure 6 the interface brightness in Figure b in [] becomes higher. The terminal device continues to play the lock screen animation and enters the locked screen state, displaying the lock screen interface as shown in Figure 6 Figure c in []. Figure 6 The brightness of the lock screen interface shown in Figure c in [] is higher than that of the interface shown in Figure 6 Figure b in [], that is to say, during the playback of the lock screen animation shown in Figure 6 , the screen gradually becomes brighter. 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 also include icons such as fingerprint highlights (not shown in the figure), and the embodiments of this application do not limit this.
[0068] To improve the display effect when entering the screen-on state from the AOD state, an embodiment of the present application provides a method for displaying the lock screen interface. By setting multiple configuration items, the interface display form from the AOD state to the screen-on state is controlled, making the process of the display animation coherent, thereby improving the display effect.
[0069] Next, the software architecture relied on by the embodiments of the present application will be introduced.
[0070] The software system of the terminal device 100 can 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, taking the Android system with a layered architecture as an example, the software structure of the terminal device 100 will be exemplarily described.
[0071] Figure 7 It 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 with each other 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 system libraries, and the kernel layer. The application layer may include a series of application packages.
[0072] Such 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.
[0073] The application packages also include: a theme package (theme module), a wallpaper package (wallpaper APK), an AOD module, a System UI module, and a desktop launcher.
[0074] The theme package is used to manage the settings, display, and preview of different themes.
[0075] Among them, the wallpaper package includes wallpaper modules that support various 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.
[0076] The AOD module is used to implement the related display of the local AOD mode described above, also known as the local AOD module.
[0077] System UI can control the animation display method from the AOD state to the lock screen state in the full-screen AOD mode.
[0078] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0079] As Figure 7 shown, the application framework layer may include the WindowManagerService, content providers, view systems, telephony managers, resource managers, notification managers, theme switching services (ThemeManager), wallpaper management services (WallpaperManagerSevice, or also known as wallpaper framework services), dream services (DreamService), and power management services (PowerManagerService), etc.
[0080] 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.
[0081] Content providers are 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.
[0082] The view system includes visible 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 text message notification icon may include a view for displaying text and a view for displaying pictures.
[0083] The telephony manager is used to provide the communication functions of the terminal device 100. For example, the management of call states (including connection, disconnection, etc.).
[0084] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0085] The notification manager enables applications to display notification information in the status bar, can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
[0086] The theme package and super wallpaper module, supported by the theme switching service and super wallpaper management service in the application framework layer, realize the switching of the theme mode of the terminal device and the display of the super wallpaper corresponding to the theme mode.
[0087] The power management service is used to manage the states of the terminal device's screen on, screen off, and whether the screen is unlocked.
[0088] The dream service is used to manage the on-screen display state, off-screen display state, and display state in Doze mode of the terminal device.
[0089] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0090] The core library consists of two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
[0091] 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.
[0092] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc.
[0093] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0094] The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0095] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0096] The 2D graphics engine is a drawing engine for 2D drawing.
[0097] The kernel layer is the layer between the hardware and the software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0098] For the sake of easy 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 off-screen interface display method provided by the embodiments of this application.
[0099] The user can set the theme package and select the wallpaper theme to be applied. For example, the user can Figure 4In the picture a, click the theme card to enter the theme selection interface to select the wallpaper theme you want. Figure 4 In figure a in FIG. 1 , it is taken as an example that the user selects and applies theme 1 as the wallpaper theme.
[0100] After the user selects the required wallpaper theme and applies it, if the terminal device enters the AOD state or the screen-off state and then enters the screen-on state again, the terminal device can display the corresponding animation effect according to the selected wallpaper theme.
[0101] First, the process of setting the theme package to make the selected wallpaper theme effective is described. Figure 8 As shown:
[0102] S701. The user sets a wallpaper theme (wallpaper type) of a super wallpaper.
[0103] It should be noted that the wallpaper theme may include multiple wallpaper themes, such as super wallpaper, 3D wallpaper, dynamic wallpaper and folding wallpaper. Different wallpaper themes have different display effects.
[0104] Specifically, users can operate on the terminal device and open the following options from Settings > Desktop and Wallpaper: Figure 4 The desktop and wallpaper interface shown in Figure a in FIG. 1 is displayed, and then the theme card is clicked to enter the setting page of the theme package. The user selects the wallpaper theme of the required super wallpaper from multiple wallpaper themes to be selected in the setting page.
[0105] S702: The theme module responds to the user selecting the wallpaper theme of super wallpaper by setting a package name of the super wallpaper service (eg, live.wallpaper.paradise) and launching the super wallpaper service through the wallpaper framework service.
[0106] Specifically, the theme package responds to the user selecting the wallpaper theme of the super wallpaper, and pulls up the corresponding super wallpaper service (SuperWallpaperService) through the wallpaper framework service 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 is pulled up to display the effect of the dynamic wallpaper.
[0107] S703. The super wallpaper service obtains resources corresponding to the wallpaper theme according to the wallpaper theme.
[0108] Specifically, the super wallpaper service obtains the lock screen animation, desktop animation, lock screen image, desktop wallpaper and other resources corresponding to the super wallpaper from a preset resource path according to the wallpaper theme of the super wallpaper.
[0109] 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.
[0110] S704. The wallpaper framework service also sends a broadcast message carrying the current wallpaper theme to System UI.
[0111] 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 switched from the 3D wallpaper to the super wallpaper.
[0112] S705. Under the activation of the wallpaper framework service, the super wallpaper service parses the configuration file of the corresponding theme package according to the wallpaper theme.
[0113] Optionally, this configuration file can be a file in xml format, such as named livepaper.xml. This configuration file includes multiple configuration items, and these multiple configuration items are used to configure the playback modes of the lock screen animation and the desktop animation.
[0114] To clearly introduce the technical solution of this application, the configuration items are described in detail here. The multiple configuration items in the configuration file include but are not limited to some or all of the following configuration items 1 to 16:
[0115] 1. support_background_blur (support background blur): Indicates 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.
[0116] 2. support_dark_mode (support dark mode): Indicates whether to follow the system color. For example, when the value of this configuration item is false, the lock screen animation and the desktop animation can support the dark mode; when the value of this configuration item is true, the lock screen animation and the desktop animation cannot support the dark mode.
[0117] 3. aod_to_lock_total_frame (partial AOD - total number of frames for lock screen): Indicates the total number of frames of the animation from the partial AOD mode to the locked screen state.
[0118] 4. lock_to_launcher_total_frame (Total number of frames for the animation from the locked screen to the launcher): Represents the total number of frames of the animation when transitioning from the locked screen state to the desktop.
[0119] In the embodiments of the present application, the animation from the partial AOD mode to the locked screen state and the animation from the locked screen state to the desktop can be stored as a video file, and a specific video segment of this video file can be determined for playback in different scenarios according to specific configuration items.
[0120] 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 locked screen state includes a total of 51 frame images. When the terminal device transitions from the AOD mode to the locked screen state, these 51 frame images can be played.
[0121] Another example, when the configuration item lock_to_launcher_total_frame is 35, it means that the animation from the locked screen state to the desktop includes a total of 35 frame images. If the animation from the partial AOD mode to the locked screen state and the animation from the locked 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 locked 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 out of 86 frame images are played.
[0122] 5. aod_style (AOD style): Represents the style of the AOD corresponding to the super wallpaper.
[0123] 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 partial AOD mode.
[0124] 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 lock screen interface.
[0125] For example, when this configuration item is false, it means that the screen brightness does not gradually dim after the animation of the super wallpaper is played. When this configuration item is set to true, it means that the screen brightness gradually dims after the animation of the super wallpaper is played. Optionally, this configuration item can default to false. Optionally, this configuration item can be used to configure the display mode in the local AOD mode. Since the black area in the off-screen interface of the local AOD mode accounts for a relatively large proportion, this configuration item can make the screen brightness gradually dim after the animation of the super wallpaper is played, connecting with the off-screen interface in the local AOD mode without sudden changes.
[0126] 7. support_frame_extraction (Support frame extraction for the off-screen animation): It indicates whether the off-screen animation supports frame extraction. The off-screen animation is the animation played during the process of switching from the screen's lit state to the off-screen state. 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 the frame extraction method can be further set according to other configuration items, such as configuration item 11 (the default segment of the off-screen animation) below.
[0127] 8. extract_stage_one_orig_anim_frame (Total number of frames in the first stage of the animation).
[0128] 9. extract_stage_two_orig_anim_frame (Total number of frames in the second stage of the animation).
[0129] 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 segments. extract_stage_one_orig_anim_frame represents the total number of frames in the first video segment, and extract_stage_two_orig_anim_frame represents the total number of frames in the second video segment. The frames in the video file other than the first and second video segments are the third video segment. That is, the total number of frames in the third video segment is the total number of frames in the video file minus the total number of frames in the first video segment and then minus the total number of frames in the second video segment.
[0130] Taking the example that the video file includes a total of 86 frames of 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 all of the video file is allocated to the first video segment at this time.
[0131] 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 segments are 30, 30, and 26 (86 - 30 - 30) respectively. And, the first video segment includes frames from the 1st frame to the 30th frame; the second video segment includes frames from the 31st frame to the subsequent 30 frames, that is, up to the 60th frame; the third video segment includes frames from the 61st frame to the subsequent 26 frames, that is, up to the 86th frame.
[0132] Optionally, when more video segments need to be divided for the video file that requires frame extraction, other configuration items for video segments can be added according to the definition methods of configuration items 8 and 9 to configure the total number of frames of the corresponding video segments.
[0133] 10. aod_animation_segments (Number of AOD animation segments): 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 that 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 that 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.
[0134] 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 move down one position every minute from the first position at the top of the screen, continuously moving to the ninth position at the bottom of the screen, and then starting from the first position after an interval of one minute, moving down one position every minute, and repeating in a cycle.
[0135] That is to say, in the local AOD mode, there are nine situations for the position of the always-on display (AOD) image. To ensure the continuity of the animation when transitioning from the local AOD mode to the lock screen interface, multiple segments of animation can be used. In each segment of the animation, the starting position of the AOD image is different. For example, the starting position of the AOD image in the first segment of the animation is at the second position. When the AOD image in the local AOD mode is at the first, second, or third position, and the user lights up the screen, the terminal device plays the first segment of the animation. The starting position of the AOD image in the first segment of the animation is the same as or close to the second position, and also close to the first and third positions, which can ensure the continuity of the animation when transitioning from the local AOD mode to the lock screen interface when the AOD image is at the first, second, or third position, and there will be no obvious jump in the position of the AOD image. For other positions, the same animation can be used for multiple consecutive positions. It is important to ensure that the starting position of the AOD image corresponding to these multiple consecutive positions is the same as or close to these multiple consecutive positions, thus ensuring the continuity of the animation. Optionally, when there are nine positions, the step between each position can be 40 pixels, and these nine positions can correspond to 5 segments of animation respectively, so as to ensure the continuity of the animation without occupying too much storage space due to too many animations.
[0136] Optionally, five positions can also be set in the local AOD mode to display the AOD image in the local AOD mode, and the step between each of these five positions can be 80 pixels. Optionally, these five positions can correspond to 3 segments of animation respectively. For example, the first and second positions correspond to the first segment of the animation, the third position corresponds to the second segment of the animation, and the fourth and fifth positions correspond to the third segment of the animation. Then, in the local AOD mode, if the AOD image moves to the first or second position and the user operates to light up the screen at this time, the terminal device can play the first segment of the animation. In the first segment of the animation, the distance between the starting position of the AOD image and the first and second positions is closer than the distance to other positions; if the AOD image moves to the third position and the user operates to light up the screen, the terminal device can play the second segment of the animation. In the second segment of the animation, the distance between the starting position of the AOD image and the third position is closer than the distance to other positions; if the AOD image moves to the fourth or fifth position and the user operates to light up the screen, the terminal device can play the third segment of the animation. In the third segment of the animation, the distance between the starting position of the AOD image and the fourth and fifth positions is closer than the distance to other positions.
[0137] 11. aod_to_lock_default_animation_stage (Default animation stage for the screen-off animation): It indicates which animation segment among the multiple animation segments for entering the lock screen interface in the local AOD mode should be used by default in the screen-off animation (entering the AOD mode from the screen-on state). Optionally, when the number of multiple animation segments is 3, this configuration item can be 1, indicating that the first animation segment is used for the screen-off animation; when the number of multiple animation segments is 5, this configuration item can be 2, indicating that the second animation segment is used for the screen-off animation.
[0138] For example, when the number of multiple animation segments is 3, the entire video file can include 188 (51 * 3 + 35) frame images. Among them, the 1st to 51st frames are the first animation segment, the 52nd to 102nd frames are the second animation segment, the 103rd to 153rd frames are the third animation segment, and the 154th to 188th frames are the video interval for entering the desktop from the lock screen interface.
[0139] 12. support_off_screen_animation (Support for screen-off animation): It indicates whether screen-off animation is supported.
[0140] When this configuration item is false, it means that screen-off animation is not supported. If the user operates to turn off the screen, the terminal device can directly enter the screen-off state or the power-off state without showing an animation effect. When this configuration item is true, it means that screen-off animation is supported, and the display strategy of the screen-off animation can be determined according to the aforementioned configuration items 7, 8, 9, and 11.
[0141] 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 video interval from the 1st to 51st frames corresponding to the first animation segment of the video file in reverse at the frame extraction multiple. If configuration item 11 is changed to 2, then the video interval from the 52nd to 102nd frames corresponding to the second animation segment of the video file will be played back in reverse at the frame extraction. The rest will not be elaborated.
[0142] 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 video interval from the 1st to 51st frames frame by frame.
[0143] 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. When the total number of animation frames remains 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.
[0144] 13. support_full_screen_aod (Support full-screen AOD mode): Indicates whether the current wallpaper theme supports the full-screen AOD mode.
[0145] 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.
[0146] Optionally, in some wallpaper themes, the full-screen AOD mode can be preferred, and the value of this configuration item is defaulted to true.
[0147] 14. aod_to_lock_total_frame_full_aod (Total number of frames for full-screen AOD - lock screen): Represents the total number of frames of the animation from the full-screen AOD mode to the lock screen state. For example, when this configuration item is 36, it means that the total number of frames of the animation from the full-screen AOD mode to the lock screen state is 36 frames.
[0148] 15. lock_to_launcher_total_frame_full_aod (Total number of frames for lock screen - home screen in full-screen AOD): Represents the total number of frames of the animation from the lock screen state to the home screen in the full-screen AOD mode. For example, when this configuration item is 35, if the total number of frames 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.
[0149] 16. super_wallpaper_scheme (supporting depth-of-field mode): It 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 means 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 means that the previous wallpaper theme does not support the depth-of-field effect. For example, among the three wallpaper themes, the three wallpaper themes correspond to Scheme 1, Scheme 2, and Scheme 3 respectively. If the 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.
[0150] Based on the descriptions of the above configuration items 1 - 16, it can be known that regardless of whether the screen-off state is in the partial AOD mode or the full-screen AOD mode, the animations from the screen-off state to the lock screen state and from the lock screen state to the desktop can use the same video file. And, 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.
[0151] S706. The theme module obtains the target configuration item and the configured value corresponding to the wallpaper theme from the configuration file and writes them into the settings database.
[0152] For example, the theme module can obtain the target configuration item in the configuration file according to the wallpaper theme and write it into the database. When the configuration item in the screen-off state represents supporting 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 configured values are written into the settings database.
[0153] For another example, when the configuration item in the screen-off state indicates support for the full-screen AOD mode, the theme module can write the configuration items related to the full-screen AOD mode, such as support_dark_mode being true, support_full_screen_aod being true, aod_to_lock_total_frame_full_aod being 36, lock_to_launcher_total_frame_full_aod being 35, etc., and their corresponding configuration values, into the settings database.
[0154] Optionally, other configuration items can be selectively written as needed.
[0155] 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 full-screen AOD mode can be written into the settings database for later use.
[0156] Optionally, the theme module can also obtain the current system color mode as dark mode or light mode and write the color mode into the settings database for the super wallpaper service to read.
[0157] S707. The super wallpaper service obtains the target configuration items, their corresponding configuration values, the system color mode, and the supported screen-off states from the settings database according to the wallpaper theme.
[0158] Optionally, the supported screen-off states are 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:
[0159] global_only: indicates that this wallpaper theme only supports the full-screen AOD mode;
[0160] local_only global: indicates that this wallpaper theme only supports the partial AOD mode;
[0161] global_local_recommend_global: indicates that this wallpaper theme is preferably used in the full-screen AOD mode;
[0162] global_local_recommend_local: indicates that this wallpaper theme is preferably used in the partial AOD mode;
[0163] global_and_local: indicates support for both the full-screen AOD mode and the partial AOD mode.
[0164] Optionally, the target configuration items may also include some or all of the above configuration items 1-16, as well as the configuration values corresponding to each configuration item.
[0165] 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 state, and loads the lock screen image.
[0166] 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 for 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.
[0167] For example: SystemUI can determine that the placeholder image is dark_Aod_live_wallpaper.jpg when the system's large color mode is the dark mode and the AOD state is the partial AOD mode; when the color mode is the light mode and the AOD mode is the partial AOD mode, the super wallpaper service determines that the placeholder image is Aod_live_wallpaper.jpg; when the color mode is the dark mode and the AOD state is the full-screen AOD mode, SystemUI determines that the placeholder image is dark dark_fullAod_live_wallpaper.jpg; when the color mode is the light mode and the AOD state is the full-screen AOD mode, SystemUI determines that the placeholder image is fullAod_live_wallpaper.jpg.
[0168] 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 thus saves resources.
[0169] S709. The super wallpaper service obtains the corresponding video file according to the color mode and AOD state.
[0170] Specifically, the super wallpaper service can determine the video file to be used for the animation based on the current system's color mode and AOD status. For example: when the color mode is the dark mode and the AOD status is the partial AOD mode, the super wallpaper service determines that the video file to be used 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 to be used 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 to be used 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 to be used for the animation is video_live_wallpaper_fullAod.mp4.
[0171] 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 status after the wallpaper theme is applied, with strong interactivity.
[0172] The above S701 to S709 describe the detailed process of the terminal device applying the wallpaper theme set by the user.
[0173] After that, if the user changes the AOD status, the steps of the above processes S708 and S709 can be repeated to apply the new AOD status wallpaper theme. Specifically, refer to the description of the steps in S710 to S711:
[0174] S710. SystemUI listens to the settings database to obtain the color mode of the new system and the new AOD status.
[0175] It should be noted that when the user changes the AOD status (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 color mode of the system (such as switching from the dark mode to the light mode, or from the light mode to the dark mode).
[0176] 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.
[0177] S711. SystemUI obtains a new video file according to the refreshed new system color mode and new AOD state monitored.
[0178] Optionally, if the depth-of-field effect is currently set and it is in the full-screen AOD mode, SystemUI can obtain a new locked-screen picture according to the refreshed new system color mode and new AOD state monitored and load it.
[0179] For the detailed descriptions of the above S710 and S711, reference can be made to the descriptions of S708 and S709 in the previous text, which will not be elaborated here.
[0180] 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 screen-off interface display method in different display stages will be introduced.
[0181] S712. The user performs a screen-on operation.
[0182] After the user sets the wallpaper theme and applies it, when the user 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 unlocked state, reference can be made to the description after the screen-off operation in the following text, which will not be elaborated here for the time being.
[0183] After the terminal device enters the AOD state, if the user needs to use the terminal device, the user can click the power button to perform a screen-on without unlocking operation.
[0184] S713. The power manager generates a screen-on without unlocking instruction in response to the screen-on without unlocking operation.
[0185] This 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.
[0186] If it is 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.
[0187] S714. The power manager sends the screen-on without unlocking instruction to SystemUI.
[0188] S715. When SystemUI responds to the instruction of turning on the screen without unlocking, it determines whether the lock screen picture (placeholder) can be scaled by 0.95 times.
[0189] Optionally, the scaling factor of 0.95 times here is only an example, and other scaling factors are also possible. The embodiments of the present application do not make any limitations.
[0190] S716. If it is supported, SystemUI will display the lock screen picture at the scaling factor of 0.95 in the lock screen state. If it is not supported, SystemUI will display the placeholder at its original size in the lock screen state after the lock screen animation is played.
[0191] 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. This 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
[0192] If the lock screen picture supports scaling by 0.95 times, after the lock screen animation is played, SystemUI will scale the original lock screen picture by a factor of 0.95 and display it as a new placeholder on top of the lock screen state layer. If the lock screen picture does not support scaling by 0.95 times, after the lock screen animation is played, SystemUI will display the original picture on top of the lock screen state layer. It should be noted that the lock screen picture being the same as the last frame image of the lock screen animation can make the display effect from the lock screen animation to the lock screen state coherent and improve the user experience.
[0193] It should be noted that the above S715 and S716 are optional operations. SystemUI can directly display the lock screen picture according to its original size without determining whether the lock screen picture supports the scaling operation.
[0194] S717. The power manager sends the instruction of turning on the screen without unlocking to the super wallpaper service through the wallpaper framework service.
[0195] 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.
[0196] It should be noted that if the terminal device is in the full-screen AOD mode, the first playback instruction is forwarded by 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.
[0197] In response to the first playback instruction, the multimedia codec plays the lock screen animation with the support of the media playback service in the application framework layer.
[0198] In the above S709, the super wallpaper service has determined the video file to be played. Here, the super wallpaper service determines the lock screen animation from the AOD state to the lock screen state based on the wake-up without unlocking instruction, 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 the first playback instruction to instruct the multimedia codec to display.
[0199] For example, in the partial 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 partial AOD mode is 3), aod_to_lock_total_frame is 153 (indicating that the total number of frames of the 3 animation segments in the partial 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 partial AOD mode is 51). Currently, in the partial AOD mode, the screen-off 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 the first playback instruction according to the relevant configuration items and corresponding configuration values of the lock screen animation, and instructs the multimedia codec to play the video interval from the 1st frame to the 51st frame in darkvideo_live_wallpaper.mp4 according to the first playback instruction. This video interval is the lock screen animation from the partial AOD mode to the lock screen state. Optionally, if in the partial AOD mode, the screen-off 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 partial AOD mode needs to be played, then 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.
[0200] 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 encoder / decoder 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 image (placeholder image).
[0201] Here, the detailed process of animation playback is illustrated by taking the super wallpaper service instructing the multimedia encoder / decoder 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 encoder / decoder plays the video interval from the 1st frame to the 35th frame in fullAod_live_wallpaper.mp4, and 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 about playing from the 1st frame to the 35th frame.
[0202] The super wallpaper service instructs the multimedia encoder / decoder to play frames from frame 1 to frame 35 according to a preset frame rate. Taking 60 frames per second as an example, the super wallpaper service sends a first sub-instruction to play frame 1 to the multimedia encoder / decoder at a first moment, and the multimedia encoder / decoder plays frame 1 in response to the first sub-instruction; the super wallpaper service sends a second sub-instruction to play frame 2 to the multimedia encoder / decoder at a second moment, and the multimedia encoder / decoder plays frame 2 in response to the second sub-instruction; the super wallpaper service sends a second sub-instruction to play frame 3 to the multimedia encoder / decoder at a third moment, and the multimedia encoder / decoder plays frame 3 in response to the second sub-instruction, and so on until frame 35 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, frame 35 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.
[0203] S719. The user performs a lock screen unlocking operation.
[0204] 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.
[0205] S720. In response to the lock screen unlocking operation, SystemUI generates an unlocking instruction and sends the unlocking instruction to the super wallpaper service.
[0206] It should be noted that if the user swipes up the screen in the lock screen state and the terminal device detects a face and the verification is passed, a lock screen unlocking instruction is generated. The unlocking instruction can instruct the terminal device to play a desktop animation from the lock screen state to the desktop to enter the desktop.
[0207] If the user swipes up the screen in the lock screen state and the terminal device fails to detect a face or the detected face verification fails, 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.
[0208] If the configuration value of the configuration item support_background_blur is true, it indicates that background blur is supported. During the process of entering the lock screen password input interface, in addition to the password input area being displayed on the lock screen password input interface, the background 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. During the process of entering the lock screen password input interface, in addition to the password input area being displayed on the lock screen password input interface, the background will not be blurred, and the interface in the lock screen state can be clearly displayed under the area where the lock screen password is input.
[0209] 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.
[0210] 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.
[0211] 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.
[0212] For another example, when the current is 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.
[0213] 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.
[0214] For example, when the current is 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.
[0215] 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 continuously play the video interval from the 1st frame to the 86th frame (the last frame of the video file) in fullAod_live_wallpaper.mp4. This video interval is the entire animation from the full-screen AOD mode to the desktop.
[0216] Optionally, if the current is in the full-screen AOD mode and the user performs a screen-off unlocking operation, 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 state without displaying a placeholder image. The terminal device continuously plays the lock screen animation from the AOD state to the lock screen state and the desktop animation from the lock screen state to the desktop state, which can display a coherent unlocking process, improving the display effect and thus enhancing the user experience.
[0217] S722. The user performs a screen-off operation.
[0218] After using the terminal device, the user can click the power button to perform a screen-off operation.
[0219] S723. In response to the screen-off operation, the power manager generates a screen-off instruction.
[0220] S724. The power manager sends the screen-off instruction to the super wallpaper service through the wallpaper framework service.
[0221] 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.
[0222] 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.
[0223] 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, and aod_support_transition_animation is true. Currently, in the local AOD mode, the super wallpaper service generates a third playback instruction, instructing the multimedia encoder / decoder 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 in the form of frame extraction, play the video interval in reverse 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 encoder / decoder 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 encoder / decoder 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, playing frame by frame in reverse to form a screen-off animation.
[0224] 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.
[0225] Optionally, based on the above embodiments, the effect of brightness fade 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 in 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:
[0226] S726. The power manager sends the off-screen instruction to SystemUI.
[0227] S727. In response to the off-screen instruction, SystemUI obtains the brightness change interval.
[0228] 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.
[0229] S728. The SystemUI instructs the screen brightness to gradually decrease according to the brightness change interval.
[0230] Based on this, during the process of playing the lock screen animation, the SystemUI gradually reduces the screen brightness according to the gradient of brightness change to adapt to the lock screen animation scenario. After the lock screen animation is played, the screen brightness is reduced to the target brightness value or close to 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 gradient of brightness change, the display effect is coherent, and the brightness will not have an obvious jump, improving the user experience.
[0231] In the embodiments of this application, for the same AOD state and system color mode, the display animations of different display stages (from AOD state to lock screen state, from lock screen state to desktop, and from AOD state to 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 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.
[0232] Figure 9 A method for displaying a lock screen interface is shown. This method is applied to an electronic device and includes:
[0233] S901. Receive a first operation input by the user on the theme selection interface. The first operation is used to select a first theme.
[0234] The first operation is an operation for the user to set the wallpaper theme of the super wallpaper. For example, in the interface of the desktop and wallpaper as shown in Figure a in Figure 4 the user clicks on the theme card to enter the theme pack setting page, and then selects the required super wallpaper, the first theme, from the multiple candidate wallpaper themes in the setting page.
[0235] S902. In response to the first operation, select the first theme. The first theme corresponds to a first configuration file and a first resource pack. The first configuration file at least includes a first configuration item (such as configuration item 13). The first configuration item is used to indicate whether the first theme supports the full-screen AOD mode.
[0236] In response to the first operation, the terminal device can set the package name of the super wallpaper service corresponding to the super wallpaper theme to launch the super wallpaper service. Meanwhile, the terminal device parses the first configuration file and the first resource package corresponding to the first theme. Optionally, the first configuration file is an xml file, such as named livepaper.xml, which includes multiple configuration items for configuring the playback modes of the lock screen animation and the desktop animation.
[0237] S903. Receive a second operation performed by the user in the unlocked state, where the second operation is a screen-off operation.
[0238] After the user sets the wallpaper theme, the second operation that can be performed is the screen-off operation.
[0239] S904. In response to the second operation, play the first screen-off animation.
[0240] In response to the second operation, the electronic device can play the first screen-off animation to enter the screen-off state.
[0241] S905. After playing the first screen-off animation, in response to the current configuration value of the first configuration item being that the first theme supports the full-screen AOD mode, enter the full-screen AOD mode. The first screen-off animation is a resource in the first resource package, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode; wherein, in the full-screen AOD mode, the 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.
[0242] The last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode, that is, the content displayed by the two is the same or similar. During the process of switching from the last frame of the first screen-off animation to the full-screen AOD mode, the user will not feel an obvious jump in the interface.
[0243] 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 pixel points lit on the screen is large. For example, all the pixel points of the screen can be lit to display the screen-off picture, or most of the pixel points (such as exceeding the first preset ratio, such as 90%-100%) are lit.
[0244] If the current configuration value of the first configuration item supports the full-screen AOD mode, enter the full-screen AOD mode after the screen-off animation. If the current configuration value of the first configuration item does not support the full-screen AOD, the local AOD mode can be entered.
[0245] In the local AOD mode, the always-on display picture is relatively small. In the local AOD mode, the number of lit pixels on the screen is small. For example, a small part of the screen can be lit to display the always-on display picture (for example, less than a second preset ratio, such as 20%) of the pixels are lit.
[0246] After the user applies the first theme, if the user performs a screen-off operation, the terminal device can play a screen-off animation and enter the full-screen AOD mode based on the indication of the current configuration value of the first configuration item. Since the last frame of the screen-off animation is associated with the always-on display picture in the full-screen AOD mode, and the content displayed by the two is the same or similar, during the process of entering the full-screen AOD mode after the screen-off animation is played, there will be no obvious jump in the interface, and the display effect is coherent, improving the user experience.
[0247] In some embodiments, playing the first screen-off animation includes: obtaining a first video file, where the first video file is a resource in the first resource package, and the first 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 (for example, configuration item 12) being support for playing the screen-off animation, playing the first screen-off animation according to the third configuration item, where the second configuration item and the third configuration item (for example, configuration item 7) are configuration items in the first configuration file, the second configuration item is used to indicate whether to support playing the screen-off animation, and the third configuration item is used to indicate whether to support frame extraction when playing the screen-off animation; when the current configuration value of the third configuration item is support for frame extraction when playing the first screen-off animation, extracting frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of the multiple video frames in the first frame extraction sequence is the same as the arrangement order of the multiple video frames in the first video file; playing the first screen-off animation by playing the first frame extraction sequence in reverse.
[0248] The terminal device can search for the corresponding first video file from the first 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 first video file is a video file in the dark mode; if the current color mode is the light mode, the first video file is a video file in the light mode. If the current AOD state is the full-screen AOD mode, the first video file is a video file for full-screen display.
[0249] If the current configuration value of the second configuration item is support for playing the screen-off animation, and the current configuration value of the third configuration item is support for frame extraction when playing the first screen-off animation, then the first video file can be extracted and played in reverse according to a preset frame extraction multiple to play the first screen-off animation.
[0250] If the current configuration of the second configuration item supports playing the screen-off animation and the current configuration value of the third configuration item does not support frame extraction when playing the screen-off animation, there is no need to extract frames from the first video file, and the first screen-off animation is played by playing the video frames in the first video file in reverse frame by frame.
[0251] 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.
[0252] In some embodiments, the screen-off interface display method may also be as Figure 10 shown, including:
[0253] S1001. In the full-screen 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.
[0254] In the full-screen AOD mode, the user performs a third operation such as clicking the power button to turn on the screen.
[0255] S1002. In response to the first operation, the electronic device enters the screen-on state and plays the first lock screen animation according to the fourth configuration item (for example, configuration item 14), where the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, and the first lock screen animation is the first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, and the number of frames in the first video interval is the total number of frames of the first lock screen animation.
[0256] In response to the third operation of turning on the screen, the electronic device enters the screen-on state. At this time, the third operation does not input a password, and the electronic device will not be unlocked. Instead, it plays the first video interval from the first frame to the second frame in the first video file according to the total number of frames of the first lock screen animation indicated by the fourth configuration item, so as to play the first lock screen animation. For example, when the fourth configuration item is 36, the electronic device plays the first video interval from the first frame to the 36th frame of the first video file to implement the playback of the first lock screen animation.
[0257] S1003. After playing the first lock screen animation, enter the first screen-on and lock screen state.
[0258] S1004. In the first screen-on and lock screen state, display the first lock screen interface, and the background image of the first lock screen interface is the last frame of the first lock screen animation.
[0259] In the first screen-on and lock screen state, the electronic device displays the first lock screen interface. Among them, the background image of the first lock screen interface is the last frame of the first 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.
[0260] In some embodiments, when the first theme supports a depth-of-field effect, after the first theme is selected in response to a first operation, the method includes: obtaining a first lock screen picture from a first resource pack, where the first lock screen picture is a resource in the first resource pack, and the first lock screen picture and the second frame include the same display content; in the first screen-on lock screen state, the step of displaying the first lock screen interface includes: in the first screen-on lock screen state, displaying the first lock screen interface; and displaying the first lock screen picture above the layer of the first lock screen interface.
[0261] If the first theme supports a depth-of-field effect, then a layer of the first lock screen picture can be generated above the layer of the lock screen interface for displaying the first lock screen picture above the layer of the first lock screen interface. When other operations are received, the layer of the first lock screen interface is destroyed, and the first lock screen interface is displayed. The content displayed by the first lock screen picture is the same as the last frame (i.e., the second frame) of the first lock screen animation, and it can display the depth-of-field effect, enabling a continuous animation to be displayed during the process of entering the lock screen interface from the full-screen AOD state without interface jumps, thus enhancing the user experience.
[0262] In some embodiments, the method further includes: in the first screen-on lock screen state, receiving 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, playing a first desktop animation according to a fourth configuration item and a fifth configuration item (such as configuration item 15), where the fifth configuration item indicates the total number of frames of the first desktop animation, and the first desktop animation is a second video segment from the third frame to the fourth frame in a first video file, the third frame is the next frame of the second frame, and the number of frames in the second video segment is the total number of frames of the first desktop animation; after playing the first desktop animation, displaying a first desktop, where the background picture of the first desktop is the fourth frame.
[0263] If the user receives a fourth operation to unlock the electronic device while the first lock screen interface is being displayed, then the first 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 third frame indicated by the fourth configuration item and the fourth frame indicated by the fifth configuration item to play the first desktop animation. Since the background picture of the first desktop is the fourth frame, the display effect from the lock screen interface to the desktop can be made continuous without interface jumps, enhancing the user experience.
[0264] In some embodiments, the method further includes: in the full-screen 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 unlocking state and plays a first video file according to a fourth configuration item and a fifth configuration item, where the fourth configuration item and the fifth configuration item are configuration items in a first configuration file, the first video file includes a first lock screen animation and a first desktop animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is a first video segment from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, the number of frames in the first video segment is the total number of frames of the first lock screen animation, the fifth configuration item indicates the total number of frames of the first desktop animation, the first desktop animation is a second video segment from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames in the second video segment is the total number of frames of the first desktop animation; after playing the first video file, display a first desktop, and the background image of the first desktop is the fourth frame.
[0265] If the user directly performs the fifth operation to unlock the screen in the full-screen AOD mode, for example, touches the fingerprint spot displayed in the AOD mode to input a fingerprint for unlocking, the terminal device can continuously play the above-mentioned first lock screen animation and first desktop animation and enter the desktop, and the display effect of this process is coherent. Since the background image of the first desktop is the fourth frame, it can make the display effect coherent from the lock screen interface to the desktop. And since the background image of the first desktop is the fourth frame, it can make the display effect coherent from the lock screen interface to the desktop without interface jumps, improving the user experience.
[0266] In some embodiments, the method of the embodiments of the present application may further include: receiving a sixth operation input by a user, where the sixth operation is an operation to switch the AOD state; in response to the sixth operation, switching from the full-screen AOD mode to the partial AOD mode; receiving a seventh operation performed by the user in the screen-on unlocking state, where the seventh operation is a screen-off operation; in response to the seventh operation, playing a second screen-off animation; after playing the second screen-off animation, entering the partial AOD mode, where the second screen-off animation is a resource in a first resource package, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the partial AOD mode; where, in the partial AOD mode, the proportion of the number of first pixel points in all pixel points on the screen of the electronic device is less than a second preset ratio, and the second preset ratio is less than the first preset ratio.
[0267] When the user performs the sixth operation to switch the AOD state in the AOD state setting interface, the terminal device responds to the sixth operation and switches the full-screen AOD mode to the partial AOD mode. If the user performs the seventh operation to turn off the screen, the terminal device can play the second screen-off animation corresponding to the partial AOD mode.
[0268] It should be noted that the last frame of the second screen-off animation is associated with the screen-off picture displayed in the partial AOD mode, that is, the content displayed by both is the same or similar. During the process of switching from the last frame of the second screen-off animation to the partial AOD mode, the user will not feel an obvious jump in the interface, improving the user experience. This method supports the switching of different AOD states, has strong flexibility, and can adapt to different needs of users.
[0269] In some embodiments, playing the second screen-off animation includes: obtaining a second video file, where the second video file is a video file in the first resource pack, and the second video file corresponds to the partial AOD mode and the current color mode; determining a first playback interval from the second video file according to the sixth configuration item (e.g., configuration item 10), the seventh configuration item (e.g., configuration item 11), the eighth configuration item (e.g., configuration item 3), the ninth configuration item (e.g., configuration item 8), the tenth configuration item (e.g., configuration item 9), and the eleventh configuration item (e.g., configuration item 4). 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 second video file. The first playback interval includes a target partial lock screen animation and a second desktop animation. The sixth configuration item indicates the number of multiple partial lock screen animations (multiple animations) in the second video file. The multiple partial lock screen animations correspond to multiple display positions of the screen-off pictures in the partial AOD mode. The seventh configuration item indicates the target partial lock screen animation corresponding to the second screen-off animation. The target partial lock screen animation is one of the multiple partial lock screen animations. The eighth configuration item indicates the total number of frames of the multiple partial lock screen animations. The ninth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations. The tenth configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations. The eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; the first partial lock screen animation is the third video interval from the fifth frame to the sixth frame in the second video file. The fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first partial lock screen animation; the second partial lock screen animation is the fourth video interval from the seventh frame to the eighth frame in the second video file. The seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second partial lock screen animation; the multiple partial lock screen animations are the fifth video interval from the fifth frame to the ninth frame in the second video file. The fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multiple partial lock screen animations; the second desktop animation is the sixth video interval from the tenth frame to the eleventh frame in the second video file. The tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video interval is the total number of frames of the second desktop animation; in response to the current configuration value of the second configuration item being support for playing the screen-off animation, play the second screen-off animation according to the third configuration item. The third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation; when the current configuration value of the third configuration item is that frame extraction is supported when playing the second screen-off animation, extract frames from the first playback interval according to a preset frame extraction multiple to obtain a second frame extraction sequence; play the second screen-off animation by playing the second frame extraction sequence in reverse.
[0270] The above second 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.
[0271] During the screen-off process, the terminal device can select one segment from multiple segments of partial lock screen animations as the target partial lock screen animation based on the above sixth to tenth configuration items, and then the first waiting playback interval of the second desktop animation. After that, the terminal device can play the second screen-off animation according to the instructions of the above configuration items. Specifically, when the current configuration value of the third configuration item is that frame extraction is supported when playing the second screen-off animation, the first waiting playback interval is played in reverse with frame extraction to play the second screen-off animation. If the current configuration value of the third configuration item is that frame extraction is not supported when playing the screen-off animation, the first waiting playback interval is played frame by frame in reverse to play the second screen-off animation.
[0272] Through the above configuration items, the playback area, method, and speed of the screen-off animation can be flexibly configured, and the usage scenarios are more diverse.
[0273] Since the last frame of the second screen-off animation is associated with the off-screen picture displayed in the partial AOD mode, and the two display the same or similar content, there will be no obvious jump in the interface, improving the user experience.
[0274] In some embodiments, the method further includes: in the partial AOD mode, receiving an eighth operation input by the user, where the eighth operation is used to turn on the screen of the electronic device; in response to the eighth operation, the electronic device enters the screen-on state, and plays a second lock screen animation according to the ninth, tenth, eleventh configuration items, and the current display position of the off-screen picture in the partial AOD mode. The second lock screen animation is one of multiple segments of partial lock screen animations, and the first frame in the second lock screen animation is associated with the current display position; after playing the second lock screen animation, enter the second screen-on lock screen state; in the second screen-on lock screen state, display a second lock screen interface, and the background picture of the second lock screen interface is the last frame of the second lock screen animation.
[0275] In the partial AOD mode, if the user inputs a fingerprint at the fingerprint spot on the off-screen interface, the terminal device can determine, from multiple segments of partial lock screen animations, the segment whose starting position and current display position are the closest as the second lock screen animation for playback according to the ninth, tenth, eleventh configuration items, and the current display position of the off-screen picture in the partial AOD mode.
[0276] Since the background picture of the second lock screen interface is the last frame of the second lock screen animation, there will be no obvious jump in the interface during the unlocking process, improving the user experience.
[0277] In some embodiments, the method further includes: in the second screen-on and locked state, receiving an eighth operation input by the user, where the eighth operation is used to unlock the screen of the electronic device; in response to the eighth operation, playing a second desktop animation according to the eighth configuration item and the eleventh configuration item; after playing the second desktop animation, displaying a second desktop, and the background image of the second desktop is the eleventh frame.
[0278] If, in the second screen-on and locked state, the terminal device receives an unlocking operation input by the user, such as an operation of inputting a fingerprint to unlock, the electronic device can play the second desktop animation indicated by the eighth configuration item and the eleventh configuration item and enter the second desktop. Since the background image of the second desktop is the last frame of the second video file, the display effect is coherent.
[0279] In some embodiments, the method further includes: in the partial AOD mode, receiving a ninth operation input by the user, where the ninth operation is used to unlock the screen of the electronic device; in response to the ninth operation, the electronic device enters the screen-on state and sequentially plays a second lock screen animation and a second desktop animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the screen-off image in the partial AOD mode. The second lock screen animation is one of multiple partial lock screen animations in the second video file, the second video file is a resource in the first resource package, the multiple partial lock screen animations correspond to multiple display positions of the screen-off image in the partial AOD mode, the first frame in the second lock screen animation is associated with the current display position, the ninth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations, the tenth configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, and the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; after playing the second desktop animation, displaying a second desktop, and the background image of the second desktop is the last frame of the second desktop animation.
[0280] If the user directly performs the ninth 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 second desktop animation to enter the second desktop. This can make the display effect coherent when entering the desktop from the AOD state, without interface jumps, improving the user experience.
[0281] Examples of the method provided in this application are described in detail above. It can be understood that, in order to implement the above functions, the corresponding device includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed 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 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.
[0282] This application can divide the function modules of the lock screen interface device according to the above method examples. For example, each function can be divided into each function 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 function module. It should be noted that the division of modules in this application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0283] Figure 11 The structural schematic diagram of a lock screen interface display device provided by this application is shown. Device 1100 is applied to an electronic device and includes:
[0284] A receiving module 1101, configured to receive a first operation input by a user on a theme selection interface, where the first operation is used to select a first theme;
[0285] A theme module 1102, configured to, in response to the first operation, select the first theme. The first theme corresponds to a first configuration file and a first resource package. The first configuration file at least includes a first configuration item, and the first configuration item is used to indicate whether the first theme supports the full-screen AOD mode;
[0286] The receiving module 1101 is further configured to receive a second operation performed by the user in an unlocked state, where the second operation is a screen-off operation;
[0287] A processing module 1103, 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 that the first theme supports the full-screen AOD mode, enter the full-screen AOD mode. The first screen-off animation is a resource in the first resource package, and the last frame of the first screen-off animation is associated with the lock 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.
[0288] In some embodiments, the processing module 1103 is specifically configured to obtain a first video file, where the first video file is a resource in a first resource package, and the first 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 a first screen-off animation according to the third configuration item, where the second configuration item and the third configuration item are configuration items in a first configuration file, the second configuration item is used to indicate whether to support playing the screen-off animation, and the third configuration item is used to indicate whether to support frame extraction when playing the screen-off animation; when the current configuration value of the third configuration item is that frame extraction is supported when playing the first screen-off animation, extract frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of multiple video frames in the first frame extraction sequence is the same as the arrangement order of multiple video frames in the first video file; play the first screen-off animation by playing the first frame extraction sequence in reverse; or, when the current configuration value of the third configuration item is that frame extraction is not supported when playing the screen-off animation, play the video frames in the first video file frame by frame in reverse to play the first screen-off animation.
[0289] In some embodiments, the receiving module 1101 is further configured to, in the full-screen AOD mode, receive a third operation input by a user, where the third operation is used to turn on the screen of the electronic device; the processing module 1103 is specifically configured to, in response to the first operation, the electronic device enters the screen-on state, play a first lock screen animation according to the fourth configuration item, and after playing the first lock screen animation, enter the first screen-on and locked state; and in the first screen-on and locked state, display a first lock screen interface, where the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, the first lock screen animation is a first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, the number of frames in the first video interval is the total number of frames of the first lock screen animation, and the background image of the first lock screen interface is the last frame of the first lock screen animation.
[0290] In some embodiments, when the first theme supports the depth-of-field effect, the theme module 1102 is further configured to obtain a first lock screen picture from the first resource package, where the first lock screen picture is a resource in the first resource package, and the first lock screen picture and the second frame include the same display content; the processing module 1103 is specifically configured to, in the first screen-on and locked state, display the first lock screen interface; and above the layer of the first lock screen interface, display the first lock screen picture.
[0291] In some embodiments, the receiving module 1101 is further configured to, in the first screen-on and locked state, receive a fourth operation input by a user, where the fourth operation is used to unlock the screen of the electronic device.
[0292] The processing module 1103 is further configured to, in response to a fourth operation, play a first desktop animation according to a fourth configuration item and a fifth configuration item, and after playing the first desktop animation, display a first desktop. The fifth configuration item indicates the total number of frames of the first desktop animation. The first desktop animation is a second video segment from the third frame to the fourth frame in the first video file. The third frame is the next frame of the second frame. The number of frames in the second video segment is the total number of frames of the first desktop animation. The background image of the first desktop is the fourth frame.
[0293] In some embodiments, the receiving module 1101 is further configured to, in the full-screen AOD mode, receive a fifth operation input by a user, where the fifth operation is used to unlock the screen of the electronic device;
[0294] The processing module 1103 is further configured to, in response to the fifth operation, the electronic device enters the screen-on and unlock state, and play the first video file according to the fourth configuration item and the fifth configuration item. After playing the first video file, display the first desktop. The fourth configuration item and the fifth configuration item are configuration items in the first configuration file. The first video file includes a first lock screen animation and a first desktop animation. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The first lock screen animation is a first video segment from the first frame to the second frame in the first video file. The first frame is the first frame of the first video file. The number of frames in the first video segment is the total number of frames of the first lock screen animation. The fifth configuration item indicates the total number of frames of the first desktop animation. The first desktop animation is a second video segment from the third frame to the fourth frame in the first video file. The third frame is the next frame of the second frame. The number of frames in the second video segment is the total number of frames of the first desktop animation. The background image of the first desktop is the fourth frame.
[0295] In some embodiments, the receiving module 1101 is further configured to receive a sixth operation input by a user, where the sixth operation is an operation to switch the AOD state;
[0296] The processing module 1103 is further configured to, in response to the sixth operation, switch from the full-screen AOD mode to the partial AOD mode;
[0297] The receiving module 1101 is further configured to receive a seventh operation performed by the user in the screen-on and unlock state, where the seventh operation is a screen-off operation;
[0298] The processing module 1103 is further configured to, in response to the seventh operation, play a second screen-off animation, and after playing the second screen-off animation, enter the partial AOD mode. The second screen-off animation is a resource in the first resource package. The last frame of the second screen-off animation is associated with the screen-off picture displayed in the partial AOD mode; wherein, in the partial AOD mode, the proportion of the number of the first pixel points in all the pixel points on the screen of the electronic device is less than a second preset ratio, and the second preset ratio is less than the first preset ratio.
[0299] In some embodiments, the processing module 1103 is specifically configured to obtain a second video file, where the second video file is a video file in the first resource package, and the second video file corresponds to a local AOD mode and a current color mode; and determine a first playback interval from the second video file according to the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item. The arrangement order of multiple video frames in the first playback interval is the same as the arrangement order of the multiple video frames in the second video file. The first playback interval includes a target local lock screen animation and a second desktop animation. The sixth configuration item indicates the number of multiple segments of local lock screen animations in the second 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 seventh configuration item indicates the target local lock screen animation corresponding to the second screen-off animation, and the target local lock screen animation is one of the multiple segments of local lock screen animations. The eighth configuration item indicates the total number of frames of the multiple segments of local lock screen animations. The ninth 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 tenth 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 eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; the first segment of local lock screen animation is the third video interval from the fifth frame to the sixth frame in the second video file, the fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first segment of local lock screen animation; the second segment of local lock screen animation is the fourth video interval from the seventh frame to the eighth frame in the second video file, the seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second segment of local lock screen animation; the multiple segments of local lock screen animations are the fifth video interval from the fifth frame to the ninth frame in the second video file, the fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multiple segments of local lock screen animations; the second desktop animation is the sixth video interval from the tenth frame to the eleventh frame in the second video file, the tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video interval is the total number of frames of the second desktop animation; in response to the current configuration value of the second configuration item being to support playing the screen-off animation, play the second screen-off animation according to the third configuration item, and the third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation;
[0300] The processing module 1103 is further configured to support frame extraction when the current configuration value of the third configuration item is to play the second screen-off animation, extract frames from the first interval to be played according to a preset frame extraction multiple to obtain a second frame extraction sequence; play the second screen-off animation by playing the second frame extraction sequence in reverse; or, in response to the current configuration value of the third configuration item being that frame extraction is not supported when playing the screen-off animation, play the second screen-off animation by playing the first interval to be played frame by frame in reverse, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the partial AOD mode.
[0301] In some embodiments, the receiving module 1101 is further configured to, in the partial AOD mode, receive an eighth operation input by a user, where the eighth operation is used to turn on the screen of the electronic device;
[0302] The processing module 1103 is further configured to, in response to the eighth operation, the electronic device enters a lit screen state, and play a second lock screen animation according to the current display positions of the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the screen-off picture in the partial AOD mode. After playing the second lock screen animation, enter a second lit screen and lock screen state; in the second lit screen and lock screen state, display a second lock screen interface. The second lock screen animation is one of multiple partial lock screen animations, the first frame in the second lock screen animation is associated with the current display position, and the background picture of the second lock screen interface is the last frame of the second lock screen animation.
[0303] In some embodiments, the receiving module 1101 is further configured to, in the second lit screen and lock screen state, receive an eighth operation input by a user, where the eighth operation is used to unlock the screen of the electronic device;
[0304] The processing module 1103 is further configured to, in response to the eighth operation, play a second desktop animation according to the eighth configuration item and the eleventh configuration item; after playing the second desktop animation, display a second desktop, and the background picture of the second desktop is the eleventh frame.
[0305] In some embodiments, the receiving module 1101 is further configured to, in the partial AOD mode, receive a ninth operation input by a user, where the ninth operation is used to unlock the screen of the electronic device;
[0306] The processing module 1103 is further configured to, in response to a ninth operation, cause the electronic device to enter a screen-on state, and sequentially play a second lock screen animation and a second desktop animation according to the current display positions of the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the off-screen pictures in the local AOD mode. After playing the second desktop animation, the second desktop is displayed. The second lock screen animation is one of multiple local lock screen animations in a second video file, the second video file is a resource in a first resource package, the multiple local lock screen animations correspond to multiple display positions of the off-screen pictures in the local AOD mode, the first frame in the second lock screen animation is associated with the current display position, the ninth configuration item indicates the total number of frames of the first local lock screen animation among the multiple local lock screen animations, the tenth configuration item indicates the total number of frames of the second local lock screen animation among the multiple local lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in a first configuration file, and the background picture of the second desktop is the last frame of the second desktop animation.
[0307] For the specific manner in which the apparatus 1100 executes the off-screen interface method and the beneficial effects achieved, reference may be made to the relevant descriptions in the method embodiments, which will not be elaborated herein.
[0308] 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 1 the terminal device 100 shown in the figure, which is used to execute the above-mentioned off-screen interface method. In the case of adopting an integrated unit, the terminal device may include a processing module, a storage module, and a communication module. Among them, the processing module may be used to control and manage the actions of the terminal device. For example, it may 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 may be used to support the terminal device in executing the storage of program codes and data, etc. The communication module may be used to support the communication of the terminal device with other devices.
[0309] Among them, the processing module may be a processor or a controller. It may implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure of the present application. The processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a digital signal processor (DSP), and a microprocessor, etc. The storage module may be a memory. The communication module may specifically be a device for interacting with other terminal devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0310] In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in this embodiment may be a device with Figure 1 the structure shown in the figure.
[0311] An embodiment of the present application further 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 method described in any of the above embodiments.
[0312] An embodiment of the present application further 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 method in the above embodiment.
[0313] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding 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.
[0314] In several embodiments provided in the present application, it should be understood that the disclosed device and method 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 mutual coupling, direct coupling or communication connection can be through some interfaces, indirect coupling or communication connection of the device or unit. The replaced unit 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.
[0315] In addition, each functional unit in each embodiment of the present application 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 integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0316] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions to enable 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 of the embodiments of the present application. The aforementioned 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.
[0317] 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 by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall 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: Receiving a first operation input by a user on a theme selection interface, where the first operation is used to select a first theme; In response to the first operation, selecting the first theme, where the first theme corresponds to a first configuration file and a first resource pack, and at least a first configuration item is included in the first configuration file, and the first configuration item is used to indicate whether the first theme supports the full-screen Always-on Display (AOD) mode; Receiving a second operation performed by the user in the unlocked state, where the second operation is a screen-off operation; In response to the second operation, playing a first screen-off animation; After playing the first screen-off animation, in response to the current configuration value of the first configuration item being that the first theme supports the full-screen AOD mode, entering the full-screen AOD mode, where the first screen-off animation is a resource in the first resource pack, and the last frame of the first screen-off animation is associated with the screen-off picture displayed in the full-screen AOD mode; Wherein, in the full-screen AOD mode, the proportion of the number of first pixel points in all pixel points of the screen of the electronic device exceeds a first preset ratio, and the first pixel points are the pixel points lit on the screen.
2. The method according to claim 1, characterized in that The playing of the first screen-off animation includes: Obtaining a first video file, where the first video file is a resource in the first resource pack, and the first 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 a second configuration item being that playing the screen-off animation is supported, playing the first screen-off animation according to a third configuration item, where the second configuration item and the third configuration item are configuration items in the first configuration file, the second configuration item is used to indicate whether playing the screen-off animation is supported, and the third configuration item is used to indicate whether frame extraction is supported when playing the screen-off animation; When the current configuration value of the third configuration item is that frame extraction is supported when playing the first screen-off animation, extracting frames from the first video file according to a preset frame extraction multiple to obtain a first frame extraction sequence, and the arrangement order of multiple video frames in the first frame extraction sequence is the same as the arrangement order of the multiple video frames in the first video file; Playing the first screen-off animation in reverse order by playing the first frame extraction sequence; Or, When the current configuration value of the third configuration item is that frame extraction is not supported when playing the screen-off animation, playing the video frames in the first video file frame by frame in reverse order to play the first screen-off animation.
3. The method according to claim 2, wherein The method further includes: In the full-screen AOD mode, receiving a third operation input by the user, where the third operation is used to light up the screen of the electronic device; In response to the first operation, the electronic device enters the screen-on state and plays a first lock screen animation according to a fourth configuration item, where the fourth configuration item is used to indicate the total number of frames of the first lock screen animation, and the first lock screen animation is a first video interval from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, and the number of frames in the first video interval is the total number of frames of the first lock screen animation; After playing the first lock screen animation, entering a first screen-on and lock screen state; In the first screen-on and locked state, a first lock screen interface is displayed, and the background image of the first lock screen interface is the last frame of the first lock screen animation.
4. The method according to claim 3, wherein When the first theme supports the depth-of-field effect, after the first theme is selected in response to the first operation, the method includes: Obtaining a first lock screen picture from the first resource pack, where the first lock screen picture is a resource in the first resource pack, and the first lock screen picture and the second frame include the same display content; The step of displaying the first lock screen interface in the first screen-on and locked state includes: In the first screen-on and locked state, display the first lock screen interface; On top of the layer of the first lock screen interface, display the first lock screen picture.
5. The method according to claim 3, characterized in that The method further includes: In the first screen-on and locked state, receive a fourth operation input by the user, where the fourth operation is used to unlock the screen of the electronic device; In response to the fourth operation, play a first desktop animation according to the fourth configuration item and the fifth configuration item, where the fifth configuration item indicates the total number of frames of the first desktop animation, and the first desktop animation is the second video segment from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames of the second video segment is the total number of frames of the first desktop animation; After playing the first desktop animation, display a first desktop, and the background image of the first desktop is the fourth frame.
6. The method according to claim 2, characterized in that, The method further includes: In the full-screen AOD mode, receive a fifth operation input by the user, where the fifth operation is used to unlock the screen of the electronic device; In response to the fifth operation, the electronic device enters the screen-on and unlocked state and plays the first video file according to the fourth configuration item and the fifth configuration item. The fourth configuration item and the fifth configuration item are configuration items in the first configuration file. The first video file includes a first lock screen animation and a first desktop animation. The fourth configuration item is used to indicate the total number of frames of the first lock screen animation. The first lock screen animation is the first video segment from the first frame to the second frame in the first video file, the first frame is the first frame of the first video file, and the number of frames of the first video segment is the total number of frames of the first lock screen animation. The fifth configuration item indicates the total number of frames of the first desktop animation. The first desktop animation is the second video segment from the third frame to the fourth frame in the first video file, the third frame is the next frame of the second frame, and the number of frames of the second video segment is the total number of frames of the first desktop animation; After playing the first video file, display a first desktop, and the background image of the first desktop is the fourth frame.
7. The method according to claim 1, wherein The method further includes: Receive a sixth operation input by the user, where the sixth operation is an operation to switch the AOD state; In response to the sixth operation, switch from the full-screen AOD mode to the partial AOD mode; Receive a seventh operation performed by the user in the screen-on and unlocked state, where the seventh operation is a screen-off operation; In response to the seventh operation, play a second screen-off animation; After playing the second screen-off animation, enter the local AOD mode. The second screen-off animation is a resource in the first resource package, and the last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode; Wherein, in the local AOD mode, the proportion of the number of the first pixel points in all the pixel points on the screen of the electronic device is less than a second preset ratio, and the second preset ratio is less than the first preset ratio.
8. The method according to claim 7, wherein The playing of the second screen-off animation includes: Obtain a second video file, where the second video file is a video file in the first resource package, and the second video file corresponds to the local AOD mode and the current color mode of the current system; Determine a first interval to be played from the second video file according to the sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item. The arrangement order of multiple video frames in the first interval to be played is the same as the arrangement order of the multiple video frames in the second video file. The first interval to be played includes a target local lock screen animation and a second desktop animation. The sixth configuration item indicates the number of multiple segments of local lock screen animations in the second video file, and the multiple segments of local lock screen animations correspond to multiple display positions of the screen-off picture in the local AOD mode. The seventh configuration item indicates the target local lock screen animation corresponding to the second screen-off animation, and the target local lock screen animation is one of the multiple segments of local lock screen animations. The eighth configuration item indicates the total number of frames of the multiple segments of local lock screen animations. The ninth 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 tenth 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 eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file. The sixth configuration item, the seventh configuration item, the eighth configuration item, the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; The first segment of local lock screen animation is a third video interval from the fifth frame to the sixth frame in the second video file. The fifth frame is the first frame of the second video file, and the number of frames in the third video interval is the total number of frames of the first segment of local lock screen animation; The second segment of local lock screen animation is a fourth video interval from the seventh frame to the eighth frame in the second video file. The seventh frame is the next frame of the sixth frame, and the number of frames in the fourth video interval is the total number of frames of the second segment of local lock screen animation; The multiple segments of local lock screen animations are a fifth video interval from the fifth frame to the ninth frame in the second video file. The fifth video interval includes the third video interval and the fourth video interval, and the number of frames in the fifth video interval is the total number of frames of the multiple segments of local lock screen animations; The second desktop animation is the sixth video segment from the tenth frame to the eleventh frame in the second video file. The tenth frame is the next frame of the ninth frame, and the number of frames in the sixth video segment is the total number of frames of the second desktop animation; In response to the current configuration value of the second configuration item being to support playing the screen-off animation, play the second screen-off animation according to the third configuration item, where the third configuration item is used to indicate whether frame extraction is supported when playing the second screen-off animation; When the current configuration value of the third configuration item is that frame extraction is supported when playing the second screen-off animation, extract frames from the first interval to be played according to a preset frame extraction multiple to obtain a second frame-extracted sequence; Play the second screen-off animation by playing the second frame-extracted sequence in reverse; Or, In response to the current configuration value of the third configuration item being that frame extraction is not supported when playing the screen-off animation, play the second screen-off animation by playing the first interval to be played frame by frame in reverse. The last frame of the second screen-off animation is associated with the screen-off picture displayed in the local AOD mode.
9. The method according to claim 8, wherein The method further includes: In the local AOD mode, receive an eighth operation input by the user, where the eighth operation is used to turn on the screen of the electronic device; In response to the eighth operation, the electronic device enters the screen-on state and plays a second lock screen animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the screen-off picture in the local AOD mode. The second lock screen animation is one of the multiple local lock screen animations, and the first frame in the second lock screen animation is associated with the current display position; After playing the second lock screen animation, enter the second screen-on and locked state; In the second screen-on and locked state, display a second lock screen interface, where the background picture of the second lock screen interface is the last frame of the second lock screen animation.
10. The method according to claim 9, characterized in that, The method further includes: In the second screen-on and locked state, receive an eighth operation input by the user, where the eighth operation is used to unlock the screen of the electronic device; In response to the eighth operation, play the second desktop animation according to the eighth configuration item and the eleventh configuration item; After playing the second desktop animation, display a second desktop, where the background picture of the second desktop is the eleventh frame.
11. The method according to claim 7, characterized in that, The method further includes: In the local AOD mode, receive a ninth operation input by the user, where the ninth operation is used to unlock the screen of the electronic device; In response to the ninth operation, the electronic device enters the screen-on state and sequentially plays a second lock screen animation and a second desktop animation according to the ninth configuration item, the tenth configuration item, the eleventh configuration item, and the current display position of the off-screen picture in the partial AOD mode. The second lock screen animation is one of multiple partial lock screen animations in a second video file, the second video file is a resource in the first resource package, the multiple partial lock screen animations correspond to multiple display positions of the off-screen picture in the partial AOD mode, the first frame in the second lock screen animation is associated with the current display position, the ninth configuration item indicates the total number of frames of the first partial lock screen animation among the multiple partial lock screen animations, the tenth configuration item indicates the total number of frames of the second partial lock screen animation among the multiple partial lock screen animations, the eleventh configuration item indicates the total number of frames of the second desktop animation in the second video file, and the ninth configuration item, the tenth configuration item, and the eleventh configuration item are configuration items in the first configuration file; After playing the second desktop animation, a second desktop is displayed, and the background picture of the second desktop is the last frame of the second desktop animation.
12. An electronic device, characterized in that, Comprising: A processor, a memory, and an interface; The processor, the memory, and the interface cooperate with each other to enable the electronic device to execute the method according to any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the processor is enabled to execute the method according to any one of claims 1 to 11.
Citation Information
Cited By
Interface always on display method, electronic device, and computer-readable storage medium
EP4769133A1
Interface always on display method, electronic device, and computer-readable storage medium
WO2025148685A1