WO2022017328A1 - 一种电子设备的锁屏界面显示方法和电子设备 - Google Patents

一种电子设备的锁屏界面显示方法和电子设备 Download PDF

Info

Publication number
WO2022017328A1
WO2022017328A1 PCT/CN2021/107149 CN2021107149W WO2022017328A1 WO 2022017328 A1 WO2022017328 A1 WO 2022017328A1 CN 2021107149 W CN2021107149 W CN 2021107149W WO 2022017328 A1 WO2022017328 A1 WO 2022017328A1
Authority
WO
WIPO (PCT)
Prior art keywords
lock screen
screen interface
interface
electronic device
application
Prior art date
Application number
PCT/CN2021/107149
Other languages
English (en)
French (fr)
Inventor
樊华
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/006,318 priority Critical patent/US20230300240A1/en
Priority to EP21847360.1A priority patent/EP4171000A4/en
Publication of WO2022017328A1 publication Critical patent/WO2022017328A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • H04M1/724631User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device by limiting the access to the user interface, e.g. locking a touch-screen or a keypad
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/83Protecting input, output or interconnection devices input devices, e.g. keyboards, mice or controllers thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • H04M1/72472User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons wherein the items are sorted according to specific criteria, e.g. frequency of use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • the present application relates to the field of communications, and in particular, to a method for displaying a lock screen interface of an electronic device and an electronic device.
  • Electronic devices such as smartphones, tablets, and laptops are widely used in daily life due to their portability.
  • a user can download various application programs (application, APP) on the electronic device to meet the user's needs for entertainment, shopping, learning, and the like.
  • application application
  • the mobile phone is equipped with a lock screen.
  • the way to lock the screen includes the lock screen provided by the operating system of the mobile phone and the lock screen provided by a third-party application downloaded in the mobile phone.
  • the lock screen provided by the third-party application is overlaid on the lock screen provided by the operating system of the mobile phone to form a third-party lock screen.
  • a music lock screen formed by overlaying a music APP on the lock screen of the mobile phone's operating system
  • a sports lock screen formed by a sports APP overlaying the lock screen of the mobile phone's operating system etc.
  • Each third-party application can provide content display and application common function operations on its own lock screen interface, so as to quickly view the application content and control the application quickly without unlocking the lock screen that comes with the operating system.
  • the third-party lock screen provided by the third-party application realizes the viewing of the application content and the quick control of the application without unlocking the mobile phone.
  • the lock screen interface displayed on the top layer is the most convenient to view and operate.
  • the content of the lock screen on the lower layer of the lock screen on the top layer changes, the user needs to remove the lock screen on the top layer before viewing the content on the lock screen on the next layer of the lock screen on the top layer. .
  • the operation is cumbersome and affects the user experience.
  • the purpose of the present invention is to provide a method for displaying a lock screen interface of an electronic device and an electronic device.
  • the user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one.
  • the operation is simple and the user experience is improved.
  • an embodiment of the present application discloses a method for displaying a lock screen interface of an electronic device.
  • the electronic device includes a plurality of lock screen interfaces to be displayed, and the method for displaying a lock screen interface of the electronic device includes:
  • the first lock screen interface with the highest order level among the plurality of lock screen interfaces is displayed on the screen of the electronic device.
  • the preset order it can be set at least according to the priority of the application corresponding to each lock screen interface.
  • the lock screen interface with high priority has a correspondingly higher order level and is preferentially displayed on the screen of the electronic device.
  • the second lock screen interface is determined from the plurality of lock screen interfaces.
  • For the preset conditions at least include: when the content displayed on each lock screen interface changes (that is, the content output by the application changes), the electronic device uses the lock screen interface with the changed content as the target lock screen interface and displays it on the electronic device. on the screen of the device.
  • the electronic device When the user operates the electronic device and the state data of the electronic device satisfies the switching requirements of the state data corresponding to each operation mode based on each operation mode of the user, the electronic device is based on the preset sequence according to the higher order level to the lower order level.
  • the sequence of the target lock screen interface is sequentially determined and displayed on the screen of the electronic device.
  • the application corresponding to each lock screen interface requests the electronic device to use its lock screen interface as a target lock screen interface and display it on the screen of the electronic device.
  • the above-mentioned lock screen interfaces are arranged in a predetermined order, and the lock screen interface with a higher order level is used as the lock screen interface—the first to be displayed on the screen of the electronic device. Based on the triggering of the predetermined condition, a lock screen interface will be determined as the second lock screen interface and displayed on the screen of the electronic device. In this way, before the predetermined rule is triggered, a plurality of lock screen interfaces are displayed on the screen of the electronic device by using the lock screen interface with a higher order level in the predetermined sequence as the lock screen interface. When the predetermined rule is triggered, the electronic device can determine the second lock screen interface from the plurality of lock screen interfaces and display it on the screen. The user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one. The operation is simple and the user experience is improved.
  • a preset condition is triggered when the content displayed on the lock screen interface changes, and the target lock screen interface where the content displayed on the lock screen interface changes is selected as the second lock screen interface.
  • At least part of the lock screen interfaces in the plurality of lock screen interfaces are lock screen interfaces associated with applications in the electronic device;
  • Changes in the content displayed on the lock screen interface are associated with changes in the content output by the application.
  • the content of the first lock screen interface is updated as the first lock screen interface.
  • Two lock screen interface when the first application corresponding to the first lock screen interface changes the content displayed on the first lock screen interface, the content of the first lock screen interface is updated as the first lock screen interface.
  • the lock screen interface corresponding to the second application is changed. As a second lock screen interface.
  • the electronic device switches to the lock screen interface with a higher order level after switching and displaying the lock screen interfaces of the applications that trigger the above rules in sequence.
  • the lock screen interface of other applications that trigger the above rules cannot be displayed on the screen of the electronic device. displayed problem.
  • the electronic device is based on The preset order restores the original display order of the lock screen interface of each application.
  • the second lock screen interface is selected from the determined multiple second screen lock interfaces.
  • the second lock screen interface with the highest order level in the selected preset order is displayed on the screen.
  • the electronic device receives the user's preset operation mode for the electronic device, and triggers the preset condition.
  • the operation mode includes that the user presses an on-off key of the electronic device to switch the electronic device between a screen-on state and a screen-off state;
  • the lock screen interface located at the second position after the first lock screen interface is determined based on the preset order as the second lock screen interface.
  • the operation mode includes the user shaking the electronic device
  • the lock screen interface that is ranked one position behind the first lock screen interface is determined based on the preset order as the second lock screen interface.
  • the second screen lock interface is determined based on a preset sequence and displayed on the screen.
  • the preset order is set based on the priority of the applications corresponding to each lock screen interface, and the lock screen interface corresponding to the application with a higher priority has a higher order level and is prioritized in the electronic device. displayed on the screen.
  • the priority of each application is set by the user
  • Custom settings include:
  • the application setting interface includes at least two different applications, each application is configured to be able to present a corresponding lock screen interface on the electronic device;
  • the priority is set based on the order in which each lock screen interface is set by the user, and the priority of the lock screen interface with the setting order is higher.
  • the priority is set based on the frequency of user access to each application.
  • the application has a lock screen interface based on the lock screen application identifier carried in each application.
  • the target application when the content on the lock screen interface of the application changes, the target application whose content displayed on the lock screen interface changes requests the electronic device to switch the lock screen interface of the target application to the screen
  • the display determines that the target lock screen interface is the second lock screen interface.
  • the request frequency of allowing the target application to request the electronic device to switch the lock screen interface of the target application to the second lock screen interface is less than a threshold.
  • the lock screen windows of the application corresponding to each lock screen interface are all pushed into a pre-established window stack.
  • each lock screen window is sequentially pushed into the window stack based on the priority of each application, and each lock screen window is sequentially pushed into the window stack according to the priority of the application from low to high, and The order in which the lock screen windows are popped out of the stack is used as the preset order of the lock screen interface of each application.
  • determining the second lock screen interface from the plurality of lock screen interfaces and displaying it on the screen includes:
  • the lock screen window in the window stack is unstacked until the target lock screen window as the second lock screen interface is popped out of the stack;
  • the first lock screen interface and the next lock screen interface in the sequence level of the first lock screen interface are displayed. Unstack, push the first lock screen interface into the stack, and push the next lock screen interface at the sequence level of the first lock screen interface to the top of the stack to lock the next lock screen at the sequence level of the first lock screen interface.
  • Unstack push the first lock screen interface into the stack, and push the next lock screen interface at the sequence level of the first lock screen interface to the top of the stack to lock the next lock screen at the sequence level of the first lock screen interface
  • the screen interface is displayed on the screen of the electronic device as a second lock screen interface.
  • the unstacked lock screen window and the second lock screen interface are unstacked again. Set the order to re-stack the unstacked lock screen window and the second lock screen interface.
  • an embodiment of the present application discloses an electronic device, the electronic device includes a plurality of lock screen interfaces to be displayed, and the electronic device includes at least one processor and at least one memory;
  • At least one memory has instructions stored in it
  • the instructions when executed by the at least one processor, cause the electronic device to perform the following operations:
  • the above-mentioned lock screen interfaces are arranged in a predetermined order, and the lock screen interface with a higher order level is used as the lock screen interface—first displayed on the screen of the electronic device 10 .
  • a lock screen interface will be determined as the second lock screen interface and displayed on the screen of the electronic device 10 .
  • a plurality of lock screen interfaces are displayed on the screen of the electronic device by using the lock screen interface with a higher order level in the predetermined sequence as the lock screen interface.
  • the electronic device can determine the second lock screen interface from the plurality of lock screen interfaces and display it on the screen. The user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one. The operation is simple and the user experience is improved.
  • the electronic device when the instructions are executed by the at least one processor, the electronic device is caused to further perform the following steps:
  • the preset condition is triggered when the content displayed on the lock screen interface changes, and the target lock screen interface where the content displayed on the lock screen interface changes is selected as the second lock screen interface.
  • the electronic device when the instructions are executed by the at least one processor, the electronic device is caused to further perform the following steps:
  • the electronic device receives the user's preset operation mode for the electronic device, and triggers the preset condition.
  • the electronic device when the instructions are executed by the at least one processor, the electronic device is caused to further perform the following steps:
  • the preset order is set based on the priority of the applications corresponding to each lock screen interface, and the lock screen interface with a higher priority has a higher order level and is preferentially displayed on the screen of the electronic device.
  • Figure 1(a) illustrates an exemplary user interface on a cell phone for presenting cell phone-installed applications
  • FIG. 1(b) exemplarily shows an exemplary sports lock screen interface on a mobile phone for displaying mobile phone-installed sports applications
  • FIG. 1(c) exemplarily shows an exemplary music lock screen interface on a mobile phone for displaying a music application installed on the mobile phone;
  • FIG. 1(d) exemplarily shows an exemplary system lock screen interface on a mobile phone for displaying system applications in the mobile phone;
  • FIG. 1(e) exemplarily shows an application setting interface provided by a display setting application on a mobile phone
  • Figure 2 (a) exemplarily shows a schematic diagram of the hardware structure of a mobile phone
  • FIG. 2(b) exemplarily shows a software structure block diagram of the mobile phone 10
  • Fig. 3 (a) exemplarily shows a schematic diagram 1 of the interface displayed on the screen of the mobile phone by the lock screen interface;
  • Fig. 3(b) exemplarily shows a schematic diagram 2 of the interface displayed on the screen of the mobile phone by the lock screen interface;
  • FIG. 4(a) exemplarily shows a schematic flowchart of a method for displaying a lock screen interface provided by an embodiment of the present application
  • Fig. 4(b) exemplarily shows the specific implementation schematic diagram 1 of the window stack
  • Fig. 4 (c) exemplarily shows the specific implementation schematic diagram 2 of the window stack
  • FIG. 5 exemplarily shows a schematic structural diagram of an electronic device disclosed in an embodiment of the present application
  • FIG. 6 exemplarily shows a schematic structural diagram of an SOC disclosed in an embodiment of the present application.
  • the electronic device may also be a tablet, a notebook computer, a laptop computer, and the like.
  • FIG. 1(a) illustrates an exemplary user interface on a cell phone 10 for presenting cell phone installed applications.
  • User interface 100 may include: status bar 101 , application icons 102 . in:
  • the status bar 101 may include: one or more signal strength indicators 101A of wireless fidelity (Wi-Fi) signals, a battery status indicator 101B, and a time indicator 101C.
  • the status bar 101 may further include: one or more signal strength indicators of a mobile communication signal (also referred to as a cellular signal), an operator name (eg, "China Mobile").
  • the user interface 100 may further include: a navigation bar 104 .
  • the navigation bar 104 may include system navigation keys such as a back key 104A, a home screen key 104B, a multitasking key 104C, and the like.
  • the names of the navigation keys may also be other, which is not limited in this application.
  • each navigation key in the navigation bar 104 can also be implemented as physical keys.
  • the application icons 102 may be: sports icon 102A, gallery icon 102B, music icon 102C, application store icon 102D, contact icon 102E, mailbox icon 102F, system lock screen application icon 102G, and memo icon 102H, a setting icon 102I, a camera icon 102J, and the like.
  • the user interface 10 may also include a page indicator 103 .
  • Other application icons may be distributed on multiple pages, and the page indicator 103 may be used to indicate the application in which page the user is currently browsing. Users can swipe left and right in the area of other application icons to browse application icons in other pages.
  • the display screen of the mobile phone 10 is configured with a touch panel, which can be used to receive a user's touch operation.
  • the touch operation refers to the user's hand, elbow, stylus, etc. touching the display screen operate.
  • the user's touch operation may be to click on the application icon 102 to perform operations on each application.
  • FIG. 1( a ) only exemplarily shows the user interface on the mobile phone 10 , and the user interface may also include other application icons or other information, which should not constitute a limitation on the embodiments of the present application.
  • the setting 102I may receive a user operation (eg, a touch operation), and in response to the detected user operation, the mobile phone 10 may display an application setting interface of the lock screen interface of each application.
  • the application setting interface includes at least two different applications, and each application is configured to present a corresponding lock screen interface on the display screen of the mobile phone 10 . The user can touch the corresponding lock screen interface to determine the display order of the lock screen interface.
  • the sports application and the music application correspondingly have a lock screen interface.
  • the lock screen interface refers to the interface formed by the music lock screen and the motion lock screen provided by the sports application or music application and presented on the screen of the mobile phone when the mobile phone is in a bright screen but not unlocked state.
  • the mobile phone 100 also has system wallpapers.
  • Some applications in the application program icon 102 or the system of the mobile phone 10 may provide a lock screen interface for the mobile phone 10 when the mobile phone 10 is in a screen-off state or a bright-screen state and is not unlocked.
  • the sports lock screen interface provided by the sports application corresponding to the sports icon 102A the music lock screen interface provided by the music application corresponding to the music icon 102C, and the system lock screen interface 102K provided by the system of the mobile phone 10, etc.
  • the setting 102I may receive a user operation (eg, a touch operation), and in response to the detected user operation, the mobile phone 10 may display an application setting interface of the lock screen interface of each application.
  • the application setting interface includes at least two different applications, and each application is configured to present a corresponding lock screen interface on the display screen of the mobile phone 10 . The user can touch the corresponding lock screen interface to determine the display order of the lock screen interface.
  • the above-mentioned lock screen interfaces are arranged in a predetermined order, and the lock screen interface with a higher order level is used as the lock screen interface - first displayed on the screen of the mobile phone 10 .
  • a lock screen interface will be determined as the second lock screen interface and displayed on the screen of the mobile phone 10 .
  • a plurality of lock screen interfaces are displayed on the screen of the mobile phone by using the lock screen interface with a higher order level in the predetermined sequence as the lock screen interface.
  • the mobile phone can determine the second lock screen interface from the plurality of lock screen interfaces and display it on the screen. The user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one. The operation is simple and the user experience is improved.
  • FIG. 2( a ) exemplarily shows a schematic diagram of the hardware structure of the mobile phone 10 .
  • the mobile phone 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging 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, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user Identity module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light.
  • the sensor 180L, the bone conduction sensor 180M and the gravity sensor (not shown in the figure), etc. It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 10 . In other embodiments of the present application, the mobile phone 10 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 processor 110 may generate an operation control signal according to the instruction operation code and the timing signal, and complete the control of fetching and executing the instruction.
  • 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 memory may store the application package of each application in FIG. 1( a ), the data of the lock screen interface of the application, the data generated during the running of the application, and the like.
  • the user interface, the preset sequence and the preset conditions described in the above embodiments may also be stored in the memory for the processor 110 to use.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can also store data (such as audio data, phone book, etc.) created during the use of the mobile phone 10 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the mobile phone 10 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor.
  • the wireless communication module 160 can provide applications on the mobile phone 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • FM near field communication technology
  • NFC near field communication solutions.
  • the display screen 194 is used to display the interface related to the operation of the smart TV 10 in the logical information of the remote view.
  • Display 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).
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the mobile phone 10 may include one or N display screens 170 , where N is a positive integer greater than one.
  • the keys 190 may include a power key, a volume key, and the like on the mobile phone 10 .
  • the user can operate the power button to switch the mobile phone 10 between the screen-on state and the screen-off state. Operate the volume keys to increase or decrease the playback volume of the mobile phone 10 .
  • the gyro sensor 180B can be used to determine the motion attitude of the mobile phone 10 .
  • the angular velocity of cell phone 10 about three axes ie, x, y, and z axes
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 10, which is different from the position where the display screen 194 is located.
  • the touch sensor 180K detects the user's touch operation and generates It is transmitted to the processor, and the processor executes the instructions stored in the processor, the instructions realize the number of touches of the notification message on the screen of the mobile phone for the user, and correspondingly expand the content and operation related to the notification message.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 10 in various directions (generally three axes). When the mobile phone 10 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of mobile phones, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • Gravity sensor is a sensor that converts motion or gravity into electrical signals, mainly used for the measurement of parameters such as tilt angle, inertial force, shock and vibration.
  • the gravity sensor 118 can measure the shaking speed of the mobile phone 10 .
  • the software system of the mobile phone 10 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to illustrate the software structure of the mobile phone 10 as an example.
  • FIG. 2( b ) exemplarily shows a block diagram of the software structure of the mobile phone 10 .
  • 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 four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, sports, gallery, application store, contacts, mailbox, cloud sharing, memo, settings, music, and short messages.
  • applications such as camera, sports, gallery, application store, contacts, mailbox, cloud sharing, memo, settings, music, and short messages.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a display policy service, a power manager service (PMS), and a display manager service (DMS).
  • PMS power manager service
  • DMS display manager service
  • the application framework layer may also include an activity manager, a window manager service (WMS), a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. This does not impose any restrictions.
  • the display policy service can be used to obtain the user's touch instruction from the notification manager. Furthermore, the display policy service may display the content to be displayed on the display screen according to the notification message corresponding to the touch instruction, that is, the content currently displayed on the display screen. For example, when the user clicks on the settings icon 102I, the display policy service displays the interface of the settings application on the display screen for presentation to the user.
  • the software system of the mobile phone 10 receives the touch operation via the touch sensor 180K, and a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control (setting control) corresponding to the input event.
  • the processor 110 recognizes that the touch sensor 180K receives a touch operation (corresponding to the icon of the application clicked by the user), and the display policy service displays a detailed interface after the application is opened on the display screen.
  • the display policy service displays the lock screen interface of the background running program on the display screen 194.
  • the display policy service displays the lock screen interface on the display screen 194 based on the preset sequence and preset conditions described in the above embodiment.
  • the window management service can obtain the size of the display screen 194, determine whether there is a status bar, lock the screen of the mobile phone 10, take screenshots, etc., and identify whether the window attribute of the application program carries the lock screen application identifier to determine whether the application program has a lock screen interface. . Monitor the number of all currently running lock screen windows, and monitor whether the content displayed on the lock screen interface corresponding to each lock screen window has changed.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • a lock screen interface that includes a music application icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the mobile phone 10 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar 101 or in the system lock screen 102K.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the mobile phone vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGLES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGLES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer at least includes a display driver, a display screen driver, a key driver, a sensor driver, and the like, which are not limited in this embodiment of the present application.
  • multiple application programs that can provide a lock screen interface run in the mobile phone 10 .
  • Multiple lock screen interfaces of multiple applications are overlaid on the system lock screen interface of the mobile phone 10 to form a multi-layer lock screen interface.
  • the mobile phone 10 will have a three-layer lock screen interface after locking the screen. The sequence is: a motion lock screen interface 102A0, a music lock screen interface 102C0, and a system lock screen interface 102K.
  • FIG. 1( b ) exemplarily shows an exemplary sports lock screen interface on the mobile phone 10 for displaying sports applications installed on the mobile phone 10 .
  • any one of the following information is displayed in the motion lock screen interface 102A0: the status bar 101 (including at least the signal strength indicator 101A, the battery status indicator 101B, the time indicator 101C), the sports application in The content display area 102A00 on the sports lock screen interface 102A0 (including at least the number of kilometers in motion (eg, 3.01 kilometers), the number of altitude rises (eg, 1 meter), and the time spent (eg, 00 hours, 30 minutes, 20 seconds)) and the unlock interface display area 102A01.
  • the user can use a finger to slide up the screen on the touch panel configured on the display screen of the mobile phone 10 to unlock the motion lock screen.
  • FIG. 1( c ) exemplarily shows an exemplary music lock screen interface on the mobile phone 10 for displaying the music application installed on the mobile phone 10 .
  • the music lock screen interface 102C0 displays at least one of the following information: the status bar 101, the content display area 102C00 of the music application on the music lock screen interface 102C0 (at least the information of the currently playing song is displayed) 102C001 (such as lyrics, song title and singer, etc.), operation buttons 102C000, time and date, etc.) and unlock interface display area 102C01.
  • the user can use a finger to slide the screen to the right on the touch panel configured on the display screen of the mobile phone 10 to unlock the music lock screen.
  • FIG. 1( d ) exemplarily shows an exemplary system lock screen interface on the mobile phone 10 for displaying system applications in the mobile phone 10 .
  • the system lock screen interface 102K may be a Huawei magazine lock screen. At least one of the following information is displayed: the status bar 101, the unlock interface display area 102K0, the content display area 102K1 of the system lock screen interface 102K (which can display notification messages of different applications (such as WeChat, calls, and information, etc.)) and fingerprints Unlock display area 102K2.
  • the user can use a finger to slide up the screen on the touch panel configured on the display screen of the mobile phone 10 to unlock the system lock screen, or the user can unlock the system lock screen by operating the fingerprint unlocking display area 102K2 with a finger.
  • lock screen interface on the mobile phone 10 may also include other types of lock screen interfaces, and the user may also have other ways to unlock the lock screen interface, such as left swipe, right swipe, upward swipe, and so on. This is not limited in the embodiments of the present application.
  • the unlocking methods of each lock screen interface can be the same or different from each other. For example, as shown in Figure 1c, in the music lock screen interface, the screen is unlocked by sliding to the right; as shown in Figure 1(d) , the system's lock screen interface, unlock the screen by swiping up.
  • the user wants to check the information displayed on the music lock screen interface, such as the name of the currently playing song, etc., the user has to check it from the music lock screen interface.
  • the user wants to view the content of the message displayed on the music lock screen interface at this time, he needs to remove the motion lock screen interface by sliding (for example, swiping left) before viewing the content on the music lock screen interface.
  • an app receives a notification message and displays it on the system lock screen, the user needs to view it from the system lock screen.
  • the lock screen interface displayed on the top layer is the most convenient to view and operate.
  • the user needs to remove the lock screen interface on the top layer before viewing the lock screen interface on the top layer.
  • the content of the lock screen interface of the next layer of the lock screen interface of the top layer is cumbersome and affects the user experience.
  • the mobile phone 10 when the mobile phone 10 is in the locked screen state, the screen of the mobile phone 10 is firstly displayed on the screen of the mobile phone 10 according to a preset sequence, and the lock screen interface with a higher order level among the plurality of lock screen interfaces is used as the lock screen interface.
  • the mobile phone 10 may determine the target lock screen interface (the second lock screen interface) from the plurality of lock screen interfaces based on the preset condition.
  • the content of the lock screen interface 1 of the application can be updated, so that the content of the updated lock screen interface is consistent with the content of the lock screen interface 2.
  • the first lock screen interface can be switched directly, and the second lock screen interface can be switched to the top layer of the other lock screen interfaces and displayed on the screen of the mobile phone 10 .
  • a target lock screen interface is displayed on the display screen of the mobile phone 10, and the user can intuitively see the content displayed on the target lock screen interface without other operations.
  • the preset order it can be set at least according to the priority of the application corresponding to each lock screen interface.
  • a lock screen interface with a higher priority has a correspondingly higher order level and is preferentially displayed on the screen of the mobile phone 10 .
  • the setting method of the priority of each application includes at least one of the following methods: user-defined setting, setting based on the frequency of user access to each application, and setting based on the access order of the user accessing each application (the order in which the user opens the application) .
  • the priority of each application may also be set in other manners, which are not limited in this embodiment of the present application.
  • the user operates (eg, clicks) the setting 102I on the display screen provided by the mobile phone 10 .
  • the mobile phone 10 presents an application setting interface 102I0 for the user based on the user's operation instruction, and the application setting interface 102I0 includes at least two different applications (in FIG.
  • the application is configured to present a corresponding lock screen interface on the phone 10 .
  • the mobile phone 10 sets the priority of displaying the lock screen interface based on the click sequence of the user clicking (setting) the application.
  • the lock screen interface with the first setting order has a higher order level, and the lock screen interface with a higher order level has a correspondingly higher priority.
  • each application can be dragged to set the priority in the queue, for example, the application located on the far left of the screen of the mobile phone has the highest priority, and the application located on the far right of the screen of the mobile phone has the lowest priority.
  • Priority is set for the frequency of user access to each application: that is, before the mobile phone 10 enters the lock screen state, the mobile phone 10 sets the priority based on the number of times the user accesses the application corresponding to each lock screen interface. Lock screens with a high number of visits are given high priority. For example, the user first clicks on the music application to enter the interface provided by the music application, and then exits the music application so that the application runs in the background. Then click the sports application to enter the interface provided by the sports application. Then, if the user opens the music application first and opens the sports application after, the priority of the music application is higher than that of the sports application.
  • the priority is set for the access order of the user accessing each application: that is, before the mobile phone 10 enters the lock screen state, the mobile phone 10 sets the priority based on the opening order of the application corresponding to each lock screen interface by the user, and the lock screen interface with the first opening order is prioritized. High priority.
  • Rule 1 When the content displayed on each lock screen interface changes (ie, the content output by the application changes), the mobile phone 10 uses the lock screen interface with the changed content as the target lock screen interface and displays it on the screen of the mobile phone 10 .
  • the change of the content displayed on the lock screen interface refers to the update of information on the interface presented to the user on the lock screen interface.
  • the operation button 102C000 of the content display area 102C00 on the music lock screen interface 102C0 displays the change of the switching song or the song title.
  • the movement distance change of the movement lock screen 102A0 (reaching the switching node such as 5 kilometers, 10 kilometers, etc.), the change of the ascending altitude (reaching the switching node such as 1 meter, 2 meters, etc.) and the change of the movement duration (reaching the switching node such as 1 meter, 2 meters, etc.) switch nodes for hours, 2 hours, etc.).
  • the system lock screen application receives the notification and displays it on the system lock screen interface, which is also attributed to the change in the content of the lock screen interface, such as the notification message displayed on the Huawei magazine page.
  • Rule 2 When the user operates the mobile phone 10 and the state data of the mobile phone satisfies the switching requirements of the state data corresponding to each operation mode based on each operation mode of the user, the mobile phone 10 is based on the preset order in the order from the highest order to the highest order.
  • the target lock screen interface is determined in sequence with a lower level and displayed on the screen of the mobile phone 10 by switching.
  • the operation mode for the user to operate the mobile phone 10 may include: the user operates the on-off key of the mobile phone to switch the mobile phone 10 between the screen-off state and the screen-on state, or the user shakes the mobile phone 10 to cause the mobile phone 10 to generate motion data (which may include shaking speed). )Wait.
  • the state data of the mobile phone 10 may include: the time difference between the screen-off state and the screen-on state of the mobile phone 10 caused by the user operating the on-off key of the mobile phone and the shaking speed of the mobile phone 10 .
  • the time difference meets the switching requirement (switching requirement 1) or the shaking speed meets the switching requirement (switching requirement 2)
  • the mobile phone 10 is allowed to switch the lock screen interface based on the preset sequence.
  • the first switching requirement may be that the time difference does not exceed the first threshold (for example, 1 second)
  • the second switching requirement may be that the shaking speed exceeds the second threshold.
  • the specific values of the first threshold and the second threshold may be determined according to the actual situation, which is not limited in this embodiment of the present application.
  • Rule 3 The application corresponding to each lock screen interface requests the mobile phone 10 to use its lock screen interface as the target lock screen interface and display it on the screen of the mobile phone 10 . Specifically, when each application recognizes that the content on the corresponding lock screen interface changes, the application corresponding to each lock screen interface requests the mobile phone to use it as the target lock screen interface and display it on the screen of the mobile phone 10 . In order to prevent the same application from frequently requesting the mobile phone 10 to use its lock screen interface as the target lock screen interface, according to some embodiments of the present application, the mobile phone 10 allows the same application to request the mobile phone 10 to use its interface as the target lock screen interface within a predetermined period of time. The frequency is less than the threshold.
  • the same application requests the mobile phone 10 at most three times within one minute of the predetermined time.
  • the predetermined time and the threshold may also be other values, which are not limited in this embodiment of the present application.
  • the first rule can be triggered when the mobile phone 10 is in a screen-off state.
  • the operation manner for the user to operate the mobile phone 10 also includes the user touching the display screen of the mobile phone 10 .
  • a lock screen interface is switched based on a preset sequence. Touches include, but are not limited to, click, swipe up, swipe down, swipe left, and swipe right.
  • the mobile phone 10 may select a lock screen interface with a higher order level (ie, a top order) according to a preset order as a target lock screen interface to display on the screen of the mobile phone 10 .
  • a lock screen interface with a higher order level ie, a top order
  • the mobile phone can cyclically switch and display various lock screen interfaces based on a preset sequence.
  • the sports lock screen interface 102A0, the music lock screen interface 102C0, and the system lock screen interface 102K are arranged in the order from high to low.
  • the motion lock screen interface 102A0 is first displayed on the screen of the mobile phone as the lock screen interface with the highest order level.
  • the music lock screen interface 102C0 is switched to be displayed on the screen of the mobile phone.
  • the system lock screen interface 102K is switched to be displayed on the screen of the mobile phone.
  • the motion lock screen interface 102A0 is switched to be displayed on the screen of the mobile phone again.
  • lock screen interface 2 and The lock screen interface can be the lock screen interface of the same application.
  • the lock screen interface of the new application and the original lock screen interface are also in the preset order and preset based on the methods described in the above embodiments. Sorting and switching display are performed in the same manner as the conditions are set, and details are not described herein again in this embodiment of the present application.
  • the lock screen process of the application When a current application in the mobile phone 10 exits the background running, the lock screen process of the application also disappears correspondingly, and the lock screen interface sorting and lock screen interface switching and display processes are no longer added.
  • the lock screen interface of other applications that trigger the above rules cannot be displayed on the mobile phone screen.
  • the time when the lock screen interface 2, which is the target lock screen interface, is displayed on the screen of the mobile phone 10 reaches a predetermined time, for example, 30 minutes later, the mobile phone 10 is based on The preset order restores the original display order of the lock screen interface of each application.
  • the mobile phone 10 resumes displaying the motion lock screen interface on the screen of the mobile phone 10 based on a preset sequence. If there are multiple applications that trigger the above rules, after the lock screen interface 2, which is the target lock screen interface, is displayed on the screen of the mobile phone 10 for a predetermined time, the mobile phone 10 switches to the current target lock based on the order level in the preset order. The lock screen interface of the next sequential level of the screen interface is displayed on the screen of the mobile phone 10 as a new target lock screen interface.
  • the mobile phone 10 displays the system lock screen interface on the screen of the mobile phone 10 based on a preset sequence.
  • the predetermined time may be set to any value, which is not limited in this embodiment of the present application.
  • the mobile phone 10 switches to the lock screen interface with a higher order level after switching and displaying the lock screen interfaces of the applications that trigger the above rules in sequence. For example, the music lock screen interface as the target lock screen interface is switched to the motion lock screen interface as the first lock screen interface to be displayed on the screen of the mobile phone 10 .
  • the mobile phone 10 switches and displays the system lock screen interface that triggers the preset condition on the screen of the mobile phone 10 .
  • the motion lock screen interface is cyclically switched to be displayed on the screen of the mobile phone 10 .
  • a plurality of lock screen interfaces are displayed on the screen of the mobile phone by using the lock screen interface with a higher order level in the predetermined order as the lock screen interface.
  • the mobile phone can determine the second lock screen interface from multiple lock screen interfaces and display it on the screen. The user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one. The operation is simple and the user experience is improved.
  • the following describes the method for displaying the lock screen interface provided by the embodiments of the present application by taking the example of displaying the lock screen interface on the mobile phone 10 as shown in FIG. 1(b), FIG. 1(c) and FIG. 1(d).
  • the memory in the mobile phone 10 stores three lock screen interfaces of the sports application, the music application and the system application.
  • the display policy service sequentially displays the motion lock screen interface 102A0 , the music lock screen interface 102C0 and the system lock screen interface 102K in sequence from high to low (priority from high to low) in a predetermined order.
  • the lock screen interface with the highest order level in the predetermined order is the motion lock screen interface, which is displayed on the screen of the mobile phone 10 as a lock screen interface.
  • the motion lock screen interface 102A0 is presented to the user. .
  • any one of the following information is displayed in the motion lock screen interface 102A0: the status bar 101 (including at least the signal strength indicator 101A, the battery status indicator 101B, the time indicator 101C), the sports application in The content display area 102A00 on the sports lock screen interface 102A0 (including at least the number of kilometers in motion (eg, 3.01 kilometers), the number of altitude rises (eg, 1 meter), and the time spent (eg, 00 hours, 30 minutes, 20 seconds)) and the unlock interface display area 102A01.
  • the user when the user operates the power supply of the mobile phone 10 to switch the mobile phone 10 from the screen-off state to the screen-on state, the user can directly view the content displayed on the motion lock screen interface 102A0 in FIG. 3( a ).
  • the user can use a finger to slide up the screen on the touch panel configured on the display screen of the mobile phone 10 to unlock the music lock screen.
  • the preset order it can be set at least according to the priority of the application corresponding to each lock screen interface.
  • a lock screen interface with a higher priority has a correspondingly higher order level and is preferentially displayed on the screen of the mobile phone 10 .
  • the setting method of the priority of each application includes at least one of the following methods: user-defined setting, setting based on the frequency of user access to each application, and setting based on the access order of the user accessing each application (the order in which the user opens the application) .
  • the priority of each application may also be set in other manners, which are not limited in this embodiment of the present application.
  • the user-defined setting priority the user operates (eg, clicks) the setting 102I on the display screen provided by the mobile phone 10 .
  • the mobile phone 10 presents an application setting interface for the user based on the user's operation instruction.
  • the application setting interface 102I0 includes at least two of sports applications, music applications and system applications, and each application is configured to be able to present a corresponding lock screen on the mobile phone 10.
  • the mobile phone 10 sets the priority of each application based on the click sequence of the sports application, music application and system application successively by the user, and determines the order level of the lock screen interface display of each application based on the priority of each application.
  • the order levels of the sports applications of the lock screen interface in the first setting order are, from high to low, the sports lock screen interface 102A0, the music lock screen interface 102C0, and the system lock screen interface 102K. That is, the priority of the motion lock screen interface 102A0 is higher than that of the music lock screen interface 102C0, and the priority of the music lock screen interface 102C0 is higher than that of the system lock screen interface 102K.
  • Priority is set for the frequency of user access to each application: that is, before the mobile phone 10 enters the lock screen state, the mobile phone 10 sets the priority based on the number of times the user accesses the application corresponding to each lock screen interface.
  • the order level of the applications with access times from high to low they are a motion lock screen interface 102A0, a music lock screen interface 102C0, and a system lock screen interface 102K.
  • the sequence level of each lock screen interface from high to low is that the priority of the motion lock screen interface 102A0 is higher than that of the music lock screen interface 102C0, and the priority of the music lock screen interface 102C0 is higher than that of the system lock screen interface 102K.
  • the mobile phone 10 sets the priority of each application based on the user's opening order of the applications corresponding to each lock screen interface, and the application with the first opening order The higher the priority, the higher the order level of the lock screen interface of the corresponding application with higher priority.
  • the display policy service readjusts the display order of the motion lock screen interface 102A0 , the music lock screen interface 102C0 , and the system lock screen interface 102K on the display screen 194 of the mobile phone 10 based on the preset condition and changes the display order from the motion lock screen interface 102C0 In 102A0 , the music lock screen interface 102C0 , and the system lock screen interface 102K, the target lock screen interface is determined and displayed on the display screen 194 of the mobile phone 10 .
  • the display policy service determines the music lock screen interface 102C0 as the target lock screen interface based on the preset condition. And switch the music lock screen interface 102C0 to be displayed on the display screen 194 of the mobile phone 10 .
  • the motion lock screen interface 102A0 and the system lock screen interface 102K are placed in a preset order, and the system lock screen interface 102K is placed in the lower layer of the motion lock screen interface 102A0.
  • the music lock screen interface 102C0 displays at least one of the following information: the status bar 101 (including at least the signal strength indicator 101A, the battery status indicator 101B, the time indicator 101C), the music application in The content display area 102C00 on the music lock screen interface 102C0 (at least displays the information 102C001 of the currently playing song (such as lyrics, song title and singer, etc.), operation buttons 102C000, time and date, etc.) and the unlock interface display area 102C01.
  • the display policy service switching music lock screen interface 102C0 is displayed on the display screen 194 of the mobile phone 10
  • the mobile phone 10 is converted from the screen-off state to the screen-on state, and the user can directly view the music lock in FIG. 3(b).
  • the content displayed on the screen interface 102C0 The user can use a finger to slide the screen to the right on the touch panel configured on the display screen of the mobile phone 10 to unlock the music lock screen.
  • the music application corresponding to the music lock screen interface 102C0 requests the mobile phone 10 to use the music lock screen interface 102C0 as the target lock screen interface and display it on the screen of the mobile phone 10 .
  • it can be triggered only when the mobile phone 10 is in a screen-off state.
  • the rules for changing the content displayed on the lock screen interface first, the lock screen interface 102A0 is moved as a lock screen interface with a higher order level and is first displayed on the screen of the mobile phone.
  • the content display area 102C00 of the music application on the music lock screen interface 102C0 on the music lock screen interface 102C0 at least the information 102C001 (such as song name and singer, etc.) of the currently playing song is displayed
  • the content changes or the operation button 102C000 displays
  • the mobile phone 10 takes the music lock screen interface 102C0 as the target lock screen interface and displays it on the screen of the mobile phone 10 .
  • the mobile phone 10 can select the music lock screen interface 102C0 with a higher order level of the lock screen interface (the corresponding application has a higher priority) in a preset order as the target lock screen interface (lock screen interface 2) to display on the screen of the mobile phone 10 .
  • the user For the rules based on different operation modes of the user, the user operates the mobile phone 10, and the state data of the mobile phone 10 meets the corresponding switching requirements based on each operation mode of the user.
  • the display policy service of the mobile phone 10 sequentially determines the music lock screen interface 102C0 and the system lock screen interface 102K as the target lock screen interface according to the sequence level of the motion lock screen interface 102A0, the music lock screen interface 102C0, and the system lock screen interface 102K based on the preset order, and switch.
  • the user operates an on/off key of the mobile phone 10, so that the mobile phone 10 is switched between the screen-off state and the screen-on state, and the screen-off state and the screen-on state of the mobile phone 10 are identified by the window management service.
  • the window management service For example, when the user presses the power button of the mobile phone 10 twice continuously, and the time difference between the screen-off state and the screen-on state of the mobile phone 10 does not exceed 1 second, the display policy service of the mobile phone 10 switches the music lock screen interface 102C0 to the mobile phone 10's display policy service. displayed on the screen.
  • the display policy service of the mobile phone 10 switches the system lock screen interface 102K to the mobile phone 10's display policy service. displayed on the screen.
  • the display policy service of the mobile phone 10 cyclically switches the motion lock screen interface 102A0 to displayed on the screen of the mobile phone 10 .
  • the movement data such as the shaking speed or shaking acceleration of the mobile phone 10 measured by the gyroscope sensor 180B, the acceleration sensor 180E and the gravity sensor of the mobile phone 10 changes
  • the mobile phone 10 is based on the movement data. Toggle the lock screen interface. If the user shakes the mobile phone 10 up and down as a shaking cycle, when the shaking speed of the mobile phone 10 exceeds the threshold 2 (switching threshold) or the shaking acceleration of the mobile phone 10 exceeds the threshold 3, the display policy service of the mobile phone 10 switches the music lock screen interface 102C0 to the mobile phone 10 displayed on the screen.
  • the display policy service of the mobile phone 10 switches the system lock screen interface 102K to the screen of the mobile phone 10 displayed above. cycle in turn.
  • Threshold 2 and Threshold 3 can be customized according to experience values, and this application does not limit the specific values of Threshold 2 and Threshold 3.
  • the sports application corresponding to the lock screen interface 1 triggers at least any one of the above rules.
  • the motion lock screen interface 102A0 may continue to be displayed on the screen of the mobile phone 10 as the second lock screen interface.
  • the first trigger rule of sports application can be the change of the sports application broadcast movement distance (it can be triggered when the movement distance reaches the trigger node (such as 1km, 5km, 15km, etc.)), the change of the ascent altitude (it can be triggered when the ascent altitude reaches the trigger point) Nodes (such as ascending or descending 1 meter, etc.) and changes in exercise duration (it can be that the exercise duration reaches a trigger node (such as 30 minutes, 60 minutes, etc.), etc.
  • the trigger node such as 1km, 5km, 15km, etc.
  • Nodes such as ascending or descending 1 meter, etc.
  • changes in exercise duration it can be that the exercise duration reaches a trigger node (such as 30 minutes, 60 minutes, etc.), etc.
  • the motion lock screen interface 102A0 of the sports application is displayed on the display screen of the mobile phone for a long time, other music lock screen interface 102C0 and system lock screen interface 102K that trigger the above rules cannot be displayed on the mobile phone screen.
  • the mobile phone 10 switches the music lock screen 102C0 to display on the screen of the mobile phone 10 based on the sequence level in the preset sequence.
  • the motion lock screen 102A0 is at the next sequential level of the music lock screen 102C0, and the system lock screen 102K is at the last sequential level.
  • the mobile phone 10 sequentially switches the motion lock screen interface 102A0 , the music lock screen interface 102C0 and the system lock screen interface 102K that trigger the above rules in sequence according to a preset sequence. Only after switching the system lock screen interface 102K to the lock screen interface 2 is completed, it is cycled to switch to the motion lock screen interface 102A0.
  • a plurality of lock screen interfaces are displayed on the screen of the mobile phone by using the lock screen interface with a higher order level in the predetermined order as the lock screen interface.
  • the mobile phone can determine the second lock screen interface from the plurality of lock screen interfaces and display it on the screen. The user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one. The operation is simple and the user experience is improved.
  • the method for displaying the lock screen interface includes:
  • Step S401 The WMS identifies whether the lock screen application identifier is carried in the window attributes of each application running in the mobile phone 10 .
  • the application program carrying the lock screen application identifier it is determined that the application program has a lock screen interface.
  • the application program that does not carry the lock screen application identification it is determined that the application program does not have a lock screen interface.
  • the lock screen application identifier can be set to the following format: Window Manager.Layout Params.FLAG_SHOW_WHEN_LOCKED, and the window attribute carrying the Window Manager.Layout Params.FLAG_SHOW_WHEN_LOCKED field can be identified as an application with a lock screen interface.
  • the lock screen application identifier may also be of other types, which is not limited in this embodiment of the present application.
  • the window attributes of the music application, sports application and system lock screen application among the running applications in the WMS identification mobile phone 10 carry the Window Manager. Layout Params. FLAG_SHOW_WHEN_LOCKED field. Then the WMS determines that the music application, the sports application and the system lock screen have a lock screen interface.
  • Step S402 The mobile phone 10 creates a stack (window stack) in the WMS.
  • the stack is used to store the lock screen window corresponding to each lock screen interface.
  • the creation of the stack is specifically based on the linked list to realize the creation of the stack.
  • Step S403 The mobile phone 10 pushes the screen lock window of the application with the screen lock interface identified in step S401 into the stack in a preset order.
  • the lock screen windows are pushed into the stack sequentially according to the priority of the application from low to high. That is, the lock screen window of an application with a low order level (low priority) is pushed first and at the bottom of the stack, and the lock screen window of an application with a high order level (high priority) is pushed last and is at the top of the stack.
  • the lock screen window that is pushed into the stack first will be popped out of the stack later.
  • the lock screen window located at the top of the stack is popped first, and the corresponding lock screen interface is first displayed on the screen of the mobile phone 10 .
  • the lock screen window located at the bottom of the stack is finally popped out of the stack, and the corresponding lock screen interface is finally displayed on the screen of the mobile phone 10 . That is, the order in which each lock screen window is popped out of the stack is the preset order of each application program.
  • the preset order it can be set at least according to the priority of the application corresponding to each lock screen interface.
  • a lock screen interface with a higher priority has a correspondingly higher order level and is preferentially displayed on the screen of the mobile phone 10 .
  • the setting method of the priority of each application includes at least one of the following methods: user-defined setting, setting based on the frequency of user access to each application, and setting based on the access order of the user accessing each application (the order in which the user opens the application) .
  • the priority of each application may also be set in other manners, which are not limited in this embodiment of the present application.
  • the user operates (eg, clicks) the setting 102I on the display screen provided by the mobile phone 10, and the touch sensor of the mobile phone detects the touch instruction.
  • the mobile phone 10 presents the application setting interface setting 102I0 for the user based on the user's touch instruction, and the application setting interface 102I0 includes at least two different applications (in FIG. Each application is configured to present a corresponding lock screen interface on the mobile phone 10 .
  • the mobile phone 10 identifies the application identifier and the touch time of the user clicked (set) the application based on the touch instruction transmitted by the touch sensor; the priority of each application is correspondingly set based on the sequence of the touch time.
  • the priority of the application corresponding to the application identifier with the first touch time is higher, and the order level of the lock screen interface of the application with the higher priority is higher. If the mobile phone recognizes the sports app ID, music app ID and system lock screen ID in chronological order based on the touch command transmitted by the touch sensor, the priority of the sports app corresponding to the sports app ID is higher than that of the music app corresponding to the music app ID. The priority of the music application corresponding to the application ID is higher than the system lock screen corresponding to the system lock screen application ID.
  • the priority is set for the user's access frequency to each application: that is, before the mobile phone 10 enters the lock screen state, the mobile phone 10 counts the occurrence frequency of the application identifier of each application based on the touch instructions transmitted by the touch sensor (that is, the number of clicks corresponding to the user's click on each application). (that is, the number of visits)) to set the priority of each application.
  • the lock screen interface that occurs frequently has a high priority.
  • the motion lock screen interface 102A0 shown in FIG. 3(a) and FIG. 3(b) has a higher priority than the music lock screen interface 102C0
  • the music lock screen interface 102C0 has a higher priority than the system lock screen interface 102K.
  • the mobile phone 10 first pushes the lock screen window of the system lock screen interface 102K into the stack and is located at the bottom of the stack, and then pushes the lock screen window of the music lock screen interface 102C0 into the stack and is located in the system lock The screen interface 102K, and finally the lock screen window of the motion lock screen interface 102A0 is pushed into the stack at the top of the stack.
  • the motion lock screen interface 102A0 at the top of the stack is first displayed on the screen of the mobile phone 10 .
  • Step S404 the mobile phone 10 displays the lock screen interface corresponding to the lock screen window located at the top of the stack as the lock screen interface on the screen of the mobile phone 10 .
  • the motion lock screen interface 102A0 shown in FIG. 3(a) and FIG. 3(b) is located at the top of the stack, then the motion lock screen interface 102A0 is first displayed on the mobile phone 10 as a lock screen interface with a high sequence level. on the screen.
  • Step S405 The mobile phone 10 determines the application program that triggers the preset condition, and based on the preset order, unstacks and re-inserts the lock screen window corresponding to the application program that triggers the preset condition to adjust the order of each lock screen window in the window stack .
  • Step S406 according to the adjusted pop-out sequence of the lock-screen windows in the window stack, the screen-lock interface corresponding to the lock-screen window popped out of the stack first is displayed on the screen of the mobile phone 10 as the second lock-screen interface.
  • the mobile phone 10 unstacks the lock screen window of the motion lock screen interface 102A0 and the lock screen window of the music lock screen interface 102C0 in the window stack, so that the lock screen window of the motion lock screen interface 102A0 and the lock screen window of the music lock screen interface 102C0 pop the stack.
  • the position of the system lock screen interface 102K in the window stack remains unchanged and is still at the bottom of the stack.
  • the mobile phone 10 pushes the lock screen window of the unstacked motion lock screen interface 102A0 into the window stack and is located on the system lock screen interface 102K. Then, the lock screen window of the music lock screen interface 102C0 that is unstacked is pushed into the window stack and located at the top of the stack. The music lock screen interface 102C0 is displayed on the screen of the mobile phone 10 as the second lock screen interface.
  • the display policy service determines the system lock screen interface 102K as the target lock screen interface (the second lock screen interface) based on the preset condition, and executes the lock screen window, music Both the lock screen window of the application and the lock screen window of the system lock screen application are unstacked, and then based on the preset order, the lock screen window of the music application is first pushed into the stack and is at the bottom of the stack, and then the lock screen window of the sports application is pushed into the stack. And it is located above the lock screen window of the music application, and finally the lock screen window of the system lock screen application is pushed into the stack and located at the top of the stack.
  • the music application corresponding to the music lock screen interface 102C0 requests the mobile phone 10 to use the music lock screen interface 102C0 as the target lock screen interface, and the mobile phone unstacks the motion lock screen interface 102A0 and the music lock screen interface 102C0. Then, the motion lock screen interface 102A0 is pushed back into the stack, the music lock screen interface 102C0 is pushed into the top of the stack of the window stack, and the music lock screen interface 102C0 is switched to be displayed on the screen of the mobile phone 10 . It is worth noting that it can only be triggered when the mobile phone 10 is off.
  • the rules for changing the content displayed on the lock screen interface first, the mobile phone determines the motion lock screen interface 102A0 of the sports application corresponding to the motion application identifier based on the preset sequence to be displayed first on the screen of the mobile phone as a lock screen interface with a higher order level.
  • On the music lock screen interface 102C0 there is at least the content display area 102C00 of the music application on the music lock screen interface 102C0 (at least the information 102C001 (such as the song title and singer, etc.) of the currently playing song is displayed)
  • the content changes or the operation button 102C000 display switching During the song.
  • the mobile phone unstacks the motion lock screen interface 102A0 and the music lock screen interface 102C0 from the window stack.
  • the lock screen interface 102C0 is displayed on the screen of the mobile phone 10 .
  • the window management service of the mobile phone monitors changes in the displayed content on the lock screen interface of the music application and the system application (such as a notification message of adding another application, etc.).
  • the mobile phone 10 may select the music lock screen interface 102C0 with a higher order level as the target lock screen interface (lock screen interface 2) to display on the screen of the mobile phone 10 according to the preset order.
  • the mobile phone first determines the motion lock screen interface 102A0 of the motion application corresponding to the motion application identifier based on the preset sequence to be displayed first on the screen of the mobile phone as a lock screen interface with a higher order level.
  • the mobile phone 10 When the user operates the mobile phone 10 (eg, shakes the mobile phone or continuously presses an on/off key), the mobile phone 10 receives signals transmitted from the acceleration sensor and/or gravity sensor/and/or gyro sensor or key module. The mobile phone 10 determines whether the motion data corresponding to each signal meets the switching requirements. If the motion data is a change in shaking speed or shaking acceleration, the user shakes the mobile phone 10 up and down as a shaking cycle, and switches the lock screen interface when the motion data meets the switching requirements. For example, when the user shakes the mobile phone as a shaking cycle, the mobile phone 10 receives the signals transmitted by the gyro sensor 180B, the acceleration sensor 180E and the gravity sensor.
  • the display policy service of the mobile phone 10 is based on the preset order according to the motion lock screen 102A0, music lock screen 102C0, system
  • the sequence level of the lock screen interface 102K determines the music lock screen interface 102C0 and the system lock screen interface 102K as the target lock screen interface in turn and switches.
  • the mobile phone 10 first unstacks the motion lock screen interface 102A0, the music lock screen interface 102C0, and the system lock screen interface 102K, and then pushes the motion lock screen interface 102A0 into the window stack first. At the bottom of the stack, push the system lock screen interface 102K into the window stack above the motion lock screen interface 102A0, and finally push the music lock screen interface 102C0 into the top of the window stack and display the music lock screen interface 102C0 on the screen of the mobile phone 10 superior.
  • the user operates the on/off key of the mobile phone 10, so that the mobile phone 10 is switched between the screen-off state and the screen-on state, and the screen-off and screen-on states of the mobile phone 10 are identified by the window management service.
  • the window management service monitors the screen-off state and the screen-on state.
  • the screen broadcast android.intent.action.SCREEN_OFF realizes the judgment on the screen off of the mobile phone 10; the window management service monitors the bright screen broadcast android.intent.action.SCREEN_ON to realize the judgment on the bright screen of the mobile phone 10.
  • the mobile phone determines the time difference between the monitored screen-off broadcast android.intent.action.SCREEN_OFF and the screen-on broadcast android.intent.action.SCREEN_ON.
  • the display policy service of the mobile phone 10 performs the operations of unstacking and re-stacking the music lock screen interface 102C0 and the motion lock screen interface 102A0 to push the music lock screen interface 102C0 into the top of the window stack.
  • the mobile phone determines the time difference between the monitored screen-off broadcast android.intent.action.SCREEN_OFF and the screen-on broadcast android.intent.action.SCREEN_ON.
  • the display policy service of the mobile phone 10 switches the system lock screen interface 102K to display on the screen of the mobile phone 10 .
  • the mobile phone determines the time difference between the monitored screen-off broadcast android.intent.action.SCREEN_OFF and the screen-on broadcast android.intent.action.SCREEN_ON.
  • the display policy service of the mobile phone 10 cyclically switches the motion lock screen interface 102A0 to be displayed on the screen of the mobile phone 10 again.
  • the lock screen windows in the window stack are re-sorted according to the preset order.
  • the motion lock screen interface 102A0 shown in FIG. 3( a ) and FIG. 3 ( b ) reaches a predetermined time on the mobile phone 10 .
  • the mobile phone 10 unstacks the lock screen window of the motion lock screen interface 102A0 and the lock screen window of the music lock screen interface 102C0 in the window stack, and the lock screen window of the system lock screen interface 102K is still at the bottom of the window stack.
  • the mobile phone 10 pushes the lock screen window of the motion lock screen interface 102A0 into the window stack, and finally pushes the lock screen window of the music lock screen interface 102C0 to the top of the window stack.
  • the music lock screen interface 102C0 is displayed on the screen of the mobile phone 10 . This avoids the problem that the motion lock screen interface 102A0 as the first lock screen interface is displayed on the screen of the mobile phone 10 for a long time and occupies the screen resources of the mobile phone.
  • the mobile phone can determine the second lock screen interface from the plurality of lock screen interfaces and display it on the screen first. The user can view the information on the lock screen interface and operate the lock screen interface without unlocking each lock screen interface one by one. The operation is simple and the user experience is improved.
  • FIG. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • controller hub 804 communicates with the processor 801 via a multidrop bus such as a front side bus (FSB), a point-to-point interface such as a Quick Path Interconnect (QPI), or a similar connection.
  • Processor 801 executes instructions that control general types of data processing operations.
  • controller hub 804 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown) and an input/output hub (IOH) (which may be on separate chips) (not shown), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.
  • GMCH graphics memory controller hub
  • IOH input/output hub
  • Electronic device 800 may also include a coprocessor 806 and memory 802 coupled to controller hub 804 .
  • the memory 802 and the GMCH may be integrated within the processor 801 (as described in this application), with the memory 802 and coprocessor 806 coupled directly to the processor 801 and to the controller hub 804, which controls The device hub 804 is in a single chip with the IOH.
  • memory 802 may be, for example, dynamic random access memory (DRAM), phase change memory (PCM), or a combination of the two.
  • Memory 802 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the computer-readable storage medium stores instructions, in particular temporary and permanent copies of the instructions.
  • coprocessor 806 is a special-purpose processor, such as, for example, a high-throughput MIC processor, a network or communications processor, a compression engine, a graphics processor, a GPU, an embedded processor, or the like.
  • a high-throughput MIC processor such as, for example, a high-throughput MIC processor, a network or communications processor, a compression engine, a graphics processor, a GPU, an embedded processor, or the like.
  • the optional properties of the coprocessor 806 are represented in FIG. 5 by dashed lines.
  • the electronic device 800 may further include a network interface (NIC) 803 .
  • Network interface 803 may include a transceiver for providing a radio interface for device 800 to communicate with any other suitable device (eg, front-end modules, antennas, etc.).
  • network interface 803 may be integrated with other components of electronic device 800 .
  • the network interface 803 can realize the function of the communication unit in the above-mentioned embodiment.
  • the electronic device 800 may further include an input/output (I/O) device 805 .
  • I/O device 805 may include: a user interface designed to enable a user to interact with electronic device 800; a peripheral component interface designed to enable peripheral components to also interact with electronic device 800; and/or a sensor designed to interact with electronic device 800. for determining environmental conditions and/or location information related to the electronic device 800 .
  • Figure 5 is exemplary only. That is, although FIG. 5 shows that the electronic device 800 includes multiple devices such as the processor 801, the controller center 804, the memory 802, etc., in practical applications, the device using each method of the present application may only include the electronic device 800 Some of the devices, for example, may include only the processor 801 and the NIC 803 . The properties of the optional device in Figure 5 are shown in dashed lines.
  • the instructions stored in the computer-readable storage medium of the electronic device 800 may include: when executed by at least one unit in the processor, causing the device to implement the lock screen of the electronic device mentioned in the above embodiments
  • the interface displays the instructions for the method.
  • the computer is made to execute the above-mentioned method for displaying the lock screen interface of the electronic device as mentioned in the above embodiments.
  • FIG. 6 is a schematic structural diagram of an SOC disclosed in an embodiment of the present application, and shows a block diagram of an SoC (System on Chip, system on chip) 1000 according to an embodiment of the present application.
  • SoC System on Chip, system on chip
  • similar components have the same reference numerals.
  • the dotted box is an optional feature of more advanced SoCs.
  • the SoC can be used in an electronic device according to an embodiment of the present application, and can implement corresponding functions according to instructions stored in the SoC.
  • SoC 1000 includes: interconnect unit 1002 coupled to processor 1001; system proxy unit 1006; bus controller unit 1005; integrated memory controller unit 1003; a set or one or more coprocessors 1007, which may include integrated graphics logic, image processor, audio processor, and video processor; static random access memory (SRAM) unit 1008; direct memory access (DMA) unit 1004.
  • the coprocessor 1007 includes a special purpose processor, such as, for example, a network or communications processor, a compression engine, a GPGPU, a high throughput MIC processor, an embedded processor, or the like.
  • Static random access memory (SRAM) unit 1008 may include one or more computer-readable media for storing data and/or instructions.
  • the computer-readable storage medium may have instructions stored thereon, in particular, temporary and permanent copies of the instructions.
  • the instructions stored in the computer-readable storage medium may include: when executed by at least one unit in the processor, causing the electronic device to implement the electronic device as mentioned in the above embodiments
  • the device's lock screen displays the instructions for the method.
  • the computer is made to execute the above-mentioned method for displaying the lock screen interface of the electronic device as mentioned in the above embodiments.
  • an embodiment of the present application also discloses a computer-readable storage medium, where a processing program is stored on the computer-readable storage medium, and when the processing program is executed by the processor, the lock screen interface display of the electronic device mentioned in the above embodiment is realized. method.
  • the computer-readable storage medium may be a read-only memory, a random-access memory, a hard disk, an optical disk, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本申请涉及通信领域,公开了一种电子设备的锁屏界面显示方法和电子设备,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一显示在手机的屏幕上。当预定规则触发后,手机能从多张锁屏界面中确定出锁屏界面二并显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。

Description

一种电子设备的锁屏界面显示方法和电子设备
本申请要求于2020年07月22日提交中国专利局、申请号为202010711209.4、申请名称为“一种电子设备的锁屏界面显示方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,尤其涉及一种电子设备的锁屏界面显示方法和电子设备。
背景技术
智能手机、平板、笔记本电脑等电子设备因便携性在日常生活中得到了广泛的应用。用户可以在电子设备上下载各式各样的应用程序(application,APP)满足用户的娱乐、购物、学习等需求。以手机为例,为了保护用户的隐私和避免用户误操作,手机上都设有锁屏。锁屏的方式包括手机的操作系统自带的锁屏和手机内下载的第三方应用提供的锁屏。第三方应用提供的锁屏覆盖在手机的操作系统自带的锁屏之上形成第三方锁屏。例如某音乐APP覆盖在手机的操作系统自带的锁屏之上形成的音乐锁屏、某运动APP覆盖在手机的操作系统自带的锁屏之上形成的运动锁屏等。各第三方应用在各自的锁屏界面上,可以提供内容显示和应用常用的功能操作,实现在不解锁操作系统自带的锁屏的情况下对应用的内容快速查看和对应用快捷的控制。
采用目前的锁屏方式,用户的隐私得到了保护且避免了用户误操作。且第三方应用提供的第三方锁屏在不解锁手机的情况下实现了对应用内容的查看和对应用快捷的控制。但是,当运行多个第三方应用且存在多个第三方锁屏的情况下,显示在最上层的锁屏界面是查看和操作最方便的。当处于最上层的锁屏界面下一层的锁屏界面的内容发生变化时,用户需要先去掉最上层的锁屏界面才能查看处于最上层的锁屏界面的下一层的锁屏界面的内容。操作繁琐,影响用户体验感。
发明内容
本发明的目的在于提供一种电子设备的锁屏界面显示方法和电子设备。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
第一方面,本申请实施例公开了一种电子设备的锁屏界面显示方法,电子设备包括待显示的多张锁屏界面,电子设备的锁屏界面显示方法包括:
按照预设顺序,将多张锁屏界面中顺序级别最高的第一锁屏界面显示在电子设备的屏幕上。对于预设顺序而言,其至少可以根据各锁屏界面对应的应用的优先级进行设定。优先级高的锁屏界面其顺序级别相应较高并优先在电子设备的屏幕上显示。
基于预设条件的触发,从多张锁屏界面中确定第二锁屏界面。
对于预设条件而言,至少包括:各锁屏界面上展示的内容发生变化时(即应用输出的内容发生变化),电子设备将内容发生变化的锁屏界面作为目标锁屏界面并展示在电子设备的屏幕上。
在用户对电子设备进行操作,基于用户的每种操作方式使得电子设备的状态数据满足与每种操作方式对应的状态数据的切换要求时,电子设备基于预设顺序按照顺序级别高至顺序级别低的顺序依次确定目标锁屏界面并切换展示在电子设备的屏幕上。
各锁屏界面对应的应用请求电子设备将其锁屏界面作为目标锁屏界面并展示在电子设备的屏幕上。
在屏幕上显示第二锁屏界面。
上述锁屏界面以预定顺序排列,顺序级别高的锁屏界面作为锁屏界面一最先在电子设备的屏幕上显示。基于预定条件的触发,会确定一锁屏界面作为锁屏界面二并在电子设备的屏幕上显示。如此,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一显示在电子设备的屏幕上。当预定规则触发后,电子设备能从多张锁屏界面中确定出锁屏界面二并显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
根据本申请第一方面公开的一些实施例,锁屏界面上展示的内容发生变化时触发预设条件,选取锁屏界面上展示的内容发生变化的目标锁屏界面为第二锁屏界面。
根据本申请第一方面公开的一些实施例,多张锁屏界面里中至少部分锁屏界面是与电子设备中的应用相关联的锁屏界面;
锁屏界面上展示的内容发生变化与应用输出的内容变化相关联。
根据本申请第一方面公开的一些实施例,当与第一锁屏界面对应的第一应用使得第一锁屏界面展示的内容发生变化的情况下,更新第一锁屏界面的内容,作为第二锁屏界面。
根据本申请第一方面公开的一些实施例,当不同于第一应用的第二应用使得与第二应用对应的锁屏界面展示的内容发生变化的情况下,将第二应用对应的锁屏界面作为第二锁屏界面。
根据本申请第一方面公开的一些实施例,存在多个应用触发以上规则时,为避免处于前两个高顺序级别的锁屏界面循环切换锁屏界面导致其余的应用的锁屏界面无法显示的问题。根据本申请的一些实施例,电子设备在完成多个触发以上规则的应用的锁屏界面依次切换显示后,再循环切换到顺序级别高的锁屏界面。
根据本申请第一方面公开的一些实施例,为了避免同一个应用的目标锁屏界面长时间在电子设备的显示屏幕上显示而导致其他触发以上规则的应用的锁屏界面无法在电子设备屏幕上显示的问题。根据本申请的一些实施例,当仅存在一个应用触发以上规则时,在作为目标锁屏界面的锁屏界面二在电子设备的屏幕上显示的时间达到预定时间,例如30分钟后,电子设备基于预设顺序恢复各个应用的锁屏界面的原始的显示顺序。
根据本申请第一方面公开的一些实施例,存在多个目标锁屏界面时,在基于预设条件确定了多个第二锁屏界面的情况下,从所确定的多个第二锁屏界面中选定预设顺序中顺序级别最高的第二锁屏界面在屏幕上显示。
根据本申请第一方面公开的一些实施例,电子设备接收到用户针对电子设备的预设的操作方式,触发预设条件。
根据本申请第一方面公开的一些实施例,操作方式包括用户按压电子设备的开关键使得电子设备在亮屏状态和熄屏状态之间切换;
确定第二锁屏界面包括:
确定屏幕在相邻的亮屏状态和熄屏状态之间的时间差;
时间差满足预设条件中的切换要求时,基于预设顺序确定排序位于第一锁屏界面后一位的锁屏界面作为第二锁屏界面。
根据本申请第一方面公开的一些实施例,操作方式包括用户晃动电子设备;
确定第二锁屏界面包括:
依据电子设备的运动数据基于预设顺序确定排序位于第一锁屏界面后一位的锁屏界面作为第二锁 屏界面。
根据本申请第一方面公开的一些实施例,运动数据大于第一阈值时,基于预设顺序确定第二锁屏界面并在屏幕上显示。
根据本申请第一方面公开的一些实施例,基于与各锁屏界面对应的应用的优先级设定预设顺序,优先级高的应用对应的锁屏界面的顺序级别高并优先在电子设备的屏幕上显示。
根据本申请第一方面公开的一些实施例,各应用的优先级由用户自定义设置;
自定义设置包括:
为用户呈现应用设置界面,应用设置界面包括至少两个不同应用,每个应用被配置为能在电子设备上呈现对应的锁屏界面;
基于用户设定各锁屏界面的顺序设置优先级,设定顺序在前的锁屏界面的优先级高。
根据本申请第一方面公开的一些实施例,优先级基于用户对各应用的访问频率设置。
根据本申请第一方面公开的一些实施例,基于各应用中携带的锁屏应用标识确定应用带有锁屏界面。
根据本申请第一方面公开的一些实施例,在应用的锁屏界面上的内容发生变化时,锁屏界面上展示的内容发生变化的目标应用请求电子设备切换目标应用的锁屏界面至屏幕上显示确定目标锁屏界面为第二锁屏界面。
根据本申请第一方面公开的一些实施例,在预定时间内,允许目标应用请求电子设备切换目标应用的锁屏界面为第二锁屏界面的请求频率小于阈值。
根据本申请第一方面公开的一些实施例,将与各锁屏界面对应的应用的锁屏窗口均压入预先建立的窗口栈。
根据本申请第一方面公开的一些实施例,各锁屏窗口基于各应用的优先级依次压入窗口栈,将各锁屏窗口按照应用的优先级由低至高的顺序依次压入窗口栈,并以各锁屏窗口出栈的顺序作为各应用的锁屏界面预设顺序。
根据本申请第一方面公开的一些实施例,从多张锁屏界面中确定第二锁屏界面并在屏幕上显示包括:
对窗口栈中的锁屏窗口进行退栈操作直至作为第二锁屏界面的目标锁屏窗口出栈;
将退栈的锁屏窗口基于预设顺序依次压入窗口栈,并将目标锁屏窗口压入窗口栈的栈顶。
根据本申请第一方面公开的一些实施例,第一锁屏界面在屏幕上显示的时间达到预定时间后,将第一锁屏界面和处于第一锁屏界面的顺序级别的下一锁屏界面进行退栈,并将第一锁屏界面入栈,将处于第一锁屏界面的顺序级别的下一锁屏界面压入栈顶,以将处于第一锁屏界面的顺序级别的下一锁屏界面作为第二锁屏界面在电子设备的屏幕上显示。
根据本申请第一方面公开的一些实施例,第二锁屏界面在屏幕上显示的时间达到预定时间后,对退栈的锁屏窗口和第二锁屏界面再次进行退栈操作,并基于预设顺序对退栈的锁屏窗口和第二锁屏界面重新进行入栈。
第二方面,本申请实施例公开了一种电子设备,电子设备包括待显示的多张锁屏界面,电子设备包括至少一个处理器和至少一个存储器;
至少一个存储器中存储有指令;
当指令被至少一个处理器执行时,使得电子设备执行以下操作:
按照预设顺序,将多张锁屏界面中顺序级别最高的第一锁屏界面显示在电子设备的屏幕上;
基于预设条件的触发,从多张锁屏界面中确定第二锁屏界面;
在屏幕上显示第二锁屏界面。
上述锁屏界面以预定顺序排列,顺序级别高的锁屏界面作为锁屏界面一最先在电子设备10的屏幕上显示。基于预定条件的触发,会确定一锁屏界面作为锁屏界面二并在电子设备10的屏幕上显示。如此,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一显示在电子设备的屏幕上。当预定规则触发后,电子设备能从多张锁屏界面中确定出锁屏界面二并显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
根据本申请第二方面公开的一些实施例,当指令被至少一个处理器执行时,使得电子设备还执行以下步骤:
锁屏界面上展示的内容发生变化时触发预设条件,选取锁屏界面上展示的内容发生变化的目标锁屏界面为第二锁屏界面。
根据本申请第二方面公开的一些实施例,当指令被至少一个处理器执行时,使得电子设备还执行以下步骤:
电子设备接收到用户针对电子设备的预设的操作方式,触发预设条件。
根据本申请第二方面公开的一些实施例,当指令被至少一个处理器执行时,使得电子设备还执行以下步骤:
基于与各锁屏界面对应的应用的优先级设定预设顺序,优先级高的锁屏界面的顺序级别高并优先在电子设备的屏幕上显示。
本发明其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本发明说明书中的记载变的显而易见。
附图说明
图1(a)示例性示出了手机上的用于展示手机安装的应用程序的示例性用户界面;
图1(b)示例性示出了手机上的用于展示手机安装的运动应用的示例性运动锁屏界面;
图1(c)示例性示出了手机上的用于展示手机安装的音乐应用的示例性音乐锁屏界面;
图1(d)示例性示出了手机上的用于展示手机中的系统应用的示例性系统锁屏界面;
图1(e)示例性示出了手机上的用于展示设置应用提供的应用设置界面;
图2(a)示例性示出了手机的硬件结构示意图;
图2(b)示例性示出了手机10的软件结构框图;
图3(a)示例性示出了锁屏界面在手机的屏幕上展示的界面示意图1;
图3(b)示例性示出了锁屏界面在手机的屏幕上展示的界面示意图2;
图4(a)示例性示出了本申请实施例提供的一种锁屏界面显示方法的流程示意图;
图4(b)示例性示出了窗口栈的具体实现示意图1;
图4(c)示例性示出了窗口栈的具体实现示意图2;
图5示例性示出了本申请实施例公开的一种电子设备的结构示意图;
图6示例性示出了本申请实施例公开的一种SOC的结构示意图。
具体实施方式
以下结合附图以电子设备为手机为例说明根据本申请的实施例。此外,电子设备还可以为平板、笔记本电脑、膝上计算机等。
图1(a)示例性示出了手机10上的用于展示手机安装的应用程序的示例性用户界面。
用户界面100可包括:状态栏101,应用程序图标102。其中:
状态栏101可包括:无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符101A,电池状态指示符101B、时间指示符101C。在一些实施例中,状态栏101还可以包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符、运营商名称(例如“中国移动”)。
在本申请的一些实施例中,用户界面100还可包括:导航栏104。导航栏104可包括:返回键104A、主屏幕键104B、多任务键104C等系统导航键。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏104中的各导航键也可以实现为物理按键。
应用程序图标102可以为:运动的图标102A、图库的图标102B、音乐的图标102C、应用商店的图标102D、联系人的图标102E,邮箱的图标102F、系统锁屏应用的图标102G、备忘录的图标102H、设置的图标102I、相机的图标102J等。用户界面10还可包括页面指示符103。其他应用程序图标可分布在多个页面,页面指示符103可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。
在本申请的一些实施例中,手机10的显示屏配置有触控面板,可用于接收用户的触控操作,该触控操作是指用户手部、手肘、触控笔等接触显示屏的操作。用户的触控操作可以是点击应用程序图标102从而实现对各个应用程序的操作。
可以理解的是,图1(a)仅仅示例性示出了手机10上的用户界面,用户界面中还可以包含其他的应用程序图标或者其他信息,不应构成对本申请实施例的限定。
设置102I可接收用户操作(例如触摸操作),响应于检测到的该用户操作,手机10可以显示各个应用的锁屏界面的应用设置界面。应用设置界面中包括至少两个不同应用,每个应用被配置为能在手机10的显示屏上呈现对应的锁屏界面。用户可以触摸对应的锁屏界面确定锁屏界面的展示顺序。
根据本申请的实施例,运动应用和音乐应用对应地具有锁屏界面。锁屏界面是指手机处于亮屏未解锁状态时,由运动应用或音乐应用提供的音乐锁屏和运动锁屏并呈现在手机的屏幕上所形成的界面。除了运动应用和音乐应用外,手机100还有系统的壁纸。
应用程序图标102中的部分应用或者手机10自身的系统可以在手机10处于熄屏状态或者亮屏未解锁状态时,为手机10提供锁屏界面。如运动的图标102A对应的运动应用提供的运动锁屏界面、音乐的图标102C对应的音乐应用提供的音乐锁屏界面以及手机10的系统自带的系统锁屏界面102K等。
设置102I可接收用户操作(例如触摸操作),响应于检测到的该用户操作,手机10可以显示各个应用的锁屏界面的应用设置界面。应用设置界面中包括至少两个不同应用,每个应用被配置为能在手机10的显示屏上呈现对应的锁屏界面。用户可以触摸对应的锁屏界面确定锁屏界面的展示顺序。
根据本申请的一些实施例,上述锁屏界面以预定顺序排列,顺序级别高的锁屏界面作为锁屏界面一最先在手机10的屏幕上显示。基于预定条件的触发,会确定一锁屏界面作为锁屏界面二并在手机10的屏幕上显示。如此,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一显示在手机的屏幕上。当预定规则触发后,手机能从多张锁屏界面中确定出锁屏界面二并显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
下面对实现本申请以上实施例示例的锁屏界面显示方法的手机10的结构进行说明:
首先,请参见图2(a),图2(a)示例性示出了手机10的硬件结构示意图。
手机10可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal  serial bus,USB)接头130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M以及重力感应器(图中未示出)等。可以理解的是,本发明实施例示意的结构并不构成对手机10的具体限定。在本申请另一些实施例中,手机10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器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的等待时间,因而提高了系统的效率。对于本申请实施例而言,存储器中可以存储图1(a)中各个应用程序的应用程序包、应用的锁屏界面的数据、应用在运行过程中产生的数据等。此外,存储器中还可以存储以上实施例描述的用户界面、预设顺序和预设条件以供处理器110使用。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区也可存储手机10使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行手机10的各种功能应用以及数据处理。
无线通信模块160可以提供应用在手机10上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC)等无线通信的解决方案。
显示屏194用于显示远程视图逻辑信息中包含与智能电视10运行业务相关的界面。显示屏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)等。在一些实施例中,手机10可以包括1个或N个显示屏170,N为大于1的正整数。
按键190可以包括手机10上的电源键、音量键等。用户可以操作电源键使得手机10在亮屏状态和熄屏状态之间切换。操作音量键增大或减小手机10的播放音量。
陀螺仪传感器180B可以用于确定手机10的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机10围绕三个轴(即,x,y和z轴)的角速度。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机10的表面,与显示屏194所处的位置不同,在用户触摸手机10的显示屏后,由触摸传感器180K检测用户的触摸操作,并传输给处理器,处理器执行处理器中存储的指令,该指令实现针对用户分次的手机显示屏的通知消息的触摸次数,对应的展开与通知消息相关的内容和操作。
加速度传感器180E可检测手机10在各个方向上(一般为三轴)加速度的大小。当手机10静止时可检测出重力的大小及方向。还可以用于识别手机姿态,应用于横竖屏切换,计步器等应用。
重力感应器,重力传感器是将运动或重力转换为电信号的传感器,主要用于倾斜角、惯性力、冲击及震动等参数的测量。用户在晃动手机10时,重力传感器118可以测量手机10的晃动速度。
手机10的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明手机10的软件结构。
图2(b)示例性示出了手机10的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2(b)所示,应用程序包可以包括相机,运动,图库,应用商店,联系人,邮箱,云共享,备忘录,设置,音乐,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2(b)所示,应用程序框架层可以包括显示策略服务、电源管理服务(power manager service,PMS)、显示管理服务(display manager service,DMS)。当然,应用程序框架层中还可以包括活动管理器、窗口管理服务(window manager service,WMS),内容提供器,视图系统,电话管理器,资源管理器,通知管理器等,本申请实施例对此不作任何限制。
其中,显示策略服务可用于从通知管理器处获取用户的触摸指令。进而,显示策略服务可根据触摸指令对应的通知消息在显示屏上展示待展示的内容,即当前在显示屏上显示的内容。如用户点击设置的图标102I时,显示策略服务在显示屏上显示设置应用的界面以呈现给用户。
如用户通过显示屏触摸设置的图标102I时,手机10的软件系统经由触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件(设置控件)。
处理器110识别触摸传感器180K接收到触摸操作(对应的用户点击的应用的图标),显示策略服务在显示屏上显示该应用被打开后的详细界面。当处理器110接识别按键190的电源键被按压而发出的 熄屏指令时,显示策略服务在显示屏194上显示后台运行程序的锁屏界面。当锁屏界面有多张时,显示策略服务基于以上实施例记载的预设顺序和预设条件在显示屏194上显示锁屏界面。
WMS于管理窗口程序。窗口管理服务可以获取显示屏194的大小,判断是否有状态栏,锁定手机10的屏幕,截取屏幕等,识别应用程序的窗口属性中是否携带锁屏应用标识以判断该应用程序是否存在锁屏界面。监控当前运行的所有的锁屏窗口的数量、以及监控各锁屏窗口对应的锁屏界面所展示的内容是否发生变化等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括音乐应用图标的锁屏界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供手机10的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏101中或者在系统锁屏界面102K显示通知信息。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,手机振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGLES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,显示屏驱动,按键驱动,传感器驱动等,本申请实施例对此不作任何限制。
在一些实施例中,手机10处于未解锁状态时,手机10中运行均可以提供锁屏界面的多个应用程序。多个应用程序的多个锁屏界面覆盖在手机10的系统锁屏界面之上形成多层锁屏界面。例如当用户同时打开音乐应用和运动应用在听歌跑步的时候,手机10锁屏后将有三层锁屏界面。依次是:运动锁屏界面102A0、音乐锁屏界面102C0和系统锁屏界面102K。
图1(b)示例性示出了手机10上的用于展示手机10安装的运动应用的示例性运动锁屏界面。
图1(b)中,运动锁屏界面102A0中展示有以下信息中的任意一种:状态栏101(至少包括信号强度指示符101A,电池状态指示符101B、时间指示符101C)、运动应用在运动锁屏界面102A0上的内容显示区102A00(至少包括运动公里数(如3.01公里)、海拔上升数(如1米)、用时(如00小时30分 钟20秒))和解锁界面显示区102A01。用户可以用手指在手机10的显示屏配置的触控面板上上滑屏幕实现对运动锁屏的解锁。
图1(c)示例性示出了手机10上的用于展示手机10安装的音乐应用的示例性音乐锁屏界面。
图1(c)中,音乐锁屏界面102C0至少展示有以下信息中的至少一种:状态栏101、音乐应用在音乐锁屏界面102C0上的内容显示区102C00(至少显示当前播放的歌曲的信息102C001(如歌词、歌名和歌手等)、操作按钮102C000以及时间日期等)和解锁界面显示区102C01。用户可以用手指在手机10的显示屏配置的触控面板上右滑屏幕实现对音乐锁屏的解锁。
图1(d)示例性示出了手机10上的用于展示手机10中的系统应用的示例性系统锁屏界面。
图1(d)中,系统锁屏界面102K可以为华为杂志锁屏。至少展示有以下信息中的一种:状态栏101、解锁界面显示区102K0、系统锁屏界面102K的内容显示区102K1(可以显示不同应用的通知消息(如微信、通话以及信息等))以及指纹解锁显示区102K2。用户可以用手指在手机10的显示屏配置的触控面板上上滑屏幕实现对系统锁屏的解锁,或者用户可以通过手指操作指纹解锁显示区102K2实现对系统锁屏的解锁。
可以理解的是,以上实施例示出的锁屏界面上也可以展示其余的内容。此外,手机10上的锁屏界面还可以包括其他类型的锁屏界面,用户对锁屏界面的解锁也可以有其余的方式,如左滑、右滑、上滑等等。本申请实施例对此均不作限定。各个锁屏界面的解锁方式可以相同,也可以有彼此不相同的解锁方式,例如,如图1c所示,音乐的锁屏界面中,通过向右滑动来解锁屏幕;图1(d)所示,系统的锁屏界面,通过向上滑动来解锁屏幕。
用户在跑步过程中,如果想要查阅音乐锁屏界面上显示的信息,例如当前所播放的歌曲的名称等,用户就得从音乐锁屏界面上查看。但是,用户此时想要查看音乐锁屏界面上显示的消息的内容,需要先通过滑动(例如向左滑动)的手势去掉运动锁屏界面,才能看到音乐锁屏界面上的内容。如果某应用收到通知消息且在系统锁屏界面上显示,用户需要从系统锁屏界面上查看。若用户此时想要查看系统锁屏界面上显示的消息的内容,需要先“上滑”去掉运动锁屏界面(解锁),再“右滑”去掉音乐锁屏界面(解锁),最后才能在系统锁屏界面上看到该消息的内容。以上操作非常繁琐,严重影响用户体验。
可以看出的是,显示在最上层的锁屏界面是查看和操作最方便的。当需要查阅处于最上层的锁屏界面下一层的锁屏界面时,尤其是下一次的锁屏界面的显示内容有关键性事件发生时,用户需要先去掉最上层的锁屏界面才能查看处于最上层的锁屏界面的下一层的锁屏界面的内容。操作繁琐,影响用户体验感。
为了便于用户更快的查看不同锁屏界面上的显示内容以及为用户提供对锁屏界面进行切换的多种实现方案。根据本申请中的一些实施例,在手机10处于锁屏状态时,首先按照预设顺序将多张锁屏界面中顺序级别高的锁屏界面作为锁屏界面一显示在手机10的屏幕上。在预设条件触发时,手机10可以基于预设条件从多个锁屏界面中确定出目标锁屏界面(锁屏界面二)。针对锁屏界面一和锁屏界面二为同一个应用的情况,可以对该应用的锁屏界面一的内容进行更新,使得更新后的锁屏界面的内容和锁屏界面二的内容一致。针对锁屏界面一和锁屏界面二为不同应用的情况,可以直接将锁屏界面一进行切换,将锁屏界面二切换至其余锁屏界面的最上层并在手机10的屏幕上显示。当手机10亮屏时,手机10的显示屏上显示出目标锁屏界面,用户无需其余的操作便可直观的看到目标锁屏界面上展示的内容。
对于预设顺序而言,其至少可以根据各锁屏界面对应的应用的优先级进行设定。优先级高的锁屏界面其顺序级别相应较高并优先在手机10的屏幕上显示。
对于各应用的优先级的设置方式至少包括以下方式中的一种:由用户自定义设置、基于用户对各应 用的访问频率设置和基于用户访问各应用的访问顺序(用户打开应用的顺序)设置。对于各应用的优先级的设置还可以为其他方式,本申请实施例在此并不作限定。
对于用户自定义设置优先级:如图1(e)所示的,用户通过手机10提供的显示屏上操作(如点击)设置102I。手机10基于用户的操作指令为用户呈现应用设置界面102I0,应用设置界面102I0包括至少两个不同的应用(图1(e)中以运动应用、音乐应用和系统锁屏应用为例),每个应用被配置为能在手机10上呈现对应的锁屏界面。手机10基于用户点击(设定)应用的点击顺序设置锁屏界面显示的优先级。设定顺序在前的锁屏界面的顺序级别高,顺序级别高的锁屏界面的优先级也相应较高。如用户先后点击运动应用、音乐应用和系统锁屏,则运动应用的优先级高于音乐应用,音乐应用的优先级高于系统锁屏。此外,还可以拖动各个应用在队列中位置设定优先级,如位于手机的屏幕的最左边的应用的优先级最高,位于手机的屏幕的最右边的应用的优先级最低。
对于用户对各应用的访问频率设置优先级:即在手机10进入锁屏状态前,手机10基于用户对各个锁屏界面对应的应用的访问次数设定优先级。访问次数高的锁屏界面的优先级高。如,用户首先点击音乐应用进入音乐应用提供的界面,在退出音乐应用使得应用在后台运行。再点击运动应用进入运动应用提供的界面。则用户打开音乐应用在前,打开运动应用在后,则音乐应用的优先级高于运动应用的优先级。
用户访问各应用的访问顺序设置优先级:即在手机10进入锁屏状态前,手机10基于用户对各个锁屏界面对应的应用的打开顺序设定优先级,打开顺序在前的锁屏界面的优先级高。
对于预设条件而言,其至少包括以下规则中的一种:
规则一:各锁屏界面上展示的内容发生变化时(即应用输出的内容发生变化),手机10将内容发生变化的锁屏界面作为目标锁屏界面并展示在手机10的屏幕上。锁屏界面上展示的内容发生变化指的是锁屏界面上为用户呈现的界面上的信息更新。如音乐锁屏界面102C0上的内容显示区102C00的操作按钮102C000显示切换歌曲或者歌名等发生变化。运动锁屏界面102A0的运动距离的变化(达到如5公里、10公里等的切换节点)、上升海拔的变化(达到如1米、2米等的切换节点)和运动时长的变化(达到如1小时、2小时等的切换节点)。系统锁屏应用接收到通知从而在系统锁屏界面上显示,也归于锁屏界面的内容发生变化,例如华为杂志页面上显示的通知消息。
规则二:在用户对手机10进行操作,基于用户的每种操作方式使得手机的状态数据满足与每种操作方式对应的状态数据的切换要求时,手机10基于预设顺序按照顺序级别高至顺序级别低的顺序依次确定目标锁屏界面并切换展示在手机10的屏幕上。用户对手机10进行操作的操作方式可以包括:用户操作手机的开关键使得手机10在熄屏状态和亮屏状态之间切换或者用户对手机10进行晃动使得手机10产生运动数据(可以包括晃动速度)等。手机10的状态数据可以包括:用户操作手机的开关键使得手机10在熄屏状态和亮屏状态之间的时间差和手机10的晃动速度。当时间差满足切换要求(切换要求一)或晃动速度满足切换要求(切换要求二)允许手机10基于预设顺序进行锁屏界面切换。切换要求一可以是时间差不超过阈值一(如1秒),切换要求二可以是晃动速度超过阈值二。对于阈值一和阈值二的具体取值可以根据实际情况确定,本申请实施例在此并不作限定。
规则三:各锁屏界面对应的应用请求手机10将其锁屏界面作为目标锁屏界面并展示在手机10的屏幕上。具体的,可以在各应用识别对应的锁屏界面上的内容发生变化时,由各锁屏界面对应的应用请求手机将其作为目标锁屏界面并展示在手机10的屏幕上。为了避免同一应用频繁请求手机10将其锁屏界面作为目标锁屏界面,根据本申请的一些实施例,手机10允许同一应用请求手机10将其所界面作为目标锁屏界面在预定时间内的请求频率小于阈值。如同一应用在预定时间1分钟内最多向手机10请求 3次,当然,预设时间和阈值还可以为其他值,本申请实施例在此并不作限定。此外,该规则一可以在手机10处于熄屏状态时触发。
此外,用户对手机10进行操作的操作方式还包括用户触摸手机10的显示屏。用户每触摸一次显示屏,则基于预设顺序切换一张锁屏界面。触摸包括但不限于点击、上滑、下滑、左滑以及右滑等。
可以理解的是,预设条件中还可以预置其他的规则实现目标锁屏界面的确定及切换,本申请实施例在此并不作限定。
根据本申请的一些实施例,对于规则二。当有多个应用同时请求手机10将各自的锁屏界面作为目标锁屏界面或者有多个应用的锁屏界面上的展示内容发生变化时。手机10可以按照预设顺序选择顺序级别高(即排序靠前)的锁屏界面作为目标锁屏界面显示在手机10的屏幕上。对于规则三,在用户摇晃手机或按压手机的开关键时,手机可以基于预设顺序循环切换并显示各个锁屏界面。例如:运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K按顺序级别由高至低的顺序排列。运动锁屏界面102A0作为顺序级别最高的锁屏界面最先在手机的屏幕上显示。用户摇晃手机触发规则二时,切换音乐锁屏界面102C0至手机的屏幕上显示。用户再次摇晃手机触发规则二时,切换系统锁屏界面102K至手机的屏幕上显示。用户再次摇晃手机触发规则二时,重新切换运动锁屏界面102A0在手机的屏幕上显示。
根据本申请的一些实施例,对于锁屏界面一和锁屏界面二而言,若锁屏界面一对应的应用至少触发以上规则中规则一和规则三中的任意一种,锁屏界面二和锁屏界面一则可以为同一个应用的锁屏界面。
根据本申请的一些实施例,当手机10的后台增加新的应用的锁屏界面时,基于以上实施例描述的方式新的应用的锁屏界面和原先的锁屏界面也按照预设顺序和预设条件同样的方式进行排序和切换显示,本申请实施例在此不再赘述。当手机10中当前某应用退出后台运行时,该应用的锁屏的进程也对应消失,并不再加入锁屏界面排序及锁屏界面切换及显示的过程。
为了避免同一个应用的目标锁屏界面长时间在手机的显示屏幕上显示而导致其他触发以上规则的应用的锁屏界面无法在手机屏幕上显示的问题。根据本申请的一些实施例,当仅存在一个应用触发以上规则时,在作为目标锁屏界面的锁屏界面二在手机10的屏幕上显示的时间达到预定时间,例如30分钟后,手机10基于预设顺序恢复各个应用的锁屏界面的原始的显示顺序。例如作为目标锁屏界面的音乐锁屏界面在手机10的屏幕上显示的时间达到30分钟后,手机10基于预设顺序恢复将运动锁屏界面显示在手机10的屏幕上。若存在多个应用触发以上规则时,在作为目标锁屏界面的锁屏界面二在手机10的屏幕上显示的时间达到预定时间后,手机10基于预设顺序中的顺序级别切换处于当前目标锁屏界面的下一个顺序级别的锁屏界面作为新的目标锁屏界面显示在手机10的屏幕上。例如作为目标锁屏界面的音乐锁屏界面在手机10的屏幕上显示的时间达到30分钟后,手机10基于预设顺序将系统锁屏界面显示在手机10的屏幕上。预定时间可以设定为任意值,本申请实施例在此并不作限定。
此外,存在多个应用触发以上规则时,为避免处于前两个高顺序级别的锁屏界面循环切换锁屏界面导致其余的应用的锁屏界面无法显示的问题。根据本申请的一些实施例,手机10在完成多个触发以上规则的应用的锁屏界面依次切换显示后,再循环切换到顺序级别高的锁屏界面。例如作为目标锁屏界面的音乐锁屏界面切换作为锁屏界面一的运动锁屏界面在手机10的屏幕上显示。音乐锁屏界面在手机10的屏幕上显示的时间达到30分钟后,手机10将触发预设条件的系统锁屏界面切换并显示在手机10的屏幕上。系统锁屏界面在手机10的屏幕上显示的时间达到30分钟后,再循环切换运动锁屏界面在手机10的屏幕上显示。
根据本申请实施例提供的锁屏界面显示方法,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一显示在手机的屏幕上。当预定规则触发后,手机能从多张锁屏界面 中确定出锁屏界面二并显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
下面以图1(b)、图1(c)和图1(d)所示例的在手机10上显示锁屏界面为例对本申请实施例提供的锁屏界面显示方法进行说明。
如图3(a)所示例的,手机10中的存储器中存储运动应用、音乐应用和系统应用的三张锁屏界面。显示策略服务按照预定顺序的顺序级别由高到低(优先级由高到低)分别顺序展示运动锁屏界面102A0、音乐锁屏界面102C0和系统锁屏界面102K。其中,预定顺序中顺序级别最高的锁屏界面为运动锁屏界面,其作为锁屏界面一显示在手机10的屏幕上,当手机10亮屏时,为用户呈现的即是运动锁屏界面102A0。图3(a)中,运动锁屏界面102A0中展示有以下信息中的任意一种:状态栏101(至少包括信号强度指示符101A,电池状态指示符101B、时间指示符101C)、运动应用在运动锁屏界面102A0上的内容显示区102A00(至少包括运动公里数(如3.01公里)、海拔上升数(如1米)、用时(如00小时30分钟20秒))和解锁界面显示区102A01。示例性的,当用户操作手机10的电源使得手机10由熄屏状态转换为亮屏状态时,用户可以直接在图3(a)中查看运动锁屏界面102A0上展示的内容。此外,用户可以用手指在手机10的显示屏配置的触控面板上上滑屏幕实现对音乐锁屏的解锁。
对于预设顺序而言,其至少可以根据各锁屏界面对应的应用的优先级进行设定。优先级高的锁屏界面其顺序级别相应较高并优先在手机10的屏幕上显示。
对于各应用的优先级的设置方式至少包括以下方式中的一种:由用户自定义设置、基于用户对各应用的访问频率设置和基于用户访问各应用的访问顺序(用户打开应用的顺序)设置。对于各应用的优先级的设置还可以为其他方式,本申请实施例在此并不作限定。对于用户自定义设置优先级:用户通过手机10提供的显示屏上操作(如点击)设置102I。手机10基于用户的操作指令为用户呈现应用设置界面,应用设置界面102I0至少包括运动应用、音乐应用和系统应用中的至少两种,每个应用被配置为能在手机10上呈现对应的锁屏界面。手机10基于用户先后点击(设定)运动应用、音乐应用和系统应用的点击顺序设置各个应用的优先级,基于各个应用的优先级对应确定各应用的锁屏界面显示的顺序级别。设定顺序在前的锁屏界面的运动应用的顺序级别由高至低依次为运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K。也即运动锁屏界面102A0的优先级高于音乐锁屏界面102C0,音乐锁屏界面102C0的优先级高于系统锁屏界面102K。
对于用户对各应用的访问频率设置优先级:即在手机10进入锁屏状态前,手机10基于用户对各个锁屏界面对应的应用的访问次数设定优先级。按照访问次数由高至低的应用的顺序级别依次为运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K。对应的,各锁屏界面的顺序级别由高至低的顺序为运动锁屏界面102A0的优先级高于音乐锁屏界面102C0,音乐锁屏界面102C0的优先级高于系统锁屏界面102K。
用户访问各应用的访问顺序设置优先级:即在手机10进入锁屏状态前,手机10基于用户对各个锁屏界面对应的应用的打开顺序设定各个应用的优先级,打开顺序在前的应用的优先级高,对应的,优先级高的应用的锁屏界面的顺序级别高。
当预设条件触发时,显示策略服务基于预设条件重新调整运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K在手机10的显示屏194上的显示顺序并从运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K中确定出目标锁屏界面并展示在手机10的显示屏194上。
如图3(b)所示例的,当音乐锁屏界面102C0触发预设条件时,显示策略服务基于预设条件确定音乐锁屏界面102C0为目标锁屏界面。并切换音乐锁屏界面102C0至手机10的显示屏194上显示。按 照预设顺序将运动锁屏界面102A0和系统锁屏界面102K将系统锁屏界面102K置于运动锁屏界面102A0的下层。图3(b)中,音乐锁屏界面102C0至少展示有以下信息中的至少一种:状态栏101(至少包括信号强度指示符101A,电池状态指示符101B、时间指示符101C)、音乐应用在音乐锁屏界面102C0上的内容显示区102C00(至少显示当前播放的歌曲的信息102C001(如歌词、歌名和歌手等)、操作按钮102C000以及时间日期等)和解锁界面显示区102C01。示例性的,当显示策略服务切换音乐锁屏界面102C0至手机10的显示屏194上显示时使得手机10由熄屏状态转换为亮屏状态,用户可以直接在图3(b)中查看音乐锁屏界面102C0上展示的内容。用户可以用手指在手机10的显示屏配置的触控面板上右滑屏幕实现对音乐锁屏的解锁。
下面以锁屏界面为运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K为例对预设条件进行说明:
对于音乐锁屏界面102C0对应的音乐应用请求手机10将音乐锁屏界面102C0作为目标锁屏界面并展示在手机10的屏幕上。对于该规则,可以只在手机10处于熄屏的状态下触发。
对于锁屏界面展示的内容发生变化的规则:首先运动锁屏界面102A0作为顺序级别高的锁屏界面最先展示在手机的屏幕上。当音乐锁屏界面102C0上至少存在音乐应用在音乐锁屏界面102C0上的内容显示区102C00(至少显示当前播放的歌曲的信息102C001(如歌名和歌手等)的内容发生变化或者操作按钮102C000显示切换歌曲时。手机10将音乐锁屏界面102C0作为目标锁屏界面并展示在手机10的屏幕上。
根据本申请的一些实施例,当音乐应用锁屏界面和系统应用锁屏界面(如新增其他应用的通知消息等)上的展示内容发生变化时。手机10可以按照预设顺序选择锁屏界的顺序级别高(对应的应用的优先级高)的音乐锁屏界面102C0作为目标锁屏界面(锁屏界面二)显示在手机10的屏幕上。
对于基于用户不同的操作方式的规则,用户对手机10进行操作,基于用户的每种操作方式使得手机10的状态数据满足对应的切换要求时。手机10的显示策略服务基于预设顺序按照运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K的顺序级别依次确定音乐锁屏界面102C0、系统锁屏界面102K为目标锁屏界面并切换。
示例性的,用户操作手机10的开关键,使得手机10在熄屏状态和亮屏状态之间切换并由窗口管理服务识别手机10的熄屏和亮屏状态。如当用户连续按压手机10的开关键两次,手机10在熄屏状态和亮屏状态之间的时间差不超过1秒时,手机10的显示策略服务将音乐锁屏界面102C0切换至手机10的屏幕上显示。当用户连续再次按压手机10的开关键两次,手机10在熄屏状态和亮屏状态之间的时间差不超过1秒时,手机10的显示策略服务将系统锁屏界面102K切换至手机10的屏幕上显示。当用户连续再次按压手机10的开关键两次,手机10在熄屏状态和亮屏状态之间的时间差不超过1秒时,手机10的显示策略服务循环的将运动锁屏界面102A0再次切换至手机10的屏幕上显示。
进一步,示例性的,当用户晃动手机10,使得手机10的陀螺仪传感器180B、加速度传感器180E以及重力感应器测得的手机10的晃动速度或晃动加速度等运动数据发生变化,手机10基于运动数据切换锁屏界面。如用户上下晃动手机10作为一个晃动周期,手机10的晃动速度超出阈值二(切换阈值)或者手机10的晃动加速度超出阈值三时,手机10的显示策略服务将音乐锁屏界面102C0切换至手机10的屏幕上显示。当用户再次晃动手机10作为下一个晃动周期,手机10的晃动速度再次超出阈值二或者手机10的晃动加速度超出阈值三时,手机10的显示策略服务将系统锁屏界面102K切换至手机10的屏幕上显示。依次循环。对于基于运动数据切换锁屏界面的方式,可以只在手机10处于亮屏的状态 下进行。阈值二和阈值三可以根据经验值自定义设置,本申请对于阈值二和阈值三的具体取值并不作限定。
根据本申请的一些实施例,对于锁屏界面一和锁屏界面二而言,若锁屏界面一对应的运动应用至少触发以上规则中的任意一种。运动锁屏界面102A0可以作为锁屏界面二继续显示在手机10的屏幕上。如运动应用触发规则一可以是运动应用播报运动距离的变化(可以是运动距离达到触发节点(如1公里、5公里、15公里等)时触发)、上升海拔的变化(可以是上升海拔达到触发节点(如上升或下降1米等)和运动时长的变化(可以是运动时长达到触发节点(如30分钟、60分钟等)等。
为了避免运动应用的运动锁屏界面102A0长时间在手机的显示屏幕上显示而导致其他触发以上规则的音乐锁屏界面102C0、系统锁屏界面102K无法在手机屏幕上显示的问题。运动锁屏界面102A0在手机10的屏幕上显示的时间达到预定时间(如3分钟)后,手机10基于预设顺序中的顺序级别切换音乐锁屏界面102C0显示在手机10的屏幕上。运动锁屏界面102A0处于音乐锁屏界面102C0的下一顺序级别,系统锁屏界面102K处于最后的顺序级别。
为避免运动锁屏界面102A0和音乐锁屏界面102C0循环切换锁屏界面导致触发以上规则的系统锁屏界面102K无法显示的问题。手机10在按照预设顺序,依次循环切换触发以上规则的运动锁屏界面102A0、音乐锁屏界面102C0和系统锁屏界面102K。只有完成切换系统锁屏界面102K为锁屏界面二后,再循环切换至运动锁屏界面102A0。
根据本申请实施例提供的锁屏界面显示方法,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一显示在手机的屏幕上。当预定规则触发后,手机能从多张锁屏界面中确定出锁屏界面二并显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
下面结合图4(a)对图3(a)和图3(b)所示意的锁屏界面显示方法进行进一步的说明。
如图4(a)所示例的,锁屏界面显示方法包括:
步骤S401:WMS识别手机10中运行的各应用程序的窗口属性中是否携带锁屏应用标识。针对携带锁屏应用标识的应用程序,判定该应用程序存在锁屏界面。针对未携带锁屏应用标识的应用程序,判定该应用程序不存在锁屏界面。其中,锁屏应用标识可以被设置为以下格式:Window Manager.Layout Params.FLAG_SHOW_WHEN_LOCKED,窗口属性中携带Window Manager.Layout Params.FLAG_SHOW_WHEN_LOCKED字段的可以被认定为带有锁屏界面的应用程序。当然,锁屏应用标识还可以为其他类型,本申请实施例在此并不作限定。
示例性的,WMS识别手机10中运行应用程序中的音乐应用、运动应用和系统锁屏应用的窗口属性中携带Window Manager.Layout Params.FLAG_SHOW_WHEN_LOCKED字段。则WMS判定音乐应用、运动应用和系统锁屏存在锁屏界面。
步骤S402:手机10在WMS创建栈(窗口栈)。栈中用来存放与各锁屏界面对应的锁屏窗口。栈的创建具体是基于链表实现栈的创建。
步骤S403:手机10将步骤S401中识别的带有锁屏界面的应用程序的锁屏窗口按照预设顺序压入栈中。具体是:按照应用程序的优先级由低至高的顺序依次将锁屏窗口压入至栈中。即顺序级别低(优先级低)的应用程序的锁屏窗口最先入栈且位于栈底,顺序级别高(优先级高)的应用程序的锁屏窗口最后入栈且位于栈顶。先入栈的锁屏窗口则后出栈。位于栈顶的锁屏窗口最先出栈,对应的锁屏界面最先展示在手机10的屏幕上。位于栈底的锁屏窗口最后出栈,对应的锁屏界面最后展示在手机10的屏幕上。即各锁屏窗口的出栈的顺序即为各应用程序的预设顺序。
对于预设顺序而言,其至少可以根据各锁屏界面对应的应用的优先级进行设定。优先级高的锁屏界面其顺序级别相应较高并优先在手机10的屏幕上显示。
对于各应用的优先级的设置方式至少包括以下方式中的一种:由用户自定义设置、基于用户对各应用的访问频率设置和基于用户访问各应用的访问顺序(用户打开应用的顺序)设置。对于各应用的优先级的设置还可以为其他方式,本申请实施例在此并不作限定。
对于用户自定义设置优先级:如图1(e)所示的,用户通过手机10提供的显示屏上操作(如点击)设置102I,手机的触摸传感器检测到触摸指令。手机10基于用户的触摸指令为用户呈现应用设置界面设置102I0,应用设置界面102I0包括至少两个不同的应用(图1(e)中以运动应用、音乐应用和系统锁屏应用为例),每个应用被配置为能在手机10上呈现对应的锁屏界面。手机10基于触摸传感器传输的触摸指令识别用户点击(设定)应用的应用标识和触摸时间;基于触摸时间的先后顺序对应设置各应用的优先级。触摸时间在前的应用标识对应的应用的优先级高,优先级高的应用的锁屏界面的顺序级别高。如手机基于触摸传感器传输的触摸指令按时间顺序依次识别出运动应用标识、音乐应用标识和系统锁屏标识,则运动应用标识对应的运动应用的优先级高于音乐应用标识对应的音乐应用,音乐应用标识对应的音乐应用的优先级高于系统锁屏应用标识对应的系统锁屏。
对于用户对各应用的访问频率设置优先级:即在手机10进入锁屏状态前,手机10基于触摸传感器传输的触摸指令统计各个应用的应用标识的发生频率(即对应用户点击各个应用的点击次数(也即访问次数))设定各个应用的优先级。发生频率高的锁屏界面的优先级高。
示例性的,图3(a)和图3(b)所示的运动锁屏界面102A0的优先级高于音乐锁屏界面102C0,音乐锁屏界面102C0的优先级高于系统锁屏界面102K。如图4(b)所示的,手机10先将系统锁屏界面102K的锁屏窗口压入栈中位于栈底,再将音乐锁屏界面102C0的锁屏窗口压入栈中且位于系统锁屏界面102K,最后将运动锁屏界面102A0的锁屏窗口压入栈中位于栈顶。位于栈顶的运动锁屏界面102A0最先展示在手机10的屏幕上。
步骤S404:手机10将位于栈顶的锁屏窗口对应的锁屏界面作为锁屏界面一显示在手机10的屏幕上。
示例性的,图3(a)和图3(b)所示的位于运动锁屏界面102A0位于栈顶,则运动锁屏界面102A0作为顺序级别高的锁屏界面一最先展示在手机10的屏幕上。
步骤S405:手机10确定触发预设条件的应用程序,并基于预设顺序将触发预设条件的应用程序对应的锁屏窗口进行退栈及重新入栈以调整窗口栈中各个锁屏窗口的顺序。
步骤S406:针对窗口栈中调整后的锁屏窗口的出栈顺序,将先出栈的锁屏窗口对应的锁屏界面作为锁屏界面二显示在手机10的屏幕上。
示例性的,图3(a)和图3(b)所示的音乐锁屏界面102C0或者系统锁屏界面102K和音乐锁屏界面102C0同时触发预设条件时,显示策略服务基于预设条件确定音乐锁屏界面102C0为目标锁屏界面(锁屏界面二)。
手机10对窗口栈中的运动锁屏界面102A0的锁屏窗口和音乐锁屏界面102C0的锁屏窗口进行退栈操作使得运动锁屏界面102A0的锁屏窗口和音乐锁屏界面102C0的锁屏窗口出栈。系统锁屏界面102K位于窗口栈中的位置不变依旧处于栈底。
如图4(c)所示例的,手机10将退栈的运动锁屏界面102A0的锁屏窗口先压入窗口栈中并位于系统锁屏界面102K之上。再将退栈的音乐锁屏界面102C0的锁屏窗口压入窗口栈并位于栈顶。音乐锁屏界面102C0作为锁屏界面二展示在手机10的屏幕上。
可以理解的是,当运动锁屏界面102A0或者系统锁屏界面102K和音乐锁屏界面102C0和运动锁屏界面102A0三者或者运动锁屏界面102A0和音乐锁屏界面102C0两者或者运动锁屏界面102A0和系统锁屏界面102K两者触发预设条件时,窗口栈中各锁屏窗口的顺序保持不变,且仍旧以运动锁屏界面102A0最先出栈并作为锁屏界面二展示在手机10的屏幕上,即锁屏界面一和锁屏界面二为同一应用的锁屏界面。当系统锁屏界面102K触发预设条件时,显示策略服务基于预设条件确定系统锁屏界面102K为目标锁屏界面(锁屏界面二)并对窗口栈中的运动应用的锁屏窗口、音乐应用的锁屏窗口和系统锁屏应用的锁屏窗口均进行退栈,然后基于预设顺序先对音乐应用的锁屏窗口先入栈且位于栈底,然后对运动应用的锁屏窗口再入栈且位于音乐应用的锁屏窗口之上,最后将系统锁屏应用的锁屏窗口入栈且位于栈顶。
下面以锁屏界面为运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K为例对预设条件进行说明:
音乐锁屏界面102C0对应的音乐应用请求手机10将音乐锁屏界面102C0作为目标锁屏界面,手机对运动锁屏界面102A0和音乐锁屏界面102C0进行退栈。然后将运动锁屏界面102A0重新入栈,音乐锁屏界面102C0压入窗口栈的栈顶并切换音乐锁屏界面102C0展示在手机10的屏幕上。值得注意的是,其可以只在手机10处于熄屏的状态下触发。
对于锁屏界面展示的内容发生变化的规则:首先手机基于预设顺序确定运动应用标识对应的运动应用的运动锁屏界面102A0作为顺序级别高的锁屏界面最先展示在手机的屏幕上。音乐锁屏界面102C0上至少存在音乐应用在音乐锁屏界面102C0上的内容显示区102C00(至少显示当前播放的歌曲的信息102C001(如歌名和歌手等)的内容发生变化或者操作按钮102C000显示切换歌曲时。手机对运动锁屏界面102A0和音乐锁屏界面102C0从窗口栈中进行退栈。然后将运动锁屏界面102A0重新入栈,音乐锁屏界面102C0压入窗口栈的栈顶并切换音乐锁屏界面102C0展示在手机10的屏幕上。
根据本申请的一些实施例,当手机的窗口管理服务监控到音乐应用和系统应用锁屏界面(如新增其他应用的通知消息等)上的展示内容发生变化。手机10可以按照预设顺序选择顺序级别高的音乐锁屏界面102C0作为目标锁屏界面(锁屏界面二)显示在手机10的屏幕上。
对于基于用户不同的操作方式的规则,首先手机基于预设顺序确定运动应用标识对应的运动应用的运动锁屏界面102A0作为顺序级别高的锁屏界面最先展示在手机的屏幕上。
用户对手机10进行操作(如摇晃手机或者连续按压开关键),手机10接收到加速度传感器和/或重力感应器/和/或陀螺仪传感器或按键模块传输的信号。手机10判断各信号对应的运动数据是否满足切换要求,如运动数据为晃动速度或晃动加速度发生变化,以用户上下晃动手机10作为一个晃动周期,在运动数据满足切换要求时切换锁屏界面。如:用户摇晃手机作为一个晃动周期,,手机10接收到陀螺仪传感器180B、加速度传感器180E以及重力感应器传输的信号。信号中的手机10的晃动速度超出阈值二(切换阈值)或者手机10的晃动加速度超出阈值三时,手机10的显示策略服务基于预设顺序按照运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K的顺序级别依次确定音乐锁屏界面102C0、系统锁屏界面102K为目标锁屏界面并切换。即用户晃动一次手机且运动数据满足切换要求时,手机10先对运动锁屏界面102A0、音乐锁屏界面102C0、系统锁屏界面102K进行退栈,然后将运动锁屏界面102A0先压入窗口栈的栈底、将系统锁屏界面102K压入窗口栈位于运动锁屏界面102A0之上、最后将音乐锁屏界面102C0压入窗口栈的栈顶并将音乐锁屏界面102C0显示在手机10的屏幕上。用户再晃动一次手机作为下一个晃动周期,且运动数据满足切换要求时,手机10先对音乐锁屏界面102C0和系统锁屏界面102K进行退栈,然后将音乐锁屏界面102C0压入窗口栈位于运动锁屏界面102A0之上、最后 将系统锁屏界面102K压入窗口栈的栈顶并将系统锁屏界面102K显示在手机10的屏幕上。依次循环。对于基于运动数据切换锁屏界面的方式,可以只在手机10处于亮屏的状态下进行。
示例性的,用户操作手机10的开关键,使得手机10在熄屏状态和亮屏状态之间切换并由窗口管理服务识别手机10的熄屏和亮屏状态,具体是:窗口管理服务监听灭屏广播android.intent.action.SCREEN_OFF实现对手机10熄屏的判定;窗口管理服务监听亮屏广播android.intent.action.SCREEN_ON实现对手机10亮屏的判定。如当用户连续按压手机10的开关键两次,手机确定监听到的灭屏广播android.intent.action.SCREEN_OFF和亮屏广播android.intent.action.SCREEN_ON之间的时间差。在时间差不超过1秒时,手机10的显示策略服务将音乐锁屏界面102C0和运动锁屏界面102A0进行退栈以及重新入栈的操作从而将音乐锁屏界面102C0压入窗口栈的栈顶实现将音乐锁屏界面102C0切换至手机10的屏幕上显示的目的。
当用户连续再次按压手机10的开关键两次,手机确定监听到的灭屏广播android.intent.action.SCREEN_OFF和亮屏广播android.intent.action.SCREEN_ON之间的时间差。在时间差不超过1秒时,手机10的显示策略服务将系统锁屏界面102K切换至手机10的屏幕上显示。当用户连续再次按压手机10的开关键两次,手机确定监听到的灭屏广播android.intent.action.SCREEN_OFF和亮屏广播android.intent.action.SCREEN_ON之间的时间差。在时间差不超过1秒时,手机10的显示策略服务循环的将运动锁屏界面102A0再次切换至手机10的屏幕上显示。
值得注意的是,锁屏界面一和锁屏界面二在屏幕上显示的时间达到预定时间后,按照预设顺序重新对窗口栈中的锁屏窗口进行排序。
示例性的,图3(a)和图3(b)所示的运动锁屏界面102A0在手机10上达到预定时间后。手机10对窗口栈中的运动锁屏界面102A0的锁屏窗口和音乐锁屏界面102C0的锁屏窗口进行退栈操作,系统锁屏界面102K的锁屏窗口仍处于窗口栈的栈底。手机10将运动锁屏界面102A0的锁屏窗口压入窗口栈,最后将音乐锁屏界面102C0的锁屏窗口压入窗口栈的栈顶。并将音乐锁屏界面102C0显示在手机10的屏幕上。避免了作为锁屏界面一的运动锁屏界面102A0长时间在手机10的屏幕上显示而占用手机屏幕资源的问题。
根据本申请实施例提供的锁屏界面显示方法,在预定规则未触发前,多张锁屏界面以预定顺序中顺序级别高的锁屏界面作为锁屏界面一并最先出栈显示在手机的屏幕上。当预定规则触发后,手机能从多张锁屏界面中确定出锁屏界面二并最先出栈显示在屏幕上。无需用户逐一的解锁各锁屏界面即可查看锁屏界面上的信息和对锁屏界面进行操作。操作简单,提升了用户体验感。
在本申请一些实施例中,还提供了一种电子设备,下面结合图5对本申请实施例中的电子设备进行介绍。图5为本申请实施例公开的一种电子设备的结构示意图。
对于至少一个实施例,控制器中枢804经由诸如前端总线(FSB)之类的多分支总线、诸如快速通道互连(QPI)之类的点对点接口、或者类似的连接与处理器801进行通信。处理器801执行控制一般类型的数据处理操作的指令。在一实施例中,控制器中枢804包括,但不局限于,图形存储器控制器中枢(GMCH)(图中未示出)和输入/输出中枢(IOH)(其可以在分开的芯片上)(图中未示出),其中GMCH包括存储器和图形控制器并与IOH耦合。
电子设备800还可包括耦合到控制器中枢804的协处理器806和存储器802。或者,存储器802和GMCH中的一个或两者可以被集成在处理器801内(如本申请中所描述的),存储器802和协处理器806直接耦合到处理器801以及控制器中枢804,控制器中枢804与IOH处于单个芯片中。
在一个实施例中,存储器802可以是例如动态随机存取存储器(DRAM)、相变存储器(PCM)或这两者的组合。存储器802中可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性计算机可读介质。计算机可读存储介质中存储有指令,具体而言,存储有该指令的暂时和永久副本。
在一个实施例中,协处理器806是专用处理器,诸如例如高吞吐量MIC处理器、网络或通信处理器、压缩引擎、图形处理器、GPU、或嵌入式处理器等等。协处理器806的任选性质用虚线表示在图5中。
在一个实施例中,电子设备800可以进一步包括网络接口(NIC)803。网络接口803可以包括收发器,用于为设备800提供无线电接口,进而与任何其他合适的设备(如前端模块,天线等)进行通信。在各种实施例中,网络接口803可以与电子设备800的其他组件集成。网络接口803可以实现上述实施例中的通信单元的功能。
在一个实施例中,如图5所示的,电子设备800可以进一步包括输入/输出(I/O)设备805。输入/输出(I/O)设备805可以包括:用户界面,该设计使得用户能够与电子设备800进行交互;外围组件接口的设计使得外围组件也能够与电子设备800交互;和/或传感器设计用于确定与电子设备800相关的环境条件和/或位置信息。
值得注意的是,图5仅是示例性的。即虽然图5中示出了电子设备800包括处理器801、控制器中枢804、存储器802等多个器件,但是,在实际的应用中,使用本申请各方法的设备,可以仅包括电子设备800各器件中的一部分器件,例如,可以仅包含处理器801和NIC803。图5中可选器件的性质用虚线示出。
在本申请一些实施例中,该电子设备800的计算机可读存储介质中存储有指令可以包括:由处理器中的至少一个单元执行时导致设备实施以上实施例所提到的电子设备的锁屏界面显示方法的指令。当指令在计算机上运行时,使得计算机执行上述如以上实施例所提到的电子设备的锁屏界面显示方法。
现在参考图6,图6为本申请实施例公开的一种SOC的结构示意图,所示为根据本申请的一实施例的SoC(System on Chip,片上系统)1000的框图。在图6中,相似的部件具有同样的附图标记。另外,虚线框是更先进的SoC的可选特征。该SoC可以被用于根据本申请的一实施例的电子设备,根据其内所存储的指令,可以实现相应的功能。
在图6中,SoC 1000包括:互连单元1002,其被耦合至处理器1001;系统代理单元1006;总线控制器单元1005;集成存储器控制器单元1003;一组或一个或多个协处理器1007,其可包括集成图形逻辑、图像处理器、音频处理器和视频处理器;静态随机存取存储器(SRAM)单元1008;直接存储器存取(DMA)单元1004。在一个实施例中,协处理器1007包括专用处理器,诸如例如网络或通信处理器、压缩引擎、GPGPU、高吞吐量MIC处理器、或嵌入式处理器等等。
静态随机存取存储器(SRAM)单元1008中可以包括用于存储数据和/或指令的一个或多个计算机可读介质。计算机可读存储介质中可以存储有指令,具体而言,存储有该指令的暂时和永久副本。
在SoC 1000被应用于根据本申请的电子设备上时,计算机可读存储介质中存储有指令可以包括:由处理器中的至少一个单元执行时导致电子设备实施如以上实施例所提到的电子设备的锁屏界面显示方法的指令。当指令在计算机上运行时,使得计算机执行上述如以上实施例所提到的电子设备的锁屏界面显示方法。
此外,本申请实施例还公开了一种计算机可读存储介质,计算机可读存储介质上存储有处理程序,处理程序被处理器执行时实现以上实施例所提到的电子设备的锁屏界面显示方法。
计算机可读存储介质可以为只读存储器、随机存取存储器、硬盘或者光盘等。

Claims (25)

  1. 一种电子设备的锁屏界面显示方法,所述电子设备包括待显示的多张锁屏界面,其特征在于,所述方法包括:
    按照预设顺序,将多张所述锁屏界面中顺序级别最高的第一锁屏界面显示在所述电子设备的屏幕上;
    基于预设条件的触发,从多张所述锁屏界面中确定第二锁屏界面;
    在所述屏幕上显示第二锁屏界面。
  2. 如权利要求1所述的电子设备的锁屏界面显示方法,其特征在于,所述锁屏界面上展示的内容发生变化时触发所述预设条件,选取锁屏界面上展示的内容发生变化的目标锁屏界面为所述第二锁屏界面。
  3. 如权利要求2所述的电子设备的锁屏界面显示方法,其特征在于,
    所述多张锁屏界面中至少部分锁屏界面是与所述电子设备中的应用相关联的锁屏界面;
    所述锁屏界面上展示的内容发生变化与应用输出的内容变化相关联。
  4. 如权利要求3所述的电子设备的锁屏界面显示方法,其特征在于,
    当与所述第一锁屏界面对应的第一应用使得所述第一锁屏界面展示的内容发生变化的情况下,更新所述第一锁屏界面的内容,作为所述第二锁屏界面。
  5. 如权利要求3所述的电子设备的锁屏界面显示方法,其特征在于,
    当不同于所述第一应用的第二应用使得与所述第二应用对应的锁屏界面展示的内容发生变化的情况下,将所述第二应用对应的锁屏界面作为所述第二锁屏界面。
  6. 如权利要求2所述的电子设备的锁屏界面显示方法,其特征在于,存在多个所述目标锁屏界面时,在基于预设条件确定了多个第二锁屏界面的情况下,从所确定的多个第二锁屏界面中选定预设顺序中顺序级别最高的第二锁屏界面在所述屏幕上显示。
  7. 如权利要求1所述的电子设备的锁屏界面显示方法,其特征在于,所述电子设备接收到用户针对电子设备的预设的操作方式,触发所述预设条件。
  8. 如权利要求7所述的电子设备的锁屏界面显示方法,其特征在于,所述操作方式包括用户按压所述电子设备的开关键使得所述电子设备在亮屏状态和熄屏状态之间切换;
    确定所述第二锁屏界面包括:
    确定所述屏幕在相邻的亮屏状态和熄屏状态之间的时间差;
    所述时间差满足预设条件中的切换要求时,基于所述预设顺序确定排序位于所述第一锁屏界面后一位的锁屏界面作为所述第二锁屏界面。
  9. 如权利要求7所述的电子设备的锁屏界面显示方法,其特征在于,所述操作方式包括用户晃动所述电子设备;
    确定所述第二锁屏界面包括:
    依据所述电子设备的运动数据基于所述预设顺序确定排序将位于所述第一锁屏界面后一位的锁屏界面作为所述第二锁屏界面。
  10. 如权利要求9所述的电子设备的锁屏界面显示方法,其特征在于,所述运动数据大于第一阈值时,基于所述预设顺序确定所述第二锁屏界面并在所述屏幕上显示。
  11. 如权利要求1-10任意一项所述的电子设备的锁屏界面显示方法,其特征在于,基于与各所述锁屏界面对应的应用的优先级设定所述预设顺序,优先级高的应用对应的锁屏界面的顺序级别高并优先在所述电子设备的屏幕上显示。
  12. 如权利要求11所述的电子设备的锁屏界面显示方法,其特征在于,各所述应用的优先级由用户 自定义设置;
    所述自定义设置包括:
    为用户呈现应用设置界面,所述应用设置界面包括至少两个不同应用,每个应用被配置为能在所述电子设备上呈现对应的锁屏界面;
    基于用户设定各所述锁屏界面的顺序设置所述优先级,设定顺序在前的锁屏界面的优先级高。
  13. 如权利要求11所述的电子设备的锁屏界面显示方法,其特征在于,所述优先级基于用户对各所述应用的访问频率设置。
  14. 如权利要求1-10任意一项所述的电子设备的锁屏界面显示方法,其特征在于,基于各应用中携带的锁屏应用标识确定各应用带有所述锁屏界面。
  15. 如权利要求3所述的电子设备的锁屏界面显示方法,其特征在于,在所述应用的锁屏界面上的内容发生变化时,锁屏界面上展示的内容发生变化的目标应用请求所述电子设备切换所述目标应用的锁屏界面至所述屏幕上显示确定目标锁屏界面为所述第二锁屏界面。
  16. 如权利要求15所述的电子设备的锁屏界面显示方法,其特征在于,在预定时间内,允许所述目标应用请求所述电子设备切换所述目标应用的锁屏界面为所述第二锁屏界面的请求频率小于阈值。
  17. 如权利要求1-10任意一项所述的电子设备的锁屏界面显示方法,其特征在于,
    将与各所述锁屏界面对应的应用的锁屏窗口均压入预先建立的窗口栈。
  18. 如权利要求17所述的电子设备的锁屏界面显示方法,其特征在于,各所述锁屏窗口基于各所述应用的优先级依次压入所述窗口栈,将各所述锁屏窗口按照应用的优先级由低至高的顺序依次压入所述窗口栈,并以各所述锁屏窗口出栈的顺序作为各所述应用的锁屏界面预设顺序。
  19. 如权利要求17所述的电子设备的锁屏界面显示方法,其特征在于,所述从多张所述锁屏界面中确定第二锁屏界面并在所述屏幕上显示包括:
    对所述窗口栈中的锁屏窗口进行退栈操作直至所述作为第二锁屏界面的目标锁屏窗口出栈;
    将退栈的锁屏窗口基于所述预设顺序依次压入所述窗口栈,并将所述目标锁屏窗口压入所述窗口栈的栈顶。
  20. 如权利要求17所述的电子设备的锁屏界面显示方法,其特征在于,所述第一锁屏界面在所述屏幕上显示的时间达到预定时间后,将所述第一锁屏界面和处于所述第一锁屏界面的顺序级别的下一锁屏界面进行退栈,并将所述第一锁屏界面入栈,将处于所述第一锁屏界面的顺序级别的下一锁屏界面压入栈顶,以将处于所述第一锁屏界面的顺序级别的下一锁屏界面作为所述第二锁屏界面在所述屏幕上显示。
  21. 如权利要求17所述的电子设备的锁屏界面显示方法,其特征在于,所述第二锁屏界面在所述屏幕上显示的时间达到预定时间后,对退栈的锁屏窗口和所述第二锁屏界面再次进行退栈操作,并基于所述预设顺序对所述退栈的锁屏窗口和所述第二锁屏界面重新进行入栈。
  22. 一种电子设备,其特征在于,所述电子设备包括待显示的多张锁屏界面,所述电子设备包括至少一个处理器和至少一个存储器;
    至少一个所述存储器中存储有指令;
    当所述指令被至少一个所述处理器执行时,使得所述电子设备执行以下操作:
    按照预设顺序,将多张所述锁屏界面中顺序级别最高的第一锁屏界面显示在所述电子设备的屏幕上;
    基于预设条件的触发,从多张所述锁屏界面中确定第二锁屏界面;
    在所述屏幕上显示第二锁屏界面。
  23. 如权利要求22所述的电子设备,其特征在于,当所述指令被所述至少一个处理器执行时,使得 所述电子设备还执行以下步骤:
    所述锁屏界面上展示的内容发生变化时触发所述预设条件,选取锁屏界面上展示的内容发生变化的目标锁屏界面为所述第二锁屏界面。
  24. 如权利要求22所述的电子设备,其特征在于,当所述指令被所述至少一个处理器执行时,使得所述电子设备还执行以下步骤:
    所述电子设备接收到用户针对电子设备的预设的操作方式,触发所述预设条件。
  25. 如权利要求23所述的电子设备,其特征在于,当所述指令被所述至少一个处理器执行时,使得所述电子设备还执行以下步骤:
    基于与各所述锁屏界面对应的应用的优先级设定所述预设顺序,优先级高的锁屏界面的顺序级别高并优先在所述电子设备的屏幕上显示。
PCT/CN2021/107149 2020-07-22 2021-07-19 一种电子设备的锁屏界面显示方法和电子设备 WO2022017328A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/006,318 US20230300240A1 (en) 2020-07-22 2021-07-19 Lock Screen Display Method for Electronic Device and Electronic Device
EP21847360.1A EP4171000A4 (en) 2020-07-22 2021-07-19 METHOD FOR DISPLAYING A LOCK SCREEN INTERFACE OF AN ELECTRONIC DEVICE AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010711209.4A CN113973150B (zh) 2020-07-22 2020-07-22 一种电子设备的锁屏界面显示方法和电子设备
CN202010711209.4 2020-07-22

Publications (1)

Publication Number Publication Date
WO2022017328A1 true WO2022017328A1 (zh) 2022-01-27

Family

ID=79584855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107149 WO2022017328A1 (zh) 2020-07-22 2021-07-19 一种电子设备的锁屏界面显示方法和电子设备

Country Status (4)

Country Link
US (1) US20230300240A1 (zh)
EP (1) EP4171000A4 (zh)
CN (1) CN113973150B (zh)
WO (1) WO2022017328A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115586853B (zh) * 2022-11-24 2024-02-27 统信软件技术有限公司 一种窗口显示方法、计算设备和存储介质
CN117596418A (zh) * 2023-10-11 2024-02-23 书行科技(北京)有限公司 直播间ui展示控制方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740669A (zh) * 2016-01-27 2016-07-06 宇龙计算机通信科技(深圳)有限公司 一种锁屏界面处理方法及终端
CN107368310A (zh) * 2017-07-07 2017-11-21 Tcl移动通信科技(宁波)有限公司 移动终端锁屏界面动态显示方法、储存装置及移动终端
CN107608726A (zh) * 2017-08-10 2018-01-19 珠海市君天电子科技有限公司 监控方法、装置、电子设备及存储介质
CN110995917A (zh) * 2019-10-22 2020-04-10 华为技术有限公司 一种锁屏解锁的方法及移动终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520940A (zh) * 2011-12-01 2012-06-27 深圳市中兴移动通信有限公司 在触摸屏终端锁屏界面显示Widget的方法及装置
CN104615350B (zh) * 2015-01-14 2017-12-22 小米科技有限责任公司 在锁屏界面上展示信息的方法及装置
KR20170142477A (ko) * 2016-06-17 2017-12-28 주식회사 매드업 미디어 플레이어를 통해 코드 이미지를 제공하는 휴대용 단말기 및 그 동작 방법
CN106161789A (zh) * 2016-06-30 2016-11-23 努比亚技术有限公司 一种移动终端、切换锁屏壁纸的装置及方法
CN111259460B (zh) * 2019-12-18 2023-01-17 明度智云(浙江)科技有限公司 一种锁止状态的信息显示方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740669A (zh) * 2016-01-27 2016-07-06 宇龙计算机通信科技(深圳)有限公司 一种锁屏界面处理方法及终端
CN107368310A (zh) * 2017-07-07 2017-11-21 Tcl移动通信科技(宁波)有限公司 移动终端锁屏界面动态显示方法、储存装置及移动终端
CN107608726A (zh) * 2017-08-10 2018-01-19 珠海市君天电子科技有限公司 监控方法、装置、电子设备及存储介质
CN110995917A (zh) * 2019-10-22 2020-04-10 华为技术有限公司 一种锁屏解锁的方法及移动终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4171000A4

Also Published As

Publication number Publication date
CN113973150A (zh) 2022-01-25
CN113973150B (zh) 2023-03-10
EP4171000A1 (en) 2023-04-26
US20230300240A1 (en) 2023-09-21
EP4171000A4 (en) 2023-12-27

Similar Documents

Publication Publication Date Title
US10187872B2 (en) Electronic device and method of providing notification by electronic device
WO2021057868A1 (zh) 一种界面切换方法及电子设备
KR102148948B1 (ko) 전자 장치의 멀티 태스킹 방법 및 그 전자 장치
EP4145286A1 (en) Memory management method and electronic device
US10051522B2 (en) System and method for transitioning to a vehicle network resource
US20170206123A1 (en) Application containers with updatable application programming interface layers
WO2021037223A1 (zh) 一种触控方法与电子设备
KR102080146B1 (ko) 휴대단말과 외부 표시장치 연결 운용 방법 및 이를 지원하는 장치
WO2022017328A1 (zh) 一种电子设备的锁屏界面显示方法和电子设备
US20150128079A1 (en) Method for executing function in response to touch input and electronic device implementing the same
WO2022089208A1 (zh) 一种文件拖拽方法及电子设备
WO2019125492A1 (en) Dynamically generated task shortcuts for user interactions with operating system user interface elements
WO2019128571A1 (zh) 资源管理方法、装置、移动终端及计算机可读存储介质
WO2019128588A1 (zh) 进程处理方法和装置、电子设备、计算机可读存储介质
WO2024037068A1 (zh) 任务调度方法、电子设备及计算机可读存储介质
WO2023051355A1 (zh) 权限检查的方法和电子设备
CN116088716B (zh) 窗口管理方法和终端设备
WO2022052928A1 (zh) 一种应用接入方法及相关装置
US11991040B2 (en) Network configuration method and device
CN113608610B (zh) 交互控制方法、电子设备及系统
WO2019128545A1 (zh) 进程处理方法、电子设备、计算机可读存储介质
CN117724780B (zh) 一种信息获取方法
CN116661670B (zh) 管理手势导航窗口的方法、电子设备及存储介质
WO2023185881A1 (zh) 应用程序权限管理方法、系统及相关装置
EP4060592A1 (en) Method and system for acquiring content, user terminal, and content server

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: 21847360

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021847360

Country of ref document: EP

Effective date: 20230119

NENP Non-entry into the national phase

Ref country code: DE