CN115941836B - Interface display method, electronic equipment and storage medium - Google Patents

Interface display method, electronic equipment and storage medium Download PDF

Info

Publication number
CN115941836B
CN115941836B CN202211337269.XA CN202211337269A CN115941836B CN 115941836 B CN115941836 B CN 115941836B CN 202211337269 A CN202211337269 A CN 202211337269A CN 115941836 B CN115941836 B CN 115941836B
Authority
CN
China
Prior art keywords
wallpaper
mode
electronic device
electronic equipment
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211337269.XA
Other languages
Chinese (zh)
Other versions
CN115941836A (en
Inventor
刘超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211337269.XA priority Critical patent/CN115941836B/en
Publication of CN115941836A publication Critical patent/CN115941836A/en
Application granted granted Critical
Publication of CN115941836B publication Critical patent/CN115941836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The application discloses an interface display method, electronic equipment and a storage medium, and relates to the technical field of electronics, wherein after detecting an operation of requesting the electronic equipment to display first wallpaper, the method responds to the operation to acquire resources of the first wallpaper and a current color mode of the electronic equipment, wherein the color mode of the electronic equipment comprises a daytime mode and a night mode, and the resources of the first wallpaper comprise resources based on the daytime mode and resources based on the night mode; the electronic equipment displays the resources based on the daytime mode under the condition of the daytime mode, and displays the resources based on the night mode under the condition of the night mode, so that the first wallpaper can adapt to the electronic night mode, the problem that the brightness of the first wallpaper is too high is avoided when the first wallpaper is displayed under the night mode, and the first wallpaper can be switched along with the color mode of the electronic equipment when the color mode of the electronic equipment is switched, thereby automatically adapting to the brightness displayed by the electronic equipment and being more comfortable for a user.

Description

Interface display method, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an interface display method, an electronic device, and a storage medium.
Background
Electronic devices such as mobile phones and the like increasingly participate in life of people, when users use the mobile phones in environments with darker light, if contents displayed in display interfaces of the mobile phones are brighter, the eyes of the users are stimulated, and visual fatigue of the users is easily caused. The mobile phone is configured with a night display mode, and the brightness displayed in the night display mode is closer to that of a night environment, so that the stimulation to eyes of a user can be reduced.
At present, after wallpaper is applied to a mobile phone, the color of the wallpaper is generally fixed, and the brightness of some wallpaper is still high when the wallpaper is displayed in a night display mode, so that the user experience is affected.
Disclosure of Invention
The application provides an interface display method, electronic equipment and a storage medium, which can enable wallpaper to adapt to a night display mode of the electronic equipment and improve user experience. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an interface display method, which is executed by an electronic device, where the method includes:
detecting a first operation, wherein the first operation requests the electronic equipment to display the first wallpaper;
responding to a first operation, acquiring a resource of the first wallpaper and a current color mode of the electronic equipment, wherein the color mode of the electronic equipment comprises a daytime mode and a night mode, and the resource of the first wallpaper comprises a resource based on the daytime mode and a resource based on the night mode;
One of the resources of the first wallpaper is displayed according to the mode in which the electronic device is currently located.
Based on the technical scheme, the resources based on the daytime mode are used for being displayed in the daytime mode of the electronic equipment, the brightness of the resources based on the daytime mode is closer to that of the daytime environment, the resources based on the night mode are used for being displayed in the night mode of the electronic equipment, and the brightness of the resources based on the night mode is closer to that of the night environment. When the operation of requesting to display the first wallpaper is detected, the electronic equipment can acquire the current color mode, display the resources based on the daytime mode under the condition that the electronic equipment is in the daytime mode, and display the resources based on the nighttime mode under the condition that the electronic equipment is in the nighttime mode, so that the first wallpaper can adapt to the nighttime mode of the electrons, and when the first wallpaper is displayed in the nighttime mode, the problem of overhigh brightness of the first wallpaper is avoided, and the user experience is improved.
With reference to the first aspect and the foregoing implementation manner, in some implementation manners of the first aspect, the first operation may be an operation of switching the electronic device from any state to an interface for displaying wallpaper, where the interface for displaying wallpaper includes a desktop, a lock screen interface, and in some cases, an off screen display (always on display, AOD) interface. The first operation may be an operation to retract the electronic device from any application interface to a desktop, pressing a power key, tapping a screen, clicking a one-touch screen lock control, fingerprint unlocking, face unlocking, gesture unlocking, and the like. In some cases, the electronic device has a folding screen, and the first operation may be an operation of unfolding the folding screen from a fully folded state.
And the electronic equipment responds to the first operation, and acquires the resources of the first wallpaper to display one of the resources of the first wallpaper. In certain implementations of the first aspect, the resource of the first wallpaper may be obtained in real-time, e.g., after the first wallpaper is set as the wallpaper for the electronic device, the electronic device stores resource identification information of the first wallpaper, e.g., a uniform resource identifier (Uniform Resource Identifier, URI), and in response to the first operation, the electronic device obtains the resource of the first wallpaper from the internet according to the resource identification information.
For example, after the first wallpaper setting is set as the wallpaper of the electronic device, the electronic device stores the resource of the first wallpaper, and in response to the first operation, the electronic device obtains the resource of the first wallpaper from the storage catalog.
In certain implementations of the first aspect, after the first wallpaper is set as the wallpaper of the electronic device, the electronic device stores the resource of the first wallpaper and pre-processes the resource of the first wallpaper, e.g., loads video to the multimedia player, loads video based on the daytime mode to the multimedia player if the electronic device is in the daytime mode when the wallpaper is set, and loads video based on the nighttime mode to the multimedia player if the electronic device is in the nighttime mode when the wallpaper is set.
After the first operation is detected, the electronic equipment responds to the first operation, acquires the current color mode of the electronic equipment, and determines whether the resources loaded in the multimedia player are resources based on a daytime mode or resources based on a nighttime mode; determining whether the current color mode of the electronic equipment is consistent with the mode of the resources loaded in the multimedia player, acquiring one of the resources of the first wallpaper under the condition of inconsistency, and switching the resources loaded in the multimedia player.
For example, the resource loaded in the multimedia player is a daytime-mode-based resource, and the resource of the first wallpaper is not required to be acquired again in the case that the electronic device is currently in the daytime mode. And under the condition that the electronic equipment is currently in the night mode, the electronic equipment acquires the resources based on the night mode in the resources of the first wallpaper, and the resources loaded in the multimedia player are replaced from the resources based on the daytime mode to the resources based on the night mode.
For example, the resource loaded in the multimedia player is a resource based on the night mode, and the resource of the first wallpaper is not required to be acquired again in the case that the electronic device is currently in the night mode. And under the condition that the electronic equipment is currently in the daytime mode, the electronic equipment acquires the daytime mode-based resource in the resources of the first wallpaper, and replaces the resources loaded in the multimedia player from the night mode-based resource to the daytime mode-based resource. Therefore, under the condition that the resource of the first wallpaper is not required to be acquired, the electronic equipment can respond to the first operation more quickly, and the performance of the electronic equipment is improved.
With reference to the first aspect, in some implementations of the first aspect, the method for displaying an interface further includes: in the event that the second operation is detected, the second operation instructs the electronic device to switch the color mode from the daytime mode to the nighttime mode, and to switch the displayed resources of the first wallpaper from the daytime mode-based resources to the nighttime mode-based resources.
With reference to the first aspect, in some implementations of the first aspect, the method for displaying an interface further includes: when the third operation is detected, the third operation instructs the electronic device to switch the color mode from the night mode to the daytime mode, and to switch the resources of the displayed first wallpaper from the resources based on the night mode to the resources based on the daytime mode.
Based on the technical scheme, when the color mode of the electronic equipment is detected to be switched, the electronic equipment comprises a mode of switching from a daytime mode to a night mode and a mode of switching from the night mode to the daytime mode, and the first wallpaper displayed by the electronic equipment can be switched along with the color mode of the electronic equipment, so that the electronic equipment is automatically adapted to the brightness displayed by the electronic equipment, the eye of a user is prevented from being stimulated, or the user is prevented from being unable to see the screen clearly, and the user experience is improved.
With reference to the first aspect and the foregoing implementation manner, in some implementation manners of the first aspect, the resource of the first wallpaper includes at least one of video and picture.
The first wallpaper may be a static wallpaper, the static wallpaper displayed as a picture, the resources of the first wallpaper including a picture in daytime mode and a picture in nighttime mode.
The first wallpaper can also be dynamic wallpaper, and the dynamic wallpaper can be super wallpaper, screen locking desktop dynamic wallpaper, folding screen wallpaper and the like, wherein the animation effect displayed by the dynamic wallpaper is determined by continuous video frames in a section of video, and the resources of the first wallpaper comprise videos in a daytime mode and videos in a night mode.
When the first wallpaper is a dynamic wallpaper, the resources of the first wallpaper can comprise a picture in a daytime mode and a picture in a night mode besides the video in the daytime mode and the video in the night mode, at the moment, the picture can be a frame in the video, under the scene, the electronic equipment displays the picture in the daytime mode when displaying the screen locking interface in the daytime mode, and the electronic equipment displays the picture in the night mode when displaying the screen locking interface in the night mode, so that the screen locking interface can also adapt to the electronic night mode.
In a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors; one or more memories; the memory stores one or more programs that, when executed by the processor, cause the electronic device to perform any of the possible methods of the first aspect described above.
In a third aspect, an embodiment of the present application provides an apparatus, where the apparatus is included in an electronic device, and the apparatus has a function of implementing the foregoing aspects and a behavior of the electronic device in a possible implementation manner of the foregoing aspects. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above. Such as a display module or unit, a detection module or unit, a processing module or unit, etc.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the method of the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
The technical effects obtained by the second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not described in detail herein.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an example of a color mode switching process according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface of a color mode switching process according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating an exemplary interface display method according to an embodiment of the present application;
FIG. 5 is a schematic view of wallpaper in daytime mode and nighttime mode according to an embodiment of the present application;
FIG. 6 is a block diagram of an exemplary software architecture provided by an embodiment of the present application;
FIG. 7 is a flowchart illustrating another exemplary interface display method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating another example of an interface display method according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings. The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
The technical scheme provided by the application is applied to the electronic equipment with the display function. Among other things, electronic devices may include, but are not limited to: multimedia player, intelligent terminal, intelligent wearing equipment, intelligent household electrical appliances, virtual reality equipment etc.. Wherein the multimedia player may include, but is not limited to: smart televisions, music players, video players, electronic projectors, etc. The intelligent terminal may include, but is not limited to: smart phones, notebook computers, tablet computers, etc. Smart wearable devices may include, but are not limited to: intelligent bracelet, intelligent wrist-watch, intelligent glasses etc.. Smart home devices may include, but are not limited to: intelligent electric rice cooker, intelligent switch, intelligent temperature control equipment, etc. The virtual display devices may include, but are not limited to, virtual Reality (VR) devices, augmented reality (augmented reality, AR) devices, and the like.
Fig. 1 shows a schematic hardware structure of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration 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, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The keys 190 include power keys for a user to control the electronic device 100 to turn on, off, turn on and off. For example, in the case where the electronic apparatus 100 is turned off, the electronic apparatus 100 is turned on in response to an operation of the user's long-pressing of the power key. For another example, in the case where the electronic apparatus 100 is off the screen, the electronic apparatus 100 lights the screen in response to an operation of clicking the power key by the user. For another example, in the case of a bright screen, the electronic apparatus 100 turns off the screen in response to an operation of clicking a power key by the user. For example, when the lock screen interface or the desktop is displayed, the electronic device 100 responds to the operation of clicking the power key by the user to enter the AOD interface, i.e., display the AOD interface on the display screen. For another example, when the AOD interface is displayed, the electronic device 100 enters a desktop or a lock screen interface in response to an operation of clicking a power key by a user, that is, displays the desktop or the lock screen interface on a display screen.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display wallpaper interfaces, such as AOD interfaces, lock screen interfaces, wallpaper interfaces for desktops, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The color mode of the electronic device includes: the daytime Mode and the night Mode, wherein the daytime Mode can be called a Light Mode, a normal Mode, an outdoor Mode, a Light Mode, the night Mode can be called a Dark Mode, a global night Mode and the like, and the Mode name of the embodiment of the application is not particularly limited.
The color mode of the electronic device may be switched when a user enters a dark environment from a bright environment, for example, turning off a light, or when a user enters a bright environment from a dark environment, for example, turning on a light.
The following description will take an electronic device as an example of a mobile phone. In one application scenario, a user may switch the color mode of an electronic device by clicking a "night mode" control in a status bar. For example, fig. 2 shows an implementation process of turning on the night mode of the mobile phone, and as shown in (a) of fig. 2, the mobile phone is currently in the daytime mode, and displays an information list of the daytime mode. When the electronic device is in the daytime mode, the information list is displayed in a system preset or default color configuration or a user-defined color configuration, and the white background color shown in (a) of fig. 2 is a common default design, which is used herein only to illustrate the arrangement mode and is not intended to limit the application. When the mobile phone receives a signal sliding downwards from the top of the screen, a status bar is displayed, as shown in (b) of fig. 2, a plurality of controls are distributed on the status bar, the controls comprise a control 21 for starting a night mode, when the mobile phone receives a signal of clicking the control 21 by a user, the color mode is switched from a daytime mode to a night mode, after the color mode is switched to the night mode, the status of the status bar is shown in (c) of fig. 2, when the mobile phone receives an upwards sliding signal, the status bar is exited, a list of information is returned, and at the moment, the information list of the night mode is displayed, as shown in (d) of fig. 2. When the handset is in night mode, the information list is presented with a darker background color, such as black as shown in fig. 2 (d), and the information list presented in night mode is also processed so that it can be distinguished from the black background.
Conversely, if the user enters the status bar in the night mode, the control 21 is clicked, and in response to the clicking operation by the user, the mobile phone switches from the night mode to the daytime mode.
In another application scenario, a user may switch the color mode of an electronic device in a setup application. For example, fig. 3 shows an implementation process of turning on a night mode of a mobile phone, and as shown in (a) in fig. 3, icons of a plurality of application programs, such as "set up", "video", "weather", etc., are laid out on a main interface of the mobile phone. Upon receiving a touch signal from the user clicking on "set", the handset may enter an interface as shown in fig. 3 (b) that includes a "night mode" control 31. When the mobile phone receives a signal that the user clicks the control 31, the color mode may be switched from the daytime mode to the nighttime mode, and the state of the control 31 after switching to the nighttime mode is shown in (c) of fig. 3.
The technical scheme provided by the embodiment of the application is used for enabling the wallpaper of the electronic equipment to be self-adaptive to the color mode of the electronic equipment. The interface for displaying wallpaper in the electronic device may include an AOD interface, a screen locking interface, a desktop, and an interface displayed in the process of switching between the AOD interface and the screen locking interface, switching between the screen locking interface and the desktop, and switching between the AOD interface and the desktop.
In the embodiment of the application, the wallpaper can be static wallpaper or dynamic wallpaper, the static wallpaper refers to a frame of picture with static background wallpaper, the dynamic wallpaper refers to dynamic background wallpaper, the dynamic wallpaper can comprise super wallpaper (super wallpaper), dynamic wallpaper (dynamic wallpaper), folding screen wallpaper (foldwall wallpaper) and the like, and the embodiment of the application has no special limitation on the type of wallpaper.
The static wallpaper can be displayed on an AOD interface, a screen locking interface or a desktop in a stop-motion mode. The dynamic wallpaper can be displayed in the AOD interface, the screen locking interface or the desktop fixed grid, and also can be displayed in the processes of switching the AOD interface and the screen locking interface, switching the screen locking interface and the desktop and switching the AOD interface and the desktop.
The dynamic wallpaper essentially plays a video when displayed. Specifically, the super wallpaper refers to that the background wallpaper played in the process that the mobile phone enters the desktop or the screen locking interface from the screen-off display (always on display, AOD) interface, enters the screen locking interface from the AOD interface and then enters the desktop, and returns to the AOD interface from the desktop or the screen locking interface is dynamically continuous, and has the display effect that the content change of the background wallpaper is finished at one time. The off-screen display means that after the mobile phone executes the off-screen instruction, a part of the area of the display screen can be lightened, an AOD interface is displayed, and then the screen is completely off. The AOD interface may include time, date, and background wallpaper, among others. The triggering time of the super wallpaper can be various, (1) for example, when the mobile phone displays an AOD interface on a display screen, if a user clicks a power key, the mobile phone responds to the operation of clicking the power key by the user, exits the AOD, triggers the super wallpaper to be played, and lights the display screen to enter a screen locking interface, namely, the animation from the AOD interface to the screen locking interface is displayed on the display screen. (2) For example, when the mobile phone displays the screen locking interface, if the mobile phone is unlocked by the user at the screen locking interface, the mobile phone exits the screen locking interface in response to the unlocking operation of the mobile phone by the user, the desktop is displayed on the display screen, and the animation from the screen locking interface to the desktop of the super wallpaper is displayed on the display screen. (3) For example, when the mobile phone displays an AOD interface on a display screen, if the user passes password, fingerprint or face verification, an animation from the AOD interface to the desktop is displayed on the display screen in response to an unlocking operation of the mobile phone by the user. (4) For example, when the mobile phone displays a desktop on the display screen, if the user clicks a power key, the mobile phone displays an animation from the desktop to the AOD interface on the display screen in response to an operation of clicking the power key by the user. (5) For example, when the mobile phone displays the screen lock interface, if the user clicks the power key, the mobile phone displays an animation from the screen lock interface to the AOD interface on the display screen in response to an operation of clicking the power key by the user.
The dynamic wallpaper refers to background wallpaper played in the process that the mobile phone enters the desktop from the screen locking interface, has the display effect of linkage of screen locking dynamic effect and desktop dynamic effect, and can be called screen locking desktop dynamic wallpaper, or background wallpaper of the mobile phone desktop is dynamic and can be called desktop dynamic wallpaper. For example, when the mobile phone displays the screen locking interface, if the mobile phone is unlocked by the user at the screen locking interface, the mobile phone responds to the unlocking operation of the mobile phone by the user to display the dynamic wallpaper on the display screen.
The folding screen wallpaper refers to the background wallpaper which is played in the process that the mobile phone is unfolded to a certain angle to be completely unfolded or in the process that the display screen is completely unfolded to be in a folding state, and the background wallpaper is dynamically continuous, and the content of the background wallpaper is changed along with the change of the folding angle of the display screen.
An interface display method according to an embodiment of the present application is described below with reference to fig. 4. The method is performed by an electronic device having a display screen, and as shown in fig. 4, the interface display method includes S401 to S403.
S401, detecting a first operation, wherein the first operation requests to display the first wallpaper on a display screen of the electronic device.
The first operation is an operation of switching the electronic device from any state to an interface displaying wallpaper, and the first operation may be an operation of retracting the electronic device from any application interface to a desktop, pressing a power key, tapping a screen, clicking a one-touch screen-locking control, unlocking a fingerprint, unlocking a face, unlocking a gesture, and the like. In some cases, the electronic device has a folding screen, and the first operation may be an operation of unfolding or folding the folding screen from a fully folded state, or an operation of folding the folding screen from an unfolded state.
S402, responding to a first operation, acquiring resources of the first wallpaper and a current color mode of the electronic device, wherein the color mode of the electronic device comprises a daytime mode and a night mode, and the resources of the first wallpaper comprise resources based on the daytime mode and resources based on the night mode.
S403, displaying one of the resources of the first wallpaper according to the current mode of the electronic device.
The resources of the first wallpaper include daytime mode-based resources and nighttime mode-based resources. The resources based on the daytime mode are used for being displayed in the daytime mode of the electronic device, the brightness of the resources based on the daytime mode is closer to the daytime environment, the resources based on the night mode are used for being displayed in the night mode of the electronic device, and the brightness of the resources based on the night mode is closer to the night environment. For the same wallpaper, the pattern style of the display of the resources based on the daytime mode and the resources based on the nighttime mode is the same, but the brightness parameter settings such as color, contrast, transparency and the like are different, so that the brightness is different when the wallpaper is displayed.
For example, fig. 5 shows an interface schematic, where (a) in fig. 5 is a picture based on a daytime mode in a resource, and (b) in fig. 5 is a picture based on a nighttime mode in a resource, and the picture based on the daytime mode uses a white background color, and a black line outlines the pattern style. Pictures based on night mode use black background color and white lines are outlined for the pattern style. Thus, the luminance of the picture based on the night mode is lower than the luminance of the picture based on the daytime mode.
The resources of the first wallpaper may include video and may also include pictures. For example, the first wallpaper may be a static wallpaper, the static wallpaper displayed as a picture, and the resources of the first wallpaper may include a picture in daytime mode and a picture in nighttime mode.
For example, the first wallpaper is an animation-like wallpaper, the animation effect of which is determined by successive video frames in a video, and the resources of the first wallpaper may include a daytime-mode video and a nighttime-mode video. In one implementation, when the first wallpaper is a motion effect wallpaper, the resources of the first wallpaper may include a picture in a daytime mode and a picture in a night mode in addition to the video in the daytime mode and the video in the night mode, and the picture may be a frame in the video.
In one implementation, the resource of the first wallpaper may be obtained in real time, e.g., after the first wallpaper is set as the wallpaper for the electronic device, the electronic device stores resource identification information of the first wallpaper, e.g., a uniform resource identifier (Uniform Resource Identifier, URI), and in response to the first operation, the electronic device obtains the resource of the first wallpaper from the internet according to the resource identification information.
In one implementation, after the first wallpaper is set as the wallpaper of the electronic device, the electronic device downloads and stores the resources of the first wallpaper, and in response to the first operation, the electronic device obtains the resources of the first wallpaper from the storage catalog.
In one implementation, the resource of the first wallpaper is included in a data packet, and the electronic device acquires or downloads the data packet of the first wallpaper from the internet, or may be called a theme pack, an installation pack, or the like, where the theme pack includes the resource of the first wallpaper, and the theme pack may be a file in a compressed format, or a file in another format.
In one implementation, each time in response to the first operation, the electronic device obtains a resource of the first wallpaper and a color mode in which the electronic device is currently located, obtains a resource based on the daytime mode in the resource of the first wallpaper in a case that the electronic device is currently located in the daytime mode, or obtains a resource based on the nighttime mode in the resource of the first wallpaper in a case that the electronic device is currently located in the nighttime mode.
In one implementation, in response to a first operation, the electronic device obtains a color mode currently in which the electronic device is located, determines whether the color mode of the electronic device changes compared with a previous display of the first wallpaper, and displays a resource of the current first wallpaper when the color mode of the electronic device does not change. When the color mode of the electronic equipment changes, the electronic equipment acquires the resources of the first wallpaper again for display.
In one implementation, in response to a first operation, the electronic device obtains a color mode in which the electronic device is currently located, determines whether the color mode of the electronic device is consistent with a mode of the preloaded resource, displays the preloaded resource under the condition of consistency, obtains the resource of the first wallpaper under the condition of non-consistency, and displays the preloaded resource after switching.
In the embodiment of the application, when the electronic equipment is in the daytime mode, the electronic equipment can display the daytime mode-based resource in the first wallpaper resources, or when the electronic equipment is in the night mode, the electronic equipment can display the night mode-based resource in the first wallpaper resources, so that the first wallpaper can adapt to the electronic night mode, and when the first wallpaper is displayed in the night mode, the problem of over-high brightness of the first wallpaper is avoided, more comfortable experience can be provided for a user, and the user experience is improved.
In some cases, the resources of the first wallpaper include only one mode of resources and do not support color switching, the electronic device acquires the resources of the first wallpaper in response to the first operation, determines whether the first wallpaper supports the night mode, and acquires the currently-located color mode of the electronic device in the case that the first wallpaper supports the night mode to determine whether to display the daytime mode-based resources or the night mode-based resources. And directly displaying the resources of the first wallpaper under the condition that the first wallpaper does not support the night mode.
In addition, in the embodiment of the present application, the electronic device may switch the resource of the first wallpaper according to the switching of the color mode. For example, the electronic device is currently in a daytime mode, displays a daytime-mode-based resource among the resources of the first wallpaper, and switches the displayed resources of the first wallpaper from the daytime-mode-based resource to the nighttime-mode-based resource when the electronic device detects the second operation. Wherein the second operation instructs the electronic device to switch the color mode from the daytime mode to the nighttime mode, for example, the second operation may be an operation of clicking on the control 21 shown in (b) of fig. 2, for example, the second operation may be an operation of clicking on the control 31 shown in (b) of fig. 3.
For example, the electronic device is currently in a night mode, displays a night mode-based resource among the resources of the first wallpaper, and switches the displayed resources of the first wallpaper from the night mode-based resource to the daytime mode-based resource if the electronic device detects the third operation. Wherein the third operation instructs the electronic device to switch the color mode from the night mode to the daytime mode, for example, the second operation may be an operation of clicking on the control 21 shown in (c) in fig. 2, for example, the second operation may be an operation of clicking on the control 31 shown in (c) in fig. 3.
Based on the technical scheme, when the color mode of the electronic equipment is detected to be switched, the electronic equipment comprises a mode of switching from a daytime mode to a night mode and a mode of switching from the night mode to the daytime mode, and the first wallpaper displayed by the electronic equipment can be switched along with the color mode of the electronic equipment, so that the electronic equipment is automatically adapted to the brightness displayed by the electronic equipment, the eye of a user is prevented from being stimulated, or the user is prevented from being unable to see the screen clearly, and more comfortable experience can be provided for the user. In addition, compared with a mode of processing resources in real time, the method provided by the embodiment of the application can enable the speed of automatic adaptation of the first wallpaper to be faster when the color mode of the electronic equipment is switched.
An implementation in which the resource of the first wallpaper is included in the theme pack is described below.
Table 1 shows a video, picture that can be configured in a theme pack, where a lock-screen wallpaper picture is used as background wallpaper for a lock-screen interface. The large folding screen refers to a screen with the folding screen fully unfolded, and dynamic wallpaper and super wallpaper do not need to be provided with large folding screen lock screen wall paper pictures.
TABLE 1 wallpaper resource configuration Table
video_live_wallpaper.mp4 Wallpaper video-daytime mode
dark_video_live_wallpaper.mp4 Wallpaper video-night mode
unlock_live_wallpaper.jpg Lock screen wall paper picture-daytime mode
unlock_dark_live_wallpaper.jpg Lock screen wall paper picture-night mode
unlock_fold_live_wallpaper.jpg Folding screen large screen lock wall paper picture-daytime mode
unlock_fold_dark_live_wallpaper.jpg Folding screen large screen lock screen wall paper picture-night mode
And adding the resources of the first wallpaper into the theme pack according to the display effect actually required by the first wallpaper. For example, the first wallpaper is super wallpaper, and the resource may include a day mode wallpaper video, a night mode wallpaper video, a day mode lock screen picture, and a night mode lock screen picture. For example, the first wallpaper type is dynamic wallpaper, and the resource may include a daytime mode wallpaper video and a night time mode wallpaper video. For example, the first wallpaper is a folding screen wallpaper, and the resource may include a day mode wallpaper video, a night mode wallpaper video, a day mode lock screen picture, a night mode lock screen picture, a day mode folding screen large screen lock screen picture, a night mode folding screen large screen lock screen picture, and a night mode folding screen large screen lock screen picture, which lock screen picture is used when the display screen is in a folded state. For example, the first wallpaper is a static wallpaper, and the resources of the first wallpaper may include a day mode locked wallpaper picture, a night mode locked wallpaper picture, a day mode desktop wallpaper picture, and a night mode desktop wallpaper picture.
It should be noted that, when each wallpaper is displayed, a software function corresponding to the wallpaper needs to be called a wallpaper service (wallpaper), and this software function may be called a wallpaper service, which may be registered in an application having a wallpaper display function, for example, a wallpaper application package (Android application package, APK).
In one implementation, one type of wallpaper corresponds to one wallpaper service, and one type of wallpaper service is used for defining a play flow of the type of wallpaper, defining how the type of wallpaper executes the instruction after receiving the instruction at different computers, but not limiting resources used in the play flow. For example, super wallpaper corresponds to a super wallpaper service, denoted as super wallpaperservice, dynamic wallpaper corresponds to a dynamic wallpaperservice, denoted as dynamic wallpaperservice, and folded wallpapers corresponds to a folded wallpapers service, denoted as foldbablewallpaperservice. The same type of wallpaper for different animation contents may use the same wallpaper service, thereby providing wallpaper yield efficiency when developing wallpaper.
In one implementation, the theme pack of the first wallpaper further includes an identifier of a wallpaper service corresponding to the first wallpaper, so that the wallpaper service corresponding to the first wallpaper is invoked when the first wallpaper is used. The embodiment of the application has no special limitation on the form of the identification of the wallpaper service. For example, the identification of the wallpaper service may be a wallpaper service name.
Illustratively, the theme pack includes a first file, denoted as livepaper. The style of the content of the livepaper xml file is as follows:
wherein pkgnae is a package name, and also represents a unique application ID for identifying wallpaper APK. The Classname indicates a wallpaper service name of the first wallpaper binding, wherein the super wallpaper service name may be denoted com.hihonor.wallpaper. It may also be determined from the wallpaper service name whether the type of the first wallpaper is super wallpaper, dynamic wallpaper or folding screen wallpaper.
In some implementations, after the first wallpaper is set as the wallpaper of the electronic device, the electronic device may store the resource of the first wallpaper, and perform preprocessing on the resource of the first wallpaper, for example, preloading a video, predetermining a video frame interval included in the video, or presetting a picture to a lock screen or a desktop, etc., so that the electronic device may more quickly respond to the first operation, and improve performance of the electronic device.
Correspondingly, the theme pack of the first wallpaper also comprises information for preprocessing, the information is recorded as configuration file livepaper_config.xml in the second file, preprocessing modes are different for different types of wallpapers, and the content in the corresponding configuration file is also different. For example, a configuration file of dynamic wallpaper may configure whether dynamic wallpaper supports night mode or whether dynamic blur is supported. More or less contents can be configured in the configuration file according to the display effect actually required. Illustratively, a configuration file of a dynamic wallpaper_config.xml is configured as follows:
<support_background_blur>true</support_background_blur>
<support_dark_mode>true</support_dark_mode>
where support_background_bl indicates whether motion blur is supported, support_dark_mode indicates whether night mode is supported, whether support may be indicated by different flags (e.g., true and false), true indicates support, and false indicates no support.
For example, a configuration file of a folding screen wallpaper may configure whether a dynamic wallpaper supports night mode, whether a dynamic blur is supported, and a spring-stick stiffness (fold). Illustratively, a configuration file livepaper_config. Xml of a folding wallpaper is configured as follows:
<support_background_blur>true</support_background_blur>
<support_dark_mode>true</support_dark_mode>
<fold-spring-stiffness>60</fold-spring-stiffness>
the dynamic effect of the folding screen wallpaper is elastic animation, and the stiffness value influences the playing speed. The stiffness may be determined from the video asset and animation effects, in the example described above, the stiffness is 60.
For example, the configuration file of the super wallpaper may configure whether the super wallpaper supports night mode, whether the super wallpaper supports dynamic blur, aod interface style, and number of frames of play action. Illustratively, a configuration file livepaper_config. Xml for super wallpaper is configured as follows:
<support_background_blur>true</support_background_blur>
<support_dark_mode>true</support_dark_mode>
<aod_to_lock_total_frame>60</aod_to_lock_total_frame>
<lock_to_launcher_total_frame>60</lock_to_launcher_total_frame>
<aod_style>DuneRealmClock;Dune Realm</aod_style>
<aod_support_transition_animation>fakse</aod_support_transition_animation>
wherein aod _to_lock_total_frame represents the number of frames played from aod interface to lock screen interface, in the above example, 60 frames are played at this stage, lock_to_counter_total_frame represents the number of frames played from lock screen interface to desktop, in the above example, 60 frames are played at this stage, and the total duration of super wallpaper activity can be determined according to aod _to_lock_total_frame and lock_to_counter_total_frame. AOD _style represents the name of AOD style of the current super wallpaper, AOD style is the picture content of the wallpaper displayed by AOD interface, for example, one style may be human, one style may be animal, in the above example, AOD style is named DuneRealmClock, when the super wallpaper is applied, the user changes AOD style alone, animation of AOD interface is not displayed when playing super wallpaper, AOD _support_transition_animation represents whether there is transition animation when entering or exiting AOD interface.
The flow of downloading the theme pack of the first wallpaper to the resource to which the first wallpaper is applied is described below in connection with the software structure of the electronic device. Fig. 6 is a software block diagram of the electronic device 100.
The electronic device 100 software system may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
As shown in fig. 6, the layered architecture divides the software into several layers, each with a clear role and division of work. The layers communicate with each other through a software interface. In some embodiments, the Android system is respectively an application layer, an application framework layer, a Native (Native) layer, a Hardware Abstraction Layer (HAL), a kernel layer, and a hardware layer from top to bottom.
The application layer may include application programs such as AOD application, system service (SystemUI), theme, setting, wallpaper APK, and the like. The theme provides wallpaper preview services and wallpaper selection services.
The AOD application comprises an AOD animation display module, a first super wallpaper playing control module and a screen-off control module. The AOD animation display module is used for controlling the position of a bright screen area of the AOD interface and the display of content. The first super wallpaper playing control module is used for sending a super wallpaper playing instruction to the wallpaper APK when the screen is turned off when the first wallpaper is super wallpaper. The screen-off control module is used for controlling the local brightness of the screen after the super wallpaper animation is played.
The system service (SystemUI) comprises a status bar, a screen locking window display control module, a second super wallpaper playing control module and a super wallpaper switch status recording module. The screen locking window display control module is used for managing display attributes of the screen locking wallpaper, such as transparency or not. The super wallpaper switch state recording module is used for judging whether the super wallpaper is the super wallpaper or not after the wallpaper is applied. And the second super wallpaper playing control module is used for sending a super wallpaper playing instruction to the wallpaper APK when the first wallpaper is super wallpaper and the screen is on. The status bar may receive a color mode switch event.
Wallpaper APK includes wallpaper services (super wallpaper service, folded screen wallpaper service, dynamic wallpaper service), wallpaper play controller, wallpaper switch controller, multimedia player. The wallpaper playing controller realizes wallpaper playing, pausing and playing progress management through the multimedia player. When the color mode of the electronic equipment is switched, the wallpaper switching controller informs the multimedia player to switch the played resources into resources based on a daytime mode or resources based on a night mode.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 6, the application framework layer may include a power management service (powermanager service), a window management service (WindowManagerService, WMS), a wallpaper management service (wallpapermanager service), a screen management service (displaymanageservice), a sleep management service (streammanager service), a video codec module (MediaCodec), a multimedia extractor (MediaExtractor), and a color mode management service.
The power management service is responsible for managing power and common functions of the mobile phone such as triggering on or off of a screen, brightness adjustment, low power mode, keeping the CPU awake, and the like.
The window management service assigns and manages attributes (e.g., hierarchy, size, display order, etc.) of windows for applications. The window management service can also manage the display and switching of the lock screen window and the wallpaper window. The window management service may also be used to manage the display of upper layer elements (e.g., icons) of wallpaper.
The wallpaper management service is used for managing the running and switching of the wallpaper and providing an interface for operating the wallpaper to the outside through the WallpaperManager class. When switching wallpaper through the wallpapermanager interface, the wallpaper management service determines whether the currently bound wallpaper service (WallpaperService) needs to be canceled and starts a wallpaper service of a new wallpaper.
The screen management service is used for managing the current display state of the display screen, sending a notification to a system and other applications when the state is updated, for example, the screen is switched to a bright screen state or an off screen state. For example, the screen is switched to a lock screen interface, e.g., the screen is switched to a desktop, etc.
Sleep management services, mainly providing dormant services (DozeService), are related to off-screen control of AOD applications.
The color mode management service is used for recording the current color mode of the electronic equipment, monitoring whether the color mode of the electronic equipment changes, and updating the current recorded color mode of the electronic equipment when the color mode of the electronic equipment changes. For example, the color mode management service corresponds to a first database for recording the color mode of the electronic device, denoted as settings.system.global_current_uiooe, where different fields are used to represent the color mode of the electronic device, e.g. true indicates that the color mode currently in the electronic device is daytime mode, false indicates that the color mode currently in the electronic device is nighttime mode.
And the video encoding and decoding module is used for encoding and decoding the video. The video codec module and the multimedia extractor provide support for the playback of the asset.
Native includes a system rendering core (SurfaceFlinger) for rendering graphical interfaces, such as wallpaper. Each application may correspond to one or more graphical interfaces, each of which is independent of the other, and each of which has a respective location and size on the screen, and each of which displays content, content size, location, etc. that may change when the application is changed, e.g., under a WeChat application interface, both the top status bar and the bottom navigation key are present at the same time. Wallpaper is also an independent graphical interface, and the upper layer of the wallpaper graphical interface is an interface of a lock screen or a desktop. These interfaces are all drawn by surfeflinger.
The hardware abstraction layer includes a hardware graphics maker (Hardware composer, HWC), a TP HAL, an LCD HAL, a graphics processor (graphics processing unit, GPU), the HWC being a module that performs window synthesis and display, providing hardware support for the system drawing core.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a Display Driver (LCD Driver), a touch screen Driver (TP Driver) and an AOD node Driver.
The hardware includes at least LCD device, TP device.
Based on the software structure shown in fig. 6, after the first wallpaper is applied as the wallpaper of the electronic device, the theme application downloads and parses the theme pack of the first wallpaper, generates an acquisition path of the daytime mode-based resource, the night mode-based resource and the configuration file of the first wallpaper, and determines that the first wallpaper is operated by the wallpaper APK according to the pack name in the livepaper. And the wallpaper management service calls the wallpaper service corresponding to the first wallpaper according to the wallpaper service name in the wallpaper file, for example, if the first wallpaper is dynamic wallpaper, the wallpaper management service is called.
After the first operation is detected, in response to the first operation, the wallpaper service in the wallpaper APK obtains the current color mode of the electronic device from the color mode management service, obtains the resources of the daytime mode from the obtaining path based on the resources of the daytime mode when the current color mode of the electronic device is the daytime mode, or obtains the resources of the night mode based on the obtaining path of the night mode when the current color mode of the electronic device is the night mode, loads the resources to the multimedia player, decodes video in the resources of the first wallpaper through the video codec module for the dynamic wallpaper, and sends the decoded content to the SurfaceFlinger, surfaceFlinger to draw the first wallpaper, and displays the first wallpaper on the display screen through hardware.
In one implementation, after the wallpaper service is run, before the first operation, a current color mode of the electronic device is obtained from the color mode management service, if the electronic device is in a daytime mode, the daytime mode-based resource is loaded to the multimedia player, and if the electronic device is in a nighttime mode, the nighttime mode-based resource is loaded to the multimedia player. After the first operation is detected, the electronic equipment responds to the first operation, acquires the current color mode of the electronic equipment, and determines whether the resources loaded in the multimedia player are resources based on a daytime mode or resources based on a nighttime mode; determining whether the current color mode of the electronic equipment is consistent with the resources loaded in the multimedia player, and under the condition of inconsistent, acquiring one of the resources of the first wallpaper and switching the resources loaded in the multimedia player.
For example, the resource loaded in the multimedia player is a daytime-mode-based resource, and the resource of the first wallpaper is not required to be acquired again in the case that the electronic device is currently in the daytime mode. And under the condition that the electronic equipment is currently in the night mode, the electronic equipment acquires the resources based on the night mode in the resources of the first wallpaper, and the resources loaded in the multimedia player are replaced from the resources based on the daytime mode to the resources based on the night mode. For example, the resource loaded in the multimedia player is a resource based on the night mode, and the resource of the first wallpaper is not required to be acquired again in the case that the electronic device is currently in the night mode. And under the condition that the electronic equipment is currently in the daytime mode, the electronic equipment acquires the daytime mode-based resource in the resources of the first wallpaper, and replaces the resources loaded in the multimedia player from the night mode-based resource to the daytime mode-based resource.
In the case where the resource of the first wallpaper further includes a picture, after the first wallpaper is applied as the wallpaper of the electronic device, the wallpaper management service may further send a broadcast to which the first wallpaper is applied to the system service, where the system service performs display-related settings for the picture based on the daytime mode and the picture based on the nighttime mode in the resource of the first wallpaper.
Fig. 7 shows a flowchart of an interface display method, and a process of preprocessing and switching resources is described below in connection with fig. 7. In the embodiment of the application, resources, configuration files and livepaper.xml files in the theme pack of the first wallpaper.
S701, after detecting an operation of applying the first wallpaper, setting a theme pack of the application to download the first wallpaper.
S702, decompressing the theme pack to the appointed directory.
For example designating the directory path as data/thes/0. The theme pack decompresses and the setting application obtains the livepaper xml file, the configuration file livepaper_config. Xml and the resource of the first wallpaper.
S703, the setting application analyzes the livepaper. Xml file, and obtains the package name and the wallpaper service name of the first wallpaper from the livepaper.
S704, the setting application calls the wallpaper management service according to the package name and sends the wallpaper service name to the wallpaper management service.
S705, the wallpaper management service judges whether the wallpaper service name of the first wallpaper and the wallpaper service name of the second wallpaper are the same name.
The wallpaper management service determines a wallpaper service running the first wallpaper according to the wallpaper service name. The second wallpaper is a wallpaper applied by the electronic device before the first wallpaper.
If the wallpaper service name of the first wallpaper and the wallpaper service name of the second wallpaper are not the same, which means that the first wallpaper and the second wallpaper are not the same type of wallpaper, for example, the first wallpaper is dynamic wallpaper and the second wallpaper is super wallpaper, the running super wallpaper service needs to be exited, the dynamic wallpaper service is bound, and S706-S713 are executed. If the wallpaper service name of the first wallpaper and the wallpaper service name of the second wallpaper are the same name, which means that the first wallpaper and the second wallpaper are the same type of wallpaper, for example, the first wallpaper and the second wallpaper are super wallpapers, the running super wallpaper service is continuously used, and a new wallpaper service is not required to be bound, and S714 is executed.
S706, binding the new wallpaper service for the first wallpaper by the wallpaper management service.
S707, after the new wallpaper service is started, a color mode listening event is registered.
The wallpaper service communicates with the color mode management service, listening to whether the electronic device is currently in night mode or daytime mode.
S708, acquiring a configuration file of the first wallpaper from the appointed directory by the wallpaper APK, and analyzing the configuration file of the first wallpaper.
S709, after analysis is completed, checking whether the configuration file is correct.
The configuration file is checked to ensure that the configuration item can be used normally. For example, if there is content in the configuration file, i.e. there is a field, if the content includes a preset parameter (e.g. the preset parameter is in night mode), if the parameter has a value (the value may be true or false), for the super wallpaper type, it is also necessary to confirm if there is a set number of frames, i.e. the active duration, etc. In some implementations, the steps may be performed after performing S709: and storing the content of the parsed configuration file to a second database.
S710, if the configuration file is correct, the wallpaper APK stores the content of the parsed configuration file to a second database.
For example, whether the first wallpaper supports the night mode, whether the first wallpaper supports the content such as the dynamic blur, and the like is written into the second database. When the first wallpaper is super wallpaper, the dynamic duration, AOD pattern and the like of the super wallpaper can be written into the database. Therefore, when the screen locking interface is displayed, whether to perform dynamic blurring processing is determined, or when a super wallpaper playing instruction is received, a video frame interval to be played is determined, or when an AOD interface is displayed, an AOD style is determined, and the like. And ending the flow when the configuration file is wrong.
When the wallpaper service displays the first wallpaper or the wallpaper service monitors that the color mode of the electronic device is switched, whether the first wallpaper supports the night mode or not can be determined from the second database.
S711, the wallpaper APK acquires the video through a first path under the appointed directory, acquires the picture through a second path under the appointed directory, and authorizes the second path to the system service for reading.
And under the condition that the electronic equipment is currently in the daytime mode, acquiring videos and pictures based on the daytime mode in the resources, and under the condition that the electronic equipment is currently in the night mode, acquiring videos and pictures based on the night mode in the resources.
If the picture comprises a picture for locking a screen, after the locked wallpaper picture is acquired, if the acquired locked wallpaper picture is not matched with the picture in the display resource, the locked wallpaper picture under the second path can be updated. The system service obtains the lock screen wallpaper picture through the second path, so that the lock screen wallpaper picture is displayed when the lock screen interface is displayed.
S712, initializing the multimedia player.
The wallpaper APK starts the multimedia player, and video (dynamic wallpaper) or pictures (static wallpaper) of the first wallpaper are loaded into the multimedia player. If the electronic device is currently in a night mode and the first wallpaper supports the night mode, the multimedia player loads video or pictures based on the night mode. If the electronic device is currently in daytime mode, the multimedia player loads wallpaper video or picture based on the daytime mode.
S713, initializing a wallpaper interface.
Initializing the wallpaper interface refers to that after the first wallpaper is loaded, the player firstly plays the video of the first wallpaper to the last frame, and after the user returns to the desktop, the display screen displays the last frame in the video of the first wallpaper, namely the background wallpaper of the desktop.
S714, the wallpaper management service sends an instruction for reapplying the wallpaper service to the wallpaper APK.
Specifically, the instruction form may be android. After the wallpaper APK receives the instruction, the current wallpaper service continues to run, parses the configuration file, and executes S808-S813.
When the color mode of the electronic equipment is switched, the color mode management service sends a color mode switching event to the wallpaper APK, and when the wallpaper APK receives the color mode switching event, the wallpaper APK switches resources in the multimedia player, and specifically comprises the following steps:
s715, wallpaper APK receives the color mode switching event.
S716, determining whether the current color mode of the electronic device is consistent with the mode of the resources loaded in the multimedia player.
And S717, under the condition of inconsistency, releasing the multimedia player and loading the resources of the switched color mode.
Or if the flow is consistent, ending the flow.
For example, the resources loaded in the multimedia player are resources based on a daytime mode, and when the electronic device is currently in a night mode, the electronic device acquires the resources based on the night mode in the resources of the first wallpaper, and changes the resources loaded in the multimedia player from the resources based on the daytime mode to the resources based on the night mode. For example, the resource loaded in the multimedia player is a resource based on a night mode, and when the electronic device is currently in a daytime mode, the electronic device acquires the resource based on the daytime mode in the resource of the first wallpaper, and changes the resource loaded in the multimedia player from the resource based on the night mode to the resource based on the daytime mode. And displaying the resources in the multimedia player when the first wallpaper is displayed.
In one implementation, between S715 and S716, the steps may further include: it is determined whether the first wallpaper supports a dark mode. In the case where the first wallpaper supports the color mode, S716 is performed.
The following describes a procedure of preprocessing a lock screen wallpaper picture when a picture for the lock screen wallpaper is included in a resource of the first wallpaper after the first wallpaper is set as the wallpaper of the electronic device. Fig. 8 is a flowchart of an interface display method according to an embodiment of the present application.
S801, registering a color mode monitoring event after system service is started.
Thereby determining whether the electronic device is currently in daytime or nighttime mode.
S802, the system service receives the broadcasting of the wallpaper change.
In one implementation, the broadcast of the wallpaper change is received by a status bar (status bar) in the system service, which is a resident function in the system service.
S803, initializing default first wallpaper into static wallpaper.
And then determining the display setting of the lock screen wallpaper picture according to the theme pack content and some information in the wallpaper APK.
S804, the system service judges whether the wallpaper broadcast is static.
In the embodiment of the application, a first parameter is acquired, and whether the first parameter represents static wallpaper broadcasting or not is represented. If the static wallpaper is broadcast, the first wallpaper is indicated to be the static wallpaper. If the wallpaper is not static wallpaper broadcast, the first wallpaper is dynamic wallpaper. It will be appreciated that one wallpaper, in addition to the data included in the theme pack, is also configured with other information, i.e., wallpaper metadata (meta data), in the wallpaper APK. In the embodiment of the present application, the first parameter may be configured in wallpaper meta data and recorded as wallpaperinfo. After receiving the broadcast of the wallpaper change, the system service determines whether the wallpaperinfo in meta data of the first wallpaper is empty, namely whether the wallpaperinfo parameter is configured, if the wallpaperinfo parameter is not configured, the wallpapering is static, and if the wallpapering is configured, the wallpapering is dynamic.
S805, if not, the system service determines if the first wallpaper supports lock screen wallpaper picture scaling.
In the embodiment of the application, a second parameter is acquired, and the second parameter identifies whether the locked screen wallpaper picture is supported for zooming. For example, a second parameter may be set in meta data of the first wallpaper, denoted as livewall paper. In the case where a livewall paper is arranged in the first wallpaper meta data, the first wallpaper supports lock screen picture scaling. In the case where no LiveWallpaper is configured in meta data of the first wallpaper, the first wallpaper does not support lock screen wallpapers picture scaling.
And S806, if yes, writing the support lock screen wallpaper picture zoom in the second database.
If not, S807, writing a picture which does not support lock screen wallpaper zooming in the second database.
The system service writes the judging result of whether the lock screen paper picture scaling is supported into the second database for storage, for example, if the lock screen paper picture scaling is supported, writing 'live_paper_effect 1' into the second database, and if the lock screen paper picture scaling is not supported, writing 'live_paper_effect 0' into the second database, thereby judging whether the lock screen paper picture displays the scaling effect according to the result in the second database when the lock screen window is displayed.
S808, it is determined whether copying of the lock screen wallpaper picture from the wallpaper APK to the lock screen application is supported.
In the embodiment of the application, the system service judges whether to support copying the locked screen wall paper picture from the wallpaper APK to the locked screen application according to the wallpaper service name in the livepaper. If the wallpaper service name is one of a dynamic wallpaper service name, a super wallpaper service name, and a folded screen wallpaper service name, the copying of the locked screen wallpaper picture from the wallpaper APK to the screen locking application is supported, thereby being used for a screen locking up-sliding scene. If not, the first wallpaper is static wallpaper, and the process is ended.
In one implementation, the dynamic wallpaper is played from the screen-locking interface, and the screen-locking wallpaper picture is not required to be configured separately, so that the screen-locking wallpaper is transparent, and the screen-locking interface displays the first frame of the wallpaper video. And independently configuring the screen locking wallpaper for the super wallpaper and the folding screen wallpaper to realize the zooming effect. That is, when the first wallpaper is super wallpaper and folding screen wallpaper, copying of the lock screen wallpaper picture from the wallpaper APK to the lock screen application is supported.
S809, if so, the system service determines whether the locked wallpaper picture is supported from the second path.
Considering that the resources of some wallpaper are not included in the theme pack, for the wallpaper using the theme pack provided by the embodiment of the present application, the lock screen wallpaper picture is obtained from the path (second path) generated after the analysis of the resources, and for the wallpaper not using the theme pack provided by the embodiment of the present application, the lock screen wallpaper picture is obtained from the wallpaper meta data.
In the embodiment of the application, after the first wallpaper is bound with the wallpaper service, the wallpaper service sets a mode of copying the locked wallpaper picture, for example, a first switch true or false is set in the second database, true represents that the locked wallpaper picture is acquired from a path generated after resource analysis, and false represents that the locked wallpaper picture is acquired from wallpaper meta data. In the case where the first wallpaper supports copying of locked wallpaper pictures from the wallpaper APK to the locked application, the system service retrieves a first switch from the database to determine the copy mode.
S810, the system service obtains a lock screen picture from the second path.
S811, the system service acquires a lock screen wallpaper picture from the wallpaper meta data.
When the electronic equipment is currently in the daytime mode, a picture based on the daytime mode is acquired, or when the electronic equipment is currently in the night mode, a picture based on the night mode is acquired.
S812, the system service determines whether the lock screen wallpaper picture was successfully copied to the lock screen.
Successful copying to the lock screen, i.e. the lock screen application itself stores the lock screen wallpaper picture. If the copying fails, the first wallpaper is displayed as static wallpaper, and the process is ended.
In addition, in some implementations, the method may further include: s813, the system service determines whether the first wallpaper supports configuration AOD.
In the embodiment of the application, whether the first wallpaper supports AOD display is determined according to the wallpaper service name in the wallpaper file, and the first wallpaper supports configuration of the AOD when the wallpaper service name is super wallpaper service, namely when the first wallpaper is super wallpaper.
S814, if the configuration of the AOD is supported, the system service acquires the super wallpaper effective duration, the AOD pattern and the lock screen picture of the first wallpaper.
Therefore, when the screen is on, the screen locking application realizes the function of indicating to play the super wallpaper animation, and when the screen is off, the AOD application realizes the function of indicating to play the super wallpaper animation.
S815, if the configuration AOD is not supported, the super wallpaper related configuration is cleared, and the screen-off attribute is taken over.
In one scenario, the first wallpaper is a dynamic wallpaper and the second wallpaper is a super wallpaper, i.e. a switch from super wallpaper to dynamic wallpaper. In the application process of the second wallpaper, the system service records the effective duration of the super wallpaper, the AOD pattern, the lock screen wall paper picture and the like, and when the screen is extinguished, the AOD application performs screen extinguishing control. After the system service is switched into the first wallpaper, the system service clears the related configuration of the super wallpaper which is originally set, the AOD application stops running, and the system service takes over the screen-off attribute to perform screen-off control.
Optionally, in some implementations, the method may further include: s816, setting transparent attribute of the lock screen interface.
That is, when wallpaper is displayed, whether the screen locking window displayed by different computers needs to be set transparent or not, for example, when the screen locking window is set opaque when the screen locking interface is frozen.
S817, the configuration of the screen locking related business in the system service is completed.
S818, the system service receives the color mode switch event.
In S810 and S811, the system service acquires a lock screen picture of one color mode, and when the color mode of the electronic device is switched, the color mode management service transmits a color mode switching event to the system service, and when the system service receives the color mode switching event, acquires a lock screen picture of another color mode, and performs S809.
In summary, in the embodiment of the present application, the daytime mode resource and the nighttime mode resource are provided for the first wallpaper, and when the electronic device is currently in the daytime mode, the electronic device may display the daytime mode-based resource in the first wallpaper resource, or when the electronic device is currently in the nighttime mode, the electronic device may display the nighttime mode-based resource in the first wallpaper resource, so that the first wallpaper may adapt to the nighttime mode of the electronic, when the first wallpaper is displayed in the nighttime mode, the problem of excessively high brightness of the first wallpaper is avoided, and when the color mode of the electronic device is switched, the first wallpaper may be switched with the color mode of the electronic device, thereby automatically adapting to the brightness displayed by the electronic device, providing a user with more comfortable experience, and improving the user experience.
The electronic device provided in this embodiment is configured to perform the above method, so that the same effects as those of the implementation method can be achieved. In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage actions of the electronic device, for example, may be configured to support the electronic device to execute steps executed by the processing unit. The memory module may be used to support the electronic device to execute stored program code, data, etc. And the communication module can be used for supporting the communication between the electronic device and other devices.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product enabling an electronic device to carry out the steps of the various method embodiments described above when the computer program product is run on a mobile terminal.
In addition, embodiments of the present application also provide an apparatus, which may be embodied as a chip, component or module, which may include a processor and a memory coupled to each other; the memory is configured to store computer-executable instructions, and when the device is operated, the processor may execute the computer-executable instructions stored in the memory, so that the chip performs the methods in the above method embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above-described embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the method embodiments described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer memory, read-only memory (ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the description above, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that reference to "a plurality" in the present specification and appended claims means two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association describing an associated object, and refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations, e.g., a and/or B, which may represent: a exists alone, A and B exist together, and B exists alone.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, are not to be construed as indicating or implying any particular importance, and that the words "first," "second," and the like do not necessarily differ.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. An interface display method, wherein the method is performed by an electronic device, the method comprising:
detecting a first operation, wherein the first operation requests the electronic equipment to display a first wallpaper;
responding to the first operation, acquiring the resource of the first wallpaper, the current color mode of the electronic equipment and the wallpaper service corresponding to the first wallpaper, wherein the color mode of the electronic equipment comprises a daytime mode and a night mode, the resource of the first wallpaper comprises a resource based on the daytime mode and a resource based on the night mode, and different types of wallpapers correspond to different wallpaper services;
and according to the current mode of the electronic equipment, calling the wallpaper service corresponding to the first wallpaper to display one of the resources of the first wallpaper.
2. The method of claim 1, wherein the electronic device is currently in the daytime mode, the method further comprising:
and when a second operation is detected, the second operation instructs the electronic device to switch a color mode from the daytime mode to the nighttime mode, and switches the displayed resource of the first wallpaper from the resource based on the daytime mode to the resource based on the nighttime mode.
3. The method of claim 1, wherein the electronic device is currently in a night mode, the method further comprising:
and when a third operation is detected, the third operation instructs the electronic device to switch a color mode from the night mode to a daytime mode, and switch the displayed resource of the first wallpaper from the resource based on the night mode to the resource based on the daytime mode.
4. A method according to any one of claims 1 to 3, wherein the resources of the first wallpaper comprise at least one of video, pictures.
5. The method of claim 4, wherein the resource of the first wallpaper is stored upon detection of a fourth operation, the fourth operation being an operation in which the first wallpaper is set as wallpaper for the electronic device.
6. The method of claim 5, wherein the method further comprises:
acquiring a color mode of the electronic equipment when the fourth operation is detected;
setting one of the resources of the first wallpaper to be in a state to be displayed according to a color mode of the electronic equipment when the fourth operation is detected;
Responding to the first operation, obtaining the resource of the first wallpaper, the current color mode of the electronic equipment and the wallpaper service corresponding to the first wallpaper, and the method comprises the following steps:
responding to the first operation, and acquiring a current color mode of the electronic equipment and wallpaper service corresponding to the first wallpaper;
and acquiring the other one of the resources of the first wallpaper under the condition that the current color mode of the electronic equipment is inconsistent with the mode of the resources of the first wallpaper in the state to be displayed.
7. An electronic device, comprising: one or more processors; one or more memories; the memory stores one or more programs that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-6.
8. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1 to 6.
CN202211337269.XA 2022-10-28 2022-10-28 Interface display method, electronic equipment and storage medium Active CN115941836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211337269.XA CN115941836B (en) 2022-10-28 2022-10-28 Interface display method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211337269.XA CN115941836B (en) 2022-10-28 2022-10-28 Interface display method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115941836A CN115941836A (en) 2023-04-07
CN115941836B true CN115941836B (en) 2023-10-20

Family

ID=86553160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211337269.XA Active CN115941836B (en) 2022-10-28 2022-10-28 Interface display method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115941836B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252299A (en) * 2013-06-28 2014-12-31 上海斐讯数据通信技术有限公司 Mobile terminal for controlling wallpaper to change color
CN104735247A (en) * 2015-03-11 2015-06-24 广东欧珀移动通信有限公司 Method and device for adjusting screen brightness of mobile terminal
CN105302517A (en) * 2015-10-20 2016-02-03 魅族科技(中国)有限公司 Method and device for regulating display color of terminal screen
CN105511717A (en) * 2015-11-30 2016-04-20 北京京东尚科信息技术有限公司 Page display method and page display device
CN106126094A (en) * 2016-06-21 2016-11-16 深圳市金立通信设备有限公司 A kind of brightness adjusting method and terminal
CN108469976A (en) * 2018-03-13 2018-08-31 北京车和家信息技术有限公司 Mode switching method, mode-changeover device, mobile unit and vehicle
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN111209065A (en) * 2019-12-31 2020-05-29 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
WO2022068724A1 (en) * 2020-09-29 2022-04-07 维沃移动通信有限公司 Image display method and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252299A (en) * 2013-06-28 2014-12-31 上海斐讯数据通信技术有限公司 Mobile terminal for controlling wallpaper to change color
CN104735247A (en) * 2015-03-11 2015-06-24 广东欧珀移动通信有限公司 Method and device for adjusting screen brightness of mobile terminal
CN105302517A (en) * 2015-10-20 2016-02-03 魅族科技(中国)有限公司 Method and device for regulating display color of terminal screen
CN105511717A (en) * 2015-11-30 2016-04-20 北京京东尚科信息技术有限公司 Page display method and page display device
CN106126094A (en) * 2016-06-21 2016-11-16 深圳市金立通信设备有限公司 A kind of brightness adjusting method and terminal
CN108469976A (en) * 2018-03-13 2018-08-31 北京车和家信息技术有限公司 Mode switching method, mode-changeover device, mobile unit and vehicle
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN111209065A (en) * 2019-12-31 2020-05-29 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
WO2022068724A1 (en) * 2020-09-29 2022-04-07 维沃移动通信有限公司 Image display method and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
夜景模式 眼睛的福音;阿立;;电脑爱好者(第19期);全文 *
阿立 ; .夜景模式 眼睛的福音.电脑爱好者.2016,(第19期),全文. *

Also Published As

Publication number Publication date
CN115941836A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN114679537B (en) Shooting method and terminal
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
CN113542839B (en) Screen projection method of electronic equipment and electronic equipment
CN113254409B (en) File sharing method, system and related equipment
WO2020000448A1 (en) Flexible screen display method and terminal
CN114556294A (en) Theme switching method and theme switching device
WO2020118490A1 (en) Automatic screen-splitting method, graphical user interface, and electronic device
CN116048358B (en) Method and related device for controlling suspension ball
CN115129410B (en) Desktop wallpaper configuration method and device, electronic equipment and readable storage medium
WO2020233593A1 (en) Method for displaying foreground element, and electronic device
CN116048831B (en) Target signal processing method and electronic equipment
CN114006698B (en) token refreshing method and device, electronic equipment and readable storage medium
CN113645595B (en) Equipment interaction method and device
CN116828100A (en) Bluetooth audio playing method, electronic equipment and storage medium
CN115941836B (en) Interface display method, electronic equipment and storage medium
CN115904576B (en) Wallpaper application method, electronic equipment and storage medium
CN115529379B (en) Method for preventing Bluetooth audio Track jitter, electronic equipment and storage medium
CN115460445B (en) Screen projection method of electronic equipment and electronic equipment
CN116703691B (en) Image processing method, electronic device, and computer storage medium
CN116437194B (en) Method, apparatus and readable storage medium for displaying preview image
CN116719376B (en) Voltage control method, device, equipment and storage medium
CN116233599B (en) Video mode recommendation method and electronic equipment
CN115904576A (en) Wallpaper application method, electronic device and storage medium
CN116932277A (en) Background application recovery method and device, electronic equipment and readable storage medium
CN116560535A (en) Application component management method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant