Wallpaper display method and electronic equipment

By obtaining the offset of the wallpaper and dynamically adjusting the wallpaper window, the problem of wallpaper size inconvenient and sudden changes in the picture in different states of the folding screen device is solved, and the smooth display and stability of the wallpaper is achieved, improving the user experience.

CN119232840APending Publication Date: 2024-12-31HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310804802.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

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 state is consistent with the bright screen area of ​​the screen, achieving smooth display and aesthetics of the wallpaper, and using presets Dynamic adjustment of database and wallpaper windows to avoid flickering problems caused by resetting surface.

Benefits of technology

The wallpaper size adaptation under different device states is achieved, which avoids sudden changes in the picture, improves the user's visual experience and usage satisfaction, and ensures the stability and security of wallpaper display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232840A_ABST
    Figure CN119232840A_ABST
Patent Text Reader

Abstract

The invention provides a wallpaper display method and electronic equipment, and relates to the technical field of terminals. The electronic device is a folding screen device, the folding screen device in the unfolded state displays a first interface, and the first interface displays the content, such as all the content of the first wallpaper, in the display area of the first wallpaper in the unfolded state. The first wallpaper has corresponding offset, the offset is used for determining 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, and in other words, the first wallpaper is used for determining the display content of the first wallpaper in the folded state. Afterwards, during the period of displaying the first wallpaper, the user folds the folding screen device, the folding screen device is switched to the folding state, and the folding screen device can read the offset corresponding to the first wallpaper so that the offset can be used for determining the display content of the first wallpaper and displaying part of the content of the first wallpaper, and adaptive display of the wallpaper in different device states is achieved. And the user visual experience is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] As foldable screen technology matures, more and more users are using foldable screen devices (such as foldable screen mobile phones). When users use foldable screen mobile phones, foldable screen mobile phones often display wallpapers, for example, foldable screen mobile phones display desktop wallpapers, lock screen wallpapers, etc. Since foldable screen mobile phones have different device states (such as folded state and unfolded state), how to display wallpapers on foldable screen mobile phones has become an urgent problem to be solved. Summary of the invention

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

[0004] In a first aspect, the present application provides a wallpaper display method, which is applied to a folding screen device, wherein the folding 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 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 the bright screen area of ​​the screen in the unfolded state;

[0005] 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, the part of the content of the first wallpaper is determined based on the offset of the first wallpaper.

[0006] In the present application, when the folding screen device is in the unfolded state, the folding screen device displays the contents of the display area of ​​the first wallpaper in the unfolded state, and 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 contents in the display area of ​​the first wallpaper in the unfolded state are the entire contents of the first wallpaper, then when the folding screen device displays the wallpaper, it displays the entire contents 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 the 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.

[0007] In a possible design, after displaying part of the first wallpaper, for example, during the display of part of the first wallpaper, the user unfolds the foldable screen device again, and the device state of the foldable screen device switches from the folded state to the unfolded state, and the foldable screen device displays the first wallpaper in full screen again, that is, the foldable screen device displays the first wallpaper in full screen on the third interface. Based on this, the adaptive display of the wallpaper is achieved, and there is no need to switch the display wallpaper, so that the wallpaper is displayed smoothly.

[0008] In a possible design, the process of displaying the first wallpaper in full screen again may be that the folding screen device displays the remaining content of the first wallpaper until the complete content of the first wallpaper is displayed, so as to achieve a dynamic display effect of the wallpaper. Alternatively, the folding screen device directly displays the complete content of the first wallpaper, so as to achieve a fast and complete display of the first wallpaper.

[0009] 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 process of setting the target theme 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 setting operation of the target theme.

[0010] The folding screen device sets the size of the surface corresponding to the wallpaper window, and the size of the surface is the size of the bright screen area of ​​the screen in the unfolded state, that is, the size of the first wallpaper displayed in full screen. The folding screen device can draw the complete content of the first wallpaper on the surface.

[0011] 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.

[0012] In the present 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 a 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 a wallpaper that matches the size of the bright screen area of ​​the current screen, and ensuring the aesthetics of the wallpaper display. Furthermore, 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 of 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.

[0013] In a possible design, when the wallpaper application of the foldable screen device has setting permissions, the foldable screen 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 wallpaper settings, and improving the stability of wallpaper display, avoiding the size of the wallpaper displayed on the foldable screen device from being constantly changed. For example, when the foldable screen device is in the unfolded state, the size of the wallpaper displayed on the foldable screen device is not compatible with the size of the bright screen area of ​​the current screen because the surface is reduced, thereby ensuring the user experience.

[0014] In a possible design method, whether the above-mentioned wallpaper application has the setting permission can be realized through the following two implementation methods.

[0015] In one implementation, a preset whitelist is used to determine whether the wallpaper application has settings. The folding screen device determines whether there is an identifier of the wallpaper application in the preset whitelist. If there is an identifier of the wallpaper application in the preset whitelist, the wallpaper application has setting permissions, that is, it has the permission to call the preset setting interface to set the surface size.

[0016] 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.

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

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

[0019] In one possible design approach, the folding screen device can add the logo 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.

[0020] 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).

[0021] 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.

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

[0023] In the case where the offset of the wallpaper does not exist in the preset database, the folding screen device can directly write the offset of the first wallpaper into the preset database; in the case where the offset of the wallpaper exists in the preset database, the folding screen device can delete the offset of the wallpaper that already exists in the preset database, and then the folding screen device writes the offset of the first wallpaper into the preset database. Based on this, the resource occupation caused by saving wallpapers can be reduced, and the offset of the first wallpaper can be quickly read.

[0024] In a possible design, when the folding 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 folding 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.

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

[0026] 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, thereby determining the display area of ​​the first wallpaper in the folded state.

[0027] In one possible design, 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 displaying wallpaper using the offset mode in the folded state).

[0028] 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 comprises a folding screen, the memory is used to store computer program code, and the computer program code comprises 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.

[0029] In a third aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the wallpaper display method as described in any one of the above-mentioned first aspects.

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

[0031] 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

[0032] Figure 1A A schematic diagram of an interface of a folding screen device in an unfolded state provided by an embodiment of the present application;

[0033] Figure 1B A schematic diagram of an interface of a folding screen device in a folded state provided in an embodiment of the present application;

[0034] Figure 1C Schematic diagram 1 of an outward folding process of a folding screen device provided in an embodiment of the present application;

[0035] Figure 1D Schematic diagram 1 of a folding screen device provided in an embodiment of the present application;

[0036] Figure 1E Schematic diagram 2 of a folding screen device provided in an embodiment of the present application;

[0037] Figure 2A Schematic diagram 1 of a wallpaper display provided in an embodiment of the present application;

[0038] Figure 2B A second schematic diagram of a wallpaper display provided in an embodiment of the present application;

[0039] Figure 2C A schematic diagram of a wallpaper display provided in an embodiment of the present application Figure 3 ;

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

[0041] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0042] Figure 5 A flowchart diagram 1 of a wallpaper display method provided in an embodiment of the present application;

[0043] Fig. 6A A schematic diagram of a wallpaper setting interface provided in an embodiment of the present application;

[0044] Figure 6B A second schematic diagram of a wallpaper setting interface provided in an embodiment of the present application;

[0045] Figure 6C A schematic diagram of a wallpaper setting interface provided in an embodiment of the present application Figure 3 ;

[0046] Fig.6D A schematic diagram of a wallpaper setting interface provided in an embodiment of the present application Figure 4 ;

[0047] Fig. 6E A schematic diagram of a wallpaper setting interface provided in an embodiment of the present application Figure 5 ;

[0048] Fig. 7A Schematic diagram 1 of a display area of ​​a wallpaper provided in an embodiment of the present application;

[0049] Figure 7B A second schematic diagram of a display area of ​​a wallpaper provided in an embodiment of the present application;

[0050] Figure 7C Schematic diagram 1 of a wallpaper provided in an embodiment of the present application;

[0051] Fig.7D Schematic diagram 2 of a wallpaper provided in an embodiment of the present application;

[0052] Fig. 8A Schematic diagram 1 of display content of a wallpaper provided in an embodiment of the present application;

[0053] Figure 8B A second schematic diagram of display content of a wallpaper provided in an embodiment of the present application;

[0054] Figure 8C A schematic diagram of the display content of a wallpaper provided in an embodiment of the present application Figure 3 ;

[0055] Fig. 9 A second flowchart of a wallpaper display method provided in an embodiment of the present application;

[0056] Fig. 10A A schematic diagram of a wallpaper display provided in an embodiment of the present application Figure 4 ;

[0057] Fig. 10B A schematic diagram of a wallpaper display provided in an embodiment of the present application Figure 5 ;

[0058] Fig.11ASchematic diagram 6 of a wallpaper display provided in an embodiment of the present application;

[0059] Fig. 11B Schematic diagram 7 of a wallpaper display provided in an embodiment of the present application;

[0060] Fig. 11C Schematic diagram 8 of a wallpaper display provided in an embodiment of the present application;

[0061] Fig.12 A schematic diagram of a wallpaper display provided in an embodiment of the present application Figure 9 ;

[0062] Fig.13 A schematic diagram of a wallpaper display method provided in an embodiment of the present application Figure 3 . DETAILED DESCRIPTION

[0063] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, 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.

[0064] The screen of a foldable screen device (foldable screen mobile phone) is a whole screen, which can be folded or unfolded. Accordingly, there are two device states of a foldable screen device, namely folded state and unfolded state. Figure 1A When the screen is in the folded state (as shown), the entire area of ​​the screen can be used to display data, such as wallpaper. Figure 1B When the foldable screen phone is in the unfolded state, the size of the bright screen area of ​​the screen can be the size of the screen. Afterwards, the foldable screen phone (as shown) is folded and the screen is opened. Figure 1C As shown, the foldable screen mobile phone is folded outward along the folding edge, that is, the foldable screen mobile phone is folded toward the opposite side where the user interface can be displayed), so as to form a foldable screen mobile phone in a folded state. Figure 1B As shown in the figure), the size of the bright screen area of ​​the screen is a partial screen size.

[0065] It should be noted that the folding method of the above-mentioned folding screen mobile phone can be as follows: Figure 1C The left and right folding shown can also be as follows Figure 1DThe folding method of the folding screen mobile phone is not limited in the embodiment of the present application. In addition, the number of folding edges corresponding to the folding screen mobile phone can be as described above. Figure 1A , Figure 1C and Figure 1D The one shown can also be a value greater than 1, such as Figure 1E The two shown, the embodiment of the present application does not limit the number of folded edges.

[0066] In some embodiments, after a foldable screen mobile phone applies a theme, the foldable screen mobile phone will display the wallpaper corresponding to the theme when displaying the desktop. Since the size of the bright screen area of ​​the screen of the foldable screen mobile phone in different device states is different, the size of the wallpaper displayed by the foldable screen mobile phone in different device states is different. When the foldable screen mobile phone is in a folded state, the foldable screen mobile phone can display a wallpaper whose size is adapted to the size of the bright screen area of ​​the screen in the folded state. When the foldable screen mobile phone is in an unfolded state, the wallpaper displayed by the foldable screen mobile phone is adapted to the size of the bright screen area of ​​the screen in the unfolded state. While the foldable screen mobile phone displays the wallpaper, the device state of the foldable screen mobile phone may change. When the device state changes, the foldable screen mobile phone needs to switch to display the wallpaper to display the wallpaper whose size is adapted to the size of the bright screen area of ​​the screen in the changed device state. During the switching period, the foldable screen mobile phone may flicker before the switch is successful, causing a sudden change in the display screen, affecting the user's visual experience. Exemplarily, when the foldable screen mobile phone displays the following Figure 2A During the wallpaper shown, if the device state of the foldable screen mobile phone is switched from folded state to unfolded state, the screen of the foldable screen mobile phone will flash (such as Figure 2B Afterwards, the foldable screen phone can display Figure 2C The wallpaper shown is adapted to the size of the bright screen area of ​​the screen in the unfolded state.

[0067] Therefore, in view of the above problems, the present application proposes a wallpaper display method. The wallpaper display method is mainly for the folding method of the outer folding method (such as the above Figure 1CThe foldable screen device is a foldable screen device (as shown). The foldable screen device receives a return to desktop operation, indicating that the foldable screen device needs to display the desktop wallpaper. The foldable screen device can respond to the return to desktop operation. When the current device state is the expanded state, the foldable 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 foldable screen device, and the device state of the foldable 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 expanded state, the foldable screen device needs to adjust the size of the displayed first wallpaper. The foldable screen device can obtain the offset information of the first wallpaper, and the offset information 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 expanded state, which 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, reduces 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 screen changes, improving the user's visual experience, and thus improving user satisfaction.

[0068] It should be noted that for a folding screen device, when the folding mode of the folding screen device is an inward folding mode, when the folding screen device is in the unfolded state, it displays the wallpaper through the inner screen. When the folding 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 switches 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 folding screen device is an inward folding mode, the folding screen can be folded inward along the folding edge, that is, the folding screen can be folded toward the side that can display the user interface to form a folding screen mobile phone in a folded state.

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

[0070] For example, Figure 3 FIG. 2 shows a schematic diagram of the structure of the electronic device 200. Figure 3 As shown, 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 screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0071] It is to 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 in the figure, or combine some components, or split some 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.

[0072] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0073] 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.

[0074] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0075] In some embodiments, the processor 210 may include one or more interfaces. The interface 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, etc.

[0076] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.

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

[0078] 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.

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

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

[0081] The wireless communication module 250 can provide wireless communication solutions for application in 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.

[0082] The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0083] The display screen (or screen) 294 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 294, where N is a positive integer greater than 1.

[0084] In some embodiments, the display screen 294 may be a folding screen. The folding method of the folding screen may be as described above. Figure 1C Outward folding method shown.

[0085] For example, when the folding angle of the folding screen (i.e., the angle between the two parts of the screen folded along the folding edge) θ (as mentioned above) Figure 1C The value range of θ) shown in the figure can be [0°, 180°]. When θ is in the range of [0°, X], it can be determined that the foldable screen mobile phone is in the folded state. When θ is in the range of (X, 180°], it can be determined that the foldable screen mobile phone is in the unfolded state. Wherein, X is the first preset angle threshold. X can be set by the foldable screen mobile phone before leaving the factory, or it can be set by the user in the foldable screen mobile phone, or it can be determined by the foldable 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 foldable 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 foldable screen mobile phone is in the unfolded state.

[0086] The electronic device 200 can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0087] 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.

[0088] 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 may 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 may 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.

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

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

[0091] 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.

[0092] The folding angle detection sensor is used to detect the folding angle of the electronic device 200, that is, the screen, as described above. Figure 1C The folding angle θ is shown. Exemplarily, the folding angle detection sensor may be a Hall sensor.

[0093] 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.

[0094] Figure 4 is a structural block diagram of an electronic device 200 according to an embodiment of the present invention.

[0095] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system is divided into four layers, from top to bottom: application layer, application framework layer, runtime and system library, and kernel layer.

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

[0097] like Figure 4 As shown, the application package may include applications such as camera, gallery, calendar, call, map, theme application, WLAN, music, wallpaper application, short message, etc.

[0098] 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 required for display.

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

[0100] like Figure 4 As shown, 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.

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

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

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

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

[0105] The core library consists of two parts: one part is the function that the Java language needs to call, and the other part is the core library.

[0106] The system library may 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.

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

[0108] 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 current screen of the electronic device, the current device status, etc. For another example, the software layer can send the wallpaper content to be displayed to the display screen so as to display the wallpaper using the display screen.

[0109] Understandably, Figure 4 The layers in the structure shown and the components contained in each layer do not constitute a specific limitation on the electronic device 200, i.e., the folding screen device. In other embodiments of the present application, the structure may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

[0110] The present application provides a wallpaper display method. When a user uses a folding screen device, the user can set a theme for the folding screen device. After the theme is set, 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. Figure 5 As shown, the method may include steps S301-S313.

[0111] 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 use the theme of the foldable screen mobile phone as the target theme.

[0112] For example, the second operation may be a target theme setting operation. Fig. 6A In response to the click operation on the icon of the settings application, the foldable screen mobile phone can display a corresponding settings interface, which displays the desktop and wallpaper controls. Afterwards, the user can click the desktop and wallpaper controls. In response to the click operation on the desktop and wallpaper controls, the foldable screen mobile phone can display the following Figure 6B The interface shown in FIG. 1 includes a theme control, which can be used to trigger the display of theme resources. Afterwards, when the user clicks on the theme control, the folding screen mobile phone responds to the click operation of the theme control and displays the following Figure 6C The interface shown includes at least one theme option (such as Figure 6C The foldable screen phone can display the following theme options: "Blooming", "Walking", "Bubble", etc.). The user can select the theme according to the needs. When the user selects the blooming theme option, in response to the selection operation of the blooming theme option, the foldable screen phone can display the following Fig.6D The preview image corresponding to the blooming theme shown in the figure shows the display effect of the folding screen mobile phone after applying the blooming theme. Fig.6D After the operation of the application control shown in the figure, it indicates that the user wants the foldable screen mobile phone to apply the blooming theme, and the foldable screen mobile phone applies the blooming theme. Here, the operation of the user clicking the application control can be the above-mentioned second operation, and the blooming theme selected by the user can be the above-mentioned target theme. Afterwards, when the foldable screen mobile phone needs to display the wallpaper corresponding to the blooming theme, if the foldable screen mobile phone receives the return to desktop operation, the foldable screen mobile phone can display the following Fig. 6E Wallpaper shown.

[0113] 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.

[0114] S302: In response to the second operation, the folding 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.

[0115] 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 portion 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 part 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.

[0116] In one embodiment, each theme (such as the target theme described above) corresponds to a theme package, and 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), and the configuration file may include configuration data of the wallpaper, 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.

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

[0118] Among them, the above blur setting information indicates whether the wallpaper supports blur effect. For example, when the folding screen mobile phone displays the wallpaper in the lock screen state, when the user slides up on the screen, if the blur setting information indicates that the 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 effect. When the value of support_background_blur is false, it indicates that the wallpaper does not support blur effect.

[0119] The above-mentioned depth mode configuration information indicates whether the wallpaper supports the 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 the dark mode. When the value of support_dark_mod is false, it indicates that the wallpaper does not support the dark mode.

[0120] The above elastic animation stiffness configuration information represents the dynamic playback effect of the wallpaper. When the wallpaper is a dynamic wallpaper, the wallpaper is equivalent to an animation. The stiffness value affects the playback speed of the animation, and 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.

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

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

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

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

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

[0126] It is understandable that if the foldable phone is folded left and 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 offset of the wallpaper is the offset in the x direction. For example, the offset of the wallpaper is 100 pixels in the x direction. Assuming that the left vertex of the first wallpaper is the origin, Fig. 7A As shown, the display area of ​​the first wallpaper in the folded state is offset by 100 pixels in the horizontal direction (ie, the x direction) compared to the display area of ​​the first wallpaper in the unfolded state.

[0127] If the foldable screen phone is folded up and down (as mentioned above Figure 1D ), when the device state of the foldable screen mobile phone changes, the height of the foldable screen mobile phone will change, but the width will not change. Therefore, the offset of the wallpaper is the offset in the y direction. For example, the offset of the wallpaper is 100 pixels in the y direction. Assuming that the left vertex of the first wallpaper is the origin, Figure 7B As shown, the vertical (ie, y-direction) offset of the display area of ​​the first wallpaper in the folded state compared to the display area of ​​the first wallpaper in the unfolded state is 100 pixels.

[0128] The above-mentioned offset is expressed in pixels for only one example, and may also be expressed in other units, such as millimeters, etc., which is not limited in the present application.

[0129] 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 up-down 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 or the offset mode.

[0130] The following takes the folding method of a foldable screen mobile phone, which is folding left and right, as an example to introduce the offset mode of the wallpaper (such as the first wallpaper).

[0131] 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.

[0132] 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.

[0133] 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.

[0134] 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 foldable screen mobile phone is folded left and right, the key object on the wallpaper (such as the above Fig. 7A When the key object on the wallpaper is located on the left side of the wallpaper, the offset mode of the wallpaper can be the left display mode, or the offset in the x direction is smaller than the distance between the upper left corner of the wallpaper, for example, Figure 7C The character on the wallpaper is located on the left side of the wallpaper, so the offset mode of the wallpaper can be a left-aligned mode or the offset amount can be smaller than the distance between the upper left corner vertex of the wallpaper.

[0135] 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 of the wallpaper. Fig.7D In the wallpaper shown, the characters on it are 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. When the user selects a wallpaper, the folding screen mobile phone can provide corresponding selection controls for the user to select an offset or offset mode, or provide corresponding input controls (such as a text box) for the user to enter an offset or offset mode to meet the user's personalized needs.

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

[0137] For example, after obtaining the offset of the first wallpaper, the folding screen mobile phone can call the relevant write interface, take the offset of the first wallpaper as an input parameter, and write the offset of the first wallpaper into the preset database in a key-value manner, so that when the folding screen mobile phone is in a 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.

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

[0139] private void setOutFoldOffsetToSettings(float offset){

[0140] Settings.Secure.putFloatForUser(mContext.getContentResolver().OUTFOLD_X_COORDINA TE,offset,mContext.getUserId());

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

[0142] }

[0143] 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.

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

[0145] 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.

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

[0147] In some embodiments, the 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 into 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) into the preset database.

[0148] Optionally, the preset database includes the offsets of wallpapers corresponding to the identifiers of multiple users. If the preset database already stores the offset of the wallpaper corresponding to the identifier of the current user, the folding screen mobile phone can first delete the offset of the wallpaper corresponding to the identifier of the current user. Then, the folding screen mobile phone can write the offset of the first wallpaper into the preset database.

[0149] 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.

[0150] 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.

[0151] Among them, the drawing area is used for the foldable screen mobile phone to draw objects (such as the first wallpaper), 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 in the display area of ​​the first wallpaper in the folded state, and the wallpaper window in the expanded state can display the content in 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.

[0152] In an embodiment of the present application, after determining the first wallpaper selected by the user, the foldable screen mobile phone may first obtain the size of the bright screen area of ​​the current screen. Afterwards, the foldable screen mobile phone may create a wallpaper window based on the size of the bright screen area of ​​the current screen. And the foldable screen mobile phone 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.

[0153] Among them, the size of the above-mentioned drawing area is not limited to the size of the bright screen area of ​​the current screen of the folding 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 folding screen mobile phone, that is, the same as the size of the wallpaper window, or it may be different. For example, when the folding 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 folding 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.

[0154] 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 and wallpapers) need to be drawn on the surface. In simple terms, 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 entire content of the canvas (such as Fig. 8A When the foldable phone is in the folded state, the frame size is smaller than the canvas size (as shown in Figure 8B ), the user can see the contents of the window, which is part of the canvas (as shown in Figure 8C ), and the contents of the complete drawing area cannot be seen.

[0155] In some embodiments, in order to avoid repeated creation of wallpaper windows, the foldable screen mobile phone can first determine whether there is a wallpaper window on the foldable screen mobile phone, that is, determine whether the wallpaper window has not been destroyed. In the case that the foldable screen mobile phone has a wallpaper window corresponding to the current device state, the foldable screen mobile phone does not need to repeatedly create the corresponding wallpaper window. The foldable screen mobile phone can directly use the wallpaper window to display the first wallpaper, avoiding the waste of resources caused by repeated creation of wallpaper windows.

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

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

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

[0159] S70 and foldable screen mobile phones determine whether the wallpaper application has the setting permission.

[0160] In order 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.

[0161] 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.

[0162] 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.

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

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

[0165] In some embodiments, the folding screen mobile phone can determine whether the wallpaper application has the setting permission through a preset whitelist. Among them, 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 the setting permission, 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 the setting permission, that is, it does not have the permission to call the above-mentioned preset setting interface to set the surface size. Among them, the wallpaper application identifier can be the package name, process identifier, name, etc. of the wallpaper application that can represent the wallpaper application.

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

[0167] @UnsupportedAppUsage

[0168] public void setFixedSizeAllowed(boolean allowed).

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

[0170] In the embodiments 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 and the size of the bright screen area of ​​the screen being mismatched, thereby ensuring the user experience.

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

[0172] 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.

[0173] In some embodiments, the foldable screen mobile phone can also draw the first wallpaper when the first wallpaper needs to be displayed. If a first operation for triggering the first wallpaper is received, the first wallpaper is drawn on the surface, and this application does not limit the timing of drawing the first wallpaper.

[0174] 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.

[0175] 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.

[0176] Among them, the first operation may include a return to desktop operation, and the return to desktop operation 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 may also include other operations that can trigger the folding screen mobile phone to display wallpaper, and this application does not limit it.

[0177] 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 a folded state. When the current device state is a folded state, it indicates that the setting of the above-mentioned first wallpaper is performed when the folding screen mobile phone is in a 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.

[0178] When the current device state is not a folded state, that is, when the current device state is an expanded state, 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 surafce, 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.

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

[0180] 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.

[0181] 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 (or referred to as the position of the target display area of ​​the first wallpaper). The content in 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.

[0182] For example, the screen of a foldable phone can be folded 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. Correspondingly, 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. Fig. 10A As shown in (a), 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, 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. The foldable screen mobile phone displays the content in the display area (such as Fig. 10A 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.

[0183] In some embodiments, when the size of the first wallpaper is the same as the size of the surface, the surface is drawn with the entire content of the first wallpaper (such as the above Fig. 10A The surface shown in (a) 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 (such as 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 left vertex of the first wallpaper is the origin, and the position of the 200th pixel in the x direction is the starting position of the left vertex of the wallpaper window.

[0184] In the case where the size of the first wallpaper is larger than the size of the surface, for example, 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 (such as the left vertex) of the surface 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 (such as the left vertex) can be drawn on the surface. Fig. 10B As shown in the figure). The position of the left vertex of the surface on the first wallpaper is (100,0). When the offset of the first wallpaper in the x direction 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.

[0185] In some embodiments, the foldable 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 displayed in the center of the window. Fig.11A As shown, 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 position 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.

[0186] In another example, the offset mode of the first wallpaper is the left-aligned mode, so the first wallpaper is aligned to the left of the display window. Fig. 11B As shown, the size of the drawing area is 1000*2000. The size of the wallpaper window is 500*2000. When the first wallpaper is displayed on the left, the x-coordinate of the position of the target display area of ​​the first wallpaper can be 0 and 500, that is, the target display content of the first wallpaper is the content composed of pixels with x-coordinates of 0 to 500 on the first wallpaper.

[0187] In another example, if the offset mode of the first wallpaper is right-aligned, the first wallpaper is aligned to the left of the display window. Fig. 11C As shown, the size of the drawing area is 1000*2000. The wallpaper window size is 500*2000. When the first wallpaper is displayed on the right, the x-coordinate of the position of the target display area of ​​the first wallpaper can be 500 and 1000, that is, the target display content of the first wallpaper is the content composed of pixels with x-coordinates of 500 to 1000 on the first wallpaper.

[0188] S309: If the foldable screen mobile phone is switched 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.

[0189] In the embodiment of the present application, when the user uses the foldable screen mobile phone, the user may unfold or fold the foldable screen mobile phone. During the display of part of the content of the first wallpaper, that is, during the display of the first wallpaper, when the device state of the foldable screen mobile phone is switched 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. In addition, the foldable screen mobile phone does not need to reallocate or set the size of the surface corresponding to the wallpaper window.

[0190] For example, first, the foldable screen mobile phone is in the folded state, and it displays part of the first wallpaper. Later, while the first wallpaper is displayed, the user unfolds the foldable screen mobile phone, and the device state of the foldable screen mobile phone is switched from the folded state to the unfolded state. Since the foldable screen mobile phone is still displaying the first wallpaper, the wallpaper window used to display the first wallpaper has not been destroyed. The foldable screen mobile phone does not need to recreate the wallpaper window, and the mobile phone can directly adjust the size of the wallpaper window to the size of the bright screen area of ​​the screen in the unfolded state.

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

[0192] 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 screen in the expanded state, 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 change of the screen, that is, there will be no problem of switching flickering.

[0193] In some embodiments, when the foldable screen mobile phone switches from the folded state to the unfolded state, the first wallpaper can be dynamically displayed in a manner of gradually increasing the content of the first wallpaper. The foldable screen mobile phone can determine the display speed based on the above offset and the first preset time, so as to gradually display the remaining content of the first wallpaper using the display speed until the complete 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. Among them, the fully unfolded state indicates that the folding angle of the foldable screen mobile phone is 180 degrees.

[0194] 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 as described above. Fig.11A The area shown is composed of pixels with x-coordinates of 250 to 750, 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.

[0195] For example, first, when a foldable screen mobile phone is in the folded state, its display is as follows: Fig.12 Afterwards, the device state of the foldable screen mobile phone changes from the folded state to the unfolded state, and it directly displays the following Fig.12 The wallpaper shown in (b) is compared to Fig.12 The wallpaper shown in (a) Fig.12 The wallpaper shown in (b) contains more content. Later, as the foldable screen phone is unfolded to a greater extent, the content of the lock screen wallpaper displayed by the foldable screen phone gradually increases, such as Fig.12 The wallpaper content shown in (c) is compared with Fig.12 The content of the wallpaper shown in (b) increases until it displays as shown below. Fig.12 The complete wallpaper shown in (d). In short, Fig.12 The process shown in (a)-(d) can be understood as the process of slowly expanding the wallpaper window to display other content on the drawing area, that is, the process of slowly increasing the wallpaper content displayed on the foldable screen mobile phone.

[0196] It should be noted that the above Fig.12 The wallpaper shown in (a)-(d) may 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. Fig.12The dynamic wallpaper effects presented in (a)-(d) are only examples. The wallpaper effects presented when the folding screen mobile phone is unfolding can also be other effects, and this application does not limit them.

[0197] 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.

[0198] In some embodiments, when the first wallpaper is a dynamic wallpaper, if the device state of the foldable screen mobile phone changes during the display of the first wallpaper, the animation corresponding to the first wallpaper will be played when the display content of the first wallpaper is changed, so as to achieve the dynamic display effect of the first wallpaper. Fig.12 Medium (a) to Fig.12 In (d), while the flower wallpaper is displayed, the foldable screen mobile phone is unfolded. In the process of changing the content of the flower wallpaper displayed by the foldable screen mobile phone, the animation corresponding to the flower wallpaper is also dynamically displayed, that is, the process of the flower opening.

[0199] 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 in 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 changes, the folding screen mobile phone can play the animation corresponding to the first wallpaper.

[0200] 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.

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

[0202] In some embodiments, when the folding screen mobile phone is in the folded state, when the folding screen mobile phone needs to display the above-mentioned first wallpaper, the folding screen mobile phone needs to read the offset of the first wallpaper from the preset database. When the folding screen mobile phone in the folded state displays the first wallpaper multiple times, the folding screen mobile 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 folding screen mobile phone in the folded state receives a return to desktop operation, the offset of the first wallpaper is read from the preset database for displaying the desktop wallpaper using the offset of the first wallpaper. When the user clicks the icon of application 1 on the desktop wallpaper, the folding screen mobile phone starts application 1. Then, when the user returns to the desktop from application 1, that is, when the user inputs the return to desktop operation, the folding screen mobile phone in the folded state receives the return to desktop operation again, and in response to the return to desktop operation, the folding screen mobile phone reads the offset of the first wallpaper from the preset database again, so as to display the desktop wallpaper using the offset of the first wallpaper. Alternatively, the folding screen mobile phone only needs to read the offset of the first wallpaper once, and when the device state is switched to the unfolded state and then switched to the folded state, the offset of the first wallpaper is read again.

[0203] S311, the folding screen mobile phone displays the complete first wallpaper on the suface in the wallpaper window.

[0204] 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 foldable screen mobile phone can display the complete content on the drawing area, that is, display the complete first wallpaper (or describe as displaying the first wallpaper in full screen on the first interface), without using the offset of the first wallpaper to determine the content displayed in the wallpaper window, and without reading the offset of the first wallpaper from the above-mentioned preset database.

[0205] 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.

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

[0207] In the embodiment of the present application, during the display of the first wallpaper, if the device state of the foldable screen mobile phone changes, that is, 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 folded 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 folded state. In addition, the foldable screen mobile phone does not need to reallocate or set the size of the surface corresponding to the wallpaper window.

[0208] 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 the 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 matches 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 changes in the screen will not occur.

[0209] For example, while the first wallpaper is being displayed, the user folds the foldable screen mobile phone, and the device state of the foldable screen mobile phone switches from the unfolded state to the folded state. Since the foldable screen mobile phone is displaying the first wallpaper, the wallpaper window used to display the first wallpaper has not been destroyed, and the foldable screen mobile phone does not need to recreate the wallpaper window. The mobile 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 screen mobile 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.

[0210] In some embodiments, similar to the wallpaper display process when the folding screen mobile phone switches from the folded state to the unfolded state described above, the folding screen mobile phone switches from the unfolded state to the folded state, and the first wallpaper can be dynamically displayed in a manner of gradually reducing the content of the first wallpaper. The folding screen mobile phone can determine the reduction speed of the wallpaper window based on the above offset and the second preset time, so as to use the reduction speed to gradually reduce the content of the displayed first wallpaper until the content in the display area of ​​the first wallpaper in the folded state is displayed, that is, the content in the target display area of ​​the first wallpaper. The second preset time can represent the time required for the folding screen mobile phone to switch from the unfolded state to the fully folded state. This process can be simply understood as slowly reducing 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 folding screen mobile phone is 0 degrees. Among them, the calculation process of the reduction speed is similar to the calculation process of the above display speed, which will not be repeated here.

[0211] 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.

[0212] 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.

[0213] In the embodiment of the present application, when the foldable screen mobile phone obtains the target theme selected by the user, based on the current device state of the foldable screen mobile phone, it creates a wallpaper window that adapts to the size of the bright screen area of ​​the current screen 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, that is, the size of the surface is irrelevant to 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 realize 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 adjusted wallpaper window can be used to display the content on the original surface, 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 changes in the screen.

[0214] In some embodiments, after the user sets the theme, the folding 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 preparation work 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 folding screen mobile phone indicates that the folding screen mobile phone needs to display the first wallpaper corresponding to the theme. The folding screen mobile phone can respond to the first operation and obtain the configuration data of the first wallpaper when the device state of the folding screen mobile phone is in the folded state. 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 folding 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 folding screen mobile phone is in the unfolded state, the folding screen mobile phone can directly display the entire content of the first wallpaper.

[0215] In some embodiments, the first wallpaper is taken as a dynamic wallpaper as an example. Figure 4 The structure shown in FIG. 1 introduces the setting process of dynamic wallpaper and the application process of dynamic wallpaper. The setting process of dynamic wallpaper may include: Fig.13 As shown in S1-S8, the application process of the dynamic wallpaper may include the following steps: Fig.13 S9-S27 shown.

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

[0217] S2. In response to the above setting operation, the theme application sends a first message to the wallpaper framework, wherein the first message is used to indicate that the theme of the folding screen mobile phone has changed.

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

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

[0220] Exemplarily, the theme package corresponding to the target theme may include a configuration file of 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, blur configuration information, etc.

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

[0222] In the embodiment of the present application, the wallpaper framework can directly learn 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.

[0223] In addition, when parsing the theme package, the wallpaper framework will also obtain the wallpaper service needed to display the first wallpaper. The theme package includes the path corresponding to the wallpaper service. Based on the path, the wallpaper framework can 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 data needs to be filled in for the wallpaper service to adapt the wallpaper service to the bright screen area of ​​the current screen and display the wallpaper content.

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

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

[0226] 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 may directly read it and transfer it to other modules.

[0227] S6. The wallpaper framework starts the wallpaper application.

[0228] 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.

[0229] 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.

[0230] 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.

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

[0232] 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.

[0233] S9. In response to the return to desktop operation, the wallpaper application sends the current device status to the wallpaper window.

[0234] 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.

[0235] 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.

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

[0237] 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.

[0238] 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.

[0239] Exemplarily, the target display area on the 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 embodiment, that is, the wallpaper content displayed by the folding screen mobile phone in the folded state.

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

[0241] 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.

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

[0243] S15. In response to the second message, the wallpaper application loads an animation frame corresponding to the first wallpaper on the surface.

[0244] In an embodiment of the present application, while displaying 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.

[0245] 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 an animation frame corresponding to the first wallpaper in the surface.

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

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

[0248] 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.

[0249] 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, and 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, and 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 switching between large and small screens. 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. And when switching between large and small screens of wallpaper, there is no need to change the size of the surface, only adjust the size of the wallpaper window to avoid sudden changes in the picture.

[0250] 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. Another display situation will be introduced below, in which the mobile phone displays the first wallpaper in the unfolded state and after switching from the unfolded state to the folded state, the first wallpaper is displayed. Among them, S19-S20 represents the process of displaying the first wallpaper in the unfolded state of the foldable screen mobile phone. S21-S27 represents the process of displaying the first wallpaper after the foldable screen mobile phone switches from the unfolded state to the folded state.

[0251] 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.

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

[0253] 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.

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

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

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

[0257] 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.

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

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

[0260] 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.

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

[0262] Among them, the image content in the target display area of ​​the above-mentioned 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.

[0263] In some embodiments, in order to achieve timely adaptive display of wallpaper, during the display of the complete first wallpaper, when the folding angle is less than the second angle threshold, the second angle threshold is greater than the first preset angle threshold, indicating that the folding screen mobile phone is in a pre-folded state and is about to switch to a folded state, that is, indicating that a wallpaper matching the size of the bright screen area of ​​the screen in the folded state is about to be displayed, the folding angle detection sensor can send a fourth message to the wallpaper window, and in response to the fourth message, the wallpaper window can read the offset of the first wallpaper from the preset database. Afterwards, the user continues to fold the folding screen mobile phone, and when 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 the third message, the wallpaper window can no longer read the offset of the first wallpaper repeatedly, thereby pre-reading the offset of the first wallpaper.

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

[0265] In some embodiments, the present application provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, enable the electronic device to execute the wallpaper display method as described above.

[0266] 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.

[0267] 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.

[0268] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, 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.

[0269] The units described as separate components may or may not be physically separated, 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 different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0270] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0271] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0272] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A 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 a bright screen area of ​​the screen in the folded state; the second operation is used to trigger setting a 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

Cited By

  • Wallpaper processing method, electronic equipment and storage medium

    CN119668480A

  • Wallpaper display method and electronic device

    EP4654567A1