Screen-off interface display method, electronic equipment and computer readable storage medium
By displaying the screen-out interface in the full-screen AOD mode of the terminal device and controlling the playback of lock screen and desktop animation, the problem of single display effect of traditional terminal devices is solved, and the continuous transition from screen-out to screen-out is achieved, improving the user experience.
Patent Information
- Application Number
- CN202410042485.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-07-18
Smart Images

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