Wallpaper display method and electronic equipment

By downsampling the lock screen wallpaper when the lock screen wallpaper is the same as the desktop wallpaper, the problem of excessive memory usage of SystemUI in low-end devices is solved, improving device performance and providing a smooth visual experience.

CN119248393AActive Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411197672.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2025-01-03
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

When the system UI application memory increases, it may cause slowing down, stuttering or even crashing. How to reduce the memory usage of SystemUI to improve device performance.

Method used

By downsampling the lock screen wallpaper when the lock screen wallpaper is the same as the desktop wallpaper, and the desktop wallpaper is revealed in the lock screen interface, thereby reducing the data size of the lock screen wallpaper and reducing the memory usage of SystemUI.

Benefits of technology

It effectively reduces the memory usage of lock screen wallpaper, improves the performance of electronic devices, and provides a smoother visual experience and a more comfortable usage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248393A_ABST
    Figure CN119248393A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a wallpaper display method and electronic equipment, relates to the technical field of terminals, and can reduce the memory occupation of lock screen wallpaper so as to further reduce the SystemUI memory. The method comprises the following steps: setting a first image as lock screen wallpaper, and setting a second image as desktop wallpaper; in response to user operation, acquiring a lock screen wallpaper layer and a desktop wallpaper layer, and synthesizing the lock screen wallpaper layer and the desktop wallpaper layer; a first lock screen interface is displayed, the data size of a lock screen wallpaper layer in the first lock screen interface is a first numerical value, and the desktop wallpaper layer is invisible; setting the first image as desktop wallpaper; in response to user operation, acquiring a lock screen wallpaper layer and a desktop wallpaper layer, synthesizing the lock screen wallpaper layer and the desktop wallpaper layer, and displaying a second lock screen interface; the data size of the lock screen wallpaper layer in the second lock screen interface is a second numerical value, the lock screen wallpaper layer in the second lock screen interface is transparently displayed, and the desktop wallpaper layer is visible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of terminal technology, and in particular to a wallpaper display method and an electronic device. Background Art

[0002] Generally, when the software version is updated, many new features are added, such as dynamic themes and special effects, high-definition graphics and animation, real-time data monitoring and display, etc. These new features may gradually increase the memory occupied by the system user interface (SystemUI) application.

[0003] For low-end phones or devices with limited memory, when the SystemUI application memory increases, it may bring a series of adverse effects, such as slower running speed, freeze, or even crash. Summary of the invention

[0004] The embodiments of the present disclosure provide a wallpaper display method and an electronic device, which can reduce the memory usage of lock screen wallpaper, thereby further reducing SystemUI memory.

[0005] To achieve the above objectives, the embodiments of the present disclosure adopt the following technical solutions:

[0006] In a first aspect, an embodiment of the present disclosure provides a wallpaper display method, comprising: first, setting a first image as a lock screen wallpaper, and setting a second image as a desktop wallpaper; in response to a user operation, obtaining a lock screen wallpaper layer and a desktop wallpaper layer, and synthesizing the lock screen wallpaper layer and the desktop wallpaper layer; displaying a first lock screen interface, wherein the data size of the first image displayed on the lock screen wallpaper layer in the first lock screen interface is a first value, and the desktop wallpaper layer is invisible in the first lock screen interface; setting the first image as a desktop wallpaper; in response to a user operation, obtaining a lock screen wallpaper layer and a desktop wallpaper layer, and synthesizing the lock screen wallpaper layer and the desktop wallpaper layer, and displaying a second lock screen interface; the data size of the first image displayed on the lock screen wallpaper layer in the second lock screen interface is a second value, the second value is smaller than the first value, and the lock screen wallpaper layer is displayed transparently and the desktop wallpaper layer is visible in the second lock screen interface.

[0007] Based on the above-mentioned wallpaper display method, the present disclosure discloses that when the lock screen wallpaper and the desktop wallpaper are different (that is, the first image and the second image are different), the lock screen wallpaper is loaded and displayed normally, and the data size of the lock screen wallpaper is the first value. At this time, the desktop wallpaper layer is invisible. When the lock screen wallpaper and the desktop wallpaper are the same (that is, the lock screen wallpaper and the desktop wallpaper are both the first image), the lock screen wallpaper layer is displayed transparently, and the desktop wallpaper layer is displayed visibly, that is, for the user, the lock screen wallpaper cannot be seen, and what is seen is the desktop wallpaper. In other words, the lock screen wallpaper is displayed through the desktop wallpaper. Therefore, when the lock screen wallpaper is not displayed, the data size of the lock screen wallpaper is reduced, that is, the data size of the lock screen wallpaper is reduced from the first value to the second value. In this way, the memory occupied by the lock screen wallpaper can be reduced. Since the lock screen wallpaper is stored in the SystemUI application, the memory of the corresponding SystemUI application will also be reduced. When the memory of the SystemUI application is reduced, the performance of the electronic device can be further improved.

[0008] In combination with the first aspect, in another possible implementation, the lock screen wallpaper layer and the desktop wallpaper layer are synthesized, including: synthesizing the lock screen wallpaper layer and the desktop wallpaper layer into a to-be-displayed layer through an image synthesizer, and the first lock screen interface and the second lock screen interface display the first image through the to-be-displayed layer. Based on this solution, the lock screen wallpaper layer and the desktop wallpaper layer are synthesized into a to-be-displayed layer through an image synthesizer, so that the lock screen interface and the desktop interface can be more visually coherent. When the user enters the desktop from the lock screen state or operates in the lock screen state, it will not feel abrupt due to the sudden change of the wallpaper, providing a smoother visual experience.

[0009] In combination with the first aspect, in another possible implementation, after setting the first image as the desktop wallpaper, the method further includes: determining whether the lock screen wallpaper and the desktop wallpaper are the same; synthesizing the lock screen wallpaper layer and the desktop wallpaper layer, and before displaying the second lock screen interface, the method further includes: when it is determined that the lock screen wallpaper and the desktop wallpaper are the same, reducing the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface. Based on this solution, after setting the lock screen wallpaper and the desktop wallpaper, it can be determined whether the lock screen wallpaper and the desktop wallpaper are the same. If they are the same, the data size of the lock screen wallpaper can be reduced, thereby reducing the memory usage of the SystemUI application.

[0010] In combination with the first aspect, in another possible implementation, reducing the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface includes: downsampling the first image to reduce the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface. A specific implementation method for reducing the data size of the lock screen wallpaper is provided.

[0011] In combination with the first aspect, in another possible implementation, after determining whether the lock screen wallpaper and the desktop wallpaper are the same, the method further includes: updating a flag bit of the database based on whether the lock screen wallpaper and the desktop wallpaper are the same. Based on this solution, after determining whether the lock screen wallpaper and the desktop wallpaper are the same, the flag bit can be used to mark whether the lock screen wallpaper and the desktop wallpaper are the same, so that not only the amount of code can be greatly reduced, but also the code readability can be improved, and the memory usage of the electronic device can be optimized.

[0012] In combination with the first aspect, in another possible implementation, after displaying the second lock screen interface, the method further includes: in response to the user's unlocking operation, obtaining a lock screen wallpaper layer and a desktop wallpaper layer, and synthesizing the lock screen wallpaper layer and the desktop wallpaper layer to display a third lock screen interface; the data size of the first image displayed by the lock screen wallpaper layer in the third lock screen interface is the second value, and the lock screen wallpaper layer is displayed opaquely. Based on this scheme, the third lock screen interface generally displays a blurred lock screen wallpaper for the user. Therefore, the first image with a data size of the second value is used to display to the user, so that the third lock screen interface can still maintain a good visual effect and will not appear too rough or distorted due to the reduction in resolution. It can also meet the personalized needs of users and bring users a more comfortable user experience.

[0013] In combination with the first aspect, in another possible implementation, the method further includes: after setting the first image as the desktop wallpaper, in response to a user operation, before acquiring the lock screen wallpaper layer and the desktop wallpaper layer, the method further includes: determining a flag bit of the database as a target identification field, the target identification field being used to indicate that the lock screen wallpaper and the desktop wallpaper are the same. Provide specific content of a flag bit.

[0014] In combination with the first aspect, in another possible implementation, after setting the first image as the desktop wallpaper, the method further includes: determining whether the magazine lock screen function is turned on; when the magazine lock screen function is turned on, setting the third image as the lock screen wallpaper, the third image is an image in the resource library corresponding to the magazine lock screen function; in response to user operation, obtaining the lock screen wallpaper layer and the desktop wallpaper layer, and synthesizing the lock screen wallpaper layer and the desktop wallpaper layer to display a fourth lock screen interface, and the lock screen wallpaper layer in the fourth lock screen interface displays the third image. Based on this solution, a specific implementation method for displaying a lock screen interface when the magazine lock screen function is turned on is provided.

[0015] In a second aspect, an embodiment of the present disclosure provides a wallpaper display device, which can be applied to an electronic device to implement the method in the first aspect. The functions of the wallpaper display device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, such as a setting module, a synthesis module, and a display module.

[0016] Among them, the setting module is configured to set the first image as the lock screen wallpaper and the second image as the desktop wallpaper; and set the first image as the desktop wallpaper.

[0017] The synthesis module is configured to obtain a lock screen wallpaper layer and a desktop wallpaper layer in response to a user operation, and synthesize the lock screen wallpaper layer and the desktop wallpaper layer.

[0018] The display module is configured to display a first lock screen interface, in which the data size of the first image displayed on the lock screen wallpaper layer in the first lock screen interface is a first value, and the desktop wallpaper layer in the first lock screen interface is invisible; and in response to a user operation, obtain the lock screen wallpaper layer and the desktop wallpaper layer, and synthesize the lock screen wallpaper layer and the desktop wallpaper layer to display a second lock screen interface; the data size of the first image displayed on the lock screen wallpaper layer in the second lock screen interface is a second value, the second value is smaller than the first value, and in the second lock screen interface, the lock screen wallpaper layer is displayed transparently and the desktop wallpaper layer is visible.

[0019] In combination with the second aspect, in a possible implementation method, the synthesis module is also configured to synthesize the lock screen wallpaper layer and the desktop wallpaper layer into a layer to be displayed through an image synthesizer, and the first lock screen interface and the second lock screen interface display the first image through the layer to be displayed.

[0020] In combination with the second aspect, in a possible implementation manner, the wallpaper display device further includes a determination module.

[0021] The determination module is configured to determine whether the lock screen wallpaper and the desktop wallpaper are the same; and when it is determined that the lock screen wallpaper and the desktop wallpaper are the same, reduce the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface.

[0022] In combination with the second aspect, in a possible implementation, the determination module is further configured to downsample the first image to reduce the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface.

[0023] In combination with the second aspect, in a possible implementation manner, the wallpaper display device further includes an updating module.

[0024] The update module is configured to update a flag bit of the database based on whether the lock screen wallpaper and the desktop wallpaper are the same.

[0025] In combination with the second aspect, in a possible implementation manner, the wallpaper display device further includes an acquisition module.

[0026] An acquisition module is configured to acquire a lock screen wallpaper layer and a desktop wallpaper layer in response to a user's unlocking operation, and synthesize the lock screen wallpaper layer and the desktop wallpaper layer to display a third lock screen interface; the data size of the first image displayed on the lock screen wallpaper layer in the third lock screen interface is a second value, and the lock screen wallpaper layer is displayed opaquely.

[0027] In combination with the second aspect, in a possible implementation, the determination module is further configured to determine that the flag bit of the database is a target identification field, and the target identification field is used to indicate that the lock screen wallpaper and the desktop wallpaper are the same.

[0028] In combination with the second aspect, in a possible implementation, the determination module is further configured to determine whether the magazine lock screen function is turned on.

[0029] The setting module is further configured to set a third image as a lock screen wallpaper when the magazine lock screen function is turned on, the third image being an image in a resource library corresponding to the magazine lock screen function;

[0030] The synthesis module is also configured to obtain the lock screen wallpaper layer and the desktop wallpaper layer in response to user operations, and synthesize the lock screen wallpaper layer and the desktop wallpaper layer to display a fourth lock screen interface, in which the lock screen wallpaper layer displays the third image.

[0031] In a third aspect, the present disclosure provides an electronic device, comprising: a memory, a display screen, and one or more processors; the memory, the display screen, and the processor are coupled. The memory is used to store computer program codes, and the computer program codes include computer instructions; when the electronic device is running, the processor is used to execute one or more computer instructions stored in the memory, so that the electronic device executes the wallpaper display method as described in any one of the first aspects above.

[0032] In a fourth aspect, the present disclosure provides a computer 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 first aspects.

[0033] In a fifth aspect, the present disclosure 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 first aspects.

[0034] In a sixth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting a first terminal device to implement the functions involved in the first aspect. In one possible design, the device also includes a memory for storing necessary program instructions and data for the first terminal device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.

[0035] It should be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a display effect of a theme setting provided in an embodiment of the present disclosure;

[0037] Figure 2 A schematic diagram of the display effect of a lock screen interface and a desktop interface provided in an embodiment of the present disclosure;

[0038] Figure 3 A schematic diagram of a display effect of wallpaper setting provided in an embodiment of the present disclosure;

[0039] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure;

[0040] Figure 5 A schematic diagram of a software structure of an electronic device provided in an embodiment of the present disclosure;

[0041] Figure 6 One of the flowcharts of a wallpaper display method provided in an embodiment of the present disclosure;

[0042] Figure 7 One of the flowcharts of updating the status bit of a setting database provided in an embodiment of the present disclosure;

[0043] Figure 8 A second flow chart of updating the status bit of a setting database provided in an embodiment of the present disclosure;

[0044] Fig. 9 A third flow chart of updating the status bit of a setting database provided in an embodiment of the present disclosure;

[0045] Fig.10 A schematic diagram of a process of setting a lock screen provided in an embodiment of the present disclosure;

[0046] Fig.11 A schematic diagram of the structure of a chip system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0047] The technical solution in the embodiment of the present disclosure will be described below in conjunction with the drawings in the embodiment of the present disclosure. Among them, in the description of the present disclosure, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present disclosure is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present disclosure, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present disclosure, in the embodiments of the present disclosure, the words "first", "second" and the like are used to distinguish between the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for easy understanding.

[0048] In addition, the network architecture and business scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0049] In order to make the description of the following embodiments clear and concise, a brief introduction to the relevant concepts or technologies is first given:

[0050] 1. System theme (abbreviated as theme) refers to the interface style of the electronic device system, for example, the style of the display interface, notification management interface, etc. of the electronic device. The system theme may include preview images, wallpapers, and icon files.

[0051] Among them, the preview image refers to the preview effect image of the electronic device after using the system theme. Wallpaper refers to the main interface image of the electronic device (also known as desktop wallpaper) and lock screen image (also known as lock screen wallpaper), etc. An icon file refers to a file that can be used as an icon, such as a desktop icon, folder icon, etc.

[0052] Electronic devices are usually pre-configured with system themes when they leave the factory. Users can also change the pre-configured system themes of electronic devices according to their own preferences when using electronic devices, so that the display interface of the electronic device is changed to the style that the user likes. When different themes are applied to electronic devices, the interface styles presented by the electronic devices are also different.

[0053] 2. Magazine lock screen, used to provide multiple different images for the systemUI application of the electronic device. Each time the screen of the electronic device is turned on, the systemUI application can control the lock screen interface of the display to display different images. Magazine lock screen is an application or service, which belongs to the Android application package file (Android Package, APK) in the Android system. In the present disclosure, the images provided by the magazine lock screen can be magazines, news or other forms, etc. These magazines and news come from any one or more of the local preset resources, cloud resources or resources manually added by the user.

[0054] Since users may turn off and on the screen repeatedly when using electronic devices, if the magazine lock screen wants to ensure that a different image is displayed on the lock screen interface each time the screen is turned on, the magazine lock screen can pre-load resources so that the systemUI application of the electronic device can obtain these resources from the magazine lock screen and display different images on the lock screen interface, thereby giving users a sense of freshness.

[0055] 3. Lock screen wallpaper refers to the image contained in the lock screen interface displayed by the electronic device when the electronic device is in the lock screen state and the screen is on. The lock screen wallpaper can be an image, a gif or a short video. The lock screen wallpaper can be a wallpaper provided by the system theme, or a fixed lock screen wallpaper customized by the user, or multiple different lock screen images provided by the magazine lock screen. The main function of the lock screen wallpaper is to provide a visual appeal and personalized display.

[0056] 4. Desktop wallpaper refers to the background image contained in the main interface (i.e., system desktop) displayed by the electronic device after it is unlocked. The desktop wallpaper can be an image, animated image, or short video. The desktop wallpaper can be a wallpaper provided by the system theme or a fixed desktop wallpaper customized by the user. The desktop wallpaper creates a comfortable and personalized visual environment for users in daily use such as operating the device and opening applications.

[0057] 5. SystemUI application is an important application in the Android operating system. It is mainly responsible for managing and presenting user interaction elements at the system level. SystemUI application covers multiple key parts, including status bar, navigation bar, notification bar, lock screen interface, desktop interface, etc.

[0058] Among them, the status bar is used to display system status information such as signal strength, battery level, time, etc. The navigation bar is used to display common operation buttons such as back, home, and multitasking. The notification bar is used to display notification messages from various applications. Users can view the details and perform corresponding operations by pulling down the notification bar. The lock screen interface is used to display information such as time and date, and can also include quick operation buttons, such as camera, flashlight, etc. SystemUI applications can provide a smooth and convenient user experience.

[0059] For example, when the phone receives a new text message, the SystemUI application will display the corresponding icon and prompt information in the notification bar; when the user slides the screen to unlock, the SystemUI application will process the unlocking operation and switch to the desktop interface.

[0060] With the continuous iteration of mobile operating systems, various new services emerge in an endless stream, providing users with a richer functional experience. As applications that directly interact with users, the complexity and memory usage of SystemUI applications also increase accordingly.

[0061] This phenomenon becomes more and more obvious in actual use, especially when applied on devices with relatively low-end configuration or small memory capacity. For low-end machines or devices with small memory, their hardware performance itself has certain limitations. As the SystemUI application memory gradually increases, the limited memory capacity will make it easier for the system to freeze, run slowly, or even crash the application, which seriously affects the user's normal use and operating experience.

[0062] For example, when some low-end mobile phones are running the latest version of the system, the speed of opening applications becomes significantly slower due to the high memory usage of SystemUI, and the phone may even freeze when switching between multiple tasks.

[0063] For another example, on some devices with less memory, after the SystemUI memory is increased, the system may frequently display insufficient memory prompts when running other applications, or even be unable to run multiple applications at the same time. Therefore, how to reduce the memory usage of SystemUI is an urgent problem to be solved.

[0064] Combined with relevant technologies, it can be known that the SystemUI application can be used in multiple user interaction scenarios, enabling users to easily access system functions by providing an intuitive display interface.

[0065] For example, when a user wakes up an electronic device and unlocks the electronic device, the SystemUI application can display a lock screen interface and a desktop interface for the user. Generally, the lock screen wallpaper displayed on the lock screen interface and the desktop wallpaper displayed on the desktop interface can be the same or different.

[0066] It is understandable that the lock screen wallpaper displayed on the lock screen interface and the desktop wallpaper displayed on the desktop interface may be pre-set by the electronic device, or may be set in response to a wallpaper setting operation of the user.

[0067] Currently, the lock screen wallpaper displayed on the lock screen interface and the desktop wallpaper displayed on the desktop interface can be set in a variety of ways. For example, by setting a theme, the lock screen wallpaper and desktop wallpaper can be changed with one click. When the user selects a theme, the system will automatically apply its matching wallpaper to the lock screen and desktop, achieving a unified change of the overall style and bringing a new visual experience to the user.

[0068] For example, please refer to Figure 1 , Figure 1 Schematic diagram of updating the lock screen wallpaper and desktop wallpaper through the theme provided by the embodiment of the present disclosure. Figure 1 In the corresponding embodiments, an example in which the electronic device is a mobile phone is taken for illustration, and this example does not constitute a limitation on the embodiments of the present disclosure.

[0069] like Figure 1 As shown in a in FIG. 1 , the main interface (i.e., desktop) 100 of the mobile phone 1 includes an icon 101 for setting applications. When the mobile phone receives an operation of the user clicking the icon 101 for setting applications, the display interface of the mobile phone jumps to the setting interface 102. The setting interface 102 is as shown in FIG. Figure 1 When the mobile phone receives the operation of the user clicking the personalized theme setting item 103, the display interface of the mobile phone jumps from the setting interface 102 to the personalized theme interface 104. The personalized theme interface 104 is as shown in FIG. Figure 1 As shown in c.

[0070] like Figure 1 As shown in c in FIG. 1 , the personalized theme interface 104 may include multiple pre-set themes, such as a theme named Wisdom Like Light 105, a theme named Magic Moment, a theme named Sky, and a theme named Insight. It should be noted that the above theme names are for example descriptions and do not constitute limitations on the embodiments of the present disclosure.

[0071] When the mobile phone receives the operation of the user clicking the setting item 105 of the Wisdom Like Light theme, the display interface of the mobile phone jumps from the personalized theme interface 104 to the Wisdom Like Light theme interface 106. Figure 1 As shown in d. Figure 1As shown in d, the Wisdom Like Light theme interface 106 includes an application option 107. When the mobile phone receives the user's operation of clicking the application option 107, the mobile phone can set the lock screen wallpaper and desktop wallpaper of the mobile phone according to the Wisdom Like Light theme, realizing one-click replacement of the overall visual style.

[0072] After that, when the user unlocks the phone again, the lock screen wallpaper on the lock screen interface is the wallpaper corresponding to the Wisdom Like Light theme. The display effect of the lock screen wallpaper can be referred to Figure 2 When the user unlocks the computer and enters the desktop, the desktop wallpaper of the desktop interface is also the wallpaper corresponding to the Wisdom Like Light theme. The display effect of the desktop wallpaper can be referred to Figure 2 As shown in (b) in .

[0073] For another example, users can also update the lock screen wallpaper and desktop wallpaper separately based on the specific images they choose. Figure 3 , Figure 3 Schematic diagram of updating the lock screen wallpaper and desktop wallpaper through a specific image provided by an embodiment of the present disclosure. Figure 3 In the corresponding embodiments, an example in which the electronic device is a mobile phone is taken for illustration, and this example does not constitute a limitation on the embodiments of the present disclosure.

[0074] Figure 3 (a) in the figure shows an exemplary display interface 300 of all photos in a gallery APP, and the display interface 300 includes multiple images. When the mobile phone receives an operation of a user clicking on an image 301, the display interface 300 of the mobile phone jumps to an enlarged interface 302 of the image 301. The enlarged interface 302 of the image 301 is as shown in FIG. Figure 3 As shown in b.

[0075] like Figure 3 As shown in b, the zoom interface 302 of the image 301 may include multiple function options, such as a share option, a favorite option, an edit option, a delete option, and more options 303, etc. It should be noted that the above options are for example description and do not constitute a limitation on the embodiments of the present disclosure.

[0076] When the mobile phone receives the operation of the user clicking on more options 303, the enlarged interface 302 of the image 301 pops up a window interface 304. The window interface 304 may include multiple functional options, such as a copy option, a hide option, a set as option 305, and a rotation option. When the mobile phone receives the operation of the user clicking on the set as option 305, the display interface of the mobile phone jumps to the photo set as interface 306. The photo set as interface 306 may include multiple functional options, such as the set as lock screen option, the set as desktop option, and the set at the same time option 307. When the mobile phone receives the operation of the user clicking on the set at the same time option 307, the mobile phone can set the lock screen wallpaper and desktop wallpaper of the mobile phone according to the image 301. Afterwards, when the user unlocks the mobile phone again, the lock screen wallpaper of the lock screen interface is the image 301, and when the user enters the desktop, the desktop wallpaper of the desktop interface is still the image 301.

[0077] For another example, by setting the magazine lock screen function, the electronic device will regularly push a series of pictures to continuously update the lock screen wallpaper. Every time the lock screen desktop is awakened, it can bring freshness to the user.

[0078] Of course, in addition to the above-mentioned methods, other methods can also be used to update the lock screen wallpaper and desktop wallpaper. For example, some specific applications may provide rich wallpaper resources for users to choose from; or some special wallpaper setting options may be added in the system update, etc. The present disclosure embodiment does not make any limitation to this.

[0079] Based on the above Figure 1-Figure 3 From the usage scenarios of the SystemUI application shown, it can be seen that when the user sets the lock screen wallpaper and desktop wallpaper, there is a situation where the lock screen wallpaper and the desktop wallpaper are the same. In this case, the wallpaper can be further processed to reduce the SystemUI memory, realize lightweight processing of SystemUI, and further reduce the impact on low-end mobile phones or devices.

[0080] To this end, the present disclosure provides a wallpaper display method, which is applied to electronic devices. When the lock screen wallpaper and the desktop wallpaper are the same, the lock screen wallpaper can be downsampled. This can not only reduce the memory usage of the lock screen wallpaper, but also further reduce the memory consumption of the SystemUI application. When the lock screen wallpaper is displayed, the lock screen wallpaper can be displayed transparently, and the display status of the desktop wallpaper can be set to visible. In this way, the desktop wallpaper can be displayed transparently on the lock screen interface without any impact on the user experience.

[0081] An embodiment of the present disclosure provides a wallpaper display method, which is applied to an electronic device.

[0082] Exemplarily, the electronic device in the embodiments of the present disclosure may be a portable computer (such as a mobile phone), a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), a media player, and other devices with a screen (or display screen). The embodiments of the present disclosure do not impose any special restrictions on the specific form of the electronic device.

[0083] Please refer to Figure 4 , Figure 4 A possible hardware structure diagram of an electronic device is shown:

[0084] like Figure 4 As shown, the electronic device 400 may include: a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc.

[0085] Among them, the above-mentioned sensor module 480 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.

[0086] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments, the electronic device 400 may include more or fewer components than shown in the figure, or combine some components, or separate 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.

[0087] The processor 410 may include one or more processing units, for example, the processor 410 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.

[0088] The controller may be the nerve center and command center of the electronic device 400. 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.

[0089] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 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 410, and thus improves the efficiency of the system.

[0090] In some embodiments, the processor 410 may include one or more interfaces. The interface may include an inter-integrated circuit (I4C) interface, an inter-integrated circuit sound (I4S) 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.

[0091] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 400. In other embodiments, the electronic device 400 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0092] The charging management module 440 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 440 charges the battery 442, it can also power the electronic device through the power management module 441.

[0093] The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, and supplies power to the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, and the wireless communication module 460. In some embodiments, the power management module 441 and the charging management module 440 can also be arranged in the same device.

[0094] The wireless communication function of the electronic device 400 can be implemented through antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, modem processor and baseband processor, etc. In some embodiments, the antenna 1 of the electronic device 400 is coupled with the mobile communication module 450, and the antenna 2 is coupled with the wireless communication module 460, so that the electronic device 400 can communicate with the network and other devices through wireless communication technology.

[0095] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 400 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of 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.

[0096] The mobile communication module 450 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 400. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

[0097] The mobile communication module 450 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 450 can be set in the processor 410. In some embodiments, at least some functional modules of the mobile communication module 450 can be set in the same device as at least some modules of the processor 410.

[0098] The wireless communication module 460 can provide wireless communication solutions for application in the electronic device 400, including WLAN (such as (wirelessfidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), nearfield communication technology (nearfield communication, NFC), infrared technology (infrared, IR), etc.

[0099] The wireless communication module 460 may be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 410. The wireless communication module 460 may also receive a signal to be sent from the processor 410, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.

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

[0101] The display screen 494 is used to display images, videos, etc. The display screen 494 includes a display panel.

[0102] The electronic device 400 can realize the shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494 and the application processor. The ISP is used to process the data fed back by the camera 493. The camera 493 is used to capture a static image or a video. In some embodiments, the electronic device 400 may include 1 or N cameras 493, where N is a positive integer greater than 1.

[0103] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor 410 through the external memory interface 420 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0104] The internal memory 421 may be used to store computer executable program codes, which may include instructions. The processor 410 executes various functional applications and data processing of the electronic device 400 by running the instructions stored in the internal memory 421. For example, in an embodiment of the present disclosure, the processor 410 may execute the instructions stored in the internal memory 421, and the internal memory 421 may include a program storage area and a data storage area.

[0105] 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 400 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 421 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.

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

[0107] Button 490 includes a power button, a volume button, etc. Button 490 can be a mechanical button. It can also be a touch button. Motor 491 can generate a vibration prompt. Motor 491 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. Indicator 492 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. SIM card interface 495 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 400 by inserting it into the SIM card interface 495 or pulling it out from the SIM card interface 495. The electronic device 400 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 495 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0108] In addition, an operating system, such as Hongmeng operating system, iOS operating system, Android operating system, Windows operating system, etc., is running on the above components. Applications can be installed and run on the operating system. In other embodiments, there may be multiple operating systems running in the electronic device.

[0109] It should be understood that Figure 4 The hardware modules included in the electronic device shown are only described for example, and do not limit the specific structure of the electronic device. In fact, the electronic device provided by the embodiment of the present disclosure may also include other hardware modules that have an interactive relationship with the hardware modules illustrated in the figure, which are not specifically limited here. For example, the electronic device may also include a flashlight, a micro-projection device, etc. For another example, if the electronic device is a PC, then the electronic device may also include components such as a keyboard and a mouse.

[0110] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device is illustrated.

[0111] Figure 5 is a software structure diagram of an electronic device in an embodiment of the present disclosure. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into four layers, from top to bottom: application layer (referred to as application layer), application framework layer (framework), Android runtime (Android runtime), system library and kernel layer.

[0112] The application layer may include a series of application packages. For example, the application package may include applications (APP) such as camera, gallery, calendar, phone, map, navigation, WLAN, Bluetooth, SystemUI, theme, wallpaper application, etc.

[0113] Among them, systemUI is used to display the interface of the electronic device, such as the lock screen wallpaper of the lock screen interface and the desktop wallpaper of the desktop interface.

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

[0115] like Figure 5As shown, the application framework layer may include an activity manager, a window manager, a content provider, a view system, a resource manager, a notification manager, etc., and the embodiments of the present disclosure do not impose any restrictions on this.

[0116] Activity Manager: used to manage the life cycle of each application. Applications usually run in the operating system in the form of Activities. For each Activity, there is a corresponding application record (ActivityRecord) in the Activity Manager. This ActivityRecord records the status of the Activity of the application. The Activity Manager can use this ActivityRecord as an identifier to schedule the Activity process of the application.

[0117] Window Manager Service: It is used to manage the graphical user interface (GUI) resources used on the screen. Specifically, it can be used to obtain the screen size, create and destroy windows, show and hide windows, layout windows, manage focus, and manage input methods and wallpapers.

[0118] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. Resource managers provide applications with various resources, such as localized strings, icons, images, layout files, video files, etc.

[0119] The application framework layer may also include a power manager (power), a phone window manager (PhoneWindowManager), a lock screen service (keyguardService), a theme service, a wallpaper service, and an image synthesizer (surfaceflinger). Among them, the power manager is used to shut down unnecessary hardware components, thereby effectively reducing power consumption. The phone window manager is used to handle phone-related functions on the lock screen interface. The wallpaper service is used to handle wallpaper-related content. The theme service is used to handle theme-related content. The image synthesizer is a system service that is used to synthesize the layers corresponding to the lock screen interface and the layers corresponding to the desktop interface.

[0120] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

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

[0122] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. OpenGL ES is used to implement 3D graphics drawing, image rendering, synthesis and layer processing. SGL is a drawing engine for 2D drawing.

[0123] The kernel layer is a layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, etc., and the embodiments of the present disclosure do not impose any restrictions on this.

[0124] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure or software structure.

[0125] A wallpaper display method provided by an embodiment of the present disclosure is described in detail below in conjunction with the accompanying drawings. The method can be applied to the above electronic device. Figure 6 As shown, the method specifically includes:

[0126] Step 601: When the electronic device is in a first state, the SystemUI application determines whether the magazine lock screen function is turned on.

[0127] The first state may be any one of the following states: the electronic device is in a screen-off wake-up state, the electronic device is in a power-on start-up state, the user sets a theme, or the user sets a wallpaper.

[0128] The screen-off wake-up state refers to when the display screen of the electronic device is off, the display screen is awakened by a preset method and the electronic device enters an operable state. The preset method may be that the user presses the power button, or the user picks up the electronic device, and the electronic device changes from a static state to a lifted state.

[0129] In some examples, the implementation process of the electronic device being in the first state may be: the electronic device receives a first operation of the user, and in response to the first operation, the electronic device enters the first state. The first operation is used to trigger the electronic device to be in the first state. Exemplarily, the first operation may be a touch operation, a voice operation, or an air gesture operation.

[0130] Taking the first operation as a touch operation as an example, the touch operation includes: pressing the power button on the side of the electronic device to put the electronic device in a screen-off wake-up state. Or, long pressing the power button on the side of the electronic device to put the electronic device in a power-on startup state. Or, selecting a target image and confirming to apply the target image as wallpaper. Or, selecting a target theme and confirming to apply the target theme.

[0131] When a user is using an electronic device, the user can press the power button to put the electronic device into a screen-off wake-up state. During the process of waking up the electronic device, the electronic device can obtain a lock screen wallpaper and a desktop wallpaper, and load the lock screen wallpaper and / or desktop wallpaper for the user through the SystemUI application.

[0132] Alternatively, when a user is using an electronic device, the user can long press the power button to turn the electronic device into a startup state. During the startup process of the electronic device, the electronic device can obtain a lock screen wallpaper and a desktop wallpaper, and after the electronic device is successfully started, the lock screen wallpaper and / or desktop wallpaper is loaded for the user through the SystemUI application.

[0133] Alternatively, when a user wants to change the wallpaper of an electronic device, the user can open a gallery application to view all images. If a target image meets the user's preferences, the user can select the target image and set the target image as a lock screen wallpaper and / or desktop wallpaper through a wallpaper setting operation. The wallpaper setting operation is used to enable the electronic device to set the target image as a target wallpaper.

[0134] Alternatively, when the user uses the electronic device, the user can first return to the desktop including the theme application icon, and then click the theme application icon to display the interface of the theme application. If a theme suits the user's preference, the user can select the theme, and through the theme setting operation, the electronic device applies the theme, and displays the image corresponding to the theme on the lock screen wallpaper and desktop wallpaper. The theme setting operation is used to make the electronic device apply the target theme.

[0135] The lock screen wallpaper and / or desktop wallpaper may be a static image, a dynamic image, or a video. For example, if a user chooses to set a static image as a wallpaper, the static image may be an image corresponding to the theme of the electronic device, such as cute pets, scenery, animation, games, cars, buildings, etc.; it may also be an image saved in the album of the electronic device, a screenshot, a network image, etc.; it may also be a static image provided by a wallpaper application. The specific image may be determined according to actual use requirements, and the embodiments of the present disclosure are not limited thereto.

[0136] When the electronic device is in the first state, in order to provide the user with a more personalized and rich visual experience, the SystemUI application needs to load a lock screen wallpaper for the user on the lock screen interface.

[0137] The SystemUI application is responsible for managing and controlling the display and interaction of the entire lock screen interface. When the electronic device enters the first state, the SystemUI application will call the lock screen clock layer, lock screen wallpaper layer (ie BackDropView) and desktop wallpaper layer (ie ImageWallpaper) to build a complete lock screen interface according to user settings and system settings.

[0138] Among them, the lock screen clock layer is used to display the current time information on the lock screen interface. This layer can also display other time-related information such as date and week. This layer is presented in the form of BottomAreaView. The lock screen wallpaper layer is used to display the lock screen wallpaper of the lock screen interface. The desktop wallpaper layer (i.e. ImageWallpaper) is used to display the desktop wallpaper of the desktop interface.

[0139] Before building the lock screen interface, the SystemUI application needs to obtain the lock screen wallpaper and desktop wallpaper first, and load the lock screen wallpaper and desktop wallpaper into the corresponding layers. Then, the SystemUI application obtains the current time information and displays the obtained time information on the lock screen clock layer. When the user interacts with the lock screen interface, the SystemUI application will adjust and update the above three layers according to the user's operations, such as sliding to unlock, checking notifications, etc.

[0140] For example, when the user triggers the unlocking operation of the electronic device, the SystemUI application will gradually hide the lock screen interface and display the desktop interface at the same time. At this time, the desktop wallpaper will become the main display content.

[0141] Generally speaking, the lock screen wallpaper loaded by the SystemUI application in the lock screen wallpaper layer and the desktop wallpaper loaded in the desktop wallpaper layer may be the same or different.

[0142] When the lock screen wallpaper and the desktop wallpaper are different, the lock screen wallpaper and the desktop wallpaper cannot replace each other, and the wallpaper can be loaded for the user according to the wallpaper loading process in the related art.

[0143] When the lock screen wallpaper and the desktop wallpaper are the same, the lock screen wallpaper and the desktop wallpaper can be replaced. For example, the lock screen wallpaper is displayed using the desktop wallpaper. In this way, the user can still view the lock screen wallpaper on the lock screen interface. When the lock screen wallpaper is displayed using the desktop wallpaper, the lock screen wallpaper loaded on the lock screen interface can be processed, for example, the lock screen wallpaper loaded on the lock screen interface is downsampled. Through processing, the memory space occupied by the lock screen wallpaper is reduced, and the corresponding SystemUI memory usage will also be reduced, so the performance of the electronic device can be improved.

[0144] It is understandable that the implementation premise of this method is that the lock screen wallpaper and the desktop wallpaper are the same, so before applying this method, it is necessary to first determine whether the lock screen wallpaper and the desktop wallpaper are the same. Then, different methods are used to load the wallpaper according to whether the lock screen wallpaper and the desktop wallpaper are the same.

[0145] At present, there are many types of lock screen wallpapers. Under different types, the lock screen wallpaper and the desktop wallpaper can be the same or different. For example, the lock screen wallpaper can be a magazine lock screen, and the lock screen wallpaper displayed on the lock screen interface of the magazine lock screen is usually different from the desktop wallpaper displayed on the desktop interface. The lock screen wallpaper can also be a target image set by the user, and the target image can be set as only the lock screen wallpaper, or can be set as both the lock screen wallpaper and the desktop wallpaper. Therefore, when the lock screen wallpaper is the target image set by the user, the lock screen wallpaper and the desktop wallpaper can be the same or different. The lock screen wallpaper can also be an image corresponding to the theme set by the user. When the setting source of the theme is a preset directory, the lock screen wallpaper and the desktop wallpaper are considered to be the same. When the setting source of the theme is not a preset directory, the lock screen wallpaper and the desktop wallpaper are considered to be different.

[0146] According to the above content, the type of lock screen wallpaper can be a magazine lock screen or a non-magazine lock screen. Since the wallpaper corresponding to the magazine lock screen is constantly changing, the process of determining whether the lock screen wallpaper and the desktop wallpaper are the same can be: first determine whether the magazine lock screen function of the electronic device is turned on, and if the magazine lock screen function is not turned on, continue to determine whether the lock screen wallpaper and the desktop wallpaper are the same.

[0147] In some examples, the Setting database includes a magazine lock screen status bit. The magazine lock screen application updates the magazine lock screen status bit of the Setting database, for example, when the magazine lock screen function is turned on, the magazine lock screen status bit is set to 1, and when the magazine lock screen function is not turned on, the magazine lock screen status bit is set to 0.

[0148] The process of the SystemUI application determining whether the magazine lock screen function of the electronic device is turned on can be: the SystemUI application interacts with the interface of the settings database to obtain the magazine lock screen status bit of the settings database. When the magazine lock screen status bit is 1, the SystemUI application determines that the magazine lock screen function is turned on. When the magazine lock screen status bit is 0, the SystemUI application determines that the magazine lock screen function is not turned on.

[0149] Step 602: When the magazine lock screen function is turned on, the SystemUI application loads the wallpaper to be displayed based on the original size of the wallpaper to be displayed.

[0150] Among them, the wallpaper to be displayed is the lock screen wallpaper to be displayed on the lock screen interface.

[0151] Combined with step 601, it can be seen that when the magazine lock screen function is turned on, the lock screen wallpaper comes from the magazine lock screen application, and the lock screen wallpaper is different from the desktop wallpaper. Therefore, the desktop wallpaper cannot be used to display the lock screen wallpaper. In other words, when the magazine lock screen function is determined to be turned on, the SystemUI application needs to load the wallpaper to be displayed normally according to the original size of the wallpaper to be displayed.

[0152] In some examples, when the magazine lock screen function is turned on, the SystemUI application can connect to a preset resource library. The resource library is used to provide magazine lock screen wallpapers. The resource library can be a server provided by the device manufacturer or a specific folder stored locally.

[0153] SystemUI applications can access the resource library through a network connection or a local file system to obtain a list of images or image directory information in the resource library. When there are multiple images in the resource library, the SystemUI application can select an image from the resource library as a wallpaper according to a preset order or randomly. The preset order can be a time order, a subject classification order, etc.

[0154] In addition, in order to increase the loading speed of pictures, when the SystemUI application is idle or connected to the network, it can perform preloading and caching operations in the background, download wallpapers in advance, and cache the downloaded wallpapers in local storage. In this way, when the wallpaper needs to be loaded, the SystemUI application can read the wallpaper directly from the cache to reduce waiting time. Moreover, when loading wallpapers, the SystemUI application can also adapt and adjust the image according to its own screen size and resolution to ensure that the wallpaper presents the best display effect.

[0155] In some examples, when it is determined that the magazine lock screen function is turned on, the SystemUI application loads the wallpaper to be displayed based on the original size of the wallpaper to be displayed. The process may be: when it is determined that the magazine lock screen function is turned on, the SystemUI sends a wallpaper acquisition request to the magazine lock screen application; the magazine lock screen application receives the wallpaper acquisition request, and in response to the wallpaper acquisition request and the wallpaper display rule, determines the wallpaper to be displayed from the resource library; and sends the wallpaper to be displayed to the SystemUI application; the SystemUI application receives the wallpaper to be displayed for quick display later. Among them, the wallpaper acquisition request is used to request the magazine lock screen application to obtain the wallpaper to be displayed. The wallpaper display rule can be set according to user preferences or according to the display effect, and the present disclosure does not limit this.

[0156] Step 603: When the magazine lock screen function is not enabled, the SystemUI application determines whether the status bit of the settings database is a target identification field.

[0157] The status bit of the settings database is used to identify whether the lock screen wallpaper is the same as the desktop wallpaper. The target identification field is used to indicate whether the lock screen wallpaper is the same as the desktop wallpaper.

[0158] Exemplarily, the status bit of the settings database can be represented by different types of identification fields. For example, when the wallpapers displayed on the lock screen interface and the desktop interface are the same, the identification field corresponding to the status bit can be updated to 1. When the wallpapers displayed on the lock screen interface and the desktop interface are different, the identification field corresponding to the status bit can be updated to 0.

[0159] In combination with step 601, it can be known that when the magazine lock screen function is not turned on, the lock screen wallpaper can be a target image set by the user, or an image corresponding to a theme set by the user. When the lock screen wallpaper is a target image set by the user, the lock screen wallpaper and the desktop wallpaper can be the same or different. When the lock screen wallpaper is an image corresponding to a theme set by the user, and the theme is a theme under a preset directory, the lock screen wallpaper and the desktop wallpaper are the same. In other words, when the magazine lock screen function is not turned on, the lock screen wallpaper and the desktop wallpaper can be the same or different. Therefore, after determining whether the magazine lock screen function is turned on, it is necessary to continue to determine whether the lock screen wallpaper and the desktop wallpaper are the same.

[0160] Generally, when a user needs to set a wallpaper, the user can set the wallpaper in a variety of ways. After the wallpaper is set, the judgment result of whether the lock screen wallpaper and the desktop wallpaper are the same may change. Whenever the judgment result of whether the lock screen wallpaper and the desktop wallpaper are the same is needed, it is usually necessary to re-judge once, which will result in a lot of code duplication and low processing efficiency, and take a long time.

[0161] Therefore, in order to better meet the user's wallpaper setting needs, after the user completes the wallpaper setting, it can be determined in real time whether the lock screen wallpaper and the desktop wallpaper are the same, and the judgment result can be saved in the form of a status bit of the settings database. When the judgment result of whether the lock screen wallpaper and the desktop wallpaper are the same is needed, the status bit of the settings database can be directly accessed. In this way, not only can the amount of code be greatly reduced, but also the code readability can be improved, and the memory usage of the electronic device can be optimized. Therefore, when it is determined that the magazine lock screen function is not turned on, the present disclosure can directly determine how to load the wallpaper through the status bit of the settings database. Of course, other methods can also be used to save the judgment result of whether the lock screen wallpaper and the desktop wallpaper are the same, and the present disclosure does not limit this.

[0162] As can be seen from the above, users can set wallpapers in a variety of ways. When the user completes the wallpaper setting, the status bit of the settings database is updated. The update of the status bit of the settings database involves the following scenarios.

[0163] Scenario 1: Setting the lock screen wallpaper and desktop wallpaper by setting the theme. After the lock screen wallpaper and desktop wallpaper are set, the status bit of the settings database is updated. For example, the theme setting can be set automatically by the electronic device or by the user. The theme set automatically by the electronic device is the preset theme, and the theme set by the user can come from a variety of different ways. For details, please refer to Figure 7 and Figure 8 The embodiment shown.

[0164] Scenario 2: Use images in the gallery application to set the lock screen wallpaper and desktop wallpaper. After the lock screen wallpaper and desktop wallpaper are set, update the status bit of the settings database. For details, please refer to Fig. 9 The embodiment shown.

[0165] Combine the following Figure 7 and Figure 8 The following is an exemplary description of how to set the lock screen wallpaper and desktop wallpaper by setting the theme. After the lock screen wallpaper and desktop wallpaper are set, the process of updating the status bit of the settings database is completed.

[0166] Step 701: When the electronic device is started for the first time, the theme service determines whether to apply the target theme.

[0167] The target theme is a theme set by the user other than the preset theme, and the preset theme is a theme set when the electronic device leaves the factory.

[0168] When the electronic device is started for the first time, a lock screen wallpaper is usually obtained from a preset path and displayed to the user. The lock screen wallpaper may be derived from a preset theme.

[0169] Exemplarily, the electronic device receives a startup operation from the user, and in response to the startup operation, displays a lock screen interface. In response to an unlock operation triggered by the user on the lock screen interface, the electronic device displays a desktop interface. The lock screen wallpaper displayed on the lock screen interface is the same as the desktop wallpaper displayed on the desktop interface, and the wallpaper is the wallpaper corresponding to the preset theme. The startup operation is any one of a single-click operation, a double-click operation, a knuckle tap, and a multi-finger selection operation.

[0170] In some examples, the process of determining whether to apply the target theme may be: the theme application obtains a theme flag, and determines whether the electronic device applies the target theme according to the theme flag, wherein the theme flag is determined according to the name corresponding to the theme currently applied by the electronic device and the name corresponding to the preset theme.

[0171] Exemplarily, the process of determining the theme flag based on the name corresponding to the theme currently applied by the electronic device and the name corresponding to the preset theme can be: obtaining the name corresponding to the preset theme from a preset address; comparing the name corresponding to the current theme with the name corresponding to the preset theme, and updating the theme flag based on whether the name corresponding to the current theme and the name corresponding to the preset theme are the same.

[0172] Step 702: When the target theme is not applied to the electronic device, the theme service updates the status bit of the settings database.

[0173] When an electronic device is started for the first time, the electronic device usually applies a preset theme to display a lock screen wallpaper and a desktop wallpaper for the user. The theme service can determine whether the electronic device applies the target theme. After determining whether the electronic device applies the target theme, the status bit of the settings database can be updated based on the application of the target theme.

[0174] Exemplarily, when it is determined that the electronic device does not apply the target theme, it means that the electronic device applies a preset theme, that is, the current lock screen wallpaper and desktop wallpaper of the electronic device are the same, then the status bit of the settings database is updated to 1.

[0175] In some examples, when the electronic device does not apply the target theme, the process of the theme service updating the status bit of the settings database can be: when it is determined that the electronic device does not apply the target theme, the theme service interacts with the interface of the settings database to update the status bit of the settings database.

[0176] It can be understood that step 701 and step 801 are two implementation methods of setting the theme, which exist in parallel and have no definite order. Step 701 can be executed first and then step 801, or only step 701 can be executed, or only step 801 can be executed. The present disclosure does not limit this.

[0177] Step 801: The electronic device receives a user's operation of setting a theme to be applied.

[0178] The theme setting operation is used to trigger the electronic device to set the theme to be applied as the theme of the electronic device. Exemplarily, the theme setting operation can be any one of a single-click operation, a double-click operation, a knuckle tapping operation, and a multi-finger selection operation.

[0179] In some instances, the electronic device may include a setting application, and the user may select a theme to be applied through the setting application, and set the selected theme to be applied as the theme of the electronic device. The electronic device may also include a theme application, and the user may select a theme to be applied through the theme application, and set the selected theme to be applied as the theme of the electronic device. Of course, the user may also set the theme in other ways, and the present disclosure does not limit this.

[0180] The following is an example of a user setting a theme of an electronic device through a setting application.

[0181] When a user needs to set a theme, the user can open a setting application on the electronic device, that is, the electronic device can receive an opening operation of the setting application by the user, such as the electronic device can receive a click operation of the user on an icon corresponding to the setting application. In response, the electronic device can display an interface corresponding to the setting application. The interface corresponding to the setting application may include multiple function items, such as a theme function item, a wallpaper function item, etc. The electronic device can receive a click operation of the user on the theme function item. In response, the electronic device can display a theme interface. The theme interface may include at least one theme.

[0182] The user can browse multiple themes in the theme interface by clicking or sliding. When the theme to be applied meets the personalized needs of the user, the electronic device can receive the user's click operation on the theme to be applied. In response, the electronic device can display an introduction interface of the theme to be applied, and the introduction interface of the theme to be applied can include an application setting item. The electronic device can receive the user's click operation on the application setting item. In response, the electronic device sets the theme to be applied as the theme of the electronic device.

[0183] Step 802: In response to the theme setting operation, the theme service determines whether the theme to be applied is from a preset directory.

[0184] The electronic device includes a preset directory, and a plurality of topics can be stored in the preset directory.

[0185] Exemplarily, multiple themes can be displayed to users by setting the theme function item of the application; or by using the theme application. Of course, multiple themes can also be displayed to users through other ways, which is not limited by the present disclosure.

[0186] After the electronic device detects that the user performs a theme setting operation on the theme to be applied, in response, the theme service of the electronic device sets the theme to be applied as the current theme of the electronic device and determines whether the theme to be applied is a theme in a preset directory.

[0187] For example, multiple themes stored in the preset directory can be displayed to the user through the theme function item of the setting application. When the user needs to set a theme, he can select a theme to be applied from the multiple themes displayed in the theme function item of the setting application. In response, the electronic device sets the theme to be applied as the current theme of the electronic device and determines whether the theme to be applied is a theme in the preset directory.

[0188] In some examples, when a user performs a theme setting operation on the touch screen of an electronic device, a user interface event corresponding to the theme setting operation is triggered. Then, the operating system of the electronic device (e.g., Android TM) will capture the user interface event corresponding to the theme setting operation, and parse the user interface event corresponding to the theme setting operation to represent the theme setting operation. Then, the operating system uses the identified theme setting operation as input, calls the application programming interface (API) corresponding to the theme setting operation, and passes the theme setting operation to the theme service. After receiving the theme setting operation through the API, the theme service will determine whether the theme to be applied comes from the preset directory based on the theme setting operation.

[0189] The process of the theme service determining whether the theme to be applied is a theme under the preset directory may be: the theme service receives the theme to be applied sent by the electronic device, checks the package name (callingPackage) of the sender corresponding to the theme to be applied, and determines the setting source of the theme to be applied through the package name of the sender corresponding to the theme to be applied. For example, the package name of the sender corresponding to the theme to be applied may be a setting application, or a third-party application, such as a theme application, and the present disclosure does not limit this.

[0190] Step 803: After determining that the theme to be applied is from the preset directory, the theme service updates the status bit of the settings database.

[0191] When the user sets the theme, the electronic device can display the lock screen wallpaper and desktop wallpaper for the user based on the theme to be applied selected by the user. After the user selects the theme to be applied, the status bit of the settings database can be updated based on whether the theme to be applied comes from the preset directory.

[0192] Exemplarily, when it is determined that the theme to be applied is from a preset directory, it is considered that the lock screen wallpaper and desktop wallpaper of the electronic device are the same, and the status bit of the settings database is updated to 1. When the theme to be applied is not from a preset directory, the lock screen wallpaper and desktop wallpaper corresponding to the theme to be applied may be different, and the status bit of the settings database is updated to 0. In addition, when it is confirmed that the electronic device does not apply the theme, the status bit of the settings database defaults to 0.

[0193] In some examples, when it is determined that the target theme is a theme under a preset directory, the process of updating the status bit of the settings database may be: when it is determined that the source of the theme to be applied is a preset directory, the theme service interacts with the interface of the settings database to update the status bit of the settings database.

[0194] Combine the following Fig. 9The following is an exemplary description of how to set the lock screen wallpaper and desktop wallpaper using images in the gallery application. After the lock screen wallpaper and desktop wallpaper are set, the process of updating the status bit of the settings database is described.

[0195] Step 901: The electronic device receives a user's operation of setting wallpaper for a target image.

[0196] The wallpaper setting operation is used to trigger the electronic device to set the target image as the wallpaper of the electronic device. Exemplarily, the wallpaper setting operation can be any one of a single-click operation, a double-click operation, a knuckle tap, and a multi-finger selection operation.

[0197] In some instances, the electronic device may include a gallery application, and the user may select a target image through the gallery application and set the selected target image as a wallpaper. The electronic device may also include a wallpaper application, and the user may also select a target image through the wallpaper application and set the selected target image as a wallpaper. Alternatively, the electronic device may also include a theme application, and the user may also select a theme through the theme application and generate a wallpaper using the selected theme. Alternatively, the electronic device may also include a settings application, and the user may also select a target image through the wallpaper function item of the settings application and use the selected target image as a wallpaper. Of course, the user may also set the wallpaper in other ways, and the present disclosure does not limit this.

[0198] The following is an example of a user setting a wallpaper through a gallery application.

[0199] When the user needs to set a wallpaper, the user can open the gallery application on the electronic device, that is, the electronic device can receive the user's opening operation of the gallery application, such as the electronic device can receive the user's click operation on the icon corresponding to the gallery application. In response, the electronic device can display the interface corresponding to the gallery application. The interface corresponding to the gallery application may include at least one image.

[0200] The user can browse the images in the gallery application by clicking or sliding. When the target image meets the user's personalized needs, the electronic device can receive the user's wallpaper setting operation for the target image. In response, the electronic device can set the target image as wallpaper. It is understandable that the target image can be set as the lock screen wallpaper and / or desktop wallpaper through the wallpaper setting operation.

[0201] Step 902: In response to the user's wallpaper setting operation, the wallpaper service determines the setting source of the target image.

[0202] After receiving a wallpaper setting operation for a target image from a user, the electronic device may first determine a setting source of the target wallpaper in response to the wallpaper setting operation.

[0203] In some examples, in response to a user's wallpaper setting operation, the process of the electronic device determining the setting source of the target image may include: in response to the user's wallpaper setting operation on the target image, the electronic device generates a wallpaper setting request, and sends the wallpaper setting request to the wallpaper service. The wallpaper setting request is received, and in response to the wallpaper setting request, the wallpaper service determines the setting source of the target image. The wallpaper setting request is used to request that the target image be set as wallpaper. The wallpaper setting request includes the target image.

[0204] Exemplarily, in response to a user's wallpaper setting operation on a target image, the process of an electronic device generating a wallpaper setting request may include: first, when the user performs a wallpaper setting operation on the touch screen of the electronic device, a user interface event corresponding to the wallpaper setting operation is triggered. Then, the operating system of the electronic device (e.g., Android) TM ) will capture the user interface event corresponding to the wallpaper setting operation, and parse the user interface event corresponding to the wallpaper setting operation to represent the wallpaper setting operation. Then, the operating system uses the identified wallpaper setting operation as input, calls the application programming interface (API) corresponding to the wallpaper setting operation, and passes the wallpaper setting operation to the electronic device. After the electronic device receives the wallpaper setting operation through the API, it will generate a wallpaper setting request according to the wallpaper setting operation.

[0205] The process of the wallpaper service determining the setting source of the target image may be: the wallpaper service receives the target image sent by the electronic device, checks the package name of the sender corresponding to the target image, and determines the setting source of the target wallpaper through the package name of the sender corresponding to the target image. For example, the package name of the sender corresponding to the target image may be a gallery application, a theme application, or a setting application, and the present disclosure does not limit this.

[0206] In addition, in response to the wallpaper setting request, the wallpaper service may also process the target image to obtain a processed image. Exemplarily, the process in which the wallpaper service processes the target image to obtain the processed image may be: performing operations such as cropping, scaling, and adjusting the color of the target image to obtain the processed image. The processed image may adapt to the screen size and resolution of different electronic devices.

[0207] Step 903: When the setting source of the target image is a non-theme application and a non-setting application, the wallpaper service loads the wallpaper based on the target image.

[0208] In response to the user's wallpaper setting operation, the wallpaper service can determine the setting source of the target image. When it is determined that the setting source of the target image is a non-theme application and a non-setting application, the wallpaper service loads the wallpaper based on the target image.

[0209] In some scenarios, the wallpaper service is based on a target image, and loading wallpaper specifically means that the wallpaper service loads the lock screen wallpaper and / or desktop wallpaper based on the target image. Based on the target image, the process of loading the lock screen wallpaper and / or desktop wallpaper can be: the wallpaper service starts the corresponding loading mechanism, obtains the target image from a preset location (i.e., a preset location or a resource library), and sets the target image as the lock screen wallpaper and / or desktop wallpaper.

[0210] Step 904: The wallpaper service determines whether the lock screen wallpaper and the desktop wallpaper are the same.

[0211] After the wallpaper service completes loading the lock screen wallpaper and / or desktop wallpaper, the wallpaper service can continue to determine whether the lock screen wallpaper and the desktop wallpaper are the same, and update the status bit of the settings database according to whether the lock screen wallpaper and the desktop wallpaper are the same.

[0212] In some examples, the process of the wallpaper service determining whether the lock screen wallpaper and the desktop wallpaper are the same may be: the wallpaper service uses an image comparison algorithm to compare the lock screen wallpaper and the desktop wallpaper to obtain a comparison result. The image comparison algorithm may include a pixel-level comparison algorithm, a feature extraction and matching algorithm, etc., which is not limited in the present disclosure.

[0213] The process by which the wallpaper service determines whether the lock screen wallpaper and the desktop wallpaper are the same may also be: the wallpaper service queries the storage paths of the lock screen wallpaper and the desktop wallpaper, and determines whether the lock screen wallpaper and the desktop wallpaper are the same according to the storage paths of the lock screen wallpaper and the desktop wallpaper.

[0214] Alternatively, the electronic device may assign a unique identifier to each wallpaper. The process by which the wallpaper service determines whether the lock screen wallpaper and the desktop wallpaper are the same is as follows: the wallpaper service checks the identifiers of the lock screen wallpaper and the desktop wallpaper, and determines whether the lock screen wallpaper and the desktop wallpaper are the same based on whether the identifiers of the lock screen wallpaper and the desktop wallpaper are the same. Of course, whether the lock screen wallpaper and the desktop wallpaper are the same may also be determined in other ways, and the present disclosure does not limit this.

[0215] Step 905: According to whether the lock screen wallpaper and the desktop wallpaper are the same, the wallpaper service updates the status bit of the settings database.

[0216] Combination Figure 7-Figure 9 It can be seen that whether the lock screen wallpaper and the desktop wallpaper are the same requires a series of steps to determine. Therefore, when the lock screen wallpaper and / or the desktop wallpaper changes, the present disclosure can adopt Figure 7-Figure 9The solution shown determines whether the lock screen wallpaper and the desktop wallpaper are consistent, and stores the determination result in the form of a status bit of the settings database. Later, when loading the wallpaper, how to load the wallpaper can be directly determined based on the status bit of the settings database. This shortens the processing time and improves the processing efficiency.

[0217] In some examples, depending on whether the lock screen wallpaper and the desktop wallpaper are the same, the process of the wallpaper service updating the status bit of the settings database can be: after determining whether the lock screen wallpaper and the desktop wallpaper are the same, the wallpaper service interacts with the interface of the settings database to update the status bit of the settings database.

[0218] Exemplarily, when the lock screen wallpaper and the desktop wallpaper are the same, the wallpaper service updates the status bit of the settings database to 1. When the lock screen wallpaper and the desktop wallpaper are different, the status bit of the settings database is updated to 0. Of course, the status bit of the settings database can also be described by other types of data, as long as it can indicate whether the lock screen wallpaper and the desktop wallpaper are the same, and the present disclosure does not limit this.

[0219] In addition, the above Figure 7-Figure 9 The exemplary description of the status bit update process of the settings database is for more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not constitute a limitation on the technical solution provided by the embodiment of the present disclosure. A person skilled in the art can appreciate that with the development of electronic devices and the emergence of new wallpaper setting scenarios, the technical solution provided by the embodiment of the present disclosure is also applicable to similar technical problems.

[0220] In using the above Figure 7-Figure 9 After the exemplary method updates the status bit of the settings database, the following steps may be continued to reduce the memory of SystemUI.

[0221] It can be understood that step 602 and step 603 are parallel solutions, and when step 602 is executed, step 603 is not executed. When step 603 is executed, step 602 is not executed.

[0222] Step 604: When it is determined that the status bit of the settings database is the target identification field, the SystemUI application performs downsampling processing on the wallpaper to be displayed to obtain a processed wallpaper to be displayed.

[0223] When the status bit of the settings database is the target identification field, it means that the lock screen wallpaper is the same as the desktop wallpaper. Combined with step 601, it can be seen that when the lock screen wallpaper is the same as the desktop wallpaper, the desktop wallpaper can be used to display the lock screen wallpaper. Therefore, when loading the wallpaper to be displayed, the wallpaper to be displayed can be processed, and then the processed wallpaper to be displayed can be loaded. For example, the lock screen wallpaper is the first image (i.e., the wallpaper to be displayed), and the desktop wallpaper is the first image. At this time, the lock screen wallpaper is the same as the desktop wallpaper.

[0224] The data size of the wallpaper to be displayed is a first value, and the data size of the wallpaper to be displayed after processing is a second value, which is smaller than the first value.

[0225] For example, processing the wallpaper to be displayed may be downsampling the wallpaper to be displayed, so that the memory usage of the wallpaper to be displayed can be reduced, thereby reducing the memory usage of the SystemUI.

[0226] Exemplarily, the downsampling processing of the wallpaper to be displayed may be downsampling the wallpaper to be displayed according to a downsampling ratio.

[0227] For example, if the width of the wallpaper to be displayed is 1920 pixels, the height is 1080 pixels, and the downsampling ratio is 1 / 16, then the width of the processed lock screen wallpaper is 1920*(1 / 16)=120 pixels, and the height is 1080*(1 / 16)=67.5 pixels. It can be seen that the memory usage of the wallpaper to be displayed can be greatly reduced through downsampling.

[0228] Step 605: When it is determined that the status bit of the settings database is not the target identification field, the SystemUI application loads the wallpaper to be displayed according to a preset size.

[0229] The preset size is the original size of the wallpaper to be displayed.

[0230] When the status bit of the settings database is not the target identification field, it means that the lock screen wallpaper and the desktop wallpaper are different. Combined with step 601, it can be seen that when the lock screen wallpaper and the desktop wallpaper are different, the lock screen wallpaper and the desktop wallpaper cannot replace each other, and it is necessary to load according to the preset size of the wallpaper to be displayed, so as to provide users with a better lock screen display effect. For example, the lock screen wallpaper is the first image and the desktop wallpaper is the second image. At this time, the lock screen wallpaper and the desktop wallpaper are different.

[0231] It can be understood that step 604 and step 605 are parallel solutions, when step 604 is executed, step 605 is not executed. When step 605 is executed, step 604 is not executed.

[0232] Step 606: Set the lock screen wallpaper.

[0233] Based on the above steps, it can be seen that when the lock screen wallpaper and the desktop wallpaper are the same, the processed wallpaper to be displayed can be loaded and set as the lock screen wallpaper. When the lock screen wallpaper and the desktop wallpaper are different, the wallpaper to be displayed needs to be loaded according to the preset size and set as the lock screen wallpaper. The data size of the processed wallpaper to be displayed (i.e., the second value) is smaller than the data size of the wallpaper to be displayed (i.e., the first value).

[0234] In some examples, the process of setting the lock screen wallpaper can be: after the SystemUI application loads the wallpaper to be displayed / or the processed wallpaper to be displayed, the SystemUI application can send the wallpaper to be displayed / or the processed wallpaper to be displayed to the lock screen wallpaper layer, and the lock screen wallpaper layer obtains the lock screen wallpaper based on the wallpaper to be displayed / or the processed wallpaper to be displayed.

[0235] Step 607: The electronic device detects a screen-off event.

[0236] Among them, the screen off event refers to the event that the display screen of the electronic device is automatically turned off or the user manually turns off the display screen.

[0237] In some exemplary embodiments, the electronic device receives a screen-off operation from a user, and in response to the screen-off operation, the electronic device executes a screen-off process. The screen-off operation is used to trigger the electronic device to turn off the screen. Exemplarily, the screen-off operation is an operation in which the user presses a power button.

[0238] When the user does not need to use the electronic device, the user can press the power button on the side of the electronic device to put the electronic device into the screen-off state. Alternatively, the electronic device supports setting specific gestures to turn off the screen. For example, perform a specific sliding operation on the screen or double-click the screen to put the electronic device into the screen-off state. Alternatively, when the electronic device is in a specific scenario, such as reading mode or power saving mode. When a period of time passes, the electronic device will automatically enter the screen-off state after not receiving any user operation.

[0239] It should be noted that the operations performed by the user on the electronic device may be all possible operations, and the user's operations may include but are not limited to single-clicking, double-clicking, three-finger tapping, long pressing the power button, launching an application, and at least one other operation. The present disclosure does not limit parameters such as the type of user operations and the number of operations.

[0240] In some scenarios, when the backlight of an electronic device is turned off or reduced to a very low level, it usually means that the user has stopped interacting with the electronic device. In this case, the electronic device can recognize the screen-off event and switch to a low-power state to save power and extend battery life. Among them, backlight refers to the external light source that provides display for the display, also known as backlight. The backlight of an electronic device can be understood as the electronic device lighting up the display.

[0241] like Fig.10 As shown, after identifying the above-mentioned backlight event, the power manager, the phone window manager, the window management service and the user interface application (ie, the SystemUI application) will perform a series of operations to put the electronic device into a low power consumption state.

[0242] Exemplarily, when the above-mentioned backlight event is recognized, the power manager can notify the electronic device that the wake-up state is about to change through the onWakefulnessChangeStarted method. In addition, the power manager can issue a low-power event notification in the form of a broadcast. Among them, the low-power event notification is used to notify the electronic device that it is about to enter a low-power state.

[0243] When the phone window manager receives the low power event notification, it responds to the low power event notification and controls the phone-related functions to be properly processed in the sleep state. For example, when an electronic device receives an incoming call, the phone window manager can properly wake up the device and display the incoming call interface, while processing the corresponding user operations.

[0244] When the window management service receives the low power event notification, in response to the low power event notification, the window management service sends a sleep notification to the SystemUI application. The SystemUI application receives the sleep notification and controls the update and display of the lock screen interface in response to the sleep notification.

[0245] The SystemUI application can include a lock screen service (KeyguardService). The lock screen service is responsible for displaying the lock screen interface and coordinating the update of the lock screen interface through the lock screen view mediator (KeyguardViewMediator (a mediator class used to handle the display logic of the lock screen interface)).

[0246] In addition, when the electronic device enters the sleep state, the lock screen view intermediary can call the dynamic effect controller (DynEffectController) to further process the lock screen interface. For example, the lock screen view intermediary can call the dynamic effect controller to implement animation effects. For example, fade in and fade out, sliding effects, etc. The lock screen view intermediary can also call the lock screen update monitor (KeyguardUpdateMonitor) to refresh the changes in the lock screen interface, for example, setting the fingerprint icon to invisible, removing the white screen fill light, refreshing the weather location and dual clock display, etc. It can be understood that the above refresh method is an example description and does not constitute a limitation of the embodiments of the present disclosure.

[0247] Step 608: In response to the screen off event, the SystemUI application determines again whether the magazine lock screen function is turned on.

[0248] Before detecting the screen-off operation, the user may have performed some operations on the electronic device, such as setting the lock screen wallpaper display of the lock screen interface to a magazine lock screen display, updating the lock screen wallpaper, and so on.

[0249] Combination Figure 7-Figure 9 It can be seen from the content that when the user sets the lock screen wallpaper or desktop wallpaper, the status bit of the settings database will also be updated to indicate whether the lock screen wallpaper and the desktop wallpaper are the same. When the magazine lock screen function is turned on, the lock screen wallpaper and the desktop wallpaper will be different. However, when the magazine lock screen function is turned on, the status bit of the setting database will not be updated, and the present disclosure can continue to process the lock screen wallpaper when the lock screen wallpaper and the desktop wallpaper are the same to reduce the SystemUI memory. Therefore, when the screen off operation is detected, it is necessary to determine again whether the magazine lock screen function is turned on.

[0250] Step 609: When it is determined that the magazine lock screen function is turned on, the SystemUI application sets the display state of the lock screen wallpaper layer of the lock screen interface to the second display state.

[0251] The second display state is opaque display.

[0252] Referring to step 601, it can be seen that when the magazine lock screen function is turned on, the lock screen wallpaper is different from the desktop wallpaper. When the lock screen wallpaper is different from the desktop wallpaper, since the lock screen wallpaper and the desktop wallpaper cannot replace each other, the lock screen wallpaper needs to be loaded normally and displayed normally (i.e., opaque display). Therefore, when the magazine lock screen function is turned on, the magazine lock screen application needs to send the latest wallpaper to be displayed to the SystemUI application again, so that the latest lock screen wallpaper can be displayed when the lock screen interface is displayed.

[0253] Exemplarily, when the magazine lock screen function is turned on, the latest wallpaper to be displayed can be obtained through the resource library corresponding to the magazine lock screen function, and the latest wallpaper to be displayed (ie, the third image) can be sent to the SystemUI application. After receiving the latest wallpaper to be displayed, the SystemUI application sends the latest wallpaper to be displayed to the lock screen wallpaper layer. In addition, the SystemUI application also needs to set the display state of the lock screen wallpaper layer of the lock screen interface to the second display state (ie, opaque display), and the display state of the desktop wallpaper layer is invisible.

[0254] After receiving the user operation, the SystemUI application can obtain the lock screen wallpaper layer and the desktop wallpaper layer in response to the user operation, and synthesize the lock screen wallpaper layer and the desktop wallpaper layer through surfaceflinger to display the lock screen interface (i.e., the fourth lock screen interface), and the lock screen wallpaper layer in the fourth lock screen interface displays the third image. When the fourth lock screen interface is displayed, the display state of the lock screen wallpaper layer is the second display state (i.e., opaque display), and the display state of the desktop wallpaper layer is invisible.

[0255] Step 610: When it is determined that the magazine lock screen function is not enabled, the SystemUI application determines again whether the status bit of the settings database is a target identification field.

[0256] Combined with step 603, it can be seen that when the magazine lock screen function is not turned on, the lock screen wallpaper and the desktop wallpaper may be the same or different. Combined with step 607, it can be seen that before the screen off operation is detected, the user may have set the wallpaper. When the user changes the wallpaper or theme, the status bit of the settings database will be updated. Therefore, when it is determined that the magazine lock screen function is not turned on, the SystemUI application needs to determine whether the lock screen wallpaper and the desktop wallpaper are the same through the status bit of the settings database again.

[0257] It can be understood that step 609 and step 610 are parallel solutions, and when step 609 is executed, step 610 is not executed. When step 610 is executed, step 609 is not executed.

[0258] Step 611: When it is determined that the status bit of the settings database is the target identification field, the SystemUI application sets the display status of the lock screen wallpaper layer to the first display status and the display status of the desktop wallpaper layer to the target display status.

[0259] The first display state is transparent display, and the target display state is visible display.

[0260] When the status bit of the settings database is the target identification field, it indicates that the lock screen wallpaper is the same as the desktop wallpaper. In combination with step 601, it can be known that when the lock screen wallpaper is the same as the desktop wallpaper, the desktop wallpaper can be used to display the lock screen wallpaper.

[0261] Exemplarily, the process of displaying the lock screen wallpaper using the desktop wallpaper can be: setting the display state of the lock screen wallpaper displayed by the lock screen wallpaper layer (i.e., the processed first image) to the first display state (i.e., transparent display), and setting the display state of the desktop wallpaper displayed by the desktop wallpaper layer (i.e., the first image) to the target display state (i.e., visible display).

[0262] The display state of the lock screen wallpaper displayed by the lock screen wallpaper layer is set to the first display state by the SystemUI application through the BackDropView.setVisibility(INVISIBAL) method, and the display state of the desktop wallpaper displayed by the desktop wallpaper layer is set to the target display state by the SystemUI application through the ImageWallpaperView.setVisibility(INVISIBAL) method. Among them, INVISIBLE is the passed parameter.

[0263] By setting the display state of the lock screen wallpaper to transparent display and the visible state of the desktop wallpaper to visible, the desktop wallpaper can be displayed transparently on the lock screen interface. Since the lock screen wallpaper is a processed wallpaper to be displayed, its memory usage will be greatly reduced. In addition, the lock screen wallpaper is displayed transparently, and the user cannot view the lock screen wallpaper, but can only see the desktop wallpaper. This setting will not cause any adverse effects on the user experience.

[0264] Fig.10 The detailed process of setting the lock screen when the electronic device detects a screen-off event is described by way of example.

[0265] refer to Fig.10 And step 607, after the electronic device enters the low power consumption state, the power manager can call the updatePowerState method to update the power state of the electronic device, for example, update the power state of the electronic device from the awake state to the sleep state, and send a sleep event notification in the form of a broadcast.

[0266] When the window management service receives the sleep event notification, it calls the screenTurnedOff method in response to the sleep event notification to turn off the display screen and sends a display screen off notification to the SystemUI application. The SystemUI application receives the display screen off notification and calls the onScreenTurnedOff method in response to the display screen off notification to process the display screen off logic.

[0267] The SystemUI application includes a lock screen view mediator, a lock screen update monitor, a background view (BackDropView), a controller component (ScreenBrightenViewController), a screen brightness view (ScreenBrightenView), and a magazine-style lock screen view component (MagazineView).

[0268] The lock screen view agent is used to coordinate the lock screen view behavior. After the onScreenTurnedOff() method is executed, the lock screen view agent calls notifyScreenTurnedOff() to notify other system components that the screen has been turned off.

[0269] The lock screen update monitor is used to monitor the update of the lock screen status and respond to the screen turn-off event. The lock screen update monitor can call the dispatchScreenTurnedoff method to distribute the screen turn-off event so that other listeners or components can respond to the screen turn-off event; it can also call handleScreenTurnedOff() to handle the specific logic of screen turn-off.

[0270] The background view is used to display the lock screen background. The background view can call the Lockicon.setScreenOn(false) method and pass false as a parameter to set the state of the lock screen icon. The background view can also determine whether to set the display state of the lock screen wallpaper layer of the lock screen interface to the first display state based on the solution of the present disclosure.

[0271] The controller component is used to manage screen brightness or animation effects related to screen lighting. The controller component can call stopAnimation(INVISIBLE) to stop the current screen lighting animation and set the animation target to invisible.

[0272] The screen brightness view is used to handle views related to screen brightness adjustment or screen lighting effects. The screen brightness view can call the stopAnimation() and setVisibility(INVISIBLE) methods and pass INVISIBLE as a parameter to stop the animation effect and set the view's visibility to invisible again.

[0273] The magazine-style lock screen view component can call the setVisibility(INVISIBLE) and updateMaskAlpha(0f) methods to set the visibility of the view to invisible again and update the transparency of the mask layer to 0, making it completely transparent.

[0274] When the window management service detects that the electronic device is about to complete the sleep process (i.e. finishedGoingToSleep), the window management service sends a sleep completion notification to the SystemUI application. The SystemUI application receives the sleep completion notification and, in response to the sleep completion notification, calls the onFinishedGoingToSleep() method to trigger the subsequent lock screen logic.

[0275] In the subsequent lock screen logic, the lock screen view intermediary is also used to determine whether to set the display of the desktop wallpaper layer of the lock screen interface to the target display state. The lock screen view intermediary can also call the dokeyguardLocked() method to set the lock screen state or update the lock screen interface; call the showLocked() method to display the lock screen interface to ensure that the user sees the lock screen when the device wakes up. Call the handleShow() method to handle the lock screen interface display logic to display the update time, date, notification and other elements in the lock screen interface.

[0276] Step 612: When it is determined that the status bit of the settings database is not a target identification field, the SystemUI application sets the display status of the lock screen wallpaper layer of the lock screen interface to the second display status.

[0277] The second display state is opaque display.

[0278] Referring to the above, it can be seen that when the status bit of the settings database is not the target identification field, it means that the lock screen wallpaper and the desktop wallpaper are different. When the lock screen wallpaper and the desktop wallpaper are different, since the lock screen wallpaper and the desktop wallpaper cannot replace each other, the lock screen wallpaper needs to be loaded and displayed normally. Since the SystemUI application has set the lock screen wallpaper in advance, when it is determined that the status bit of the settings database is not the target identification field, the display state of the lock screen wallpaper layer of the lock screen interface is set to the second display state (ie, opaque display), and the display state of the desktop wallpaper layer of the lock screen interface is invisible display.

[0279] It can be understood that step 611 and step 612 are parallel solutions, and when step 611 is executed, step 612 is not executed. When step 612 is executed, step 611 is not executed.

[0280] Step 613: When the electronic device is in the second state, a lock screen interface is displayed.

[0281] Among them, the second state is the state in which the electronic device displays the lock screen interface.

[0282] In some scenarios, in response to a user operation, the electronic device is in the second state. When the electronic device is in the second state, a lock screen interface is displayed. The user operation may be an operation of the user pressing a power button or an operation of the user lifting the display screen of the electronic device, which is not limited in the present disclosure.

[0283] For example, the display state of the lock screen wallpaper layer in the lock screen interface is the first display state (ie, transparent display), and the display state of the desktop wallpaper layer is the target display state (ie, visible display).

[0284] For another example, the display state of the lock screen wallpaper layer in the lock screen interface is the second display state (ie, opaque display), and the display state of the desktop wallpaper layer is invisible display.

[0285] In some examples, when the electronic device is in the second state, the process of displaying the lock screen interface may be: when the electronic device is in the second state, the SystemUI application sends an interface synthesis request to the surfaceflinger; the interface synthesis request is received, and in response to the interface synthesis request, the surfaceflinger synthesizes the lock screen wallpaper layer and the desktop wallpaper layer to generate the lock screen interface. Among them, the interface synthesis request is used to request the surfaceflinger to synthesize the lock screen wallpaper layer and the desktop wallpaper layer to generate the lock screen interface. The interface synthesis request includes the wallpaper to be displayed.

[0286] In conjunction with step 611, when it is determined that the status bit of the settings database is the target identification field, the SystemUI application sets the display state of the lock screen wallpaper layer to the first display state, and the display state of the desktop wallpaper layer to the target display state. In other words, when the lock screen wallpaper and the desktop wallpaper are the same, the SystemUI application can use surfaceflinger to generate a lock screen interface (i.e., a second lock screen interface), and the display state of the lock screen wallpaper layer in the second lock screen interface is the first display state (i.e., transparent display). The display state of the desktop wallpaper layer in the second lock screen interface is the target display state (i.e., visible display). Among them, the data size of the lock screen wallpaper (i.e., the first image) displayed by the lock screen wallpaper layer is the second value. In this way, when the electronic device displays the lock screen interface, the lock screen interface can be transparent to the desktop wallpaper, so as not to affect the user experience.

[0287] In conjunction with step 612, when it is determined that the status bit of the settings database is not the target identification field, the SystemUI application sets the display state of the lock screen wallpaper layer to the second display state. That is to say, when the lock screen wallpaper and the desktop wallpaper are different, the SystemUI application can use surfaceflinger to generate a lock screen interface (i.e., the first lock screen interface), and the display state of the lock screen wallpaper layer in the first lock screen interface is the second display state (i.e., opaque display). The display state of the desktop wallpaper layer in the first lock screen interface is not visible. Among them, the data size of the lock screen wallpaper (i.e., the first image) displayed by the lock screen wallpaper layer is a first value. Among them, the first value is greater than the second value.

[0288] In some examples, when the electronic device is in the third state, a lock screen interface (ie, a third lock screen interface) is displayed.

[0289] Among them, the third state can be any state of pressing the power button to trigger the electronic device to light up the screen and unlock, unlock failure, multiple unlock failures, and power on the electronic device when the screen is off, and entering the lock screen password.

[0290] In some scenarios, in response to a user unlocking operation, the electronic device is in the third state. When the electronic device is in the second state, a lock screen interface is displayed.

[0291] Exemplarily, when it is determined that the status bit of the settings database is the target identification field, when the electronic device is in the third state, the process of displaying the lock screen interface (i.e., the third lock screen interface) can be: when the electronic device is in the third state, the SystemUI application sends an interface synthesis request to the surfaceflinger; receives the interface synthesis request, and in response to the interface synthesis request, the surfaceflinger synthesizes the lock screen wallpaper layer and the desktop wallpaper layer to generate the third lock screen interface. Among them, the interface synthesis request is used to request the surfaceflinger to synthesize the lock screen wallpaper layer and the desktop wallpaper layer to generate the third lock screen interface.

[0292] In addition, when the electronic device is in the third state, the SystemUI application sets the display state of the lock screen wallpaper layer to the second display state (i.e., opaque display), and the display state of the desktop wallpaper layer to invisible. The data size of the lock screen wallpaper (i.e., the first image) displayed by the lock screen wallpaper layer in the third lock screen interface is the second value.

[0293] Generally, the third lock screen interface displays a blurred lock screen wallpaper for the user, and this blurring can protect the user's privacy to a certain extent.

[0294] Exemplarily, the process of the electronic device being in the third state may be: receiving an unlocking operation of the user, and the electronic device being in the third state. The unlocking operation may be any one of a sliding operation, a password input operation, or a fingerprint recognition operation.

[0295] In the present disclosure, when the electronic device is in the third state, the data size of the first image displayed by the lock screen wallpaper layer of the third lock screen interface is the second value. The first image is a downsampled image. In this way, not only can the occupation of system resources by the lock screen wallpaper be effectively reduced, but also the operating efficiency of the device can be improved. Moreover, the processed first image can still maintain a good visual effect on the lock screen interface, and will not appear too rough or distorted due to the reduction in resolution. This processing method not only meets the personalized needs of users, but also takes into account the performance of electronic devices, and can bring users a more comfortable user experience.

[0296] It should be understood that each step in the above method embodiment provided by the present disclosure can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present disclosure can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0297] In one example, the unit in the above apparatus may be one or more integrated circuits configured to implement the above method, such as one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.

[0298] For another example, when the units in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a CPU or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system on a chip SOC.

[0299] In one implementation, the units of the above apparatus implementing the corresponding steps in the above method can be implemented in the form of a processing element scheduling program. For example, the apparatus may include a processing element and a storage element, and the processing element calls the program stored in the storage element to execute the method of the above method embodiment. The storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.

[0300] In another implementation, the program for executing the above method may be in a storage element on a different chip from the processing element, i.e., an off-chip storage element. In this case, the processing element calls or loads the program from the off-chip storage element to the on-chip storage element to call and execute the method of the above method embodiment.

[0301] For example, the embodiments of the present disclosure may also provide a device, such as an electronic device, which may include a processor and a memory for storing instructions executable by the processor. When the processor is configured to execute the above instructions, the electronic device implements the data processing method of the above embodiment. The memory may be located inside the electronic device or outside the electronic device. And the processor includes one or more.

[0302] In another implementation, the unit of the device implementing each step in the above method may be configured as one or more processing elements, which may be arranged on the corresponding electronic device, and the processing element here may be an integrated circuit, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these integrated circuits. These integrated circuits may be integrated together to form a chip.

[0303] For example, the present disclosure also provides a chip, such as Fig.11 As shown, the chip system includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 can be interconnected through a line. For example, the interface circuit 1102 can be used to receive signals from other devices. For another example, the interface circuit 1102 can be used to send signals to other devices (such as the processor 1101).

[0304] For example, the interface circuit 1102 can read the instructions stored in the memory in the device and send the instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device (such as Figure 2 The electronic device 200 shown in the figure performs each step in the above embodiment. Of course, the chip system may also include other discrete devices, which is not specifically limited in the embodiment of the present disclosure.

[0305] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by an electronic device, the electronic device can implement the above-mentioned data processing method.

[0306] The disclosed embodiments also provide a computer program product, including computer instructions for the electronic device to run as described above, and when the computer instructions are run in the electronic device, the electronic device can implement the data processing method as described above. Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above 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.

[0307] In the several embodiments provided in the present disclosure, 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 modules or units is only a logical function division, and 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.

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

[0309] In addition, each functional unit in each embodiment of the present disclosure 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.

[0310] 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 disclosure 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, such as a program. The software product is stored in a program product, such as a computer-readable storage medium, including a number of instructions to enable a terminal device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or optical disk and other media that can store program codes.

[0311] For example, the embodiments of the present disclosure may also provide a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by an electronic device, the electronic device implements the data processing method in the aforementioned method embodiment.

[0312] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A wallpaper display method, characterized in that: Applied to electronic equipment, the method comprises: Set the first image as the lock screen wallpaper and the second image as the desktop wallpaper; In response to a user operation, a lock screen wallpaper layer and a desktop wallpaper layer are obtained, and the lock screen wallpaper layer and the desktop wallpaper layer are synthesized; Displaying a first lock screen interface, wherein the data size of the first image displayed in the lock screen wallpaper layer in the first lock screen interface is a first value, and the desktop wallpaper layer in the first lock screen interface is invisible; Setting the first image as desktop wallpaper; In response to user operation, a lock screen wallpaper layer and a desktop wallpaper layer are obtained, and the lock screen wallpaper layer and the desktop wallpaper layer are synthesized to display a second lock screen interface; the data size of the first image displayed by the lock screen wallpaper layer in the second lock screen interface is a second value, the second value is less than the first value, and the lock screen wallpaper layer in the second lock screen interface is displayed transparently and the desktop wallpaper layer is visible.

2. The method according to claim 1, characterized in that: The synthesizing the lock screen wallpaper layer and the desktop wallpaper layer comprises: The lock screen wallpaper layer and the desktop wallpaper layer are synthesized into a to-be-displayed layer through an image synthesizer, and the first lock screen interface and the second lock screen interface display the first image through the to-be-displayed layer.

3. The method according to claim 1 or 2, characterized in that: After setting the first image as the desktop wallpaper, the method further includes: Determine whether the lock screen wallpaper and the desktop wallpaper are the same; Before synthesizing the lock screen wallpaper layer and the desktop wallpaper layer and displaying the second lock screen interface, the method further includes: When it is determined that the lock screen wallpaper and the desktop wallpaper are the same, the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface is reduced.

4. The method according to claim 3, characterized in that The reducing the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface includes: The first image is downsampled to reduce the data size of the first image displayed in the lock screen wallpaper layer in the second lock screen interface.

5. The method according to claim 3, characterized in that: After determining whether the lock screen wallpaper and the desktop wallpaper are the same, the method further includes: Based on whether the lock screen wallpaper and the desktop wallpaper are the same, a flag bit of the database is updated.

6. The method according to any one of claims 1 to 5, characterized in that After displaying the second lock screen interface, the method further includes: In response to the user's unlocking operation, a lock screen wallpaper layer and a desktop wallpaper layer are obtained, and the lock screen wallpaper layer and the desktop wallpaper layer are synthesized to display a third lock screen interface; the data size of the first image displayed by the lock screen wallpaper layer in the third lock screen interface is the second value, and the lock screen wallpaper layer is displayed opaquely.

7. The method according to claim 5, characterized in that After setting the first image as the desktop wallpaper, and before acquiring the lock screen wallpaper layer and the desktop wallpaper layer in response to a user operation, the method further includes: The flag bit of the database is determined to be a target identification field, and the target identification field is used to indicate that the lock screen wallpaper and the desktop wallpaper are the same.

8. The method according to any one of claims 1 to 7, after setting the first image as a desktop wallpaper, the method further comprises: Determine whether the magazine lock screen function is turned on; When the magazine lock screen function is turned on, setting a third image as a lock screen wallpaper, the third image being an image in a resource library corresponding to the magazine lock screen function; In response to the user operation, a lock screen wallpaper layer and a desktop wallpaper layer are obtained, and the lock screen wallpaper layer and the desktop wallpaper layer are synthesized to display a fourth lock screen interface, in which the lock screen wallpaper layer displays the third image.

9. An electronic device, characterized in that: include: Processors, memories, buses, and communication interfaces; The memory is used to store computer-executable instructions, the processor is connected to the memory via the bus, and when the terminal is running, the processor executes the computer-executable instructions stored in the memory, so that the terminal executes the wallpaper display method according to any one of claims 1 to 8.

10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instruction is executed on the terminal, the terminal executes the wallpaper display method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and system for wallpaper preview

    CN103645830A

  • Method and device for replacing screen locking application wallpaper

    CN104679379A

  • Dynamic wallpaper implementation method, computing device and storage medium

    CN114510307A

  • Wallpaper setting method and device, electronic equipment and readable storage medium

    CN117009020A

  • Wallpaper display method and electronic equipment

    CN118349153A