Wallpaper display method and related device
Patent Information
- Application Number
- CN202510246214.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2026-08-28
AI Technical Summary
[0004]本申请提供了一种壁纸显示方法及相关设备,可以解决相关技术中壁纸显示效果过于单调,用户的兴趣值会降低的问题
[0049]上述第二方面、第三方面、第四方面和第五方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。
Smart Images

Figure CN122653722A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a wallpaper display method and related equipment. Background Technology
[0002] With the rapid development of terminal technology, electronic devices have gradually become indispensable tools in people's daily lives. Users can set a lock screen wallpaper for their electronic devices, which is then displayed when the screen is turned on again after the device has been turned off, thus improving aesthetics.
[0003] Typically, lock screen wallpapers are fixed, single images, such as a picture from the gallery. However, this makes the wallpaper display too monotonous, reducing user interest. Summary of the Invention
[0004] This application provides a wallpaper display method and related equipment, which can solve the problem that the wallpaper display effect is too monotonous in related technologies, resulting in a decrease in user interest. The technical solution is as follows:
[0005] Firstly, a wallpaper display method is provided, the method comprising:
[0006] In response to the received first operation, multiple images are set as a lock screen wallpaper set, wherein the multiple images are selected from the gallery. Immediately after setting the multiple images as lock screen wallpapers, in response to the second operation, a first lock screen wallpaper is displayed. The first lock screen wallpaper is one of the lock screen wallpapers in the set. The second operation is to trigger the electronic device to light up and display the lock screen interface. In the second moment, in response to the third operation, a second lock screen wallpaper is displayed. The second lock screen wallpaper is one of the lock screen wallpapers in the set and is different from the first lock screen wallpaper. The second moment is later than the first moment, and the time difference between the second moment and the first moment is greater than or equal to a preset time. The third operation is to trigger the electronic device to light up and display the lock screen interface.
[0007] The first lock screen wallpaper is associated with the first scene, which is triggered at the first moment; the second lock screen wallpaper is associated with the second scene, which is triggered at the second moment.
[0008] As an example, the first operation is setting the wallpaper; the second operation is triggering the screen to turn on after the electronic device has been off; and the third operation is also triggering the screen to turn on after the electronic device has been off. For example, the second operation could include pressing the power button twice, or, in the case of a vertically foldable screen device, the second operation could be folding the vertically foldable screen device into a folded state, and the third operation is similar.
[0009] The preset time can be set according to your needs. For example, the preset time can be 10 minutes.
[0010] In this way, by setting multiple images selected by the user from their gallery as a lock screen wallpaper set, and displaying the lock screen wallpaper that matches the current scene, the wallpaper display effect is enriched, increasing freshness, variety, and interactivity, thus enhancing the user's emotional experience. Furthermore, because it supports users selecting images from their local storage as lock screen wallpapers, it overcomes the limitation of only being able to set preset wallpapers, increasing user engagement.
[0011] As an example of this application, the method further includes: at a third moment, in response to a fourth operation, displaying a third lock screen wallpaper, the third lock screen wallpaper being the next lock screen wallpaper in the lock screen wallpaper set to the second lock screen wallpaper, the third moment being later than the second moment and the time interval between the third moment and the second moment being less than a preset time.
[0012] Similarly, the fourth operation is used to trigger the screen to turn on after the electronic device has been turned off.
[0013] In this way, if the user triggers the electronic device to display the lock screen again within a short period of time, the next lock screen wallpaper of the first lock screen wallpaper will be displayed directly. That is, the electronic device will not frequently perform the operation of matching lock screen wallpaper with scene, which can minimize the increase of power consumption of the electronic device.
[0014] As an example of this application, after displaying the first lock screen wallpaper, a fifth operation is received that acts on the lock screen interface. In response to the fifth operation, the previous or next lock screen wallpaper of the first lock screen wallpaper in the lock screen wallpaper set is displayed.
[0015] As an example, the fifth action is a swipe action, such as a left swipe or a right swipe.
[0016] For example, if the fifth operation is a left swipe operation, the next lock screen wallpaper of the first lock screen wallpaper is displayed in response to the fifth operation; if the fifth operation is a right swipe operation, the previous lock screen wallpaper of the first lock screen wallpaper is displayed in response to the fifth operation.
[0017] As another example, the fifth operation could also be a click operation on a control in the lock screen interface. For instance, the lock screen interface can display a first control and a second control. The first control is used to trigger the display of the previous lock screen wallpaper, and the second control is used to trigger the display of the next lock screen wallpaper. For example, if the fifth operation is a click operation on the first control, the electronic device will display the previous lock screen wallpaper.
[0018] Thus, after displaying the first lock screen wallpaper, users can trigger a fifth operation on the lock screen interface to display other lock screen wallpapers in the lock screen wallpaper set, making it easier for users to quickly browse other lock screen wallpapers in the set and improving the user experience.
[0019] Of course, this explanation uses the example of receiving the fifth operation after displaying the first lock screen wallpaper. In the application, after displaying any lock screen wallpaper in the lock screen wallpaper set, receiving the fifth operation applied to the lock screen interface causes the electronic device to display the next or previous lock screen wallpaper in the set.
[0020] As an example of this application, in response to a second operation, displaying the first lock screen wallpaper at the first moment after setting multiple images as lock screen wallpapers includes: determining the first lock screen wallpaper based on the current scene and scene configuration information, wherein the scene configuration information is used to indicate the mapping relationship between lock screen wallpapers in the lock screen wallpaper set and the scene; and displaying the first lock screen wallpaper in response to the second operation at the first moment.
[0021] Thus, based on the current scene and scene configuration information, the first lock screen wallpaper is determined so that the first lock screen wallpaper matching the scene can be displayed at the first moment.
[0022] As an example of this application, the scene configuration item information includes the wallpaper index of the lock screen wallpaper and the corresponding scene information data structure. The scene information data structure includes scene features of the scene associated with the lock screen wallpaper. Further, the scene features include main scene features and sub-scene features. A main scene feature includes one or more sub-scene features, and each sub-scene feature corresponds to a scene.
[0023] In this way, the scene characteristics of the scene associated with the lock screen wallpaper are recorded through the scene information data structure, so that the lock screen wallpaper that matches the scene can be determined according to the scene information data structure, and thus the lock screen wallpaper that matches the scene can be displayed on the lock screen interface.
[0024] As an example of this application, before basing the current scene and scene configuration information, the method further includes: determining the scene configuration information of the lock screen wallpaper set; specifically, obtaining a wallpaper index set and preset configuration information. The wallpaper index set includes the wallpaper index of each lock screen wallpaper in the lock screen wallpaper set, and the preset configuration information includes a main scene, a sub-scene, and matching rules for the sub-scenes. The matching rules for each sub-scene describe the matching method of the scene features corresponding to each sub-scene. The method iterates through the sub-scenes in the preset configuration information; for each sub-scene traversed, based on the wallpaper index set and the matching rules of the currently traversed sub-scene, it queries a subset of lock screen wallpapers that match the currently traversed sub-scene. The wallpaper features of the lock screen wallpapers in the subset match at least one scene feature described by the matching rules of the currently traversed sub-scene; when a subset of lock screen wallpapers is found, it establishes a mapping relationship between each lock screen wallpaper in the subset and a scene, so that after traversing the sub-scenes in the preset configuration information, the scene configuration information is obtained.
[0025] In this way, by obtaining the wallpaper index set and preset configuration information, it is determined which lock screen wallpapers in the lock screen wallpaper set are associated with scenes. After determining the lock screen wallpapers associated with scenes, a mapping relationship is established between the lock screen wallpapers and the scenes associated with the lock, thereby obtaining scene configuration item information. This allows it to determine whether there are associated lock screen wallpapers in the current scene when the matching conditions are met, and then display the lock screen wallpaper that matches the current scene on the lock screen interface.
[0026] As an example of this application, when a subset of lock screen wallpapers is found, a mapping relationship between each lock screen wallpaper in the subset and a scene is established, including: when a subset of lock screen wallpapers is found, the wallpaper index of the lock screen wallpapers in the subset is traversed; when a wallpaper index is traversed, a scene information data structure corresponding to the currently traversed wallpaper index is established, and the scene information data structure includes the scene features of the scene associated with the lock screen wallpaper corresponding to the currently traversed wallpaper lock screen index.
[0027] In this way, by associating each lock screen wallpaper in the subset of lock screen wallpapers with a scene, it is possible to query the lock screen wallpaper associated with the scene when the scene is triggered, and then display the lock screen wallpaper associated with the scene on the lock screen interface.
[0028] As an example of this application, for each sub-scene traversed, based on the wallpaper index set and the matching rules of the currently traversed sub-scene, a subset of lock screen wallpapers matching the currently traversed sub-scene is queried, including: for each sub-scene traversed, parsing the matching rules of the currently traversed sub-scene to obtain a scene feature set; traversing the scene features in the currently obtained scene feature set; for each scene feature traversed, based on the wallpaper index set, querying the lock screen wallpaper set for lock screen wallpapers that have wallpaper features matching the currently traversed scene features, and recording the correspondence between the queried lock screen wallpapers and the currently traversed scene features if a match is found; after the traversal is completed, if there are lock screen wallpapers with corresponding scene features, it is determined that a subset of lock screen wallpapers exists, and the subset of lock screen wallpapers includes lock screen wallpapers with corresponding scene features.
[0029] In this way, by traversing the set of scene features corresponding to the sub-scene, we can query which lock screen wallpapers in the lock screen wallpaper set match the currently traversed sub-scene, and then associate the lock screen wallpapers with the sub-scenes.
[0030] As an example of this application, each time a wallpaper index is traversed, a scene information data structure corresponding to the currently traversed wallpaper index is established, including: each time a wallpaper index is traversed, all scene features corresponding to the currently traversed wallpaper index are obtained; based on all scene features corresponding to the currently traversed wallpaper index and the main scene to which the currently traversed sub-scene belongs, a scene information data structure corresponding to the currently traversed wallpaper index is established.
[0031] As an example of this application, determining the first lock screen wallpaper based on the current scene and scene configuration information includes: obtaining target data to be monitored according to the scene configuration information, the target data being used to determine the current scene; judging the target scene set according to the target data to determine the trigger scene set, the target scene set being determined based on the scene configuration information and including the sub-scenes associated with the lock screen wallpapers in the lock screen wallpaper set, the trigger scene set including the currently triggered sub-scenes in the target scene set; determining the target sub-scene from the trigger scene set in the event of a scene change; and determining the first lock screen wallpaper from the lock screen wallpapers associated with the target sub-scene.
[0032] Thus, by determining the set of triggering scenarios, it is determined which scenarios(s) are currently being triggered. Then, it is determined whether a scenario change has occurred. For example, if the set of triggering scenarios differs from the previously determined set, or if this is the first time the set has been determined, then a scenario change has occurred; otherwise, no scenario change has occurred. In the case of a scenario change, a target sub-scenario is determined from the set of triggering scenarios, and a first lock screen wallpaper associated with the target sub-scenario is determined. Therefore, when the lock screen is displayed, the lock screen wallpaper associated with the currently triggered scenario is displayed.
[0033] Of course, if the scene does not change, the lock screen wallpapers in the lock screen wallpaper set can be displayed in sequence when the lock screen is displayed.
[0034] As an example of this application, in the event of a scene change, determining the target sub-scene from the set of triggering scenes includes: if the sub-scenes in the set of triggering scenes do not belong to the same main scene, then selecting one main triggering scene from among the multiple main triggering scenes associated with the set of triggering scenes as the target main triggering scene; selecting the target sub-scene from the sub-scenes triggered under the target main triggering scene; if the sub-scenes in the set of triggering scenes belong to the same main scene, then selecting one sub-scene from the set of triggering scenes as the target sub-scene.
[0035] As an example of this application, the target scene set is determined based on the target data to determine the trigger scene set, including: traversing the sub-scenes in the target scene set; for each sub-scene traversed, querying the scene features of the currently traversed sub-scene from the scene configuration item information, and matching the queried scene features with the target data; if the match is successful, the currently traversed sub-scene is determined as an item in the trigger scene set.
[0036] In this way, by matching the scene features of the currently traversed sub-scene with the target data, it is possible to determine which sub-scene(s) are currently being triggered.
[0037] As an example of this application, in the event of a scene change, if the sub-scenes in the trigger scene set do not belong to the same main scene, then a target trigger scene is selected from the multiple trigger main scenes associated with the trigger scene set. This includes: determining the number of multiple trigger main scenes in the event of a scene change; determining the weight range corresponding to each trigger main scene based on the number of multiple trigger main scenes and the priority of each trigger main scene, wherein when the number of multiple trigger main scenes is different, trigger main scenes with different priorities correspond to different preset weight ranges; and determining the target trigger scene from the multiple trigger main scenes based on the weight range of each trigger main scene.
[0038] Therefore, since a higher priority for the main scene indicates a higher level of user interest, selecting the secondary scene based on the priority of the main scene can ensure that the final displayed lock screen wallpaper is as interesting as possible to the user, thereby increasing user interest.
[0039] As an example of this application, the target triggering main scene is determined from multiple triggering main scenes based on the weight range of each triggering main scene, including: generating a random number; and determining the triggering main scene corresponding to the weight range of the random number among the multiple triggering main scenes as the target triggering main scene.
[0040] As an example of this application, selecting a target sub-scene from the sub-scenes triggered under the target main scene includes: when there are multiple triggered sub-scenes under the target triggering main scene, setting corresponding hit values for each of the multiple triggered sub-scenes; generating a random integer within a specified numerical range and matching the hit value that is the same as the random integer; and determining the sub-scene corresponding to the matched hit value as the target sub-scene.
[0041] As an example of this application, the lock screen wallpaper associated with the target sub-scene includes multiple wallpapers; determining the first lock screen wallpaper from the lock screen wallpapers associated with the target sub-scene includes: if the multiple lock screen wallpapers associated with the target sub-scene include the previously displayed lock screen wallpaper, then randomly selecting one lock screen wallpaper from the multiple lock screen wallpapers associated with the target sub-scene other than the previously displayed lock screen wallpaper as the first lock screen wallpaper.
[0042] In this way, by excluding the previously displayed lock screen wallpaper from the multiple lock screen wallpapers associated with the target sub-scene, and selecting one lock screen wallpaper as the first lock screen wallpaper from the remaining at least one lock screen wallpaper, the same lock screen wallpaper can be avoided as much as possible when two consecutive lock screen wallpapers are displayed on the lock screen interface.
[0043] As an example of this application, the electronic device is a vertically foldable screen device; at a first moment after setting multiple images as lock screen wallpaper, in response to a second operation, displaying the first lock screen wallpaper includes: at the first moment after setting multiple images as lock screen wallpaper, in response to the second operation, displaying the first lock screen wallpaper on the lock screen interface of the outer screen of the electronic device, the electronic device is in a folded state when displaying the first lock screen wallpaper, and the second operation includes triggering the operation of turning off the inner screen of the electronic device and then turning on the outer screen.
[0044] In this way, by displaying lock screen wallpapers that match the scene on the lock screen interface of a vertically foldable screen device, user engagement is increased.
[0045] In a second aspect, an electronic device is provided, the electronic device comprising: one or more processors, and a memory; the memory being coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, wherein the one or more processors invoke the computer instructions to cause the electronic device to perform the wallpaper display method as described in any one aspect.
[0046] Thirdly, a chip system is provided, the chip system being applied to an electronic device, the chip system including one or more processors, the one or more processors being configured to invoke computer instructions to cause the electronic device to perform the wallpaper display method as described in any one of the first aspects.
[0047] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the wallpaper display method as described in any one of the first aspects.
[0048] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the wallpaper display method described in the first aspect above.
[0049] The technical effects achieved by the second, third, fourth, and fifth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0050] Figure 1 This is a schematic diagram illustrating a horizontally folding screen device according to an exemplary embodiment;
[0051] Figure 2 This is a schematic diagram illustrating a vertically folding screen device according to an exemplary embodiment;
[0052] Figure 3 This is a schematic diagram illustrating a lock screen wallpaper setting process according to an exemplary embodiment;
[0053] Figure 4 This is a schematic diagram illustrating the editing of a clock in a lock screen wallpaper according to an exemplary embodiment;
[0054] Figure 5 This is a schematic diagram of a wallpaper display method according to an exemplary embodiment;
[0055] Figure 6 This is a schematic diagram illustrating a software system of an electronic device according to an exemplary embodiment;
[0056] Figure 7 This is a flowchart illustrating a wallpaper display method according to an exemplary embodiment;
[0057] Figure 8 This is a schematic diagram illustrating a scene association process according to an exemplary embodiment;
[0058] Figure 9 This is a schematic diagram illustrating the segmentation of a time period according to an exemplary embodiment;
[0059] Figure 10 This is a schematic diagram illustrating a scenario associated with a lock screen wallpaper according to an exemplary embodiment;
[0060] Figure 11 This is a schematic diagram illustrating a scene matching process according to an exemplary embodiment;
[0061] Figure 12 This is a schematic diagram illustrating the priority order of a main scene according to an exemplary embodiment;
[0062] Figure 13 This is a schematic diagram illustrating a scenario associated with a lock screen wallpaper according to another exemplary embodiment;
[0063] Figure 14 This is a flowchart illustrating a wallpaper display method according to another exemplary embodiment;
[0064] Figure 15 This is a flowchart illustrating a wallpaper display method according to another exemplary embodiment;
[0065] Figure 16 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment. Detailed Implementation
[0066] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0067] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0068] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0069] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0070] In this application's embodiments, the "user interface (UI)" is the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form that the user can receive. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. Typically, it can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.
[0071] Users can set a lock screen wallpaper for their electronic devices to enhance their aesthetics. Typically, electronic devices allow users to set a specific wallpaper as the lock screen wallpaper; this wallpaper can be an image from the gallery or a preset wallpaper template.
[0072] In some embodiments, the electronic device also provides a magazine lock screen function. The system can download magazine lock screen resources, which include multiple wallpapers. Users can trigger the electronic device to set the magazine lock screen resource as the lock screen wallpaper. Thus, each time the screen is turned off and then on again, the electronic device can display different wallpapers from the magazine lock screen resource on the lock screen interface, allowing users to see different lock screen wallpapers each time. While this method enriches the display effect of lock screen wallpapers to some extent, the magazine lock screen resource is downloaded from the network and cannot use images locally downloaded by the user. Furthermore, since magazine lock screens may involve automatically downloading content, there are certain privacy and security risks. Additionally, the wallpapers in the magazine lock screen resource may contain advertisements; if users accidentally touch these advertisements, they may be directed to download other applications or subscribe to services, potentially leading to unnecessary charges.
[0073] Based on this, embodiments of this application provide a wallpaper display method. This method allows users to select multiple wallpapers as lock screen wallpapers according to their needs, and the electronic device can match a lock screen wallpaper associated with the current scene from these multiple lock screen wallpapers. When displaying the wallpaper, the electronic device displays the matched lock screen wallpaper on the lock screen interface. In this way, the displayed lock screen wallpaper matches the scene, increasing freshness, variability, and interactivity, thereby enhancing the user's emotional experience, without privacy or security risks, or issues such as advertising promotion.
[0074] The wallpaper display method provided in this application can be applied to, but is not limited to, non-foldable screen devices (also known as: candybar phones) and foldable screen devices. Non-foldable screen devices generally refer to electronic devices with a screen on the front, a back cover on the back, and a motherboard and other hardware components in the middle, and are generally candybar shaped, such as candybar mobile phones; foldable screen devices refer to electronic devices with a foldable display screen, which can be horizontally foldable screen devices or vertically foldable screen devices.
[0075] The horizontally folding screen device has a folding axis parallel to its height direction, also known as a vertical folding axis. The horizontally folding screen device can fold inwards or outwards around this vertical folding axis to achieve a folded state. The vertically folding screen device has a folding axis parallel to its width direction, also known as a horizontal folding axis. The vertically folding screen device can fold inwards or outwards around this horizontal folding axis to achieve a folded state.
[0076] See Figure 1 , Figure 1This is a schematic diagram of a horizontally foldable screen phone according to an exemplary embodiment. The horizontally foldable screen phone includes a folding axis 1011 parallel to the height direction of the horizontally foldable screen device. The user can fold the horizontally foldable screen phone inward based on the folding axis 1011 parallel to the height direction of the horizontally foldable screen device, so that the horizontally foldable screen phone changes from an unfolded state 101 to a hovered state 102, and then to a folded state 103.
[0077] See Figure 2 , Figure 2 This is a schematic diagram of a vertically foldable screen phone according to an exemplary embodiment. The vertically foldable screen phone includes a folding axis 2011 parallel to the width direction of the vertically foldable screen device. The user can fold the vertically foldable screen phone inward based on the folding axis 2011 parallel to the width direction of the vertically foldable screen device, so that the vertically foldable screen phone changes from an unfolded state 201 to a hovered state 202, and then to a folded state 203.
[0078] The wallpaper display method provided in this application is mainly applied to vertically foldable screen devices, which can be vertically foldable mobile phones, vertically foldable tablets, etc. This application does not impose any special limitations on the specific type of such vertically foldable screen device. For example, in... Figure 2 In its folded state, the vertically foldable screen phone displays the lock screen wallpaper on the outer screen according to this wallpaper display method.
[0079] The following section uses a vertically foldable screen mobile phone as an example to introduce the application scenarios involved in the embodiments of this application. Of course, the methods provided in the embodiments of this application are not limited to vertically foldable screen mobile phones. As mentioned above, they can also be applied to candybar phones or horizontally foldable screen mobile phones, etc. The embodiments of this application do not limit them in this regard.
[0080] See Figure 3 , Figure 3 This is a schematic diagram illustrating a lock screen wallpaper setting process according to an exemplary embodiment. See also... Figure 3 In Figure (a), the phone's home screen displays an application icon 30 for the settings app. When a user wants to set the lock screen wallpaper, they can click the settings app icon 30. In response to this click, the phone displays... Figure 3 The wallpaper settings interface S1 shown in Figure (b) includes an "Outer Screen Zone" option 31. In response to the user's click on the "Outer Screen Zone" option 31 in the wallpaper settings interface S1, the phone displays the following... Figure 3 The wallpaper settings interface S2 shown in Figure (c) includes a "Change Style" option 32. In response to the user's activation of the "Change Style" option 32 in the wallpaper settings interface S2, the phone displays the following... Figure 3The wallpaper settings interface S3 is shown in Figure (d). After that, the user can set the lock screen wallpaper based on the wallpaper settings interface S3.
[0081] For example, the wallpaper settings interface S3 includes a "Custom" option 33. In response to the user clicking the "Custom" option 33 in the wallpaper settings interface S3, the phone displays the following: Figure 3 The wallpaper settings interface S4 shown in (e) includes a "Change Picture" option 34. In response to the user's click on the "Change Picture" option 34 in the wallpaper settings interface S4, the phone displays the following in the wallpaper settings interface S4: Figure 3 Page 301, shown in Figure (f), can be accessed by swiping up from the bottom of the screen. Page 301 displays multiple categories, at least one of which has a corresponding image, all of which can be used as wallpaper. For example, the categories include "AI Recommendation," "Portraits," and "Animal," with the wallpaper corresponding to "AI Recommendation" determined by an AI model. Of course, the categories can also include other categories, such as "Landscape," "Plants," and "Food" (not shown in the figure). Users can select from the categories as needed, and in response to the user's selection, the phone displays the wallpaper corresponding to the selected category on page 301. See also... Figure 3 In Figure (f), by default, the phone selects the "AI Recommendation" category and displays the wallpapers corresponding to that category. If not all wallpapers are displayed, the phone allows users to swipe up or down to trigger the display of other wallpapers corresponding to the "AI Recommendation" category. Users can select multiple wallpapers as lock screen wallpapers on page 301 as needed, for example, see [link to example]. Figure 3 In diagram (f), the user selects wallpaper 1, wallpaper 2, wallpaper 3, and wallpaper 4 as the lock screen wallpaper. As an example, after selecting wallpaper 1, wallpaper 2, wallpaper 3, and wallpaper 4, the phone can display selection indicators on these wallpapers, such as... Figure 3 As shown in Figure (f) 36.
[0082] Of course, users can also select multiple wallpapers across categories as lock screen wallpapers. For example, they can choose some wallpapers from the "AI Recommendation" category and some wallpapers from the "Portrait" category, and use all the selected wallpapers as lock screen wallpapers.
[0083] After selecting a wallpaper, the user can also trigger the phone to return to the wallpaper settings interface S4. For example, the user can pull down page 301 to trigger the phone to return to the wallpaper settings interface S4, and continue editing the wallpaper based on the wallpaper settings interface S4, such as editing the clock style, clock font, clock color, etc. in the lock screen wallpaper. For example, see Figure 4In Figure (a), after returning to the wallpaper settings interface S4, the preview area 41 of the wallpaper settings interface S4 displays a preview image of the wallpaper selected by the user. The user can trigger the phone to display preview images of different wallpapers selected by the user by swiping left or right on the preview image. In addition, the preview area 41 also displays clock information. When different wallpaper preview images are displayed in the preview area 41, the user can trigger the phone to set a special clock for each wallpaper. For example, see Figure 4 In Figure (b), in response to a user's click on the area containing the clock information in the preview area 41, the phone displays page 401 in the wallpaper settings interface S4. Page 401 includes settings for clock style, clock font, and clock color. Thus, the user can edit one or more of the clock style, clock font, and clock color based on page 401. For example, the user selects setting 42 in the clock style section, see [link to relevant documentation]. Figure 4 In Figure (c), in response to the user's selection, the phone changes the clock style in preview area 41 to the style of setting item 42. Similarly, after editing the clock, the user can pull down page 402 to trigger the phone to return to the wallpaper settings interface S4.
[0084] It should be noted that the above explanation uses the example of setting unique clocks for different lock screen wallpapers. In another example, the same clock can be set for different lock screen wallpapers, meaning different lock screen wallpapers can use a unified clock style, clock font, and clock color. For example, when a preview image of a user-selected wallpaper is displayed in the preview area 41 of the wallpaper settings interface S4, in response to the user's click on the area containing the clock information in the preview area 41, the phone displays a clock editing page in the wallpaper settings interface S4. The clock editing page includes settings for clock style, clock font, and clock color, and can also provide a one-click application control. After the user sets the clock based on the clock editing page, they can click the one-click application control. In response to the user's click on the one-click application control, the phone applies the settings to each selected lock screen wallpaper. Thus, when the user swipes left or right on the wallpaper preview image in the preview area 41 of the wallpaper settings interface S4, the phone displays the wallpaper preview image in the preview area 41, showing the clock information set by the user.
[0085] Besides editing the clock, users can also edit the style of the lock screen wallpaper they choose, for example, see Figure 4As shown in Figure (a), the wallpaper settings interface S4 also provides an "AI Style" control 43 and a "Personalized Decoration" control 44. The "AI Style" control 43 can be used to trigger the mobile phone to set the lock screen wallpaper selected by the user to anime, 3D, photography, or other styles; and the "Personalized Decoration" control 44 can be used to trigger the mobile phone to personalize the lock screen wallpaper selected by the user. These aspects will not be described in detail in this embodiment.
[0086] After editing the lock screen wallpaper using one or more of the methods described above, if the user confirms that the selected wallpaper is to be set as the lock screen wallpaper, the user can click the "Done" control 35 in the wallpaper settings interface S4. In response to the user's click on the "Done" control 35, the mobile phone can set the wallpaper selected by the user (i.e., wallpaper 1, wallpaper 2, wallpaper 3, and wallpaper 4) as the lock screen wallpaper.
[0087] This completes the setting of the lock screen wallpaper.
[0088] It should be noted that the above operation process is merely illustrative and does not limit the method of setting the lock screen wallpaper. For example, the above only illustrates setting the lock screen wallpaper by triggering the phone to display the wallpaper setting interface S3 through the entry provided by the settings application. In another example, the phone can also be triggered to display the wallpaper setting interface S3 through other entry points. For example, when the lock screen interface is displayed on the phone's outer screen, the user can perform a two-finger pinch operation on the display screen, such as using the thumb and forefinger to pinch. Correspondingly, if no lock screen password is set, the phone displays as follows: Figure 3 The wallpaper settings interface S3 is shown in Figure (d). When a lock screen wallpaper is set, the phone displays a password input interface. When the user enters the correct lock screen password, the phone displays the following: Figure 3 The wallpaper settings interface S3 is shown in Figure (d). Afterwards, the user can set the lock screen wallpaper based on the wallpaper settings interface S3, following the process described above.
[0089] When a lock screen wallpaper is set, if the user clicks the "Done" control 35 in the wallpaper settings interface S4, the phone can determine which lock screen wallpapers in the set have associated scenes based on wallpaper characteristics such as wallpaper time information and wallpaper element information, and record these associated scenes. Thus, when the lock screen is displayed, if a scene associated with these lock screen wallpapers is triggered, the phone displays the lock screen wallpaper associated with the triggered scene.
[0090] Of course, if the scene is not triggered, the phone will switch and display the lock screen wallpapers in the lock screen wallpaper set according to the order in which the user selected the wallpapers on page 301.
[0091] Among them, the wallpaper time information is the time when the lock screen wallpaper was acquired, such as the shooting time or download time; the wallpaper element information describes the wallpaper content in the lock screen wallpaper. The wallpaper content can be elements and scenes, such as wallpaper element information such as women, birthday cake, sunset, sunrise, etc.
[0092] For example, see Figure 5 , Figure 5 This is a schematic diagram illustrating two application scenarios according to an exemplary embodiment. Wallpapers 1, 2, 3, and 4 selected by the user have associated scenes: Wallpaper 2 is associated with the "Mother's Day" scene, Wallpaper 3 with the "Sunny Day" scene, and Wallpaper 4 with the "Birthday" scene. If the currently triggered scenes include "Mother's Day" and "Birthday," then the following two scenarios may exist, but are not limited to:
[0093] See Figure 5 In scenario one, after setting the lock screen wallpaper, the user hasn't yet triggered the screen-off event, meaning the user continues using the phone. After using the phone for a while, the user triggers the screen-off event and immediately turns the screen back on. At this point, the phone displays the wallpaper associated with the triggered scenario on the lock screen. For example... Figure 5 As shown in Figure (a), the phone displays wallpaper 2 associated with the "Mother's Day" scene on the lock screen. See also [other examples]. Figure 5 In Figure (b), after displaying Wallpaper 2, the user triggers the screen to turn off again and immediately turns the screen back on. At this point, the phone displays the next lock screen wallpaper after Wallpaper 2, i.e., Wallpaper 3. See also... Figure 5 In Figure (c), if the user triggers the phone screen to turn off again after a relatively long period of time (such as 10 minutes), and then triggers the phone screen to turn on again, the phone will display wallpaper 4 associated with the "birthday" scene on the lock screen, that is, display another wallpaper associated with the triggered scene.
[0094] See Figure 5 In scenario two, after setting the lock screen wallpaper, the user turns the phone off and then immediately turns it back on. At this point, the phone displays the wallpaper associated with the triggered scenario on the lock screen. For example, see... Figure 5 In image (d), the phone displays wallpaper 2 associated with the "Mother's Day" theme on the lock screen. See also [image 2] as an example. Figure 5 In diagram (e), after displaying wallpaper 2, the user triggers the screen to turn off again. After a period of time (e.g., 10 minutes) following the screen turning off, the user triggers the screen to turn on again. At this time, the phone displays wallpaper 4, which is associated with the "birthday" scene, on the lock screen; that is, it displays another wallpaper associated with the triggered scene. See also... Figure 5In Figure (f), the user triggers the phone screen to turn off again and immediately triggers the phone screen to turn on. At this time, the phone displays the next lock screen wallpaper of wallpaper 4, that is, wallpaper 1.
[0095] As seen in Scenario 1 and Scenario 2 above, after setting the lock screen wallpaper, if the user turns the screen off and then on again, whether the screen turns on immediately or after a period of time, the electronic device will display the wallpaper associated with the triggered scenario on the lock screen. During subsequent use of the electronic device, if the screen turns on immediately after being turned off, the electronic device will display the next lock screen wallpaper after the one previously displayed on the lock screen. If the screen turns off after a period of time (e.g., 10 minutes) and then on again, the electronic device will display the wallpaper associated with the currently triggered scenario on the lock screen.
[0096] In this way, the phone can switch the lock screen wallpaper according to the scene, which increases the user's sense of novelty and can increase the user's interest.
[0097] It should be noted that this embodiment uses the selection of multiple images from a gallery as the lock screen wallpaper as an example. In another example, multiple wallpaper templates can be selected from the phone's preset wallpaper templates, or multiple images can be selected online. Similarly, when a certain scene is triggered, the phone displays a lock screen wallpaper that matches the triggered scene.
[0098] In another example, the phone can also use AI technology to automatically select multiple images as lock screen wallpapers, or, with user authorization, automatically select multiple images as lock screen wallpapers using AI technology, eliminating the need for manual selection by the user. This improves the efficiency of lock screen wallpaper setting, reduces user operations, and enhances the user experience.
[0099] It should also be noted that the above embodiments are described using the wallpaper display method applied to lock screen wallpaper display as an example. In another example, the wallpaper display method can also be applied to desktop wallpaper display. This application's embodiments are mainly described using the application to lock screen wallpaper display as an example.
[0100] Figure 6 This is a technical architecture diagram related to a wallpaper display method provided in an embodiment of this application. This technical architecture diagram only shows modules relevant to the embodiments of this application. Exemplarily, it mainly includes SystemUI and external modules. In practical applications, this technical architecture diagram may also include other modules, which will not be described in detail in this embodiment.
[0101] SystemUI resides in the application layer of the Android operating system. It is a key component of Android, primarily responsible for managing and providing core elements of the user interface, such as the lock screen and status bar. External modules include a series of applications within the Android operating system's application layer. These applications can interact directly with the user. These applications can be built-in system applications or non-system applications. They can have icons and application interfaces, or they can have application interfaces without icons, or they can have neither icons nor application interfaces.
[0102] As an example of this application, SystemUI includes a wallpaper switching display module, a scene recommendation module, and a data persistence module. External modules include a sports and health application, a calendar application, a weather application, and integrated services, as well as a wallpaper editing module.
[0103] SystemUI related modules:
[0104] The wallpaper switching and display module is used to display wallpapers. For example, it can read the wallpaper configuration information of the lock screen wallpaper from the data persistence module, and then correctly display the lock screen wallpaper selected by the user based on this information. The wallpaper configuration information includes the lock screen wallpaper style, clock style, clock font, clock color, etc. The wallpaper switching and display module can also be used to switch lock screen wallpapers. For example, in response to user actions such as swiping, shaking, or turning the screen on / off, the module will switch the lock screen wallpaper. In addition, the wallpaper switching and display module provides an interface to receive instructions from the scene recommendation module to display lock screen wallpapers that match a specific scene.
[0105] The data persistence module is used to save the user-selected lock screen wallpaper set and the wallpaper configuration information of each lock screen wallpaper in the lock screen wallpaper set. It is also used to save the scene configuration information of the lock screen wallpapers associated with the scene in the lock screen wallpaper set. The scene configuration information is used to represent the relationship between the lock screen wallpaper and the scene.
[0106] The scene recommendation module is used to determine the lock screen wallpapers associated with specific scenes within the lock screen wallpaper set, as well as the scene configuration information of these associated wallpapers, and stores this information in the data persistence module. Additionally, when a scene associated with a lock screen wallpaper is triggered, the scene recommendation module instructs the wallpaper switching display module to display the lock screen wallpaper associated with the triggered scene. As an example, the scene recommendation module includes an information detection module and a scene information management module. The information detection module detects target data related to the scene; the scene information management module manages the scene configuration information of the lock screen wallpapers, recording various configuration details, scene states, and status management and switching.
[0107] As an example, the information detection module includes a motion status detection module, a calendar / schedule detection module, a weather status detection module, and a fusion information detection module.
[0108] The motion status detection module is used to determine the user's motion status, such as whether the user is sleeping, walking, or exercising. The motion status detection module obtains the user's motion status by communicating with the fitness and health application in an external module.
[0109] The calendar detection module is used to detect calendar information such as holidays, seasons, and user birthdays. This may involve communicating with calendar applications in external modules to obtain calendar information. The calendar detection module is applied in calendar-related scenarios.
[0110] The weather condition detection module is used to detect weather-related information, such as by communicating with weather applications in external modules to obtain weather-related information. The weather condition detection module is applied in weather-related scenarios.
[0111] The fusion information detection module is used to manage interface registration, unregistration, data communication, and data conversion between fusion services in external modules. It then queries the lock screen wallpapers in the lock screen wallpaper set through the fusion service, and the wallpaper features are used to associate scenes.
[0112] External modules:
[0113] Weather applications provide information such as weather, sunrise, and sunset. The weather status detection module can query weather-related information by listening to the interface provided by the weather application.
[0114] Calendar applications provide information such as birthdays, holidays, and seasons. The schedule and calendar detection module can query this information by calling the API provided by the calendar application.
[0115] The sports and health application provides users with information about their activity levels, such as sleep and exercise status. The activity status detection module can query the user's activity status by calling the interface provided by the sports and health application.
[0116] As an example, the fusion service maintains a dataset containing a mapping between wallpaper indices and at least one wallpaper feature for different lock screen wallpapers. The wallpaper index includes the wallpaper ID, wallpaper name, etc., while the wallpaper feature includes wallpaper time information, wallpaper element information, etc. For instance, whenever a new wallpaper is added to an electronic device, such as when a picture is taken with a camera, the fusion service can obtain the wallpaper index and at least one wallpaper feature for that wallpaper, and then store these two elements in the dataset. The fusion information detection module can then query which lock screen wallpapers in the set are associated with certain scenarios and what those scenarios are by calling the fusion service query interface provided by the fusion service and passing in the wallpaper index list of the lock screen wallpaper set. The wallpaper index list includes the wallpaper index of each lock screen wallpaper in the set.
[0117] The wallpaper editing module provides batch lock screen wallpaper setting functionality, such as... Figure 3 As shown in Figure (a), users can access the settings through the entry provided by the application. For example, the wallpaper editing module supports batch selection of lock screen wallpapers, batch modification of lock screen wallpapers, batch preview of lock screen wallpapers, and application of batch-selected lock screen wallpapers.
[0118] exist Figure 6 Based on the illustrated embodiment, the following will combine Figure 7 This application describes the wallpaper display method flow provided in its embodiments. This application applies this method to an electronic device, which then... Figure 6 The following is an example of the implementation of multiple module interactions, which may include some or all of the following:
[0119] S701: The wallpaper editing module receives wallpaper settings from users.
[0120] The wallpaper setting action triggers the setting of multiple user-selected wallpapers as the lock screen wallpaper. In one example, the maximum number of lock screen wallpapers can be configured, such as 30.
[0121] Wallpaper setting operations can include one or more actions. For example, the user follows... Figure 3 and Figure 4 The process shown triggers the electronic device to set wallpaper 1, wallpaper 2, wallpaper 3 and wallpaper 4 as the lock screen wallpaper. In this case, the wallpaper setting operation includes selecting the lock screen wallpaper and clicking the "Done" control 35 in the wallpaper setting interface S4.
[0122] Optionally, the wallpaper setting operation may also include one or more of the following: previewing the lock screen wallpaper, editing the lock screen wallpaper, adding or removing lock screen wallpapers, and changing the order of lock screen wallpapers. The previewing lock screen wallpaper operation refers to triggering the electronic device to switch between displaying preview images of different lock screen wallpapers when the electronic device is displaying a preview image of the lock screen wallpaper. For example, see [link to example]. Figure 4 In Figure (a), the user can swipe left and right in the preview area 41 to trigger the electronic device to display preview images of different lock screen wallpapers from the lock screen wallpaper set in the preview area 41. Editing lock screen wallpapers includes operations such as editing the clock, lock screen wallpaper, etc. For example, see [link to example]. Figure 4 As shown in Figure (b) on page 401, users can edit one or more of the clock style, clock font, and clock color. Adding or removing lock screen wallpapers includes adding and deleting wallpapers, for example, see [link to example]. Figure 3 In Figure (f) above, users can add or remove lock screen wallpapers based on page 301. Modifying the lock screen wallpaper order refers to changing the selection order of the lock screen wallpapers; for example, see [link to example]. Figure 3 In diagram (f), users can select lock screen wallpapers in sequence according to their actual needs based on page 301.
[0123] S702: The wallpaper editing module writes the lock screen wallpaper set and wallpaper configuration information to the data persistence module.
[0124] It is understood that the lock screen wallpaper collection includes multiple wallpapers selected by the user. For example, see... Figure 3 In (f), the lock screen wallpaper set includes wallpaper 1, wallpaper 2, wallpaper 3 and wallpaper 4 selected by the user.
[0125] Each lock screen wallpaper in the lock screen wallpaper collection (i.e., the wallpaper selected by the user) has a corresponding wallpaper index. As an example, the wallpaper index of each lock screen wallpaper may include the wallpaper ID and / or wallpaper name.
[0126] Optionally, each lock screen wallpaper's wallpaper index includes a sequence number, which indicates the switching order of the corresponding lock screen wallpapers when the scene is not triggered. Optionally, the sequence numbers corresponding to the lock screen wallpapers in the lock screen wallpaper set can be generated by default based on the wallpaper selection order when the user selects wallpapers as lock screen wallpapers. For example, the wallpaper index of wallpaper 1 is preset_wallpaper_unit_ext_01_01, the wallpaper index of wallpaper 2 is preset_wallpaper_unit_ext_01_02, the wallpaper index of wallpaper 3 is preset_wallpaper_unit_ext_01_03, and the wallpaper index of wallpaper 4 is preset_wallpaper_unit_ext_01_04, where the last two digits of the wallpaper index of each lock screen wallpaper are its corresponding sequence number, that is, the sequence number of wallpaper 1 is 01, the sequence number of wallpaper 2 is 02, the sequence number of wallpaper 3 is 03, and the sequence number of wallpaper 4 is 04. Thus, when no scene is triggered, the order in which electronic devices switch lock screen wallpapers is: Wallpaper 1 -> Wallpaper 2 -> Wallpaper 3 -> Wallpaper 4.
[0127] The wallpaper configuration information written by the wallpaper editing module to the data persistence module includes the wallpaper configuration information of each lock screen wallpaper in the lock screen wallpaper set. The wallpaper configuration information of any lock screen wallpaper includes the wallpaper style, clock style, clock font, clock color, etc. of that lock screen wallpaper.
[0128] In one example, the wallpaper configuration information for each lock screen wallpaper can exist in the form of a configuration file, such as a JSON file; that is, the wallpaper configuration information exists in multiple configuration files. For example, the wallpaper configuration information for a lock screen wallpaper includes, but is not limited to, the following:
[0129] {
[0130] "widgetAxis": "480,290",
[0131] "widgetType": "DIGITAL_CLOCK_VERTICAL_TYPE",
[0132] "fontcolor": "#FFFFFF",
[0133] "widgetWidth": 156,
[0134] "widgetHeight": 156 ......
[0136] }
[0137] The configuration file for each lock screen wallpaper can be named using the wallpaper index. For example, the JSON file corresponding to wallpaper 1 could be named preset_wallpaper_unit_ext_01_01. This means that the wallpaper configuration information for each lock screen wallpaper can be indexed using the wallpaper index. Of course, the wallpaper configuration information for each lock screen wallpaper can also be indexed using other information, such as the default ID. This embodiment of the application does not limit this approach.
[0138] It should be noted that this embodiment of the application illustrates the example where the wallpaper configuration information for each lock screen wallpaper exists in an independent configuration file. In another example, the wallpaper configuration information for all lock screen wallpapers in the lock screen wallpaper set can also be recorded in the same configuration file, and divided in the configuration file according to the wallpaper index of each lock screen wallpaper. This embodiment of the application does not limit the form in which the wallpaper configuration information exists.
[0139] In one example, the wallpaper editing module can store lock screen wallpaper sets and wallpaper configuration information in a specific data format into the data persistence module. Furthermore, it can store them in a specified directory within the data persistence module. The specific data format and the specified directory can be set according to actual needs; for example, the specified directory can be used only to store lock screen wallpaper-related data.
[0140] It is worth noting that storing the lock screen wallpaper set and wallpaper configuration information in the data persistence module can prevent data loss after the electronic device is restarted or shut down.
[0141] S703: The wallpaper editing module sends a lock screen change notification to the information detection module.
[0142] After setting the lock screen wallpaper, the wallpaper editing module notifies the scene recommendation module to change the wallpaper. As an example, the wallpaper editing module sends a lock screen change notification to the scene recommendation module, instructing it to change the wallpaper. The scene recommendation module receives the lock screen change notification from the wallpaper editing module through the information detection module and performs operations such as wallpaper changes, as detailed below.
[0143] S704: The information detection module obtains the wallpaper index set and preset configuration information from the data persistence module.
[0144] The wallpaper index set includes the wallpaper index for each lock screen wallpaper in the user-set lock screen wallpaper set.
[0145] The preset configuration information can be pre-set by technical personnel according to actual needs. As an example, the preset configuration information mainly includes the main scene, the sub-scene, and the matching rules for the sub-scene. The main scene includes one or more sub-scenes. The main scene is a classification and summary of all sub-scenes. The sub-scene refers to a specific scene. In the embodiments of this application, the scenes all refer to sub-scenes.
[0146] As an example, and not a limitation, the main scenarios include four categories: general default scenarios, personal scenarios, holiday scenarios, and nature scenarios. In implementation, these four main scenarios can be set as hexadecimal numbers, for example, as shown in Table 1:
[0147] Table 1
[0148] Main scene VALUE illustrate DEFAULT_SCENE 0x0000 General default scenario PERSONAL_SCENE 0x1000 Personal Scene CULTURAL_SCENE 0x2000 Holiday scenes ENVIRONMENT_SCENE 0x3000 Natural Scene
[0149] The general default scene does not include secondary scenes. In other words, if no scene associated with the lock screen wallpaper is triggered, the electronic device can be considered to be in the general default scene. As an example, in the general default scene, the electronic device switches wallpapers according to the order indicated by the lock screen wallpaper numbers in the lock screen wallpaper set.
[0150] Personal scenarios include sub-scenarios related to the user profile, such as personal scenarios including but not limited to birthdays, exercise, sleep, etc.
[0151] Festival scenarios include sub-scenarios related to holidays, solar terms, etc., such as festival scenarios including but not limited to festivals, solar terms, locations, etc.
[0152] Natural scenes include sub-scenes related to natural phenomena, such as weather, sunrise, and sunset.
[0153] It should be noted that the four scenarios mentioned above are merely exemplary. In another example, other main scenarios can also be set, and this application embodiment does not limit this.
[0154] Each sub-scene within the main scene is configured with corresponding matching rules. For example, some sub-scenes are configured to match based on time information; further, they can be configured to match based on time information such as days, lunar calendar, or traditional Chinese calendar. Other sub-scenes can be configured to match based on wallpaper element information. In the application, the matching rules for each sub-scene can be configured and updated according to the capabilities supported by the electronic device. As an example, the matching rules for sub-scenes can be set through data structures. For example, see Table 2, which illustrates the data structures for matching rules for several sub-scenes according to an exemplary embodiment:
[0155] Table 2
[0156]
[0157]
[0158] As can be seen from Table 2, each sub-scene has corresponding matching rules. For example, the data structure of the matching rules for the sub-scene "birthday" is as follows:
[0159] [{pickType:'Day'
[0160] dayType:'ChinaCalendar'
[0161] },{pickType:'Day'
[0162] dayType:'Calendar'
[0163] },{pickType:'Content'
[0164] Contents:'Birthday'}]
[0165] Here, `pickType` represents the matching rule type, for example, `pickType:'Day'` means matching by day, where `Day` represents a day; `dayType` represents the time type, which generally includes the lunar calendar (Chinese calendar) and the solar calendar. For example, `ChinaCalendar` represents the lunar calendar, so `dayType:'ChinaCalendar'` means matching based on the lunar calendar date; `Calendar` represents the solar calendar, so `dayType:'Calendar'` means matching based on the solar calendar date; `contents` represents the scene feature, which can be matched based on wallpaper element information. When the scene feature includes multiple strings, they can be separated by commas. `Contents:'Birthday'` means that if a lock screen wallpaper includes wallpaper elements related to "birthday," such as a birthday cake, then the lock screen wallpaper is associated with the "birthday" sub-scene. In one example, the scene feature can be represented by Chinese or English characters. For example, see Table 2, the "birthday" scene feature can be represented as "BIRTHDAY".
[0166] It should be noted that the above-mentioned sub-scenes are merely exemplary. In another example, each main scene may also include other sub-scenes, such as running, swimming, windy, typhoon, meeting, packaged, music, solar terms, and local. The matching rules for each sub-scene can be set according to actual needs, and this application embodiment does not limit this.
[0167] After receiving the lock screen change notification sent by the wallpaper editing module, the information detection module obtains the wallpaper index of all lock screen wallpapers (i.e., lock screen wallpaper set) set by the user triggered by the electronic device from the data persistence module, and obtains the preset configuration information so as to facilitate subsequent wallpaper display and scene matching based on the wallpaper index set and preset configuration information.
[0168] Optionally, in addition to obtaining the wallpaper index set, the information detection module also obtains relevant information about the wallpaper configuration items of the lock screen wallpapers in the lock screen wallpaper set. The relevant information about any wallpaper configuration item can include information such as the index and storage location of that wallpaper configuration item. The storage location is used to indicate the storage location of the corresponding wallpaper configuration item in the data persistence module.
[0169] As an example, after the information detection module obtains relevant information such as the wallpaper index set, preset configuration information, and wallpaper configuration item information from the data persistence module, it can store this information in a designated storage space. This designated storage space can be set according to actual needs. Optionally, the scene information management module and the information detection module can share the designated storage space, meaning the scene information management module can also access this designated storage space. Thus, if the scene information management module needs to use the wallpaper index set when performing scene matching, it can directly obtain it from the designated storage space.
[0170] S705: The information detection module sends a scene information generation instruction to the scene information management module.
[0171] As an example, the scene information generation instruction is used to instruct the scene information management module to generate scene configuration item information. As mentioned above, the scene configuration item information is used to characterize the association between the lock screen wallpaper and the scene. For example, the scene configuration item information may include the wallpaper index and the corresponding scene features, and the scene features are used to uniquely indicate a scene.
[0172] The specific implementation of the scene information management module in response to the scene information generation command to generate scene paper configuration item information can be found in S707 below.
[0173] S706: The information detection module sends wallpaper index 1 to the wallpaper switching display module.
[0174] Wallpaper Index 1 is the first lock screen wallpaper selected by the user in the lock screen wallpaper collection.
[0175] As an example, the information detection module can determine the wallpaper index containing the smallest sequence number from the wallpaper index set, thus obtaining wallpaper index 1. That is, wallpaper index 1 is the wallpaper index containing the smallest sequence number in the wallpaper index set. See, for example... Figure 3In diagram (f), when the user selects wallpapers as lock screen wallpapers according to the order shown in the diagram, the wallpaper index of wallpaper 1 contains the smallest sequence number. In this case, the information detection module determines that wallpaper index 1 is the wallpaper index of wallpaper 1. That is, the information detection module sends the wallpaper index of wallpaper 1 to the wallpaper switching display module, such as sending preset_wallpaper_unit_ext_01_01.
[0176] After the information detection module sends wallpaper index 1 to the wallpaper switching and display module, the wallpaper switching and display module determines wallpaper index 1 as the wallpaper index of the lock screen wallpaper to be displayed. That is, after the user triggers the electronic device to set the lock screen wallpaper, if no scene is triggered, or if the wallpaper switching and display module does not receive an updated wallpaper index after the information detection module sends wallpaper index 1, then when the user triggers the electronic device to display the lock screen wallpaper, the wallpaper switching and display module will display the corresponding lock screen wallpaper based on wallpaper index 1. For example, after the user sets the lock screen wallpaper, the electronic device screen turns off, and then the screen turns on. If no scene is triggered, the information detection module displays the lock screen wallpaper corresponding to wallpaper index 1. This embodiment is described using a currently triggered scene as an example; see below for details.
[0177] Optionally, in addition to sending wallpaper index 1 to the wallpaper switching and display module, the information detection module also sends relevant information about the wallpaper configuration items corresponding to wallpaper index 1 to the wallpaper switching and display module. This allows the wallpaper switching and display module to obtain the corresponding wallpaper configuration item information from the data persistence module based on the relevant information about the wallpaper configuration item information corresponding to wallpaper index 1 when displaying the lock screen wallpaper corresponding to wallpaper index 1, thereby correctly displaying the lock screen wallpaper corresponding to wallpaper index 1 according to the wallpaper configuration item information.
[0178] It should be noted that there is no strict execution order between S705 and S706. In one example, the two operations S705 and S706 can be executed in parallel, and this embodiment of the application does not limit this.
[0179] S707: The scene information management module determines the scene configuration items of the lock screen wallpaper set based on the preset configuration information.
[0180] After receiving the scene information generation instruction sent by the information detection module, the scene information management module determines which lock screen wallpapers in the lock screen wallpaper set are associated with certain scenes, and what those associated scenes are, based on the preset configuration information, and then determines the scene configuration item information.
[0181] As an example, see Figure 8The scene information management module associates scenes based on preset configuration information to determine the specific implementation of scene configuration items for the lock screen wallpaper set. This can include the following steps (7071-7077):
[0182] 7071. The scene information management module obtains the preset configuration information and the wallpaper index list corresponding to the lock screen wallpaper set.
[0183] The wallpaper index list includes the wallpaper index for each lock screen wallpaper in the lock screen wallpaper collection.
[0184] As mentioned earlier, the scene information management module and the information detection module share a designated storage space. The designated storage space stores preset configuration information and the wallpaper index of each lock screen wallpaper in the lock screen wallpaper set. Therefore, the scene information management module can directly obtain the preset configuration information from the designated storage space, as well as the wallpaper index of each lock screen wallpaper in the user-set lock screen wallpaper set, to obtain the wallpaper index list corresponding to the lock screen wallpaper set.
[0185] 7072. The scene information management module traverses the sub-scenes in the preset configuration information.
[0186] The scene information management module can traverse the sub-scenes in the preset configuration information according to preset traversal rules. For example, it can traverse based on the main scene. Taking a main scene that includes personal scenes, holiday scenes, and nature scenes as an example, the scene information management module can first traverse the sub-scenes under the personal scene, then traverse the sub-scenes under the holiday scene, and then traverse the sub-scenes under the nature scene. This application embodiment does not limit the order in which the scene information management module traverses the main scene.
[0187] It's understandable that since the general default scene doesn't include sub-scenes, it's not necessary to traverse the general default scene during the iteration process.
[0188] 7073. Each time the scene information management module traverses to a sub-scene, it determines whether there exists a subset of lock screen wallpapers in the lock screen wallpaper set that satisfies the matching rules of the currently traversed sub-scene, based on the wallpaper index list and the matching rules of the currently traversed sub-scene.
[0189] Each time the scene information management module traverses to a sub-scene, it determines the matching rules for the currently traversed sub-scene from the preset configuration information. Then, it parses these matching rules and, based on the parsing results and the wallpaper index list, determines whether a subset of lock screen wallpapers in the lock screen wallpaper set exists that satisfies the matching rules of the currently traversed sub-scene. In other words, the wallpaper features of the lock screen wallpapers in the subset satisfy the matching rules of the currently traversed sub-scene.
[0190] In one possible scenario, the matching rules for the currently traversed sub-scene may include time matching rules. For example, as shown in Table 2, the matching rules for the "birthday" sub-scene include time matching rules, which are as follows:
[0191] {pickType:'Day'
[0192] dayType:'ChinaCalendar'
[0193] },{pickType:'Day'
[0194] dayType:'Calendar'}
[0195] In another possible scenario, the matching rules for the currently traversed sub-scene may not include time matching rules. For example, as shown in Table 2, the matching rules for the "Motion" sub-scene do not include time matching rules. The implementation processes by the scene information management module to determine whether a subset of lock screen wallpapers in the lock screen wallpaper set satisfies the matching rules of the currently traversed sub-scene differ for these two possibilities. These will be explained separately below:
[0196] In the first scenario, the matching rules for the currently traversed sub-scene do not include time matching rules. In this case, the scene information management module parses the matching rules for the currently traversed sub-scene, separates the contents using commas, and converts the matching rules for the currently traversed sub-scene into a scene feature set. Then, based on the wallpaper index list and the scene feature set, the scene information management module determines, by calling the fusion service, whether there exists a subset of lock screen wallpapers in the lock screen wallpaper set that satisfies the matching rules for the currently traversed sub-scene.
[0197] For example, the scene information management module iterates through the scene features in the scene feature set. Upon encountering a scene feature, the module can call the fusion service query interface provided by the fusion service, passing in a list of wallpaper indexes and the currently encountered scene feature. The fusion service then matches the data in the dataset. If the matching determines that a lock screen wallpaper containing the currently encountered scene feature exists, the fusion service returns the wallpaper index of each lock screen wallpaper containing that feature. The scene information management module records the correspondence between the currently encountered scene feature and each wallpaper index returned by the fusion service, and then continues iterating through the next scene feature in the scene feature set. If no lock screen wallpaper containing the currently encountered scene feature exists, the fusion service can return a null value (NULL), and the scene information management module continues iterating through the next scene feature in the feature set. This process continues until the scene feature set is completely traversed. The scene information management module then deduplicates all wallpaper indices returned by the fusion service, and determines the set of lock screen wallpapers corresponding to the deduplicated wallpaper indices as the lock screen wallpaper subset.
[0198] In the above implementation process, the specific implementation of the fusion service matching and returning matching results in the dataset includes: Since the dataset maintained by the fusion service includes the mapping relationship between wallpaper indexes and at least one wallpaper feature, each time the scene information management module calls the fusion service query interface provided by the fusion service, after passing in the wallpaper index list and the currently traversed scene feature, the fusion service traverses the wallpaper indexes in the wallpaper index list. For each wallpaper index traversed, it queries at least one wallpaper feature corresponding to the currently traversed wallpaper index from the recorded mapping relationship between wallpaper indexes and wallpaper features. It then checks whether there is a wallpaper feature related to the scene feature passed in by the scene information management module among the at least one wallpaper feature corresponding to the currently traversed wallpaper index. If it exists, the fusion service marks the currently traversed wallpaper index and continues to traverse the next wallpaper index in the wallpaper index list. If it does not exist, the fusion service does not mark the currently traversed wallpaper index and continues to traverse the next wallpaper index in the wallpaper index list. This continues until the traversal of the wallpaper index list is completed, at which point the fusion service returns the marked wallpaper index to the scene information management module. The marked wallpaper index is the wallpaper index of the lock screen wallpaper containing the currently traversed scene feature. Of course, if there is no tagged wallpaper index, it means that there is no lock screen wallpaper in the lock screen wallpaper set that matches the scene features passed in this time. In this case, the fusion service can return a null value (NULL).
[0199] To facilitate understanding, we will use the "rain" sub-scene as an example to illustrate the following. According to Table 2, the matching rules for the currently traversed sub-scene are as follows:
[0200] [{pickType:'Content'
[0201] Contents: 'Rain', 'Natural Scenery'
[0202] The scene information management module parses the matching rules of the currently traversed sub-scene and converts these rules into a scene feature set, which includes two scene features: "rain" and "natural scenery." The scene information management module then iterates through this scene feature set. For example, when it encounters "rain," the module calls the fusion service query interface provided by the fusion service, passing in "rain" and a list of wallpaper indexes, such as the wallpaper indexes for wallpapers 1, 2, 3, and 4. Accordingly, the fusion service iterates through the wallpaper index list. When it encounters the wallpaper index for wallpaper 1, based on the mapping relationship between wallpaper indexes and wallpaper features in the dataset, it queries whether at least one wallpaper feature corresponding to the wallpaper index of wallpaper 1 includes the "rain" scene feature. If the query finds that at least one wallpaper feature for wallpaper 1 does not contain a wallpaper feature related to "rain," the fusion service continues to iterate through the wallpaper index list. When iterating to the wallpaper index of Wallpaper 2, based on the mapping relationship between wallpaper indices and wallpaper features in the dataset, the service checks whether at least one wallpaper feature corresponding to the wallpaper index of Wallpaper 2 includes the "rain" scene feature. The query finds that no wallpaper feature related to "rain" exists in at least one wallpaper feature of Wallpaper 2, and the fusion service continues iterating through the wallpaper index list. When iterating to the wallpaper index of Wallpaper 3, the service checks whether at least one wallpaper feature corresponding to the wallpaper index of Wallpaper 3 includes the "rain" scene feature. The query finds that no wallpaper feature related to "rain" exists in at least one wallpaper feature of Wallpaper 3, and the fusion service continues iterating through the wallpaper index list. When iterating to the wallpaper index of Wallpaper 4, the service checks whether at least one wallpaper feature corresponding to the wallpaper index of Wallpaper 4 includes the "rain" scene feature. The query finds that no wallpaper feature related to "rain" exists in at least one wallpaper feature of Wallpaper 4. Since the traversal of the wallpaper index list ends at this point, the fusion service returns a null value (NULL).
[0203] The scene information management module continues its iteration. When it reaches "Natural Scenery," it calls the fusion service query interface provided by the fusion service, passing in "Natural Scenery" and the wallpaper index list. Correspondingly, the fusion service iterates through the wallpaper index list. When it reaches the wallpaper index of Wallpaper 1, based on the mapping relationship between wallpaper indices and wallpaper features in the dataset, it queries whether at least one wallpaper feature corresponding to the wallpaper index of Wallpaper 1 includes the "Natural Scenery" scene feature. If no wallpaper feature related to "Natural Scenery" is found in at least one wallpaper feature of Wallpaper 1, the fusion service continues iterating through the wallpaper index list. Similarly, when it reaches the wallpaper index of Wallpaper 2, based on the mapping relationship between wallpaper indices and wallpaper features in the dataset, it queries whether at least one wallpaper feature corresponding to the wallpaper index of Wallpaper 2 includes the "Natural Scenery" scene feature. If no wallpaper feature related to "Natural Scenery" is found in at least one wallpaper feature of Wallpaper 2, the fusion service continues iterating through the wallpaper index list. When iterating to the wallpaper index of wallpaper 3, based on the mapping relationship between wallpaper indices and wallpaper features in the dataset, the service checks whether at least one wallpaper feature corresponding to the wallpaper index of wallpaper 3 includes the "natural scenery" scene feature. If at least one wallpaper feature of wallpaper 3 is found to be related to "natural scenery," the fusion service marks the wallpaper index of wallpaper 3 and continues traversing the wallpaper index list. When iterating to the wallpaper index of wallpaper 4, based on the mapping relationship between wallpaper indices and wallpaper features in the dataset, the service checks whether at least one wallpaper feature corresponding to the wallpaper index of wallpaper 4 includes the "natural scenery" scene feature. If at least one wallpaper feature of wallpaper 4 is found to be unrelated to "natural scenery," the fusion service returns the marked wallpaper index, i.e., the wallpaper index of wallpaper 3.
[0204] At this point, the traversal of the scene feature set is complete. The scene information management module then organizes all wallpaper indexes returned by the fusion service to determine the lock screen wallpaper subset. After organization, the scene information management module determines that the lock screen wallpaper subset includes wallpaper 3.
[0205] In the second scenario, the matching rules for the currently traversed sub-scene include time matching rules. In this case, the scene information management module, in addition to separating the contents with commas and converting the matching rules of the currently traversed sub-scene into a scene feature set, also obtains the corresponding time information based on the time matching rules in the currently traversed sub-scene's matching rules, and adds the time information as a scene feature to the scene feature set. Afterwards, based on the wallpaper index list and the scene feature set, the scene information management module determines whether there exists a subset of lock screen wallpapers in the lock screen wallpaper set that satisfies the matching rules of the currently traversed sub-scene by calling the fusion service.
[0206] Time information may include a specific date and / or time point, such as a day in the Gregorian or Lunar calendar; or, time information may also be a time range, such as see [link to relevant documentation]. Figure 9 It can divide a year into multiple time periods by day, and determine the time information from multiple time periods based on the time matching rules corresponding to the current traversed sub-scene. For example, the time information corresponding to New Year's Day is a time period, which includes three days.
[0207] In one example, the scene information management module can retrieve the required time information from the calendar application based on the time matching rules in the matching rules of the currently traversed sub-scene. For instance, to retrieve the Mid-Autumn Festival time information, if the time matching rule indicates that it should be retrieved according to the lunar calendar date, the scene information management module calls the interface provided by the calendar application to retrieve the Mid-Autumn Festival time information from the calendar application, which is the lunar calendar date.
[0208] In another example, the scene information management module can also obtain the required time information in other ways. For instance, to obtain birthday time information, since users usually fill in their birthday time information when registering a new device, when it is necessary to obtain birthday time information, the scene information management module can obtain the birthday time information added by the user when registering a new device according to the birthday time matching rules, such as obtaining the lunar calendar date and / or the solar calendar date.
[0209] For example, if the current sub-scene encountered is the "birthday" scene, according to Table 2, the matching rules for the "birthday" scene are as follows:
[0210] [{pickType:'Day'
[0211] dayType:'ChinaCalendar'
[0212] },{pickType:'Day'
[0213] dayType:'Calendar'
[0214] },{pickType:'Content'
[0215] Contents:'Birthday'}]
[0216] After parsing the matching rules of the currently traversed sub-scene, the scene information management module determines that the scene feature in the matching rules of the currently traversed sub-scene includes "birthday". Additionally, the matching rules of the currently traversed sub-scene also include time matching rules, which indicate matching by day and that the time type includes both Gregorian and Lunar calendars. The scene information management module performs matching by day, obtaining both Gregorian and Lunar calendar time information related to the birthday. For example, if the obtained Gregorian calendar time information is t1 and the obtained Lunar calendar time information is t2, the wallpaper information management module uses time information t1 and time information t2 as scene features, combining them with the "birthday" scene feature to form a scene feature set. That is, the scene feature set includes time information t1, time information t2, and the "birthday" scene feature.
[0217] After adding the acquired time information to the scene feature set, the scene information management module, while traversing the scene feature set, calls the fusion service query interface provided by the fusion service when it encounters time information, passing in the time information and a list of wallpaper indexes. Correspondingly, the fusion service traverses the wallpaper index list. Each time a wallpaper index is encountered, it queries the dataset to see if the passed time information contains the wallpaper time information corresponding to the currently traversed wallpaper index. If it does, the currently traversed wallpaper index is marked, and the traversal of the wallpaper index list continues. After traversing the wallpaper index list, if a marked wallpaper index exists, the fusion service returns the marked wallpaper index and its corresponding wallpaper time information to the scene information management module. At this time, the scene information management module records the correspondence between the returned wallpaper index and wallpaper time information. Otherwise, if no marked wallpaper index exists, the fusion service returns a null value to the scene information management module.
[0218] For example, continuing with the above example, when the scene information management module iterates through the scene feature set and reaches time information t1, it calls the fusion service query interface provided by the fusion service, passing in time information t1 and a list of wallpaper indexes. The fusion service iterates through the wallpaper index list, which may include the wallpaper indexes of wallpaper 1, wallpaper 2, wallpaper 3, and wallpaper 4. When it reaches the wallpaper index of wallpaper 1, it queries the dataset to see if time information t1 contains the wallpaper time information of wallpaper 1. After the query, it determines that time information t1 does not contain the wallpaper time information of wallpaper 1, and the fusion service continues to iterate through the wallpaper index list. When it reaches the wallpaper index of wallpaper 2, it queries the dataset to see if time information t1 contains the wallpaper time information of wallpaper 2. After the query, it determines that time information t1 does not contain the wallpaper time information of wallpaper 2, and the fusion service continues to iterate through the wallpaper index list. When iterating to the wallpaper index of wallpaper 3, the service queries the dataset to see if time information t1 contains the wallpaper time information of wallpaper 3. The query determines that time information t1 does not contain the wallpaper time information of wallpaper 3, and the fusion service continues to traverse the wallpaper index list. When iterating to the wallpaper index of wallpaper 4, the service queries the dataset to see if time information t1 contains the wallpaper time information of wallpaper 4. The query determines that time information t1 contains the wallpaper time information of wallpaper 4, and the fusion service marks the wallpaper index of wallpaper 4. At this point, the traversal of the wallpaper index list ends, so the fusion service returns the marked wallpaper index and its corresponding wallpaper time information, i.e., it returns the wallpaper index and wallpaper time information of wallpaper 4. The scene information management module records the correspondence between the wallpaper index and wallpaper time information of wallpaper 4.
[0219] The scene information management module continues its iteration. When it reaches time information t2, it calls the fusion service query interface provided by the fusion information service, passing in time information t2 and the wallpaper index list. When it reaches the "birthday" scene feature, it calls the fusion service query interface provided by the fusion information service, passing in the "birthday" scene feature and the wallpaper index list. Correspondingly, each time the fusion service is called, it iterates through the wallpaper index list according to the above process, performing a match during the iteration to determine if there is a wallpaper index that matches the passed-in scene feature, and providing feedback based on the matching result. For a detailed implementation, please refer to the matching process for time information t1; it will not be described in detail here.
[0220] It should be noted that the embodiments of this application are illustrated by taking the determination of the wallpaper time information of the lock screen wallpaper through the fusion service as an example. In another example, if the wallpaper index of the lock screen wallpaper in the lock screen wallpaper set includes wallpaper time information, the scene information management module can directly determine which lock screen wallpapers in the lock screen wallpaper set have wallpaper time information that matches the time information corresponding to the currently traversed sub-scene based on the wallpaper index, without having to call the fusion service for querying. This can reduce the calls to the fusion service query interface.
[0221] It should also be noted that this embodiment of the application illustrates the scenario where the scene information management module passes in the currently traversed scene features and wallpaper index list every time it calls the fusion service query interface provided by the fusion service. In another example, with the wallpaper index list remaining unchanged, it is also possible to pass in the wallpaper index list only when calling the fusion service query interface provided by the fusion service for the first time. In subsequent traversals, only the currently traversed scene features are passed in, meaning that the wallpaper index list does not need to be passed in every time, thus reducing the amount of data transmitted through the interface.
[0222] If there is a subset of lock screen wallpapers in the lock screen wallpaper set that meets the matching rules of the currently traversed sub-scene, the scene information management module proceeds to step 7074 to associate the lock screen wallpapers in the subset with a scene; otherwise, if there is no subset of lock screen wallpapers in the lock screen wallpaper set that meets the matching rules of the currently traversed sub-scene, the scene information management module proceeds to step 7077 to continue matching the next sub-scene.
[0223] 7074. The scene information management module iterates through the wallpaper indices of the lock screen wallpapers in the determined subset of lock screen wallpapers.
[0224] 7075. The Scene Information Management Module establishes the scene information data structure corresponding to each lock screen wallpaper index iterates through.
[0225] The scene information data structure records all scene features associated with the wallpaper index. Optionally, each scene feature in the scene information data structure corresponds to a main scene. The scene information data structure may also include wallpaper time information corresponding to the wallpaper index.
[0226] As mentioned above, after the fusion service returns the wallpaper index, the scene information management module records the correspondence between the lock screen wallpaper returned by the fusion service and the scene features, or the correspondence between the wallpaper index returned by the fusion service and the wallpaper time information. Therefore, the scene information management module can organize the recorded data and establish the scene information data structure corresponding to the wallpaper index based on the organized data.
[0227] It's understandable that a lock screen wallpaper's wallpaper index might be associated with one or more scene features. For example, a lock screen wallpaper might only be associated with the "natural scenery" scene feature, or it might be associated with both "natural scenes" and "birthday." As an example, the scene information management module can establish a scene information data structure corresponding to the wallpaper index based on the main scene to which the sub-scenes associated with the scene features belong. For instance, in the scene information data structure, the sub-scenes associated with the wallpaper index can be categorized according to the main scene, and each associated scene feature under the sub-scene can be recorded.
[0228] Furthermore, if the wallpaper index is also associated with wallpaper time information, the scene information management module also records the wallpaper time information in the scene information data structure associated with the wallpaper index.
[0229] For example, the scene information data structure of a lock screen wallpaper is as follows:
[0230] {
[0231] DAY: '2010-10-10'
[0232] PERSONAL_SCENE:'BIRTHDAY','SPORT',
[0233] CULTURAL_SCENE:'NewYear',
[0234] ENVIRONMENT_SCENE:'RAIN'
[0235] }
[0236] Among them, DAY indicates the wallpaper time information of this lock screen wallpaper; PERSONAL_SCENE indicates the sub-scene under personal scene, including 'BIRTHDAY' and 'SPORT', which are "birthday" and "sports" respectively; CULTURAL_SCENE indicates the sub-scene under holiday scene, including 'New Year', which is "New Year's Day"; ENVIRONMENT_SCENE indicates the sub-scene under nature scene, including 'RAIN', which is "rain".
[0237] 7076. The scene information management module determines whether the traversal of the lock screen wallpaper subset has ended.
[0238] If the traversal of the lock screen wallpaper subset is not yet complete, return to step 7074, that is, continue traversing the wallpaper index of the next lock screen wallpaper and create a corresponding scene information data structure for the next wallpaper index. Otherwise, if the traversal of the lock screen wallpaper subset is complete, it means that the matching of the currently traversed sub-scene has ended. In this case, proceed to step 7077.
[0239] 7077. The scene information management module determines whether the traversal of the sub-scene has ended.
[0240] If the traversal of the sub-scenes is not yet complete, return to step 7072 to continue traversing the next sub-scene. Otherwise, if the traversal of the sub-scenes is complete, the operation of associating the lock screen wallpaper with the scene ends.
[0241] It's important to note that during the traversal of sub-scenes, if it's not the first traversal, and a subset of lock wallpapers that satisfy the matching rules of the currently traversed sub-scene has been identified, the scene information management module may have already created a corresponding scene information data structure for a particular lock wallpaper within this subset during previous traversals. In this case, when traversing the subset of lock wallpapers that satisfy the matching rules of the currently traversed sub-scene and encountering that particular lock wallpaper, the relevant scene features of the currently traversed sub-scene can be directly added to the scene information data structure corresponding to that lock wallpaper, without needing to create a new scene information data structure for that lock wallpaper. In other words, each lock wallpaper can correspond to only one scene information data structure, not multiple scene information data structures.
[0242] After the above operations, the scene information management module generates scene configuration item information for some or all of the lock screen wallpapers in the lock screen wallpaper set. This scene configuration item information includes the wallpaper index of the lock screen wallpaper and the corresponding scene information data structure, thus associating scenes with some or all of the lock screen wallpapers in the set. It can be understood that each lock screen wallpaper and scene can have a one-to-N association relationship. For example, the scene features associated with the wallpaper index may involve one or more of the following: personal scene (PERSONAL_SCENE), holiday scene (CULTURAL_SCENE), and nature scene (ENVIRONMENT_SCENE). A personal scene may include one or more sub-scenes, a holiday scene may also include one or more sub-scenes, and a nature scene may include one or more sub-scenes.
[0243] For example, see Figure 10 , Figure 10This is a schematic diagram illustrating the association between each lock screen wallpaper and a scene in a lock screen wallpaper set according to an exemplary embodiment. The lock screen wallpaper set includes wallpaper 0, wallpaper 1, wallpaper 2, wallpaper 3, wallpaper 4, wallpaper 5, wallpaper 6, and wallpaper 7. After scene matching, it is determined that wallpaper 0 is associated with scene 0, wallpaper 1 is associated with scene 3, wallpaper 2 is associated with both scene 0 and scene 1, wallpaper 3 is associated with both scene 3 and scene 1, wallpaper 4 is associated with scene 1, wallpaper 5 is associated with scene 1, wallpaper 6 is associated with scene 2, and wallpaper 7 is associated with scene 2. Furthermore, the switching order of the lock screen wallpapers in the lock screen wallpaper set is: wallpaper 0 -> wallpaper 1 -> wallpaper 2 -> wallpaper 3 -> wallpaper 4 -> wallpaper 5 -> wallpaper 6 -> wallpaper 7.
[0244] It should be noted that the embodiments of this application are illustrated by taking the establishment of a scene information data structure to obtain scene configuration item information as an example. In another example, the scene features corresponding to each wallpaper index can also be recorded in other ways. For example, the scene features corresponding to each wallpaper index can be recorded in the form of a set, and the set can be bound to the wallpaper index to obtain scene configuration item information. The embodiments of this application do not limit this.
[0245] It should also be noted that the above logical judgment process is merely exemplary and does not constitute a limitation on the implementation logic of the wallpaper display method provided in the embodiments of this application. For example, the above description takes the process of first determining a subset of lock screen wallpapers and then creating a scene information data structure for each lock screen wallpaper in the subset as an example. In another example, during the traversal of scene features, the wallpaper index of the lock screen wallpaper can be bound to the associated scene features. For instance, whenever the fusion service returns a wallpaper index, the scene information management module binds the wallpaper index returned by the fusion service to the currently traversed scene features. After the traversal of scene features is completed, the scene features in the currently traversed sub-scene can be bound to the wallpaper index.
[0246] S708: The scene information management module stores scene configuration item information to the data persistence module.
[0247] It is worth mentioning that the scene information management module stores scene configuration information in the data persistence module, which can prevent the loss of scene configuration information after the electronic device is turned off or restarted. This ensures that after the electronic device is restarted, it can still match the scene based on the scene configuration information and display the lock screen wallpaper according to the scene.
[0248] S709: The scene information management module sends scene configuration item information to the information detection module.
[0249] It should be noted that there is no strict execution order between S708 and S709. In one example, the two operations S708 and S709 can be executed in parallel, and this embodiment does not limit this.
[0250] S710: The information detection module determines the target scene set based on the scene configuration item information.
[0251] The target scene set includes sub-scenes associated with lock screen wallpapers in the user's set of lock screen wallpapers.
[0252] As an example, the information detection module deduplicates the scene features involved in the scene configuration information to determine which sub-scenes are supported by the lock screen wallpapers in the user's set of lock screen wallpapers, thereby obtaining the target scene set.
[0253] Optionally, the information detection module can store the target scene set to a specified location, which can be set as needed.
[0254] S711: The information detection module determines the target data to be acquired based on the target scene set.
[0255] The target data is used to determine the current scene of the electronic device.
[0256] In other words, the information detection module determines which target data needs to be acquired based on the sub-scenes supported by the lock screen wallpaper in the target scene set, so as to determine whether the sub-scenes supported by the lock screen wallpaper in the target scene set have been triggered.
[0257] For example, after the information detection module organizes the scene configuration information, it determines that the target scene set includes three sub-scenes: "rain", "exercise" and "sleep". Thus, it can determine that the target data to be acquired includes weather-related information and motion status.
[0258] S712: The information detection module calls the interface of the weather application to obtain weather-related information.
[0259] In one example, the information detection module calls the interface provided by the weather application through the weather status detection module to obtain weather-related information.
[0260] As an example, the weather condition detection module can call the interface provided by the weather application to obtain weather-related information each time it needs to determine whether a weather scenario has been triggered. As another example, the weather condition detection module can also periodically call the interface provided by the weather application to periodically obtain weather-related information from the weather application.
[0261] S713: The information detection module registers exercise status monitoring with the sports and health application.
[0262] In one example, the information detection module registers a motion status listener with the sports and health application through the motion status detection module to monitor the user's motion status. For example, motion status includes activity, sleep, and rest.
[0263] S714: The sports and health application reports the exercise status to the information detection module.
[0264] In one example, the fitness and health application reports the user's exercise status to the exercise status detection module within the information detection module. Optionally, the fitness and health application can periodically report the user's exercise status, and the period duration can be set according to actual needs, such as a shorter duration, so that the fitness and health application reports the exercise status to the information detection module in near real-time.
[0265] It should be noted that the embodiments in this application are only used as examples to illustrate the capabilities that the scenario needs to support, including obtaining weather-related information and monitoring motion status. In another example, the capabilities that the scenario needs to support may also include others, such as obtaining birthday time information, etc., which are not limited in this embodiment.
[0266] S715: The information detection module determines the lock screen wallpaper that matches the current scene from the lock screen wallpaper set based on the target data.
[0267] As an example, see Figure 11 The specific implementation of S715 may include the following steps A1 to A10:
[0268] A1: The information detection module judges the target scene set based on the target data to determine whether there is a trigger scene set.
[0269] The trigger scene set includes the currently triggered sub-scenes in the target scene set. The trigger scene set may include one or more triggered sub-scenes.
[0270] The information detection module can determine whether there are triggered sub-scenes in the target scene set based on the currently acquired target data. If there are triggered sub-scenes in the target scene set, then all triggered sub-scenes are combined into a trigger scene set. If there are no triggered sub-scenes in the target scene set, then it is determined that there is no trigger scene set.
[0271] As an example, the information detection module can traverse the sub-scenes in the target scene set. During the traversal, for each sub-scene encountered, the target data is compared with the scene features of the currently traversed sub-scene in the scene configuration information. If the target data matches the scene features of the currently traversed sub-scene in the scene configuration information, it is determined that the traversed sub-scene has been triggered. Following this method, after the traversal is complete, it can be determined whether a set of triggered scenes exists.
[0272] For example, taking the target data including "motion" as an example, the information detection module traverses the sub-scenes in the target scene set. Each time a sub-scene is traversed, the information detection module queries the scene configuration information to see if the scene feature of the currently traversed sub-scene includes "motion". If it does, it is determined that the currently traversed sub-scene has been triggered; otherwise, it is determined that the currently traversed sub-scene has not been triggered. Following this method, after the traversal is complete, it is possible to determine whether a triggered sub-scene exists.
[0273] If a set of triggering scenarios exists, proceed to operation A2 below. Otherwise, if no set of triggering scenarios exists, proceed to operation A10.
[0274] A2: The information detection module determines whether the current scene has changed compared to the previously determined scene based on the set of triggered scenes.
[0275] If the scene change is checked for the first time after the lock screen wallpaper has been set, it can be directly determined that a scene change has occurred if a set of triggering scenes exists.
[0276] Of course, during the use of electronic devices, the system will repeatedly check whether the scene has changed. For example, after the current scene matching ends, the next scene matching will also execute S715 and subsequent operations, which will again check whether a scene change has occurred. If this is not the first time checking whether a scene change has occurred, after determining the trigger scene set, the information detection module can determine whether there is a difference between the currently determined trigger scene set and the previously determined sub-scene. If there is a difference between the currently determined trigger scene set and the previously determined sub-scene, then a scene change is determined; otherwise, if there is no difference between the currently determined trigger scene set and the previously determined sub-scene, then no scene change is determined.
[0277] For example, if the set of trigger scenarios determined this time only includes the sub-scenario determined last time, then it is determined that no scenario change has occurred; if the set of trigger scenarios determined this time does not include the sub-scenario determined last time, or if the set of trigger scenarios determined this time includes the sub-scenario determined last time as well as other sub-scenarios, then it is determined that a scenario change has occurred. For instance, if the set of trigger scenarios determined this time includes scenario 0 and scenario 1, and the sub-scenario determined last time was scenario 0, then the information detection module can determine that a scenario change has occurred. Conversely, if the set of trigger scenarios determined this time includes scenario 0, and the sub-scenario determined last time was scenario 0, then it can be determined that no scenario change has occurred.
[0278] If the scene changes, it indicates that a new scene has been triggered. In this case, the information detection module proceeds to operation A3. If the scene does not change, it indicates that no new scene has been triggered. In this case, the information detection module proceeds to operation A10.
[0279] A3: The information detection module determines whether the sub-scenes in the trigger scene set belong to the same main scene.
[0280] As mentioned earlier, each sub-scene corresponds to a main scene. Different sub-scenes may correspond to different main scenes, or they may correspond to the same main scene. After determining that a scene has changed, the information detection module can query whether the sub-scenes in the trigger scene set are in the same main scene based on the mapping relationship between the main scene and the sub-scenes.
[0281] Optionally, if scene matching is not performed for the first time after setting the lock screen wallpaper, the information detection module can also check whether the previously determined sub-scene is included in the trigger scene set before executing operation A3. If the trigger scene set does not include the previously determined sub-scene, operation A3 is executed directly; otherwise, if the trigger scene set includes the previously determined sub-scene, the information detection module deletes the previously determined sub-scene from the trigger scene set before executing operation A3, and then determines whether the sub-scenes in the deleted trigger scene set belong to the same main scene.
[0282] For example, if the current set of trigger scenarios includes scenario 0, scenario 1 and scenario 2, and the previous set of trigger scenarios included scenario 0, then the information detection module removes scenario 0 from the set of trigger scenarios and determines whether scenario 1 and scenario 2 belong to the same main scenario.
[0283] It is worth mentioning that, since the lock screen wallpaper associated with the previously identified sub-scene may have already been displayed, the information detection module removes the previously identified sub-scene from the trigger scene set after determining the trigger scene set this time, in order to avoid displaying the same lock screen wallpaper associated with the triggered sub-scene repeatedly as much as possible.
[0284] If the sub-scenes in the trigger scene set do not belong to the same main scene, proceed to operation A4 below. If the sub-scenes in the trigger scene set belong to the same main scene, proceed to operation A9 below.
[0285] A4: The information detection module determines the number of multiple triggering main scenarios.
[0286] Multiple triggering main scenes include the main scene to which the sub-scenes in the triggering scene set belong.
[0287] For example, if the set of triggered scenarios includes scenario 1 and scenario 2, where scenario 1 corresponds to main scenario 1 and scenario 2 corresponds to main scenario 2, then the number of triggered main scenarios can be determined to be 2, namely main scenario 1 and main scenario 2.
[0288] A5: The information detection module determines the weight range corresponding to each triggering main scenario based on the number of multiple triggering main scenarios and the priority of each triggering main scenario among the multiple triggering main scenarios.
[0289] If multiple triggering main scenarios exist simultaneously, the information detection module needs to select one triggering main scenario from among the multiple triggering main scenarios, so as to select one sub-scenario from the sub-scenarios triggered under the selected triggering main scenario.
[0290] As an example, multiple main scenes can be configured with corresponding priorities. For instance, technicians can set the priorities of multiple main scenes in an electronic device according to actual needs. See, for example... Figure 12 , Figure 12 This is an exemplary embodiment illustrating the priority order of personal scenarios, holiday scenarios, nature scenarios, and general default scenarios, with personal scenarios having the highest priority and general default scenarios having the lowest priority. During scenario matching, when multiple triggered main scenarios (i.e., triggering main scenarios) exist simultaneously, the information detection module can determine the weight range of each triggering main scenario based on the number of triggering main scenarios and the priority of each triggering main scenario, so as to select one triggering main scenario from among the multiple triggering main scenarios according to the weight range of each triggering main scenario.
[0291] As an example, when there are four triggering main scenarios, sorted from highest to lowest priority, the weight ranges of these four triggering main scenarios are [0,50], [51,75], [76,90], and [91,100], respectively; when there are three triggering main scenarios, sorted from highest to lowest priority, the weight ranges of these three triggering main scenarios are [0,50], [51,80], and [81,100], respectively; when there are two triggering main scenarios, sorted from highest to lowest priority, the weight ranges of these two triggering main scenarios are [0,70] and [71,100], respectively.
[0292] For example, when two triggering scenarios exist simultaneously, namely "personal scenario" and "cultural scenario," the information detection module determines that the weight ranges corresponding to these two triggering scenarios are [0,70] and [71,100], respectively. That is, the weight range of "personal scenario" is [0,70], and the weight range of "cultural scenario" is [71,100]. Similarly, when three triggering scenarios exist simultaneously, namely "personal scenario," "cultural scenario," and "natural scenario," the information detection module determines that the weights corresponding to these three triggering scenarios are [0,50], [51,80], and [81,100], respectively. That is, the weight range of "personal scenario" is [0,50], the weight range of "cultural scenario" is [51,80], and the weight range of "natural scenario" is [81,100].
[0293] A6: The information detection module determines the target triggering main scene from multiple triggering main scenes based on the weight range of each triggering main scene.
[0294] As an example, the information detection module can generate a random number, then determine the weight range of that random number, and identify the triggering main scenario corresponding to that weight range as the target triggering main scenario. For example, taking multiple triggering main scenarios including "personal scenario" and "cultural scenario" as an example, the information detection module generates a random number of 80. Since the random number 80 is within the weight range of [71, 100], the target triggering main scenario can be determined to be "cultural scenario".
[0295] A7: The information detection module selects the target sub-scene from the sub-scenes triggered under the target triggering main scene.
[0296] In one possible scenario, if there is only one triggered sub-scenario in the target triggering main scenario, the information detection module will identify this triggered sub-scenario as the target sub-scenario.
[0297] In another possible scenario, multiple secondary scenarios may be triggered within the primary scenario. In this case, the information detection module can set corresponding hit values for each of these secondary scenarios, generate a random integer within a specified numerical range, and then match the hit value that matches the random integer. The secondary scenario corresponding to the matched hit value is then designated as the target secondary scenario. The specified numerical range can be determined based on the set hit values; for example, the lower limit of the specified numerical range can be the minimum hit value, and the upper limit of the specified quantity range can be the maximum hit value.
[0298] For example, in a target triggering main scene, there exist sub-scenes 1, sub-scene 2, and sub-scene 3. The information detection module sets a hit value of 1 for sub-scene 1, a hit value of 2 for sub-scene 2, and a hit value of 3 for sub-scene 3. Then, it generates a random integer within the value range [1,3], for example, the generated random integer is 2. Since the random integer 2 is the same as the hit value of sub-scene 2, the information detection module can identify sub-scene 2 as the target sub-scene.
[0299] A8: The information detection module selects a lock screen wallpaper from the lock screen wallpapers associated with the target sub-scene as the lock screen wallpaper that matches the current scene.
[0300] In one example, if the lock screen wallpapers associated with the target sub-scene include multiple wallpapers, and these multiple lock screen wallpapers include the previously displayed lock screen wallpaper, then the information detection module randomly selects one lock screen wallpaper from the multiple lock screen wallpapers excluding the previously displayed lock screen wallpaper as the lock screen wallpaper that matches the current scene.
[0301] In one example, if there is only one lock screen wallpaper associated with the target sub-scene, the information detection module directly selects this lock screen wallpaper as the lock screen wallpaper that matches the current scene.
[0302] For example, if the lock screen wallpapers associated with the target sub-scene include wallpaper 1, wallpaper 2 and wallpaper 3, and the previously displayed lock screen wallpaper is wallpaper 1, then the information detection module randomly selects a lock screen wallpaper from wallpaper 2 and wallpaper 3 as the lock screen wallpaper that matches the current scene.
[0303] As an example, the specific implementation of the information detection module randomly selecting one lock screen wallpaper from multiple lock screen wallpapers associated with the target sub-scene can refer to the implementation of selecting one sub-scene from multiple sub-scenes under the target triggering main scene. That is, a hit value can also be set for each lock screen wallpaper, and then a random integer can be generated for selection. This application embodiment does not limit this.
[0304] A9: The information detection module selects a sub-scene from the set of triggering scenes as the target sub-scene and proceeds to the operation in A8.
[0305] In other words, if the sub-scenes in the trigger scene set belong to the same main scene, the information detection module directly selects a sub-scene from the trigger scene set and determines the selected sub-scene as the target sub-scene.
[0306] The specific implementation of the information detection module selecting a sub-scene from the set of triggering scenes can be found in operation A7. That is, it can be selected by setting a hit value for the sub-scene in the set of triggering scenes. It will not be described in detail here.
[0307] A10: When the information detection module waits for the next scenario judgment condition to be met, it will enter the operation of A1.
[0308] The above embodiment is illustrated using the existence of a set of triggering scenarios as an example. In one possible case, if there is no set of triggering scenarios, that is, if the target sub-field set is determined to have no triggered sub-scenario based on the target data, the information detection module waits for the next judgment opportunity.
[0309] Furthermore, the above explanation uses a scenario where the scene has changed as an example. In one possible scenario, after evaluation, it is determined that the scene has not changed. In this case, the information detection module must also wait for the next evaluation opportunity.
[0310] The next judgment will be made when the scenario judgment condition is met. In one possible scenario, after the user sets the lock screen wallpaper on the electronic device, the screen turns off. Every first set of time intervals after the screen turns off, the system will determine if the next scenario judgment condition is met. This first set of time intervals can be set according to actual needs, for example, 10 minutes.
[0311] Of course, the above-mentioned scenario judgment conditions are only examples. In another possible case, if the screen is not turned off after the user triggers the electronic device to set the lock screen wallpaper, the scenario judgment conditions are determined to be met every first time interval. That is, even if the screen is not turned off, scenario matching can be performed every first time interval.
[0312] In this way, electronic devices do not perform scene matching continuously, but only perform scene matching again after a certain period of time, which can reduce the power consumption of electronic devices.
[0313] It should be noted that, Figure 11 The judgment logic shown is merely exemplary and does not constitute a limitation on the scene matching method provided in the embodiments of this application. In another example, the information detection module may also perform scene matching according to other judgment logic.
[0314] S716: The information detection module sends wallpaper index 2 to the wallpaper switching display module. Wallpaper index 2 is the wallpaper index of the lock screen wallpaper that matches the current scene.
[0315] Optionally, the information detection module also sends relevant information about the wallpaper configuration items corresponding to wallpaper index 2 to the wallpaper switching display module.
[0316] For the information detection module, upon receiving a new wallpaper index (i.e., wallpaper index 2), wallpaper index 1 can be deleted so that when the user triggers the electronic device to display the lock screen wallpaper, the lock screen wallpaper corresponding to wallpaper index 2 can be displayed, for example, see the operation in S717 below.
[0317] S717: In response to a user-triggered wallpaper display operation, the wallpaper switching display module displays the lock screen wallpaper corresponding to wallpaper index 2.
[0318] User-triggered wallpaper display actions can include one or more actions. As an example, a wallpaper display action might include triggering the electronic device's screen to turn on again after the screen has already turned off.
[0319] For example, after setting the lock screen wallpaper, if the user presses the power button on the electronic device, the screen will turn off. Then, if the user presses the power button again, the screen will turn on. At this point, the wallpaper switching display module will display the corresponding lock screen wallpaper based on wallpaper index 2 on the lock screen interface.
[0320] For example, after setting the lock screen wallpaper, the user presses the power button on the device. In response to this action, the screen of the electronic device turns off. Then, the user touches the screen of the electronic device, and in response to this touch action, the screen turns on. At this time, the wallpaper switching display module displays the corresponding lock screen wallpaper on the lock screen interface based on wallpaper index 2.
[0321] For example, in a vertically foldable screen device, when the device is in the unfolded state, the inner screen displays the interface of an application. After setting the lock screen wallpaper, when the user folds the device inward, changing it from the unfolded state to the folded state, if the application displayed on the inner screen cannot be seamlessly transferred to the outer screen, the inner screen goes off, and the outer screen turns on. At this point, the wallpaper switching module displays the corresponding lock screen wallpaper on the outer screen's lock screen interface based on wallpaper index 2. In other words, the off-screen and on-screen states may correspond to different display screens.
[0322] As an example, the specific implementation of the wallpaper switching display module displaying the corresponding lock screen wallpaper based on wallpaper index 2 may include: the wallpaper switching display module obtaining the wallpaper configuration item information corresponding to wallpaper index 2 from the data persistence module based on the relevant information of the wallpaper configuration item information corresponding to wallpaper index 2, and also obtaining the lock screen wallpaper corresponding to wallpaper index 2. Then, the wallpaper switching display module displays the lock screen wallpaper corresponding to wallpaper index 2 based on the wallpaper configuration item information.
[0323] Thus, when a user triggers the screen to turn on after the electronic device has been turned off, the wallpaper switching and display module displays the corresponding lock screen wallpaper based on the updated wallpaper index, so that the displayed lock screen wallpaper matches the current scene.
[0324] It should be noted that this embodiment of the application is based on the example of a lock screen wallpaper set containing a lock screen wallpaper that matches the scene. In another example, if no lock screen wallpaper set contains a lock screen wallpaper that matches the scene, the electronic device switches the lock screen wallpaper according to the order indicated by the serial number of each lock screen wallpaper in the set.
[0325] Additionally, after displaying the lock screen wallpaper corresponding to wallpaper index 2 according to the above process, the user may trigger the electronic device to display the desktop interface and use the electronic device. Afterwards, if the user turns off the electronic device, the following operation S718 will continue to be executed.
[0326] S718: After the user triggers the screen to turn off the electronic device, the information detection module enters the operation of S715 after the first time interval.
[0327] In other words, after the screen is turned off and the first period of time has elapsed, the information detection module determines whether a scene has been triggered based on the target data, so that if a scene has been triggered, the lock screen wallpaper associated with the triggered scene can be displayed after the screen is turned on.
[0328] It should be noted that this embodiment of the application illustrates the scenario where, after a first period of time following each screen-off, the information detection module determines whether a scene has been triggered based on the target data. In another example, the information detection module can also determine whether a scene has been triggered based on the target data under other conditions, such as immediately after the screen is turned off. This embodiment of the application does not specifically limit this method.
[0329] In one possible scenario, within the first period after the screen is turned off, the user triggers the electronic device to turn on. In this case, since the time for the next scene matching has not yet arrived, the information detection module can send the next wallpaper index of wallpaper index 2 to the wallpaper switching display module based on the serial number of each lock screen wallpaper in the lock screen wallpaper set. For example, it can send wallpaper index 3 to the wallpaper switching display module so that the wallpaper switching display module can display the lock screen wallpaper corresponding to wallpaper index 3.
[0330] In one possible scenario, if the user swipes left or right on the lock screen wallpaper corresponding to wallpaper index 2 while displaying the lock screen wallpaper, the wallpaper switching display module will display the lock screen wallpaper corresponding to the previous or next wallpaper index of wallpaper index 2. That is, the method provided in this application embodiment supports the user swiping the lock screen wallpaper left or right to trigger the electronic device to switch the display of the previous or current lock screen wallpaper.
[0331] In this embodiment, when displaying a lock screen wallpaper, if a lock screen wallpaper matching the current scene exists, the lock screen wallpaper matching the current scene is displayed, avoiding always displaying a fixed lock screen wallpaper, enriching the display effect of the lock screen wallpaper, increasing its fun and user interest.
[0332] To make it easier to understand, we will now proceed by... Figure 14 and Figure 15 Two examples illustrate the wallpaper display process. Here, we use the example of a user setting wallpapers 0, 1, 2, 3, 4, 5, 6, and 7 as the lock screen wallpaper. These wallpapers 1, 2, 3, and 4 may or may not be the same as the wallpapers 1, 2, 3, and 4 mentioned above. See also... Figure 13 The electronic device determines that wallpaper 0 is associated with the "birthday" scene through scene matching, and the wallpaper time information of wallpaper 0 is t1. Wallpaper 1 has no associated scene. Wallpaper 2 is associated with the "snow" scene and the "sports" scene respectively; wallpaper 3 is associated with the "rain" scene and the "sports" scene respectively; wallpaper 4 is associated with the "sports" scene; wallpaper 5 is associated with the "birthday" scene; wallpaper 6 is associated with the "sleep" scene; and wallpaper 7 is associated with the "sleep" scene. The default display order of these wallpapers is wallpaper 0 -> wallpaper 1 -> wallpaper 2 -> wallpaper 3 -> wallpaper 4 -> wallpaper 5 -> wallpaper 6 -> wallpaper 7.
[0333] See Figure 14 , Figure 14 This is a flowchart illustrating a wallpaper display method according to an exemplary embodiment. The method is applied to an electronic device and may include some or all of the following:
[0334] S1401: In response to a wallpaper setting operation, the electronic device sets all wallpapers selected by the user as the lock screen wallpaper, including wallpaper 0, wallpaper 1, wallpaper 2, wallpaper 3, wallpaper 4, wallpaper 5, wallpaper 6 and wallpaper 7.
[0335] For instructions on setting your lock screen wallpaper, please refer to [link / reference]. Figure 7 S701 to S702 in the illustrated embodiment.
[0336] After setting the lock screen wallpaper, the electronic device defaults to designating wallpaper 0 as the lock screen wallpaper to be displayed after the screen is turned off. That is, if no scenario is currently triggered, the electronic device will display wallpaper 0 on the lock screen when the screen is turned on again after being turned off. If a scenario is currently triggered, the electronic device will cancel the designation of wallpaper 0 as the lock screen wallpaper to be displayed after the screen is turned off, and instead designate the wallpaper that matches the currently triggered scenario as the lock screen wallpaper to be displayed after the screen is turned off. This embodiment of the application uses the example of a currently triggered scenario for illustration; see below for details.
[0337] S1402: Electronic devices determine the scenes associated with the wallpapers selected by the user through scene matching.
[0338] The scenes associated with the wallpapers selected by the user can be found in [link / reference]. Figure 13 .
[0339] For details on the implementation of scene matching for electronic devices, please refer to Figure 7 S703 to S710 in the illustrated embodiment.
[0340] S1403: The electronic device determines the target data to be acquired based on the scene associated with the wallpaper selected by the user, including birthday time information, weather-related information, and motion status.
[0341] according to Figure 13 It is known that the scenarios associated with the user's set wallpaper include "birthday," "rain," "snow," "exercise," and "sleep." Based on these scenarios, electronic devices can determine the target data they need to acquire, including the birthday's time information, weather-related information, and exercise status.
[0342] S1404: Electronic device obtains the user's birthday time information.
[0343] As an example, an electronic device obtains the date and time information of the user's birthday when registering a new device, such as the date and time information of the user's birthday being t0.
[0344] S1405: Electronic devices acquire current weather-related information.
[0345] For details on how to obtain current weather-related information, please refer to [link / reference]. Figure 7S712 in the illustrated embodiment.
[0346] S1406: Electronic device monitoring motion status.
[0347] For a detailed implementation of motion state monitoring, please refer to [link / reference]. Figure 7 S713 to S714 in the illustrated embodiment.
[0348] S1407: The electronic device determines that the "birthday" scene has been triggered based on the target data currently acquired.
[0349] See Figure 13 The wallpapers associated with the "birthday" scene include wallpaper 0 and wallpaper 5. The wallpaper time information of wallpaper 0 is t1, and the wallpaper time information of wallpaper 5 is t2. The electronic device compares the birthday time information t0 with the time information t1, and also compares the time information t0 with the time information t2. By comparing and determining that the time information t0 and the time information t1 are the same, it is determined that the "birthday" scene has been triggered.
[0350] See also Figure 13 Since wallpapers 2 and 3 are also associated with the "snowing" and "raining" scenes respectively, the electronic device will also match the obtained weather-related information with "snowing" and "raining" respectively. After matching, it is determined that the current weather is neither "snowing" nor "raining", so it can be determined that neither the "raining" nor "snowing" scene has been triggered.
[0351] And see Figure 13 Since wallpapers 2, 3, and 4 are all associated with the "movement" scene, and wallpapers 6 and 7 are all associated with the "sleep" scene, the electronic device will also match the monitored motion state with "movement" and "sleep" respectively. After matching, it is determined that the current motion state is neither "movement" nor "sleep", so it can be determined that neither the "movement" nor "sleep" scene has been triggered.
[0352] S1408: In response to a screen-off operation, the electronic device selects a wallpaper from wallpaper 0 and wallpaper 1 as the lock screen wallpaper to be displayed after the screen is turned on.
[0353] For example, turning off the screen is done by pressing the power button.
[0354] Since the "birthday" scene is triggered, the lock screen wallpapers associated with the "birthday" scene include wallpaper 0 and wallpaper 1. Therefore, the electronic device selects one wallpaper from wallpaper 0 and wallpaper 1 as the lock screen wallpaper. For example, the electronic device can select randomly, such as determining wallpaper 0 as the lock screen wallpaper to be displayed after the screen is turned on.
[0355] S1409: In response to a screen-on operation, the electronic device displays wallpaper 0 on the lock screen.
[0356] For example, turning on the screen is done by pressing the power button.
[0357] When the user presses the power button again, the electronic device displays wallpaper 0 on the lock screen, which matches the current "birthday" scene.
[0358] S1410: When the screen is off, after 10 minutes, the electronic device goes through the "birthday", "rain", "snow", "exercise" and "sleep" scenarios and determines whether there is a triggered scenario based on the target data.
[0359] In one possible scenario, a user triggers the electronic device's screen to turn on, and then triggers it to turn off. As an example, 10 minutes after the screen turns off, the electronic device can again obtain the birthday time information and weather-related information, defining this time information, weather information, and currently monitored motion status as target data. Then, based on the target data, it determines whether any of the following scenarios—"birthday," "rain," "snow," "exercise," and "sleep"—have been triggered.
[0360] It should be noted that after the screen is turned off, the electronic device will by default select the next wallpaper after wallpaper 0 (i.e., wallpaper 1) as the lock screen wallpaper to be displayed when the screen is turned on again. For example, if the user triggers the electronic device to turn on the screen again within 10 minutes, the electronic device will display wallpaper 1 on the lock screen; or if after 10 minutes it is determined that no scene has been triggered, or the scene has not changed, the electronic device will still display wallpaper 1 on the lock screen.
[0361] If a triggered scenario is determined, proceed to operation S1411 as follows; if no triggered scenario is determined, wait for the next judgment opportunity.
[0362] S1411: The electronic device determines that the "birthday", "rain" and "sleep" scenarios are triggered.
[0363] Electronic devices match target data with scene features such as "birthday", "rain", "snow", "exercise" and "sleep" respectively, and determine that the "birthday", "rain" and "sleep" scenes are triggered after matching.
[0364] S1412: The electronic device determines whether a scene change has occurred.
[0365] Since the current triggering scenarios are "birthday", "rain" and "sleep", while the previous triggering scenario was "birthday", the current triggering scenario is different from the previous triggering scenario. Therefore, it can be confirmed that a scenario change has occurred.
[0366] If the scene changes, the operation proceeds to S1413. If the scene does not change, the electronic device proceeds to S1410.
[0367] S1413: After removing the previously determined "birthday" scene, the electronic device determines that the remaining triggered "rain" and "sleep" scenes belong to different main scenes.
[0368] Since the wallpaper associated with the "birthday" scene was already displayed on the lock screen last time, in order to avoid displaying the same wallpaper scene repeatedly, the electronic device can remove the previously determined "birthday" scene, and then select a scene from the remaining triggered scenes to display the wallpaper associated with the selected scene.
[0369] As an example of this application, when selecting a scene from the remaining triggered scenes, the electronic device can make the selection based on the main scene to which the triggered scene belongs. To this end, the electronic device determines whether the remaining triggered scenes belong to the same main scene. Based on the correspondence between the main scene and the sub-scene, the electronic device determines that the remaining triggered "rain" and "sleep" belong to different main scenes, where the "rain" scene belongs to the "natural environment" main scene and the "sleep" scene belongs to the "personal scene" main scene.
[0370] S1414: The electronic device selects a primary scene based on the priority of the "personal scene" primary scene and the priority of the "natural environment" primary scene.
[0371] according to Figure 7 As shown in step A5 of the illustrated embodiment, when there are two triggered main scenes, the weight range of "Personal Scene" is determined to be [0, 70] and the weight range of "Natural Environment" is [71, 100] based on the number of triggered main scenes, the priority of "Personal Scene", and the priority of "Natural Environment". The electronic device generates a random number and selects one main scene from the two main scenes based on the weight range of this random number. For example, the random number generated by the electronic device is 60. Since the random number 60 is within the weight range of [0, 70], the electronic device selects "Personal Scene".
[0372] S1415: The scenario triggered under "Personal Scenes" for electronic devices includes "Sleep".
[0373] S1416: The electronic device identifies wallpapers associated with the “sleep” scene, including wallpaper 6 and wallpaper 7.
[0374] S1417: The electronic device randomly selects a wallpaper from wallpaper 6 and wallpaper 7.
[0375] For example, after the electronic device randomly selected from wallpaper 6 and wallpaper 7, it selected wallpaper 6.
[0376] S1418: In response to a screen-on operation, the electronic device displays wallpaper 6 on the lock screen.
[0377] When a user triggers the electronic device's screen to turn on, the device displays wallpaper 6, which matches the currently triggered "sleep" scene. This ensures that the lock screen wallpaper displayed on the device matches the current scene, increasing user engagement.
[0378] See Figure 15 , Figure 15 This is a flowchart illustrating a wallpaper display method according to another exemplary embodiment. The method is applied to an electronic device and may include some or all of the following:
[0379] S1501: In response to a wallpaper setting operation, the electronic device sets all wallpapers selected by the user as the lock screen wallpaper. The wallpapers selected by the user include wallpaper 0, wallpaper 1, wallpaper 2, wallpaper 3, wallpaper 4, wallpaper 5, wallpaper 6 and wallpaper 7.
[0380] S1502: Electronic devices determine the scenes associated with the wallpapers selected by the user through scene matching.
[0381] S1503: The electronic device determines the target data to be acquired based on the scene associated with the wallpaper selected by the user, including birthday time information, weather-related information, and motion status.
[0382] according to Figure 13 It is known that the scenarios associated with the user's set wallpaper include "birthday," "rain," "snow," "exercise," and "sleep." Based on these scenarios, electronic devices can determine the target data they need to acquire, including the birthday's time information, weather-related information, and exercise status.
[0383] S1504: Electronic device obtains the user's birthday time information.
[0384] As an example, an electronic device obtains the date and time information of the user's birthday when registering a new device, such as the date and time information of the user's birthday being t0.
[0385] S1505: Electronic devices acquire current weather-related information.
[0386] For details on how to obtain current weather-related information, please refer to [link / reference]. Figure 7 S712 in the illustrated embodiment.
[0387] S1506: Electronic device monitoring motion status.
[0388] For a detailed implementation of motion state monitoring, please refer to [link / reference]. Figure 7 S713 to S714 in the illustrated embodiment.
[0389] S1507: The electronic device determines that the "birthday" scene has been triggered based on the target data currently acquired.
[0390] S1508: In response to a screen-off operation, the electronic device selects a wallpaper from wallpaper 0 and wallpaper 1 as the lock screen wallpaper to be displayed after the screen is turned on.
[0391] S1509: In response to screen-on operation, the electronic device displays wallpaper 0 on the lock screen.
[0392] For example, turning on the screen is done by pressing the power button.
[0393] When the user presses the power button again, the electronic device displays wallpaper 0 on the lock screen, which matches the current "birthday" scene.
[0394] S1510: When the screen is off, after 10 minutes, the electronic device goes through the "birthday", "rain", "snow", "exercise" and "sleep" scenarios and determines whether there is a triggered scenario based on the target data.
[0395] S1511: The electronic device determines that the "movement", "rain" and "sleep" scenarios have been triggered.
[0396] Electronic devices match target data with scene features such as "birthday", "rain", "snow", "exercise" and "sleep" respectively, and determine that the "exercise", "rain" and "sleep" scenes are triggered after matching.
[0397] S1512: The electronic device determines whether a change in scene has occurred.
[0398] Since the current triggering scenarios are "exercise," "rain," and "sleep," while the previous one was triggered by the "birthday" scenario, the current triggering scenarios differ from the previous ones, thus confirming that a scenario change has occurred.
[0399] If the scene changes, the electronic device proceeds to operation S1513. If the scene does not change, the electronic device proceeds to operation S1510.
[0400] S1513: The electronic device determines that the triggered "motion", "rain" and "sleep" belong to different main scenarios.
[0401] Based on the correspondence between the main scene and the sub-scene, the electronic device determines that the triggered movement, "rain" and "sleep" belong to different main scenes. Among them, the "rain" scene belongs to the "natural environment" main scene, while the "sleep" and "movement" scenes belong to the "personal scene" main scene.
[0402] S1514: The electronic device randomly selects a primary scene based on the priority of the "personal scene" primary scene and the priority of the "natural environment" primary scene.
[0403] according to Figure 7 As shown in step 71505 of the illustrated embodiment, when there are two main scenes being triggered, the weight range of "Personal Scene" is determined to be [0, 70] and the weight range of "Natural Environment" is [71, 100] based on the priority of "Personal Scene" and "Natural Environment". The electronic device generates a random number and selects one main scene from the two main scenes based on the weight range of this random number. For example, the random number generated by the electronic device is 60. Since the random number 60 is within the weight range of [0, 70], the electronic device selects "Personal Scene".
[0404] S1515: The scenarios triggered under "Personal Scenes" for electronic devices include "Sleep" and "Exercise".
[0405] S1516: The electronic device selects a scene from "sleep" and "movement" scenes.
[0406] For example, the electronic device can configure different hit values for the "sleep" scene and the "sports" scene respectively. For instance, the hit value can be configured as 0 for the "sleep" scene and as 1 for the "sports" scene. Then, the electronic device generates a random integer between [0,1]. For example, the generated random integer is 1. Since the random integer 1 is the same as the hit value of the "sports" scene, the electronic device selects the "sports" scene.
[0407] S1517: Electronic devices identify wallpapers associated with a "movement" scene, including wallpaper 2, wallpaper 3 and wallpaper 4.
[0408] S1518: The electronic device randomly selects a wallpaper from wallpaper 2, wallpaper 3 and wallpaper 4.
[0409] For example, the electronic device randomly selected wallpaper 6 from wallpapers 2, 3, and 4.
[0410] S1519: In response to screen-on operation, the electronic device displays wallpaper 7 on the lock screen.
[0411] When a user triggers the electronic device's screen to light up, the device displays wallpaper 7, which matches the currently triggered "motion" scene. This ensures that the lock screen wallpaper displayed on the device matches the current scene, increasing user engagement.
[0412] Figure 16 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. See also... Figure 16 The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0413] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0414] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0415] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0416] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0417] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0418] The charging management module 140 receives charging input from a charger, which can be either a wireless or wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device 100 via the power management module 141. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and powers the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc.
[0419] Electronic device 100 can realize wireless communication function through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0420] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0421] Display screen 194 is used to display images, videos, etc. As an example, when the screen of an electronic device is turned on again after being turned off, display screen 194 is used to display the lock screen wallpaper.
[0422] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0423] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions, such as saving music, video, and other files on the external memory card.
[0424] Internal memory 121 can be used to store computer-executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created by electronic device 100 during use.
[0425] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D and application processor.
[0426] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals.
[0427] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. The accelerometer 180E can also be used to identify the attitude of electronic device 100, and can be applied to applications such as screen orientation switching and pedometers.
[0428] The 180F proximity sensor is used to measure distance. The 180L ambient light sensor is used to sense ambient light levels. The 180H fingerprint sensor is used to collect fingerprints. The 180J temperature sensor is used to detect temperature.
[0429] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. Touch sensor 180K can then transmit the detected touch operation to the application processor to determine the type of touch event.
[0430] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100. For example, a user can trigger electronic device 100 to turn on or off the screen using button 190.
[0431] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback.
[0432] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0433] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0434] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered Android system as an example to illustrate the software system of electronic device 100.
[0435] Figure 2 This is a block diagram of a software system for an electronic device 100 provided in an embodiment of this application. See also... Figure 2A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer (App layer), the application framework layer (FWK layer), the hardware abstraction layer (HAL layer), and the kernel layer.
[0436] The application layer can include a series of application packages. For example... Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0437] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 2 As shown, the application framework layer can include a window manager, content providers, a view system, a phone manager, a resource manager, and a notification manager. The window manager manages window programs. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture the screen. The content provider stores and retrieves data, making this data accessible to the application. This data can include videos, images, audio, made and received phone calls, browsing history and bookmarks, and phone books. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build the application's display interface, which can consist of one or more views, such as a view displaying SMS notification icons, a view displaying text, and a view displaying images. The phone manager provides communication functions for the electronic device 100, such as managing call status (including connection and disconnection). The resource manager provides the application with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager allows the application to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager is used to notify users of download completions and message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications. Furthermore, the notification manager can appear as dialog boxes on the screen, such as displaying text messages in the status bar, emitting sounds, causing electronic devices to vibrate, or flashing indicator lights.
[0438] The Android Runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries consist of two parts: one part contains the functionalities that Java needs to call, and the other part is the core Android library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0439] The system library can include multiple functional modules, such as a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and 2D graphics engines (e.g., SGL). The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media libraries support playback and recording of various common audio and video formats, as well as still image files. The media libraries support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing libraries are used for 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D graphics.
[0440] The kernel layer is the layer between hardware and software. At a minimum, the kernel layer contains display drivers, camera drivers, audio drivers, and sensor drivers. These drivers enable the display screen, front / rear cameras, audio players, sensors, and more.
[0441] The following example, using a scene of capturing a photograph, illustrates the workflow of the software and hardware of the electronic device 100.
[0442] When touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the raw input event. Taking a single-click operation as an example, where the corresponding control is the camera application icon, the camera application calls the interface of the application framework layer to launch the camera application, and then calls the kernel layer to launch the camera driver, capturing still images or videos through camera 193.
[0443] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0444] This application also provides an electronic device that may include a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method performed by the electronic device as described in any of the above embodiments.
[0445] This application also provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to execute the computer instructions to implement the method performed by the electronic device as in any of the above embodiments.
[0446] This application also provides a chip system including at least one processor for implementing the methods executed by the electronic device in any of the above embodiments. In one possible design, the chip system further includes a memory for storing program instructions and data, the memory being located within or outside the processor.
[0447] A chip system can consist of chips or include chips and other discrete components.
[0448] Optionally, there may be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0449] Optionally, the chip system may contain one or more memories. These memories may be integrated with the processor or disposed separately; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0450] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0451] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method executed by the electronic device in any of the above embodiments.
[0452] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method executed by the electronic device as described in any of the above embodiments.
[0453] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.
[0454] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).
[0455] The above-described embodiments are optional embodiments provided by this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the technical scope disclosed in this application should be included within the protection scope of this application.
Claims
1. A wallpaper display method, characterized in that, Applied to electronic devices, the method includes: In response to the received first operation, multiple images are set as a lock screen wallpaper set, wherein the multiple images are multiple images selected from the gallery; In the first instant after the multiple images are set as lock screen wallpapers, in response to the second operation, the first lock screen wallpaper is displayed. The first lock screen wallpaper is a lock screen wallpaper from the lock screen wallpaper set. The second operation is to trigger the electronic device to light up and display the lock screen interface. At the second moment, in response to the third operation, a second lock screen wallpaper is displayed. The second lock screen wallpaper is a lock screen wallpaper from the lock screen wallpaper set. The second lock screen wallpaper is different from the first lock screen wallpaper. The second moment is later than the first moment, and the time difference between the second moment and the first moment is greater than or equal to a preset time. The third operation is to trigger the electronic device to light up and display the lock screen interface. The first lock screen wallpaper is associated with a first scene, which is triggered at the first moment; the second lock screen wallpaper is associated with a second scene, which is triggered at the second moment.
2. The method as described in claim 1, characterized in that, The method further includes: At the third moment, in response to the fourth operation, a third lock screen wallpaper is displayed, which is the next lock screen wallpaper after the second lock screen wallpaper in the lock screen wallpaper set. The third moment is later than the second moment, and the time interval between the third moment and the second moment is less than the preset time.
3. The method as described in claim 1 or 2, characterized in that, The method further includes: After displaying the first lock screen wallpaper, a fifth operation is received that is applied to the lock screen interface; In response to the fifth operation, the previous or next lock screen wallpaper of the first lock screen wallpaper in the lock screen wallpaper set is displayed.
4. The method according to any one of claims 1-3, characterized in that, In the first instant after setting the multiple images as the lock screen wallpaper, in response to the second operation, displaying the first lock screen wallpaper includes: Based on the current scene and scene configuration information, the first lock screen wallpaper is determined, wherein the scene configuration information is used to indicate the mapping relationship between the lock screen wallpapers in the lock screen wallpaper set and the scene; At the first moment, in response to the second operation, the first lock screen wallpaper is displayed.
5. The method as described in claim 4, characterized in that, The scene configuration information includes the wallpaper index of the lock screen wallpaper and the corresponding scene information data structure. The scene information data structure includes scene features of the scene associated with the lock screen wallpaper.
6. The method as described in claim 5, characterized in that, The scene features include main scene features and sub-scene features. A main scene feature includes one or more sub-scene features, and each sub-scene feature corresponds to a scene.
7. The method according to any one of claims 4-6, characterized in that, Before basing the current scene and the scene configuration information, the method further includes: determining the scene configuration information of the lock screen wallpaper set; The scene configuration information for determining the lock screen wallpaper set includes: Obtain a wallpaper index set and preset configuration information. The wallpaper index set includes the wallpaper index of each lock screen wallpaper in the lock screen wallpaper set. The preset configuration information includes a main scene, a sub-scene, and matching rules for the sub-scene. The matching rules for each sub-scene are used to describe the matching method of the scene features corresponding to each sub-scene. Iterate through the sub-scenes in the preset configuration information; For each sub-scene traversed, based on the wallpaper index set and the matching rules of the currently traversed sub-scene, a subset of lock screen wallpapers that match the currently traversed sub-scene is queried. The wallpaper features of the lock screen wallpapers in the subset of lock screen wallpapers match at least one scene feature described by the matching rules of the currently traversed sub-scene. When a subset of lock screen wallpapers is found, a mapping relationship is established between each lock screen wallpaper in the subset and a scene, so that the scene configuration item information can be obtained after traversing the sub-scenes in the preset configuration information.
8. The method as described in claim 7, characterized in that, When a subset of lock screen wallpapers is found, a mapping relationship is established between each lock screen wallpaper in the subset and the scene, including: When a subset of lock screen wallpapers is found, the wallpaper index of the lock screen wallpapers in the subset is traversed. For each wallpaper index traversed, a scene information data structure corresponding to the currently traversed wallpaper index is established. The scene information data structure includes scene features of the scene associated with the lock screen wallpaper corresponding to the currently traversed wallpaper lock screen index.
9. The method as described in claim 7 or 8, characterized in that, For each sub-scene traversed, based on the wallpaper index set and the matching rules of the currently traversed sub-scene, a subset of lock screen wallpapers matching the currently traversed sub-scene is queried, including: For each sub-scene traversed, the matching rules of the currently traversed sub-scene are parsed to obtain a set of scene features; Iterate through the scene features in the currently obtained set of scene features; For each scene feature traversed, based on the wallpaper index set, query the lock screen wallpaper set for lock screen wallpapers that match the currently traversed scene feature, and if a match is found, record the correspondence between the queried lock screen wallpaper and the currently traversed scene feature. After the traversal is complete, if there are lock screen wallpapers with corresponding scene characteristics, then it is determined that there is a lock screen wallpaper subset, which includes lock screen wallpapers that record the corresponding scene characteristics.
10. The method as described in claim 8, characterized in that, For each wallpaper index traversed, a scene information data structure corresponding to the currently traversed wallpaper index is established, including: For each wallpaper index traversed, obtain all scene features corresponding to the currently traversed wallpaper index; Based on all scene features corresponding to the currently traversed wallpaper index and the main scene to which the currently traversed sub-scene belongs, establish a scene information data structure corresponding to the currently traversed wallpaper index.
11. The method according to any one of claims 4-10, characterized in that, The step of determining the first lock screen wallpaper based on the current scene and scene configuration information includes: Based on the scenario configuration information, obtain the target data that needs to be monitored, and the target data is used to determine the current scenario; The target scene set is determined based on the target data to determine the trigger scene set. The target scene set is determined based on the scene configuration item information and includes the sub-scenes associated with the lock screen wallpaper in the lock screen wallpaper set. The trigger scene set includes the sub-scenes currently triggered in the target scene set. In the event of a scene change, a target sub-scene is determined from the set of triggering scenes; The first lock screen wallpaper is determined from the lock screen wallpapers associated with the target sub-scene.
12. The method as described in claim 11, characterized in that, In the event of a scene change, determining the target sub-scene from the set of triggered scenes includes: In the event of a scene change, if the sub-scenes in the trigger scene set do not belong to the same main scene, then a trigger main scene is selected from the multiple trigger main scenes associated with the trigger scene set as the target trigger main scene; the target sub-scene is selected from the sub-scenes triggered under the target trigger main scene. If the sub-scenes in the trigger scene set belong to the same main scene, then select one sub-scene from the trigger scene set as the target sub-scene.
13. The method as described in claim 11 or 12, characterized in that, The step of determining the target scene set based on the target data to identify the trigger scene set includes: Iterate through the sub-scenes in the target scene set; For each sub-scene traversed, the scene features of the currently traversed sub-scene are queried from the scene configuration item information, and the queried scene features are matched with the target data; If a match is successful, the currently traversed sub-scene will be identified as an item in the set of triggering scenes.
14. The method as described in claim 12, characterized in that, In the event of a scene change, if the sub-scenes in the trigger scene set do not belong to the same main scene, then a triggering main scene is selected as the target triggering main scene from among the multiple triggering main scenes associated with the trigger scene set, including: In the event of a scene change, determine the number of the multiple triggering main scenes; Based on the number of the multiple triggering main scenarios and the priority of each triggering main scenario, the weight range corresponding to each triggering main scenario is determined. When the number of the multiple triggering main scenarios is different, triggering main scenarios with different priorities correspond to different preset weight ranges. The target triggering main scene is determined from the plurality of triggering main scenes based on the weight range of each triggering main scene.
15. The method as described in claim 14, characterized in that, The step of determining the target triggering main scene from the plurality of triggering main scenes based on the weight range of each triggering main scene includes: Generate random numbers; The triggering main scene corresponding to the weight range of the random number in the multiple triggering main scenes is determined as the target triggering main scene.
16. The method as claimed in any one of claims 12, 14 or 15, characterized in that, Selecting the target secondary scene from the secondary scenes triggered under the target primary scene includes: In the case where there are multiple triggered sub-scenes under the main scene of the target triggering, a corresponding hit value is set for each of the multiple triggered sub-scenes; Generate random integers within a specified range and match the same hit value as the random integers; The sub-scene corresponding to the matched hit value is determined as the target sub-scene.
17. The method according to any one of claims 11-16, characterized in that, The lock screen wallpapers associated with the target sub-scene include multiple wallpapers; determining the first lock screen wallpaper from the lock screen wallpapers associated with the target sub-scene includes: If the multiple lock screen wallpapers associated with the target sub-scene include the previously displayed lock screen wallpaper, then one lock screen wallpaper is randomly selected from the multiple lock screen wallpapers associated with the target sub-scene, excluding the previously displayed lock screen wallpaper, as the first lock screen wallpaper.
18. The method according to any one of claims 1-17, characterized in that, The electronic device is a vertically foldable screen device; the step of displaying the first lock screen wallpaper in response to the second operation at the first moment after setting the multiple images as the lock screen wallpaper includes: At the first moment after setting the multiple images as lock screen wallpaper, in response to the second operation, the first lock screen wallpaper is displayed on the lock screen interface of the outer screen of the electronic device. The electronic device is in a folded state when displaying the first lock screen wallpaper. The second operation includes triggering the operation of turning off the inner screen of the electronic device and then turning on the outer screen.
19. An electronic device, characterized in that, The electronic device includes: one or more processors, and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and the one or more processors calling the computer instructions to cause the electronic device to perform the wallpaper display method as described in any one of claims 1-18.
20. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the wallpaper display method as described in any one of claims 1-18.
21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the wallpaper display method as described in any one of claims 1-18.
22. A computer program product containing instructions, characterized in that, When it is run on a computer, it causes the computer to perform the wallpaper display method as described in any one of claims 1-18.