Wallpaper display method and electronic device

By obtaining the offset of the wallpaper, the problem of wallpaper size not matching in different states of the folding screen device is solved, the smooth display and aesthetics of the wallpaper are achieved, and the user experience and device stability are improved.

WO2025001257A1PCT designated stage expired Publication Date: 2025-01-02HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079455
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-30
Filing Date
2024-02-29
Publication Date
2025-01-02

AI Technical Summary

Technical Problem

When the folding screen device displays wallpaper under different device states, there are problems such as inappropriate wallpaper size and sudden changes in the picture, which affects the user's visual experience.

Method used

By obtaining the offset of the wallpaper, adjusting the display area of ​​the wallpaper, ensuring that the display area size of the wallpaper in the folded and expanded states is consistent with the bright screen area of ​​the screen, achieving smooth display and aesthetics of the wallpaper, and through permission restrictions Avoid tampering with wallpaper size arbitrarily.

Benefits of technology

It realizes that when the status of the folding screen device changes, there is no need to switch wallpaper, avoid sudden changes in the picture, improve user experience and usage satisfaction, and ensure the stability and security of wallpaper display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079455_02012025_PF_FP_ABST
    Figure CN2024079455_02012025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals. Provided are a wallpaper display method and an electronic device. The electronic device is a foldable-screen device, and the foldable-screen device in an unfolded state displays a first interface, which first interface displays content within a display region of a first wallpaper that is in the unfolded state, for example, all of the content of the first wallpaper. The first wallpaper has a corresponding offset, which offset is used for determining an offset value of the display region of the first wallpaper in a folded state relative to the display region of the first wallpaper in the unfolded state, and in other words, the first wallpaper is used for determining display content of the first wallpaper in the folded state. Then, during the display of the first wallpaper, a user folds the foldable-screen device such that the foldable-screen device is switched to the folded state, and the foldable-screen device can read the offset corresponding to the first wallpaper, so as to determine the display content of the first wallpaper using the offset and to display part of the content of the first wallpaper, thereby realizing adaptive wallpaper display in different device states, and ensuring the visual experience of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Wallpaper display method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on June 30, 2023, with application number 202310804802.7 and invention name “A wallpaper display method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a wallpaper display method and electronic device. Background Art

[0003] As foldable screen technology matures, the number of users using foldable screen devices (such as foldable screen phones) is increasing. While using these devices, users often display wallpapers, such as desktop wallpapers and lock screen wallpapers. Since foldable screen phones can be in different states (such as folded and unfolded), how to display wallpapers on these devices has become a pressing issue.

[0004] Summary of the Invention

[0005] In view of this, the present application provides a wallpaper display method and electronic device for realizing the display of wallpaper on a folding screen device in different device states.

[0006] In a first aspect, the present application provides a wallpaper display method, which is applied to a foldable screen device, wherein the foldable screen device in an unfolded state displays a first interface, and the first interface displays a first wallpaper in full screen; the first wallpaper has a corresponding offset; the offset of the first wallpaper represents the offset value of the display area of ​​the first wallpaper in the folded state relative to the display area of ​​the first wallpaper in the unfolded state; the size of the display area of ​​the first wallpaper in the folded state is the same as the size of the bright screen area of ​​the screen in the folded state, and the size of the display area of ​​the first wallpaper in the unfolded state is the same as the size of the bright screen area of ​​the screen in the unfolded state;

[0007] Afterwards, the user folds the folding screen device. In response to the folding operation of the folding screen device, the device state of the folding screen device can be switched from the unfolded state to the folded state. The folding screen device in the folded state obtains the offset of the first wallpaper, and displays the second interface based on the offset of the first wallpaper. The second interface displays part of the content of the first wallpaper (or is described as the second interface displays the second wallpaper, and the second wallpaper is part of the content of the first wallpaper); wherein, the part of the content of the first wallpaper displayed on the second interface (that is, the second wallpaper) is offset in the target direction relative to the first wallpaper displayed on the first interface corresponding to the offset, that is, part of the content of the first wallpaper is determined based on the offset of the first wallpaper.

[0008] In the present application, when the folding screen device is in the unfolded state, the folding screen device displays the content of the display area of ​​the first wallpaper in the unfolded state. The display area of ​​the first wallpaper in the unfolded state is the same size as the bright screen area of ​​the screen in the unfolded state. That is to say, if the content in the display area of ​​the first wallpaper in the unfolded state is the entire content of the first wallpaper, then when the folding screen device displays the wallpaper, it displays the entire content of the first wallpaper. During the display of the wallpaper, when the folding screen device switches from the expanded state to the folded state, the size of the bright screen area of ​​the screen of the folding screen device becomes smaller. Therefore, the folding screen device can determine part of the content in the display area of ​​the first wallpaper in the expanded state as the content in the display area of ​​the first wallpaper in the folded state based on the offset of the first wallpaper, and the size of the display area of ​​the first wallpaper in the folded state is the same as the size of the bright screen area of ​​the screen in the folded state, and then display the content in the display area of ​​the first wallpaper in the folded state, that is, the folding screen device reduces the content of the displayed first wallpaper to achieve adaptation of the displayed wallpaper size in different device states, and when switching from the expanded state to the folded state, directly reduces the content of the displayed first wallpaper without switching the displayed wallpaper, thereby achieving smooth display of the wallpaper, avoiding the problem of sudden picture changes, improving the user's visual experience, and thus improving user satisfaction.

[0009] In one possible design, after displaying a portion of the first wallpaper, if the user unfolds the foldable device again, the device state switches from folded to unfolded, and the foldable device again displays the first wallpaper in full screen. In other words, the foldable device displays the first wallpaper in full screen on the third interface. This allows for adaptive display of the wallpaper without switching between displayed wallpapers, resulting in smooth wallpaper display.

[0010] In one possible design, the process of displaying the first wallpaper in full screen again can be that the foldable screen device displays the remaining content of the first wallpaper until the complete content of the first wallpaper is displayed, thereby achieving a dynamic wallpaper display effect. Alternatively, the foldable screen device directly displays the complete content of the first wallpaper, thereby achieving a fast and complete display of the first wallpaper.

[0011] In one possible design, the first wallpaper is the wallpaper corresponding to the target theme, and the content in the display area of ​​the first wallpaper in the expanded state is the entire content of the first wallpaper. Before displaying the first interface, the user can first set the wallpaper theme of the folding screen device to the target theme. Specifically, the target theme setting process may include: upon receiving a second operation input by the user, in response to the second operation, the folding screen device may create a wallpaper window with a size equal to the size of the bright screen area of ​​the screen in the folded state; the second operation is used to trigger setting the theme of the folding screen device to the target theme, such as the second operation is a target theme setting operation.

[0012] The foldable device sets the size of the surface corresponding to the wallpaper window. The surface size is the size of the bright screen area of ​​the screen in the unfolded state, that is, the size of the full-screen display of the first wallpaper. The foldable device can draw the complete content of the first wallpaper on the surface.

[0013] Correspondingly, the first interface / third interface displays the complete content of the first wallpaper in the surface, and the second interface displays that the second wallpaper is part of the content of the first wallpaper in the surface.

[0014] In this application, after setting the theme, the folding screen device can create a wallpaper window of the same size as the bright screen area of ​​the current screen, and set the surface size corresponding to the wallpaper window to the size of the bright screen area of ​​the screen in the expanded state, that is, the size of the surface is independent of the size of the bright screen area of ​​the current screen, and the complete first wallpaper is drawn on the surface. When the folding screen needs to display wallpaper, the first wallpaper on the surface is displayed based on the wallpaper window. When the size of the bright screen area of ​​the current screen is the size of the expanded state, the size of the wallpaper window is consistent with the size of the surface, and all the content on the surface is displayed, that is, the complete first wallpaper is displayed. When the size of the bright screen area of ​​the current screen is the size of the folded state, the size of the wallpaper window is smaller than the size of the surface, and part of the content on the surface is displayed, that is, part of the first wallpaper is displayed, thereby displaying wallpaper that matches the size of the bright screen area of ​​the current screen, ensuring the aesthetics of the wallpaper display. Moreover, since the size of the surface is the size of the bright screen area of ​​the screen in the unfolded state, when the device state of the folding screen device is switched, the folding screen device does not need to reset the surface to obtain a surface with the same size as the bright screen area of ​​the current screen, thereby avoiding the problem of flickering of the wallpaper screen due to the need to reset the surface when the device state of the folding screen device is switched.

[0015] In one possible design, if the wallpaper application of the foldable device has setting permissions, the foldable device sets the size of the surface through the wallpaper application. Based on this, the permission restriction can prevent any application from setting the size of the surface, thereby preventing the surface size from being tampered with by some applications, ensuring the security of the wallpaper setting, and improving the stability of the wallpaper display, avoiding the size of the wallpaper displayed on the foldable device from being constantly changed. For example, when the foldable device is in the unfolded state, the size of the wallpaper displayed on the foldable device is mismatched with the size of the bright screen area of ​​the current screen due to the reduction of the surface, thereby ensuring the user experience.

[0016] In one possible design approach, whether the wallpaper application has the setting permission can be determined through the following two implementation methods.

[0017] In one implementation, a preset whitelist is used to determine whether a wallpaper application has settings. The foldable screen device determines whether a wallpaper application identifier exists in the preset whitelist. If a wallpaper application identifier exists in the preset whitelist, the wallpaper application has settings permission, meaning it has the permission to call a preset settings interface to set the surface size.

[0018] When the preset whitelist does not contain the identifier of the wallpaper application, the wallpaper application has the permission not to set, that is, does not have the permission to call the preset setting interface.

[0019] In another implementation, the full permissions of the application are used to determine whether the wallpaper application has settings. The foldable screen device obtains all permissions possessed by the wallpaper application. If the full permissions include settings permissions, the wallpaper application has settings permissions, that is, it has the permission to call the preset settings interface to set the surface size.

[0020] In the case that the setting permission does not exist among all permissions, the wallpaper application does not have the setting permission, that is, does not have the permission to call the preset setting interface.

[0021] In one possible design approach, the foldable screen device can add the identifier of the above-mentioned wallpaper application to the preset whitelist by calling the preset addition interface, so that the wallpaper application has setting permissions and realizes the addition of device permissions.

[0022] In a possible design, the theme package corresponding to the target theme has an offset of the first wallpaper (or is described as an offset corresponding to the first wallpaper).

[0023] The folding screen device can write the offset of the first wallpaper in the theme package corresponding to the target theme into the preset database. Correspondingly, the folding screen device reads the offset of the first wallpaper from the preset database to obtain the offset of the first wallpaper.

[0024] In a possible design, the process of writing the offset of the first wallpaper may include:

[0025] If the wallpaper offset does not exist in the preset database, the foldable screen device can directly write the offset of the first wallpaper to the preset database. If the wallpaper offset does exist in the preset database, the foldable screen device can delete the offset of the wallpaper already in the preset database and then write the offset of the first wallpaper to the preset database. Based on this, the resource usage caused by saving wallpapers can be reduced, and the offset of the first wallpaper can be quickly read.

[0026] In one possible design, when the foldable screen device is folded left and right, the offset of the first wallpaper is the offset in the x-direction, and accordingly, the target direction is the x-direction. When the foldable screen device is folded up and down, the offset is the offset in the y-direction, and accordingly, the target direction is the y-direction.

[0027] In one possible design, the process of determining the display area of ​​the first wallpaper in the folded state may include:

[0028] The above-mentioned folding screen device determines the position of the display area of ​​the first wallpaper in the folded state based on the offset and the size of the bright screen area of ​​the screen in the folded state, thereby determining the display area of ​​the first wallpaper in the folded state.

[0029] In one possible design method, there is a corresponding offset mode for the first wallpaper. The offset mode indicates the offset position of the display area of ​​the first wallpaper in the folded state relative to the display area of ​​the first wallpaper in the unfolded state. When the folding screen device is folded left and right, the offset mode includes one or more of the center mode, the left mode and the right mode; when the folding screen device is folded up and down, the offset mode includes one or more of the center mode, the top mode and the bottom mode. Among them, the offset mode is similar to the storage, reading and application process of the above-mentioned offset (such as using the offset mode to display wallpaper in the folded state).

[0030] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory, and one or more processors; the display screen, the memory, and the processor are coupled; the display screen is used to display an image generated by the processor, the display screen includes a folding screen, and the memory is used to store computer program code, the computer program code including computer instructions; when the processor executes the computer instructions, the electronic device executes the wallpaper display method as described in any one of the above-mentioned first aspects.

[0031] In a third aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the wallpaper display method as described in any one of the first aspects above.

[0032] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the wallpaper display method as described in any one of the first aspects above.

[0033] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, and the computer program product described in the fourth aspect provided above can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] FIG1A is a schematic diagram of an interface of a folding screen device in an unfolded state provided by an embodiment of the present application;

[0035] FIG1B is a schematic diagram of an interface of a folding screen device in a folded state provided by an embodiment of the present application;

[0036] FIG1C is a first schematic diagram of an outward folding process of a folding screen device provided by an embodiment of the present application;

[0037] FIG1D is a first schematic diagram of a folding screen device provided in an embodiment of the present application;

[0038] FIG1E is a second schematic diagram of a folding screen device provided in an embodiment of the present application;

[0039] FIG2A is a first schematic diagram of a wallpaper display provided by an embodiment of the present application;

[0040] FIG2B is a second schematic diagram of a wallpaper display provided in an embodiment of the present application;

[0041] FIG2C is a third schematic diagram of a wallpaper display provided in an embodiment of the present application;

[0042] FIG3 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0043] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0044] FIG5 is a flowchart of a wallpaper display method according to an embodiment of the present application;

[0045] FIG6A is a first schematic diagram of an interface for wallpaper settings provided in an embodiment of the present application;

[0046] FIG6B is a second schematic diagram of an interface for wallpaper settings provided in an embodiment of the present application;

[0047] FIG6C is a third schematic diagram of an interface for wallpaper settings provided in an embodiment of the present application;

[0048] FIG6D is a fourth schematic diagram of an interface for wallpaper settings provided in an embodiment of the present application;

[0049] FIG6E is a fifth schematic diagram of an interface for wallpaper settings provided in an embodiment of the present application;

[0050] FIG7A is a first schematic diagram of a display area of ​​a wallpaper provided in an embodiment of the present application;

[0051] FIG7B is a second schematic diagram of a display area of ​​a wallpaper provided in an embodiment of the present application;

[0052] FIG7C is a first schematic diagram of a wallpaper provided in an embodiment of the present application;

[0053] FIG7D is a second schematic diagram of a wallpaper provided in an embodiment of the present application;

[0054] FIG8A is a first schematic diagram of display content of a wallpaper provided in an embodiment of the present application;

[0055] FIG8B is a second schematic diagram of display content of a wallpaper provided in an embodiment of the present application;

[0056] FIG8C is a third schematic diagram of display content of a wallpaper provided in an embodiment of the present application;

[0057] FIG9 is a second flow chart of a wallpaper display method provided in an embodiment of the present application;

[0058] FIG10A is a fourth schematic diagram of a wallpaper display provided in an embodiment of the present application;

[0059] FIG10B is a fifth schematic diagram of a wallpaper display provided by an embodiment of the present application;

[0060] FIG11A is a sixth schematic diagram of a wallpaper display provided by an embodiment of the present application;

[0061] FIG11B is a seventh schematic diagram of a wallpaper display provided by an embodiment of the present application;

[0062] FIG11C is a schematic diagram eight of a wallpaper display provided in an embodiment of the present application;

[0063] FIG12 is a ninth schematic diagram of a wallpaper display provided by an embodiment of the present application;

[0064] FIG13 is a third flow chart of a wallpaper display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0066] The screen of a foldable screen device (foldable screen phone) is a single, integrated screen that can be folded or unfolded. Accordingly, a foldable screen device has two device states: folded and unfolded. When the screen is in the unfolded state (as shown in FIG. 1A ), the entire screen area can be used to display data, such as a wallpaper. When the screen is in the folded state (as shown in FIG. 1B ), part of the screen area is used to display data, while another part remains black and is not used to display data. In other words, the size (or described as the size) of the screen's illuminated area varies between foldable screen phones in different device states. When the foldable screen phone is in the unfolded state, the size of the screen's illuminated area can be the size of the screen itself. The foldable screen phone is then folded (as shown in FIG. 1C , by folding the foldable screen phone outward along the folding edge, i.e., folding the foldable screen phone toward the side opposite the user interface display) to form a folded screen phone. When the foldable screen phone is in the folded state (as shown in FIG. 1B ), the size of the screen's illuminated area is a portion of the screen size.

[0067] It should be noted that the folding method of the foldable screen mobile phone can be folded left and right as shown in Figure 1C above, or folded up and down as shown in Figure 1D. The embodiment of this application does not limit the folding method of the foldable screen mobile phone. In addition, the number of folding edges corresponding to the foldable screen mobile phone can be one as shown in Figures 1A, 1C and 1D above, or a value greater than 1, such as two as shown in Figure 1E. The embodiment of this application does not limit the number of folding edges.

[0068] In some embodiments, after a foldable phone applies a theme, the foldable phone displays the wallpaper corresponding to the theme when displaying the desktop. Because the size of the bright screen area of ​​a foldable phone's screen varies in different device states, the wallpaper displayed by the foldable phone in different device states may vary in size. When the foldable phone is in the folded state, the foldable phone may display a wallpaper whose size matches the bright screen area of ​​the folded screen. When the foldable phone is in the unfolded state, the foldable phone displays a wallpaper whose size matches the bright screen area of ​​the unfolded screen. While the foldable phone is displaying a wallpaper, the device state of the foldable phone may change. When the device state changes, the foldable phone needs to switch the displayed wallpaper to display a wallpaper whose size matches the bright screen area of ​​the screen in the changed device state. During this switching period, the foldable phone may flicker before the switch is successful, causing a sudden change in the display and affecting the user's visual experience. For example, while the foldable phone is displaying the wallpaper shown in FIG. 2A , if the device state of the foldable phone switches from folded to unfolded, the screen of the foldable phone will flicker (as shown in FIG. 2B ). Afterwards, the foldable screen mobile phone can display a wallpaper that is adapted to the size of the bright screen area of ​​the screen in the unfolded state as shown in Figure 2C.

[0069] Therefore, in response to the above problems, the present application proposes a wallpaper display method. The wallpaper display method is mainly for folding screen devices with an outward folding mode (as shown in Figure 1C above). The folding screen device receives a return to desktop operation, indicating that the folding screen device needs to display the desktop wallpaper. The folding screen device can respond to the return to desktop operation. When the current device state is the unfolded state, the folding screen device can directly display the complete first wallpaper, that is, display the first interface on the screen, and the first interface includes the complete first wallpaper. Afterwards, the user folds the folding screen device, and the device state of the folding screen device switches to the folded state. Since the size of the bright screen area of ​​the screen in the folded state is smaller than the size of the bright screen area of ​​the screen in the unfolded state, the folding screen device needs to adjust the size of the displayed first wallpaper. The folding screen device can obtain the offset information of the first wallpaper, which indicates the offset position of the display area of ​​the first wallpaper in the folded state relative to the display area (i.e., the complete area) of the first wallpaper in the unfolded state. It can be used to determine the position of the display area of ​​the first wallpaper in the folded state, that is, to determine the display content of the first wallpaper in the folded state. Afterwards, the folding screen device displays part of the content of the first wallpaper based on the offset information, that is, reducing the display area of ​​the first wallpaper so that the display area of ​​the first wallpaper is adapted to the size of the screen area in the folded state, thereby achieving adaptive display of the wallpaper without switching the display, achieving smooth display of the wallpaper, avoiding the problem of sudden picture changes, improving the user's visual experience, and thus improving user satisfaction.

[0070] It should be noted that for foldable screen devices, when the folding mode of the foldable screen device is an inward folding mode, when the foldable screen device is in the unfolded state, it displays the wallpaper through the inner screen. When the foldable screen device is in the folded state, it displays the wallpaper through the outer screen, and the inner screen and the outer screen are opposite to each other and are not on the same side. During the display of the wallpaper, if the folded state is switched to the unfolded state, the screen displaying the wallpaper is switched from the outer screen to the inner screen, and the screen switching will inevitably cause the problem of sudden picture changes. Therefore, there is no need to apply the wallpaper display method proposed in this application. It should be understood that when the folding mode of the foldable screen device is an inward folding mode, the foldable screen can be folded inward along the folding edge, that is, the foldable screen can be folded toward the side that can display the user interface to form a foldable screen mobile phone in a folded state.

[0071] For example, the foldable screen device in the embodiment of the present application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, and other electronic devices with a foldable screen. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.

[0072] For example, FIG3 shows a schematic diagram of the structure of the electronic device 200. As shown in FIG3, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 211, a power management module 212, a battery 213, an antenna 1, an antenna 2, a mobile communication module 240, a wireless communication module 250, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, and a subscriber identification module (SIM) card interface 295.

[0073] It should be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0074] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0075] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0076] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.

[0077] In some embodiments, the processor 210 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

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

[0079] The charging management module 211 is used to receive charging input from a charger. While charging the battery 213 , the charging management module 211 can also provide power to the electronic device through the power management module 212 .

[0080] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 240, the wireless communication module 250, the modem processor and the baseband processor.

[0081] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0082] The mobile communication module 240 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the electronic device 200. The modem processor can include a modulator and a demodulator.

[0083] The wireless communication module 250 can provide wireless communication solutions for application on the electronic device 200, 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 technology (NFC), infrared technology (IR), etc.

[0084] Electronic device 200 implements display functionality through a GPU, display screen 294, and an application processor. A GPU is a microprocessor for image processing that connects display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or modify display information.

[0085] Display screen 294 is used to display images, videos, and the like. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 200 may include one or N display screens 294, where N is a positive integer greater than one.

[0086] In some embodiments, the display screen 294 may be a folding screen, wherein the folding method of the folding screen may be an outward folding method as shown in FIG. 1C .

[0087] Exemplarily, when the folding angle of the folding screen (i.e., the angle between the two parts of the screen folded along the folding edge) θ (such as θ shown in Figure 1C above) can be in the range of [0°, 180°], it can be determined that the folding screen mobile phone is in the folded state. When θ is in the range of (X, 180°], it can be determined that the folding screen mobile phone is in the unfolded state. Wherein, X is a first preset angle threshold. X can be set by the folding screen mobile phone before leaving the factory, or it can be set by the user in the folding screen mobile phone, or it can be determined by the folding screen mobile phone based on the user's usage habits. This application does not limit the value of X. For example, X can be set to 85°, 90° or 95°, etc. Assuming that X is set to 90°, when the folding angle θ of the folding screen is less than or equal to 90°, it is determined that the folding screen mobile phone is in the folded state; when the folding angle θ of the folding screen is greater than 90°, it is determined that the folding screen mobile phone is in the unfolded state.

[0088] The electronic device 200 can implement a shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.

[0089] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.

[0090] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0091] The electronic device 200 can implement audio functions such as music playback and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0092] The buttons 290 include a power button, a volume button, etc. The indicator 292 may be an indicator light.

[0093] The sensor module 280 may include a folding angle detection sensor, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0094] The folding angle detection sensor is used to detect the folding angle of the electronic device 200, that is, the screen, such as the folding angle θ shown in FIG1C . For example, the folding angle detection sensor may be a Hall sensor.

[0095] The software system of the electronic device 200 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. TM Taking the system as an example, the software structure of the electronic device 200 is exemplified.

[0096] FIG4 is a structural block diagram of an electronic device 200 according to an embodiment of the present invention.

[0097] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the software system is divided into four layers: the application layer, the application framework layer, the runtime and system libraries layer, and the kernel layer.

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

[0099] As shown in FIG4 , the application package may include applications such as camera, gallery, calendar, call, map, theme application, WLAN, music, wallpaper application, and short message.

[0100] The theme application can be used to set the wallpaper of the electronic device. The wallpaper application, also known as wallpaper APK (Android Package), can be used to load the wallpaper to be displayed.

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

[0102] As shown in FIG4 , the application framework layer may include a window manager, a preset database, a view system, a wallpaper framework, a resource manager, a wallpaper window, and the like.

[0103] The preset database can be used to store data, such as offset information for wallpapers.

[0104] The wallpaper window can be used to display wallpapers.

[0105] The wallpaper framework can be used to read and parse wallpaper theme packages, launch wallpaper applications, etc.

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

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

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

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

[0110] In some embodiments, the software layer can communicate with the hardware layer. For example, the software layer can receive the folding angle or device status sent by the folding angle detection sensor to determine the size of the bright screen area of ​​the electronic device's current screen, the current device status, etc. For another example, the software layer can send wallpaper content to the display screen so that the display screen can display the wallpaper.

[0111] It is understood that the layers and components contained in each layer in the structure shown in FIG4 do not constitute a specific limitation on the electronic device 200, i.e., the foldable screen device. In other embodiments of the present application, the structure may include more or fewer layers than shown, and each layer may include more or fewer components, and this application does not limit this.

[0112] The present application provides a wallpaper display method. When a user uses a folding screen device, the user can set the theme of the folding screen device. After the theme setting is completed, the folding screen device can apply the theme and display the corresponding wallpaper. The following will take the above-mentioned electronic device (or folding screen device) as a folding screen mobile phone, and the folding method is an outward folding method as an example, and combine the accompanying drawings to introduce in detail a wallpaper display method provided in an embodiment of the present application. As shown in Figure 5, the method may include steps S301-S313.

[0113] S301: The foldable screen mobile phone receives a second operation input by the user, wherein the second operation is used to trigger the foldable screen mobile phone to set the theme of the foldable screen mobile phone as the target theme.

[0114] Exemplarily, the second operation described above can be an operation to set a target theme. For example, a user clicks the settings application icon shown in FIG6A . In response to the click of the settings application icon, the foldable screen phone may display a corresponding settings interface, which displays a home screen and wallpaper controls. Subsequently, the user may click the home screen and wallpaper controls. In response to the click of the home screen and wallpaper controls, the foldable screen phone may display the interface shown in FIG6B , which includes a theme control that can be used to trigger the display of theme resources. Subsequently, when the user clicks the theme control, the foldable screen phone, in response to the click of the theme control, displays the interface shown in FIG6C , which includes at least one theme option (such as "Blooming," "Walking," or "Bubble," as shown in FIG6C ). The user can select a theme as desired. After the user selects the Blooming theme option, in response to the selection of the Blooming theme option, the foldable screen phone may display a preview image corresponding to the Blooming theme, as shown in FIG6D , which illustrates the display effect of the foldable screen phone after applying the Blooming theme. Upon receiving the user's click on the application control shown in FIG6D , indicating that the user desires to apply the Blooming theme to the foldable screen phone, the foldable screen phone applies the Blooming theme. Here, the user clicking the application control can be the second operation described above, and the blooming theme selected by the user can be the target theme described above. Afterwards, when the foldable screen mobile phone needs to display the wallpaper corresponding to the blooming theme, if the foldable screen mobile phone receives a return to desktop operation, the foldable screen mobile phone can display the wallpaper shown in Figure 6E.

[0115] It is understandable that the above operation process of setting the theme is only an example, and the user can also set the theme in other ways, which is not limited by this application.

[0116] S302: In response to the second operation, the foldable screen mobile phone obtains configuration data of a first wallpaper corresponding to the target theme, wherein the configuration data of the first wallpaper includes an offset of the first wallpaper.

[0117] Among them, the offset of the above-mentioned first wallpaper represents the position offset of the display content (or described as the display area) of the first wallpaper in the folded state relative to the display content of the first wallpaper in the expanded state. The offset of the first wallpaper can be used to determine the display part of the first wallpaper in the folded state. The display content of the first wallpaper in the expanded state is the complete first wallpaper. The size of the display area of ​​the first wallpaper in the expanded state is adapted to (such as being the same as) the size of the bright screen area of ​​the screen in the expanded state. The display content of the first wallpaper in the folded state is part of the content of the first wallpaper, that is, the display area of ​​the first wallpaper in the folded state is a partial area of ​​the first wallpaper. The size of the display area of ​​the first wallpaper in the folded state is adapted to the size of the bright screen area of ​​the screen in the folded state.

[0118] In one embodiment, each theme (such as the target theme described above) corresponds to a theme package. The theme package corresponding to the theme may include a configuration file corresponding to the wallpaper corresponding to the theme (such as the first wallpaper described above). The configuration file may include wallpaper configuration data, such as the offset of the wallpaper. In addition, the theme package may also include other information, such as a preview image after the theme is applied (such as the preview image corresponding to the blooming theme described above). This application does not limit the information included in its theme package.

[0119] In some embodiments, the configuration file corresponding to the wallpaper may include not only the wallpaper offset, but also at least one of the following configuration information: blur configuration information, depth mode configuration information, and elastic animation stiffness configuration information. It should be understood that if the wallpaper is static, there is no dynamic playback process, and therefore, the configuration file corresponding to the wallpaper may not include elastic animation stiffness configuration information.

[0120] Among them, the above-mentioned blur setting information indicates whether the wallpaper supports blur effects. For example, when a folding screen mobile phone displays a wallpaper in the lock screen state, when the user slides up on the screen, if the blur setting information indicates that a blur effect is supported, the folding screen mobile phone will blur the wallpaper and display the blurred wallpaper. Exemplarily, the blur setting information can be represented by support_background_blur. When the value of support_background_blur is true, it indicates that the wallpaper supports blur effects. When the value of support_background_blur is false, it indicates that the wallpaper does not support blur effects.

[0121] The above-mentioned depth mode configuration information indicates whether the wallpaper supports dark mode. Exemplarily, the depth mode configuration information can be represented by support_dark_mode. When the value of support_dark_mod is true, it indicates that the wallpaper supports dark mode. When the value of support_dark_mod is false, it indicates that the wallpaper does not support dark mode.

[0122] The above elastic animation stiffness configuration information represents the dynamic playback effect of the wallpaper. In the case of a dynamic wallpaper, the wallpaper is equivalent to an animation. The stiffness value affects the playback speed of the animation. The pop-up animation stiffness configuration information is the stiffness value of the wallpaper. Exemplarily, the elastic animation stiffness configuration information can be represented by fold-spring-stiffness. When the value of fold-spring-stiffness is 60, it indicates that the stiffness value of the wallpaper is 60.

[0123] In some embodiments, the wallpaper configuration file may be in an extensible markup language (XML) format. Accordingly, the configuration file is configured as follows:

[0124] <support_background_blur> true< / support_background_blur> / / The wallpaper supports blur effect;

[0125] <support_dark_mode> true< / support_dark_moder> / / The wallpaper supports dark mode;

[0126] <fold_spring_stiffness> 15< / fold_spring_stiffness> / / The stiffness value of the wallpaper is 15;

[0127] <outfold_x_coordinate> 100< / outfold_x_coordinate> / / The wallpaper is offset by 100 pixels in the x direction.

[0128] It is understandable that if a foldable phone is folded left or right, when the device state of the foldable phone changes, the width of the foldable phone will change, but the height will not change. Therefore, the wallpaper offset is the offset in the x-direction. For example, if the wallpaper offset is 100 pixels in the x-direction, assuming that the left vertex of the first wallpaper is the origin, as shown in Figure 7A, the display area of ​​the first wallpaper in the folded state is offset by 100 pixels in the horizontal direction (i.e., the x-direction) compared to the display area of ​​the first wallpaper in the unfolded state.

[0129] If the foldable phone is folded vertically (as shown in Figure 1D above), when the device state of the foldable phone changes, the height of the foldable phone will change, but the width will not change. Therefore, the wallpaper offset is the offset in the y direction. For example, if the wallpaper offset is 100 pixels in the y direction, assuming that the left vertex of the first wallpaper is the origin, as shown in Figure 7B, the display area of ​​the first wallpaper in the folded state is offset by 100 pixels in the vertical direction (i.e., the y direction) compared to the display area of ​​the first wallpaper in the unfolded state.

[0130] The above-mentioned offset is expressed in pixels as an example only, and can also be expressed in other units, such as millimeters, etc., which is not limited in this application.

[0131] In some embodiments, the configuration data of the first wallpaper may not include the offset of the first wallpaper, but include the offset mode of the first wallpaper. When the folding mode of the folding screen mobile phone is left-right folding, the offset mode includes at least one of the center mode, the left mode, and the right mode. When the folding mode of the folding screen mobile phone is top-bottom folding, the offset mode includes at least one of the top mode, the bottom mode, and the center mode. In other words, the configuration data of the first wallpaper may include the offset information of the first wallpaper, and the offset information includes the offset amount or the offset mode.

[0132] The following uses the example of a foldable screen mobile phone that folds left and right to introduce the offset mode of the wallpaper (such as the first wallpaper).

[0133] Among them, the above-mentioned centering mode indicates that the display area of ​​the first wallpaper in the folded state is centered relative to the display area of ​​the first wallpaper in the expanded state. In other words, the centering mode indicates that the display content of the first wallpaper in the folded state is the middle part of the first wallpaper in the expanded state.

[0134] The above-mentioned left-aligned mode indicates that the display area of ​​the first wallpaper in the folded state is aligned to the left relative to the display area of ​​the first wallpaper in the expanded state. In other words, the centering mode indicates that the display content of the first wallpaper in the folded state is the left part of the first wallpaper in the expanded state.

[0135] The above-mentioned right-aligned mode indicates that the display area of ​​the first wallpaper in the folded state is aligned to the right relative to the display area of ​​the first wallpaper in the expanded state. In other words, the centering mode indicates that the display content of the first wallpaper in the folded state is the right part of the first wallpaper in the expanded state.

[0136] In some embodiments, in one case, the offset or offset mode of the wallpaper can be set according to aesthetic requirements. For example, assuming that the folding screen mobile phone is folded left and right, when the key object on the wallpaper (such as the flower shown in Figure 7A above) is located in the middle of the wallpaper, the offset mode of the wallpaper can be a centered mode or the offset in the x direction is relatively centered, so as to display the key object as much as possible. When the key object on the wallpaper is located on the left side of the wallpaper, the offset mode of the wallpaper can be a left display mode, or the offset in the x direction is less different from the distance between the upper left corner vertex of the wallpaper. For example, in the wallpaper as described in Figure 7C, the character on it is located on the left side of the wallpaper. Therefore, the offset mode of the wallpaper can be a left mode or the offset is less different from the distance between the upper left corner vertex of the wallpaper.

[0137] Similarly, when the key object on the wallpaper is located on the right side of the wallpaper, the offset mode of the wallpaper can be the right-aligned mode, or the offset in the x-direction is significantly different from the distance between the upper left corner vertex of the wallpaper. As shown in Figure 7D, the character on the wallpaper is located on the right side of the wallpaper. The offset mode of the wallpaper can be the right-aligned mode, or the offset in the x-direction is significantly different from the distance between the upper left corner vertex of the wallpaper. In another case, the user can set the offset or offset mode of the wallpaper according to usage requirements. The folding screen mobile phone can provide corresponding selection controls for the user to select the offset or offset mode when the user selects the wallpaper, or provide corresponding input controls (such as text boxes) for the user to enter the offset or offset mode to meet the user's personalized needs.

[0138] S303. The foldable screen mobile phone writes the offset of the first wallpaper into a preset database.

[0139] For example, after obtaining the offset of the first wallpaper, the foldable screen mobile phone can call the relevant write interface, use the offset of the first wallpaper as an input parameter, and write the offset of the first wallpaper to the preset database through a key-value method. When the foldable screen mobile phone is in the folded state and needs to display the first wallpaper, the first wallpaper can be displayed using the offset of the first wallpaper. Among them, key can represent the field corresponding to the offset of the first wallpaper, and value can represent the specific offset value.

[0140] In some embodiments, the preset database may be a local settings database of a foldable phone. The implementation code for the write interface may be as follows:

[0141] private void setOutFoldOffsetToSettings(float offset){

[0142] Settings.Secure.putFloatForUser(mContext.getContentResolver().OUTFOLD_X_COO RDINATE,offset,mContext.getUserId());

[0143] Log.i(TAG,”setOutFoldOffsetToSettings, offset="+offset);

[0144] }

[0145] The OUTFOLD_X_COORDINATE can be defined as public static final String OUTFOLD_X_COORDINATE="outfold_x_coordinate". mContext.getUserId() indicates the identifier of the current user.

[0146] In the above, OUTFOLD_X_COORDINATE represents the value, and offset represents the key.

[0147] It should be noted that when there are multiple user identifiers (such as user names) on a foldable screen mobile phone, it indicates that multiple users share the foldable screen mobile phone. Each user has a corresponding space that can be used to store applications, themes and other content. Therefore, the above-mentioned preset database may include the offset of the wallpaper corresponding to each user identifier among the multiple user identifiers. The foldable screen mobile phone can write the offset of the first wallpaper and the identifier of the current user into the preset database together. In addition, the preset database may also only include the offset of the wallpaper corresponding to the identifier of the current user. Therefore, the foldable screen mobile phone can directly write the offset of the first wallpaper to the preset database without involving the identifier of the current user.

[0148] It should be understood that the above-mentioned user identification can be added through "Add User" in the foldable screen mobile phone.

[0149] In some embodiments, the above-mentioned preset database is dynamically updated, and it can only save the offset of the wallpaper currently used by the folding screen mobile phone, such as the offset of the first wallpaper mentioned above, so as to reduce the resource occupation caused by saving wallpapers, and can realize the quick reading of the offset of the first wallpaper. That is to say, before the folding screen mobile phone writes the offset of a new wallpaper to the preset database, if the preset database already stores the offset of a wallpaper, the folding screen mobile phone can first delete the offset of the wallpaper. Then, the folding screen mobile phone can write the offset of the new wallpaper (ie, the first wallpaper) to the preset database.

[0150] Optionally, the preset database includes wallpaper offsets corresponding to multiple user identifiers. If the preset database already stores the wallpaper offset corresponding to the current user's identifier, the foldable screen mobile phone can first delete the wallpaper offset corresponding to the current user's identifier. Then, the foldable screen mobile phone can write the offset of the first wallpaper to the preset database.

[0151] In some embodiments, the foldable screen mobile phone may not write the offset of the first wallpaper into a preset database, but write it into other local locations of the foldable screen mobile phone, such as a file, a cache, etc.

[0152] S304. The foldable screen mobile phone creates a wallpaper window whose size is the size of the bright screen area of ​​the current screen, and sets the size of the drawing area surface to the size of the bright screen area of ​​the screen in the unfolded state.

[0153] Among them, the drawing area is used for drawing objects (such as the first wallpaper) on the foldable screen mobile phone, and the drawing area determines the maximum range that the foldable screen mobile phone can draw. The wallpaper window is equivalent to a container, which is used to determine the area that the foldable screen mobile phone can display. It determines the range of content displayed by the foldable screen mobile phone that the user can see. For example, the wallpaper window in the folded state can display the content within the display area of ​​the first wallpaper in the folded state, and the wallpaper window in the expanded state can display the content within the display area of ​​the first wallpaper in the expanded state. The size of the wallpaper window is the same as the size of the bright screen area of ​​the current screen of the foldable screen mobile phone.

[0154] In an embodiment of the present application, after determining the first wallpaper selected by the user, the foldable screen mobile phone can first obtain the size of the bright screen area of ​​the current screen. Afterwards, the foldable screen mobile phone can create a wallpaper window based on the size of the bright screen area of ​​the current screen. The foldable screen mobile phone also allocates a drawing area to the wallpaper window (or describes it as creating a drawing area), and sets the size of the drawing area to the size of the bright screen area of ​​the screen in the unfolded state, that is, to the size of the screen, so that the foldable screen mobile phone can directly use the wallpaper window and surface to display the first wallpaper when it needs to display it.

[0155] The size of the drawing area is not limited to the size of the bright screen area of ​​the current screen of the foldable screen mobile phone. The size of the drawing area may be the same as the size of the bright screen area of ​​the current screen of the foldable screen mobile phone, that is, the same as the size of the wallpaper window, or it may be different. For example, when the foldable screen mobile phone is currently in a folded state, the size of the drawing area is larger than the size of the bright screen area of ​​the current screen, that is, larger than the size of the wallpaper window. When the foldable screen mobile phone is currently in an unfolded state, the size of the drawing area is equal to the size of the bright screen area of ​​the current screen, that is, equal to the size of the wallpaper window.

[0156] It should be noted that each wallpaper window corresponds to a surface, and the surface corresponds to a screen buffer. Objects (such as view components, wallpapers) need to be drawn on the surface. It can be simply understood that the surface is equivalent to a canvas that can be used to draw content. The wallpaper window is equivalent to a frame placed on the canvas. When the canvas size and the frame size are the same, the user can see the complete contents of the canvas (as shown in Figure 8A). When the folding screen mobile phone is in the folded state, the frame size is smaller than the canvas size (as shown in Figure 8B), and the user can see the contents in the window, that is, part of the canvas content (as shown in Figure 8C), but cannot see the contents of the complete drawing area.

[0157] In some embodiments, to avoid repeatedly creating wallpaper windows, the foldable screen phone can first determine whether the foldable screen phone has a wallpaper window, that is, whether the wallpaper window has not been destroyed. If the foldable screen phone has a wallpaper window corresponding to the current device state, the foldable screen phone does not need to repeatedly create a corresponding wallpaper window. The foldable screen phone can directly use the wallpaper window to display the first wallpaper, avoiding the waste of resources caused by repeatedly creating wallpaper windows.

[0158] Similarly, a foldable phone can first determine whether the surface corresponding to the wallpaper window exists on the phone, that is, whether the surface corresponding to the wallpaper window has not been destroyed. If the surface exists, the foldable phone does not need to allocate a surface or set the size of the surface. If the surface does not exist, the foldable phone can allocate a surface and set the size of the surface.

[0159] In some embodiments, the folding screen mobile phone can call the preset setting interface (such as the public void setFixedSize(int width, int height) interface) based on the BaseSurfaceHolder class to implement the setting of the surface size. Wherein, width represents the width of the bright screen area of ​​the screen in the expanded state (such as the width of the bright screen area of ​​the screen in the expanded state shown in Figure 1C above), and height represents the height of the bright screen area of ​​the screen in the expanded state (such as the height of the bright screen area of ​​the screen in the expanded state shown in Figure 1C above). The code file corresponding to the preset setting interface can be saved in the / frameworks / base / core / java / android / service / wallpaper / WallpaperService.java file. Of course, it can also be saved in other files, and this application does not limit it.

[0160] In some embodiments, the foldable screen mobile phone can use the wallpaper application to set the size of the surface. Specifically, using the wallpaper application to set the size of the surface can refer to S70-S72 shown in Figure 9.

[0161] S70 and foldable screen phones determine whether the wallpaper application has setting permissions.

[0162] To improve security, the foldable screen mobile phone can first determine whether the wallpaper application has setting permissions. If the wallpaper application has setting permissions, it indicates that the wallpaper application has high security and has permission to set the surface size, that is, it has permission to call the above-mentioned preset setting interface, and the foldable screen mobile phone can execute S71.

[0163] When the wallpaper application does not have setting permissions, it indicates that the security of the wallpaper application is low and it does not have permission to set the surface size, that is, it cannot call the preset setting interface to set the surface size. The folding screen mobile phone can execute S72.

[0164] S71. Based on the wallpaper application, the foldable screen mobile phone sets the size of the drawing area surface to the size of the bright screen area of ​​the screen in the unfolded state.

[0165] Exemplarily, the wallpaper application can call the above-mentioned preset setting interface to set the size of the surface.

[0166] S72. Folding screen mobile phones do not set the surface size.

[0167] In some embodiments, a foldable screen mobile phone can determine whether the wallpaper application has setting permissions through a preset whitelist. The preset whitelist includes the identifier of at least one application. If the wallpaper application identifier exists in the preset whitelist, it indicates that the wallpaper application has setting permissions, that is, it has the permission to call the above-mentioned preset setting interface to set the surface size. If the wallpaper application identifier does not exist in the preset whitelist, it indicates that the wallpaper application does not have setting permissions, that is, it does not have the permission to call the above-mentioned preset setting interface to set the surface size. The identifier of the wallpaper application can be the package name, process identifier, name, etc. of the wallpaper application that can represent the wallpaper application.

[0168] In some embodiments, the foldable screen mobile phone can call a preset adding interface to add the application to the whitelist. Exemplarily, the preset adding interface is as follows:

[0169] @UnsupportedAppUsage

[0170] public void setFixedSizeAllowed(boolean allowed).

[0171] In addition, foldable screen mobile phones can also determine whether the wallpaper application has setting permissions in other ways. For example, the permissions of the wallpaper application can be queried from a preset location. If the permission exists, it indicates that the wallpaper application has setting permissions. Otherwise, the wallpaper application does not have setting permissions.

[0172] In the embodiment of the present application, permission restrictions can prevent any application from setting the size of the surface, thereby preventing the surface size from being tampered with by some applications, ensuring the security of the wallpaper setting, and improving the stability of the wallpaper display, preventing the size of the wallpaper displayed on the foldable screen mobile phone from being constantly changed. For example, when the foldable screen mobile phone is in the unfolded state, the surface is reduced, resulting in the size of the wallpaper displayed on the foldable screen mobile phone being mismatched with the size of the bright screen area of ​​the screen, thereby ensuring the user experience.

[0173] S305. The foldable screen mobile phone draws the first wallpaper on the above surface.

[0174] In an embodiment of the present application, the foldable screen mobile phone draws the first wallpaper on the surface, and the surface draws the complete first wallpaper, and the size of the first wallpaper is adapted to the size of the bright screen area of ​​the screen in the unfolded state.

[0175] In some embodiments, the foldable screen mobile phone may also draw the first wallpaper when it is needed to display the first wallpaper. If a first operation for triggering the first wallpaper is received, the first wallpaper is drawn on the above surface. This application does not limit the timing of drawing the first wallpaper.

[0176] The above introduces the theme setting process of foldable screen mobile phones. The following will continue to introduce the wallpaper display process corresponding to the theme.

[0177] S306. The foldable screen mobile phone responds to the first operation and determines whether the device state of the foldable screen mobile phone is a folded state.

[0178] Among them, the first operation may include a return to desktop operation, which is used to trigger the folding screen mobile phone to display the desktop, that is, to trigger the folding screen to display the desktop wallpaper. Of course, the above-mentioned first operation can also include other operations that can trigger the folding screen mobile phone to display wallpaper, and this application does not limit it.

[0179] In an embodiment of the present application, when the folding screen mobile phone receives the first operation, it indicates that it needs to display the first wallpaper based on the above-mentioned surface and wallpaper window. Since the size of the wallpaper window limits the display content of the surface, and the size of the wallpaper window is related to the size of the bright screen area of ​​the current screen of the folding screen mobile phone, that is, it is related to the device state of the folding screen mobile phone. Therefore, the folding screen mobile phone can determine whether the current device state is folded. When the current device state is folded, it indicates that the setting of the above-mentioned first wallpaper is performed when the folding screen mobile phone is in the folded state. Since the size of the wallpaper window in the folded state is different from the size of the surface, the folding screen mobile phone needs to use the offset of the first wallpaper to determine the display content of the first wallpaper, that is, to determine the part of the content of the first wallpaper that the window needs to display. The folding screen mobile phone can execute S306.

[0180] When the current device state is not folded, that is, when the current device state is expanded, it indicates that the setting of the above-mentioned first wallpaper is performed when the folding screen mobile phone is in the expanded state. Since the size of the window in the expanded state is the same as the size of the surface, the folding screen mobile phone can display the complete content on the drawing area, that is, display the complete first wallpaper. There is no need to use the offset of the first wallpaper to determine the display content of the first wallpaper. The folding screen mobile phone can execute S310.

[0181] S307. The foldable screen mobile phone reads the offset of the first wallpaper from a preset database.

[0182] S308. The foldable screen mobile phone displays part of the content of the first wallpaper on the surface in the above window based on the offset of the first wallpaper.

[0183] In an embodiment of the present application, the mobile phone can use the offset of the first wallpaper and the size of the bright screen area of ​​the current screen, that is, the size of the bright screen area of ​​the screen in the folded state, to determine the position of the display area of ​​the first wallpaper in the folded state (or referred to as the position of the target display area of ​​the first wallpaper). The content within the display area of ​​the first wallpaper is the content of the first wallpaper displayed by the folding-screen mobile phone in the folded state, that is, the display content of the first wallpaper in the folded state (or referred to as the target display content of the first wallpaper). In other words, the offset of the first wallpaper and the size of the bright screen area of ​​the current screen are used to determine the position of the wallpaper window equivalent to the surface. Afterwards, the folding-screen mobile phone can display the target display content in the wallpaper window. Since the size of the wallpaper window is smaller than the size of the surface, the wallpaper window does not display content other than the target display content on the first wallpaper.

[0184] For example, the screen of a foldable phone folds left and right. Whether it is folded or unfolded, the height of the display area of ​​the foldable phone will not change, but the width will change. Accordingly, the offset of the first wallpaper is in the width direction, that is, the offset in the x direction. Assuming that the offset of the first wallpaper in the x direction is 200 pixels (px), it means that the position of the 200th pixel in the x direction is the starting position of the left vertex of the wallpaper window. As shown in (a) in Figure 10A, the width of the drawing area is 1000px, the coordinates of the left vertex are (0, 0), and the coordinates of the right vertex are (1000, 0). The width of the wallpaper window in the folded state is 500px. Accordingly, the x coordinates of the position of the target display area of ​​the first wallpaper can be 200 and 700. That is to say, the area composed of pixels with x coordinates of 200 to 700 on the first wallpaper represents the display area of ​​the first wallpaper in the folded state, and the foldable phone displays the content in this display area (as shown in (b) in Figure 10A). Here, 200 may represent the coordinates of the left vertex of the target display area, and 700 may represent the coordinates of the right vertex of the target display area.

[0185] In some embodiments, when the size of the first wallpaper is the same as the size of the surface, and the content drawn on the surface is the entire content of the first wallpaper (e.g., the content drawn on the surface shown in (a) of FIG. 10A is the entire content of the first wallpaper), then the offset in the x-direction of the first wallpaper represents the offset in the x-direction with the vertex of the first wallpaper (e.g., the left vertex of the first wallpaper) as the origin. For example, when the offset in the x-direction of the first wallpaper is 200, it means that the position of the 200th pixel in the x-direction with the left vertex of the first wallpaper as the origin is the starting position of the left vertex of the wallpaper window.

[0186] In the case where the size of the above-mentioned first wallpaper is larger than the size of the surface, such as when the user customizes the display content of the wallpaper, and the content drawn on the surface is part of the first wallpaper, then the offset in the x-direction of the first wallpaper represents the offset in the x-direction with the position of the vertex of the surface (such as the left vertex) on the first wallpaper as the origin. For example, the width of the first wallpaper is 1200, and the width of the surface is 1000. Therefore, only part of the content of the first part can be drawn on the surface (as shown in Figure 10B). The position of the left vertex of the surface on the first wallpaper is (100,0). When the offset in the x-direction of the first wallpaper is 200, it means that with (100,0) as the origin, the position of the 200th pixel in the x-direction is the starting position of the left vertex of the wallpaper window, that is, the starting position of the left vertex of the wallpaper window is actually the position of the 300th pixel of the first wallpaper.

[0187] In some embodiments, the folding screen mobile phone can directly use the offset mode to display part of the content of the first wallpaper in the above window. In one example, the offset mode of the first wallpaper is the center mode, so the first wallpaper is centered on the window. For example, as shown in Figure 11A, the size of the drawing area is 1000*2000, that is, the size of the first wallpaper is 1000*2000. The wallpaper window size is 500*2000. When the first wallpaper is displayed in the center, the x-coordinate of the target display area of ​​the first wallpaper (that is, the display area of ​​the first wallpaper in the folded state) can be 250 and 750, that is, the target display area of ​​the first wallpaper is the area composed of pixels with x-coordinates of 250 to 750 on the first wallpaper, which represents the display area of ​​the first wallpaper in the folded state, and the target display content is the content composed of pixels with x-coordinates of 250 to 750 on the first wallpaper.

[0188] In another example, if the offset mode of the first wallpaper is left-aligned, the first wallpaper will be displayed on the left side of the window. For example, as shown in Figure 11B, the size of the drawing area is 1000*2000. The wallpaper window size is 500*2000. When the first wallpaper is displayed on the left side, the x-coordinates of the target display area of ​​the first wallpaper can be 0 and 500. In other words, the target display content of the first wallpaper is the content consisting of the pixels with x-coordinates of 0 to 500 on the first wallpaper.

[0189] In another example, if the offset mode of the first wallpaper is right-aligned, the first wallpaper is left-aligned on the display window. For example, as shown in Figure 11C, the size of the drawing area is 1000*2000. The wallpaper window size is 500*2000. When the first wallpaper is displayed right-aligned, the x-coordinates of the target display area of ​​the first wallpaper can be 500 and 1000. In other words, the target display content of the first wallpaper is the content consisting of the pixels with x-coordinates between 500 and 1000 on the first wallpaper.

[0190] S309. If the foldable screen mobile phone switches from the folded state to the unfolded state, the foldable screen mobile phone adjusts the size of the wallpaper window to the size of the bright screen area of ​​the screen in the unfolded state.

[0191] In an embodiment of the present application, while a user is using a foldable screen mobile phone, the user may unfold or fold the foldable screen mobile phone. During the display of part of the first wallpaper, that is, during the display of the first wallpaper, when the device state of the foldable screen mobile phone switches from the folded state to the unfolded state, the foldable screen mobile phone needs to adjust the size of the wallpaper window to the size of the bright screen area of ​​the screen in the unfolded state, that is, to adapt the size of the wallpaper window to the bright screen area of ​​the screen of the foldable screen mobile phone in the unfolded state. Furthermore, the foldable screen mobile phone does not need to reallocate or set the size of the surface corresponding to the wallpaper window.

[0192] For example, a foldable phone is first in the folded state, displaying part of a first wallpaper. Later, while the first wallpaper is displayed, the user unfolds the phone, switching the device state from folded to unfolded. Since the phone is still displaying the first wallpaper, the wallpaper window used to display the first wallpaper has not been destroyed. Therefore, the phone does not need to recreate the wallpaper window; instead, it can directly resize the wallpaper window to the size of the bright screen area in the unfolded state.

[0193] S310, foldable screen mobile phone displays the complete first wallpaper in the adjusted wallpaper window.

[0194] In the embodiment of the present application, since the size of the surface is the same as the size of the adjusted wallpaper window (i.e., the wallpaper window in the expanded state), the adjusted wallpaper window can display all the drawing content on the surface, that is, completely display the first wallpaper, and although the wallpaper window sizes before and after the adjustment are different, they correspond to the same drawing area, and there is no need to reallocate the drawing area or reset the size of the drawing area. Therefore, when the foldable screen mobile phone switches from the folded state to the expanded state, that is, when displaying the first wallpaper that is adapted to the bright screen area of ​​the expanded screen, there is no need to switch to display the first wallpaper. Instead, on the basis of the originally displayed first wallpaper content, other content on the drawing area except the target display content is displayed, and there will be no problem of sudden screen change, that is, there will be no problem of switching flickering.

[0195] In some embodiments, when a foldable screen mobile phone switches from a folded state to an unfolded state, the first wallpaper can be dynamically displayed by gradually increasing the content of the first wallpaper. The foldable screen mobile phone can determine a display speed based on the above-mentioned offset and a first preset time, and use this display speed to gradually display the remaining content of the first wallpaper until the entire first wallpaper is displayed. The first preset time can represent the time required for the foldable screen mobile phone to switch from the folded state to the fully unfolded state. The fully unfolded state indicates that the folding angle of the foldable screen mobile phone is 180 degrees.

[0196] Exemplarily, the offset includes an offset in the x-direction. The display speed may include a left display speed and a right display speed. The folding screen mobile phone may calculate a first difference between the coordinates of the left vertex of the target display area and the coordinates of the left vertex of the drawing area (i.e., the offset in the x-direction), and calculate a second difference between the coordinates of the right vertex of the target display area and the coordinates of the right vertex of the drawing area. Afterwards, the mobile phone may calculate the ratio between the first difference and the first preset time to obtain the left display speed, and calculate the ratio between the second difference and the first preset time to obtain the right display speed. Afterwards, the folding screen mobile phone may slowly enlarge the left part of the display area of ​​the first wallpaper based on the left display speed, that is, increase the display of the left content, and slowly enlarge the right part of the display area of ​​the first wallpaper based on the right display speed, that is, increase the display of the right content. For example, the display area of ​​the first wallpaper in the folded state is the area composed of pixels with x-coordinates of 250 to 750 as shown in Figure 11A above. The display speed on the left is 50 pixels / second, and the display speed on the right is also 50 pixels / second. Then, one second after the folding screen mobile phone switches from the folded state to the unfolded state, the display area of ​​the first wallpaper becomes the area composed of pixels with x-coordinates of 300 to 800, realizing dynamic display of wallpaper, enhancing visual effects, and increasing interest.

[0197] For example, first, the foldable screen mobile phone is in the folded state, and it displays the wallpaper shown in Figure 12 (a). Afterwards, the device state of the foldable screen mobile phone changes, switching from the folded state to the unfolded state, and it directly displays the wallpaper shown in Figure 12 (b). Compared with the wallpaper shown in Figure 12 (a), the wallpaper shown in Figure 12 (b) contains more content. Afterwards, as the degree of unfolding of the foldable screen mobile phone increases, the content of the lock screen wallpaper displayed by the foldable screen mobile phone gradually increases, as shown in Figure 12 (c), the content of the wallpaper increases compared to the content of the wallpaper shown in Figure 12 (b), until the complete wallpaper shown in Figure 12 (d) is displayed. Simply put, the process shown in Figure 12 (a)-(d) can be understood as the process of slowly enlarging the wallpaper window to display other content on the drawing area, that is, the process of slowly increasing the content of the wallpaper displayed on the foldable screen mobile phone.

[0198] It should be noted that the wallpaper shown in (a)-(d) in Figure 12 above can be a desktop wallpaper. In order to facilitate the display effect of the wallpaper, the application icon is not displayed on the wallpaper. In actual application, the desktop wallpaper will include the application icon. In addition, the dynamic wallpaper effect presented in (a)-(d) in Figure 12 above is only an example. The effect presented by the wallpaper during the unfolding process of the folding screen mobile phone can also be other effects, and this application does not limit it.

[0199] In other embodiments, the foldable screen mobile phone can directly display the complete first wallpaper when switching from the folded state to the unfolded state, thereby achieving fast and complete display of the first wallpaper.

[0200] In some embodiments, when the first wallpaper is a dynamic wallpaper, if the device state of the foldable phone changes while the first wallpaper is displayed, the animation corresponding to the first wallpaper will be played while the displayed content of the first wallpaper is changed, thereby achieving a dynamic display effect for the first wallpaper. For example, as shown in Figures 12(a) to 12(d) above, when a flower wallpaper is displayed, the foldable phone is unfolded, and while the content of the flower wallpaper displayed on the foldable phone is changing, the animation corresponding to the flower wallpaper is also dynamically displayed, i.e., the process of the flower opening.

[0201] It should be noted that when the folding screen mobile phone displays the above-mentioned first wallpaper, if the device state of the folding screen mobile phone has not changed, the folding screen mobile phone may not play the animation corresponding to the first wallpaper. At this time, the first wallpaper is equivalent to a static wallpaper to reduce power consumption. For example, when the folding screen mobile phone displays the first wallpaper in the unfolded state, the animation corresponding to the dynamic wallpaper is not played, and the folding screen mobile phone plays the animation corresponding to the first wallpaper during the process of switching from the unfolded state to the folded state. When the folding angle of the folding screen mobile phone reaches a preset angle value (such as 0), the folding screen mobile phone stops playing the animation. Of course, when the folding screen mobile phone displays the first wallpaper, regardless of whether the device state of the folding screen mobile phone has changed, the folding screen mobile phone can play the animation corresponding to the first wallpaper.

[0202] In some embodiments, while displaying part of the content of the first wallpaper, if the device state of the foldable screen mobile phone has not changed, that is, the device state of the foldable screen mobile phone has not switched from the folded state to the unfolded state, the foldable screen mobile phone does not need to execute the above S309 and S310.

[0203] It should be noted that the foldable screen mobile phone displays the first wallpaper in the wallpaper window through the display of the foldable screen mobile phone, and the user can see the first wallpaper displayed in the wallpaper window. The above-described order of drawing the first wallpaper on the drawing area and displaying the first wallpaper in the wallpaper window is only an example. The foldable screen mobile phone can also directly draw the first wallpaper on the drawing area and the wallpaper window, and then call the wallpaper window to display the first wallpaper on the drawing area after receiving the first operation.

[0204] In some embodiments, when the foldable phone is in the folded state and needs to display the first wallpaper, the phone needs to read the offset of the first wallpaper from a preset database. If the foldable phone displays the first wallpaper multiple times while in the folded state, the phone can read the offset of the first wallpaper from the preset database each time it needs to display the first wallpaper. For example, when the foldable phone receives a return-to-desktop command, the phone reads the offset of the first wallpaper from the preset database and uses the offset of the first wallpaper to display the desktop wallpaper. When a user clicks the icon of Application 1 on the desktop wallpaper, the phone launches Application 1. Then, when the user returns to the desktop from Application 1 (i.e., when the user enters the return-to-desktop command), the phone receives another return-to-desktop command. In response to the return-to-desktop command, the phone reads the offset of the first wallpaper from the preset database again and uses the offset of the first wallpaper to display the desktop wallpaper. Alternatively, the phone only needs to read the offset of the first wallpaper once and then reads the offset of the first wallpaper again when the device switches to the unfolded state and then to the folded state.

[0205] S311. The foldable screen mobile phone displays the complete first wallpaper on the Surface in the wallpaper window.

[0206] In an embodiment of the present application, when the current device state is not a folded state, that is, when the current device state is an expanded state, since the size of the wallpaper window in the expanded state is the same as the size of the surface, the folding screen mobile phone can display the complete content on the drawing area, that is, display the complete first wallpaper (or describe it as displaying the first wallpaper in full screen on the first interface). There is no need to use the offset of the first wallpaper to determine the content displayed in the wallpaper window, and there is no need to read the offset of the first wallpaper from the above-mentioned preset database.

[0207] S312. If the foldable screen mobile phone switches from the unfolded state to the folded state, the foldable screen mobile phone adjusts the size of the wallpaper window to the size of the bright screen area of ​​the screen in the folded state, and the foldable screen mobile phone reads the offset of the first wallpaper from the preset database.

[0208] S313. The foldable screen mobile phone displays part of the content of the first wallpaper in the adjusted window based on the offset of the first wallpaper.

[0209] In the embodiment of the present application, while the first wallpaper is being displayed, if the device state of the foldable screen phone changes, that is, when the device state of the foldable screen phone switches from folded to unfolded, the foldable screen phone needs to adjust the size of the wallpaper window to the size of the bright screen area of ​​the screen in the folded state, that is, to adapt the size of the wallpaper window to the bright screen area of ​​the screen of the foldable screen phone in the folded state. Furthermore, the foldable screen phone does not need to reallocate or set the size of the surface corresponding to the wallpaper window.

[0210] Afterwards, since the size of the surface is smaller than the size of the adjusted wallpaper window, the adjusted wallpaper window only displays part of the drawn content on the surface, that is, displays part of the content of the first wallpaper (the part of the content of the first wallpaper can also be called the second wallpaper, that is, the second wallpaper is displayed on the second interface). And although the wallpaper window sizes are different before and after adjustment, since they correspond to the same surface, when the folding screen mobile phone switches from the folded state to the unfolded state, that is, in the process of displaying the first wallpaper that is adapted to the bright screen area of ​​the screen in the folded state, there is no need to switch to display the first wallpaper. Instead, on the basis of the original display of the first wallpaper, the display content of the first wallpaper is reduced, and the problem of sudden screen changes will not occur.

[0211] For example, while the first wallpaper is being displayed, the user folds the foldable phone, and the device state of the foldable phone switches from the unfolded state to the folded state. Since the foldable phone is displaying the first wallpaper, the wallpaper window used to display the first wallpaper has not been destroyed. The foldable phone does not need to recreate the wallpaper window. The phone can directly adjust the size of the wallpaper window to the size of the bright screen area of ​​the screen in the folded state. And because the size of the adjusted wallpaper window is smaller than the size of the drawing area, it cannot fully display the first wallpaper. Therefore, the foldable phone can read the offset of the first wallpaper from the preset database, so as to use the offset of the first wallpaper to determine the coordinate point where the wallpaper window moves when the screen size is switched, that is, to determine the content displayed by the adjusted wallpaper window, so as to display part of the content of the first wallpaper in the adjusted wallpaper window.

[0212] In some embodiments, similar to the wallpaper display process when the foldable screen mobile phone switches from the folded state to the unfolded state described above, the foldable screen mobile phone can dynamically display the first wallpaper in a manner that gradually reduces the content of the first wallpaper when switching from the unfolded state to the folded state. The foldable screen mobile phone can determine the shrinking speed of the wallpaper window based on the above-mentioned offset and the second preset time, so as to use the shrinking speed to gradually reduce the content of the displayed first wallpaper until the content within the display area of ​​the first wallpaper in the folded state is displayed, that is, the content within the target display area of ​​the first wallpaper. The second preset time can represent the time required for the foldable screen mobile phone to switch from the unfolded state to the fully folded state. This process can be simply understood as slowly shrinking the wallpaper window to reduce the content on the displayed drawing area. Among them, the fully unfolded state indicates that the folding angle of the foldable screen mobile phone is 0 degrees. Among them, the calculation process of the shrinking speed is similar to the calculation process of the above-mentioned display speed, and will not be repeated here.

[0213] Alternatively, the foldable screen mobile phone switches from the unfolded state to the folded state, and can directly display the content in the target display area of ​​the first wallpaper.

[0214] In some embodiments, while displaying part of the content of the first wallpaper, if the device state of the foldable screen mobile phone has not changed, that is, the device state of the foldable screen mobile phone has not switched from the folded state to the unfolded state, the foldable screen mobile phone does not need to execute the above S312 and S313.

[0215] In an embodiment of the present application, upon obtaining the target theme selected by the user, the foldable screen mobile phone creates a wallpaper window that is adapted to the size of the bright screen area of ​​the current screen based on the current device state of the foldable screen mobile phone, and sets the size of the surface corresponding to the wallpaper window to the size of the bright screen area of ​​the screen in the unfolded state. In other words, the size of the surface is independent of the current device state of the foldable screen mobile phone. The foldable screen mobile phone can draw the first wallpaper on the surface. When the first wallpaper needs to be displayed, the wallpaper window is used to display part or all of the content on the surface to achieve the display of the first wallpaper. Afterwards, while displaying the first wallpaper, if the device state changes, the size of the wallpaper window can be directly adjusted so that the content on the original surface can be displayed using the adjusted wallpaper window, so that the size of the displayed content is adapted to the size of the bright screen area of ​​the screen in the changed device state, without having to set a surface that is adapted to the size of the bright screen area of ​​the screen in the changed device state for drawing the first wallpaper using the new surface. This avoids the need to reset a surface after the device state changes and draw the first wallpaper on the new surface, resulting in the wallpaper window having no content to display for a certain period of time. The wallpaper window can continue to be displayed only after the first wallpaper is drawn on the new surface, thereby avoiding the problem of sudden screen changes.

[0216] In some embodiments, after the user sets the theme, the foldable screen mobile phone can create a wallpaper window, set the size of the drawing area, and draw the first wallpaper on the drawing area, thereby completing the preparations for displaying the first wallpaper so that the first wallpaper can be displayed quickly when it needs to be displayed. Afterwards, after receiving the first operation input by the user, the foldable screen mobile phone indicates that the foldable screen mobile phone needs to display the first wallpaper corresponding to the theme. The foldable screen mobile phone can respond to the first operation and obtain the configuration data of the first wallpaper when the device state of the foldable screen mobile phone is folded. The configuration data may include the offset information of the first wallpaper (such as the offset of the first wallpaper or the offset mode of the first wallpaper). Afterwards, the foldable screen mobile phone can display part of the content of the first wallpaper based on the offset information of the first wallpaper, that is, use the wallpaper window to display part of the content of the first wallpaper on the drawing area. When the device state of the foldable screen mobile phone is unfolded, the foldable screen mobile phone can directly display the entire content of the first wallpaper.

[0217] In some embodiments, the following describes the process of setting up a dynamic wallpaper and the process of applying a dynamic wallpaper, taking the first wallpaper as an example and combining it with the structure shown in FIG4 . The process of setting up a dynamic wallpaper may include steps S1-S8 as shown in FIG13 , and the process of applying a dynamic wallpaper may include steps S9-S27 as shown in FIG13 .

[0218] S1. The theme application receives a target theme setting operation, wherein the setting operation is used to trigger setting the foldable screen mobile phone theme as the target theme.

[0219] S2. The theme application sends a first message to the wallpaper framework in response to the setting operation, wherein the first message is used to indicate that the theme of the foldable screen mobile phone has changed.

[0220] Exemplarily, the first message may include a specific identifier, which indicates that the theme of the foldable screen mobile phone application has changed.

[0221] S3. The wallpaper framework responds to the first message and reads a theme package corresponding to the target theme.

[0222] For example, the theme package corresponding to the target theme may include a configuration file for the first wallpaper corresponding to the target theme. The configuration file may include configuration data such as the offset of the first wallpaper (or the offset of the theme), elastic animation stiffness configuration information, depth mode configuration information, and blur configuration information.

[0223] S4. The wallpaper framework parses the theme package corresponding to the target theme to obtain the offset of the first wallpaper.

[0224] In an embodiment of the present application, the wallpaper framework can directly obtain the theme set by the user (i.e., the target theme). After receiving the first message, the wallpaper framework can directly read the theme package of the first wallpaper, parse the theme package to obtain the configuration file of the first wallpaper, and then obtain the offset of the first wallpaper from the configuration file.

[0225] In addition, when parsing the theme package, the wallpaper framework also obtains the wallpaper service required to display the first wallpaper. The theme package includes the path corresponding to the wallpaper service. The wallpaper framework can use this path to pull up the wallpaper service corresponding to the first wallpaper. Here, the wallpaper service corresponding to the first wallpaper is equivalent to the wallpaper window. At this time, the wallpaper service is only pulled up and needs to be filled with data to adapt the wallpaper service to the current screen area and display the wallpaper content.

[0226] S5. The wallpaper framework writes the offset of the first wallpaper into a preset database.

[0227] For example, the wallpaper framework can first delete the offset of the existing wallpaper (i.e., theme) in the preset database. Afterwards, the wallpaper framework can write the offset of the first wallpaper to the preset database, so that the preset database can only save the offset of the theme currently set on the folding screen mobile phone, reducing resource usage. In some embodiments, the wallpaper framework can call the write interface as described above to write the offset of the first wallpaper to the preset database.

[0228] In addition, other configuration information except the offset in the configuration file of the first wallpaper may not be written into the preset database. When other modules need to use the other configuration information to process the first wallpaper, the wallpaper framework can directly read it and pass it to other modules.

[0229] S6. Wallpaper framework starts the wallpaper application.

[0230] Exemplarily, the wallpaper framework may create an instance of a wallpaper application, or describe as creating a wallpaper application process, to launch the wallpaper application.

[0231] S7. After the wallpaper application is started, the wallpaper application creates a wallpaper window of a size equal to the size of the bright screen area of ​​the current screen, and sets the size of the surface to the size of the bright screen area of ​​the screen in the expanded state.

[0232] In some embodiments, the process of the wallpaper application filling data for the wallpaper service corresponding to the first wallpaper can be called creating a wallpaper window. For example, the wallpaper application assigns the height and width of the bright screen area of ​​the current screen to the corresponding variables in the wallpaper service to obtain a wallpaper window with the same size as the bright screen area of ​​the current screen.

[0233] S8, Wallpaper app draws the first wallpaper on the surface.

[0234] The above describes the process of setting the first wallpaper corresponding to the target theme. The following describes the process of displaying the first wallpaper.

[0235] S9. The wallpaper application sends the current device status to the wallpaper window in response to the return to desktop operation.

[0236] Exemplarily, the wallpaper application sends the current device state to the wallpaper service corresponding to the first wallpaper. The current device state can be represented by a state identifier. For example, the state identifier corresponding to the folded state is 0, and the state identifier corresponding to the expanded state is 1.

[0237] In some embodiments, the wallpaper application may also directly fill the current device status into the wallpaper service when creating the wallpaper window so that the wallpaper service can obtain the current device status, or the wallpaper service may directly determine the current device status based on the size of the bright screen area of ​​the current screen.

[0238] S10: When the current device state is the folded state, the wallpaper window reads the offset of the first wallpaper from the preset database.

[0239] S11. The wallpaper window determines a position of a target display area on the first wallpaper within the surface based on an offset of the first wallpaper and a size of the wallpaper window.

[0240] S12. The wallpaper window sends the image content in the target display area to the display screen based on the position of the target display area.

[0241] Exemplarily, the target display area on the above-mentioned first wallpaper represents the display area of ​​the first wallpaper in the folded state; the image content in the target display area represents the target display content described in the above-mentioned embodiment, that is, the wallpaper content displayed by the folding screen mobile phone in the folded state.

[0242] S13. The display screen displays the image content in the target display area.

[0243] S14. The folding angle detection sensor detects that the folding angle is greater than a first preset angle threshold, and sends a second message to the wallpaper application and the wallpaper window.

[0244] Exemplarily, the second message may include the current folding angle or device status of the foldable screen mobile phone.

[0245] S15. The wallpaper application loads the animation frame corresponding to the first wallpaper on the surface in response to the second message.

[0246] In an embodiment of the present application, during the display of the target display content, when the folding angle is greater than the first preset angle threshold, it indicates that the device state of the folding screen mobile phone is switched from the folded state to the unfolded state, and the first wallpaper can be played dynamically. Therefore, after receiving the second message, the wallpaper application can load the animation frame sequence corresponding to the first wallpaper on the surface to achieve a dynamic display effect.

[0247] S16. In response to the second message, the wallpaper window adjusts the size of the wallpaper window to the size of the bright screen area of ​​the screen in the expanded state, and obtains the animation frame corresponding to the first wallpaper in the surface.

[0248] S17. The wallpaper window sends the animation frame corresponding to the first wallpaper to the display screen.

[0249] S18. The display screen displays the animation frame corresponding to the first wallpaper.

[0250] Exemplarily, the wallpaper window sends all image contents corresponding to the animation frame corresponding to the first wallpaper to the display screen for display on the display screen.

[0251] In the embodiment of the present application, when the folding angle is greater than the first preset angle threshold, it indicates that the device state of the folding screen mobile phone is switched from the folding state to the unfolded state. The size of the wallpaper window needs to be adapted to the size of the bright screen area of ​​the screen in the unfolded state. Therefore, the wallpaper window can adjust the size of the wallpaper window. The adjusted wallpaper window size is consistent with the size of the surface. Therefore, the screen can be used to display the complete content on the surface, and the wallpaper can be smoothly switched between large and small screens when the large and small screens are switched. This solves the problem of the connection display of two sizes of wallpaper when the external folding screen mobile phone switches between large and small screens. In addition, when switching the wallpaper between large and small screens, there is no need to change the size of the surface. Only the size of the wallpaper window needs to be adjusted to avoid sudden changes in the picture.

[0252] S9-S18 above introduces the process of displaying the first wallpaper in the folded state and after switching from the folded state to the unfolded state, displaying the first wallpaper. The following will continue to introduce another display situation, the process of displaying the first wallpaper in the unfolded state and after switching from the unfolded state to the folded state. Among them, S19-S20 shows the process of displaying the first wallpaper in the unfolded state of the foldable screen mobile phone. S21-S27 shows the process of displaying the first wallpaper after the foldable screen mobile phone switches from the unfolded state to the folded state.

[0253] S19. When the current device state is the expanded state, the wallpaper window sends all the contents of the first wallpaper to the display screen.

[0254] S20. The display screen displays all the contents of the first wallpaper.

[0255] S21. The folding angle detection sensor detects that the folding angle is less than a first preset angle threshold, and sends a third message to the wallpaper application and the wallpaper window.

[0256] Exemplarily, the third message may include the current folding angle or device status of the foldable screen mobile phone.

[0257] S22. The wallpaper application loads the animation frame corresponding to the first wallpaper on the surface in response to the third message.

[0258] S23. In response to the third message, the wallpaper window reads the offset of the first wallpaper from the preset database.

[0259] S24. The wallpaper window adjusts the size of the wallpaper window to the size of the bright screen area of ​​the screen in the folded state.

[0260] S25. The wallpaper window determines the position of the target display area of ​​the animation frame within the surface based on the offset of the first wallpaper and the size of the wallpaper window.

[0261] The target display area of ​​the animation frame represents the display area of ​​the animation frame in the folded state.

[0262] S26. The wallpaper window sends the image content in the target display area to the display screen based on the position of the target display area of ​​the animation frame.

[0263] S27. The display screen displays the image content in the target display area.

[0264] Among them, the image content in the target display area of ​​the above animation frame represents the wallpaper content displayed by the folding screen mobile phone after switching from the unfolded state to the folded state during the display of the first wallpaper corresponding to the theme.

[0265] In some embodiments, to achieve timely adaptive display of the wallpaper, while displaying a complete first wallpaper, if the folding angle is less than a second angle threshold, which is greater than a first preset angle threshold, indicating that the foldable screen phone is in a pre-folded state and is about to switch to the folded state, that is, indicating that a wallpaper matching the size of the bright screen area of ​​the screen in the folded state will be displayed, the folding angle detection sensor can send a fourth message to the wallpaper window. In response to this fourth message, the wallpaper window can read the offset of the first wallpaper from a preset database. Thereafter, if the user continues to fold the foldable screen phone, and the folding angle is less than the first preset threshold, the folding angle detection sensor sends a third message to the wallpaper application and the wallpaper window. In response to this third message, the wallpaper window can pre-read the offset of the first wallpaper without having to repeatedly read the offset of the first wallpaper.

[0266] It should be understood that the process of displaying dynamic wallpaper (i.e., animation) on a foldable screen mobile phone when switching from a folded state to an unfolded state, or from an unfolded state to a folded state, as described in FIG13 above, is only an example of wallpaper display, and this application does not limit the way wallpaper is displayed.

[0267] In some embodiments, the present application provides a computer-readable storage medium including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the wallpaper display method as described above.

[0268] In some embodiments, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the wallpaper display method as described above.

[0269] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0270] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0271] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

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

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

[0274] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A wallpaper display method, characterized in that: Applied to a folding screen device, the wallpaper display method includes: The folding screen device in the unfolded state displays a first interface, and the first interface displays a first wallpaper in full screen; the first wallpaper has a corresponding offset; the offset of the first wallpaper represents an offset value of a display area of ​​the first wallpaper in the folded state relative to a display area of ​​the first wallpaper in the unfolded state; the size of the display area of ​​the first wallpaper in the folded state is the same as the size of a bright screen area of ​​the screen in the folded state, and the size of the display area of ​​the first wallpaper in the unfolded state is the same as the size of a bright screen area of ​​the screen in the unfolded state; In response to a folding operation on the folding screen device, the folding screen device switches from an unfolded state to a folded state, and the folding screen device in the folded state displays a second interface, and the second interface displays a second wallpaper, which is part of the content of the first wallpaper; the second wallpaper displayed on the second interface is offset in the target direction relative to the first wallpaper displayed on the first interface, corresponding to the offset amount.

2. The method according to claim 1, characterized in that After the folding screen device is switched from the unfolded state to the folded state, the method further includes: In response to an unfolding operation on the folding screen device, the folding screen device switches from a folded state to an unfolded state, and the folding screen device displays a third interface, and the third interface displays the first wallpaper in full screen.

3. The method according to claim 1 or 2, characterized in that: Before displaying the first interface, the method further includes: In response to a second operation, the folding screen device creates a wallpaper window having a size equal to the size of the bright screen area of ​​the screen in the folded state; the second operation is used to trigger setting the theme of the folding screen device as a target theme, and the first wallpaper is a wallpaper corresponding to the target theme; The folding screen device sets the size of the drawing area surface corresponding to the wallpaper window, where the size of the surface is the size of the bright screen area of ​​the screen in the unfolded state; the surface is used to draw the complete content of the first wallpaper; The second wallpaper is part of the first wallpaper in the surface.

4. The method according to claim 3, characterized in that The folding screen device sets the size of the drawing area surface corresponding to the wallpaper window, including: When the wallpaper application has setting permissions, the folding screen device sets the size of the surface through the wallpaper application.

5. The method according to claim 4, characterized in that In the case that the preset whitelist includes the identifier of the wallpaper application, the wallpaper application has the setting permission.

6. The method according to any one of claims 3 to 5, characterized in that The method further comprises: The folding screen device writes the offset of the first wallpaper in the theme package corresponding to the target theme into a preset database; Before the folding screen device in the folded state displays the second interface, the method further includes: The folding screen device reads the offset of the first wallpaper from the preset database.

7. The method according to claim 6, characterized in that The folding screen device writes the offset of the first wallpaper in the theme package corresponding to the target theme into a preset database, including: When the offset of the wallpaper does not exist in the preset database, the folding screen device writes the offset of the first wallpaper into the preset database; In a case where there is an offset of the wallpaper in the preset database, the folding screen device deletes the offset of the wallpaper that already exists in the preset database; The folding screen device writes the offset of the first wallpaper into the preset database.

8. The method according to any one of claims 1 to 7, characterized in that When the folding screen device is folded left and right, the offset is the offset in the x direction, and the target direction is the x direction; when the folding screen device is folded up and down, the offset is the offset in the y direction, and the target direction is the y direction.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The folding screen device determines the position of the display area of ​​the first wallpaper in the folded state based on the offset and the size of the bright screen area of ​​the screen in the folded state.

10. The method according to any one of claims 1 to 7, characterized in that The first wallpaper has a corresponding offset mode; when the folding screen device is folded left or right, the offset mode includes one or more of a center mode, a left mode and a right mode; when the folding screen device is folded up and down, the offset mode includes one or more of a center mode, an upper mode and a lower mode.

11. An electronic device, characterized in that: The electronic device includes a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; the display screen is used to display an image generated by the processor, the display screen includes a folding screen, and the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the method described in any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Folding screen display application method and electronic equipment

    CN112445276A

  • Display method and electronic equipment

    CN114911551A

  • Wallpaper display method and device, equipment, storage medium and program product

    CN115543159A

  • Content display method and device, terminal and storage medium

    CN115756219A

  • Mobile terminal and control method therefor

    US20220057919A1