Wallpaper display method and electronic device

By generating target images in real time within foldable screen devices and processing wallpaper images using artificial intelligence technology based on changes in the folding angle, the problems of poor feel and large storage space consumption of dynamic wallpapers on foldable screen devices are solved, achieving smooth dynamic wallpaper display and personalized settings.

WO2025228096A9PCT designated stage Publication Date: 2026-05-15HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-04-09
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

In existing technologies, foldable screen devices often suffer from poor responsiveness and large storage space consumption during the opening and closing process when displaying live wallpapers, and users also find it difficult to personalize the live wallpapers.

Method used

By generating target images in real time within foldable screen devices, and processing the original wallpaper images using artificial intelligence image generation technology based on changes in the folding angle, an adapted intermediate image is generated, achieving a gradient effect for dynamic wallpapers, improving responsiveness and saving storage space.

Benefits of technology

It achieves a smooth and responsive experience of dynamic wallpapers during the opening and closing process of foldable screen devices, reduces storage space usage, and supports personalized wallpaper settings by users, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025088026_15052026_PF_FP_ABST
    Figure CN2025088026_15052026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a wallpaper display method and an electronic device. The electronic device can generate a target image on the basis of a wallpaper image. When the folding angle of a foldable screen changes, the electronic device can process the wallpaper image and the target image in real time on the basis of the folding angle, so as to generate an image corresponding to the folding angle. The image corresponding to the folding angle may be an intermediate image in the gradual transition from the wallpaper image to the target image. The greater the folding angle is, the closer the image corresponding to the folding angle is to the target image. When being folded to a folding angle, the electronic device may display the image corresponding to the folding angle. By means of the method, a wallpaper displayed on the foldable screen can be dynamically adjusted on the basis of the folding angle, thereby improving the responsiveness of the electronic device when playing dynamic wallpapers during the folding and unfolding of the foldable screen.
Need to check novelty before this filing date? Find Prior Art

Description

Wallpaper display methods and electronic devices

[0001] This application claims priority to Chinese Patent Application No. 202410547218.2, filed with the China National Intellectual Property Administration on April 30, 2024, entitled "Wallpaper Display Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to wallpaper display methods and electronic devices. Background Technology

[0003] With the development of electronic devices, the wallpapers displayed on them are becoming increasingly diverse. For example, electronic devices can display static wallpapers or live wallpapers. Live wallpapers displayed on foldable screen devices can be associated with the device's folded state. Improving the user experience of using wallpapers on foldable screens is a pressing issue that needs to be addressed. Summary of the Invention

[0004] This application provides a wallpaper display method and an electronic device. The electronic device can generate a target image based on a wallpaper image, and generate an image corresponding to the folding angle based on the folding angle of the folding screen, the wallpaper image, and the target image. The image corresponding to the folding angle can be an intermediate image that gradually transitions from the wallpaper image to the target image. The larger the folding angle, the closer the image corresponding to the folding angle is to the target image. When the folding screen is folded to a certain folding angle, the electronic device can display the image corresponding to that folding angle on the folding screen. The above method can dynamically adjust the wallpaper displayed on the folding screen based on the folding angle, improving the responsiveness of the electronic device when playing live wallpapers during the opening and closing of the folding screen.

[0005] In one aspect, this application provides a wallpaper display method. This method can be applied to an electronic device with a foldable screen, the electronic device including a first image. The electronic device detects the folding angle of the foldable screen. When the folding angle of the foldable screen is a first folding angle, the electronic device displays a second image on the foldable screen. The second image is obtained based on the first folding angle, a third image, and a fourth image. The smaller the first folding angle, the closer the second image is to the third image; the larger the first folding angle, the closer the second image is to the fourth image. The third and fourth images are obtained based on the first image.

[0006] The first image mentioned above can be an image that is set as a lock screen wallpaper or desktop wallpaper on an electronic device.

[0007] As shown by the above method, the image displayed by an electronic device during the opening and closing of a foldable screen can be determined based on the folding angle. During the gradual unfolding of the foldable screen, the electronic device can present an animation effect where the third image gradually changes to the fourth image. During the gradual folding of the foldable screen, the animation effect can be the inverse of the animation effect during the gradual unfolding process, i.e., an animation effect where the fourth image gradually changes to the third image. Since the image displayed by the foldable screen of an electronic device at a certain folding angle is rendered based on that folding angle, the animation effect presented by the electronic device during the opening and closing of the foldable screen is strongly correlated with the change in the folding angle. This can improve the responsiveness of playing live wallpapers on electronic devices during the opening and closing of foldable screens.

[0008] In conjunction with the first aspect, in some embodiments, the third image is the first image, and the fourth image is an AI image obtained by processing the first image using artificial intelligence (AI) image generation technology.

[0009] In this way, during the opening and closing of the foldable screen, the dynamic wallpaper displayed on the electronic device can present an animated effect in which the original wallpaper image on the electronic device (such as lock screen wallpaper or desktop wallpaper) gradually changes into an AI image generated from that wallpaper image. For details, please refer to the description in Figure 7A of this application.

[0010] Alternatively, the third image is an image obtained by expanding the first image, and the fourth image is an AI image obtained by using AI image generation technology on the third image.

[0011] In this way, during the opening and closing of the foldable screen, the live wallpaper displayed on the electronic device can present an animated effect where the expanded image of the original wallpaper on the electronic device gradually changes into an AI image generated from that expanded image. See Figure 7B of this application for details. Understandably, the size of the first image may not be compatible with the screen size of the foldable screen. Therefore, the electronic device can expand the first image to obtain a third image. The size of the third image can be adapted to the screen size of the foldable screen. This results in a live wallpaper adapted to the screen size of the foldable screen.

[0012] Alternatively, the third and fourth images may both be AI images obtained by processing the first image using AI image generation technology.

[0013] In this way, during the opening and closing of the foldable screen, the dynamic wallpaper displayed on the electronic device can present a gradual animation effect between two AI images generated from the original wallpaper image on the electronic device. Please refer to Figure 7C of this application for details.

[0014] Alternatively, the third image can be a cropped version of the first image, and the fourth image can be the first image. The second image can be a cropped version of the fourth image based on the third image. The larger the first folding angle, the larger the cropping frame used to obtain the second image. Therefore, the larger the first folding angle, the closer the second image is to the fourth image.

[0015] In this way, during the opening and closing of the foldable screen, the live wallpaper displayed on the electronic device can present an animated effect of the scenery moving from near to far, thus providing users with a visual experience of observing objects from near to far. For details, please refer to the description in Figure 9A of this application.

[0016] Alternatively, the third image is a cropped version of the first image, and the fourth image is an expanded version of the first image.

[0017] Understandably, after image enlargement, the fourth image can present a wider field of view than the first image. Thus, during the opening and closing of the foldable screen, the live wallpaper displayed on the electronic device can present a greater range of field of view changes, enhancing the viewing experience. Please refer to Figure 9B of this application for details.

[0018] Alternatively, both the third and fourth images can be cropped from the first image, with the cropping box used to crop the third image being smaller than the cropping box used to crop the fourth image.

[0019] In conjunction with the first aspect, in some embodiments, during the process of the folding angle of the foldable screen changing from a first folding angle to a second folding angle, the electronic device displays a first image sequence on the foldable screen. The second folding angle is greater than the first folding angle. The first image in the first image sequence is the second image. Images displayed later in the first image sequence are closer to the fourth image than images displayed earlier. The first image sequence includes multiple images corresponding to folding angles within a first angle range. The first angle range is a range greater than or equal to the first folding angle and less than or equal to the second folding angle. An image corresponding to a folding angle in the first image sequence is obtained based on that folding angle, the third image, and the fourth image. The smaller the folding angle, the closer the image corresponding to that folding angle is to the third image; the larger the folding angle, the closer the image corresponding to that folding angle is to the fourth image.

[0020] In conjunction with the first aspect, in some embodiments, during the process of the folding angle of the folding screen changing from a second folding angle to a third folding angle, the electronic device displays a second image sequence on the folding screen, where the third folding angle is smaller than the second folding angle, and the image displayed later in the second image sequence is closer to the third image than the image displayed earlier; wherein, the second image sequence includes multiple images corresponding to folding angles contained in a second angle interval, and the second angle interval is an interval greater than or equal to the third folding angle and less than or equal to the second folding angle.

[0021] As can be seen, during the opening and closing of the foldable screen, the wallpaper image displayed on the electronic device can dynamically change with the folding angle. Furthermore, the animation effects as the folding angle gradually increases can be inversely related to those as the folding angle gradually decreases. Users can fold the screen back and forth to observe the animation effects that gradually change from the third image to the fourth image or vice versa. This enhances the user experience of using the foldable screen.

[0022] In conjunction with the first aspect, in some embodiments, when the folding angle of the folding screen changes to 180°, the electronic device displays a fourth image on the folding screen. Specifically, the electronic device 100 can detect the folding angle of the folding screen and store a corresponding error range. When the folding angle of the folding screen changes to within the 180° error range (e.g., 175°, 178°, etc.), the electronic device can display a fourth image on the folding screen.

[0023] In some embodiments, after the electronic device displays a fourth image on the foldable screen, the electronic device detects a first operation and switches the fourth image to a fifth image on the foldable screen, the fifth image being obtained based on the first image. For example, the fifth image may be an AI image obtained from the first image using AI image generation technology.

[0024] As can be seen, after the foldable screen unfolds, the electronic device can respond to user input by switching wallpapers on the foldable screen. The multiple wallpapers displayed can be generated based on the wallpaper images originally set on the electronic device. This enhances the user experience when using wallpapers.

[0025] In conjunction with the first aspect, in some embodiments, as the folding angle of the folding screen decreases from 180° to a fourth folding angle, the electronic device displays a third image sequence on the folding screen. The first image in the third image sequence is the fourth image. Images displayed later in the first image sequence are closer to the sixth image than images displayed earlier. The sixth image is derived from the first image. The first image sequence includes multiple images corresponding to folding angles within a third angle range, where the third angle range is greater than or equal to the fourth folding angle and less than or equal to 180°. An image corresponding to a folding angle in the third image sequence is derived from a folding angle, the fourth image, and the sixth image. The smaller the folding angle, the closer the image corresponding to that folding angle is to the sixth image; the larger the folding angle, the closer the image corresponding to that folding angle is to the fourth image.

[0026] As can be seen, during the gradual unfolding of the foldable screen, the live wallpaper displayed on the electronic device can exhibit an animation effect that transitions from the third image to the fourth image. When the foldable screen is unfolded, the electronic device can display the fourth image. Furthermore, during the gradual folding of the foldable screen, the animation effect of the live wallpaper displayed on the electronic device can differ from the animation effect during the gradual unfolding process; for example, it could exhibit an animation effect that transitions from the fourth image to the sixth image. This can enhance the user's enjoyment of using the foldable screen.

[0027] In conjunction with the first aspect, in some embodiments, the electronic device displays one or more interface elements on a foldable screen, and the display style and / or display position of the one or more interfaces are determined according to the folding angle of the foldable screen.

[0028] As can be seen, during the opening and closing of the foldable screen, electronic devices can overlay the animation effects of one or more interface elements (such as time information) on the live wallpaper, increasing the fun of opening and closing the foldable screen and improving the user experience of using the foldable screen.

[0029] In conjunction with the first aspect, in some embodiments, the electronic device further includes a first display screen, which is disposed opposite to the folding screen. The electronic device can display a first image on the first display screen before the folding screen displays a second image, wherein the electronic device is in a folded state; when the folding angle of the folding screen increases to a fifth folding angle, the electronic device lights up the folding screen and displays a third image on the folding screen, wherein the fifth folding angle is less than the first folding angle.

[0030] As can be seen, when the electronic device is in a folded state, it can light up the first display screen and show the wallpaper image on it. With the first display screen lit, when the folded screen is detected to unfold (e.g., the folding angle increases to the fifth folding angle), the electronic device can switch displays to show the folded screen. Furthermore, as the folding angle changes, the electronic device can display an image corresponding to that folding angle on the folded screen, presenting a corresponding image gradient animation effect.

[0031] In conjunction with the first aspect, in some embodiments, before the second image is displayed on the foldable screen, the electronic device detects a screen-on event and determines, based on the screen-on event, whether the electronic device will enter a lock screen state or a desktop state after the screen is turned on; in response to the screen-on event, the electronic device turns on the foldable screen. The aforementioned screen-on event can be a screen-on event indicating that the foldable screen is turned on.

[0032] As can be seen, the electronic device displays dynamic wallpapers that change with the folding angle in both lock screen and desktop modes, presenting a gradual animation effect. This enhances the user experience when using lock screen and desktop wallpapers on a foldable screen.

[0033] Secondly, this application provides an electronic device. The electronic device may include a foldable screen, a memory, and a processor. The memory can be used to store computer programs. The processor can be used to invoke the computer program to execute any of the possible implementation methods described in the first aspect.

[0034] Thirdly, this application provides a computer-readable storage medium storing instructions that, when executed by a processor, can implement any of the possible implementations described in the first aspect.

[0035] Fourthly, this application provides a computer program product that may contain computer instructions that, when executed on a processor, can implement any of the possible implementation methods described in the first aspect.

[0036] Fifthly, this application provides a chip for use in an electronic device, the chip including one or more processors for invoking computer instructions to cause the electronic device to perform any of the possible implementation methods in the first aspect.

[0037] It is understood that the electronic device provided in the second aspect, the computer-readable storage medium provided in the third aspect, the computer program product provided in the fourth aspect, and the chip provided in the fifth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description

[0038] Figures 1A to 1C are schematic diagrams of some dynamic wallpaper display scenarios provided in the embodiments of this application;

[0039] Figures 2A to 2C are schematic diagrams of the open and closed states of some electronic devices 100 provided in the embodiments of this application;

[0040] Figure 3A is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application;

[0041] Figure 3B is a software structure block diagram of an electronic device 100 provided in an embodiment of this application;

[0042] Figure 3C is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application;

[0043] Figures 4A to 4F illustrate a wallpaper display scenario provided in an embodiment of this application.

[0044] Figure 5 is a flowchart of a wallpaper display method provided in an embodiment of this application;

[0045] Figure 6 illustrates an image fusion method based on folding angle provided in an embodiment of this application.

[0046] Figures 7A to 7C illustrate some wallpaper display methods provided in embodiments of this application;

[0047] Figures 8A to 8D show another wallpaper display scenario provided in the embodiments of this application;

[0048] Figures 9A and 9B illustrate other wallpaper display methods provided in embodiments of this application;

[0049] Figures 10A to 10C are schematic diagrams of some wallpaper settings provided in the embodiments of this application;

[0050] Figure 11 illustrates a wallpaper display method provided in an embodiment of this application. Detailed Implementation

[0051] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0052] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0053] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0054] In the following embodiments of this application, the term "user interface (UI)" refers to the medium interface through which an application (APP) or operating system (OS) interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0055] The wallpaper display method provided in this application can be applied to electronic devices with foldable screens. Electronic devices with foldable screens can also be called foldable screen devices. The foldable screen can be folded to form at least two screens. For example, the foldable screen can form screen A and screen B along the folding edge or folding axis.

[0056] In some embodiments, the foldable screen device may display a live wallpaper during the opening and closing of the foldable screen. The wallpaper can refer to the background image displayed by the electronic device 100 when it is in a locked screen state or a desktop state. A live wallpaper is a background image capable of displaying animated effects. For example, the animated effects may include, but are not limited to: flowing water, blooming flowers, swaying branches, fluttering butterflies, etc.

[0057] Figures 1A to 1C exemplify some scenarios of displaying live wallpapers on foldable screen devices.

[0058] As shown in Figure 1A, the electronic device 100 can be a foldable screen device. The electronic device 100 may include screen A and screen B, which can fold along the folding edge. Figures 1A-1C illustrate the process of the foldable screen of the electronic device 100 gradually unfolding (i.e., the angle between screen A and screen B gradually increases). During the gradual unfolding of the foldable screen, the electronic device 100 can display a live wallpaper. For example, the live wallpaper can present an animated effect of flowers blooming.

[0059] As shown in Figure 1A, the angle between screen A and screen B is relatively small. Electronic device 100 can display an image of a flower with its petals partially open. For example, the image shows a flower with two petals open. As the angle between screen A and screen B increases, the folding screen of electronic device 100 gradually unfolds from the open / closed state shown in Figure 1A to the open / closed state shown in Figure 1B.

[0060] As shown in Figure 1B, the angle between screen A and screen B is relatively large. The electronic device 100 can display an image of a flower in a fully open state. For example, in this image, the flower has all four petals open. Furthermore, the angle between screen A and screen B continues to increase. The fully unfolded state of the folding screen of the electronic device 100 is shown in Figure 1C.

[0061] As shown in Figure 1C, the folding screen of the electronic device 100 is fully unfolded. The electronic device 100 can display an image of a flower in full bloom. For example, in this image, the flower has all seven petals open.

[0062] As shown in Figures 1A to 1C, when the user unfolds the folding screen of the electronic device 100, they can watch an animation of flowers blooming.

[0063] In some embodiments, the aforementioned live wallpapers can be implemented based on videos or animated images. Videos / animated images occupy a significant amount of storage space. Furthermore, the playback progress of the video / animated image may not be synchronized with the opening and closing progress of the folding screen. For example, if the electronic device 100 plays the video corresponding to the animated wallpaper while the folding screen is unfolding, the video may finish playing before the folding screen is fully unfolded. Alternatively, if the folding screen stops unfolding after reaching a certain angle (e.g., 90°), the video corresponding to the animated wallpaper may not stop playing. This will affect the user's experience of viewing live wallpapers while the folding screen is opening and closing.

[0064] In some embodiments, the resources for live wallpapers are built into a theme resource package and are locked to a specific theme. Users cannot easily set lock screen wallpapers or desktop wallpapers separately. Furthermore, in scenarios where users set personalized live wallpapers, the electronic device 100 needs to rely on specific third-party applications to convert the user-selected image into a video / animated graphic. Live wallpapers based on videos / animated graphics offer limited improvement to the folding screen opening and closing experience.

[0065] This application provides a wallpaper display method. An electronic device can generate a target image based on a wallpaper image. The wallpaper image can be preset by the electronic device or set by the user. The target image can be obtained by processing the wallpaper image using an artificial intelligence (AI) image model, or by aesthetically composing the wallpaper image. The electronic device can process the wallpaper image and the target image in real time according to the folding angle of the folding screen, obtaining and displaying an intermediate image that gradually transitions from the wallpaper image to the target image. The larger the folding angle of the folding screen, the more the folding screen unfolds, and the closer the intermediate image is to the target image. When the folding screen is unfolded to a flat state, the intermediate image can transform into the target image. In the flat state, the folding angle of the folding screen is 180°, or an angle within a range including 180° (e.g., [175°, 185°]).

[0066] Optionally, the electronic device can generate multiple target images based on a single wallpaper image. For example, target image 1 and target image 2. The electronic device can process target image 1 and target image 2 in real time according to the folding angle of the folding screen to obtain and display an intermediate image that gradually transitions from target image 1 to target image 2. The larger the folding angle of the folding screen, the more the folding screen unfolds, and the closer the intermediate image is to target image 2. When the folding screen is unfolded to a flat state, the intermediate image can be target image 2.

[0067] As can be seen, the image displayed by the electronic device during the opening and closing of the foldable screen can be determined based on the folding angle. Specifically, the image displayed by the electronic device can change with the folding angle. The opening and closing progress of the electronic device can be synchronized with the playback progress of the live wallpaper. This improves the responsiveness of the live wallpaper playback during the opening and closing of the foldable screen. The electronic device can quickly display animation effects associated with the change in folding angle.

[0068] Furthermore, the images displayed on the electronic device during the opening and closing of the foldable screen can be rendered in real time. The electronic device does not need to store the videos / animated images corresponding to the live wallpapers, thus saving storage space.

[0069] To more clearly illustrate the wallpaper display method provided in this application, the foldable screen device involved in this application will be introduced first.

[0070] The folding screen of a foldable device can have various folding methods. For example, the folding screen can fold outwards or inwards. A folding screen that folds outwards can be called an outward-folding folding screen or an inward-folding screen, etc. A folding screen that folds inwards can be called an inward-folding folding screen or an inward-folding screen, etc. In some embodiments, the folding screen of the foldable device can fold either outwards or inwards. Taking the folding screen folding into a first screen and a second screen as an example: After the outward-folding folding screen is folded, the display directions of the first screen and the second screen are opposite to each other. After the inward-folding folding screen is folded, the display directions of the first screen and the second screen are opposite to each other. The first screen can also be called screen A. The second screen can also be called screen B. This application does not limit the folding method of the folding screen.

[0071] The following section introduces electronic devices with inward-folding screens.

[0072] Figures 2A to 2C exemplarily illustrate some open / closed states of an electronic device 100 with an inward-folding screen.

[0073] The opening and closing states of the electronic device 100 can include an unfolded state, a support state, and a folded state.

[0074] 1. Expanded state.

[0075] As shown in Figure 2A, the electronic device 100 is in the unfolded state. The unfolded state can represent the fully unfolded form of the folding screen of the electronic device 100. The folding screen of the electronic device 100 may include screen A and screen B. When the angle between screen A and screen B of the folding screen is 180° or approximately 180°, the folding screen of the electronic device 100 can be unfolded into a plane, with screen A and screen B distributed on both sides of the folding edge and located on the same plane. In the unfolded state, the electronic device 100 can display screen A and screen B as a single screen. The folding screen of the electronic device 100 can be folded along the folding edge in directions 21a and 21b as shown in Figure 2A, forming the support state shown in Figure 2B.

[0076] 2. Supported state.

[0077] As shown in Figure 2B, the electronic device 100 is in a support state. The support state can be an intermediate state between the folded state and the unfolded state of the electronic device 100's foldable screen. The support state can also be called a semi-folded state, etc. In the support state, since the foldable screen of the electronic device 100 is an inward-folding screen, the display directions of screens A and B are opposite.

[0078] In some embodiments, a display screen, referred to as a third screen, may be provided on the back of screen A or screen B of the foldable screen in the electronic device 100. For example, as shown in FIG2B, screen C (i.e., the third screen) may be provided on the back of screen A. Screen C may be a display screen independent of the foldable screen. Screen C is optional. In some embodiments, the electronic device 100 may also not include the aforementioned screen C. In the stand state, screens A and B are visible to the user. The foldable screen of the electronic device 100 can continue to fold along the folding edge in directions 22a and 22b as shown in FIG2B, forming the folded state shown in FIG2C.

[0079] 3. Folded state.

[0080] As shown in Figure 2C, the electronic device 100 is in a folded state. The folded state can represent the shape of the folded screen of the electronic device 100 when it is completely folded. When the angle between screen A and screen B of the folded screen is 0° or approximately 0°, screen A and screen B can be attached together. In this case, the folded screen of the electronic device 100 is not visible to the user, but screen C is visible to the user.

[0081] In the folded state, screens A and B can rotate along the folding edge in directions away from each other. Thus, the electronic device 100 can change from the folded state shown in Figure 2C to the support state shown in Figure 2B, and finally to the unfolded state shown in Figure 2A. The process of the electronic device 100 changing from the folded state to the support state and finally to the unfolded state can be a process of the folding screen gradually unfolding. The process of the electronic device 100 changing from the unfolded state to the support state and finally to the folded state can be a process of the folding screen gradually folding or gradually closing.

[0082] In some embodiments, the angle α between screen A and screen B is the folding angle of the foldable screen. The value range of the angle α between screen A and screen B can be [0°, 180°]. Wherein, if α∈[0°, P1], the electronic device 100 can determine that it is in a folded state. If α∈(P1, P2), the electronic device 100 can determine that it is in a stand state. If α∈[P2, 180°], the electronic device 100 can determine that it is in an unfolded state. Wherein, 0°<P1<P2<180°. P1 and P2 can be preset angle thresholds. P1 and P2 can be determined based on the usage habits of a large number of users of foldable screens; or, P1 and P2 can be set by the user in the electronic device 100.

[0083] For example, according to the usage habits of most users, when the angle α between screen A and screen B is greater than 100°, the user is more likely to want to use screen A and screen B as a whole (i.e., as a complete display), and electronic device 100 can be in an unfolded state. When the angle α between screen A and screen B is less than 80°, the user is more likely to want to use screen C alone, and electronic device 100 can be in a folded state.

[0084] Therefore, in this embodiment of the application, the preset angle threshold P1 can be in the range of (0, 80°), and the preset angle threshold P2 can be in the range of [100°, 180°]. For example, the preset angle threshold P1 can be 75°, and the preset angle threshold P2 can be 105°. The above examples are merely for explaining this application and should not be construed as limiting it.

[0085] In some embodiments, the electronic device 100 can switch display areas when its open / closed state changes. When the electronic device 100 is in the folded state shown in FIG. 2C, the electronic device 100 can use screen C for display. When a change in the open / closed state of the electronic device 100 from the folded state shown in FIG. 2C to the unfolded state shown in FIG. 2A is detected, the electronic device 100 can switch the screen used for display. For example, the electronic device 100 can turn off screen C and use the folded screens (i.e., screens A and B) for display. Conversely, when a change in the open / closed state of the electronic device 100 from the unfolded state shown in FIG. 2A to the folded state shown in FIG. 2C is detected, the electronic device 100 can switch the screen used for display. For example, the electronic device 100 can turn off screens A and B and use screen C for display.

[0086] For example, the electronic device 100 can determine whether to switch the display screen based on whether the folding angle of the folding screen changes to a preset angle range when the opening / closing state changes. For instance, when the electronic device 100 changes from a folded state to an unfolded state (i.e., the included angle α gradually increases), the electronic device 100 can switch the display screen from screen C to screens A and B when the included angle α changes to angle range 1 [10°, 180°]. When the electronic device 100 changes from an unfolded state to a folded state (i.e., the included angle α gradually decreases), the electronic device 100 can switch the display screen from screens A and B to screen C when the included angle α changes to angle range 2 [0°, 80°]. The aforementioned angle range 1 can be referred to as the angle range that triggers screens A and B to light up. The aforementioned angle range 2 can be referred to as the angle range that triggers screen C to light up. The specific values ​​of the aforementioned angle range 1 and angle range 2 are merely illustrative examples of this application and should not be construed as limiting this application.

[0087] In some embodiments, since the C-screen and the foldable screen of the electronic device 100 are independent screens, the electronic device 100 can independently control the C-screen and the foldable screen. In the folded state, in response to an event triggering the screen to power on, the electronic device 100 can power on the C-screen and illuminate it. The events triggering the screen to power on in the folded state may include: a power button being pressed, the C-screen being touched or clicked, a fingerprint unlock event, etc. In the unfolded state, in response to an event triggering the screen to power on, the electronic device 100 can power on the A-screen and the B-screen and illuminate them. The events triggering the screen to power on in the unfolded state may include: a power button being pressed, the foldable screen being touched or clicked, a fingerprint unlock event, etc. When the C-screen is powered on, if the screen used for display needs to switch from the C-screen to the A-screen and the B-screen (e.g., the electronic device 100 changes from the folded state to the unfolded state), the electronic device 100 can power off the C-screen (the C-screen turns off) and power on the A-screen and the B-screen. When screens A and B are powered on, and the display screen needs to switch from screens A and B to screen C (e.g., electronic device 100 changes from unfolded to folded state), electronic device 100 can power off screens A and B (the folded screen turns off) and power on screen C.

[0088] Optionally, when screen C is in an off state, electronic device 100 can power on screens A and B when it changes from a folded state to an unfolded state. Alternatively, when screen C is in an off state, screens A and B of electronic device 100 can remain off when it changes from a folded state to an unfolded state. When screens A and B are off, screen C of electronic device 100 can remain off when it changes from an unfolded state to a folded state. If electronic device 100 does not have screen C, in the folded state, electronic device 100 can power on the foldable screen in response to a user pressing the power button.

[0089] In some embodiments, if both the C-screen and the folding screen are liquid crystal displays or other displays that require a backlight, the electronic device 100 can also turn on the backlight of the target screen when the target screen is powered on; and the electronic device 100 can also turn off the backlight of the target screen when the target screen is powered off.

[0090] In some embodiments, the foldable screen can be a single, integrated screen that can be folded to form at least two screens. For example, the foldable screen can be a flexible foldable screen. A flexible foldable screen includes folding edges made of a flexible material. Part or all of the flexible foldable screen is made of a flexible material.

[0091] In some embodiments, the foldable screen can be a multi-screen foldable screen, which may consist of multiple independent displays. These multiple displays can be connected sequentially via a folding axis. Each display can rotate about the folding axis linked to it, thereby enabling the multi-screen foldable screen to fold. For example, the foldable screen may include screen A and screen B. The electronic device 100 can independently control screen A and screen B.

[0092] In Figures 2A to 2C, the folding screen of the electronic device 100 is folded vertically, meaning it is folded along the vertical folding edge to form two screens (screen A and screen B). In this embodiment, the folding screen of the electronic device 100 can also be folded horizontally, meaning it is folded along the horizontal folding edge to form two screens (top and bottom). This application does not limit the folding method of the electronic device 100's folding screen. Subsequent embodiments will specifically use the vertically folded inward-folding screen shown in Figures 2A to 2C as an example for explanation.

[0093] The structure of the electronic device 100 provided in this application is described below.

[0094] Figure 3A illustrates a schematic diagram of the hardware structure of the electronic device 100.

[0095] As shown in Figure 3A, the electronic 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 jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0096] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0097] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0098] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0099] The processor 110 may also include a memory for storing instructions and data. In some examples, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or is recurring. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0100] In this application, a computer program may be stored in the memory to enable a controller or processor to implement the wallpaper display method of this application through an interface or protocol. For example, the computer program in the memory may be used to: detect the folding angle of the foldable screen; generate a target image based on the wallpaper image in the lock screen state or desktop state; fuse the wallpaper image and the target image according to the folding angle to obtain a fused image corresponding to that folding angle; and display the fused image corresponding to the folding angle during the change of the folding angle, etc. The fused image can be an intermediate image that gradually transitions from the wallpaper image to the target image. The larger the folding angle, the closer the fused image can be to the target image.

[0101] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback.

[0102] The charging management module 140 receives charging input from a charger, which can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0103] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0104] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0105] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0106] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0107] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0108] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering.

[0109] The display screen 194 is used to display images, videos, etc. The display screen 194 can be a liquid crystal display (LCD), an OLED display, etc. This application embodiment does not limit the material of the display screen 194. In some embodiments, the display screen 194 may also include a flexible foldable screen. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0110] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0111] The ISP is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye.

[0112] Camera 193 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0113] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0114] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as AI image generation, image fusion, image recognition, facial recognition, speech recognition, and text understanding.

[0115] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0116] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0117] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0118] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals. In some examples, audio module 170 may be located in processor 110, or some functional modules of audio module 170 may be located in processor 110. Speaker 170A, also called a "loudspeaker," is used to convert audio electrical signals into sound signals. Receiver 170B, also called a "handset," is used to convert audio electrical signals into sound signals. Microphone 170C, also called a "microphone" or "microphone," is used to convert sound signals into electrical signals. Headphone jack 170D is used to connect wired headphones.

[0119] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, gravity sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, angle sensors, etc.

[0120] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor. The electronic device 100 can also determine its offset angle by the gyroscope sensor. In some embodiments, the electronic device 100 can detect the angle (i.e., folding angle) between two screens formed by folding the folding screen by the gyroscope sensor. The display screen 194 of the electronic device 100 can be folded to form multiple screens. Each of these multiple screens can be equipped with a gyroscope sensor, which can be used to measure the orientation (i.e., the orientation direction vector) of the corresponding screen. The electronic device 100 can determine the angle between adjacent screens based on the change in orientation angle of each screen measured by the gyroscope sensor.

[0121] An accelerometer can detect the magnitude of acceleration of an electronic device 100 in various directions (typically three axes). In some embodiments, the accelerometer can be used to identify the posture of the electronic device 100, and can be applied to applications such as screen orientation switching and pedometers.

[0122] Magnetic sensors may include Hall effect sensors, magnetometers, and the like. In some embodiments, the electronic device 100 can detect the opening and closing state of the folding screen using a magnetic sensor.

[0123] An angle sensor can be used to detect the folding angle of the folding screen of the electronic device 100. In some embodiments, the angle sensor can be located at the folding portion of the folding screen, for example, at the location of the folding edge. This application does not limit the method by which the electronic device 100 detects the folding angle of the folding screen.

[0124] Buttons 190 include a power button, volume buttons, etc. Motor 191 can generate vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc.

[0125] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and detach from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to achieve functions such as calls and data communication. In some examples, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be removed from it.

[0126] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses a layered architecture. Taking the system as an example, the software structure of electronic device 100 is illustrated.

[0127] Figure 3B illustrates an exemplary software architecture block diagram of the electronic device 100.

[0128] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, [the following is omitted as the text is incomplete and likely refers to a specific implementation or feature]. The system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android Runtime and system libraries, and the kernel layer.

[0129] The application layer can include a series of application packages.

[0130] As shown in Figure 3B, the application package may include applications such as camera, gallery, calendar, call, map, WLAN, music, SMS, wallpaper display application, and lock screen application. The wallpaper display application can be used to display corresponding wallpapers based on the state of the electronic device 100. For example, when the electronic device 100 is in lock screen mode, the wallpaper display application can display the lock screen wallpaper. When the electronic device 100 is in desktop mode, the wallpaper display application can display the desktop wallpaper. The lock screen state can include the electronic device 100's screen being locked, or the electronic device 100 being unlocked but not yet in desktop mode. The desktop state can be the state where the electronic device 100 is unlocked and the desktop is displayed. Application icons may be displayed on the desktop of the electronic device 100. When the electronic device 100 is in lock screen mode, after unlocking (such as by numeric password, face unlock, fingerprint unlock, etc.), the electronic device 100 can enter desktop mode. The lock screen wallpaper and / or desktop wallpaper may be live wallpapers. The lock screen application can be used to lock and unlock the screen. The lock screen application can also be used to manage the lock screen password.

[0131] In some embodiments, when the screen is locked, the lock screen app can send a message to the wallpaper display app indicating that the electronic device 100 is in a locked state. The wallpaper display app can then display the lock screen wallpaper. When the screen unlocks, the lock screen app can send a message to the wallpaper display app indicating that the electronic device 100 has transitioned from the lock screen state to the desktop state. The wallpaper display app can then display the desktop wallpaper.

[0132] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0133] As shown in Figure 3B, the application framework layer may include a window manager, content provider, view system, resource manager, activity manager, etc.

[0134] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0135] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0136] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0137] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0138] The Activity Manager is responsible for managing activities, including starting, switching, and scheduling components in the system, as well as managing and scheduling applications. The Activity Manager can be called by upper-level applications to open the corresponding activities.

[0139] In some embodiments, the application framework layer may also include a UI framework and a collapsible shape framework.

[0140] A UI framework provides the necessary framework capabilities for developing and running UI interfaces. For example, it can provide the infrastructure for UI development, including UI controls (buttons / lists, etc.), view layout (placing / arranging the corresponding UI controls), animation mechanisms (animation design and effect rendering), interactive event handling (clicks / swipes, etc.), and corresponding programming languages ​​and models. From a system operation perspective, a UI framework may also include a runtime, responsible for resource loading, UI rendering, and event handling required for the application to run on the system. In some embodiments, a UI framework can be combined with a rendering engine to run the developer's program on a specific system platform.

[0141] The folding form framework may include a folding / opening module and a folding animation module. The folding / opening module can be used to manage the opening and closing state of the foldable screen. In some embodiments, the folding / opening module can obtain the folding angle of the foldable screen and send the folding angle to the folding animation module. The folding animation module can be used to drive the UI framework to render the image corresponding to the folding angle according to the folding angle, and instruct the wallpaper display application to display the image corresponding to the folding angle as wallpaper. In this way, the wallpaper displayed on the foldable screen of the electronic device 100 can change with the change of the folding angle, thereby presenting a corresponding animation effect. Since the wallpaper displayed on the foldable screen of the electronic device 100 when it is opened to a certain folding angle is rendered based on that folding angle, the animation effect presented by the electronic device 100 during the opening and closing of the foldable screen is strongly correlated with the change of the folding angle. This can improve the responsiveness of playing dynamic wallpapers during the opening and closing of the foldable screen of the electronic device.

[0142] In some embodiments, the folding module can also obtain a wallpaper image from the wallpaper display application and send the wallpaper image to the UI framework. The UI framework can then render images corresponding to each folding angle during the folding process based on the wallpaper image.

[0143] The Android Runtime consists of core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.

[0144] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0145] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and 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.

[0146] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), compiler, GPU protocol, data engine, rendering engine, etc.

[0147] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0148] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

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

[0150] A compiler can be a modular, configurable, multi-language compilation and runtime platform, comprising key components such as toolchains and runtime environments. The toolchain implements a front-end compiler for the corresponding language, compiling the high-level languages ​​of front-end development frameworks into unified bytecode / binary files. The compiler's runtime interprets and executes the bytecode files. Supported languages ​​include, but are not limited to, JavaScript, TypeScript, and Java.

[0151] A GPU protocol refers to a protocol used for communication between GPUs. In some embodiments, to improve computing power, an electronic device 100 may be equipped with multiple GPUs. These multiple GPUs can communicate according to a GPU protocol.

[0152] A data engine can refer to a computer program or system capable of processing data. Data engines can be used for tasks such as processing large amounts of data, performing data analysis, and data mining. For example, a data engine can acquire data from different data sources (e.g., databases, files, APIs, etc.) and transform the data into a format that can be processed and analyzed.

[0153] A rendering engine can be used to implement functions such as graphics rendering, animation effects, and UI layout. In some embodiments, the UI framework in the electronic device 100 can call the rendering engine to generate corresponding images. The rendering engine can support software rendering, 2D hardware acceleration, and OpenGL hardware platforms. For example, the rendering engine can be Skia, etc. This application does not limit the implementation method of the rendering engine.

[0154] The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver. For example, electronic device 100 may include an angle sensor. Electronic device 100 can control the angle sensor through the sensor driver to detect the folding angle of the foldable screen and report the folding angle to the aforementioned folding and opening module.

[0155] Figure 3C illustrates another structural schematic diagram of the electronic device 100.

[0156] As shown in Figure 3C, the electronic device 100 may include a wallpaper display application, a folding angle detection module, a folding and opening module, a folding animation module, a UI framework, and a rendering engine.

[0157] A folding angle detection module can be used to detect the folding angle of a foldable screen. In some embodiments, a folding / opening module can register with the folding angle detection module. The folding angle detection module can then send the folding angle to modules registered with it, such as the folding / opening module.

[0158] The wallpaper display application, the folding and unfolding module, and the folding animation module can be referred to in the description of Figure 3B above.

[0159] The folding / opening module can retrieve wallpaper images from the wallpaper display application.

[0160] In some embodiments, when the electronic device 100 is in a locked screen state and the folding angle meets a preset condition, the folding module can obtain the wallpaper image of the locked screen state (hereinafter referred to as the lock screen wallpaper) from the wallpaper display application. The lock screen wallpaper can be a static image. The lock screen wallpaper can be set by the user or preset by the electronic device 100. Meeting the preset folding angle condition can be used to trigger the electronic device 100 to use the folding screen (screen A and screen B as shown in Figure 2A) for display. For example, meeting the preset folding angle condition can include: the folding angle changing from less than angle 1 to greater than or equal to angle 1, or the folding angle being within the angle range corresponding to the unfolded state. Angle 1 can be a value such as 5° or 10°.

[0161] In some embodiments, when the electronic device 100 is in desktop mode and the folding angle meets preset conditions, the folding module can obtain the wallpaper image (hereinafter referred to as desktop wallpaper) of the desktop mode from the wallpaper display application. This desktop wallpaper can be a static image. The desktop wallpaper can be set by the user or preset by the electronic device 100.

[0162] The folding and opening module can obtain the state of the electronic device 100 when the folding angle meets preset conditions. If the electronic device 100 is in a locked screen state, the folding and opening module can obtain a lock screen wallpaper from the wallpaper display application. If the electronic device 100 is in a desktop state, the folding and opening module can obtain a desktop wallpaper from the wallpaper display application. Alternatively, the wallpaper display application can determine the state of the electronic device 100. The folding and opening module can obtain a wallpaper image from the wallpaper display application when the folding angle meets preset conditions. The wallpaper display application can send the corresponding wallpaper image to the folding and opening module according to the state of the electronic device 100. That is, if the electronic device 100 is in a locked screen state, the wallpaper display application can send a lock screen wallpaper to the folding and opening module. If the electronic device 100 is in a desktop state, the wallpaper display application can send a desktop wallpaper to the folding and opening module.

[0163] In some embodiments, the folding module can send the wallpaper image (such as lock screen wallpaper or desktop wallpaper) to the UI-side interface in the UI framework, and send the folding angle to the folding animation module.

[0164] The folding animation module can determine the folding progress based on the folding angle and send the folding progress to the UI interface. In some embodiments, the larger the folding angle, the larger the folding progress. For example, the folding angle ranges from [0°, 180°]. The folding progress ranges from [0, 1]. When the folding angle is 0°, the folding progress can be 0. When the folding angle is 180°, the folding progress can be 1. When the folding angle is 90°, the folding progress can be 0.5. This application embodiment does not limit the range of values ​​for the folding progress or the method for determining the folding progress based on the folding angle.

[0165] In some embodiments, the folding animation module can also be used to manage the type of wallpaper animation effect during the opening and closing of the folding screen. For example, in addition to the folding progress, the folding animation module can also send parameters corresponding to the wallpaper animation effect to the UI-side interface. These parameters can be used to instruct the UI framework to render an image that can present the corresponding wallpaper animation effect. The wallpaper animation effect during the opening and closing of the folding screen can be set by the user, preset by the electronic device 100, or determined by the electronic device 100 based on the wallpaper image. This application embodiment does not limit the type of wallpaper animation effect.

[0166] A UI framework may include UI-side interfaces and rendering modules.

[0167] The UI-side interface allows modules such as the folding / opening module and the folding animation module in the electronic device 100 to interact with the UI framework. The UI-side interface may include a rendering thread, node operations, and parameter synchronization. The rendering thread is responsible for rendering the interface, parsing the interface programming language, building the rendering node tree, and performing layout and drawing. Node operations are used to manage nodes in the rendering node tree. Parameter synchronization is used to synchronize parameters such as wallpaper images from the folding / opening module and folding progress from the folding animation module to the rendering node tree in the rendering module.

[0168] The rendering module can be used to communicate with other modules through the UI interface and to call the rendering engine for image rendering. The rendering module may include synchronization signal input, rendering node tree, special effects filters, etc.

[0169] A synchronization signal input can be used to receive synchronization signals, such as a vertical synchronization (VSync) signal. The VSync signal can be used to trigger a screen refresh. In some embodiments, the system can send a VSync signal at preset intervals. Upon receiving a VSync signal, the rendering module can invoke the rendering engine to render the image used for screen refresh.

[0170] Effects filters can be used to filter image change effects. Image change effects refer to the visual effects of an electronic device 100 changing from displaying one image to displaying another. For example, image change effects may include, but are not limited to: gradient textures, lighting transitions, image blending, sub-region repetition, keyframe interpolation, mask textures, random curves, etc.

[0171] The rendering node tree can include drawing instructions and drawing attributes. It is understood that a page displayed by the electronic device 100 can include one or more nodes. For example, a page displayed by the electronic device 100 in lock screen mode can include nodes such as lock screen wallpaper, time information, status bar, camera icon, etc. A page displayed by the electronic device 100 in desktop mode can include nodes such as desktop wallpaper, status bar, application icons, etc. Drawing instructions in the rendering node tree can be used to draw one or more nodes on a page. Drawing attributes in the rendering node tree can be used to describe the position, size, color, and other attribute information of each node on the page. In some embodiments, the rendering node tree can determine drawing instructions and drawing attributes based on parameters synchronized from the UI-side interface and image change effects filtered from the effects filter, to render the wallpaper image corresponding to the image when the folded screen is opened to a certain folding angle.

[0172] The rendering engine can render images based on the drawing instructions and drawing attributes in the rendering node tree mentioned above.

[0173] In some embodiments, in a folded state (e.g., a folding angle of 0°), in response to illuminating the C screen shown in Figure 2C, the electronic device 100 can enter a lock screen state and display a lock screen wallpaper on the C screen. When the folding angle of the folding screen changes from 0° to an angle greater than or equal to the aforementioned angle 1, the electronic device 100 can switch the screen used for display from the C screen to the folding screen (i.e., the A screen and the B screen). Specifically, when the folding angle of the folding screen changes from 0° to an angle greater than or equal to the aforementioned angle 1, the folding / opening module can obtain the lock screen wallpaper from the lock screen application and send the lock screen wallpaper to the UI framework. The folding / opening module can also send the folding angle to the folding animation module. The folding animation module can convert the folding angle into a folding progress and send the folding progress to the UI framework. The UI framework can call the rendering engine to render the image corresponding to the folding angle (i.e., the folding progress) based on the lock screen wallpaper. As the folding screen gradually unfolds, the folding angle continuously changes, and the UI framework can call the rendering engine in real time to render the image corresponding to the latest folding angle based on the lock screen wallpaper. In this way, the electronic device 100 can display the image corresponding to a certain folding angle on the folding screen when the folding screen is opened to that folding angle.

[0174] In some embodiments, in the unfolded state (e.g., folded angle of 180°), in response to the operation of illuminating screens A and B as shown in FIG. 2A, the electronic device 100 can enter a lock screen state. The folding screen opening / closing module can obtain a lock screen wallpaper from a wallpaper display application and send the lock screen wallpaper to the folding angle. The folding opening / closing module can send the folding angle (e.g., 180°) to the folding animation module. The folding animation module can convert the folding angle into a folding progress and send the folding progress to the UI framework. The UI framework can call the rendering engine to render the image corresponding to the lock screen wallpaper at a folding angle of 180°. After the electronic device 100 enters the lock screen state at a folding angle of 180°, it can display the image corresponding to the lock screen wallpaper at a folding angle of 180°.

[0175] Figures 4A to 4F exemplarily illustrate a wallpaper display scenario provided by this application.

[0176] As shown in Figure 4A, the electronic device 100 is in a folded state with a folding angle of α0. α0 can be 0°. When the C-screen of the electronic device 100 is in a screen-off state, in response to a user's operation, the electronic device 100 can light up the C-screen and display the wallpaper image 410 shown in Figure 4A on the C-screen. For example, the operation could be pressing the power button or clicking the C-screen. This application does not limit the operation used to light up the C-screen; the wallpaper image 410 can be set by the user. For example, the user can select a photo in a gallery application and set that photo as wallpaper. Alternatively, the wallpaper image 410 can also be preset by the electronic device 100.

[0177] In some embodiments, the electronic device 100 is in a locked screen state. The wallpaper image 410 can be the lock screen wallpaper of the electronic device 100. In addition to displaying the wallpaper image 410, the electronic device 100 can also display one or more interface elements associated with the lock screen state on the C screen. The one or more interface elements associated with the lock screen state may include the time information shown in FIG. 4A. Optionally, the one or more interface elements associated with the lock screen state may also include a status bar, a screen lock icon, a flashlight icon, a camera icon, etc. The one or more interface elements associated with the lock screen state can be displayed on top of the wallpaper image 410.

[0178] In some embodiments, the electronic device 100 is in a desktop state. The wallpaper image 410 can be the desktop wallpaper of the electronic device 100. In addition to displaying the wallpaper image 410, the electronic device 100 can also display one or more interface elements associated with the desktop state on the C screen. The one or more interface elements associated with the desktop state can include a status bar, application icons, etc. The one or more interface elements associated with the desktop state can be displayed on top of the wallpaper image 410.

[0179] Since the electronic device 100 is in a folded state, the folded screens (i.e., screen A and screen B) of the electronic device 100 are not visible to the user. Therefore, when screen C is lit, screens A and B can remain in a screen-off state.

[0180] When the C screen is on, in response to the operation of unfolding the folding screen, the electronic device 100 can light up the folding screen and display a dynamic wallpaper generated by the wallpaper image 410 on the folding screen according to the folding angle.

[0181] When the folding angle changes to α1 as shown in Figure 4B, the electronic device 100 can display image 420 on screens A and B. When the folding angle further changes to α2 as shown in Figure 4C, the electronic device 100 can display image 430 on screens A and B. When the folding angle further changes to α3 as shown in Figure 4D, the electronic device 100 can display image 440 on screens A and B. When the folding angle further changes to α4 as shown in Figure 4E, the electronic device 100 can display image 450 on screens A and B. Wherein, α0 < α1 < α2 < α3 < α4. α4 can be 180°. That is, when the folding angle is α4, the electronic device 100 is in the unfolded state.

[0182] In some embodiments, image 450 may be obtained based on the wallpaper image 410 described above. For example, electronic device 100 may process wallpaper image 410 using an AI image model to obtain image 450. This application embodiment does not limit the method for generating image 450 based on wallpaper image 410. Image 420 may be obtained by fusing wallpaper image 410 and image 450 according to a folding angle α1. Image 430 may be obtained by fusing wallpaper image 410 and image 450 according to a folding angle α2. Image 440 may be obtained by fusing wallpaper image 410 and image 450 according to a folding angle α3.

[0183] In some embodiments, the electronic device 100 can turn on the foldable screen and display the wallpaper image 410 on the foldable screen when the folding angle is unfolded to a value greater than a preset angle. Then, as the folding angle of the foldable screen increases, the electronic device 100 can display the image obtained by fusing the wallpaper image 410 and the image 450 on the foldable screen. For example, the preset angle can be a value such as 10° or 15°. This application embodiment does not limit the value of the preset angle.

[0184] As shown in Figures 4B to 4E, during the unfolding of the foldable screen, the wallpaper image displayed by the electronic device 100 on the foldable screen can dynamically change with the folding angle. Specifically, as the folding angle gradually increases, the wallpaper image displayed by the electronic device 100 on the foldable screen gradually approaches image 450. When the folding angle reaches its maximum value (e.g., 180°), the wallpaper image displayed by the electronic device 100 on the foldable screen changes to image 450. Thus, as the foldable screen unfolds, the user can see the animation effect of the wallpaper gradually changing from the original wallpaper (i.e., wallpaper image 410) to the new wallpaper (i.e., image 450).

[0185] Specifically, the wallpaper image displayed by the electronic device 100 when the folding screen is opened to a certain folding angle can be the image corresponding to that folding angle. This image corresponding to that folding angle can be obtained by fusing the wallpaper image 410 and the image 450 according to that folding angle. The larger this folding angle, the closer the image obtained by fusing the wallpaper image 410 and the image 450 according to this angle is to image 450.

[0186] For example, as the folding angle gradually increases from α1 (shown in Figure 4B) to α2 (shown in Figure 4C), the electronic device 100 can sequentially display images corresponding to each folding angle increasing from α1 to α2. In this way, the user can see the wallpaper image displayed on the folded screen gradually changing from image 420 to image 430 in an animated effect. If the folding angle decreases instead of increasing after changing to α2, for example, if the user folds the electronic device 100, then the electronic device 100 can display images corresponding to each folding angle less than α2 on the folded screen. The images corresponding to each folding angle can be referred to the description in the foregoing embodiments, and will not be repeated here. For example, if the folding angle gradually decreases from α2 to α1, the electronic device 100 can sequentially display images corresponding to each folding angle decreasing from α2 to α1. In this way, the user can see the wallpaper image displayed on the folded screen gradually changing from image 430 to image 420 in an animated effect.

[0187] As can be seen, during the opening and closing of the foldable screen, the wallpaper image displayed on the foldable screen can dynamically change with the folding angle. Furthermore, the animation effects as the folding angle gradually increases can be inversely related to the animation effects as the folding angle gradually decreases. Users can fold the screen back and forth to watch the animation effect gradually changing from wallpaper image 410 to image 450, or vice versa. This enhances the user experience of using the foldable screen.

[0188] During the opening and closing process of the folding screen described above, if the folding screen stops folding at a certain folding angle, the electronic device 100 can maintain the display of the image corresponding to that folding angle on the folding screen. For example, if the folding screen stops at the folding angle α2 shown in Figure 4C, the electronic device 100 can maintain the display of image 430 on screens A and B. When the folding angle changes from α2 to other angles, the electronic device 100 can change the image displayed on screens A and B from image 430 to the image corresponding to the other folding angle.

[0189] In some embodiments, during the opening and closing of the foldable screen, in addition to displaying the dynamically changing wallpaper images shown in Figures 4B to 4E, the electronic device 100 may also display one or more interface elements associated with the lock screen state or the desktop state on the foldable screen. The display style and position of the aforementioned one or more interface elements may be fixed and not change with the folding angle. Alternatively, the display style and / or position of the aforementioned one or more interface elements may change with the folding angle, thereby presenting corresponding animation effects during the opening and closing of the foldable screen. The animation effects of the aforementioned one or more interface elements and the animation effects of the wallpaper images may be independent. This application does not limit the animation effects of the aforementioned one or more interface elements.

[0190] For example, during the unfolding process of the folding screen shown in Figures 4B to 4E, the animation effect of the time information can include: the time information not displayed on the folding screen changes to displaying time information with smaller font, and the font size of the time information gradually increases, while the display position of the time information changes according to a preset trajectory. The time information can be used to indicate the current time. When the folding angle changes to its maximum (i.e., 180°), the electronic device 100 can display the time information "08:08" as shown in Figure 4E on the folding screen. For example, when the folding angle changes to 180°, the time information "08:08" can be displayed in the upper left corner of the folding screen.

[0191] In this way, during the opening and closing of the folding screen, the electronic device 100 can overlay the animation effects of one or more interface elements (such as time information) on the dynamic wallpaper shown in Figures 4B to 4E, thereby increasing the fun of opening and closing the folding screen and improving the user's experience of using the folding screen.

[0192] In some embodiments, the image corresponding to the aforementioned folding angle may be an image that incorporates one or more of the aforementioned interface elements, based on wallpaper image 410 and image 450. That is, the aforementioned one or more interface elements are part of the wallpaper image. For example, the time information "08:08" shown in FIG4D may be part of image 440. The time information "08:08" shown in FIG4E may be part of image 450. During the opening and closing of the folding screen, the aforementioned one or more interface elements may change dynamically with the wallpaper image. Optionally, in the wallpaper image presented during the opening and closing of the folding screen, these one or more interface elements may have individual animation effects. For example, the size and / or distribution position of these one or more interface elements on the wallpaper image may change with the folding angle. Thus, the image displayed by the electronic device 100 during the gradual unfolding of the folding screen may be an image that gradually transitions from wallpaper image 410 to image 450 and superimposes one or more interface elements during the transition.

[0193] In some embodiments, during the gradual unfolding of the foldable screen, when the folding angle exceeds a preset angle (e.g., 10° or 15°), the electronic device 100 can turn off the C screen shown in FIG4A. In some embodiments, when the C screen is lit in the folded state, the content displayed may not include the wallpaper image 410 shown in FIG4A. For example, after the C screen is lit, the electronic device 100 may only display one or more interface elements associated with the lock screen state, or one or more elements associated with the desktop state, on the C screen. When the foldable screen gradually unfolds, the electronic device 100 can display the dynamic wallpaper shown in FIG4B to FIG4E on the foldable screen. In some embodiments, the C screen is optional. That is, the screen of the electronic device 100 may not include the C screen. When an event triggering the lighting of the foldable screen is detected, the electronic device 100 can determine the image corresponding to the folding angle and display the image corresponding to the folding angle on the foldable screen.

[0194] In some embodiments, when the electronic device 100 is in an unfolded state (e.g., folded at an angle of 180°) and the folded screen is off, the electronic device 100 can illuminate the folded screen in response to a user's operation. For example, the user's operation could be pressing the power button or tapping the folded screen. This application embodiment does not limit the operation used to illuminate the folded screen. The electronic device 100 can acquire a wallpaper image, such as wallpaper image 410 shown in FIG. 4A. The electronic device 100 can generate an image corresponding to a folded angle of 180° based on the wallpaper image, such as image 450 shown in FIG. 4E. After the electronic device 100 illuminates the folded screen, it can display the image corresponding to the folded angle of 180° on the folded screen.

[0195] As the folding screen gradually closes from its unfolded state as shown in Figure 4E, the electronic device 100 can display an image corresponding to the folding angle on the folding screen. When the electronic device 100 changes from its unfolded state to its folded state, the wallpaper image displayed on the folding screen can gradually change from image 450 shown in Figure 4E to wallpaper image 410 shown in Figure 4A. That is to say, the animation effect of the live wallpaper displayed when the electronic device 100 changes from its folded state to its unfolded state can be inversely related to the animation effect when the electronic device 100 changes from its unfolded state to its folded state. Users can see live wallpapers with inverse animation effects by repeatedly folding the screen. Furthermore, when the folding screen is opened or closed to a certain folding angle, the image displayed on the folding screen is determined according to that folding angle. This allows the live wallpaper displayed on the electronic device to change in accordance with the degree to which the user folds or unfolds the folding screen, enhancing the user's enjoyment of using the folding screen.

[0196] In some embodiments, the electronic device 100 can generate multiple images based on the wallpaper image 410. These multiple images can be referred to as target images. For example, the electronic device 100 processes the wallpaper image 410 using an AI image model, and the resulting target images may include not only image 450 shown in FIG. 4E, but also image 460 shown in FIG. 4F, etc. During the process of the electronic device 100 changing from a folded state to an unfolded state, the wallpaper image displayed by the electronic device 100 can gradually change from the wallpaper image 410 to one of the multiple target images. In the unfolded state, in response to a user operation of switching wallpapers, the electronic device 100 can switch the wallpaper image displayed on the folded screen between the multiple target images. The user operation of switching wallpapers may include, but is not limited to: pressing the power button to turn off the folded screen and then pressing the power button again to turn on the folded screen, or a user operation of swiping left or right on the folded screen, etc.

[0197] For example, when the image 450 shown in FIG. 4E is displayed on the foldable screen, the electronic device 100 can turn off screens A and B in response to a user operation of pressing the power button. Further, in response to a user operation of pressing the power button again, the electronic device 100 can turn on screens A and B and display the image 460 shown in FIG. 4F on screens A and B.

[0198] As can be seen, after the foldable screen is unfolded, the electronic device can switch the displayed wallpaper on the foldable screen in response to user input. The multiple wallpapers that are switched on (e.g., image 450, image 460) can be generated based on the wallpaper image originally set in the electronic device (e.g., image 410). This can improve the user's wallpaper experience.

[0199] Optionally, in addition to the wallpaper image, the electronic device 100 may also display one or more interface elements on the foldable screen. Since these one or more interface elements may be displayed on a different layer than the wallpaper image, when the electronic device 100 switches the display of the wallpaper image on the foldable screen, the one or more interface elements displayed on top of the wallpaper image can remain unchanged. For example, as shown in Figures 4E and 4F, the electronic device 100 can switch the wallpaper image from image 450 to image 460, but the display style and position of interface elements such as time information displayed on the foldable screen can remain unchanged.

[0200] In some embodiments, the electronic device 100 can generate multiple target images based on the wallpaper image 410, such as target image 1 and target image 2. Target image 1 can be image 450 as shown in FIG. 4E. Target image 2 can be image 460 as shown in FIG. 4F. In the unfolded state, the wallpaper image displayed by the electronic device 100 on the folded screen can be target image 1. When the electronic device 100 changes from the unfolded state to the folded state, the electronic device 100 can display target image 2 on the folded screen. During the process of the electronic device 100 changing from the unfolded state to the folded state, the electronic device 100 can display an image obtained by fusing target image 1 and target image 2 on the folded screen, thereby presenting an animation effect of gradually changing from target image 1 to target image 2. That is to say, during the process of the folding angle of the folded screen changing to its maximum and then gradually decreasing, the electronic device 100 can fuse target image 1 and target image 2 according to the folding angle. Among them, the smaller the folding angle, the closer the image corresponding to the folding angle is to target image 2. Not limited to target image 1 and target image 2, the electronic device 100 can also fuse other target images.

[0201] For example, when the folding angle is 180°, the wallpaper image displayed on the folding screen by the electronic device 100 can be image 450 as shown in Figure 4E. As the folding angle gradually decreases, the electronic device 100 can display an image corresponding to the folding angle. The image corresponding to the folding angle can be obtained by fusing image 450 and image 460 as shown in Figure 4F based on the folding angle. The smaller the folding angle, the closer the image corresponding to the folding angle can be to image 460. In some embodiments, when the folding angle decreases to a critical angle that triggers the folding screen to turn on / off (e.g., 10° or 15°, etc.), the image corresponding to the folding angle can be image 460. The aforementioned critical angle for triggering the folding screen to turn on / off can be expressed as follows: when the folding angle is greater than or equal to the critical angle, the electronic device 100 can turn on the folding screen; when the folding angle is less than the critical angle, the electronic device 100 can turn off the folding screen. Thus, as the folding angle gradually decreases from 180°, the electronic device 100 can display an animation effect of image 450 gradually changing to image 460.

[0202] As can be seen, during the gradual unfolding of the foldable screen from its folded state, the live wallpaper displayed on the electronic device can exhibit an animation effect that gradually transitions from wallpaper image 410 to image 450. When the foldable screen changes to its flattened state, the electronic device can display image 450. Furthermore, during the gradual folding of the foldable screen from its flattened state, the animation effect of the live wallpaper displayed on the electronic device can be different from the animation effect exhibited during the gradual unfolding of the foldable screen; for example, it can exhibit an animation effect that gradually transitions from image 450 to image 460. In this way, when a user sets a wallpaper image on the electronic device 100, the electronic device 100 can display multiple live wallpapers to present rich animation effects, thereby enhancing the user's enjoyment of using the foldable screen.

[0203] In some embodiments, when the electronic device 100 is in a stand-up state, in response to the operation of lighting up the folding screen, the electronic device 100 can light up the folding screen and display a wallpaper image on the folding screen, such as wallpaper image 410 shown in FIG. 4A. Then, as the folding angle of the folding screen increases, the electronic device 100 can display an image obtained by fusing wallpaper image 410 with a target image (e.g., target image 1) on the folding screen according to the folding angle. Specifically, when the folding screen changes to a flattened state (e.g., the folding angle increases to 180°), the electronic device 100 can display the target image on the folding screen. As the folding angle of the folding screen decreases, the electronic device 100 can display an image obtained by fusing wallpaper image 410 with a target image (e.g., target image 2) on the folding screen according to the folding angle. Specifically, when the folding angle decreases to a critical angle that triggers the lighting / shielding of the folding screen, the electronic device 100 can display target image 2 on the folding screen. Optionally, the target image used to generate the fused image when the folding angle gradually increases from the initial angle when the folding screen is lit can be the same as the target image used to generate the fused image when the folding angle gradually decreases from the initial angle when the folding screen is lit.

[0204] For example, when the folding angle of the folding screen is 90°, in response to the operation of lighting up the folding screen, the electronic device 100 can light up the folding screen and display the wallpaper image 410 on the folding screen.

[0205] When the folding screen is unfolded, the electronic device 100 can display image 450 as shown in Figure 4E on the folding screen. As the folding angle of the folding screen gradually increases from 90°, the electronic device 100 can display an image obtained by fusing wallpaper image 410 and image 450 on the folding screen. Thus, as the folding angle gradually increases from 90°, the electronic device 100 can present an animation effect of gradually changing from wallpaper image 410 to image 450. Optionally, if the folding angle gradually decreases after increasing from 90° but before the folding screen is unfolded, the order in which the electronic device 100 displays images on the folding screen can be the reverse of the order in which the images are displayed during the process of gradually increasing the folding angle from 90°. That is, the electronic device 100 can present an animation effect of gradually changing from image 450 to wallpaper image 410.

[0206] When the folding angle of the folding screen decreases to the critical angle that triggers the folding screen to turn on / off, the electronic device 100 can display the image 460 shown in Figure 4F on the folding screen. As the folding angle of the folding screen gradually decreases from 90°, the electronic device 100 can display an image obtained by fusing the wallpaper image 410 and the image 460 on the folding screen. Thus, as the folding angle gradually decreases from 90°, the electronic device 100 can present an animation effect of gradually changing from the wallpaper image 410 to the image 460. Optionally, after the folding angle decreases from 90° but before decreasing to the aforementioned critical angle that triggers the folding screen to turn on / off, if the folding angle gradually increases, the order in which the electronic device 100 displays images on the folding screen can be the reverse of the order in which the images are displayed as the folding angle gradually decreases from 90°. That is, the electronic device 100 can present an animation effect of gradually changing from the image 460 to the wallpaper image 410.

[0207] In some embodiments, when the electronic device 100 is in a stand state, in response to the operation of illuminating the foldable screen, the electronic device 100 can illuminate the foldable screen and display an image corresponding to the current folding angle on the foldable screen. The image corresponding to the current folding angle can be an image obtained by fusing the wallpaper image 410 and a target image (e.g., image 450 shown in FIG. 4E) according to the current folding angle. As the folding angle gradually increases, the image displayed by the electronic device 100 on the foldable screen can be closer to the target image. As the folding angle gradually decreases, the image displayed by the electronic device 100 on the foldable screen can be closer to the wallpaper image 410.

[0208] As described above, during the opening and closing of the foldable screen, the live wallpaper displayed by the electronic device 100 can present an animated effect of gradually changing from one image to another. Specifically, when the foldable screen is opened to a certain angle, the wallpaper image displayed on the foldable screen can be determined based on that angle. Therefore, the animation effect presented by the electronic device 100 during the opening and closing of the foldable screen is strongly correlated with the change in the folding angle. This can improve the responsiveness of the live wallpaper playback experience during the opening and closing of the foldable screen.

[0209] In some embodiments, not limited to the electronic device 100 with an inwardly folding screen shown in Figures 4A-4F, the wallpaper display method provided in this application embodiment can also be applied to an outwardly folding screen device. The outwardly folding screen device may include an outwardly folding screen. For example, the outwardly folding screen may include a first screen and a second screen. When the outwardly folding screen device is in a folded state, both the first screen and the second screen are visible to the user.

[0210] In response to the screen lighting operation, if the outward-folding device is in a folded state, it can light up one of the first and second screens, for example, the first screen. The outward-folding device can display a wallpaper image on the first screen, such as wallpaper image 410 shown in Figure 4A. When the folded screen of the outward-folding device is unfolded, it can adjust the screen used for display from the first screen to both the first and second screens. When both the first and second screens are lit, the outward-folding device can display an image corresponding to the folding angle on both screens, depending on the folding angle. Specifically, refer to Figures 4B-4E for the electronic device 100 displaying images corresponding to the folding angle on screens A and B.

[0211] The following describes the wallpaper display method provided in this application.

[0212] Figure 5 illustrates a flowchart of a wallpaper display method.

[0213] As shown in Figure 5, this method can be applied to electronic device 100. The method may include steps S511 to S515.

[0214] In some embodiments, the electronic device 100 may include a folding angle detection module, a wallpaper display application, a folding and opening module, a folding animation module, a UI framework, and a rendering engine.

[0215] S511, Electronic device 100 can obtain the folding angle of the foldable screen.

[0216] In some embodiments, the folding angle detection module of the electronic device 100 can detect the folding angle of the foldable screen in real time and send the folding angle of the foldable screen to the folding and opening module of the electronic device 100 in real time. The folding and opening module can register with the folding angle detection module. The folding angle detection module can send the folding angle to modules registered with the folding angle detection module in real time, such as the folding and opening module.

[0217] S512, Electronic device 100 can acquire a wallpaper image, the wallpaper image being image 1.

[0218] The electronic device 100 can detect whether it needs to light up its foldable screen for display. If it does, it can acquire a wallpaper image. In some embodiments, the detection of whether the electronic device 100 needs to light up its foldable screen and the acquisition of the wallpaper image can be performed by a folding / opening module in the electronic device 100. This folding / opening module can request a wallpaper image from a wallpaper display application.

[0219] Optionally, when it is determined that the electronic device 100 needs to illuminate the foldable screen for display, the folding and opening module of the electronic device 100 can also detect whether the electronic device 100 enters a lock screen state or a desktop state after illuminating the foldable screen. If the electronic device 100 enters a lock screen state or a desktop state after illuminating the foldable screen, the folding and opening module can request a wallpaper image from the wallpaper display application. Specifically, if the electronic device 100 enters a lock screen state after illuminating the foldable screen, the folding and opening module can request a lock screen wallpaper from the wallpaper display application. If the electronic device 100 enters a desktop state after illuminating the foldable screen, the folding and opening module can request a desktop wallpaper from the wallpaper display application.

[0220] If the electronic device 100 does not enter a lock screen or desktop state after the foldable screen is turned on, the electronic device 100 does not need to request a wallpaper image. For example, the electronic device 100 may directly display the user interface of an application (such as an instant messaging application, a video playback application, etc.) after the foldable screen is turned on. It is understandable that if the device does not enter a lock screen or desktop state, the electronic device 100 does not need to display a wallpaper on the foldable screen, and therefore does not need to obtain a wallpaper image to display the dynamic wallpapers shown in Figures 4B to 4E.

[0221] The embodiments of this application do not limit the method by which the folding and opening module determines whether the electronic device 100 has entered the lock screen state or the desktop state.

[0222] This section introduces a method for the folding and opening module to detect whether the electronic device 100 needs to light up the folding screen for display.

[0223] In some embodiments, the electronic device 100 may further include a power management module. This power management module can determine a screen-on event based on a user operation that illuminates the screen. The power management module can power on the corresponding screen based on the screen-on event to illuminate the screen. The screen-on event may include a screen-on event indicating that the foldable screen is to be illuminated. Optionally, if the electronic device 100 includes a C-screen, the screen-on event may also include a screen-on event indicating that the C-screen is to be illuminated. The power management module can send the screen-on event to the folding / opening module. If the screen-on event is a screen-on event indicating that the foldable screen is to be illuminated, the folding / opening module can determine that the electronic device 100 is about to illuminate the foldable screen.

[0224] In some embodiments, the electronic device 100 can detect whether it needs to light up the foldable screen based on the folding angle. Specifically, when the folding angle is detected to change from less than a preset angle to greater than a preset angle, the electronic device 100 can determine that it is about to light up the foldable screen. For example, the preset angle can be a value such as 10° or 15°. This application embodiment does not limit the value of the preset angle.

[0225] The above embodiments are merely illustrative descriptions of a method for detecting whether an electronic device 100 needs to light up a foldable screen for display, and should not be construed as limiting this application.

[0226] In some embodiments, in response to a request from the folding module to obtain a wallpaper image, the wallpaper display application may send a wallpaper image to the folding module. For example, the wallpaper image may be image 1. Image 1 may be a wallpaper image set by the user or a wallpaper image preset by the electronic device 100.

[0227] In some embodiments, the folding / opening module obtains the lock screen wallpaper from the wallpaper display application. Then image 1 can be the lock screen wallpaper. Alternatively, the folding / opening module obtains the desktop wallpaper from the wallpaper display application. Then image 1 can be the desktop wallpaper.

[0228] In some embodiments, in response to a request from the folding / opening module to obtain a wallpaper image, the wallpaper display application can detect the state of the electronic device 100. If the electronic device 100 is in a locked screen state, the wallpaper display application can send a lock screen wallpaper to the folding / opening module. If the electronic device 100 is in a desktop state, the wallpaper display application can send a desktop wallpaper to the folding / opening module. If the electronic device 100 is neither in a locked screen state nor a desktop state, the wallpaper display application can send a message to the folding / opening module to indicate that the electronic device 100 does not currently need to display a wallpaper.

[0229] S513, Electronic device 100 can generate image 2 based on image 1.

[0230] In some embodiments, the folding / opening module can send image 1 to the UI framework. Image 1 can refer to the wallpaper image 410 shown in FIG4A above. The UI framework can send instructions to the rendering engine to generate an associated graph of image 1. The rendering engine can generate image 2 based on image 1.

[0231] In some embodiments, the UI framework can instruct the rendering engine to process image 1 using an AI image processing model to generate a relational graph of image 1. The AI ​​image processing model can be a model based on AI image generation technology, capable of generating an AI image of the input image. This application does not limit the implementation method of the aforementioned AI image processing model. That is to say, image 2 can be an AI image of image 1.

[0232] In some embodiments, in addition to Image 1 described above, the folding module can also send the size of a rendered image to the UI framework. This rendered image size can include the length and width of an image displayed on the foldable screen and adapted to the foldable screen. Based on the rendered image size, the UI framework can instruct the rendering engine to perform image expansion processing on Image 1. The rendering engine can generate an expanded image of Image 1. The size of the expanded image of Image 1 can be the same as the size of the rendered image. Further, the UI framework can instruct the rendering engine to process the expanded image of Image 1 using an AI image processing model to generate a related graph of Image 1. That is, Image 2 can be an AI image of the expanded image of Image 1. The embodiments of this application do not limit the method of the above-described image expansion processing.

[0233] Understandably, the size of image 1 may not be compatible with foldable screens. Therefore, the UI framework can first enlarge image 1 so that the displayed live wallpaper is an image adapted to foldable screens.

[0234] Image 2 can be referenced to image 450 shown in Figure 4E above, or image 460 shown in Figure 4F.

[0235] S514, the electronic device 100 can generate an image corresponding to the folding angle based on image 1 and image 2. The image corresponding to the folding angle is an intermediate image that gradually transitions from image 1 to image 2. The larger the folding angle, the closer the image corresponding to the folding angle is to image 2.

[0236] In some embodiments, when the folding angle detected by the folding angle detection module is received, the folding opening and closing module can send the folding angle to the folding animation module.

[0237] In some embodiments, the folding and opening module can detect whether the electronic device 100 needs to light up the foldable screen for display. If the electronic device 100 needs to light up the foldable screen for display, the folding and opening module can send a folding angle to the folding animation module. The method for detecting whether the electronic device 100 needs to light up the foldable screen for display can be referred to the description of step S512.

[0238] Optionally, when it is determined that the electronic device 100 needs to light up the foldable screen for display, the folding and opening module can also detect whether the electronic device 100 enters a lock screen state or a desktop state after the foldable screen is lit. If the electronic device 100 enters a lock screen state or a desktop state after the foldable screen is lit, the folding and opening module can send the folding angle to the folding animation module. If the electronic device 100 does not enter a lock screen state or a desktop state after the foldable screen is lit, the folding and opening module does not need to send the folding angle to the folding animation module. It is understandable that when not entering a lock screen state or a desktop state, the electronic device 100 does not need to display a wallpaper on the foldable screen, and therefore does not need to send the folding angle to the folding animation module to dynamically change the displayed wallpaper according to the change of the folding angle.

[0239] In some embodiments, the folding animation module can determine the folding progress based on the folding angle and send the folding progress to the UI framework.

[0240] In some embodiments, due to limitations such as data processing format, the UI framework may not be able to recognize and process the aforementioned folding angle. The folding animation module can convert the folding angle into a folding progress that can be recognized and processed by the UI framework. The larger the folding angle, the greater the folding progress. This application embodiment does not limit the format or value range of the folding progress.

[0241] In some embodiments, the UI framework can send instructions to the rendering engine to generate an image corresponding to the folding progress. Since the folding progress is derived from the folding angle, the image corresponding to the folding progress is also the image corresponding to the folding angle used to determine that folding progress. The rendering engine can generate an image corresponding to the folding progress based on Image 1 and Image 2. The image corresponding to the folding progress is an intermediate image that gradually transitions from Image 1 to Image 2. The larger the folding progress, the closer the image corresponding to the folding progress is to Image 2.

[0242] The rendering engine can fuse images 1 and 2 according to the folding progress to generate an image corresponding to the folding progress. The image corresponding to the folding progress can be seen in image 420 shown in Figure 4B, image 430 shown in Figure 4C, and image 440 shown in Figure 4D.

[0243] S515, Electronic device 100 can display an image corresponding to the folding angle.

[0244] In some embodiments, the rendering engine can send the image corresponding to the folding progress to the wallpaper display application via the UI framework and the folding animation module. The wallpaper display application can then display the image corresponding to the folding progress.

[0245] As shown by the above method, during the opening and closing of the foldable screen, the live wallpaper displayed by the electronic device 100 can present an animation effect of gradually changing from one image to another. Specifically, when the foldable screen is opened to a certain angle, the wallpaper image displayed on the foldable screen by the electronic device 100 can be determined based on this folding angle. Therefore, the animation effect presented by the electronic device 100 during the opening and closing of the foldable screen is strongly correlated with the change in folding angle. This can improve the responsiveness of the live wallpaper playback on the electronic device 100 during the opening and closing of the foldable screen. Furthermore, during the change of folding angle, the electronic device 100 can render and display the image corresponding to the folding angle in real time. This eliminates the need to store the video / animated image corresponding to the live wallpaper, thus saving storage space on the electronic device.

[0246] The following describes an image fusion method based on folding angle provided by an embodiment of this application.

[0247] This section uses a gradient texture as an example to illustrate the image change effect of a live wallpaper.

[0248] As shown in Figure 6, during the gradual unfolding of the foldable screen, the live wallpaper displayed on the foldable screen by the electronic device 100 can gradually change from the first frame image to the last frame image. The first frame image can be image 611. The last frame image can be image 612. For ease of illustration, white represents pixels of image 611 and black represents pixels of image 612. In some embodiments, image 612 can be an image generated based on image 611.

[0249] For example, the folding progress ranges from [0, 1]. The first frame image mentioned above can be the image corresponding to a folding progress of 0 (e.g., wallpaper image 410 shown in FIG4A). The last frame image mentioned above can be the image corresponding to a folding progress of 1 (e.g., image 450 shown in FIG4E).

[0250] In some embodiments, the electronic device 100 may use a texture sampler to perform texture sampling on image 612 of image 611. The texture may represent an image including a repeating pattern. This repeating pattern can be used for mapping. Mapping may represent mapping texture pixels onto texture coordinates. Texture sampling may refer to the operation of acquiring the color of a pixel from a texture image. The embodiments of this application do not limit the specific method of texture sampling.

[0251] Based on the texture sampling results of images 611 and 612 described above, the electronic device 100 can tile multiple texture spaces on image 611. The texture spaces can display the pixels of image 612 after texture sampling. For example, the electronic device 100 can use the function fract(uv*dotsnum) to tile the texture spaces. Here, uv can represent texture coordinates, and dotsnum can represent the number of texture spaces. fract(uv*dotsnum) means copying the texture space at coordinate position uv to dotsnum copies and tiling it. As shown in Figure 6, the texture space can be a black circle on the Mth frame image and the M+Nth frame image. M and N are both positive integers. The Mth frame image and the M+Nth frame image are both images displayed as dynamic wallpapers during the opening and closing of the folding screen. Not limited to the Mth frame image and the M+Nth frame image, the electronic device 100 can also display more intermediate images on the folding screen, changing from the first frame image to the last frame image. It can be seen that multiple texture spaces are tiled on both the Mth frame image and the M+Nth frame image. Since black represents pixels of image 612, each texture space displays the pixels of image 612 at their respective texture space locations. The number of texture spaces can be preset. This application embodiment does not limit the number or shape of texture spaces.

[0252] The electronic device 100 can also use the function `distance(uv, center)` to control the size of each texture space. Here, `center` represents the center position of the image. `distance(uv, center)` indicates that the radius of the texture space is inversely proportional to the distance of the texture space from `center`. That is, the farther away from the center of the image, the smaller the texture space can be. The electronic device 100 can use the function `nextImage` to control the display of pixels of image 611 or image 612 at each texture coordinate. Pixels of image 612 can be displayed within the texture space, while pixels of image 611 can be displayed outside the texture space.

[0253] In some embodiments, the electronic device 100 can adjust the size of the texture space based on the folding progress. The size of the texture space can be proportional to the folding progress. As shown in Figure 6, the folding progress corresponding to the M+Nth frame image is greater than that corresponding to the Mth frame image. The area occupied by the texture space in the M+Nth frame image is greater than that in the Mth frame image. The M+Nth frame image contains more pixels of image 612 than the Mth frame image. It can be seen that each texture space can increase with the increase of the folding progress. As the folding screen gradually unfolds, the folding progress becomes larger and larger, and the number of pixels of image 612 in the image corresponding to the folding progress increases while the number of pixels of image 611 decreases. In this way, the electronic device 100 can present an animation effect on the folding screen that gradually changes from image 611 to image 612.

[0254] In some embodiments, as the folding screen gradually closes, the live wallpaper displayed on the folding screen by the electronic device 100 can gradually change from the last frame image to the first frame image. That is, the animation effect of the live wallpaper displayed by the electronic device 100 during the folding screen closing process can be the inverse of the animation effect of the live wallpaper displayed by the electronic device 100 during the folding screen unfolding process. During the gradual closing of the folding screen, pixels of image 612 can be displayed within the texture space, and pixels of image 611 can be displayed outside the texture space, and the texture space decreases as the folding progress decreases. Because the folding progress becomes smaller, the number of pixels in image 612 decreases, while the number of pixels in image 611 increases.

[0255] Optionally, as the folding screen gradually unfolds, the live wallpaper displayed on the folding screen by the electronic device 100 can gradually change from image 611 to image 612, as shown in Figure 6. The texture space increases with the folding progress. Pixels of image 612 are displayed within the texture space. Pixels of image 611 are displayed outside the texture space. As the folding screen gradually closes, the live wallpaper displayed on the folding screen by the electronic device 100 can gradually change from image 612 to another image. This other image is different from image 611. For example, this other image can be generated based on image 611. The texture space decreases with the folding progress. Pixels of image 612 are displayed within the texture space. Pixels of the other image can be displayed outside the texture space.

[0256] In some embodiments, during image fusion, the electronic device 100 can also perform face recognition on the initial image in the live wallpaper (e.g., image 611) to determine facial features and face position. The facial features may include, but are not limited to, eye features, mouth features, etc. The face position can represent the location of the face in the image. Based on the facial features and face position, the electronic device 100 can use face preservation technology during image fusion to ensure consistency in facial features across the fused images corresponding to different folding progresses, and the face position on the fused images corresponding to different folding progresses can remain unchanged (it should be understood that maintaining the face position can include changes in face position within a certain error range).

[0257] In some embodiments, the sizes of the wallpaper image, the target image generated based on the wallpaper image, and the fused image generated based on the wallpaper image and the target image in the electronic device 100 can be larger than the screen size of the foldable screen. The dynamic wallpaper displayed by the electronic device 100 during the change of the folding angle can include an image obtained by cropping the aforementioned wallpaper image, target image, and fused image. The size of the cropping frame used for cropping the image can be adapted to the screen size of the foldable screen. The electronic device 100 can crop at the same position of the aforementioned wallpaper image, target image, and fused image. Alternatively, the electronic device 100 can move the position of the cropping frame to crop at different positions on different images. In this way, the cropped image can present different perspectives. The electronic device 100 can display the cropped image to present a camera movement (e.g., panning) animation effect. This application embodiment does not limit the method of moving the position of the cropping frame.

[0258] The above method is merely an exemplary illustration of image fusion based on folding angle in this application and should not be construed as limiting this application. For example, the electronic device 100 can also perform image fusion using an image generation model. The electronic device 100 can input the folding angle, image 611, and image 612 into the image generation model and obtain the fused image output by the image generation model. The above image generation model can be a neural network-based model. The embodiments of this application do not limit the method of the above image generation model.

[0259] Figures 7A to 7C illustrate some wallpaper display methods provided in this application.

[0260] In some embodiments, the electronic device 100 can generate a target image based on a wallpaper image. As the folding screen gradually unfolds, the electronic device 100 can merge the wallpaper image and the target image in real time according to the folding angle to present an animation effect of the wallpaper image gradually changing into the target image.

[0261] As shown in Figure 7A, the wallpaper display method may include:

[0262] 1. Obtain the wallpaper image.

[0263] The timing of when the electronic device 100 acquires the wallpaper image can be referred to the description of step S512 shown in Figure 5 above. For example, the wallpaper image can be image 711 shown in Figure 7A.

[0264] 2. Generate target image 1 based on the wallpaper image.

[0265] In some embodiments, the electronic device 100 can use an AI image processing module to process the wallpaper image and generate a target image 1, as described in step S513 of FIG5 above. For example, the target image 1 can be image 712 shown in FIG7A. The method for generating the target image 1 is not limited in the embodiments of this application.

[0266] 3. Based on the folding angle of the foldable screen, merge the wallpaper image and target image 1 to generate a merged image. The merged image is an intermediate image that gradually transitions from the wallpaper image to the target image 1.

[0267] The method for fusing the wallpaper image and target image 1 based on the folding angle can refer to the method shown in Figure 6 above. For example, image 713 shown in Figure 7A is a fused image of the wallpaper image and target image 1. The larger the folding angle (or folding progress), the closer image 713 can be to image 712. In some embodiments, the closer image 713 is to image 712, the more pixels image 713 contains.

[0268] During the process of changing the folding angle, the electronic device 100 can render the above-mentioned fused image in real time according to the folding angle.

[0269] In some embodiments, the electronic device 100 can enlarge a wallpaper image and generate a target image based on the enlarged image. As the foldable screen gradually unfolds, the electronic device 100 can fuse the enlarged image of the wallpaper image and the target image in real time according to the folding angle to present an animation effect of gradually changing from the enlarged image to the target image.

[0270] As shown in Figure 7B, the wallpaper display method may include:

[0271] 1. Obtain the wallpaper image.

[0272] The wallpaper image can be image 721 as shown in Figure 7B.

[0273] 2. Expand the wallpaper image according to the size of the foldable screen to generate an expanded image, and adapt the size of the expanded image to the size of the foldable screen.

[0274] The extended diagram can be image 722 as shown in Figure 7B.

[0275] 3. Generate target image 1' based on the extended image.

[0276] In some embodiments, the electronic device 100 may use an AI image model to process the extended image and generate the target image 1'.

[0277] The target image 1' can be image 723 as shown in Figure 7B.

[0278] 4. Based on the folding angle of the foldable screen, fuse the extended image and the target image 1' to generate a fused image. The fused image is an intermediate image that gradually transitions from the extended image to the target image 1'.

[0279] Image 724 shown in Figure 7B can be a fused image of the extended image and the target image 1'. The larger the folding angle, the closer image 723 is to image 723.

[0280] In some embodiments, the electronic device 100 can generate multiple target images based on the wallpaper image, such as target image 1 and target image 2. As the folding screen gradually unfolds, the electronic device 100 can fuse target image 1 and target image 2 in real time according to the folding angle to present an animation effect of target image 1 gradually changing into target image 2.

[0281] As shown in Figure 7C, the wallpaper display method may include:

[0282] 1. Obtain the wallpaper image.

[0283] The wallpaper image can be image 731 as shown in Figure 7C.

[0284] 2. Generate target image 1 and target image 2 based on the wallpaper image.

[0285] In some embodiments, the electronic device 100 may use an AI image model to process the wallpaper image and generate multiple target images, such as target image 1 and target image 2.

[0286] Target image 1 can be image 732 as shown in Figure 7C. Target image 2 can be image 733 as shown in Figure 7C.

[0287] 3. Based on the folding angle of the folding screen, merge target image 1 and target image 2 to generate a merged image. The merged image is an intermediate image that gradually transitions from target image 1 to target image 2.

[0288] Image 734 shown in Figure 7C can be a fused image of target image 1 and target image 2. The larger the folding angle, the closer image 734 is to image 733.

[0289] In some embodiments, after generating a fused image of two images based on the folding angle, the electronic device 100 can display the fused image as wallpaper on the folding screen. The upper layer of the fused image may display one or more interface elements (e.g., interface elements associated with the lock screen state or desktop state).

[0290] Alternatively, during image fusion, the electronic device 100 may overlay one or more interface elements. That is, the fused image of two images generated based on the folding angle may include one or more interface elements. Optionally, the display style and / or display position of the interface elements in the fused image can be determined based on the folding angle. That is, the display style and / or display position of the interface elements on images corresponding to different folding angles can be different. Thus, the dynamic wallpaper displayed by the electronic device 100 during the gradual unfolding of the folding screen can be an image that gradually transitions from one image to another (for example, from image 711 to image 712 as shown in Figure 7A, or from image 722 to image 723 as shown in Figure 7B, or from image 732 to image 733 as shown in Figure 7C), with one or more interface elements overlaid during the transition.

[0291] Figures 7A to 7C illustrate some methods provided in this application for an electronic device 100 to display a live wallpaper during the gradual unfolding of a folding screen. In some embodiments, if the initial state of the electronic device 100 is the unfolded state, the image presentation order when the electronic device 100 displays the live wallpaper during the gradual closing of the folding screen can be the reverse of the image presentation order under any of the wallpaper display methods in Figures 7A to 7C. For example, during the gradual closing of the folding screen, the electronic device 100 can merge the wallpaper image (image 711 as shown in Figure 7A) with a target image (image 712 as shown in Figure 7A) in real time according to the folding angle to present an animation effect in which a target image (image 712 as shown in Figure 7A) gradually changes into the wallpaper image (image 711 as shown in Figure 7A). For example, as the folding screen gradually closes, the electronic device 100 can merge an expanded image of the wallpaper (image 722 as shown in Figure 7B) with a target image (image 723 as shown in Figure 7B) in real time according to the folding angle, to present an animation effect of the target image (image 723 as shown in Figure 7B) gradually changing into the expanded image (image 722 as shown in Figure 7B). For example, as the folding screen gradually closes, the electronic device 100 can merge a target image (image 732 as shown in Figure 7C) with another target image (image 733 as shown in Figure 7C) in real time according to the folding angle, to present an animation effect of the other target image (image 733 as shown in Figure 7C) gradually changing into this target image (image 732 as shown in Figure 7C).

[0292] As shown by the above method, during the opening and closing of the foldable screen, the live wallpaper displayed by the electronic device 100 can present an animation effect of gradually changing from one image to another. Specifically, when the foldable screen is opened to a certain angle, the wallpaper image displayed on the foldable screen by the electronic device 100 can be determined based on this folding angle. Therefore, the animation effect presented by the electronic device 100 during the opening and closing of the foldable screen is strongly correlated with the change in folding angle. This can improve the responsiveness of the live wallpaper playback on the electronic device 100 during the opening and closing of the foldable screen. Furthermore, during the change of folding angle, the electronic device 100 can render and display the image corresponding to the folding angle in real time. This eliminates the need to store the video / animated image corresponding to the live wallpaper, thus saving storage space on the electronic device.

[0293] Figures 8A to 8D exemplarily illustrate another wallpaper display scenario provided by this application.

[0294] As shown in Figure 8A, the wallpaper image of the electronic device 100 is image 810. Image 810 can be a lock screen wallpaper or a desktop wallpaper. The electronic device 100 is in lock screen or desktop state. When the folding angle changes to β1 as shown in Figure 8A, the electronic device 100 can display image 820 on the folded screen. Here, β1 can be the starting angle when the electronic device 100 lights up the folded screen. That is, image 820 can be the first frame image of the electronic device 100 displaying the live wallpaper during the unfolding process of the folded screen.

[0295] As shown in Figure 8B, when the folding angle is further changed to β2, the electronic device 100 can display image 830 on the folding screen. Image 830 can be the image corresponding to the folding angle β2.

[0296] As shown in Figure 8C, when the folding angle is further changed to β3, the electronic device 100 can display image 840 on the folding screen. Image 840 can be the image corresponding to the folding angle β3.

[0297] As shown in Figure 8D, when the folding angle is further changed to β4, the electronic device 100 can display image 810 on the folding screen. Image 810 can be the image corresponding to the folding angle β4. Where β1 < β2 < β3 < β4, and β4 can be 180°.

[0298] In some embodiments, image 820 may be obtained based on image 810. For example, electronic device 100 may perform aesthetic composition on image 810 to obtain image 820. The aesthetic composition may include cropping image 810 multiple times and giving aesthetic scores to the cropped images obtained from these multiple croppings. The higher the aesthetic score, the more aesthetically pleasing the cropped image. Image 820 may be obtained based on the cropped image with the highest aesthetic score among the multiple croppings of image 810. Optionally, in order to adapt the cropped image with the highest aesthetic score to the size of the foldable screen, electronic device 100 may perform image processing such as stretching on the cropped image with the highest aesthetic score.

[0299] Image 830 can be obtained based on folding angle β2, image 810, and image 820. Image 840 can be obtained based on folding angle β3, image 810, and image 820.

[0300] As can be seen, images 820, 830, and 840 can all be obtained by cropping from image 810. Specifically, as the folding angle increases, the cropping frame of the image obtained by cropping image 810 to correspond to the folding angle becomes larger. For example, the cropping frame of image 830 obtained by cropping image 810 is larger than the cropping frame of image 820 obtained by cropping image 810. Similarly, the cropping frame of image 840 obtained by cropping image 810 is larger than the cropping frame of image 830 obtained by cropping image 810. Therefore, the larger the folding angle, the farther the scene presented by the live wallpaper displayed on the electronic device 100. For example, image 820 can be a close-up view of a scene (e.g., a mountain). Image 810 can be a distant view of the scene. Thus, during the unfolding of the folding screen, the live wallpaper displayed by the electronic device 100 can provide the user with a visual experience of observing the scene from near to far.

[0301] As shown in Figures 8A-8D, during the unfolding of the foldable screen, the wallpaper image displayed on the foldable screen by the electronic device 100 can dynamically change with the folding angle. Specifically, the electronic device 100 can display an image obtained by aesthetically composing the wallpaper image (such as image 810) in the initial state of the unfolded foldable screen. As the folding angle increases, the dynamic wallpaper displayed on the foldable screen by the electronic device 100 gradually approaches the original wallpaper image. Thus, as the foldable screen unfolds, the user can see the animation effect of the aesthetically composing image (i.e., image 820) gradually changing into the original wallpaper image (i.e., image 810).

[0302] In some embodiments, as the folding screen gradually closes, the live wallpaper displayed by the electronic device 100 can present an animation effect where image 810 gradually changes to image 820. That is, the animation effect of the live wallpaper during the folding screen closing process can be the inverse of the animation effect of the live wallpaper during the folding screen unfolding process as shown in Figures 4A to 4D. For example, if the folding angle increases from β1 to β2 as shown in Figure 8A and then decreases instead, the electronic device 100 can display images corresponding to each folding angle less than β2 on the folding screen. Specifically, if the folding angle gradually decreases from β2 to β1, the electronic device 100 can sequentially display images corresponding to each folding angle decreasing from β2 to β1. As can be seen from the foregoing embodiments, the smaller the folding angle, the closer the scene presented in the image corresponding to that folding angle.

[0303] It should be noted that this application embodiment does not limit the animation effect of the live wallpaper during the opening and closing of the folding screen. For example, the smaller the folding angle, the farther the field of view can be presented by the image corresponding to the folding angle. Thus, during the unfolding of the folding screen, the live wallpaper displayed by the electronic device 100 can present an animation effect of gradually changing from image 810 to image 820. During the closing of the folding screen, the live wallpaper displayed by the electronic device 100 can present an animation effect of gradually changing from image 820 to image 810.

[0304] In some embodiments, one or more interface elements (e.g., time information, status bar, etc.) may be displayed above images 820, 830, 840, and 810 shown in Figures 8A-8B. That is, the dynamic wallpaper displayed on the folding screen by the electronic device 100 may be on a different layer than the layer containing the aforementioned one or more interface elements. The display style and position of the aforementioned one or more interface elements may be fixed and not change with the folding angle. Alternatively, the display style and / or position of the aforementioned one or more interface elements may change with the folding angle, thereby presenting corresponding animation effects during the opening and closing of the folding screen. The animation effects of the aforementioned one or more interface elements may be independent of the animation effects of the wallpaper image. This application does not limit the animation effects of the aforementioned one or more interface elements.

[0305] In some embodiments, the image corresponding to the aforementioned folding angle may be an image that incorporates one or more of the aforementioned interface elements, based on images 810 and 820. That is, the aforementioned one or more interface elements are part of the wallpaper image. For example, the time information "08:08" shown in FIG8C may be part of image 840. Thus, the image displayed by the electronic device 100 during the gradual unfolding of the folding screen may be an image that gradually transitions from image 820 to image 810 and superimposes one or more interface elements during the transition.

[0306] In some embodiments, when the electronic device 100 is in a stand state, in response to the operation of lighting up the foldable screen, the electronic device 100 can light up the foldable screen and display the image 820 shown in FIG8A on the foldable screen. Then, as the folding angle of the foldable screen increases or decreases, the electronic device 100 can display an intermediate image that gradually transitions from image 820 to image 810 shown in FIG8D on the foldable screen according to the folding angle.

[0307] In some embodiments, when the electronic device 100 is in a stand state, in response to the operation of lighting up the foldable screen, the electronic device 100 can light up the foldable screen and display an image corresponding to the current folding angle on the foldable screen. The image corresponding to the current folding angle can be an image obtained by cropping image 810 according to the current folding angle.

[0308] As described above, during the opening and closing of the foldable screen, the live wallpaper displayed by the electronic device 100 can present an animated effect of gradually changing from one image to another. Furthermore, this change in displayed images can provide users with a visual experience of observing objects from near to far or from far to near. Specifically, when the foldable screen is opened to a certain angle, the wallpaper image displayed on the foldable screen can be determined based on that folding angle. Therefore, the animation effect presented by the electronic device 100 during the opening and closing of the foldable screen is strongly correlated with the change in the folding angle. This can improve the responsiveness of the live wallpaper playback during the opening and closing of the foldable screen.

[0309] The method for displaying the dynamic wallpapers shown in Figures 8A to 8D can refer to the wallpaper display method shown in Figure 5. However, unlike the method shown in Figure 5, in step S515, the UI framework can instruct the rendering engine to perform aesthetic composition on image 1. In some embodiments, the rendering engine can crop image 1 multiple times to obtain multiple cropped images of image 1. Then, the rendering engine can use an aesthetic scoring model to perform aesthetic scoring on the multiple cropped images of image 1. The higher the aesthetic score, the more aesthetically pleasing the cropped image. In the wallpaper display scenarios shown in Figures 8A to 8D, image 1 can be image 810 shown in Figure 8A. Image 2 generated by the rendering engine based on image 1 can be image 820 shown in Figure 8A. Optionally, the size of the cropping frame used for image cropping can be adapted to the size of the foldable screen. Adapting the size of the cropping frame to the size of the foldable screen can include: the size of the cropping frame and the size of the foldable screen having a proportional relationship. The aforementioned aesthetic scoring model can be a neural network model. This application embodiment does not limit the above-described method of aesthetic composition.

[0310] Furthermore, in step S514, the image corresponding to the folding angle can be an intermediate image that transitions from image 1 to image 2, or an intermediate image that transitions from image 2 to image 1. If the image corresponding to the folding angle is an intermediate image that transitions from image 2 to image 1, the method for generating the image corresponding to the folding angle based on images 1 and 2 can include: cropping image 1 based on the cropping frame used to crop image 2; the larger the folding angle, the larger the cropping frame used to crop image 1, and the farther the scene presented by the image corresponding to the folding angle. If the image corresponding to the folding angle is an intermediate image that transitions from image 1 to image 2, the method for generating the image corresponding to the folding angle based on images 1 and 2 can include: cropping image 1 based on the cropping frame used to crop image 2; the larger the folding angle, the smaller the cropping frame used to crop image 1, and the closer the scene presented by the image corresponding to the folding angle.

[0311] Figures 9A and 9B illustrate some other wallpaper display methods provided in this application.

[0312] In some embodiments, the electronic device 100 can aesthetically compose the wallpaper image to generate a target image (e.g., target image 3). During the gradual unfolding of the foldable screen, the electronic device 100 can generate an intermediate image that gradually transitions from the target image 3 to the wallpaper image in real time, based on the folding angle, the wallpaper image, and the target image 3. This allows for an animated effect where the target image 3 gradually transforms into the wallpaper image.

[0313] As shown in Figure 9A, the wallpaper display method may include:

[0314] 1. Obtain the wallpaper image.

[0315] The timing of when the electronic device 100 acquires the wallpaper image can be referred to the description of step S512 shown in Figure 5 above. For example, the wallpaper image can be image 911 shown in Figure 9A.

[0316] 2. Generate the target image 3 based on the wallpaper image.

[0317] In some embodiments, the electronic device 100 can aesthetically compose a wallpaper image to generate a target image 3.

[0318] As can be seen from the aforementioned aesthetic composition method, target image 3 can be obtained by cropping the wallpaper image. Target image 3 can be equivalent to a close-up of the scene in the wallpaper image. For example, target image 3 can be image 912 as shown in Figure 9A.

[0319] 3. Based on the folding angle of the folding screen, the wallpaper image, and the target image 3, generate an intermediate image that gradually transitions from the target image 3 to the wallpaper image.

[0320] In some embodiments, a method for generating an intermediate image that transitions from a target image 3 to a wallpaper image may include: cropping the wallpaper image using cropping frames of different sizes based on the target image 3, thereby obtaining the intermediate image. The size of the cropping frame may be between the size of the cropping frame used to crop the target image 3 and the size of the wallpaper image. The size of the cropping frame may be determined based on the folding angle (or folding progress). For example, the size of the cropping frame may increase as the folding angle (or folding progress) increases. Alternatively, the size of the cropping frame may decrease as the folding angle (or folding progress) increases. This application embodiment does not limit the size of the cropping frame used to crop each intermediate image.

[0321] For example, image 913 shown in Figure 9A is an intermediate image that transitions from the target image 3 to the wallpaper image. The larger the folding angle, the closer image 913 can be to image 911.

[0322] In some embodiments, not limited to image cropping, the method for generating an intermediate image that gradually transitions from the target image 3 to the wallpaper image may also include one or more image processing methods such as image scaling, image depth-of-field adjustment, and camera matrix adjustment.

[0323] The electronic device 100 can display an intermediate image that gradually transitions from the target image 2 to the wallpaper image, generated according to the folding angle, when the folding screen is folded to a certain angle. As the folding screen gradually unfolds, the live wallpaper displayed by the electronic device 100 can present an animated effect of gradually changing from image 912 to image 911. That is, the user can see an animated effect of the scene gradually zooming out.

[0324] In some embodiments, the electronic device 100 can generate an intermediate image that gradually transitions from the wallpaper image to the target image 3 based on the folding angle of the folding screen, the wallpaper image, and the target image 3. That is, the larger the folding angle, the closer image 913 can be to image 912. As the folding screen gradually unfolds, the dynamic wallpaper displayed by the electronic device 100 can present an animation effect that gradually changes from image 911 to image 912. That is, the user can see an animation effect where the scene gradually zooms in.

[0325] In some embodiments, the electronic device 100 can aesthetically compose a wallpaper image to generate a target image (e.g., target image 3), and expand the wallpaper image to generate another target image (e.g., target image 4). During the gradual unfolding of the foldable screen, the electronic device 100 can generate an intermediate image that gradually transitions from target image 3 to target image 4 in real time, based on the folding angle, target image 3, and target image 4. This allows for an animated effect of the gradual change from target image 3 to target image 4.

[0326] As shown in Figure 9B, the wallpaper display method may include:

[0327] 1. Obtain the wallpaper image.

[0328] The wallpaper image can be image 921 as shown in Figure 9B.

[0329] 2. Generate the target image 3 based on the wallpaper image.

[0330] Target image 3 can be equivalent to a close-up of the scene in the wallpaper image. Target image 3 can be image 922 as shown in Figure 9B.

[0331] 3. Expand the wallpaper image to generate target image 4. Target image 4 can be considered as a distant view of the scenery in the wallpaper image.

[0332] Target image 4 can be image 923 as shown in Figure 9B. The wallpaper image, target image 3, and target image 4 can all be the same size. Alternatively, target image 3 and target image 4 can be the same size, but different from the wallpaper image. The sizes of target image 3 and target image 4 can be adapted to the size of the foldable screen.

[0333] 4. Based on the folding angle of the folding screen, target image 3 and target image 4, generate an intermediate image that transitions from target image 3 to target image 4.

[0334] As can be seen, after image enlargement, the field of view presented by target image 4 can be farther than that presented by wallpaper image. Compared to gradually changing from target image 3 to wallpaper image, gradually changing from target image 3 to target image 4 can present a wider range of field of view changes. This can improve the viewing experience of dynamic wallpapers during the opening and closing of the foldable screen. For example, the intermediate image that gradually changes from target image 3 to target image 4 can include image 924 as shown in Figure 9B.

[0335] In some embodiments, the electronic device 100 can generate an intermediate image that transitions from the target image 4 to the target image 3 based on the folding angle of the folding screen, the target image 3, and the target image 3.

[0336] Figures 9A and 9B above illustrate some methods provided in this application for an electronic device 100 to display a live wallpaper during the gradual unfolding of a folding screen. In some embodiments, if the initial state of the electronic device 100 is an unfolded state, the image presentation order when the electronic device 100 displays the live wallpaper during the gradual closing of the folding screen can be the reverse of the image presentation order under any of the wallpaper display methods in Figures 9A and 9B above.

[0337] As described above, during the opening and closing of the foldable screen, the dynamic wallpaper displayed by the electronic device 100 can present an animation effect of gradually changing from one image to another. Furthermore, the changes in the displayed images can provide users with a visual experience of observing objects from near to far or from far to near. Specifically, when the foldable screen is opened to a certain angle, the wallpaper image displayed on the foldable screen by the electronic device 100 can be determined based on this folding angle. Therefore, the animation effect presented by the electronic device 100 during the opening and closing of the foldable screen is strongly correlated with the change in the folding angle. This can improve the responsiveness of the dynamic wallpaper playback during the opening and closing of the foldable screen. Moreover, during the change of the folding angle, the electronic device 100 can render and display the image corresponding to the folding angle in real time. This eliminates the need to store the video / animated image corresponding to the dynamic wallpaper, thus saving storage space on the electronic device.

[0338] Figures 10A to 10C exemplarily illustrate some wallpaper settings in various scenarios.

[0339] As shown in Figure 10A, the electronic device 100 can display a user interface 1010 on a foldable screen. The user interface 1010 may include desktop and wallpaper options 1011. Desktop and wallpaper options 1011 can be used to trigger the electronic device 100 to display controls for setting a wallpaper. When desktop and wallpaper options 1011 are selected, the electronic device 100 can display the content of the right-hand area of ​​the user interface 1010 shown in Figure 10A. The right-hand area of ​​the user interface 1010 may include an add wallpaper option 1012. In response to an operation on the add wallpaper option 1012, such as a click operation, the electronic device 100 can display the user interface 1020 shown in Figure 10B.

[0340] As shown in Figure 10B, the user interface 1020 may include an add control 1021. The add control 1021 can be used by the user to add an image as a wallpaper image. In some embodiments, in response to an operation on the add control 1021, the electronic device 100 can bring up the user interface of a gallery application, allowing the user to select an image as a wallpaper image in the gallery application. Optionally, in response to an operation on the add control 1021, the electronic device 100 can also open a camera application, allowing the user to take a picture as a wallpaper image. This application embodiment does not limit the method of adding an image as a wallpaper image.

[0341] After adding an image as wallpaper, the electronic device 100 can display the user interface 1030 shown in FIG10C.

[0342] As shown in Figure 10C, the user interface 1030 may include an image 1031, a lock screen wallpaper option 1032, a desktop wallpaper option 1033, an animation setting switch 1034, an AI composition animation option 1035, an aesthetic composition animation option 1036, a confirmation control 1037, and a cancellation control 1038.

[0343] Image 1031 can be an image that the user selects as the wallpaper image.

[0344] Lock screen wallpaper option 1032 can be used to set image 1031 as the lock screen wallpaper.

[0345] Desktop wallpaper option 1033 can be used to set image 1031 as the desktop wallpaper. Specifically, when both lock screen wallpaper option 1032 and desktop wallpaper option 1033 are selected, the electronic device 100 can set both the lock screen wallpaper and the desktop wallpaper to image 1031.

[0346] The motion effect setting switch 1034 can be used to turn the function of providing live wallpapers on the foldable screen on or off. When the motion effect setting switch 1034 is on, the electronic device 100 can display live wallpapers as the foldable screen unfolds or closes. The display scenarios of live wallpapers can be referred to the scenarios shown in Figures 4A to 4F and Figures 8A to 8D. When the motion effect switch 1034 is off, the electronic device 100 can always display the wallpaper image set by the user (e.g., image 1031) as the foldable screen unfolds or closes. That is, when the motion effect setting switch 1034 is off, the electronic device 100 can display static wallpapers.

[0347] In some embodiments, when the animation setting switch 1034 is turned on, the electronic device 100 can provide options corresponding to multiple animation types. This allows the user to select the type of animation effect presented by the live wallpaper. For example, these options corresponding to multiple animation types may include AI composition animation option 1035 and aesthetic composition animation option 1036.

[0348] With AI composition animation option 1035 selected, the electronic device 100 can process the wallpaper image using an AI image model to generate a target image. Then, the electronic device 100 can perform image fusion based on the method shown in Figure 6 above, generating and displaying an image corresponding to the folding angle. The image corresponding to the folding angle can incorporate pixels from two images. In other words, with AI composition animation option 1035 selected, the electronic device 100 can display a dynamic wallpaper based on the methods shown in Figures 7A to 7C above.

[0349] With the aesthetic composition animation effect option 1036 selected, the electronic device 100 can perform aesthetic composition on the wallpaper image to generate a target image. Then, based on the target image, the electronic device 100 can crop the wallpaper image using cropping frames of different sizes to generate and display an image corresponding to the folding angle. The image corresponding to the folding angle can be an image obtained by cropping a single image. In other words, with the aesthetic composition animation effect option 1036 selected, the electronic device 100 can display a dynamic wallpaper based on the methods shown in Figures 9A and 9B.

[0350] The options corresponding to the above animation types are merely illustrative examples of this application and should not be construed as limiting this application.

[0351] The control 1037 can be used to trigger the electronic device 100 to set the image 1031 as the wallpaper image according to the wallpaper type option and the option corresponding to the animation type that are selected in the user interface 1030.

[0352] Cancel control 1038 can be used to cancel setting the wallpaper image.

[0353] As shown in Figures 10A to 10C, users can customize their lock screen wallpaper and / or desktop wallpaper, and also set the animation type of the live wallpaper. The electronic device 100 can display the live wallpaper based on the user-defined wallpaper image. This improves the user experience when using live wallpapers on the electronic device 100.

[0354] In some embodiments, the animation type of the live wallpaper can be determined by the electronic device 100 based on the wallpaper image. The electronic device 100 can perform image recognition on the wallpaper image and determine its category. If the category of the wallpaper image is a first category, the electronic device 100 can process the wallpaper image using an AI image model to generate a target image and display the live wallpaper based on the methods shown in Figures 7A to 7C. If the category of the wallpaper image is a second category, the electronic device 100 can perform aesthetic composition on the wallpaper image to generate a target image and display the live wallpaper based on the methods shown in Figures 9A and 9B. For example, the first category can be a portrait image. The second category can be a landscape image. The embodiments of this application do not limit the method for determining the animation type of the live wallpaper.

[0355] Figure 11 illustrates an exemplary wallpaper display method provided in this application. This method can be applied to electronic devices with foldable screens.

[0356] S1111, The electronic device detects the folding angle of the folding screen, and the electronic device contains a first image.

[0357] Step S1111 can refer to step S511 shown in Figure 5 above. The first image is an image that is set as the lock screen wallpaper or desktop wallpaper in the electronic device. For example, the first image can refer to wallpaper image 410 shown in Figure 4A, or image 810 shown in Figure 8A.

[0358] S1112. When the folding angle of the folding screen is the first folding angle, the electronic device displays a second image on the folding screen. The second image is obtained based on the first folding angle, the third image, and the fourth image. The smaller the first folding angle, the closer the second image is to the third image. The larger the first folding angle, the closer the second image is to the fourth image. The third and fourth images are obtained based on the first image.

[0359] For example, if the first folding angle is folding angle α1 as shown in Figure 4B, then the second image can be image 420 as shown in Figure 4B. If the first folding angle is folding angle α2 as shown in Figure 4C, then the second image can be image 430 as shown in Figure 4C. If the first folding angle is folding angle α3 as shown in Figure 4D, then the second image can be image 440 as shown in Figure 4D. Alternatively, if the first folding angle is folding angle β1 as shown in Figure 8A, then the second image can be image 820 as shown in Figure 8A. If the first folding angle is β2 as shown in Figure 8B, then the second image can be image 830 as shown in Figure 8B. If the first folding angle is β3 as shown in Figure 8C, then the second image can be image 840 as shown in Figure 8C.

[0360] In some embodiments, when the folding screen changes to a flattened state (e.g., the first folding angle is 180°), the second image can be a fourth image. When the first folding angle is a critical angle for triggering the folding screen to turn on / off (e.g., 10° or 15°), the second image can be a third image. The aforementioned critical angle for triggering the folding screen to turn on / off can be expressed as follows: when the folding angle is greater than or equal to the critical angle, the electronic device can turn on the folding screen; when the folding angle is less than the critical angle, the electronic device can turn off the folding screen.

[0361] Alternatively, when the first folding angle is the starting angle at which the foldable screen is lit, the second image can be the third image. The starting angle at which the foldable screen is lit can be any angle greater than the critical angle for triggering the foldable screen to light up / off, but less than 180°. For example, a starting angle of 90° for the foldable screen to light up indicates that the electronic device lights up the foldable screen at a folding angle of 90°. That is, the electronic device can display the third image on the foldable screen when it is lit. Then, as the folding angle increases, the electronic device can display an intermediate image that gradually transitions from the third image to the fourth image on the foldable screen, thus presenting an animation effect of the third image gradually changing into the fourth image.

[0362] It can be seen that the image displayed on the foldable screen of an electronic device when it is opened or closed to a certain angle can be determined based on the folding angle. Therefore, the animation effects presented by the electronic device during the opening and closing of the foldable screen are strongly correlated with the change in the folding angle. This can improve the responsiveness of playing live wallpapers on electronic devices during the opening and closing of the foldable screen.

[0363] In some embodiments, the third image is the first image, and the fourth image is an AI image obtained by processing the first image using artificial intelligence (AI) image generation technology. For example, the third image is image 711 shown in FIG. 7A. The fourth image is image 712 shown in FIG. 7B.

[0364] Alternatively, the third image can be an image obtained by enlarging the first image, and the fourth image can be an AI image obtained by using AI image generation technology on the third image. For example, the third image is image 722 shown in Figure 7B. The fourth image is image 723 shown in Figure 7B.

[0365] Alternatively, both the third and fourth images can be AI images obtained by processing the first image using AI image generation technology. For example, the third image is image 732 shown in Figure 7C. The fourth image is image 733 shown in Figure 7C.

[0366] The second image can be obtained by fusing the third and fourth images based on the method shown in Figure 6 above. The second image may include pixels from the third and / or fourth images. The closer the second image is to the third image, the more pixels the third image has, and the fewer pixels the fourth image has. Conversely, the closer the second image is to the fourth image, the fewer pixels the third image has, and the more pixels the fourth image has.

[0367] As can be seen from the above embodiments, during the opening and closing of the foldable screen, the dynamic wallpaper displayed by the electronic device can present an animated effect of image gradient.

[0368] In some embodiments, the third image is an image cropped from the first image, and the fourth image is the first image. For example, the third image is image 912 shown in FIG. 9A. The fourth image is image 911 shown in FIG. 9B.

[0369] Alternatively, the third image can be a cropped version of the first image, and the fourth image can be an enlarged version of the first image. For example, the third image is image 922 shown in Figure 9B. The fourth image is image 923 shown in Figure 9B.

[0370] Alternatively, both the third and fourth images can be cropped from the first image, with the cropping box used to crop the third image being smaller than the cropping box used to crop the fourth image.

[0371] The second image can be obtained by cropping the fourth image from the third image. The larger the first folding angle, the larger the cropping frame used to obtain the second image. Therefore, the larger the first folding angle, the closer the second image is to the fourth image.

[0372] As can be seen from the above embodiments, during the opening and closing of the foldable screen, the dynamic wallpaper displayed on the electronic device can present an animation effect of the scene from near to far, thereby providing users with a visual experience of observing the scene from near to far.

[0373] In some embodiments, during the process of the folding angle of the foldable screen changing from a first folding angle to a second folding angle, the electronic device displays a first image sequence on the foldable screen. The second folding angle is greater than the first folding angle. The first image in the first image sequence is the second image. Images displayed later in the first image sequence are closer to the fourth image than images displayed earlier. The first image sequence includes multiple images corresponding to folding angles within a first angle range. The first angle range is the range greater than or equal to the first folding angle and less than or equal to the second folding angle. An image corresponding to a folding angle in the first image sequence is obtained based on that folding angle, the third image, and the fourth image. The smaller the folding angle, the closer the image corresponding to that folding angle is to the third image; the larger the folding angle, the closer the image corresponding to that folding angle is to the fourth image.

[0374] For example, the first folding angle can be folding angle α2 as shown in Figure 4C. The second folding angle can be folding angle α3 as shown in Figure 4D. The second image can be image 430 as shown in Figure 4C. The last image displayed in the first image sequence can be image 440 as shown in Figure 4D. The first image sequence can include multiple images displayed by the electronic device during the process of the folding angle increasing from α2 as shown in Figure 4C to α3 as shown in Figure 4D.

[0375] In some embodiments, during the process of the folding angle of the folding screen changing from a second folding angle to a third folding angle, the electronic device displays a second image sequence on the folding screen, where the third folding angle is smaller than the second folding angle, and the image displayed later in the second image sequence is closer to the third image than the image displayed earlier; wherein, the second image sequence includes images corresponding to multiple folding angles contained in a second angle interval, and the second angle interval is an interval greater than or equal to the third folding angle and less than or equal to the second folding angle.

[0376] For example, the second folding angle can be folding angle α3 as shown in Figure 4D. The third folding angle is folding angle α1 as shown in Figure 4B. The first image in the second image sequence can be image 440 as shown in Figure 4D. The last image displayed in the second image sequence can be image 420 as shown in Figure 4B. The second image sequence can include multiple images displayed by the electronic device during the process of the folding angle decreasing from α3 as shown in Figure 4D to α1 as shown in Figure 4B.

[0377] In some embodiments, after the electronic device displays a fourth image on the foldable screen, the electronic device detects a first operation and switches the fourth image to a fifth image on the foldable screen, the fifth image being obtained based on the first image. For example, the fifth image may be an AI image obtained from the first image using AI image generation technology.

[0378] The first operation can be a user action used to change the wallpaper. For example, the first operation may include, but is not limited to: pressing the power button to turn off the foldable screen and then pressing the power button again to turn the foldable screen on, or a user action of swiping left or right on the foldable screen, etc.

[0379] For example, the fourth image can be image 450 as shown in Figure 4E. The fifth image can be image 460 as shown in Figure 4F.

[0380] In some embodiments, the electronic device further includes a first display screen, which is disposed opposite to the folding screen. The electronic device can display a first image on the first display screen before the folding screen displays a second image, wherein the electronic device is in a folded state; when the folding angle of the folding screen increases to a fifth folding angle, the electronic device lights up the folding screen and displays a third image on the folding screen, wherein the fifth folding angle is less than the first folding angle.

[0381] The first display screen can be the C-screen shown in Figure 2C. The fifth folding angle can be the critical angle that triggers the folding screen to turn on / off (e.g., 10° or 15°, etc.).

[0382] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.

[0383] This application also provides a computer program product, including a computer program that, when run on a processor, can implement the steps in the various method embodiments described above.

[0384] This application also provides a chip system, which includes a processing circuit and an interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.

[0385] It is understood that the user interfaces described in the embodiments of this application are merely example interfaces and do not constitute a limitation on the solution of this application. In other embodiments, the user interface may adopt different interface layouts, may include more or fewer controls, and may add or remove other functional options, as long as they are based on the same inventive concept provided in this application, they are all within the protection scope of this application.

[0386] It should be noted that, without causing contradictions or conflicts, any feature in any embodiment of this application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of this application.

[0387] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A wallpaper display method, characterized in that, The method is applied to an electronic device having a foldable screen, the electronic device including a first image, the method comprising: The electronic device detects the folding angle of the folding screen; When the folding angle of the folding screen is a first folding angle, the electronic device displays a second image on the folding screen. The second image is obtained based on the first folding angle, a third image, and a fourth image. The smaller the first folding angle, the closer the second image is to the third image. The larger the first folding angle, the closer the second image is to the fourth image. The third image and the fourth image are obtained based on the first image.

2. The method according to claim 1, characterized in that, The first image is an image that is set as the lock screen wallpaper or desktop wallpaper in the electronic device.

3. The method according to claim 1 or 2, characterized in that, The third image is the first image, and the fourth image is an AI image obtained by processing the first image using artificial intelligence (AI) image generation technology; or... The third image is an image obtained by expanding the first image, and the fourth image is an AI image obtained by processing the third image using the AI ​​image generation technology; or... The third image and the fourth image are both AI images obtained by processing the first image using the AI ​​image generation technology; or... The third image is a cropped version of the first image, and the fourth image is the first image; or... The third image is a cropped version of the first image, and the fourth image is an enlarged version of the first image; or... Both the third image and the fourth image are images cropped from the first image, and the cropping frame used to crop the third image is smaller than the cropping frame used to crop the fourth image.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: During the process of the folding angle of the folding screen changing from the first folding angle to the second folding angle, the electronic device displays a first image sequence on the folding screen. The second folding angle is greater than the first folding angle. The first image in the first image sequence is the second image. The image displayed later in the first image sequence is closer to the fourth image than the image displayed earlier. The first image sequence includes multiple images corresponding to folding angles within a first angle interval. The first angle interval is an interval greater than or equal to the first folding angle and less than or equal to the second folding angle. The image corresponding to a folding angle in the first image sequence is obtained based on the folding angle, the third image, and the fourth image. The smaller the folding angle, the closer the image corresponding to the folding angle is to the third image. The larger the folding angle, the closer the image corresponding to the folding angle is to the fourth image.

5. The method according to claim 4, characterized in that the method further comprises: During the process of the folding angle of the folding screen changing from the second folding angle to the third folding angle, the electronic device displays a second image sequence on the folding screen, the third folding angle being smaller than the second folding angle, and the image displayed later in the second image sequence being closer to the third image than the image displayed earlier; The second image sequence includes images corresponding to multiple folding angles contained in the second angle interval, wherein the second angle interval is an interval greater than or equal to the third folding angle and less than or equal to the second folding angle.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: When the folding angle of the folding screen changes to 180°, the electronic device displays the fourth image on the folding screen.

7. The method according to claim 6, characterized in that, After the electronic device displays the fourth image on the foldable screen, the method further includes: The electronic device detects the first operation and switches the fourth image to a fifth image on the foldable screen, the fifth image being obtained based on the first image.

8. The method according to claim 6, characterized in that, The method further includes: During the process of the folding angle of the folding screen decreasing from 180° to the fourth folding angle, the electronic device displays a third image sequence on the folding screen. The first image of the third image sequence is the fourth image. The image displayed later in the first image sequence is closer to the sixth image than the image displayed earlier. The sixth image is obtained based on the first image. The first image sequence includes multiple images corresponding to folding angles within a third angle interval. The third angle interval is a range greater than or equal to the fourth folding angle and less than or equal to 180°. The image corresponding to a folding angle in the third image sequence is obtained based on the folding angle, the fourth image, and the sixth image. The smaller the folding angle, the closer the image corresponding to the folding angle is to the sixth image. The larger the folding angle, the closer the image corresponding to the folding angle is to the fourth image.

9. The method according to any one of claims 1-8, characterized in that, The method further includes: The electronic device displays one or more interface elements on the foldable screen, and the display style and / or display position of the one or more interfaces are determined according to the folding angle of the foldable screen.

10. The method according to any one of claims 1-9, characterized in that, The electronic device further includes a first display screen, which is disposed opposite to the foldable screen. Before the foldable screen displays the second image, the method further includes: The electronic device displays the first image on the first display screen, wherein the electronic device is in a folded state; When the folding angle of the folding screen increases to the fifth folding angle, the electronic device lights up the folding screen and displays the third image on the folding screen, wherein the fifth folding angle is smaller than the first folding angle.

11. The method according to any one of claims 1-10, characterized in that, Before the electronic device displays the second image on the foldable screen, the method further includes: The electronic device detects a screen-on event and determines, based on the screen-on event, whether the electronic device enters a lock screen state or a desktop state after the screen is turned on. In response to the screen-on event, the electronic device lights up the foldable screen.

12. An electronic device, characterized in that, The electronic device includes a foldable screen, a memory, and a processor, wherein the memory is used to store a computer program; and the processor executes the computer program to implement the method of any one of claims 1-11.

13. A computationally readable storage medium storing instructions, characterized in that, When the instructions are executed by the processor, they implement the method of any one of claims 1-11.

14. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by a processor, implement the method of any one of claims 1-11.