WO2022206707A1 - 一种灭屏显示方法及电子设备 - Google Patents
一种灭屏显示方法及电子设备 Download PDFInfo
- Publication number
- WO2022206707A1 WO2022206707A1 PCT/CN2022/083488 CN2022083488W WO2022206707A1 WO 2022206707 A1 WO2022206707 A1 WO 2022206707A1 CN 2022083488 W CN2022083488 W CN 2022083488W WO 2022206707 A1 WO2022206707 A1 WO 2022206707A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- screen
- application
- electronic device
- display
- aod
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 230000006870 function Effects 0.000 claims description 96
- 230000004044 response Effects 0.000 claims description 18
- 230000000694 effects Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 18
- 238000001514 detection method Methods 0.000 description 17
- 230000015572 biosynthetic process Effects 0.000 description 9
- 238000003786 synthesis reaction Methods 0.000 description 9
- 238000007726 management method Methods 0.000 description 7
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 239000011248 coating agent Substances 0.000 description 2
- 238000000576 coating method Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 239000011368 organic material Substances 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/73—Battery saving arrangements
Definitions
- the present application relates to the field of display technology, and in particular, to a screen-off display method and an electronic device. .
- AOD always on Display
- off-screen display refers to displaying the date, clock and other information in part of the screen without lighting the entire screen. In this way, users can quickly obtain information such as date and clock without lighting up the entire screen. It can be noticed that the content displayed on the off-screen display can only be customized by the manufacturer for date and clock information, etc., and the content is single, which cannot meet the display needs of users in different application scenarios.
- the off-screen display method and electronic device provided by the present application can enrich the contents of off-screen display and meet the display requirements of users in different application scenarios.
- a method for off-screen display is provided, which is applied to an electronic device having a screen.
- the method includes: turning on the screen of the electronic device, and running a first application on the electronic device; when the electronic device satisfies the screen-off condition, turning off the screen of the electronic device , and the screen-off picture is displayed, which is recorded as the first picture, and the first picture includes the second picture drawn by the first application.
- the first application when it is detected that the electronic device meets the screen-off condition, the first application is still running.
- the first application can run in the foreground or in the background. That is, when the screen-off condition is met, the screen-off screen displayed by the electronic device (ie, the interface B below) includes the second screen (ie, the interface A below) drawn by the currently running first application.
- the electronic device displays the off-screen image, the user can still obtain the content of the first application in time, which is beneficial to reduce the power consumption of the electronic device.
- the electronic device can only display the customized content of clock, date and notification when the screen is off, the present application can display richer screen-off content to meet the display requirements of users in different application scenarios.
- the method further includes: the electronic device determines that the first application is an application on a preset list, wherein the application of the preset list is an application that allows calling the electronic device.
- the application of the AOD function is always displayed on the device, and the second picture is drawn by the first application calling the AOD function.
- the electronic device can control whether an application (a system application or a third-party application) can call the AOD function by setting a preset list.
- the preset list may be set by default by the system, for example, an application that has a specific cooperative relationship with a mobile phone manufacturer.
- the preset list can also be set by the user.
- the mobile phone can add or change the content of the preset list, that is, the list of applications that are allowed (or not allowed) to invoke the AOD function of the electronic device, by means of system upgrade or individual update of the configuration library.
- the method further includes: the second picture is drawn by the first application by calling the AOD function according to the screen capability of the electronic device; wherein, the screen capability of the electronic device includes whether to support the screen self-refresh capability, whether to support Colorful display, whether to support dynamic effects, whether to support one or more of display position customization.
- the electronic device can report the screen capability of the electronic device to the upper-layer application when the electronic device is powered on, or when the user enables the AOD function through system settings for the first time, or when the electronic device installs or updates an application.
- the upper-layer application acquires the screen capability of the electronic device, a customized screen-off screen can be drawn according to the screen capability of the electronic device. In this way, it is convenient for the first application to draw the second picture according to the actual screen capability of the electronic device.
- the second screen is a screen of a partial area on the first interface of the first application; or, the second screen includes the first interface of the first application; or, the second screen is a screen of the first interface of the first application. Simplified version.
- the first interface of the first application is used for the interface displayed by the first application when the screen of the electronic device is on.
- the second screen may only include pictures in a part of the first interface, and the second screen
- the screen may also be the same as the first interface or a reduced version of the first interface, or the second screen may be a simplified version of the first interface, that is, including part of the content in the first interface, and recombining or typesetting the part of the content.
- the second screen includes the first control
- the method further includes: in response to the user operating the first control, the second screen is changed to a third screen drawn by the first application.
- the second screen may include a first control for interacting with the user, so when the screen of the electronic device is off, the user can still interact with the electronic device.
- the first application draws a new screen, ie, the third screen, according to its own business logic and the like.
- the second screen among the screen-off screens displayed by the electronic device is switched to the third screen.
- the screen-off screen displayed when the screen of the electronic device is off is customized content, and the user can operate the electronic device only after lighting and unlocking the electronic device.
- the first application can be directly operated to obtain timely application information, and the operation is more convenient.
- the method before the screen of the electronic device is turned off and the first picture is displayed, the method further includes: the electronic device determines the content of the first picture according to a preset strategy.
- the mobile phone when the mobile phone runs multiple applications, and these multiple applications have the ability to call the AOD function, the mobile phone can choose to display some of the multiple applications on the off-screen screen according to the display strategy set by the user. Information.
- the off-screen image displayed by the mobile phone does not necessarily include information of all applications currently running on the mobile phone and having the function of calling AOD.
- the preset strategy includes displaying the content of the AOD application, or displaying the content of the first application, or displaying the content of the AOD application and the first application; wherein, the content of the AOD application includes time, date, and notification. one or more of the.
- the electronic device determines the content of the first picture according to a preset strategy, specifically: when the preset strategy is to display the content of the first application, the electronic device determines that the first picture includes the second picture, and does not. It includes the fourth picture drawn by the AOD application; or, when the preset strategy is to display the content of the AOD application and the first application, the electronic device determines that the first picture includes the second picture and the fourth picture drawn by the AOD application.
- the preset policy includes displaying the top M applications ranked by application priority, where M is a positive integer greater than or equal to 1.
- the first application is a map application, any one of a food delivery application, a taxi-hailing application, a shopping application, and a flash delivery application.
- the mobile phone needs to acquire the location of the mobile phone in real time or at intervals, and update the data in the navigation interface (eg, the current location of the user in the route diagram 404 or the navigation information in the navigation instruction 403 ) according to the updated location.
- the entire navigation process takes a long time.
- the mobile phone will automatically turn off the screen (ie, the screen will be turned off over time). Then, the user needs to repeatedly light up the screen of the mobile phone and unlock it to see the navigation interface again, which is cumbersome to operate and has a poor user experience.
- the CPU when the screen of the mobile phone is turned off, the CPU will be controlled to be in a dormant state, and the positioning module and other functional modules will be turned off.
- the mobile phone needs to re-open the positioning module, which is used to obtain the current location of the mobile phone and update the navigation interface. It can be seen that the refresh efficiency of the navigation interface is low after the screen of the mobile phone is turned on again after the screen is turned off.
- the off-screen screen containing the navigation information of the map application can be displayed, so that the user can directly obtain the screen without lighting and unlocking the screen. Navigate information to enhance user experience.
- the mobile phone displays a navigation interface including a map application in the off-screen screen
- the mobile phone does not turn off the positioning module.
- the positioning module of the mobile phone is still turned on.
- the map application is running in the background, the current position of the mobile phone can still be acquired in real time or at intervals, and the image data of the navigation interface can be determined according to the current position of the mobile phone.
- the mobile phone When the image data of the navigation interface does not change, the mobile phone keeps the CPU, GPU, etc. in a dormant state, so as to reduce the power consumption of the mobile phone.
- the mobile phone wakes up the CPU, GPU, etc., draws a map to apply a new navigation interface, and updates the off-screen screen. In this way, the user can directly obtain the navigation data of the map application through the off-screen screen without repeatedly lighting the screen and unlocking the screen, which simplifies the user operation and reduces the power consumption of the mobile phone at the same time.
- the screen-off screen for displaying the navigation information when the screen of the mobile phone is off provided by the embodiments of the present application is beneficial to saving electronic equipment. power consumption and prolong the standby time of electronic equipment.
- a method for off-screen display is provided, which is applied to a first application installed on an electronic device.
- the method includes: receiving a first notification that the electronic device satisfies a screen-off condition; in response to receiving the first notification, the first The application draws a second picture; wherein the second picture is used to be displayed in the first picture displayed when the electronic device is off the screen.
- the AOD function of the electronic device detects that the electronic device satisfies the screen-off condition, it sends the first notification to the first application.
- the first application draws a second picture, where the second picture is content to be displayed by the first application when the screen of the electronic device is turned off. In this way, the user can obtain the content of the first application in time from the screen-off screen displayed by the electronic device. In this way, the power consumption of the electronic device is reduced, and the updated content of the first application can be obtained in time.
- the second screen is a screen of a partial area on the first interface; or, the second screen includes the first interface; or, the second screen is a simplified version of the first interface.
- the second screen includes the first control
- the method further includes: the first application receives a second notification that the user operates the first control; in response to receiving the second notification, the first application draws the third screen , the third picture is used to replace the second picture.
- a possible implementation further includes: the first application obtains the screen capability of the electronic device, wherein the screen capability of the electronic device includes whether to support the screen self-refresh capability, whether to support colorful display, whether to support dynamic effects, and whether to support display position.
- the first application draws the second picture, specifically: the first application draws the second picture according to the screen capability of the electronic device.
- an electronic device comprising: a processor, a memory and a display screen, the memory and the display screen are coupled to the processor, the memory is used for storing computer program code, the computer program code includes computer instructions, when the processor is retrieved from the memory The computer instructions are read, so that the electronic device executes the first aspect or the second aspect above, and the off-screen display method in any of the possible implementation manners thereof.
- a computer-readable storage medium comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the above-mentioned first aspect or second aspect, and any possible implementation manner thereof The screen-off method in .
- a fifth aspect provides a computer program product that, when the computer program product runs on a computer, enables the electronic device to perform the above-mentioned first aspect or the second aspect, and the screen-off display method in any of the possible implementations. .
- an apparatus in a sixth aspect, is provided, the apparatus is included in an electronic device, and the apparatus has the function of implementing the above-mentioned first aspect or the second aspect, and the behavior of the electronic device in any of the possible implementation manners.
- This function can be implemented by hardware or by executing corresponding software by hardware.
- the hardware or software includes at least one module or unit corresponding to the above-mentioned functions. For example, a detection module or unit, a display module or unit, and a processing module or unit, etc.
- a chip system including a processor.
- the processor executes an instruction, the processor executes the method described in each of the foregoing aspects and any of the possible implementation manners.
- FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 2 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a method for determining a screen-off screen by an electronic device according to an embodiment of the present application
- FIG. 4 is a schematic diagram of a graphical user interface of some electronic devices provided in an embodiment of the present application.
- FIG. 5 is a schematic diagram of a graphical user interface of further electronic devices provided in an embodiment of the present application.
- FIG. 6 is a schematic diagram of a graphical user interface of further electronic devices provided by the embodiments of the present application.
- FIG. 7 is a schematic diagram of a graphical user interface of further electronic devices provided in an embodiment of the present application.
- FIG. 8 is a schematic diagram of a graphical user interface of further electronic devices provided in an embodiment of the present application.
- FIG. 9 is a schematic flowchart of a method for off-screen display provided by an embodiment of the present application.
- FIG. 10 is a schematic diagram of another method for off-screen display provided by an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of a chip system according to an embodiment of the present application.
- first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features.
- a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
- plural means two or more.
- words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
- the off-screen display method provided by the embodiments of the present application can be applied to an electronic device having a screen, and the electronic device can be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch , netbooks, wearable electronic devices, augmented reality (AR) devices, virtual reality (VR) devices, in-vehicle devices, smart cars, smart speakers, etc.
- the specific form of the electronic device is not specified in this application. Special restrictions.
- FIG. 1 shows a schematic structural diagram 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 (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, positioning module 181, buttons 190, motor 191, indicator 192, camera 193, screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different 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, for example, 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), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural-network processing unit neural-network processing unit
- the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- the processor 110 may control the electronic device 100 to turn off the screen and display a screen-off image in response to receiving a screen lock operation performed by the user.
- the above-mentioned screen-locking operation performed by the user may be, for example, an operation that the user presses the screen-locking key (or the power key) when the electronic device 100 is on the screen.
- the processor 100 may also control the electronic device 100 when it is detected that the user has not operated the electronic device 100 for a preset period of time and the electronic device 100 has not performed a specific service (such as playing a video, etc.). The screen is turned off, and the screen-off screen is displayed.
- the so-called off-screen image refers to the content displayed on the screen when the electronic device is off, and the off-screen image generally does not occupy the entire screen. That is to say, when the screen of the electronic device 100 is turned off, at least part of the area on the screen is black, and no content is displayed.
- the off-screen screen may include information about the application program (or the application program currently running in the background) running before the electronic device 100 locks the screen, such as the navigation information of the map application (for example, the ahead turn information, lane change information, road condition information, Remaining time, etc.), delivery information of takeaway applications (such as the rider’s current location, distance, remaining time, etc.), navigation information of taxi-hailing applications (such as vehicle location, passenger location, remaining time, etc.), shopping applications, flash delivery applications, etc.
- the navigation information of the map application for example, the ahead turn information, lane change information, road condition information, Remaining time, etc.
- delivery information of takeaway applications such as the rider’s current location, distance, remaining time, etc.
- navigation information of taxi-hailing applications such as vehicle location, passenger location, remaining time, etc.
- shopping applications flash delivery applications, etc.
- the processor 110 controls the electronic device 100 to enable only the functional modules related to displaying the above-mentioned off-screen image, such as the functional modules related to the display function and the positioning module. 181 (used to provide the positioning position of the electronic device 100 ), etc.; turn off other functional modules unrelated to displaying the above-mentioned off-screen screen, such as the modem processor (Modem) in the processor 110, and the Bluetooth module in the wireless communication module 160 , WiFi module, sensor module, etc.
- Modem modem processor
- the processor 110 may include one or more interfaces.
- the interface 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 transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is used to receive charging input from the charger.
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the screen 194, the camera 193, the wireless communication module 160, and the like.
- 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, the modulation and demodulation processor, the baseband processor, and the like.
- the positioning module 181 is used to provide the positioning of the electronic device 100 . Specifically, when the electronic device 100 starts an application with a positioning function, the electronic device 100 activates the positioning module 181 to obtain the real-time positioning of the electronic device 100 .
- the applications with the positioning function include, for example, map applications, navigation applications, takeaway applications, and the like.
- the electronic device 100 when the electronic device 100 is off-screen, and the electronic device 100 only displays the off-screen screen customized by the AOD application, the electronic device 100 will turn off the positioning module.
- the displayed screen off screen may include information of the application that needs to be located. Therefore, when the screen of the electronic device is off, the positioning module 181 is still turned on, and the position information of the electronic device can be continuously obtained through the positioning module. In other words, when the electronic device runs an application that needs to be located, the screen of the electronic device is off, and when the off-screen screen to be displayed contains information about the application that needs to be located, the electronic device does not turn off the positioning module.
- the electronic device when the off-screen screen to be displayed includes the navigation function of a map application, the electronic device does not turn off the positioning module when the screen is off.
- the electronic device when the off-screen screen to be displayed includes a navigation function of a food delivery application, the electronic device does not turn off the positioning module when the screen is off.
- the electronic device 100 implements a display function through a GPU, a screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and connects the screen 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 alter display information.
- Screen 194 is used to display images, videos, and the like.
- Screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
- diode, AMOLED organic light-emitting diode
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device 100 may include 1 or N screens 194, where N is a positive integer greater than one.
- the screen 194 supports the AOD function for displaying the screen-off picture. That is, the processor 110 does not light up the entire screen 194 or the entire screen 194, but controls a part of the entire screen 194 or M screens in the N screens 194 to light up (M is greater than or equal to 1, and is less than N), which is used to display an off-screen image, thereby reducing the power consumption of the screen 194 .
- the AOD function in this application can also be expressed as a screen-off display function, an on-screen display function, a screen-off display function, a constant-on display function, or other names.
- the screen 194 may be a self-illuminating screen.
- the OLED screen is a screen made of organic electroluminescent diodes, which is different from the traditional LCD display mode and does not require a backlight.
- the OLED screen is composed of a very thin organic material coating and a glass substrate. It emits light by driving the organic material coating itself through a current. The light emitted can be red, green, blue, white and other monochromatic colors. color effect. It should be noted that, the OLED screen can make the screen display black by turning off the light-emitting unit of the screen.
- the processor 110 can independently control each pixel in the OLED screen to display content. Therefore, the processor 110 can light up the light-emitting units of a part of the pixels to display the information of the application running before the lock screen (or the application currently running in the background), such as the navigation information of the navigation application, the information of the Meituan application Navigation interface, navigation interface of taxi application, etc. Other unlit pixels are used to display black images.
- the screen 194 can also be a conventional LCD screen. Then, the backlight of the LCD screen can be improved, so that when the screen 194 is turned off, only a part of the screen is lit, which is used to display the application program running before the lock screen (or the application program currently running in the background). Information, such as the navigation information of the navigation application, the navigation interface of the Meituan application, the navigation interface of the taxi application, etc. Other unlit areas (other pixels) display black images.
- the specific implementation of the AOD function on the LCD screen is not limited.
- the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a screen 194, an application processor, and the like.
- 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 playback, recording, etc.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
- Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
- the indicator 192 may be an indicator light, which may be used to indicate charging status, battery change, and may also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
- FIG. 2 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present invention.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the Android system is divided into three layers, which are an application layer (referred to as an application layer for short), an application framework layer (referred to as a framework layer for short), and a kernel layer (or a driver layer for short) from top to bottom. ).
- the application layer described above may include a series of application packages.
- the application package includes an AOD application, which is used to display a screen-off image when the screen of the electronic device 100 is off.
- the AOD application is a system application of the electronic device 100 , and the so-called system application refers to an application preset in the electronic device 100 before the electronic device 100 leaves the factory.
- the AOD application can display system time, calendar, notification and other information when the screen of the electronic device 100 is off.
- the application package can also include other system applications such as camera, gallery, calendar, calling, maps, SMS and other programs.
- the application package may also include third-party applications, ie, applications that can be installed by a user by downloading an installation package from, for example, an application market.
- third-party applications ie, applications that can be installed by a user by downloading an installation package from, for example, an application market.
- map classes such as Baidu Maps Sogou Map
- food delivery applications such as Meituan are you hungry
- an electronic device invokes a frame-layer off-screen picture drawing interface (such as a picture drawing module, a picture configuration module, a picture color module, and a picture synthesis module) through an AOD application to display the off-screen picture.
- the off-screen image displayed by the electronic device only includes the customized content in the AOD application, such as system time, calendar, notification and other information.
- other system applications or third-party applications of the electronic device may also call the relevant interface of the off-screen display in the framework layer to display the off-screen image.
- the screen-off screen displayed by the electronic device may also include content of other system applications or third-party applications.
- the above-mentioned application program framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application program layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include AOD services, AOD original interfaces (also called native interfaces), picture drawing modules, picture configuration modules, picture color modules, and picture synthesis modules.
- the application framework layer may also include an AOD extension interface, a configuration library, a detection module, a detection module, and the like.
- the AOD application when the AOD application detects the user's screen-off operation or detects that the user does not operate the electronic device within a preset period of time and the electronic device does not perform a specific task (such as playing a video), that is, when the screen is turned off after a timeout, the AOD service is used.
- the original interface of AOD calls the corresponding interface in the picture drawing module, picture configuration module, picture color module, and picture synthesis module to draw the off-screen picture.
- third-party applications can also call the corresponding interfaces in the picture drawing module, picture configuration module, picture color module, and picture synthesis module through the AOD service, AOD extension interface, and the drawing includes the third-party application ( or other system applications) information on the screen off screen. That is to say, the original off-screen screen drawing interface can be opened to third-party applications or other system applications, so as to realize the third-party applications or other system applications, and customize the drawing of off-screen images containing information of the third-party applications or other system applications.
- the detection module when the AOD application detects the user's screen-off operation or the screen-off after a timeout, the detection module is notified through the AOD service.
- the detection module is used to detect the application currently running on the electronic device, and query the configuration library whether the currently running application has the ability to display off-screen, that is, whether it has the authority to call the off-screen screen drawing interface.
- the configuration library may include information (for example, a package name) of an application that is allowed to call the off-screen screen drawing interface, that is, the configuration library includes a whitelist for off-screen display.
- the configuration library includes information about applications that are not allowed to call the off-screen screen drawing interface, that is, the configuration library includes a blacklist for off-screen display.
- the detection module notifies the corresponding application at the upper layer (which may be an AOD application, other system applications or third-party applications).
- the upper-layer corresponding application determines the content of the off-screen image according to its own business logic, and sends a drawing request for the off-screen image to the AOD service.
- the AOD service sends the received drawing requests of multiple applications to the decision-making module, and the decision-making module determines the content of the final drawn off-screen screen according to a preset strategy. That is, the content of which applications are included in the final drawn off-screen image. For example, only the off-screen image of AOD applications is drawn; the off-screen images of other system applications or third-party applications are drawn; the off-screen images of AOD applications and the off-screen images of other system applications or third-party applications are drawn.
- the drawing of the off-screen images of other system applications or third-party applications includes drawing off-screen images of all applications, or drawing off-screen images of some of the applications.
- the off-screen image of the drawing part of the application may be the off-screen image of an application with the highest drawing priority, or the off-screen images of multiple applications with higher drawing priorities.
- the strategy adopted by the decision-making module may be set by the system of the electronic device by default, or may be set by the user through a system setting item in the electronic device, and the specific strategy adopted by the decision-making module is not specifically limited in this embodiment of the present application. .
- the decision-making module calls the relevant interfaces of the off-screen display (screen drawing module, screen configuration module, screen color module, and screen synthesis module, etc.) through the original AOD interface to generate the off-screen screen of the AOD application.
- the drawing command is used to draw the picture that the AOD application needs to display when the screen is off.
- the decision-making module invokes the relevant interfaces of off-screen display (screen drawing module, screen configuration module, screen color module, and screen synthesis module, etc.) through the AOD extension interface to generate the off-screen display of the application.
- the drawing command of the screen is used to draw the screen that the application needs to display when the screen is off.
- the detection module detects that the applications currently running on the electronic device include: application A (AOD application), application B (other system application), application C (other system application), application D (three-party application), application E (three-party application). Then, by querying the configuration library, it is determined that the applications that are allowed to call the relevant interface of the off-screen display are: application A, application B, application C, and application D.
- the AOD application can also be defaulted to be an application that allows calling the related interface of the off-screen display, that is, it can be determined that the AOD application is an application that allows calling the related interface of the off-screen display without querying the configuration library, or, When there is no identifier of the AOD application in the configuration library, it can also be determined that the AOD application is an application that allows calling the relevant interface of the off-screen display. Then, application A, application B, application C, and application D of the application layer can respectively draw corresponding off-screen images according to their own business logic requests.
- the decision module determines, according to a preset strategy, that the final displayed screen-off screen includes application A (AOD application) and application D (such as the application with the highest priority). Then, the decision module determines to send the drawing requests of application A and application D to the original AOD interface and the AOD extended interface respectively, and further calls the drawing interface of the off-screen image to draw the off-screen image including application A and application D information.
- application A AOD application
- application D such as the application with the highest priority
- a notification is sent to the upper-layer application through the AOD service.
- All upper-layer applications can monitor the screen-off notification sent by the AOD service.
- An application capable of drawing an off-screen image determines the content of the off-screen image according to its own business logic, and sends a drawing request for the off-screen image to the AOD service.
- the AOD service sends the drawing request sent by the upper-layer application to the detection module.
- the detection module is used to determine whether the application is currently running on the electronic device, and query the configuration library whether the currently running application has the ability to display off-screen, that is, whether it has the right to call the off-screen screen drawing interface.
- the detection module allows third-party applications (or other system applications) to call the corresponding interfaces in the screen drawing module, screen configuration module, screen color module, and screen synthesis module, and the drawing includes third-party applications. (or other system application) information on the screen off screen.
- the off-screen images drawn by each application are sent to the decision-making module, and the decision-making module determines the content of the final drawn off-screen images according to a preset strategy. That is, the content of which applications are included in the final drawn off-screen image. For the rest of the content, reference may be made to the description of the related content in the previous embodiment.
- the original AOD interface and the AOD extension interface may be integrated, or the original AOD interface and the AOD extension interface may also be integrated with the AOD service, which is not specifically limited in this embodiment of the present application.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes screen self-refresh (panel self refresh, PSR) capability, low-power display capability, brightness adjustment capability, position customization capability, dynamic effect capability, color capability, positioning capability, etc.
- the screen self-refresh (panel self refresh, PSR) capability refers to the capability of the electronic device to determine whether to refresh the screen according to whether the screen to be displayed changes.
- the screen of the electronic device may integrate a screen memory, that is, the screen has a random access memory (random access memory, RAM) for storing image data to be displayed on the screen.
- RAM random access memory
- the transmission circuit of the image data can be suspended. That is to say, when the screen-off image displayed on the screen remains unchanged for a period of time, the electronic device can control the CPU, GPU, etc. to enter a sleep state, thereby reducing power consumption.
- the transmission circuit of the image data is restored, the CPU, GPU, etc. are awakened to draw a new off-screen image. And, the previous detection process (detecting whether the image data of the previous and previous frames are consistent) is repeated, so as to complete the next operation of suspending the transmission circuit of the image data.
- the low power consumption display capability includes the ability to switch the power supply mode of the screen, and switch the screen from the normal mode to the doze mode, thereby reducing the power consumption of the electronic device when the screen is off.
- the low-power display capability also includes switching the operating mode of the touch screen.
- the screen of the electronic device is a touch screen, and the touch operation mode of the screen is switched from an active (active) mode to an idle (idle) mode, so as to reduce the power consumption of the electronic device when the screen is off.
- the brightness adjustment capability includes detecting the brightness value of the surrounding ambient light when the electronic device is off the screen, and dynamically adjusting the brightness of the off-screen screen according to the brightness value of the periodic ambient light, so that the user can see clearly in any environment. Screen off screen.
- the intensity value of the brightness of the screen it can be divided into multiple working modes (for example, two or three gears), and when the electronic device is off-screen, the first working mode with a lower brightness intensity value can be used. .
- the location customization capability (also known as the display location customization capability) means that when other system applications or third-party applications draw an off-screen image, they can specify the display position of the off-screen image drawn by their own application on the screen, as well as the off-screen image. size, etc. For example, specify to display in the center of the screen, display in the lower part of the AOD custom screen, etc.
- the size of the built-in RAM of the screen determines the size of the entire off-screen image that can be displayed on the screen, and the off-screen image of each application cannot be larger than the maximum value of the entire off-screen image.
- the dynamic effect capability means that when the screen of the electronic device is off, the content in the off-screen screen can be set with dynamic effects, for example, including entering the dynamic effect, the dynamic effect when the content of the off-screen screen changes, and the dynamic effect of exiting the off-screen screen Wait.
- the color capability refers to the ability to control the color of the off-screen image when the electronic display screen is off.
- the positioning capability refers to the capability of providing positioning of the electronic device. Specifically, when the electronic device starts an application with a positioning function, the electronic device activates the positioning module to obtain the real-time positioning of the electronic device.
- the applications with the positioning function include, for example, map applications, navigation applications, takeaway applications, and the like.
- the electronic device will turn off the positioning module when only the screen-off screen customized by the AOD application is displayed on the electronic device.
- the displayed screen off screen may include information of the application that needs to be located. Therefore, when the screen of the electronic device is off, the positioning module 181 is still turned on, and the position information of the electronic device can be continuously obtained through the positioning module.
- the electronic device runs an application that needs to be located, the screen of the electronic device is off, and when the off-screen screen to be displayed contains information about the application that needs to be located, the electronic device does not turn off the positioning module.
- the kernel layer may further include a screen capability reporting capability and the like.
- the screen capability reporting capability includes reporting the capabilities (low-power display capability, brightness adjustment capability, position capability, dynamic effect capability, color capability, etc.) The application of the application layer, so that the application of the application layer can draw a corresponding screen-off screen according to the screen capability of the electronic device.
- the user can start the application by operating the application icon in the main screen interface of the mobile phone. For example, in response to the user clicking on the icon 401 corresponding to the map application on the home screen interface of the mobile phone, the mobile phone starts and starts the map application, and displays the main interface of the map application.
- the user can also open the map application through a voice command, or open the map application through other methods (for example, clicking a link of location information in an instant messaging application, etc.). This application does not limit the manner of starting the map application.
- the user can perform a series of operations on the main interface of the map application, such as inputting a destination, selecting a route (such as a conventional route), etc., and clicking the "Start Navigation" control, and the mobile phone enters as shown in (2) in Figure 4.
- Navigation interface 402 shown.
- the navigation interface 402 there are displayed navigation instructions 403, a route icon 404, and some functional controls (eg, exit, continue current navigation, more, etc.).
- the mobile phone needs to acquire the location of the mobile phone in real time or at intervals, and update the data in the navigation interface (eg, the current location of the user in the route diagram 404 or the navigation information in the navigation instruction 403 ) according to the updated location.
- the whole navigation process takes a long time, such as 20 minutes, 1 hour, 4 hours, etc.
- the mobile phone will automatically turn off the screen (ie, the screen will be turned off over time). Then, the user needs to repeatedly light up the screen of the mobile phone and unlock it before he can see the navigation interface 402 again.
- the operation is cumbersome and the user experience is not good.
- the CPU will be controlled to be in a dormant state, and the positioning module and other functional modules will be turned off.
- the mobile phone When the user re-lights the screen of the mobile phone and unlocks it, the mobile phone needs to restart the positioning module, which is used to obtain the current position of the mobile phone and update the navigation interface. It can be seen that the refresh efficiency of the navigation interface is low after the screen of the mobile phone is turned on again after the screen is turned off.
- the off-screen screen containing the navigation information of the map application can be displayed, so that the user can directly obtain the navigation information without performing the operation of lighting the screen and unlocking the screen, improving the user experience.
- the off-screen screen provided by the embodiments of the present application for displaying navigation information when the screen of the mobile phone is off is beneficial to saving the power consumption of the electronic device to extend the standby time of electronic devices.
- the user can enable the permission of the map application to invoke the drawing of the off-screen screen in the system settings.
- the mobile phone in response to the user operating the icon 501 of the “settings” application in the home screen interface of the mobile phone, the mobile phone displays the setting interface 502 shown in (2) in FIG. 5 .
- the setting interface 502 includes a setting item 503 of "AOD".
- the mobile phone In response to the user operating the setting item 503 of "AOD", the mobile phone displays the setting interface 601 of the AOD function as shown in (1) in FIG. 6 .
- the setting interface 601 displays the switch controls of the AOD function.
- the mobile phone displays the application selection interface 603 as shown in (2) in FIG. 6 .
- the default AOD application has the function of calling AOD.
- the selection interface 603 may also display the identifiers (such as names or icons, etc.) of other applications installed on the mobile phone. The user can select a corresponding application as an application that allows calling the AOD function.
- the mobile phone in response to the user's operation of selecting a map application in the selection interface 603, the mobile phone displays an interface 604 as shown in (3) in FIG. 6, that is, the map application is selected.
- the user has authorized the map application to call the AOD function.
- the user can also authorize other applications, or this method modifies the permission of the application to call the AOD function.
- the mobile phone After the user clicks the "OK" control in the interface 604, the mobile phone stores the information of the application set by the user that is allowed to invoke the AOD function.
- the configuration library in the framework layer of the mobile phone stores a list of applications set by the user that are allowed to invoke the AOD function.
- the application that allows calling the AOD function of the mobile phone may also be set by default in the system, for example, an application that has a specific cooperative relationship with the mobile phone manufacturer. Then, the mobile phone can add or change the list of applications that are allowed to invoke the AOD function of the mobile phone by means of system upgrade or individual update of the configuration library.
- the mobile phone displays the off-screen screen containing the navigation information of the map application.
- the screen-off screen 1 as shown in (1) in Figure 7 can be displayed, wherein the screen-off screen 1 includes the time, date, notification and other information customized by the AOD application, and also includes part of the map application. information (such as navigation instructions).
- the screen-off screen 2 shown in (2) in FIG. 7 is displayed. Among them, the screen-off screen 2 contains
- the time, date, notification and other information customized by the AOD application also include the navigation interface in the map application.
- the navigation interface in the map application included in the screen-off screen 2 may be a reduced version of the original navigation interface of the map application, or a simplified version of the original navigation interface of the map application.
- the detection module of the mobile phone framework layer detects that the application currently running on the mobile phone has a map application. And, further, the mobile phone inquires from the configuration library that the map application is an application that allows calling the AOD function.
- the detection module notifies the map application, and the map application uses the AOD extension interface to call the relevant interfaces of the screen-off screen (such as screen drawing module, screen configuration module, screen color module, and screen synthesis module) to draw the corresponding screen-off screen, such as drawing a graph
- the relevant interfaces of the screen-off screen such as screen drawing module, screen configuration module, screen color module, and screen synthesis module
- draw the corresponding screen-off screen such as drawing a graph
- the navigation instructions shown in (1) in 7, or the navigation instructions, real-time maps, and function controls shown in (2) in FIG. 7 are drawn.
- the mobile phone when the mobile phone displays the navigation interface including the map application, the mobile phone does not close the positioning module. In other words, when the screen of the mobile phone is off, the positioning module of the mobile phone is still turned on. Then, when the map application is running in the background, the current position of the mobile phone can still be acquired in real time or at intervals, and the image data of the navigation interface can be determined according to the current position of the mobile phone. When the image data of the navigation interface does not change, the mobile phone keeps the CPU, GPU, etc. in a dormant state, so as to reduce the power consumption of the mobile phone.
- the mobile phone wakes up the CPU, GPU, etc., draws a map to apply a new navigation interface, and updates the off-screen screen.
- the user can directly obtain the navigation data of the map application through the off-screen screen without repeatedly lighting the screen and unlocking the screen, which simplifies the user operation and reduces the power consumption of the mobile phone at the same time.
- the user can also set the display policy in the AOD function. That is to say, when the mobile phone runs multiple applications, and these multiple applications have the ability to call the AOD function, the mobile phone can choose to display some of the multiple applications on the off-screen screen according to the display strategy set by the user. Information. In other words, the off-screen image displayed by the mobile phone does not necessarily include information of all applications currently running on the mobile phone and having the function of calling AOD.
- the setting interface 601 of the AOD function as shown in (1) in FIG. 8 may further include a setting item 605 of the display policy.
- the mobile phone can display the setting interface 801 of the display policy as shown in (2) in FIG. 8 .
- the setting interface 801 for displaying the policy may include three policies, namely, policy 1 to policy 3 .
- the strategy 1 is to display only the AOD application, that is, the screen-off screen displayed by the mobile phone only includes information customized by the AOD application, such as time, date and notification.
- the screen of the mobile phone is off, an AOD application and a map application are running, and the screen-off screen only includes the time, date and notification customized by the AOD application, and does not include information of the map application.
- the AOD function is enabled on the mobile phone, the mobile phone has always been running the AOD application.
- Strategy 2 is to only display non-AOD applications, that is, the off-screen screen displayed by the mobile phone only includes other system applications with AOD functions except AOD applications, and information about third-party applications with AOD functions, such as the map application here. It can be understood that, after strategy 2 is adopted, the off-screen screen displayed by the mobile phone may include information of one or more applications that meet the conditions. For example, when the screen of the mobile phone is off, an AOD application and a map application are running, and the screen-off screen includes the information of the map application, but does not include the time, date and notification customized by the AOD application.
- Strategy 3 Display AOD+non-AOD applications, that is, the off-screen screen displayed by the mobile phone includes the time, date and notification customized by the AOD application, as well as information about other system applications and third-party applications that have the function of calling AOD. It can be understood that after strategy 3 is adopted, the screen-off screen displayed by the mobile phone may include information of one or more applications that meet the conditions. For example, when the screen of the mobile phone is off, an AOD application and a map application are running, and the off-screen screen includes the information of the map application, as well as the time, date and notification customized by the AOD application.
- strategy 1 to strategy 3 are mutually exclusive strategies, that is, only one of strategy 1 to strategy 3 can be selected.
- strategy 2 or strategy 3 can also be combined with other strategies.
- strategy 2 or strategy 3 when multiple eligible applications are determined according to policy 2 or policy 3, it may be further determined to refresh one or more applications from the multiple eligible applications.
- a specific number eg 1, 3) of applications with higher priority are displayed preferentially.
- the priority of the application may be set by default by the system, or manually set by the user (for example, set by the control 803 in the interface 801 described in (2) in FIG. 8 ), which is not limited.
- a specific number (eg, 1, 3) of recently used applications are preferentially displayed.
- the most recently used application can be considered as the last application that switches from the foreground to the background before the screen of the phone is turned off. For example, after the user opens application 1, and does not close application 1, he opens application 2 again. When application 2 is running in the foreground (the user can interact with application 2), the screen of the mobile phone is turned off. At this time, application 2 is switched to run in the background, and it can be considered that application 2 is the most recently used application by the user compared to application 1 . For another example, following the above example, if the user switches back to the application 1 after opening the application 2, that is, when the application 1 is running in the foreground, the screen of the mobile phone is turned off.
- Application 1 is switched to run in the background again, it is considered that Application 1 is the most recently used application by the user compared to Application 2.
- the most recently launched applications are preferentially displayed.
- the mobile phone records the startup time of each application, and determines the most recently launched application according to the startup time of each application.
- the above strategy 1 to strategy 3 are examples of a display strategy provided by the embodiment of the present application, and of course any other display strategy may also be adopted.
- the mobile phone can also display the setting interface 802 of the display policy as shown in (3) in FIG. 8 .
- the user may choose to display one or more applications with higher priority, or may choose to display one or more recently used applications, and may also choose to display one or more recently launched applications, or display all applications.
- the selection of all applications here includes all applications that run when the screen of the mobile phone is off, and have the function of calling AOD.
- the off-screen screen of the mobile phone can also preferentially display information of third-party applications or other system applications.
- the screen of the mobile phone is off, when other system applications or third-party applications that can call the AOD function are running, the information of the other system applications or the third-party applications is displayed, and the information of the AOD application is not displayed.
- the phone is not running and can call other system applications or third-party applications, the information of the AOD application is displayed.
- the present application does not limit the method of setting the policy and the content of the policy.
- the mobile phone After the user sets the specific display policy, in response to the user clicking the "OK" control in the interface 801 or the interface 802, the mobile phone stores the display policy set by the user.
- the decision module in the mobile phone frame layer stores the display strategy set by the user.
- the display policy may also be set by default by the system.
- the detection module of the mobile phone framework layer detects that there are multiple applications currently running on the mobile phone, for example
- the running applications include map application, WeChat app, hungry application.
- the mobile phone queries the map application, Ele.me from the configuration library
- An application is an application that allows calling the AOD function.
- WeChat The application is an application that is not allowed to call the AOD function. Therefore, the detection module notifies the map application of the application layer and the hungry application.
- the map app and Ele.me The application calls the relevant interfaces of the screen-off screen (such as screen drawing module, screen configuration module, screen color module, and screen synthesis module) through the AOD extension interface to draw the corresponding screen-off screen.
- the AOD application also draws the customized picture of the AOD application through the original interface of the AOD. map app, hungry
- the application and AOD application request an instruction to display the screen-off screen and send it to the decision-making module.
- the policy in the decision module is to display the application with the highest priority.
- the order of priority from high to low is: Maps App > Ele.me Applications > AOD Applications.
- the decision-making module determines that only the off-screen image of the map application is displayed, that is, the finally displayed off-screen image includes the information of the map application.
- the decision-making module calls the corresponding capabilities in the kernel layer, such as low-power display capability, brightness adjustment capability, position customization capability, dynamic effect capability, and color capability, and finally displays it on the screen.
- a screen-off screen containing information about the Maps app appears.
- the policy in the decision module is to display non-AOD applications. Then, the decision module determines the display map application and the hungry The screen-off screen drawn by the application, that is, the screen-off screen finally displayed includes the map application and Ele.me application information. Decision module based on map application and hungry The display requirements of the application call the corresponding capabilities in the kernel layer, such as low-power display capability, brightness adjustment capability, position customization capability, dynamic effect capability, and color capability, and finally display the map application on the screen. and Ele.me app info screen off screen.
- other system applications or third-party applications can set the display content, display position, display mode, etc. when the screen is off by default.
- the user can also set the display content, display position, and display mode of the application when the screen is off when opening an application to invoke the AOD function permission in the system settings.
- the user may also set, in the setting interface of each application, the content to be displayed, the display position, and the display mode of the application when the screen is off.
- This embodiment of the present application does not limit this.
- the screen-off screen of the application can also be customized by the developer of the application, including the display content, the display position, and the display method.
- the display content of the application includes what content of the application is displayed.
- the map application can be set to display brief information when the screen is off.
- the map application only displays navigation instructions. It is also possible to set the map application to display detailed information when the screen is off.
- the map application has the entire navigation interface, including navigation instructions and maps. In other words, the app developer or user can customize what the app displays when the screen is off.
- the display position of the application refers to where the content of the application is displayed on the screen when the screen of the mobile phone is off, for example, displayed below the AOD customized information, in the center of the screen, and below the screen.
- the mobile phone displays information of multiple applications when the screen is off, it is helpful for the user to arrange the display positions of the information of each application.
- the display mode of the application includes whether the display content of the application adopts motion effects, what kind of motion effects are used, and the color mode (black and white, color, etc.) used for the display content.
- the electronic device can also report the screen capability of the electronic device to the upper-layer application when the electronic device is powered on, or when the user enables the AOD function through system settings for the first time, or when the electronic device installs or updates an application .
- the screen capabilities of the electronic device include but are not limited to: whether the screen is integrated with RAM (that is, whether it supports the screen self-refresh capability, which can automatically refresh the screen according to the configured time slice and duration), and the size of the integrated RAM on the screen (affecting depends on the overall size of the off-screen screen), whether it supports colorful display, etc.
- FIG. 9 it is a schematic flowchart of a method for off-screen display according to an embodiment of the present application.
- the off-screen display method includes:
- the screen of the electronic device is bright.
- the electronic device detects the currently running application.
- the preset condition refers to the condition that the screen of the electronic device is turned off, including the detection of the lock screen operation performed by the user, or the detection that the user has not operated the electronic device within a preset period of time, and the electronic device has not performed a specific task (playing video task).
- the electronic device detects the currently running application.
- an electronic device when an electronic device starts an application, it records the running information of the application, including the identification of the application, the time when the application is started, and the running status of the application (foreground running or background running), and the like. Therefore, the electronic device can determine the application currently running on the electronic device according to the recorded running information of the application. It should be noted that the currently running applications include applications running in the foreground of the electronic device and applications running in the background of the electronic device. Of course, in some other embodiments, the electronic device may also only detect applications running in the foreground of the electronic device. That is to say, it can be considered that the application running in the foreground of the electronic device is the application that the user is most concerned about at present, then when the screen of the electronic device is off, the application running in the foreground will be given priority or only displayed.
- the electronic device can start and run multiple applications at the same time to provide users with different business functions.
- the mobile phone running multiple applications at the same time means that the mobile phone has started multiple applications, the multiple applications have not been closed, and the mobile phone has not deleted the memory and other resources occupied by the multiple applications, and the multiple applications simultaneously occupy the memory and other resources in the background; Rather than requiring multiple applications to interact with the user in the foreground at the same time.
- the screen of the electronic device is on, the user starts WeChat Apps, video apps, map apps.
- the map application is an application running in the foreground, the screen of the electronic device displays the interface of the map application, and the user can interact with the electronic device through the interface of the map application.
- WeChat Apps and video apps are apps running in the background, and WeChat is not displayed on the screen of the electronic device
- the interface of the application the interface of the video application is not displayed.
- users can switch applications, such as WeChat When an application is switched to an application running in the foreground, the previous map application running in the foreground will not be killed, but the map application will be switched to run in the background.
- the application started by the electronic device may be an application opened by the user by operating the application icon in the main interface. It may also be an application automatically launched by the electronic device. For example, when the user turns on the screen-off function of the electronic device in the system settings, the electronic device can automatically start the AOD application.
- the electronic device detects that the first application is currently running.
- the AOD application is a system application of an electronic device, and an application that provides an AOD function for the electronic device. Generally, after the electronic device enables the AOD function, the electronic device will automatically start the AOD application, and the AOD application will draw the screen-off screen customized by the AOD application when the screen of the electronic device is off, such as time, date, notification and other information.
- the electronic device can also detect other system applications or third-party applications currently running, that is, the first application.
- the first application may be an application running in the foreground or an application running in the background.
- the number of the first applications is one or more.
- the electronic device compares the first application with the applications in the preset application list.
- the applications in the preset application list are a list of applications that have the permission to invoke the AOD function.
- the preset application list includes application identification information, application permission information, and the like of other system applications or third-party applications that have the function of invoking the AOD.
- the permission information of the application includes information about the specific functions that the application can call, such as the self-refresh capability of the screen, the low-power display capability, the brightness adjustment capability of the off-screen screen, the ability to customize the position of the off-screen screen, the Dynamic effect ability, color ability of off-screen screen, etc.
- the preset list may also include whether to enable the positioning capability of the positioning module when a certain application is displayed, and the like. When the application is an application that requires positioning, such as a map application, a takeaway application, a taxi-hailing application, a shopping application, etc., the positioning capability of the electronic device is enabled.
- the electronic device If the first application matches the application in the preset application list, the electronic device allows the first application to call the AOD function; if the first application does not match the application in the preset application list, the electronic device does not allow the first application to call the AOD function Function.
- the applications in the preset application list may be set by default for the electronic device, for example, applications that have a specific cooperative relationship with mobile phone manufacturers.
- the applications in the preset application list can also be set by the user through, for example, system settings. This application does not limit this.
- the applications in the preset application list may also be a list of applications that do not have the permission to invoke the AOD function. Then, if the first application does not match the application in the preset application list, the electronic device allows the first application to invoke the AOD function, and anyway, the electronic device does not allow the first application to invoke the AOD function.
- the following description takes the application in the preset application list as an example of a list of applications having the right to invoke the AOD function.
- the first application invokes the AOD function to draw the picture A.
- the screen A is the content displayed by the first application when the screen of the electronic device is turned off.
- the screen A may include the content of a partial area in the interface where the first application is currently located, or may include all the content in the interface where the first application is currently located.
- the current interface of the first application refers to the interface that is finally displayed in the foreground before the first application is switched to run in the background.
- screen A may only contain some important navigation information, such as forward turn information, lane change information, road condition information, remaining time, and the like.
- Screen A may also be a navigation interface of a map application, or a reduced or simplified version of the navigation interface of a map application.
- screen A may only include the rider's current location and the remaining delivery time.
- Screen A may also be a delivery interface of a takeaway application, or a reduced or simplified version of the delivery interface, or the like.
- the electronic device allows the first application to invoke the relevant capability in the AOD function according to the permission in the preset application list.
- the first application (which is another system application or a third-party application) can draw the off-screen picture of the first application through the AOD service and the AOD extension interface. It should be noted that, the AOD application can also draw a screen-off screen of the AOD application through the AOD service and the original interface of the AOD at this time, which generally includes time, date, and notification information.
- the electronic device determines the picture B according to the preset display strategy.
- the picture B is the content displayed by the electronic device when the screen is turned off.
- the preset display strategy may be set by default by the electronic device, or may be set by the user in system settings. For the content of the specific display strategy, reference may be made to the foregoing description, which will not be repeated here.
- the electronic device determines which screen-off pictures drawn by applications are included in the picture B according to a preset display strategy.
- the first application and the AOD application respectively send drawing requests to the decision-making module of the electronic device.
- the decision-making module determines that the first application is an application on the preset application list, it is determined that the first application can call the AOD interface .
- the AOD interface may be an AOD extension interface or an AOD original interface. Further, the decision-making module determines whether the content of the screen B is the content according to the preset display strategy.
- the decision module allows the AOD application to call the AOD capability of the framework layer through the AOD interface, further call the capability of the driver layer, and finally call the device to display the off-screen image drawn by the AOD application. screen.
- the decision module does not allow the first application to invoke the AOD capability of the framework layer.
- the decision module allows the first application to call the AOD capability of the framework layer through the AOD interface, further call the capability of the driver layer, and finally call the device to display the first application.
- the decision module does not allow AOD applications to invoke the AOD capabilities of the framework layer.
- the display policy may also be set to preferentially display the off-screen image drawn by a certain first application according to the application priority. For example, when the decision-making module determines that the electronic device runs a map application and WeChat application, and both applications are on the list of default applications.
- the priority of the map application is higher than that of WeChat application. Then, the decision-making module can preferentially display the off-screen screen drawn by the map application instead of WeChat.
- the screen-off screen drawn by the application may be set by default by the electronic device, or may be set by the user in the system setting or the setting interface of each application.
- the display strategy is that the screen B only includes the screen-off screen drawn by the first application
- the screen B includes the screen-off screen drawn by the AOD application and the first application.
- the decision-making module allows the first application and the AOD application to invoke the relevant capabilities of the framework layer and the kernel layer through the AOD interface, and displays a screen-off image drawn by the AOD application and the first application.
- the display policy may be further set to preferentially display the off-screen picture drawn by the first application. In other words, the priority of the first application is higher than that of the AOD application.
- the decision-making module determines to preferentially display the off-screen image drawn by the first application and not display the off-screen image drawn by the AOD application.
- the decision module may determine to display the off-screen image drawn by the AOD application.
- the screen of the electronic device is turned off, and screen B is displayed.
- the screen B includes the screen A.
- screen A may include controls for interacting with the user, such as button controls, selection controls, text controls, and the like.
- controls for interacting with the user such as button controls, selection controls, text controls, and the like.
- the user operates the first application through the controls in the screen A.
- the first application may draw a new screen to replace the current screen A.
- the first application is an application with a positioning function
- the electronic device still keeps the positioning module in an open state, so that the electronic device can still obtain the positioning of the electronic device when the screen is turned off, which is convenient for
- the first application draws a new screen-off screen according to the new position of the electronic device.
- applications with a positioning function such as map applications when the navigation function is turned on, takeaway applications with the navigation function turned on (such as a rider's delivery navigation interface), taxi-hailing applications with the navigation function turned on, etc.
- the off-screen screen containing the navigation information of the map application can be displayed, so that the user can directly obtain the navigation information without performing the operation of lighting the screen and unlocking the screen, which improves the user experience.
- the screen-off method provided by the embodiments of the present application can display information including other applications except the AOD application when the screen of the electronic device is off. In this way, the user can obtain more important and timely application information when the screen of the electronic device is turned off. Further, the screen-off screen drawn by other applications may also include controls for interacting with the user, which facilitates the user to interact with the application when the screen of the electronic device is off, thereby expanding the usage scenarios when the screen of the electronic device is off.
- the chip system includes at least one processor 1901 and at least one interface circuit 1902 .
- the processor 1901 and the interface circuit 1902 may be interconnected by wires.
- the interface circuit 1902 may be used to receive signals from other devices, such as the memory of the electronic device 100 .
- the interface circuit 1902 may be used to send signals to other devices (eg, the processor 1901).
- the interface circuit 1902 may read the instructions stored in the memory and send the instructions to the processor 1901 .
- the electronic device can be made to perform various steps performed by the electronic device 100 (eg, a mobile phone) in the above embodiments.
- the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
- the above-mentioned terminal and the like include corresponding hardware structures and/or software modules for executing each function.
- the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
- each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
- the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
- Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
- the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
- the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
- a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种灭屏显示方法及电子设备,涉及显示技术领域,能够丰富灭屏显示的内容,满足用户在不同应用场景中的显示需求。该方法包括:电子设备亮屏,电子设备运行有第一应用;其中,第一应用可以在前台运行,也可以在后台运行。当电子设备满足灭屏条件时,电子设备灭屏,且显示灭屏画面,该灭屏画面中包含第一应用绘制的画面。
Description
本申请要求于2021年3月30日提交国家知识产权局、申请号为202110342483.3、申请名称为“一种灭屏显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及显示技术领域,尤其涉及一种灭屏显示方法及电子设备。.
现在大多数智能设备都支持常显示(Always on display,AOD)功能,也称为灭屏显示功能。所谓的灭屏显示,是指在不点亮整块屏幕的前提下,在屏幕的部分区域显示日期、时钟等信息。这样,用户可以不必点亮整块屏幕便可以快速获取到日期、时钟等信息。可以注意到,目前灭屏显示的内容仅能为厂商定制的日期、时钟信息等,内容单一,无法满足用户在不同应用场景中的显示需求。
发明内容
本申请提供的一种灭屏显示方法及电子设备,能够丰富灭屏显示的内容,满足用户在不同应用场景中的显示需求。
为了实现上述目的,本申请实施例提供了以下技术方案:
第一方面、提供一种灭屏显示方法,应用于具有屏幕的电子设备,该方法包括:电子设备亮屏,电子设备运行有第一应用;当电子设备满足灭屏条件时,电子设备灭屏,且显示灭屏画面,记为第一画面,第一画面包含第一应用绘制的第二画面。
需要说明的是,当检测到电子设备满足灭屏条件时,还运行着该第一应用。该第一应用可以在前台运行,也可以在后台运行。也就是说,电子设备在满足灭屏条件时,显示的灭屏画面(即下文的界面B)中包括当前运行的第一应用绘制的第二画面(即下文的界面A)。这样,用户在电子设备显示灭屏画面时,仍然能够及时获取到第一应用的内容,并且有利于降低电子设备的功耗。相比较于现有技术中电子设备在灭屏时只能显示时钟、日期、通知的定制化内容,本申请可以显示更丰富的灭屏内容,满足用户在不同应用场景中的显示需求。
一种可能的实现方式中,在电子设备灭屏,且显示第一画面之前,该方法还包括:电子设备确定第一应用为预设名单上的应用,其中预设名单的应用为允许调用电子设备的常显示AOD功能的应用,第二画面为第一应用调用AOD功能绘制的。
也就是说,电子设备可以通过设置预设名单去对应用(系统应用或三方应用)是否可以调用AOD功能的权限进行管控。该预设名单可以是系统默认设置的,例如是与手机厂商有特定合作关系的应用。该预设名单还可以由用户去设置。那么,手机可以通过系统升级或者单独更新配置库的方式,新增或变更预设名单的内容,即允许(或不允许)调用电子设备的AOD功能的应用名单。
一种可能的实现方式中,该方法还包括:第二画面为第一应用根据电子设备的屏幕能力,调用AOD功能绘制的;其中,电子设备的屏幕能力包括是否支持屏幕自刷 新能力,是否支持多彩显示,是否支持动效,是否支持显示位置定制中一项或多项。
例如,电子设备可以在开机时,或者用户第一次通过系统设置开启AOD功能时,或者当电子设备安装或更新应用时,将电子设备具有的屏幕能力上报给上层的应用。当上层的应用获取电子设备的屏幕能力后,可以根据电子设备的屏幕能力绘制定制化的灭屏画面。这样,便于第一应用根据电子设备实际的屏幕能力进行绘制第二画面。
一种可能的实现方式中,第二画面为第一应用第一界面上部分区域的画面;或者,第二画面包含第一应用第一界面;或者,第二画面为第一应用第一界面的简化版。
其中,第一应用第一界面,用于第一应用在电子设备亮屏时显示的界面。例如,第一应用在亮屏时显示第一界面,第一应用在灭屏时显示该第一界面对应的第二画面时,第二画面可以仅包括第一界面中部分区域的画面,第二画面也可以与第一界面相同或为第一界面的缩小版,或者第二画面为第一界面的简化版,即包含第一界面中的部分内容,并对部分内容进行重新组合或排版等。
一种可能的实现方式中,第二画面包括第一控件,该方法还包括:响应于用户操作第一控件,第二画面变化为第一应用绘制的第三画面。
可以理解的是,由于本申请中,在电子设备灭屏时,仍然可以显示第一应用绘制的第二画面。第二画面中可以包括用于与用户交互的第一控件,那么在电子设备设备灭屏时,用户仍然可以与电子设备进行交互。例如,用户操作第一控件后,响应于该操作,第一应用根据自身的业务逻辑等,绘制新的画面,即第三画面。换言之,响应于该操作,电子设备显示的灭屏画面中的第二画面切换为第三画面。相较于现有技术中,电子设备灭屏时显示的灭屏画面为定制化内容,用户只有点亮并解锁电子设备后才可以操作电子设备,本申请实施例中用户在电子设备灭屏时就可以直接操作第一应用,以获取及时的应用信息,操作更加便利。
一种可能的实现方式中,在电子设备灭屏,且显示第一画面之前,该方法还包括:电子设备根据预设策略,确定第一画面的内容。
也就是说,当手机运行多个应用时,且这多个应用都具有调用AOD功能的能力时,手机可以根据用户设置的显示策略,选择在灭屏画面中显示这多个应用中的一些应用的信息。换言之,手机显示的灭屏画面不一定包含所有的手机当前运行的且具有调用AOD功能的应用的信息。
一种可能的实现方式中,预设策略包括显示AOD应用的内容,或显示第一应用的内容,或显示AOD应用和第一应用的内容;其中,AOD应用的内容包括时间、日期、通知中的一项或多项。
一种可能的实现方式中,电子设备根据预设策略,确定第一画面的内容,具体为:当预设策略为显示第一应用的内容时,电子设备确定第一画面包括第二画面,不包括AOD应用绘制的第四画面;或者,当预设策略为显示AOD应用和第一应用的内容时,电子设备确定第一画面包括第二画面和AOD应用绘制的第四画面。
一种可能的实现方式中,预设策略包括显示应用优先级排名前M个的应用,其中M为大于或等于1的正整数。
一种可能的实现方式中,第一应用为地图类应用,外卖类应用、打车类应用、购物类应用、闪送类应用中任一项。
以地图类应用举例,电子设备亮屏时,显示地图类应用的导航界面。一般,手机需要实时或间隔一段时间获取手机的定位,并根据更新的定位更新导航界面中的数据(例如路线图示404中用户的当前位置、或者导航指示403中的导航信息)。通常,整个导航过程耗费较长的时间。然而,当用户在一段时间内未操作手机时,手机会自动灭屏(即超时灭屏)。那么,用户需要反复地点亮手机屏幕,并且解锁,才可以再次看到导航界面,操作较为繁琐,且用户体验不佳。另外,当手机灭屏后,会控制CPU处于休眠状态,并关闭定位模块以及其他的功能模块。当用户重新点亮手机屏幕,解锁后,手机需要重新开启定位模块,用于获取手机当前的位置,并更新导航界面。可见,在手机灭屏后再次被点亮后,导航界面的刷新效率低。
然而,采用本申请提供的灭屏显示方法后,在手机灭屏时,可以显示包含地图类应用的导航信息的灭屏画面,这样,用户无需进行点亮屏幕以及解锁操作,就能直接获取到导航信息,提升用户体验。另外,还需要说明的是,当手机显示灭屏画面中包含地图类应用的导航界面时,手机并不关闭定位模块。换言之,在手机灭屏时,仍然开启手机的定位模块。那么,当地图类应用在后台运行时,仍可以实时或间隔一段时间获取手机的当前位置,并根据手机的当前位置确定导航界面的图像数据。当导航界面的图像数据未发生变化时,手机保持CPU、GPU等处于休眠状态,以降低手机的功耗。当导航界面的图像数据发生变化时,手机唤醒CPU、GPU等,绘制地图应用新的导航界面,并更新灭屏画面。这样,用户可以直接通过灭屏画面获取地图应用的导航数据,而无需反复点亮屏幕并解锁屏幕,简化用户操作,并且同时降低了手机的功耗。
另外,相对于现有技术中,需要电子设备全程处于亮屏状态,去显示导航界面的技术方案,本申请实施例提供的在手机灭屏时显示导航信息的灭屏画面,有利于节省电子设备的功耗,延长电子设备的待机时长。
第二方面、提供一种灭屏显示方法,应用于安装在电子设备上的第一应用,该方法包括:接收电子设备满足灭屏条件的第一通知;响应于接收到第一通知,第一应用绘制第二画面;其中第二画面用于显示在电子设备在灭屏时显示的第一画面中。
也就是说,当电子设备的AOD功能检测到电子设备满足灭屏条件时,向第一应用发送第一通知。响应于接收到第一通知,第一应用绘制第二画面,其中,第二画面为电子设备灭屏时第一应用需显示的内容。这样,用户可以从电子设备显示灭屏画面中,及时获取到第一应用的内容。这样,既降低了电子设备的功耗,又可以及时获取第一应用更新的内容。
一种可能的实现方式中,第二画面为第一界面上部分区域的画面;或者,第二画面包含第一界面;或者,第二画面为第一界面的简化版。
一种可能的实现方式中,第二画面包括第一控件,该方法还包括:第一应用接收用户操作第一控件的第二通知;响应于接收到第二通知,第一应用绘制第三画面,第三画面用于替换第二画面。
一种可能的实现方式中,还包括:第一应用获取电子设备的屏幕能力,其中,电子设备的屏幕能力包括是否支持屏幕自刷新能力,是否支持多彩显示,是否支持动效,是否支持显示位置定制中一项或多项;第一应用绘制第二画面,具体为:第一应用根据电子设备的屏幕能力,绘制第二画面。
第三方面、提供一种电子设备,包括:处理器、存储器和显示屏,存储器、显示屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,以使得电子设备执行如上述第一方面或第二方面,以及其中任一种可能的实现方式中的灭屏显示方法。
第四方面、提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如上述第一方面或第二方面,以及其中任一种可能的实现方式中的灭屏显示方法。
第五方面、提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得电子设备执行如上述第一方面或第二方面,以及其中任一种可能的实现方式中的灭屏显示方法。
第六方面、提供一种装置,该装置包含在电子设备中,该装置具有实现上述第一方面或第二方面,以及其中任一种可能的实现方式中电子设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括至少一个与上述功能相对应的模块或单元。例如,检测模块或单元、显示模块或单元、以及处理模块或单元等。
第七方面、提供一种芯片系统,包括处理器,当处理器执行指令时,处理器执行如上述各个方面中及其中任一种可能的实现方式中所述的方法。
可以理解地,上述第二方面至第七方面所提供的方法、电子设备、计算机可读存储介质、计算机程序产品、装置、芯片系统所能达到的有益效果可参考上文所提供的第一方面以及任一种可能实现方式中的有益效果,此处不再赘述。
图1为本申请实施例提供的一种电子设备的结构示意图;
图2为本申请实施例提供的另一种电子设备的结构示意图;
图3为本申请实施例提供的一种电子设备确定灭屏画面的方法示意图;
图4为本申请实施例提供的一些电子设备的图形用户界面示意图;
图5为本申请实施例提供的又一些电子设备的图形用户界面示意图;
图6为本申请实施例提供的又一些电子设备的图形用户界面示意图;
图7为本申请实施例提供的又一些电子设备的图形用户界面示意图;
图8为本申请实施例提供的又一些电子设备的图形用户界面示意图;
图9为本申请实施例提供的一种灭屏显示方法的流程示意图;
图10为本申请实施例提供的另一个灭屏显示方法的方法示意图;
图11为本申请实施例提供的一种芯片系统的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要 性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例提供灭屏显示方法可应用于具有屏幕的电子设备,该电子设备可以为手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、智能音响等,本申请对该电子设备的具体形式不做特殊限制。
图1示出了电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,定位模块181、按键190,马达191,指示器192,摄像头193,屏幕194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在本申请的一些实施例中,处理器110可以响应于接收到用户执行的锁屏操作,控制电子设备100灭屏,并显示灭屏画面。其中,上述用户执行的锁屏操作,例如可以为用户在电子设备100处于亮屏时按压锁屏键(或电源键)的操作。在另一些实施例中,处理器100还可以在检测到用户在预设时间段内一直未操作电子设备100,并 且电子设备100也未执行特定业务时(如播放视频等),控制电子设备100灭屏,并显示灭屏画面。
其中,所谓灭屏画面,是指电子设备灭屏时屏幕上显示的内容,灭屏画面一般不占据整个屏幕。也就是说,电子设备100灭屏时,屏幕上至少有部分区域为黑色,不显示内容。灭屏画面可以包括电子设备100在锁屏前运行的应用程序(或者当前在后台运行的应用程序)的信息,例如地图类应用的导航信息(例如,前方转弯信息、变道信息、路况信息、剩余时间等)、外卖类应用的送货信息(例如,骑手当前位置,距离,剩余时间等)、打车类应用的导航信息(例如车辆位置、乘客位置、剩余时间等)、购物类应用、闪送类应用等。
需要说明的是,当电子设备100处于灭屏状态,显示灭屏画面时,处理器110控制电子设备100仅开启与显示上述灭屏画面相关的功能模块,例如显示功能相关的功能模块,定位模块181(用于提供电子设备100的定位位置)等;关闭其他与显示上述灭屏画面无关的功能模块,例如处理器110中的调制解调处理器(Modem),无线通信模块160中的蓝牙模块、WiFi模块、传感器模块等。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,屏幕194,摄像头193,和无线通信模块160等供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
定位模块181,用于提供电子设备100的定位。具体的,在电子设备100开启具有定位功能的应用时,电子设备100启动定位模块181用于获取电子设备100实时的定位。其中,具有定位功能的应用例如包括地图类应用、导航类应用、外卖类应用等。
另外需要说明的是,一般,在电子设备100灭屏时,电子设备100仅显示AOD应用定制的灭屏画面时,电子设备100会关闭定位模块。然而,在本申请中,电子设备灭屏时,显示的灭屏画面中可以包括需要定位的应用的信息。因此,电子设备灭屏时,仍然开启定位模块181,能够继续通过定位模块获取电子设备的位置信息。换言之,在电子设备运行有需要定位的应用时,电子设备灭屏,并且待显示的灭屏画面中包含需要定位的应用的信息时,电子设备不关闭定位模块。例如,待显示的灭屏画面 中包含地图类应用的导航功能时,电子设备在灭屏时不关闭定位模块。又例如,待显示的灭屏画面中包含外卖类应用的导航功能时,电子设备在灭屏时不关闭定位模块。
电子设备100通过GPU,屏幕194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接屏幕194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
屏幕194用于显示图像,视频等。屏幕194包括显示面板。显示面板可以采用液晶屏幕(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个屏幕194,N为大于1的正整数。
在本申请中,屏幕194支持AOD功能,用于显示灭屏画面。即,处理器110不点亮整块屏幕194或者不点亮全部的屏幕194,而是控制整块屏幕194的局部或者N个屏幕194中的M个屏幕亮起(M大于或等于1,且小于N),用于显示灭屏画面,以此降低屏幕194的功耗。需要说明的是,本申请中的AOD功能,也可表达为灭屏显示功能、息屏显示功能、熄屏显示功能、常亮显示功能或其他名称。
示例性的,屏幕194可以为自发光的屏幕。以屏幕为OLED屏幕为例,对自发光的屏幕的工作原理进行简单介绍。其中,OLED屏幕是利用有机电致发光二极管制成的屏幕,与传统的LCD显示方式不同,无需背光灯。OLED屏幕是由非常薄的有机材料涂层和玻璃基板构成,是通过电流驱动有机材料涂层本身来发光的,发的光可为红、绿、蓝、白等单色,同样也可以达到全彩的效果。需要说明的是,OLED屏幕可以通过关闭屏幕的发光单元,来使得屏幕显示黑色的。还需要说明的是,处理器110可以独立控制OLED屏幕中每个像素点来显示内容。因此,处理器110可以点亮一部分像素点的发光单元,用于显示在锁屏前运行的应用程序(或者当前在后台运行的应用程序)的信息,例如导航应用的导航信息、美团应用的导航界面、打车应用的导航界面等。其他未点亮的像素点用于显示黑色画面。
再示例性的,屏幕194也可以采用传统的LCD屏幕。那么,可以对LCD屏幕的背景灯进行改进,使得屏幕194在灭屏显示时,仅点亮其中一部分屏幕,用于显示在锁屏前运行的应用程序(或者当前在后台运行的应用程序)的信息,例如导航应用的导航信息、美团应用的导航界面、打车应用的导航界面等。其他未点亮的区域(其他像素点)显示黑色画面。LCD屏幕具体实现AOD功能的方式不做限定。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,屏幕194以及应用处理器等实现拍摄功能。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量 变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为三层,从上至下分别为应用程序层(简称为应用层),应用程序框架层(简称为框架层),以及内核层(或称为驱动层)。
上述应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包包括AOD应用,用于在电子设备100灭屏时显示灭屏画面。一些示例中,AOD应用为电子设备100的系统应用,所谓系统应用是指电子设备100在出厂之前预置在电子设备100内的应用。AOD应用可以在电子设备100灭屏时显示系统时间、日历、通知等信息。
应用程序包还可以包括其他系统应用,例如相机,图库,日历,通话,地图,短信息等程序。应用程序包还可以包括三方应用,即可以由用户从例如应用市场下载安装包安装的应用。例如,地图类(如百度地图
搜狗地图
)应用、外卖类应用(如美团
饿了么
)等。
在现有技术中,电子设备通过AOD应用调用框架层灭屏画面绘制接口(例如画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块),用于显示灭屏画面。换言之,电子设备显示的灭屏画面中仅包括AOD应用中定制的内容,如系统时间、日历、通知等信息。然而,在本申请中,电子设备的其他系统应用或者三方应用也可以调用框架层中灭屏显示的相关接口,用于显示灭屏画面。换言之,电子设备显示的灭屏画面中也可以包括其他系统应用或者三方应用的内容。
上述应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括AOD服务、AOD原有接口(也称为原生接口),画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块等。应用程序框架层还可以包括AOD扩展接口、配置库、检测模块、以及检测模块等。
一些示例中,当AOD应用检测到用户的灭屏操作或者检测到用户在预设时间段内未操作电子设备且电子设备未执行特定任务(例如播放视频),即超时灭屏时,通过AOD服务,AOD原有接口调用画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块中的相应接口,绘制灭屏画面。
在本申请中,三方应用(或其他系统应用)也可以通过AOD服务,AOD扩展接口,调用画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块中的相应接口,绘制包含三方应用(或其他系统应用)信息的灭屏画面。也就是说,原有的灭屏画面绘制接口可以向三方应用或其他系统应用开放,从而实现三方应用或其他系统应用,定制绘制包含三方应用或其他系统应用的信息的灭屏画面。
在一个具体的实施例中,当AOD应用检测到用户的灭屏操作或者超时灭屏时,通过AOD服务通知检测模块。检测模块,用于检测在电子设备当前运行的应用,并向配置库查询当前运行的应用是否具有灭屏显示能力,即是否具有调用灭屏画面绘制接口的权限。其中,配置库可以包括允许调用灭屏画面绘制接口的应用的信息(例如包名),即配置库中包括灭屏显示的白名单。或者,配置库包括不允许调用灭屏画面绘制接口的应用的信息,即配置库中包括灭屏显示的黑名单。
若具有调用灭屏画面绘制接口的权限,则检测模块通知上层相应的应用(可以是AOD应用、其他系统应用或三方应用)。上层相应的应用则根据自身的业务逻辑确定灭屏画面的内容,向AOD服务发送灭屏画面的绘制请求。
AOD服务将接收到的多个应用的绘制请求发送至决策模块,由决策模块根据预设的策略确定最终绘制的灭屏画面的内容。即,最终绘制的灭屏画面包括哪些应用的内容。例如,仅绘制AOD应用的灭屏画面;绘制其他系统应用或三方应用的灭屏画面;绘制AOD应用的灭屏画面和其他系统应用或三方应用的灭屏画面。其中,绘制其他系统应用或三方应用的灭屏画面,包括绘制全部应用的灭屏画面,或者绘制其中部分应用的灭屏画面。其中,绘制部分应用的灭屏画面可以是绘制优先级最高的一个应用的灭屏画面,或者绘制优先级较高的多个应用的灭屏画面。需要说明的是,决策模块采用的策略可以是电子设备的系统默认设置的,也可以为用户通过电子设备中系统设置项进行设置的,本申请实施例对决策模块采用的具体策略不做具体限定。
而后,决策模块根据AOD应用的绘制请求,通过AOD原有接口调用灭屏显示的相关接口(画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块等),生成AOD应用的灭屏画面的绘制指令,用于绘制AOD应用在灭屏时需要显示的画面。决策模块根据三方应用或其他系统应用的绘制请求,通过AOD扩展接口调用灭屏显示的相关接口(画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块等),生成该应用的灭屏画面的绘制指令,用于绘制该应用在灭屏时需要显示的画面。
举个例子,如图3所示,当AOD应用检测的到用户锁屏的操作或者电子设备触发超时灭屏时,检测模块检测到电子设备当前运行的应用包括:应用A(AOD应用)、应用B(其他系统应用)、应用C(其他系统应用)、应用D(三方应用)、应用E(三方应用)。而后,通过查询配置库确定允许调用灭屏显示相关接口的应用有:应用A、应用B、应用C、应用D。需要说明的是,一些示例中,也可以默认AOD应用为允许调用灭屏显示相关接口的应用,即可以不用通过查询配置库即可确定AOD应用为允许调用灭屏显示相关接口的应用,或者,当配置库中没有AOD应用的标识时,也可以确定AOD应用为允许调用灭屏显示相关接口的应用。那么,应用层的应用A、应用B、应用C、应用D分别可以根据自身的业务逻辑请求绘制相应的灭屏画面。决策模块则根据预设的策略确定最终显示的灭屏画面包括应用A(AOD应用)和应用D(如优先级最高的应用)。那么,决策模块确定将应用A和应用D的绘制请求分别发送至AOD原有接口以及AOD扩展接口,进一步调用灭屏画面的绘制接口绘制包括应用A和应用D信息的灭屏画面。
在另一个具体的实施例中,当AOD应用检测到用户的灭屏操作或者超时灭屏时,通过AOD服务向上层的应用发送通知。上层的应用都可以监听到该AOD服务发送的 灭屏通知。具有绘制灭屏画面的应用(例如三方应用或其他系统应用)根据自身的业务逻辑确定灭屏画面的内容,向AOD服务发送灭屏画面的绘制请求。AOD服务将上层应用发送的绘制请求发送给检测模块。检测模块,用于确定该应用是否为电子设备当前运行的应用,并向配置库查询当前运行的应用是否具有灭屏显示能力,即是否具有调用灭屏画面绘制接口的权限。
若具有调用灭屏画面绘制接口的权限,则检测模块允许三方应用(或其他系统应用),调用画面绘制模块、画面配置模块、画面色彩模块、以及画面合成模块中的相应接口,绘制包含三方应用(或其他系统应用)信息的灭屏画面。而后,将各个应用绘制好的灭屏画面发送至决策模块,由决策模块根据预设的策略确定最终绘制的灭屏画面的内容。即,最终绘制的灭屏画面包括哪些应用的内容。其余内容可参考前一实施例的相关内容的描述。
需要说明的是,这里三方应用或其他系统应用调用灭屏画面绘制接口的流程仅为示例,本申请实施例对具体的调用流程不做具体限定。
在另外一些示例中,AOD原有接口和AOD扩展接口可以集成在一起,或者,AOD原有接口和AOD扩展接口还可以与AOD服务集成在一起,本申请实施例对此不做具体限定。
内核层是硬件和软件之间的层。内核层包括屏幕自刷新(panel self refresh,PSR)能力、低功耗显示能力、亮度调整能力、位置定制能力、动效能力、色彩能力、定位能力等。
其中,屏幕自刷新(panel self refresh,PSR)能力,是指电子设备可以根据待显示的画面是否变化,确定是否刷新屏幕的能力。在一些示例中,电子设备的屏幕可以集成屏幕内存,即屏幕带随机存取存储器(random access memory,RAM),用于存储屏幕待显示的图像数据。当检测到屏幕待显示的下一帧图像数据与上一帧图像数据一致时,可以将图像数据的传输电路进行挂起操作。也就是说,当屏幕显示的灭屏画面在一段时间内维持不变时,电子设备可以控制CPU、GPU等进入休眠状态,从而降低功耗。当屏幕内存接收到与上一帧图像数据不同的的图像数据时,再恢复图像数据的传输电路,唤醒CPU、GPU等,绘制新的灭屏画面。并且,重复之前的检测过程(检测前后一帧图像数据是否一致),以便完成下一次将图像数据的传输电路挂起的操作。
其中,低功耗显示能力包括切换屏幕的供电模式的能力,将屏幕从正常(Normal)模式切换至休眠(doze)模式,从而降低电子设备在灭屏显示时的功耗。低功耗显示能力还包括切换触摸屏的工作模式。一般电子设备的屏幕为触摸屏,将屏幕的触控的工作模式由活跃(active)模式切换至空闲(idle)模式,以降低电子设备在灭屏显示时的功耗。
其中,亮度调整能力,包括电子设备在灭屏时,检测周围环境光的亮度值,并根据周期环境光的亮度值动态调整灭屏画面的亮度,以便用户在任何环境下也可以看到清晰的灭屏画面。另外一些示例中,根据屏幕的亮度的强度值可以划分为多档工作模式(例如两档或三挡),则当电子设备灭屏显示时,可以采用亮度的强度值较低的一档工作模式。
其中,位置定制能力(也称为显示位置定制能力),是指其他系统应用或三方应用在绘制灭屏画面时,可以指定自身应用绘制的灭屏画面在屏幕中的显示位置,以及灭屏画面的大小等。例如,指定显示在屏幕的中央,显示在AOD定制画面的下方等。例如,屏幕自带RAM的大小决定屏幕可以显示的整个灭屏画面大小,而其中每个应用的灭屏画面不得大于整个灭屏画面的最大值。
其中,动效能力,是指电子设备灭屏时,可以对灭屏画面中的内容设置动效,例如包括进入动效、灭屏画面内容发生变化时的动效,退出灭屏画面的动效等。
其中,色彩能力,是指电子显示灭屏画面时,控制灭屏画面的色彩的能力。
其中,定位能力,是指提供电子设备的定位的能力。具体的,在电子设备开启具有定位功能的应用时,电子设备启动定位模块用于获取电子设备实时的定位。其中,具有定位功能的应用例如包括地图类应用、导航类应用、外卖类应用等。
需要说明的是,一般,在电子设备灭屏时,电子设备仅显示AOD应用定制的灭屏画面时,电子设备会关闭定位模块。然而,在本申请中,电子设备灭屏时,显示的灭屏画面中可以包括需要定位的应用的信息。因此,电子设备灭屏时,仍然开启定位模块181,能够继续通过定位模块获取电子设备的位置信息。换言之,在电子设备运行有需要定位的应用时,电子设备灭屏,并且待显示的灭屏画面中包含需要定位的应用的信息时,电子设备不关闭定位模块。
可选的,内核层还可以包括屏幕能力上报能力等。其中,屏幕能力上报能力,包括在电子设备灭屏显示之前,将电子设备与灭屏显示相关的能力(低功耗显示能力、亮度调整能力、位置能力、动效能力、色彩能力等)上报给应用层的应用,以便应用层的应用根据电子设备具有的屏幕能力,绘制相应的灭屏画面。
以下实施例中所涉及的技术方案均可以在具有上述硬件架构和软件架构的电子设备100中实现。下文,先以电子设备100是手机,且以地图应用为例,对本方案进行示例性说明。
如图4中(1)所示,用户在使用手机时,可以通过操作手机的主屏幕界面中的应用图标启动应用。例如,响应于用户在手机的主屏幕界面中点击地图应用对应的图标401,手机开启启动地图应用,并显示地图应用的主界面。当然,用户也可以通过语音命令开启地图应用,或者通过其他方式(例如在即时通信应用中的点击位置信息的链接等)开启地图应用。本申请对启动地图应用的方式不做限定。进一步的,用户可以在地图应用的主界面上进行一系列操作,例如输入目的地,选择路线(例如常规路线)等,并点击“开始导航”的控件,手机进入如图4中(2)所示的导航界面402。在导航界面402中,显示有导航指示403,路线图示404,以及一些功能控件(例如退出、继续当前导航、更多等)。一般,手机需要实时或间隔一段时间获取手机的定位,并根据更新的定位更新导航界面中的数据(例如路线图示404中用户的当前位置、或者导航指示403中的导航信息)。通常,整个导航过程耗费较长的时间,例如20分钟,1小时,4小时等。然而,当用户在一段时间内未操作手机时,手机会自动灭屏(即超时灭屏)。那么,用户需要反复地点亮手机屏幕,并且解锁,才可以再次看到导航界面402,操作较为繁琐,且用户体验不佳。另外,当手机灭屏后,会控制CPU处于休眠状态,并关闭定位模块以及其他的功能模块。当用户重新点亮手机屏幕,解锁后, 手机需要重新开启定位模块,用于获取手机当前的位置,并更新导航界面。可见,在手机灭屏后再次被点亮后,导航界面的刷新效率低。
在本申请中,在手机灭屏时,可以显示包含地图应用的导航信息的灭屏画面,这样,用户无需进行点亮屏幕以及解锁操作,就能直接获取到导航信息,提升用户体验。
另外,相对于现有技术中,需要电子设备全程处于亮屏状态,去显示导航界面,本申请实施例提供的在手机灭屏时显示导航信息的灭屏画面,有利于节省电子设备的功耗,延长电子设备的待机时长。
在一些实施例中,用户可以在系统设置中开启地图应用调用绘制灭屏画面的权限。例如,如图5中(1)所示,响应于用户在手机的主屏幕界面中操作“设置”应用的图标501,手机显示如图5中(2)所示的设置界面502。设置界面502中包括“AOD”的设置项503。响应于用户操作“AOD”的设置项503,手机显示如图6中(1)所示的AOD功能的设置界面601。该设置界面601中显示有AOD功能的开关控件。在开启AOD功能后,还可以对AOD功能进行进一步设置,如设置允许调用AOD系统的应用(包括除AOD应用外的其他系统应用以及三方应用)、设置灭屏画面的字体、字体大小、以及设置显示策略等。例如,响应于用户操作控件允许调用AOD功能的应用控件602,手机显示如图6中(2)所示的应用选择界面603。一些示例中,默认AOD应用具有调用AOD功能。选择界面603中还可以显示手机已安装的其他应用的标识(如名称或图标等)。用户可以选择相应的应用为允许调用AOD功能的应用。例如响应于用户在选择界面603中选择地图应用的操作,手机显示如图6中(3)所示的界面604,即地图应用被勾选中。换言之,用户已授权地图应用调用AOD功能的权限。当然,用户还可以授权其他应用,或者该方法修改应用调用AOD功能的权限。
在用户在界面604中点击“确定”控件后,手机存储用户设置的允许调用AOD功能的应用的信息。例如,结合上述图2所示的结构示意图,手机框架层中配置库中存储有用户设置的允许调用AOD功能的应用名单。在另一些实施例中,允许调用手机的AOD功能的应用也可以是系统默认设置的,例如是与手机厂商有特定合作关系的应用。那么,手机可以通过系统升级或者单独更新配置库的方式,新增或变更允许调用手机的AOD功能的应用名单。
此后,当用户使用手机开启地图应用,并进入如图4中(2)所示的导航界面402后,若用户执行锁屏操作,或手机超时灭屏时,手机可以将地图应用切换至后台运行,并灭屏。在手机灭屏时,手机显示包含地图应用的导航信息的灭屏画面。例如,手机灭屏时,可以显示如图7中(1)所示的灭屏画面1,其中灭屏画面1中包含AOD应用定制的时间、日期、通知等信息,还包含地图应用中的部分信息(如导航指示信息)。或者,手机灭屏时显示如图7中(2)所示的灭屏画面2。其中,灭屏画面2中包含
AOD应用定制的时间、日期、通知等信息,还包含地图应用中导航界面。其中,灭屏画面2中包含的地图应用中导航界面可以是地图应用原导航界面的缩小版,也可以是地图应用原导航界面的简化版。
在一种具体实现方式中,结合上述图2所示的结构示意图,若用户执行锁屏操作,或手机超时灭屏时,手机框架层的检测模块检测到手机当前运行的应用有地图应用。并且,进一步的,手机从配置库中查询到地图应用为允许调用AOD功能的应用。因 此,检测模块通知地图应用,并且地图应用通过AOD扩展接口调用灭屏画面的相关接口(如画面绘制模块、画面配置模块、画面色彩模块、画面合成模块)绘制相应的灭屏画面,例如绘制图7中(1)中所示的导航指示,或者绘制图7中(2)中所示的导航指示、实时地图以及功能控件等。
另外,还需要说明的是,当手机显示包含地图应用的导航界面时,手机并不关闭定位模块。换言之,在手机灭屏时,仍然开启手机的定位模块。那么,当地图应用在后台运行时,仍可以实时或间隔一段时间获取手机的当前位置,并根据手机的当前位置确定导航界面的图像数据。当导航界面的图像数据未发生变化时,手机保持CPU、GPU等处于休眠状态,以降低手机的功耗。当导航界面的图像数据发生变化时,手机唤醒CPU、GPU等,绘制地图应用新的导航界面,并更新灭屏画面。这样,用户可以直接通过灭屏画面获取地图应用的导航数据,而无需反复点亮屏幕并解锁屏幕,简化用户操作,并且同时降低了手机的功耗。
在另一些实施例中,用户还可以设置AOD功能中的显示策略。也就是说,当手机运行多个应用时,且这多个应用都具有调用AOD功能的能力时,手机可以根据用户设置的显示策略,选择在灭屏画面中显示这多个应用中的一些应用的信息。换言之,手机显示的灭屏画面不一定包含所有的手机当前运行的且具有调用AOD功能的应用的信息。
例如,如图8中(1)所示的AOD功能的设置界面601中还可以包括显示策略的设置项605。响应于用户操作显示策略的设置项605,手机可以显示如图8中(2)所示的显示策略的设置界面801。其中,显示策略的设置界面801中可以包括三种策略,分别为策略1至策略3。
其中,策略1为仅显示AOD应用,即手机显示的灭屏画面仅包括AOD应用定制的信息,例如时间、日期和通知。比如,手机在灭屏时,运行有AOD应用和地图应用,则灭屏画面仅包括AOD应用定制的时间、日期和通知,不包括地图应用的信息。需要说明的是,当手机开启AOD功能后,手机一直运行有AOD应用。
策略2为仅显示非AOD应用,即手机显示的灭屏画面仅包括除AOD应用外的其他具有调用AOD功能的系统应用,以及具有调用AOD功能的三方应用的信息,例如这里的地图应用。可以理解的是,采用策略2后,手机显示的灭屏画面中可以包括一个或多个符合条件的应用的信息。比如,手机在灭屏时,运行有AOD应用和地图应用,则灭屏画面包括地图应用的信息,不包括AOD应用定制的时间、日期和通知。
策略3、显示AOD+非AOD应用,即手机显示的灭屏画面包括AOD应用定制的时间、日期和通知,以及其他具有调用AOD功能的系统应用和三方应用的信息。可以理解的是,采用策略3后,手机显示的灭屏画面中可以包括一个或多个符合条件的应用的信息。比如,手机在灭屏时,运行有AOD应用和地图应用,则灭屏画面包括地图应用的信息,以及AOD应用定制的时间、日期和通知。
可以理解,策略1至策略3是互斥的策略,也就是说,策略1至策略3中只能选择其一。当然,当选中策略2或策略3后,策略2或策略3还可以和其他的策略进行组合。例如,根据策略2或策略3确定多个符合条件的应用时,还可以进一步确定从多个符合条件的应用中再刷新出一个或多个应用。例如,优先显示优先级较高的特定 数量(例如1个、3个)的应用。其中应用的优先级可以为系统默认设置的,也可以为用户手动设置的(例如通过图8中(2)所述的界面801中的控件803进行设置),对此不做限定。又例如,优先显示最近使用的特定数量(例如1个、3个)的应用。最近使用的应用可以认为是在手机灭屏前最后从前台运行切换到后台运行的应用。比如,用户开启应用1后,在未关闭应用1的情况下,又开启了应用2,当应用2在前台运行时(用户可以与应用2进行交互),手机灭屏。此时,应用2切换至后台运行,可以认为应用2相较于应用1,为用户最近使用的应用。又例如,接着上述例子,若用户在开启应用2后,又切换回应用1,即,应用1在前台运行时,手机灭屏。此时,应用1再次切换至后台运行,则认为应用1相较于应用2,为用户最近使用的应用。又例如,优先显示最近启动的应用。一般手机记录有各个应用的启动时间,根据各个应用的启动时间确定最近启动的应用。
上述策略1至策略3为本申请实施例提供的一种显示策略的举例,当然也可以采用其他任何的显示策略。
例如,手机也可以显示如图8中(3)所示的显示策略的设置界面802。用户可以选择显示优先级较高的一个或多个应用,也可以选择显示最近使用的一个或多个应用,还可以选择显示最近启动的一个或多个应用,或者显示全部应用。这里的选择全部应用,是包括手机灭屏时运行的应用,且具有调用AOD功能的全部应用。
又例如,手机的灭屏画面也可以优先显示三方应用或其他系统应用的信息。换言之,在手机在灭屏时,当运行有能够调用AOD功能的其他系统应用或三方应用时,显示其他系统应用或三方应用的信息,不显示AOD应用的信息。当手机没有运行能够调用其他系统应用或三方应用时,显示AOD应用的信息。
总之,本申请对设置策略的方法以及具有的策略内容不做限定。
在用户设置完具体的显示策略后,响应于用户在界面801或界面802中点击“确定”控件,手机存储用户设置的显示策略。例如,结合上述图2所示的结构示意图,手机框架层中决策模块中存储有用户设置的显示策略。在另一些实施例中,显示策略也可以是系统默认设置的。
在一种具体实现方式中,结合上述图2所示的结构示意图,若用户执行锁屏操作,或手机超时灭屏时,手机框架层的检测模块检测到手机当前运行的应用有多个,例如运行的应用有地图应用、微信
应用、饿了么
应用。并且,进一步的,手机从配置库中查询到地图应用、饿了么
应用为允许调用AOD功能的应用。微信
应用为不允许调用AOD功能的应用。因此,检测模块通知应用层的地图应用和饿了么
应用。而后,地图应用和饿了么
应用分别通过AOD扩展接口调用灭屏画面的相关接口(如画面绘制模块、画面配置模块、画面色彩模块、画面合成模块)绘制相应的灭屏画面。与此同时,AOD应用也通过AOD原有接口绘制了AOD应用定制的画面。地图应用、饿了么
应用、AOD应用请求显示灭屏画面的指令发送至决策模块。
例如,决策模块中的策略为显示优先级最高的应用。在一个示例中,优先级从高到低的排序为:地图应用>饿了么
应用>AOD应用。决策模块确定仅显示地图应用的灭屏画面,即最终显示的灭屏画面包括地图应用的信息。决策模块根据地图应用的显示需求,调用内核层中相应的能力,如低功耗显示能力、亮度调整能力、位置定制能 力、动效能力以及色彩能力中的一项或多项,最终通过屏幕显示出包含地图应用信息的灭屏画面。
又例如,决策模块中的策略为显示非AOD应用。那么,决策模块确定显示地图应用和饿了么
应用绘制的灭屏画面,即最终显示的灭屏画面包括地图应用和饿了么
应用的信息。决策模块根据地图应用和饿了么
应用的显示需求,调用内核层中相应的能力,如低功耗显示能力、亮度调整能力、位置定制能力、动效能力以及色彩能力中的一项或多项,最终通过屏幕显示出包含地图应用和饿了么应用信息的灭屏画面。
在又一些实施例中,其他系统应用或三方应用可以默认设置灭屏时的显示内容,显示位置,显示方式等。用户也可以在系统设置时,在开启某个应用调用AOD功能权限时,一并设置该应用在灭屏时显示内容,显示位置,以及显示方式等。或者,用户也可以在各个应用的设置界面中设置该应用在灭屏时显示内容,显示位置,以及显示方式等。本申请实施例对此不做限定。当然,也可由应用的开发方定制化设置应用的灭屏画面,包括显示内容,显示位置,显示方式等。
其中,应用的显示内容包括显示该应用的哪些内容。例如,可以设置地图应用在灭屏时显示简要信息,如图7中(1)所示,地图应用仅显示导航指示。也可以设置地图应用在灭屏时显示详细信息,如图7中(2)所示,地图应用整个导航界面,包括导航指示以及地图等。换言之,应用开发方或用户可以定制应用在灭屏时显示的内容。
其中,应用的显示位置,是指手机灭屏时,该应用的内容显示在屏幕的什么位置,例如显示在AOD定制信息的下方,屏幕的中央,屏幕的下方等。当手机在灭屏时显示有多个应用的信息,有利于用户对各个应用的信息的显示位置进行排列。
其中,应用的显示方式,包括该应用的显示内容是否采用动效,采用什么样的动效,显示内容使用的色彩模式(黑白、彩色等)。
在又一些实施例中,电子设备还可以在开机时,或者用户第一次通过系统设置开启AOD功能时,或者当电子设备安装或更新应用时,将电子设备具有的屏幕能力上报给上层的应用。其中,电子设备具有的屏幕能力包括但不限于:屏幕是是否集成有RAM(即是否支持屏幕自刷新能力,能够根据配置的时间片和时长自动刷新画面),以及屏幕集成的RAM的大小(影响着灭屏画面的整体大小),是否支持多彩显示等。当上层的应用获取电子设备的屏幕能力后,可以根据电子设备的屏幕能力绘制定制化的灭屏画面。
如图9所示,为本申请实施例提供的一种灭屏显示方法的流程示意图。该灭屏显示方法包括:
S901、电子设备亮屏。
S902、当电子设备满足预设条件时,电子设备检测当前运行的应用。
其中,预设条件是指电子设备灭屏的条件,包括检测到用户执行的锁屏操作,或者检测到用户在预设时间段内一直未操作电子设备,且电子设备也未执行特定任务(播放视频的任务)。换言之,当检测到电子设备满足灭屏的条件后,电子设备检测当前运行的应用。
在一些实施例中,当电子设备启动某个应用时,会记录该应用的运行信息,包括应用的标识、应用启动时间、应用运行的状态(前台运行或后台运行)等。因此,电 子设备可以根据记录的应用的运行信息,确定电子设备当前运行的应用。需要说明的是,当前运行的应用包括电子设备前台运行的应用和电子设备后台运行的应用。当然,在其他一些实施例中,电子设备也可以仅检测电子设备前台运行的应用。也就是说,可以认为电子设备前台运行的应用为用户当前最为关注的应用,那么在电子设备灭屏时会优先或仅显示该前台运行的应用。
需要说明的是,电子设备可以启动并同时运行多个应用,为用户提供不同的业务功能。其中,手机同时运行多个应用是指,手机已启动多个应用,该多个应用未关闭,且手机未删除该多个应用占用的内存等资源,多个应用同时在后台占用内存等资源;而并不要求多个应用程序同时在前台与用户交互。例如,在电子设备亮屏时,用户启动有微信
应用、视频应用、地图应用。其中,地图应用为前台运行的应用,电子设备的屏幕显示有地图应用的界面,用户可以通过该地图应用的界面与电子设备进行交互。微信
应用和视频应用为后台运行的应用,电子设备的屏幕未显示有微信
应用的界面,未显示有视频应用的界面。当然,用户可以切换应用,例如将微信
应用切换为前台运行的应用,此时不会杀死之前的前台运行的地图应用,而是将地图应用切换到后台运行。
还需要说明的是,上述电子设备启动的应用,可以是用户通过操作主界面中应用图标,开启的应用。也可以是,电子设备自动启动的应用。例如,当用户在系统设置中开启电子设备的灭屏功能时,电子设备可以自动开启AOD应用。
S903、电子设备检测到当前运行有第一应用。
其中,AOD应用为电子设备的一个系统应用,为电子设备提供AOD功能的应用。一般,电子设备开启AOD功能后,电子设备会自动开启AOD应用,由AOD应用在电子设备灭屏时,绘制AOD应用定制的灭屏画面,例如时间、日期、通知等信息。
此外,电子设备还可以检测到当前运行的其他系统应用或三方应用,即第一应用。如前所述,第一应用可以为前台运行的应用,也可以是后台运行的应用。第一应用的数量为一个或多个。
S904、电子设备将第一应用,与预设应用名单中的应用进行比对。
其中,预设应用名单中的应用,为具有调用AOD功能的权限的应用的名单。该预设应用名单包括具有调用AOD功能的其他系统应用或三方应用的应用标识信息、应用的权限信息等。例如:应用的权限信息包括应用可以调用的具体功能的信息,例如,屏幕的自刷新能力、低功耗显示能力、灭屏画面的亮度调整能力、灭屏画面的位置定制能力、灭屏画面的动效能力、灭屏画面的色彩能力等。在一些示例中,预设名单中也可以包括显示某应用时,是否开启定位模块的定位能力等。当该应用为需要定位的应用,例如地图类应用、外卖类应用、打车类应用、购物类应用等,开启电子设备的定位能力。
若第一应用与预设应用名单中的应用匹配,则电子设备允许第一应用调用AOD功能,若第一应用与预设应用名单中的应用不匹配,则电子设备不允许第一应用调用AOD功能。
预设应用名单中的应用可以为电子设备默认设置的,例如是与手机厂商有特定合作关系的应用。预设应用名单中的应用也可以为用户通过例如系统设置进行设置的。 本申请对此不做限定。
当然,预设应用名单中的应用,也可以为不具有调用AOD功能的权限的应用的名单。那么,若第一应用与预设应用名单中的应用不匹配,则电子设备允许第一应用调用AOD功能,反正,电子设备不允许第一应用调用AOD功能。下文以预设应用名单中的应用,为具有调用AOD功能的权限的应用的名单为例进行说明。
S905、当第一应用与预设应用名单中应用匹配时,第一应用调用AOD功能绘制画面A。其中,画面A为第一应用在电子设灭屏时显示的内容。
其中,画面A可以包括第一应用当前所在界面中的部分区域的内容,也可以包含第一应用当前所在界面中的全部内容。其中,第一应用当前所在界面,是指第一应用切换到后台运行前,最后在前台显示的界面。以地图应用的导航界面为例,画面A可以仅包含部分重要的导航信息,例如前方转弯信息、变道信息、路况信息、剩余时间等。画面A也可以是地图应用的导航界面,或者为地图应用导航界面的缩小版或简化版等。或者,以外卖类应用的送货界面为例,画面A可以仅包含骑手的当前位置、剩余的到货时间。画面A也可以是外卖类应用的送货界面,或者为送货界面的缩小版或简化版等。
示例性的,若预设应用名单中还包括应用的权限,则电子设备根据预设应用名单中的权限,允许第一应用调用AOD功能中相关能力。
在一种实现中,如图2所示,第一应用(为其他系统应用或三方应用)可以通过AOD服务、AOD扩展接口绘制第一应用的灭屏画面。需要说明的是,AOD应用此时也可以通过AOD服务、AOD原有接口绘制AOD应用的灭屏画面,一般包含时间、日期、通知信息。
S906、电子设备根据预设的显示策略,确定画面B。其中,画面B为电子设备在灭屏时显示的内容。
其中,预设的显示策略可以是电子设备默认设置的,也可以由用户在系统设置中进行设置。具体的显示策略的内容可参考前文描述,这里不再赘述。
在一些实施例中,当电子设备接收到两个或两个以上的应用绘制的灭屏画面时,电子设备会根据预设的显示策略确定画面B中包括哪些应用绘制的灭屏画面。
如图10所示,第一应用和AOD应用分别将绘制请求发送至电子设备的决策模块,当决策模块确定第一应用为预设的应用名单上的应用时,确定第一应用能够调用AOD接口。其中,AOD接口可以为AOD扩展接口,也可以为AOD原有接口。进一步的,决策模块根据预设的显示策略,确定是否画面B的内容。
例如,若显示策略为画面B仅包含AOD应用绘制的灭屏画面,决策模块则允许AOD应用通过AOD接口调用框架层的AOD能力,进一步调用驱动层的能力,最终调用器件显示AOD应用绘制的灭屏画面。决策模块不允许第一应用调用框架层的AOD能力。
又例如,若显示策略为画面B仅包含第一应用绘制的灭屏画面,决策模块则允许第一应用通过AOD接口调用框架层的AOD能力,进一步调用驱动层的能力,最终调用器件显示第一应用绘制的灭屏画面。决策模块不允许AOD应用调用框架层的AOD能力。在其他一些示例中,若第一应用包含多个应用时,显示策略也可以设置为根据 应用优先级优先显示某个第一应用绘制的灭屏画面。例如,当决策模块确定电子设备运行有地图应用和微信
应用,且这两个应用均在预设应用的名单上。然而,地图应用的优先级大于微信
应用。那么,决策模块可以优先显示地图应用绘制的灭屏画面,而不显示微信
应用绘制的灭屏画面。其中,应用的优先级可以是电子设备默认设置的,也可以由用户在系统设置或各个应用的设置界面中进行设置。
又例如,若显示策略为画面B仅包含第一应用绘制的灭屏画面,画面B包含AOD应用和第一应用绘制的灭屏画面。那么,决策模块则允许第一应用和AOD应用通过AOD接口调用框架层以及内核层的相关能力,并显示包含AOD应用和第一应用绘制的灭屏画面。在其他一些示例中,显示策略还可以进一步设置为优先显示第一应用绘制的灭屏画面。换言之,第一应用的优先级大于AOD应用。那么,当电子设备确定当前运行的应用为第一应用,且第一应用在预设名单上,则决策模块确定优先显示第一应用绘制的灭屏画面,不显示AOD应用绘制的灭屏画面。当电子设备确定当前运行的应用仅有AOD应用,或者电子设备还运行有其他应用,但其他应用不在预设应用名单上,则决策模块可以确定显示AOD应用绘制的灭屏画面。
需要说明的是,本申请实施例对显示策略的具体内容不做限定。
S907、电子设备灭屏,并显示画面B。其中,画面B中包含画面A。
在一些示例中,画面A中可以包括用于与用户交互的控件,例如按钮控件、选择控件、文本控件等。换言之,当电子设备灭屏时,用户通过画面A中的控件,对第一应用进行操作。再换言之,响应于用户在画面A对控件的操作,第一应用可以绘制新的画面,用于替换当前的画面A。
需要说明的是,当第一应用为具有定位功能的应用时,在电子设备灭屏后,电子设备还保持定位模块处于开启状态,以便电子设备在灭屏时还能够获取电子设备的定位,便于第一应用根据电子设备的新位置绘制新的灭屏画面。
其中,具有定位功能的应用,例如为开启导航功能时地图类应用,开启导航功能的外卖类应用(例如骑手的送货导航界面),开启导航功能的打车类应用等。
换言之,在手机灭屏时,可以显示包含地图应用的导航信息的灭屏画面,这样,用户无需进行点亮屏幕以及解锁操作,就能直接获取到导航信息,提升用户体验。
综上,本申请实施例提供的灭屏方法,可以在电子设备灭屏时,显示包含除AOD应用之外的其他应用的信息。这样,用户可以在电子设备灭屏时获取更多重要的及时的应用信息。进一步的,其他应用绘制的灭屏画面中还可以包括用于与用户交互的控件,便于用户在电子设备灭屏时与该应用进行交互,从而扩展了电子设备灭屏时的使用场景。
本申请实施例还提供一种芯片系统,如图11所示,该芯片系统包括至少一个处理器1901和至少一个接口电路1902。处理器1901和接口电路1902可通过线路互联。例如,接口电路1902可用于从其它装置(例如电子设备100的存储器)接收信号。又例如,接口电路1902可用于向其它装置(例如处理器1901)发送信号。示例性的,接口电路1902可读取存储器中存储的指令,并将该指令发送给处理器1901。当所述指令被处理器1901执行时,可使得电子设备执行上述实施例中的电子设备100(比如,手机)执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例 对此不作具体限定。
可以理解的是,上述终端等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
本申请实施例可以根据上述方法示例对上述终端等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (18)
- 一种灭屏显示方法,其特征在于,应用于具有屏幕的电子设备,所述方法包括:所述电子设备亮屏,所述电子设备运行有第一应用;当所述电子设备满足灭屏条件时,所述电子设备灭屏,且显示第一画面,所述第一画面包含所述第一应用绘制的第二画面。
- 根据权利要求1所述的方法,其特征在于,在所述电子设备灭屏,且显示第一画面之前,所述方法还包括:所述电子设备确定所述第一应用为预设名单上的应用,其中所述预设名单的应用为允许调用所述电子设备的常显示AOD功能的应用,所述第二画面为所述第一应用调用所述AOD功能绘制的。
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:所述第二画面为所述第一应用根据所述电子设备的屏幕能力,调用所述AOD功能绘制的;其中,所述电子设备的屏幕能力包括是否支持屏幕自刷新能力,是否支持多彩显示,是否支持动效,是否支持显示位置定制中一项或多项。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述第二画面为所述第一应用第一界面上部分区域的画面;或者,所述第二画面包含所述第一应用所述第一界面;或者,所述第二画面为所述第一应用所述第一界面的简化版。
- 根据权利要求4所述的方法,其特征在于,所述第二画面包括第一控件,所述方法还包括:响应于用户操作所述第一控件,所述第二画面变化为所述第一应用绘制的第三画面。
- 根据权利要求1-5任一项所述的方法,其特征在于,在所述电子设备灭屏,且显示第一画面之前,所述方法还包括:所述电子设备根据预设策略,确定所述第一画面的内容。
- 根据权利要求6所述的方法,其特征在于,所述预设策略包括显示AOD应用的内容,或显示所述第一应用的内容,或显示所述AOD应用和所述第一应用的内容;其中,所述AOD应用的内容包括时间、日期、通知中的一项或多项。
- 根据权利要求7所述的方法,其特征在于,所述电子设备根据预设策略,确定所述第一画面的内容,具体为:当所述预设策略为显示所述第一应用的内容时,所述电子设备确定所述第一画面包括所述第二画面,不包括所述AOD应用绘制的第四画面;或者,当所述预设策略为显示所述AOD应用和所述第一应用的内容时,所述电子设备确定所述第一画面包括所述第二画面和所述AOD应用绘制的第四画面。
- 根据权利要求6-8任一项所述的方法,其特征在于,所述预设策略包括显示应用优先级排名前M个的应用,其中M为大于或等于1的正整数。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述第一应用为地图类应用,外卖类应用、打车类应用、购物类应用、闪送类应用中任一项。
- 根据权利要求1-10任一项所述的方法,其特征在于,所述第一应用为所述电子设备前台运行的应用,或者,所述第一应用为所述电子设备后台运行的应用。
- 一种灭屏显示方法,其特征在于,应用于安装在电子设备上的第一应用,所述方法包括:接收所述电子设备满足灭屏条件的第一通知;响应于接收到所述第一通知,所述第一应用绘制第二画面;其中所述第二画面用于显示在所述电子设备在灭屏时显示的第一画面中。
- 根据权利要求12所述的方法,其特征在于,所述第二画面为第一界面上部分区域的画面;或者,所述第二画面包含所述第一界面;或者,所述第二画面为所述第一界面的简化版。
- 根据权利要求12或13所述的方法,其特征在于,所述第二画面包括第一控件,所述方法还包括:所述第一应用接收用户操作所述第一控件的第二通知;响应于接收到所述第二通知,所述第一应用绘制第三画面,所述第三画面用于替换所述第二画面。
- 根据权利要求12或13所述的方法,其特征在于,还包括:所述第一应用获取所述电子设备的屏幕能力,其中,所述电子设备的屏幕能力包括是否支持屏幕自刷新能力,是否支持多彩显示,是否支持动效,是否支持显示位置定制中一项或多项;所述第一应用绘制第二画面,具体为:所述第一应用根据所述电子设备的屏幕能力,绘制所述第二画面。
- 一种电子设备,其特征在于,包括:处理器、存储器和显示屏,所述存储器、所述显示屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述电子设备执行如权利要求1-11任一项所述的灭屏显示方法,或者执行如权利要求12-15中任一项所述的灭屏显示方法。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的灭屏显示方法,或者执行如权利要求12-15中任一项所述的灭屏显示方法。
- 一种计算机程序产品,其特征在于,当计算机程序产品在计算机上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的灭屏显示方法,或者执行如权利要求12-15中任一项所述的灭屏显示方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110342483.3A CN115150500A (zh) | 2021-03-30 | 2021-03-30 | 一种灭屏显示方法及电子设备 |
CN202110342483.3 | 2021-03-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022206707A1 true WO2022206707A1 (zh) | 2022-10-06 |
Family
ID=83404302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/083488 WO2022206707A1 (zh) | 2021-03-30 | 2022-03-28 | 一种灭屏显示方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115150500A (zh) |
WO (1) | WO2022206707A1 (zh) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009157045A (ja) * | 2007-12-26 | 2009-07-16 | Lenovo Singapore Pte Ltd | 表示装置およびその電力制御用プログラム |
CN105892974A (zh) * | 2016-03-31 | 2016-08-24 | 广东欧珀移动通信有限公司 | 一种待机界面的显示方法、显示装置以及终端 |
JP2017027293A (ja) * | 2015-07-21 | 2017-02-02 | 富士通株式会社 | 電子機器及び表示制御プログラム |
CN106775521A (zh) * | 2016-11-29 | 2017-05-31 | 珠海市魅族科技有限公司 | 熄屏显示方法和装置 |
CN108769416A (zh) * | 2018-05-31 | 2018-11-06 | 北京小米移动软件有限公司 | 熄屏显示方法及装置 |
CN109388223A (zh) * | 2018-09-14 | 2019-02-26 | 维沃移动通信有限公司 | 一种熄屏显示方法、装置及终端 |
CN110417986A (zh) * | 2018-04-28 | 2019-11-05 | 华为技术有限公司 | 一种灭屏显示的方法及电子设备 |
CN112351144A (zh) * | 2020-11-04 | 2021-02-09 | 青岛海信移动通信技术股份有限公司 | 移动终端及其状态提示方法 |
CN113656118A (zh) * | 2021-07-08 | 2021-11-16 | 荣耀终端有限公司 | 一种灭屏显示方法及电子设备 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108337363A (zh) * | 2017-12-26 | 2018-07-27 | 努比亚技术有限公司 | 一种终端熄屏显示控制方法、终端 |
CN109753312A (zh) * | 2018-12-21 | 2019-05-14 | 深圳贝特莱电子科技股份有限公司 | 一种基于android系统的灭屏状态下指纹解锁加速亮屏方法 |
CN112417396A (zh) * | 2020-11-17 | 2021-02-26 | 努比亚技术有限公司 | 一种终端解锁方法、终端及计算机可读存储介质 |
-
2021
- 2021-03-30 CN CN202110342483.3A patent/CN115150500A/zh active Pending
-
2022
- 2022-03-28 WO PCT/CN2022/083488 patent/WO2022206707A1/zh active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009157045A (ja) * | 2007-12-26 | 2009-07-16 | Lenovo Singapore Pte Ltd | 表示装置およびその電力制御用プログラム |
JP2017027293A (ja) * | 2015-07-21 | 2017-02-02 | 富士通株式会社 | 電子機器及び表示制御プログラム |
CN105892974A (zh) * | 2016-03-31 | 2016-08-24 | 广东欧珀移动通信有限公司 | 一种待机界面的显示方法、显示装置以及终端 |
CN106775521A (zh) * | 2016-11-29 | 2017-05-31 | 珠海市魅族科技有限公司 | 熄屏显示方法和装置 |
CN110417986A (zh) * | 2018-04-28 | 2019-11-05 | 华为技术有限公司 | 一种灭屏显示的方法及电子设备 |
CN108769416A (zh) * | 2018-05-31 | 2018-11-06 | 北京小米移动软件有限公司 | 熄屏显示方法及装置 |
CN109388223A (zh) * | 2018-09-14 | 2019-02-26 | 维沃移动通信有限公司 | 一种熄屏显示方法、装置及终端 |
CN112351144A (zh) * | 2020-11-04 | 2021-02-09 | 青岛海信移动通信技术股份有限公司 | 移动终端及其状态提示方法 |
CN113656118A (zh) * | 2021-07-08 | 2021-11-16 | 荣耀终端有限公司 | 一种灭屏显示方法及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN115150500A (zh) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102575123B1 (ko) | 애플리케이션 디스플레이 방법 및 전자 장치 | |
US7558884B2 (en) | Processing information received at an auxiliary computing device | |
US20220350602A1 (en) | Multi-Thread Synchronization Method and Electronic Device | |
CN113553130B (zh) | 应用执行绘制操作的方法及电子设备 | |
WO2022083296A1 (zh) | 一种显示方法及电子设备 | |
WO2021179924A1 (zh) | 一种显示蓝牙设备标识的方法及电子设备 | |
CN111263002B (zh) | 一种显示方法和电子设备 | |
CN113761427A (zh) | 自适应生成卡片的方法、终端设备和服务器 | |
WO2022262434A1 (zh) | 一种功耗优化方法和电子设备 | |
CN113656118B (zh) | 一种灭屏显示方法及电子设备 | |
WO2021129254A1 (zh) | 控制屏幕显示的方法和电子设备 | |
WO2023005900A1 (zh) | 一种投屏方法、电子设备及系统 | |
WO2023001163A1 (zh) | 一种可提升动效性能的屏幕刷新方法及设备 | |
CN115016868A (zh) | 屏幕控制方法和终端设备 | |
WO2022206707A1 (zh) | 一种灭屏显示方法及电子设备 | |
WO2022252906A1 (zh) | 界面显示方法、装置、终端设备及计算机可读存储介质 | |
CN116700585B (zh) | 熄屏控制方法、电子设备及存储介质 | |
WO2023246290A1 (zh) | 一种功耗控制方法及电子设备 | |
CN118262681B (zh) | 屏幕控制方法、电子设备、芯片系统及可读存储介质 | |
WO2024067169A1 (zh) | 信息处理方法及电子设备 | |
WO2024139115A1 (zh) | 一种显示方法以及电子设备 | |
CN116672707B (zh) | 生成游戏预测帧的方法和电子设备 | |
CN115658213B (zh) | 一种显示方法、电子设备及存储介质 | |
CN118567467A (zh) | 熄屏显示的控制方法、芯片系统、设备及可读存储介质 | |
WO2024114285A1 (zh) | 显示方法、显示装置和可穿戴设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22778889 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22778889 Country of ref document: EP Kind code of ref document: A1 |