WO2021000804A1 - Display method and apparatus in locked state - Google Patents

Display method and apparatus in locked state Download PDF

Info

Publication number
WO2021000804A1
WO2021000804A1 PCT/CN2020/098662 CN2020098662W WO2021000804A1 WO 2021000804 A1 WO2021000804 A1 WO 2021000804A1 CN 2020098662 W CN2020098662 W CN 2020098662W WO 2021000804 A1 WO2021000804 A1 WO 2021000804A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
icon
interface
application program
Prior art date
Application number
PCT/CN2020/098662
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021000804A1 publication Critical patent/WO2021000804A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Definitions

  • This application relates to the field of computer technology, in particular to a display method and device in a locked state.
  • An application can be installed in an electronic device such as a smart phone.
  • the electronic device may receive a message pushed by the server, or may generate a message locally.
  • the message may be referred to as an unread message of the application.
  • the electronic device can add a corner mark on the application icon displayed on the home screen to prompt the user that there is an unread message in the corresponding application.
  • the user must light up the screen of the electronic device and unlock it, and after viewing multiple pages of the home screen, can he understand which applications have unread messages, which is cumbersome to operate. Therefore, it is necessary to propose a technical solution to allow users to more conveniently and quickly understand which applications have unread messages.
  • This application provides a display method and device in the locked state, so that the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state.
  • the present application provides a display method in a locked state, and the method is applied to an electronic device installed with one or more application programs.
  • the method includes: an electronic device determines a first application program, the first application program is an application program with unread messages in the one or more applications; when the electronic device is in a locked state, displaying the first application program on a display screen
  • the icon of the application program, the icon of the first application program is used to indicate the presence of unread messages in the first application program, and the icon of the first application program is displayed separately; in response to the detected icon that acts on the first application program Operation, the electronic device starts the application corresponding to the icon of the first application.
  • the method of the first aspect is implemented so that the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state.
  • Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
  • the electronic device can have two states: locked state and unlocked state.
  • locked state some functions are locked, that is, the electronic device does not provide some functions.
  • the functions provided by the electronic device in the locked state have lower requirements for data security.
  • unlocked state the locked function has higher requirements for data security.
  • the electronic device can switch from the locked state to the unlocked state in response to the received user operation.
  • This user operation may be referred to as an operation for switching the electronic device from the locked state to the unlocked state.
  • the user operation may include, but is not limited to, one or more of the following: the operation of inputting authentication information that is the same as the pre-stored authentication information, and the authentication information includes at least one of the following: digital password, graphics, facial image, sound Pattern or voice; the pressing operation detected on the power button or the home screen key; or, the sliding operation detected on the display screen after the pressing operation is detected on the power button or the home screen key.
  • the separate display of the icon of the first application program means that when the electronic device displays the icon of the first application program on the display screen, it does not display the abbreviated content or specific content of the unread message of the first application program or the unread Information such as when the message was generated.
  • application messages may include the following two types: 1. Messages pushed by the server corresponding to the application to the electronic device, such as news messages sent by the WeChat server to the electronic device, and information from the application store Application update messages sent by the server to the electronic device, etc. 2. Messages generated locally by electronic devices, such as missed calls, alarms, or reminders.
  • the unread message of the application program may refer to a message that the electronic device has not yet presented specific content.
  • the specific content of the message presented by the electronic device refers to that the electronic device starts the corresponding application and displays the specific content of the message or broadcasts the specific content of the message by voice. It is understandable that the electronic device displays the notification information of the new message on the notification bar or the lock screen interface after receiving the new message, which does not belong to the specific content of the new message presented by the electronic device. In this way, it is convenient for users to know which applications have unread messages when the screen is locked.
  • the unread message of the application may refer to a message corresponding to a message type set by the user to need to be reminded in the application, and the electronic device has not yet presented a message with specific content.
  • the type of message that needs to be reminded can be set by the user. For example, for WeChat, if the user sets Do Not Disturb to a contact, after the electronic device receives a new message sent by the contact, even if the electronic device does not display the new message, the new message does not belong to WeChat Of unread messages. In this way, in the locked screen state, it is convenient for users to know whether there are currently unread messages they want to know.
  • the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and belong to the whitelist.
  • One or more applications are included in the whitelist.
  • the whitelist can be set independently by the user, or it can be set by default by the electronic device.
  • the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and are not blacklisted.
  • One or more applications are included in the blacklist.
  • the blacklist can be set independently by the user, or it can be set by default by the electronic device.
  • the icons of the first application can be arranged according to any one of the following strategies:
  • the icons of the first application program are sequentially displayed on the display screen.
  • the icons of the first application are sequentially displayed on the display screen.
  • the icons of the first application program are sequentially displayed on the display screen.
  • the icons of the first application program are sequentially displayed on the display screen.
  • the icons of the first application are sequentially displayed on the display screen.
  • the icons of the first application program are sequentially displayed on the display screen.
  • the electronic device when the electronic device is in the locked state, when the icon of the first application is displayed on the display screen, the brightness of the icon of the first application when the latest unread message is generated later Higher. In this way, the user can directly learn which applications have recently received unread messages through the brightness of the icon.
  • the method of the first aspect may further include: when the electronic device is in a locked state, displaying indication information of the number of unread messages of the first application on the display screen.
  • the indication information of the number of unread messages of the first application the user can intuitively and conveniently understand the number of unread messages of each application in the locked state of the electronic device.
  • the indication information of the number of unread messages of the first application program is a corner mark displayed on the icon of the first application program.
  • the subscript includes a value
  • the value is the number of unread messages of the first application corresponding to the subscript.
  • the corner mark is displayed in one or more of the following positions of the icon of the first application: upper right corner, lower right corner, upper left corner, and lower left corner.
  • the shape of the corner mark includes one or more of the following: a circle, a triangle, a square, or an irregular figure.
  • the icon of the first application program is displayed on the display screen.
  • the operation to light up the display screen received in the off-screen state may include, but is not limited to: voice commands (for example, voice commands "turn on the screen"), gesture commands, and presses received on the physical power button (power button) Operation, pressing operation (one or two pressing operation) received on the physical volume key, etc.
  • part or all of the display screen may be lit to display the icon of the first application program.
  • the electronic device lights up a part of the display screen to display the icon of the first application program, it can light up economically and improve the battery life.
  • the electronic device may detect an operation for switching the electronic device from the locked state to the unlocked state; in response to The detected operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts the application program corresponding to the icon of the first application program.
  • the homepage provided by the application program can be displayed on the display screen, and the specific content of the unread messages existing in the application program can also be displayed.
  • the operation for switching the electronic device from the locked state to the unlocked state can refer to the related description above.
  • the operation acting on the icon of the first application program and the operation for switching the electronic device from the locked state to the unlocked state may be the same operation.
  • the electronic device receives a user operation (such as a touch operation) on the icon of the first application, it can collect the user's fingerprint at the same time. If the collected fingerprint is the same as the pre-stored fingerprint, the electronic device is switched from the locked state To unlock state.
  • the electronic device after the electronic device detects the operation that acts on the icon of the first application, before detecting the operation for switching the electronic device from the locked state to the unlocked state, The user may be prompted to switch the electronic device from the locked state to the unlocked state.
  • the way the electronic device prompts the user may include outputting prompt information.
  • the prompt information may include, but is not limited to: visual elements displayed on the display screen, voice, vibration feedback, flashlight feedback, and so on.
  • the present application provides an electronic device, which is used to execute the method in the first aspect or any one of the implementation manners in the first aspect.
  • the electronic device is installed with one or more application programs, the electronic device includes: one or more processors, a memory, and a display screen; the memory is coupled with the one or more processors, and the memory is used to store computer program codes,
  • the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to execute:
  • the application program corresponding to the icon of the first application program is started.
  • the electronic device of the second aspect allows the user to quickly and conveniently understand which applications have unread messages when the electronic device is in a locked state.
  • the display mode provided by the electronic device is more intuitive, simple and effective for the user, can improve the efficiency of the user to view unread messages, and enhance the user's experience of using the electronic device.
  • the electronic device can have two states: locked state and unlocked state
  • the separate display of the icon of the first application program means that when the electronic device displays the icon of the first application program on the display screen, it does not display the abbreviated content or specific content or unread content of the unread message of the first application program. Information such as when the message was generated.
  • the application message can refer to the related description of the first aspect, which will not be repeated here.
  • the unread messages of the application program can refer to the related description of the first aspect, which will not be repeated here. It may refer to a message that the electronic device has not yet presented specific content.
  • the specific content of the message presented by the electronic device refers to that the electronic device starts the corresponding application and displays the specific content of the message or broadcasts the specific content of the message by voice. It is understandable that the electronic device displays the notification information of the new message on the notification bar or the lock screen interface after receiving the new message, which does not belong to the specific content of the new message presented by the electronic device. In this way, it is convenient for users to know which applications have unread messages when the screen is locked.
  • the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and belong to the whitelist.
  • One or more applications are included in the whitelist.
  • the whitelist can be set independently by the user, or it can be set by default by the electronic device.
  • the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and are not blacklisted.
  • One or more applications are included in the blacklist.
  • the blacklist can be set independently by the user, or it can be set by default by the electronic device.
  • the one or more processors are specifically configured to invoke computer instructions to enable the electronic device to display the icon of the first application program on the display screen in the locked state according to any one of the following A strategy to arrange the icons of the first application:
  • the icons of the first application program are sequentially displayed on the display screen.
  • the icons of the first application are sequentially displayed on the display screen.
  • the icons of the first application program are sequentially displayed on the display screen.
  • the icons of the first application program are sequentially displayed on the display screen.
  • the icons of the first application are sequentially displayed on the display screen.
  • the icons of the first application program are sequentially displayed on the display screen.
  • the electronic device when the electronic device is in the locked state, when the icon of the first application is displayed on the display screen, the brightness of the icon of the first application when the latest unread message is generated later Higher. In this way, the user can directly learn which applications have recently received unread messages through the brightness of the icon.
  • the one or more processors are also used to invoke computer instructions to make the electronic device execute: when in the locked state, display unread messages of the first application on the display screen The number of instructions.
  • the user can intuitively and conveniently understand the number of unread messages of each application in the locked state of the electronic device.
  • the indication information of the number of unread messages of the first application program is a corner mark displayed on the icon of the first application program.
  • the subscript includes a value
  • the value is the number of unread messages of the first application corresponding to the subscript.
  • the corner mark is displayed in one or more of the following positions of the icon of the first application: upper right corner, lower right corner, upper left corner, and lower left corner.
  • the shape of the corner mark includes one or more of the following: a circle, a triangle, a square, or an irregular figure.
  • the one or more processors are also used to invoke computer instructions to cause the electronic device to execute: when in the locked state, in response to the received in the off-screen state for lighting the display
  • the operation of the screen displays the icon of the first application program on the screen.
  • the operation to light up the display screen received in the off-screen state may include, but is not limited to: voice commands (for example, voice commands "turn on the screen"), gesture commands, and presses received on the physical power button (power button) Operation, pressing operation (one or two pressing operation) received on the physical volume key, etc.
  • the one or more processors are specifically configured to invoke computer instructions to make the electronic device execute: when in the locked state, part or all of the display screen can be lit to display the first application Icon.
  • the electronic device lights up a part of the display screen to display the icon of the first application program, it can light up economically and improve the battery life.
  • the one or more processors are specifically configured to invoke computer instructions to cause the electronic device to execute: in response to a detected operation on the icon of the first application, the detection For the operation of switching the electronic device from the locked state to the unlocked state; in response to the detection of the operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts and corresponds to the icon of the first application s application.
  • the operation acting on the icon of the first application program and the operation for switching the electronic device from the locked state to the unlocked state may be the same operation.
  • the electronic device receives a user operation (such as a touch operation) on the icon of the first application, it can collect the user's fingerprint at the same time. If the collected fingerprint is the same as the pre-stored fingerprint, the electronic device is switched from the locked state To unlock state.
  • the electronic device after the electronic device detects the operation that acts on the icon of the first application, before detecting the operation for switching the electronic device from the locked state to the unlocked state, The user may be prompted to switch the electronic device from the locked state to the unlocked state.
  • the way the electronic device prompts the user may include outputting prompt information.
  • the prompt information may include, but is not limited to: visual elements displayed on the display screen, voice, vibration feedback, flashlight feedback, and so on.
  • the electronic device of the second aspect can be used to execute the method in the first aspect or any one of the possible implementations of the first aspect. Therefore, for the operations performed by the electronic device of the second aspect and the beneficial effects brought about by the electronic device, reference may be made to the related description in the first aspect or any one of the possible implementation manners of the first aspect, which will not be repeated here.
  • the present application provides a computer program product containing instructions.
  • the computer program product is run on an electronic device, the electronic device is made to execute the first aspect and any of the possible implementation manners described in the first aspect Methods.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the foregoing instructions run on an electronic device, cause the electronic device to execute the first aspect and any possible implementation manner in the first aspect Described method.
  • the electronic device can display the icon of the application program with unread messages on the display screen in the locked state.
  • the technical solution provided by the present application can enable users to quickly and conveniently understand which applications have unread messages when the electronic device is in a locked state.
  • Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1B is a software structure block diagram of an electronic device provided by an embodiment of the present application.
  • 2A-2B and 3A-3B are schematic diagrams of human-computer interaction for enabling "lock screen aggregation" provided by an embodiment of this application;
  • 4A-4B are the lock screen interfaces provided by the embodiments of the application.
  • FIG. 5A-FIG. 5D, FIG. 6A-FIG. 6B, and FIG. 7 are lock screen interfaces provided by embodiments of the application;
  • FIG. 8 is a schematic diagram of a collaboration process of various software modules in an electronic device provided by an embodiment of the application.
  • FIG. 9 is a schematic flowchart of a display method in a locked state according to an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
  • UI user interface
  • the term "user interface (UI)" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between applications or operating systems and users, which implements the internal form of information And the user can accept the conversion between the forms.
  • the user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), etc.
  • the interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user.
  • Control also called widget, is the basic element of user interface. Typical controls include toolbar, menu bar, text box, button, scroll bar (scrollbar), pictures and text.
  • the attributes and content of the controls in the interface are defined by tags or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or attribute in the interface, and the node is parsed and rendered as user-visible content.
  • applications such as hybrid applications, usually include web pages in their interfaces.
  • a webpage also called a page, can be understood as a special control embedded in the application program interface.
  • the webpage is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions.
  • the specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of the web page through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • the commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device.
  • the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. Visual interface elements.
  • the following embodiments of the present application provide a display method and device in the locked state, so that the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state.
  • Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
  • the electronic device under the condition that the "lock screen aggregation" of the electronic device such as a smart phone is turned on, the electronic device can display the indication information of the application program with unread messages on the lock screen interface in the locked state.
  • the display method provided in the embodiments of the present application, the user can quickly and conveniently understand which applications have unread messages through the indication information displayed on the lock screen interface when the electronic device is locked.
  • the lock screen interface refers to a part of the user interface provided by an electronic device in a locked state. It should be noted that the user interface displayed by the electronic device after opening some applications in the locked state, such as the user interface provided by the camera application in the locked state, is not a lock screen interface. For an example of the lock screen interface, reference may be made to related descriptions in subsequent embodiments.
  • Lock screen aggregation can be a service or function provided by an electronic device, which can support the electronic device to display indication information of an application with unread messages in a locked state. It is understandable that "lock screen aggregation” is only a word used in this embodiment, and its meaning has been recorded in this embodiment, and its name does not constitute any limitation to this embodiment.
  • the electronic device can have two states: locked state and unlocked state.
  • locked state some functions are locked, that is, the electronic device does not provide some functions.
  • the functions provided by the electronic device in the locked state have lower requirements for data security.
  • the functions provided by the electronic device in the locked state may include: answering a call, hanging up a call, adjusting the volume of music, starting a camera application, turning on/off the airplane mode, and so on.
  • the locked function in the locked state may include: starting a part of an application (such as a shopping application), and functions provided by the application, and so on.
  • the electronic device is switched from the locked state to the unlocked state, that is, the unlocking method may include the following two:
  • the electronic device can determine whether the authentication information input by the user is the same as the pre-stored authentication information in response to the authentication information input by the user. If the authentication information is the same, the locked state is switched to Unlocked state.
  • the authentication information can be used to authenticate whether the current user has the authority to use the electronic device.
  • the authentication information may include, but is not limited to: digital passwords, graphics, facial images, voiceprints or voices, etc.
  • the electronic device can switch from the locked state to the unlocked state in response to a pressing operation detected on the power key (power key) or the physical home key.
  • the electronic device may also respond to the detection on the display screen after detecting a pressing operation on the power button (power button) or the physical home button Slide operation to switch from locked state to unlocked state.
  • the electronic device can have two states: the on-screen state and the off-screen state.
  • the screen off state means that the power of the display is turned off, and the display does not display any interface elements.
  • the bright screen state means that part or all of the display screen is lit, and interface elements can be displayed on the display screen.
  • the display screen of an electronic device emits light by the pixels (for example, the display screen is an OLED screen or an AMOLED screen)
  • lighting up part of the display screen can mean lighting up some pixels on the display screen
  • lighting up all the display screens can mean Light up all pixels on the display.
  • the electronic device is locked, and whether the electronic device provides power supply for the display screen are independent of each other. That is, in the locked state, the electronic device may be in the on-screen state at the same time, or may be in the off-screen state at the same time.
  • part or all of the display screen can be lighted, that is, when the screen is on, the indication information of the application program with unread messages is displayed on the display screen.
  • application messages may include the following two types: 1. Messages pushed by the server corresponding to the application to the electronic device, such as news messages sent to the electronic device by the WeChat server, or sent to the electronic device by the server of the application store Application update news of electronic equipment, etc. 2. Messages generated locally by electronic devices, such as missed calls, alarms, or reminders.
  • the unread message of the application program may refer to a message that the electronic device has not yet presented specific content.
  • the specific content of the message presented by the electronic device refers to that the electronic device starts the corresponding application and displays the specific content of the message or broadcasts the specific content of the message by voice. It is understandable that the electronic device displays the notification information of the new message on the notification bar or the lock screen interface after receiving the new message, which does not belong to the specific content of the new message presented by the electronic device.
  • an instant messaging application such as WeChat
  • the electronic device displays the message on the lock screen
  • the text notification message "WeChat received 1 new message”, the text notification message "xx sent 1 new message” displayed in the notification bar at the top area of the display screen, etc., are not specific to the electronic device presenting the new message. content.
  • the electronic device can display the text message "Hello", and the electronic device presents the specific content of the new message.
  • the unread message of the application may refer to a message corresponding to the message type set by the user to need to be reminded in the application, and the electronic device has not yet presented a message with specific content. For example, for WeChat, if the user sets Do Not Disturb to a contact, after the electronic device receives a new message sent by the contact, even if the electronic device does not display the new message, the new message does not belong to WeChat Of unread messages.
  • the indication information of the application program is used to indicate the application program.
  • the indication information of the application program may include the icon, text information, animation, or other types of visual interface elements of the application program.
  • the icon of the application program may include: 1. The icon of a single application program, such as the icon of WeChat, the icon of mailbox, the icon of Twitter, etc. 2. A folder icon containing multiple application icons, such as a "reading" folder icon containing multiple reading application icons.
  • the electronic equipment involved in the embodiments of the present application is first introduced.
  • the electronic device in the embodiment of the present application is installed with one or more application programs.
  • This application does not specifically limit the types of electronic devices mentioned.
  • the electronic devices can be mobile phones, tablets, personal digital assistants (personal digital assistants, PDAs), wearable devices, laptops and other portable electronic devices.
  • Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices equipped with iOS, android, microsoft or other operating systems.
  • the electronic device may not be a portable electronic device, but a desktop computer or smart TV with a touch-sensitive surface (such as a touch panel).
  • FIG. 1A shows a schematic structural diagram of an exemplary electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and 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 (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store 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 directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code 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, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through his mouth, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
  • FIG. 1B is a software structure block diagram of an electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and desktop launcher.
  • the desktop launcher is used to manage the desktop (ie the main screen) and the lock screen interface of the electronic device.
  • the desktop launcher maintains or stores information related to unread messages existing in various applications.
  • the related information of the unread messages existing in each application program may be implemented as a quantity table of unread messages.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, push message receiving module, input subsystem (input subsystem), canvas Modules etc.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification 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 electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the push message receiving module can be used to receive messages pushed by the server to the electronic device, such as news messages sent by the WeChat server to the electronic device, application update messages sent by the server of the application store to the electronic device, and so on.
  • the input subsystem can be used to receive input events reported by the kernel layer and transmit the input events to the application layer.
  • the canvas module is an abstract layer for drawing graphics and images.
  • the canvas module abstracts the image drawing operation methods related to the computer display drive device into an easy-to-understand interface, which is convenient for application calls in the application layer. For example, after the canvas module is abstracted, canvas provides methods such as canvas and paintbrush to the application layer, shielding obscure concepts.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination 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 multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • the following describes an exemplary graphical user interface provided by the electronic device 100.
  • FIG. 2A and FIG. 2B exemplarily show an operation of turning on "lock screen aggregation" on the electronic device 100.
  • the user interface 21 is used to display applications installed on the electronic device.
  • the user interface 21 may include: a status bar, a calendar and time widget, a weather widget, a page indicator, a tray with commonly used application icons, other application icons, and a navigation bar.
  • the user interface 21 may be a home screen provided by the electronic device 100.
  • the electronic device 100 may display a window 201 on the user interface 21 in response to the gesture.
  • the window 201 can display the switch control 201A of "lock screen aggregation", and can also display the switch control of other functions (such as Wi-Fi, Bluetooth, flashlight, etc.).
  • the expression form of the switch control 201A of the "lock screen aggregation” may be a text message or an icon. It is not limited to the user interface 21 shown in FIG. 2A to open the window 201 through a downward sliding gesture. The user can also open the window 201 through a downward gesture on other user interfaces, which is not done in this embodiment of the application. limit.
  • the electronic device 100 may start the "lock screen aggregation".
  • FIG. 3A and FIG. 3B exemplarily show another operation of enabling "lock screen aggregation" on the electronic device 100.
  • the user interface 31 exemplarily shown in FIG. 3A may be a "setting interface” provided by a “settings” application.
  • the "Settings” application is an application that is installed on electronic devices such as smart phones and tablets to set various functions of electronic devices.
  • the user interface 31 may be a user interface opened by the user clicking the setting icon in the user interface 21 shown in FIG. 2A.
  • the user interface 31 displays an area 301 including one or more setting items.
  • the area 301 includes a "lock screen aggregation" setting item 301A.
  • an operation such as a touch operation
  • the electronic device may display a user interface 32 as shown in FIG. 3B.
  • the user interface 32 may include a switch control 302 of “lock screen aggregation” and prompt information 303.
  • the switch control 302 is used to monitor the operation (for example, touch operation) of turning on/off the "lock screen aggregation".
  • an operation such as a touch operation
  • the electronic device 100 can start the "lock screen aggregation".
  • the form of the switch control 302 may be text information or icons.
  • the prompt message 303 can be used to introduce the function of "lock screen aggregation”.
  • the presentation form of the prompt information 303 may be text information, pictures or icons.
  • gestures may include touch gestures and hovering gestures.
  • a touch screen gesture refers to a gesture where a user's finger directly touches the display screen of an electronic device
  • a hovering gesture refers to a gesture where the user's finger does not touch the display screen of the electronic device.
  • the pressing operation on the physical key may include, for example, two pressing operations on the physical volume key (volume up key or volume down key) of the electronic device.
  • the user can trigger the electronic device to start "application aggregation" in the boot wizard provided after the electronic device is turned on.
  • the electronic device can also automatically start "application aggregation" after booting.
  • the electronic device may also display a prompt message that the “lock screen aggregation” has been turned on in the status bar. For example, display the "lock screen aggregation” icon or text information in the status bar.
  • 4A-4B exemplarily show two exemplary lock screen interfaces provided by the electronic device in the locked state before the "lock screen aggregation" is turned on.
  • the user interface 41 shown in FIG. 4A may be a lock screen interface provided by the electronic device to light up all the display screens.
  • the user interface 41 may include: a status bar 401, a time widget 402, a lock screen icon 403, and a camera icon 404.
  • the status bar 401 may include: one or more signal strength indicators of mobile communication signals (also called cellular signals), the name of the operator (for example, "China Mobile"), and wireless fidelity (Wi-Fi) ) One or more signal strength indicators of the signal, battery status indicator, time indicator, etc.
  • the time widget 402 can be used to indicate the current time, such as date, day of the week, hour and minute information, etc.
  • the lock screen icon 403 is used to indicate that the current electronic device is in a locked state.
  • the icon of the camera can be used to receive user operations (for example, touch operations), and in response to the user operations, the electronic device can start the camera application.
  • the user interface 42 shown in FIG. 4B may be a lock screen interface provided by the electronic device to light up part of the display screen. As shown in FIG. 4B, the user interface 42 may include time information 405. The time information 405 is used to indicate the current time. It can be seen from FIG. 4B that the electronic device only lights up the pixels corresponding to the area where the time information 405 is located, and the other pixels are not lit.
  • the power supply of the display screen can be stopped, that is, the screen is turned off, and the display screen does not display any interface content.
  • the electronic device can prompt the user which applications currently have unread messages in the locked state.
  • the way for the electronic device to enable "lock screen aggregation" can refer to the previous description.
  • the electronic device may display a lock screen interface to prompt the user which applications currently have unread messages.
  • the user does not need to release the locked state of the electronic device, and can easily and quickly learn which applications have unread messages through the lock screen interface.
  • the electronic device may light up all the display screens to display the lock screen interface, or light up part of the display screens to display the lock screen interface.
  • Figures 5A-5D can light up all the lock screen interfaces displayed on the display screens of the electronic device.
  • the electronic device may receive a user operation for turning on all the display screens in the off-screen state, and in response to the user operation, turn on all the display screens to display the display shown in FIGS. 5A-5D Lock screen interface.
  • the user operation for lighting up all the display screens may include, but is not limited to: voice commands (for example, voice commands "turn on the screen"), gesture commands, pressing operations received on the physical power button, and physical volume Press operation (one or two press operations) received on the key, etc.
  • voice commands for example, voice commands "turn on the screen”
  • gesture commands for example, voice commands "turn on the screen”
  • pressing operations received on the physical power button a physical volume Press operation (one or two press operations) received on the key, etc.
  • some user operations for illuminating all the display screens and the user operations for triggering the electronic device to enable "lock screen aggregation" mentioned in the above embodiment may be the same operations.
  • the electronic device can turn on the "lock screen aggregation", and light up all the screens at the same time to display the lock shown in Figure 5A-5D Screen interface.
  • the electronic device may light up all the display screens to display Figure 5A-5D shows the lock screen interface.
  • the screen-on state may include the state of lighting up part of the display screen or the state of lighting up all the display screens.
  • the electronic device may receive a user operation to light up all the display screens in a locked state and light up part of the display screen, and light up all the display screens in response to the user operation.
  • the lock screen interface shown in Figure 5A-5D is displayed.
  • the user operation may include, but is not limited to: voice instructions (for example, voice instructions "turn on the screen"), gesture instructions, and so on.
  • the user interface 51 may include: a status bar 501, a lock screen icon 502, an area 503 for displaying icons of applications that currently have unread messages, and a camera icon 504. among them:
  • the status bar 501 may refer to the status bar 401 in FIG. 4A
  • the lock screen icon 502 may refer to the lock screen icon 403 in FIG. 4A
  • the camera icon 504 may refer to the camera icon 404 in FIG. 4A, which will not be repeated here.
  • the area 503 displays the icons of the applications that currently have unread messages.
  • the area 503 may include the icon 503A of the "read” folder, the icon 503B of Alipay, the icon 503C of JD, the icon 503D of the application store, the icon 503E of stored, and the icon 503F of stocks.
  • the "read" folder contains one or more applications with unread messages.
  • the electronic device may not display the icon of the folder, but directly display the icon of the application program that has unread messages in the folder. Through the icons of the applications that currently have unread messages displayed in the area 503, the user can quickly and conveniently learn which applications currently have unread messages in the locked state of the electronic device.
  • the electronic device can prompt the user that there are currently applications with unread messages in the following two ways:
  • the electronic device can reduce the icons of the application programs with unread messages, and display the reduced icons on the same lock screen interface.
  • the electronic device can display icons of applications that currently have unread messages through multiple lock screen interfaces. With reference to the user interfaces shown in FIG. 5B and FIG. 5C, the electronic device may distribute the icons of the application programs that currently have unread messages on multiple lock screen interfaces.
  • the user can view other lock screen interfaces by swiping left or right on the lock screen interface.
  • the user may input a leftward sliding gesture on the user interface 52 shown in FIG. 5B, and in response to the sliding gesture, the electronic device may display the user interface 53 as shown in FIG. 5C.
  • the user interface 52 shown in FIG. 5B may be referred to as the first interface
  • the user interface 53 shown in FIG. 5C may be referred to as the second interface.
  • the first interface includes some icons of applications with unread messages
  • the second interface includes some icons of applications with unread messages.
  • the icons of the application programs displayed in the first interface and the second interface are different.
  • the electronic device may also display a page indicator to indicate which lock screen interface is currently displayed.
  • the page indicator 505 includes two circles, indicating that the icons of the applications that currently have unread messages are distributed on the two lock screen interfaces. The inside of the first circle is filled with black, indicating the user as shown in 5B Interface 52 is the first lock screen interface.
  • the page indicator 506 is used to indicate that the user interface 53 is the second lock screen interface.
  • the electronic device can use the following strategies to arrange the icons of applications with unread messages on the lock screen:
  • the icons of applications with more unread messages are arranged first, or the icons of applications with fewer unread messages are arranged first.
  • the electronic device may sequentially arrange the icons of the application programs that have unread messages according to the number of unread messages from as few to as many.
  • the icons of the applications with unread messages are arranged in sequence.
  • the electronic device can also use other strategies to arrange the icons of the application programs with unread messages on the lock screen interface, which is not limited in the embodiment of the present application.
  • the electronic device can also arrange the applications with unread messages on the lock screen according to the order in which the applications are arranged on the desktop or the home screen, according to the initial order of the applications, or according to the frequency of use of the applications, etc. Icon.
  • the electronic device may also randomly arrange the icons of applications with unread messages on the lock screen interface.
  • the strategy for the electronic device to arrange application icons with unread messages on the lock screen interface may be set by the user or set by the electronic device by default.
  • the electronic device when the electronic device displays the icon of the application program with unread messages on the lock screen interface, the brightness of the icon of the application program with the later generation time of the latest unread message is higher. In this way, users can directly know which applications have received unread messages from the brightness of the icons.
  • the electronic device when the electronic device displays an icon of an application program with unread messages on the lock screen interface, it may also display a corner mark on the icon, and the corner mark contains a value.
  • the electronic device may display the corner marks 503G-503L on the user interface 51.
  • the value in the subscript may be the number of all unread messages corresponding to the application.
  • the value "7" in the subscript 503J is the total number of unread messages in the application store.
  • the value in the subscript may be the number of some unread messages in the corresponding application.
  • the value in the subscript may be the number of unread messages corresponding to the message type that is set by the user to be reminded. For example, for WeChat (WeChat), if the user sets Do Not Disturb for a certain contact, the value marked on the WeChat icon does not include the number of unread messages sent by the contact.
  • the value in the corner of the folder icon can be all or part of the unread messages that exist in the multiple applications The total number of entries.
  • corner markers can also be implemented in other shapes, such as triangles, squares, or irregular figures. It is not limited to the display of the icon in the upper right corner of the application icon as shown in FIGS. 5A-5C. In some embodiments of the present application, it may also be displayed in the upper left corner, lower left corner, lower right corner or middle area of the application icon. Mark.
  • the electronic device can display the icon of the application program with the unread message on the lock screen interface.
  • a subscript containing a numerical value may also be displayed on the icon, and the numerical value is the number of unread messages in the corresponding application. This allows the user to know which applications currently have unread messages through the lock screen interface without having to unlock.
  • FIG. 5D shows another possible lock screen interface provided by an electronic device.
  • the lock screen interface prompts the user which applications currently have unread messages through text information.
  • the user interface 54 includes: a status bar 507, a lock screen icon 508, text information 509, and a camera icon 511. among them:
  • the status bar 507 may refer to the status bar 401 in FIG. 4A
  • the lock screen icon 508 may refer to the lock screen icon 403 in FIG. 4A
  • the camera icon 511 may refer to the camera icon 404 in FIG. 4A, which will not be repeated here.
  • the text information 509 is used to prompt the user which applications currently have unread messages.
  • the text information 509 may include the name of an application program that currently has an unread message. In some embodiments, the text information 509 may also include the number of unread messages in each application.
  • the user interface 54 may further include a control 510.
  • the control 510 can be used to receive a user operation (for example, a touch operation).
  • the electronic device can display more text information on the user interface 54 to prompt the user of other applications with unread messages.
  • Fig. 6A and Fig. 6B can show the lock screen interface displayed on a part of the display screen of the electronic device.
  • the electronic device lights up part of the display screen to display the lock screen interface, the pixels corresponding to the visual interface elements such as icons and text information presented on the lock screen interface are lighted up, and the remaining pixels are not lighted up.
  • the electronic device may light up a part of the display screen to display the lock screen interface shown in FIG. 6A or FIG. 6B when receiving a user operation for lighting a part of the display screen in the screen off state.
  • the user operation for illuminating part of the display screen may include, but is not limited to: voice instructions received in the off-screen state (for example, voice instructions "light up part of the screen"), gesture instructions, and the like.
  • the electronic device can be turned on Part of the display screen to display the lock screen interface shown in Figure 6A or Figure 6B. In this case, the electronic device may continue to display the lock screen interface shown in FIG. 6A or FIG. 6B until the electronic device receives an operation for turning on all the display screens or an operation for turning off the screen.
  • a preset period of time for example, 15 seconds
  • the electronic device can light up Part of the display screen to display the lock screen interface shown in Figure 6A or Figure 6B. In this case, the electronic device may continue to display the lock screen interface shown in FIG. 6A or FIG. 6B until the electronic device receives an operation for turning on all the display screens or an operation for turning off the screen.
  • a preset period of time for example, 5 seconds
  • the user interface 61 may include: icons of applications that currently have unread messages.
  • the electronic device may switch and display different applications with unread messages on the user interface 61 every preset time period (for example, 5 seconds). Icon. For example, if the current number of applications with unread messages is 20, the electronic device can first display the 1-10 applications with unread messages on the display screen, and display the 11-20 applications after 5 seconds. An application with unread messages will display the 1-10th application with unread messages in a loop after 5 seconds.
  • the strategy used when arranging these icons can refer to the previous embodiment when the electronic device lights up all the display screens to show the presence of unread messages.
  • the strategy used by the icon of the application will not be repeated here.
  • the electronic device when the electronic device displays an icon of an application with an unread message on the lock screen interface, it may also display a corner mark on the icon, and the corner mark contains a value.
  • the shape of the corner marker, the display position, and the determination method of the value in the corner marker can refer to the related descriptions in Figures 5A to 5C above.
  • the electronic device can display the icon of the application program with the unread message on the lock screen interface.
  • a subscript containing a numerical value may also be displayed on the icon, and the numerical value is the number of unread messages in the corresponding application. This allows the user to know which applications currently have unread messages through the lock screen interface without having to unlock.
  • FIG. 6B shows another possible lock screen interface provided by an electronic device.
  • the lock screen interface prompts the user which applications currently have unread messages through text information.
  • the user interface 62 includes text information, which is used to prompt the user that there is currently an application program of unread messages.
  • the text information may include the name of the application program that currently has an unread message. In some embodiments, the text information may also include the number of unread messages in each application.
  • the electronic device can switch to display different text information on the user interface 62 every preset time (for example, 5 seconds) to remind the user that the current Which applications have unread messages.
  • the way shown in FIGS. 6A and 6B is to light up part of the display screen to prompt the user which applications currently have unread messages, which saves more power than the way to light up all the display screens.
  • the electronic device can display the indication information of the application program that currently has unread messages on the lock screen interface, so that the user does not need to unlock the electronic device Status, through the lock screen interface, you can quickly and easily understand which applications have unread messages.
  • Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
  • the icon and text information of the application with unread messages displayed on the lock screen interface of the electronic device can be used to receive user operations (such as touch operations).
  • user operations such as touch operations
  • the electronic device can perform the following Any operation:
  • the electronic device prompts the user to unlock. After detecting the operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts the application, so that the user can view the unread message in the application.
  • the application is the application corresponding to the icon or text information that the user operates on.
  • the operation for switching the electronic device from the locked state to the unlocked state can refer to the manner in which the electronic device is switched from the locked state to the unlocked state in the foregoing embodiment, which will not be repeated here. Exemplarily, refer to 7, which shows a way for the electronic device to prompt the user to unlock.
  • the electronic device when a user operation (such as a touch operation) acting on the icon 503D shown in FIG. 5A is detected, or when it is detected that it acts on the text information "application store: 7 unread messages" shown in FIG. 5D, the electronic device prompts the user to unlock. After the user unlocks the electronic device, the electronic device can run the application store and display the user interface provided by the application store.
  • a user operation such as a touch operation
  • the electronic device prompts the user to unlock.
  • the electronic device can run the application store and display the user interface provided by the application store.
  • the electronic device can directly detect the user operation received by the icon and text information of the application program with unread messages on the lock screen interface to switch the electronic device from the locked state to The operation in the unlocked state does not need to prompt the user.
  • the icon of the application with the unread message on the lock screen interface, the user operation received by the text message, and the operation for switching the electronic device from the locked state to the unlocked state may be the same operation .
  • the electronic device has the icon of the application program of the unread message on the lock screen interface, and the user operation (such as touch operation) received on the text message, the user's fingerprint can be collected at the same time, if the collected fingerprint and the pre-stored fingerprint Same, the electronic device is switched from the locked state to the unlocked state.
  • the electronic device directly starts the application, so that the user can view the unread messages in the application.
  • the application is the application corresponding to the icon or text information that the user operates on.
  • part of the application can be directly opened in the locked state, that is, the electronic device can open the part of the application without being unlocked, and the part of the application can be set by the user.
  • after the electronic device directly starts the application it can only display part of the content of the application (for example, the unread message of the application), and the remaining content (for example, the main interface of the application) can be displayed on the electronic device. Display after unlocking.
  • FIGS. 5A-5D, 6A, 6B, and 7 are only examples, and should not constitute a limitation to the present application.
  • the electronic device can receive messages of various installed applications in the on and off states, and count whether there are unread messages in each application.
  • the message of the application program received by the electronic device may be pushed by the server to the electronic device, or may be generated when the electronic device runs the application program.
  • the electronic device may continuously receive or periodically receive messages about the existence of various installed applications. In some embodiments, the electronic device may also count the number of unread messages in each application.
  • the indication information can be an icon of an application program or text information.
  • FIG. 8 shows a schematic diagram of the data flow trend involved when the electronic device displays the indication information of the application with unread messages on the lock screen interface after the "lock screen aggregation" is turned on. It is understandable that what is shown in FIG. 8 is only part of the software modules in the electronic device, and should not be limited to the software architecture of the electronic device.
  • the push message receiving module in the application framework layer may receive the message pushed by the server to the electronic device.
  • the push message receiving module can send the received message to the corresponding application in the application layer.
  • the applications running in the application layer can receive messages sent by the push message receiving module, such as news messages sent by the WeChat server to the electronic device, and application update messages sent by the server of the application store to the electronic device.
  • applications running in the application layer can generate application messages, such as alarm clocks or reminders.
  • the application running in the application layer calls the getContentResolver().call(Uri,String,String,Bundle) interface to notify the desktop launcher of the current unread messages.
  • the first parameter Uri is used to indicate the name of the target module of the notification. For example, it can be Uri.parse("content://com.huawei.android.desktop launcher.settings/badge/"), Indicates that the notification will be delivered to the desktop launcher.
  • the second parameter String indicates the name of the interface, for example, it can be "change_badge”.
  • the third parameter String is not used in this application and can be left blank, for example, it can be "null".
  • the fourth parameter Bundle is used to indicate the content that needs to be transmitted to the desktop launcher, including which application calls the interface, the number of unread messages that exist in the application, and so on.
  • the Bundle object contains three values, namely the package name extra.putString("package”,packageName), the class name extra.putString("class",className), and the number of unread messages extra.putInt("badgenumber", count).
  • the className can be the name of the main Activity of the application.
  • the desktop launcher is used to manage the desktop (that is, the home screen) of the electronic device and the lock screen interface.
  • the desktop launcher maintains or stores information about unread messages that exist in various applications. In some embodiments, this information can be implemented as a list of unread messages. Exemplarily, referring to Table 1, Table 1 shows a possible number of unread messages.
  • the desktop launcher After the desktop launcher receives the content transmitted by the application, it can update the related information of the unread messages existing in each application, for example, it can update the number table of unread messages shown in Table 1.
  • the desktop launcher can call the canvas module according to the information related to the unread messages in each application that is maintained or stored, so that the canvas module can call the display driver through the openGL interface, so that the display
  • the lock screen provided by the screen prompts the user which applications currently have unread messages.
  • the desktop launcher can call the canvas module and the display driver to display the instructions of the application with unread messages on the lock screen in the following situations:
  • the electronic device receives a press operation on the physical power button (power button), receives a press operation (one or two press operations) on the physical volume button, and receives a press operation for lighting all Voice commands or gesture commands on the screen, etc.
  • the sensor driver can call the pressure sensor provided under the physical volume key to receive the operation, and package the pressing operation
  • the input event is transmitted to the input subsystem (input subsystem) in the application framework layer.
  • the input subsystem can upload the input event to the desktop launcher, trigger the desktop launcher to call the canvas module and the display driver to display instructions on the lock screen interface.
  • the desktop launcher calls the canvas module and the display driver displays instructions on the lock screen interface.
  • the content displayed on the lock screen interface of the electronic device can refer to the relevant description of the embodiments in Figs. 5A-5D.
  • the electronic device When the electronic device is in the off-screen state, it receives voice instructions or gesture instructions for lighting part of the screen.
  • the electronic device does not receive any user operation within a preset period of time (for example, 15 seconds) when the electronic device is in the unlocked state and all the display screens are lit.
  • the electronic device does not receive any user operation within a preset period of time (for example, 5 seconds) when the electronic device is in the locked state and all the display screens are on.
  • the content displayed on the lock screen interface of the electronic device can refer to the relevant description of the embodiment in FIG. 6A or FIG. 6B.
  • the electronic device may also use a whitelist and/or blacklist to Filter the content displayed on the lock screen interface.
  • the whitelist and blacklist in the embodiments of this application will be described in detail below.
  • the electronic device may store a whitelist of applications. One or more applications are included in the whitelist.
  • the whitelist can be set independently by the user. Specifically, after determining that an application program with unread messages currently exists, the electronic device displays the indication information of an application program that currently has unread messages and belongs to the whitelist on the lock screen interface.
  • the electronic device may store a blacklist of applications. One or more applications are included in the blacklist.
  • the blacklist can be set independently by the user. Specifically, after the electronic device determines that there is currently an application with unread messages, it displays on the lock screen the indication information of an application with currently unread messages and not belonging to the blacklist.
  • the electronic device can filter the content displayed on the lock screen interface, and display on the lock screen interface indication information of applications that the user wants to see with unread messages. This approach can meet user needs and improve user experience.
  • the electronic device may also store the aforementioned whitelist and blacklist at the same time.
  • the electronic device can set the priority of the whitelist and the blacklist, and filter the content displayed on the lock screen interface according to the high priority list.
  • FIG. 9 is a schematic flowchart of a display method in a locked state according to an embodiment of the application. As shown in Figure 9, the method may include the following steps:
  • Step S110 The electronic device determines a first application, and the first application is an application with unread messages among one or more applications installed on the electronic device.
  • the first application is one or more applications installed on the electronic device, and there is an application with unread messages.
  • the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and belong to the whitelist.
  • the white list can refer to the related description of the previous embodiment.
  • the first application is one or more applications installed by the electronic device, and there are applications that have unread messages and are not blacklisted.
  • the blacklist can refer to the related description of the previous embodiment.
  • the unread messages of the application program can refer to the related description of the foregoing embodiment.
  • Step S120 When the electronic device is in the locked state, the icon of the first application program is displayed on the display screen.
  • the icon of the first application program is used to indicate that there is an unread message in the first application program, and the icon of the first application program is displayed separately.
  • the display sequence and display mode of the icons can refer to the related description of the foregoing embodiments in FIG. 5A-5D and FIG. 6A.
  • the icons of the first application program may be arranged in a "well" shape as shown in FIGS. 5A-5C and 6A.
  • the separate display of the icon of the first application program means that when the electronic device displays the icon of the first application program on the display screen, it does not display the abbreviated content or specific content of the unread message of the first application program, and the generation of the unread message Time and other information.
  • an instant messaging application such as WeChat
  • the electronic device displays the icon of the instant messaging application on the display screen when the electronic device is locked , Without displaying the brief content of the message (for example, "Mom sent a message") or specific content (for example, "Mom: Go home for dinner at night”).
  • Step S130 In response to the detected operation on the icon of the first application, the electronic device starts the application corresponding to the icon of the first application.
  • the electronic device may detect an operation acting on the icon of the first application program, and start the application program corresponding to the icon of the first application program.
  • the electronic device may first prompt the user to unlock, and after the user unlocks, start the application program corresponding to the icon of the first application program.
  • the electronic device can directly start the application corresponding to the icon of the first application.
  • the operation acting on the icon of the first application program may be a touch operation, a click operation, etc., for details, please refer to the relevant description of the foregoing embodiment.
  • the homepage provided by the application program can be displayed on the display screen, or the specific content of the unread messages existing in the application program can be directly displayed.
  • the embodiment does not limit this.
  • the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state.
  • Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).

Abstract

Disclosed are a display method and apparatus in a locked state. In a locked state, an electronic device can display an icon of an application having an unread message on a display screen. According to the technical solution provided by the present application, a user can quickly and conveniently know which applications have unread messages when the electronic device is in the locked state. Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the experience of the user for using the electronic device.

Description

锁定状态下的显示方法及装置Display method and device in locked state
本申请要求在2019年6月29日提交中国国家知识产权局、申请号为201910581389.6、发明名称为“锁定状态下的显示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910581389.6, and the invention title is "Display method and device in locked state" on June 29, 2019, the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及计算机技术领域,特别涉及锁定状态下的显示方法及装置。This application relates to the field of computer technology, in particular to a display method and device in a locked state.
背景技术Background technique
智能手机等电子设备中可以安装应用程序(application,APP),应用程序在前端或者后台运行时,电子设备可能接收到服务器推送的消息,也可能在本地生成消息。在电子设备没有将该消息呈现给用户的情况下,该消息可以被称为该应用程序的未读消息。An application (APP) can be installed in an electronic device such as a smart phone. When the application is running in the front end or the background, the electronic device may receive a message pushed by the server, or may generate a message locally. In the case that the electronic device does not present the message to the user, the message may be referred to as an unread message of the application.
目前,在亮屏并且解锁状态下,电子设备可以在主屏幕(Home screen)所显示的应用程序图标上添加角标,提示用户对应的应用程序存在未读消息。用户必须点亮电子设备的屏幕并且解锁,还需查看主屏幕的多个页面后,才能了解有哪些应用程序存在未读消息,操作较为繁琐。因此,有必要提出一种技术方案,让用户可以更加方便、快速地了解有哪些应用程序存在未读消息。At present, when the screen is turned on and unlocked, the electronic device can add a corner mark on the application icon displayed on the home screen to prompt the user that there is an unread message in the corresponding application. The user must light up the screen of the electronic device and unlock it, and after viewing multiple pages of the home screen, can he understand which applications have unread messages, which is cumbersome to operate. Therefore, it is necessary to propose a technical solution to allow users to more conveniently and quickly understand which applications have unread messages.
发明内容Summary of the invention
本申请提供了锁定状态下的显示方法及装置,使得用户可以在电子设备处于锁定状态时,快速方便地了解有哪些应用程序存在未读消息。This application provides a display method and device in the locked state, so that the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state.
第一方面,本申请提供了一种锁定状态下的显示方法,该方法应用于安装有一个或多个应用程序的电子设备。该方法包括:电子设备确定第一应用程序,该第一应用程序为该一个或多个应用程序中存在未读消息的应用程序;该电子设备处于锁定状态时,在显示屏上显示该第一应用程序的图标,该第一应用程序的图标用于指示该第一应用程序存在未读消息,该第一应用程序的图标单独显示;响应于检测到的作用于第一应用程序的图标上的操作,该电子设备启动和该第一应用程序的图标对应的应用程序。In the first aspect, the present application provides a display method in a locked state, and the method is applied to an electronic device installed with one or more application programs. The method includes: an electronic device determines a first application program, the first application program is an application program with unread messages in the one or more applications; when the electronic device is in a locked state, displaying the first application program on a display screen The icon of the application program, the icon of the first application program is used to indicate the presence of unread messages in the first application program, and the icon of the first application program is displayed separately; in response to the detected icon that acts on the first application program Operation, the electronic device starts the application corresponding to the icon of the first application.
实施第一方面的方法,使得用户可以在电子设备处于锁定状态时,快速方便地了解有哪些应用程序存在未读消息。这样的显示方法对用户来说更为直观且简单有效,可以提高用户查看未读消息的效率,提升用户对电子设备的使用体验。The method of the first aspect is implemented so that the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state. Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
结合第一方面,根据是否被锁定来看,电子设备可以有两个状态:锁定状态,和,解锁状态。电子设备处于锁定状态时,部分功能被锁定,即电子设备不提供部分功能。电子设备在锁定状态下提供的功能对数据安全的要求较低。电子设备在解锁状态下,被锁定的功能对数据安全的要求较高。In combination with the first aspect, according to whether it is locked or not, the electronic device can have two states: locked state and unlocked state. When the electronic device is in the locked state, some functions are locked, that is, the electronic device does not provide some functions. The functions provided by the electronic device in the locked state have lower requirements for data security. When the electronic device is in the unlocked state, the locked function has higher requirements for data security.
电子设备可以响应于接收到的用户操作,由锁定状态切换至解锁状态。该用户操作可以被称为用于将电子设备由锁定状态切换至解锁状态的操作。该用户操作可包括但不限于以下一项或多项:输入和预存的鉴权信息相同的鉴权信息的操作,该鉴权信息包括以下至少一项: 数字密码、图形、人脸图像、声纹或语音;在电源键或者主屏幕键上检测到的按压操作;或者,在电源键或者主屏幕键上检测到按压操作后,在该显示屏上检测到的滑动操作。The electronic device can switch from the locked state to the unlocked state in response to the received user operation. This user operation may be referred to as an operation for switching the electronic device from the locked state to the unlocked state. The user operation may include, but is not limited to, one or more of the following: the operation of inputting authentication information that is the same as the pre-stored authentication information, and the authentication information includes at least one of the following: digital password, graphics, facial image, sound Pattern or voice; the pressing operation detected on the power button or the home screen key; or, the sliding operation detected on the display screen after the pressing operation is detected on the power button or the home screen key.
结合第一方面,第一应用程序的图标单独显示是指,电子设备在显示屏上显示第一应用程序的图标时,不显示第一应用程序的未读消息的简略内容或具体内容、未读消息的生成时间等信息。With reference to the first aspect, the separate display of the icon of the first application program means that when the electronic device displays the icon of the first application program on the display screen, it does not display the abbreviated content or specific content of the unread message of the first application program or the unread Information such as when the message was generated.
结合第一方面,在一些实施例中,应用程序的消息可包括以下两种:1.应用程序对应的服务器推送给电子设备的消息,例如微信的服务器发送给电子设备的新闻消息、应用商店的服务器发送给电子设备的应用更新消息等。2.电子设备本地生成的消息,例如未接电话、闹钟或提醒事项等。With reference to the first aspect, in some embodiments, application messages may include the following two types: 1. Messages pushed by the server corresponding to the application to the electronic device, such as news messages sent by the WeChat server to the electronic device, and information from the application store Application update messages sent by the server to the electronic device, etc. 2. Messages generated locally by electronic devices, such as missed calls, alarms, or reminders.
结合第一方面,在一些实施例中,应用程序的未读消息可以是指电子设备还没有呈现具体内容的消息。其中,电子设备呈现消息的具体内容是指,电子设备启动对应的应用程序,并显示该消息的具体内容或者语音播报该消息的具体内容。可理解的,电子设备接收到新消息后在通知栏或者锁屏界面上显示该新消息的通知信息,不属于电子设备呈现该新消息的具体内容。这样,可以在锁屏状态下,方便用户了解有哪些应用程序存在未读消息。With reference to the first aspect, in some embodiments, the unread message of the application program may refer to a message that the electronic device has not yet presented specific content. Wherein, the specific content of the message presented by the electronic device refers to that the electronic device starts the corresponding application and displays the specific content of the message or broadcasts the specific content of the message by voice. It is understandable that the electronic device displays the notification information of the new message on the notification bar or the lock screen interface after receiving the new message, which does not belong to the specific content of the new message presented by the electronic device. In this way, it is convenient for users to know which applications have unread messages when the screen is locked.
结合第一方面,在一些实施例中,应用程序的未读消息可以是指,该应用程序中被用户设置为需要提醒的消息类型所对应的消息中,电子设备还没有呈现具体内容的消息。需要提醒的消息类型可以由用户自主设置。例如,对于微信来说,如果用户对某个联系人设置了消息免打扰,则电子设备接收到该联系人发送的新消息后,即使电子设备未显示该新消息,该新消息也不属于微信的未读消息。这样,可以在锁屏状态下,方便用户了解当前是否有自己想要获知的未读消息。With reference to the first aspect, in some embodiments, the unread message of the application may refer to a message corresponding to a message type set by the user to need to be reminded in the application, and the electronic device has not yet presented a message with specific content. The type of message that needs to be reminded can be set by the user. For example, for WeChat, if the user sets Do Not Disturb to a contact, after the electronic device receives a new message sent by the contact, even if the electronic device does not display the new message, the new message does not belong to WeChat Of unread messages. In this way, in the locked screen state, it is convenient for users to know whether there are currently unread messages they want to know.
结合第一方面,在一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息并且属于白名单的应用程序。白名单中包括一个或多个应用程序。白名单可以由用户自主设置,也可以由电子设备默认设置。With reference to the first aspect, in some embodiments, the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and belong to the whitelist. One or more applications are included in the whitelist. The whitelist can be set independently by the user, or it can be set by default by the electronic device.
结合第一方面,在另一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息并且不属于黑名单的应用程序。黑名单中包括一个或多个应用程序。黑名单可以由用户自主设置,也可以由电子设备默认设置。With reference to the first aspect, in other embodiments, the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and are not blacklisted. One or more applications are included in the blacklist. The blacklist can be set independently by the user, or it can be set by default by the electronic device.
结合第一方面,在一些实施例中,电子设备在锁定状态下,在显示屏上显示第一应用程序的图标时,可以按照以下任意一种策略来排列第一应用程序的图标:With reference to the first aspect, in some embodiments, when the electronic device displays the icons of the first application on the display screen in the locked state, the icons of the first application can be arranged according to any one of the following strategies:
1.按照第一应用程序的未读消息条数,从多至少或从少至多,依次在该显示屏上显示该第一应用程序的图标。1. According to the number of unread messages of the first application program, from most to least or from least to most, the icons of the first application program are sequentially displayed on the display screen.
2.按照该第一应用程序的最新未读消息的生成时间,从早至晚或从晚至早,依次在该显示屏上显示该第一应用程序的图标。2. According to the generation time of the latest unread message of the first application, from early to late or from late to early, the icons of the first application are sequentially displayed on the display screen.
3.按照该第一应用程序的安装时间,从早至晚或从晚至早,依次在该显示屏上显示该第一应用程序的图标。3. According to the installation time of the first application program, from morning to night or from night to morning, the icons of the first application program are sequentially displayed on the display screen.
4.按照该第一应用程序在该电子设备的桌面中的显示顺序,依次在该显示屏上显示该第一应用程序的图标。4. According to the display order of the first application program on the desktop of the electronic device, the icons of the first application program are sequentially displayed on the display screen.
5.按照该第一应用程序的首字母顺序,依次在该显示屏上显示该第一应用程序的图标。5. In accordance with the initial alphabetical order of the first application, the icons of the first application are sequentially displayed on the display screen.
6.按照该第一应用程序的使用频率,从高至低或从低至高,依次在该显示屏上显示该第一应用程序的图标。6. According to the usage frequency of the first application program, from high to low or from low to high, the icons of the first application program are sequentially displayed on the display screen.
结合第一方面,在一些实施例中,电子设备在锁定状态下,在显示屏上显示第一应用程 序的图标时,最新未读消息的生成时间越晚的该第一应用程序的图标的明度越高。这样,用户可以通过图标的明度,直接获知哪些应用程序最新接收到未读消息。With reference to the first aspect, in some embodiments, when the electronic device is in the locked state, when the icon of the first application is displayed on the display screen, the brightness of the icon of the first application when the latest unread message is generated later Higher. In this way, the user can directly learn which applications have recently received unread messages through the brightness of the icon.
结合第一方面,在一些实施例中,第一方面的方法还可以包括:电子设备处于锁定状态时,在该显示屏上显示该第一应用程序的未读消息的条数的指示信息。通过显示第一应用程序的未读消息的条数的指示信息,可以使得用户在电子设备的锁定状态下,直观方便地了解各个应用程序的未读消息的条数。With reference to the first aspect, in some embodiments, the method of the first aspect may further include: when the electronic device is in a locked state, displaying indication information of the number of unread messages of the first application on the display screen. By displaying the indication information of the number of unread messages of the first application, the user can intuitively and conveniently understand the number of unread messages of each application in the locked state of the electronic device.
在一些实施例中,该第一应用程序的未读消息的条数的指示信息为,显示在该第一应用程序的图标之上的角标。在一些实施例中,该角标内包含数值,该数值为该角标对应的该第一应用程序的未读消息的条数。在一些实施例中,该角标显示在该第一应用程序的图标的以下一个或多个位置:右上角、右下角、左上角、左下角。在一些实施例中,该角标的形状包括以下一项或多项:圆形、三角形、正方形或不规则图形。In some embodiments, the indication information of the number of unread messages of the first application program is a corner mark displayed on the icon of the first application program. In some embodiments, the subscript includes a value, and the value is the number of unread messages of the first application corresponding to the subscript. In some embodiments, the corner mark is displayed in one or more of the following positions of the icon of the first application: upper right corner, lower right corner, upper left corner, and lower left corner. In some embodiments, the shape of the corner mark includes one or more of the following: a circle, a triangle, a square, or an irregular figure.
结合第一方面,在一些实施例中,电子设备处于锁定状态时,响应于在熄屏状态下接收到的用于点亮显示屏的操作,在显示屏上显示该第一应用程序的图标。在熄屏状态下接收到的用于点亮显示屏的操作可包括但不限于:语音指令(例如语音指令“亮屏”)、手势指令、在实体电源键(power button)上接收到的按压操作、在实体音量键上接收到的按压操作(一次或两次按压操作)等。With reference to the first aspect, in some embodiments, when the electronic device is in the locked state, in response to the operation for lighting the display screen received in the off-screen state, the icon of the first application program is displayed on the display screen. The operation to light up the display screen received in the off-screen state may include, but is not limited to: voice commands (for example, voice commands "turn on the screen"), gesture commands, and presses received on the physical power button (power button) Operation, pressing operation (one or two pressing operation) received on the physical volume key, etc.
结合第一方面,在一些实施例中,电子设备处于锁定状态时,可以点亮部分或全部显示屏来显示该第一应用程序的图标。电子设备点亮部分显示屏显示第一应用程序的图标时,可以节约点亮,提升续航能力。With reference to the first aspect, in some embodiments, when the electronic device is in the locked state, part or all of the display screen may be lit to display the icon of the first application program. When the electronic device lights up a part of the display screen to display the icon of the first application program, it can light up economically and improve the battery life.
结合第一方面,在一些实施例中,检测到的作用于该第一应用程序的图标上的操作之后,电子设备可以检测用于将该电子设备由锁定状态切换至解锁状态的操作;响应于检测到的该用于将该电子设备由锁定状态切换至解锁状态的操作,该电子设备启动和该第一应用程序的图标对应的应用程序。电子设备启动和该第一应用程序的图标对应的应用程序后,可以在显示屏上显示该应用程序提供的主页,也可以显示该应用程序存在的未读消息的具体内容,本申请实施例对此不做限制。这里,用于将该电子设备由锁定状态切换至解锁状态的操作可参照前文相关描述。With reference to the first aspect, in some embodiments, after the detected operation on the icon of the first application, the electronic device may detect an operation for switching the electronic device from the locked state to the unlocked state; in response to The detected operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts the application program corresponding to the icon of the first application program. After the electronic device starts the application program corresponding to the icon of the first application program, the homepage provided by the application program can be displayed on the display screen, and the specific content of the unread messages existing in the application program can also be displayed. There is no restriction. Here, the operation for switching the electronic device from the locked state to the unlocked state can refer to the related description above.
可理解的,在一些情况下,作用于该第一应用程序的图标的操作,和,用于将该电子设备由锁定状态切换至解锁状态的操作,可以为同一操作。例如,电子设备在第一应用程序的图标上接收到的用户操作(例如触摸操作)时,可以同时采集用户的指纹,若采集到的指纹和预存的指纹相同,则将电子设备由锁定状态切换至解锁状态。It is understandable that, in some cases, the operation acting on the icon of the first application program and the operation for switching the electronic device from the locked state to the unlocked state may be the same operation. For example, when the electronic device receives a user operation (such as a touch operation) on the icon of the first application, it can collect the user's fingerprint at the same time. If the collected fingerprint is the same as the pre-stored fingerprint, the electronic device is switched from the locked state To unlock state.
结合上述实施例,在一个具体的实施例中,电子设备检测到的作用于该第一应用程序的图标的操作之后,检测用于将该电子设备由锁定状态切换至解锁状态的操作之前,还可以提示用户当前需要将电子设备由锁定状态切换至解锁状态。电子设备提示用户的方式可包括输出提示信息,该提示信息可包括但不限于:在显示屏上显示的可视化元素、语音、振动反馈、闪光灯反馈等等。In combination with the foregoing embodiment, in a specific embodiment, after the electronic device detects the operation that acts on the icon of the first application, before detecting the operation for switching the electronic device from the locked state to the unlocked state, The user may be prompted to switch the electronic device from the locked state to the unlocked state. The way the electronic device prompts the user may include outputting prompt information. The prompt information may include, but is not limited to: visual elements displayed on the display screen, voice, vibration feedback, flashlight feedback, and so on.
第二方面,本申请提供了一种电子设备,该电子设备用于执行上述第一方面或者第一方面任意一种实施方式中的方法。该电子设备安装有一个或多个应用程序,该电子设备包括:一个或多个处理器、存储器和显示屏;该存储器与该一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该电子设备执行:In a second aspect, the present application provides an electronic device, which is used to execute the method in the first aspect or any one of the implementation manners in the first aspect. The electronic device is installed with one or more application programs, the electronic device includes: one or more processors, a memory, and a display screen; the memory is coupled with the one or more processors, and the memory is used to store computer program codes, The computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to execute:
确定第一应用程序,该第一应用程序为该一个或多个应用程序中存在未读消息的应用程序;Determine a first application, where the first application is an application with unread messages in the one or more applications;
处于锁定状态时,在该显示屏上显示该第一应用程序的图标,该第一应用程序的图标用于指示该第一应用程序存在未读消息,该第一应用程序的图标单独显示;When in the locked state, display the icon of the first application on the display screen, the icon of the first application is used to indicate that there is an unread message in the first application, and the icon of the first application is displayed separately;
响应于检测到的作用于第一应用程序的图标上的操作,启动和该第一应用程序的图标对应的应用程序。In response to the detected operation acting on the icon of the first application program, the application program corresponding to the icon of the first application program is started.
第二方面的电子设备,使得用户可以在电子设备处于锁定状态时,快速方便地了解有哪些应用程序存在未读消息。电子设备提供的这种显示方式对于用户来说更为直观且简单有效,可以提高用户查看未读消息的效率,提升用户对电子设备的使用体验。The electronic device of the second aspect allows the user to quickly and conveniently understand which applications have unread messages when the electronic device is in a locked state. The display mode provided by the electronic device is more intuitive, simple and effective for the user, can improve the efficiency of the user to view unread messages, and enhance the user's experience of using the electronic device.
结合第二方面,根据是否被锁定来看,电子设备可以有两个状态:锁定状态,和,解锁状态Combined with the second aspect, according to whether it is locked or not, the electronic device can have two states: locked state and unlocked state
结合第二方面,第一应用程序的图标单独显示是指,电子设备在显示屏上显示第一应用程序的图标时,不显示第一应用程序的未读消息的简略内容或具体内容、未读消息的生成时间等信息。With reference to the second aspect, the separate display of the icon of the first application program means that when the electronic device displays the icon of the first application program on the display screen, it does not display the abbreviated content or specific content or unread content of the unread message of the first application program. Information such as when the message was generated.
结合第二方面,应用程序的消息可参照第一方面的相关描述,这里不再赘述。With reference to the second aspect, the application message can refer to the related description of the first aspect, which will not be repeated here.
结合第二方面,应用程序的未读消息可参照第一方面的相关描述,这里不再赘述。可以是指电子设备还没有呈现具体内容的消息。其中,电子设备呈现消息的具体内容是指,电子设备启动对应的应用程序,并显示该消息的具体内容或者语音播报该消息的具体内容。可理解的,电子设备接收到新消息后在通知栏或者锁屏界面上显示该新消息的通知信息,不属于电子设备呈现该新消息的具体内容。这样,可以在锁屏状态下,方便用户了解有哪些应用程序存在未读消息。With reference to the second aspect, the unread messages of the application program can refer to the related description of the first aspect, which will not be repeated here. It may refer to a message that the electronic device has not yet presented specific content. Wherein, the specific content of the message presented by the electronic device refers to that the electronic device starts the corresponding application and displays the specific content of the message or broadcasts the specific content of the message by voice. It is understandable that the electronic device displays the notification information of the new message on the notification bar or the lock screen interface after receiving the new message, which does not belong to the specific content of the new message presented by the electronic device. In this way, it is convenient for users to know which applications have unread messages when the screen is locked.
结合第二方面,在一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息并且属于白名单的应用程序。白名单中包括一个或多个应用程序。白名单可以由用户自主设置,也可以由电子设备默认设置。With reference to the second aspect, in some embodiments, the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and belong to the whitelist. One or more applications are included in the whitelist. The whitelist can be set independently by the user, or it can be set by default by the electronic device.
结合第二方面,在另一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息并且不属于黑名单的应用程序。黑名单中包括一个或多个应用程序。黑名单可以由用户自主设置,也可以由电子设备默认设置。With reference to the second aspect, in other embodiments, the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and are not blacklisted. One or more applications are included in the blacklist. The blacklist can be set independently by the user, or it can be set by default by the electronic device.
结合第二方面,在一些实施例中,该一个或多个处理器具体用于调用计算机指令以使得电子设备在锁定状态下,在显示屏上显示第一应用程序的图标时,按照以下任意一种策略来排列第一应用程序的图标:With reference to the second aspect, in some embodiments, the one or more processors are specifically configured to invoke computer instructions to enable the electronic device to display the icon of the first application program on the display screen in the locked state according to any one of the following A strategy to arrange the icons of the first application:
1.按照第一应用程序的未读消息条数,从多至少或从少至多,依次在该显示屏上显示该第一应用程序的图标。1. According to the number of unread messages of the first application program, from most to least or from least to most, the icons of the first application program are sequentially displayed on the display screen.
2.按照该第一应用程序的最新未读消息的生成时间,从早至晚或从晚至早,依次在该显示屏上显示该第一应用程序的图标。2. According to the generation time of the latest unread message of the first application, from early to late or from late to early, the icons of the first application are sequentially displayed on the display screen.
3.按照该第一应用程序的安装时间,从早至晚或从晚至早,依次在该显示屏上显示该第一应用程序的图标。3. According to the installation time of the first application program, from morning to night or from night to morning, the icons of the first application program are sequentially displayed on the display screen.
4.按照该第一应用程序在该电子设备的桌面中的显示顺序,依次在该显示屏上显示该第一应用程序的图标。4. According to the display order of the first application program on the desktop of the electronic device, the icons of the first application program are sequentially displayed on the display screen.
5.按照该第一应用程序的首字母顺序,依次在该显示屏上显示该第一应用程序的图标。5. In accordance with the initial alphabetical order of the first application, the icons of the first application are sequentially displayed on the display screen.
6.按照该第一应用程序的使用频率,从高至低或从低至高,依次在该显示屏上显示该第 一应用程序的图标。6. According to the frequency of use of the first application program, from high to low or from low to high, the icons of the first application program are sequentially displayed on the display screen.
结合第二方面,在一些实施例中,电子设备在锁定状态下,在显示屏上显示第一应用程序的图标时,最新未读消息的生成时间越晚的该第一应用程序的图标的明度越高。这样,用户可以通过图标的明度,直接获知哪些应用程序最新接收到未读消息。With reference to the second aspect, in some embodiments, when the electronic device is in the locked state, when the icon of the first application is displayed on the display screen, the brightness of the icon of the first application when the latest unread message is generated later Higher. In this way, the user can directly learn which applications have recently received unread messages through the brightness of the icon.
结合第二方面,在一些实施例中,该一个或多个处理器还用于调用计算机指令以使得电子设备执行:处于锁定状态时,在该显示屏上显示该第一应用程序的未读消息的条数的指示信息。通过显示第一应用程序的未读消息的条数的指示信息,可以使得用户在电子设备的锁定状态下,直观方便地了解各个应用程序的未读消息的条数。With reference to the second aspect, in some embodiments, the one or more processors are also used to invoke computer instructions to make the electronic device execute: when in the locked state, display unread messages of the first application on the display screen The number of instructions. By displaying the indication information of the number of unread messages of the first application, the user can intuitively and conveniently understand the number of unread messages of each application in the locked state of the electronic device.
在一些实施例中,该第一应用程序的未读消息的条数的指示信息为,显示在该第一应用程序的图标之上的角标。在一些实施例中,该角标内包含数值,该数值为该角标对应的该第一应用程序的未读消息的条数。在一些实施例中,该角标显示在该第一应用程序的图标的以下一个或多个位置:右上角、右下角、左上角、左下角。在一些实施例中,该角标的形状包括以下一项或多项:圆形、三角形、正方形或不规则图形。In some embodiments, the indication information of the number of unread messages of the first application program is a corner mark displayed on the icon of the first application program. In some embodiments, the subscript includes a value, and the value is the number of unread messages of the first application corresponding to the subscript. In some embodiments, the corner mark is displayed in one or more of the following positions of the icon of the first application: upper right corner, lower right corner, upper left corner, and lower left corner. In some embodiments, the shape of the corner mark includes one or more of the following: a circle, a triangle, a square, or an irregular figure.
结合第二方面,在一些实施例中,该一个或多个处理器还用于调用计算机指令以使得电子设备执行:处于锁定状态时,响应于在熄屏状态下接收到的用于点亮显示屏的操作,在显示屏上显示该第一应用程序的图标。在熄屏状态下接收到的用于点亮显示屏的操作可包括但不限于:语音指令(例如语音指令“亮屏”)、手势指令、在实体电源键(power button)上接收到的按压操作、在实体音量键上接收到的按压操作(一次或两次按压操作)等。With reference to the second aspect, in some embodiments, the one or more processors are also used to invoke computer instructions to cause the electronic device to execute: when in the locked state, in response to the received in the off-screen state for lighting the display The operation of the screen displays the icon of the first application program on the screen. The operation to light up the display screen received in the off-screen state may include, but is not limited to: voice commands (for example, voice commands "turn on the screen"), gesture commands, and presses received on the physical power button (power button) Operation, pressing operation (one or two pressing operation) received on the physical volume key, etc.
结合第二方面,在一些实施例中,该一个或多个处理器具体用于调用计算机指令以使得电子设备执行:处于锁定状态时,可以点亮部分或全部显示屏来显示该第一应用程序的图标。电子设备点亮部分显示屏显示第一应用程序的图标时,可以节约点亮,提升续航能力。With reference to the second aspect, in some embodiments, the one or more processors are specifically configured to invoke computer instructions to make the electronic device execute: when in the locked state, part or all of the display screen can be lit to display the first application Icon. When the electronic device lights up a part of the display screen to display the icon of the first application program, it can light up economically and improve the battery life.
结合第二方面,在一些实施例中,该一个或多个处理器具体用于调用计算机指令以使得电子设备执行:响应于检测到的作用于该第一应用程序的图标上的操作,检测用于将该电子设备由锁定状态切换至解锁状态的操作;响应于检测到的该用于将该电子设备由锁定状态切换至解锁状态的操作,该电子设备启动和该第一应用程序的图标对应的应用程序。With reference to the second aspect, in some embodiments, the one or more processors are specifically configured to invoke computer instructions to cause the electronic device to execute: in response to a detected operation on the icon of the first application, the detection For the operation of switching the electronic device from the locked state to the unlocked state; in response to the detection of the operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts and corresponds to the icon of the first application s application.
可理解的,在一些情况下,作用于该第一应用程序的图标的操作,和,用于将该电子设备由锁定状态切换至解锁状态的操作,可以为同一操作。例如,电子设备在第一应用程序的图标上接收到的用户操作(例如触摸操作)时,可以同时采集用户的指纹,若采集到的指纹和预存的指纹相同,则将电子设备由锁定状态切换至解锁状态。It is understandable that, in some cases, the operation acting on the icon of the first application program and the operation for switching the electronic device from the locked state to the unlocked state may be the same operation. For example, when the electronic device receives a user operation (such as a touch operation) on the icon of the first application, it can collect the user's fingerprint at the same time. If the collected fingerprint is the same as the pre-stored fingerprint, the electronic device is switched from the locked state To unlock state.
结合上述实施例,在一个具体的实施例中,电子设备检测到的作用于该第一应用程序的图标的操作之后,检测用于将该电子设备由锁定状态切换至解锁状态的操作之前,还可以提示用户当前需要将电子设备由锁定状态切换至解锁状态。电子设备提示用户的方式可包括输出提示信息,该提示信息可包括但不限于:在显示屏上显示的可视化元素、语音、振动反馈、闪光灯反馈等等。In combination with the foregoing embodiment, in a specific embodiment, after the electronic device detects the operation that acts on the icon of the first application, before detecting the operation for switching the electronic device from the locked state to the unlocked state, The user may be prompted to switch the electronic device from the locked state to the unlocked state. The way the electronic device prompts the user may include outputting prompt information. The prompt information may include, but is not limited to: visual elements displayed on the display screen, voice, vibration feedback, flashlight feedback, and so on.
基于同一发明构思,第二方面的电子设备可用于执行第一方面或第一方面任意一种可能的实施方式中的方法。因此,第二方面的电子设备所执行的操作以及该电子设备带来的有益效果,可参照上述第一方面或第一方面任意一种可能的实施方式中的相关描述,这里不再赘述。Based on the same inventive concept, the electronic device of the second aspect can be used to execute the method in the first aspect or any one of the possible implementations of the first aspect. Therefore, for the operations performed by the electronic device of the second aspect and the beneficial effects brought about by the electronic device, reference may be made to the related description in the first aspect or any one of the possible implementation manners of the first aspect, which will not be repeated here.
第三方面,本申请提供了一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描 述的方法。In the third aspect, the present application provides a computer program product containing instructions. When the computer program product is run on an electronic device, the electronic device is made to execute the first aspect and any of the possible implementation manners described in the first aspect Methods.
第四方面,本申请实施例提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the foregoing instructions run on an electronic device, cause the electronic device to execute the first aspect and any possible implementation manner in the first aspect Described method.
实施本申请提供的技术方案,电子设备可以在锁定状态下,在显示屏上显示存在未读消息的应用程序的图标。本申请提供的技术方案可以使得用户在电子设备处于锁定状态时,快速方便地了解有哪些应用程序存在未读消息。这样的显示方法对用户来说更为直观且简单有效,可以提高用户查看未读消息的效率,提升用户对电子设备的使用体验。By implementing the technical solution provided by this application, the electronic device can display the icon of the application program with unread messages on the display screen in the locked state. The technical solution provided by the present application can enable users to quickly and conveniently understand which applications have unread messages when the electronic device is in a locked state. Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
附图说明Description of the drawings
图1A是本申请实施例提供的电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图1B是本申请实施例提供的电子设备的软件结构框图;FIG. 1B is a software structure block diagram of an electronic device provided by an embodiment of the present application;
图2A-图2B、图3A-图3B为本申请实施例提供的开启“锁屏聚合”的人机交互示意图;2A-2B and 3A-3B are schematic diagrams of human-computer interaction for enabling "lock screen aggregation" provided by an embodiment of this application;
图4A-图4B为本申请实施例提供的锁屏界面;4A-4B are the lock screen interfaces provided by the embodiments of the application;
图5A-图5D、图6A-图6B、图7为本申请实施例提供的锁屏界面;5A-FIG. 5D, FIG. 6A-FIG. 6B, and FIG. 7 are lock screen interfaces provided by embodiments of the application;
图8为本申请实施例提供的电子设备中各个软件模块的协作流程示意图;FIG. 8 is a schematic diagram of a collaboration process of various software modules in an electronic device provided by an embodiment of the application;
图9为本申请实施例提供的锁定状态下的显示方法的流程示意图。FIG. 9 is a schematic flowchart of a display method in a locked state according to an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。Among them, in the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this document is only a description of related objects The association relationship of indicates that there can be three relationships, for example, A and/or B, which can indicate: A alone exists, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言 (hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。The term "user interface (UI)" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between applications or operating systems and users, which implements the internal form of information And the user can accept the conversion between the forms. The user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), etc. The interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user. Such as pictures, text, buttons and other controls. Control, also called widget, is the basic element of user interface. Typical controls include toolbar, menu bar, text box, button, scroll bar (scrollbar), pictures and text. The attributes and content of the controls in the interface are defined by tags or nodes. For example, XML specifies the controls contained in the interface through nodes such as <Textview>, <ImgView>, and <VideoView>. A node corresponds to a control or attribute in the interface, and the node is parsed and rendered as user-visible content. In addition, many applications, such as hybrid applications, usually include web pages in their interfaces. A webpage, also called a page, can be understood as a special control embedded in the application program interface. The webpage is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc., web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions. The specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of the web page through <p>, <img>, <video>, and <canvas>.
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device. The control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. Visual interface elements.
本申请以下实施例提供了锁定状态下的显示方法及装置,使得用户可以在电子设备处于锁定状态时,快速方便地了解有哪些应用程序存在未读消息。这样的显示方法对用户来说更为直观且简单有效,可以提高用户查看未读消息的效率,提升用户对电子设备的使用体验。The following embodiments of the present application provide a display method and device in the locked state, so that the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state. Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
在本申请以下实施例中,在智能手机等电子设备的“锁屏聚合”开启的条件下,电子设备可以在锁定状态下,在锁屏界面上显示存在未读消息的应用程序的指示信息。实施本申请实施例提供的显示方法,用户可以在电子设备的锁定状态下,通过锁屏界面上显示的指示信息快速方便地了解有哪些应用程序存在未读消息。In the following embodiments of the present application, under the condition that the "lock screen aggregation" of the electronic device such as a smart phone is turned on, the electronic device can display the indication information of the application program with unread messages on the lock screen interface in the locked state. By implementing the display method provided in the embodiments of the present application, the user can quickly and conveniently understand which applications have unread messages through the indication information displayed on the lock screen interface when the electronic device is locked.
锁屏界面是指电子设备在锁定状态下提供的部分用户界面。需要注意的是,电子设备在锁定状态下开启部分应用程序后所显示的用户界面,例如锁定状态下相机应用提供的用户界面,不属于锁屏界面。关于锁屏界面的示例,可参照后续实施例的相关描述。The lock screen interface refers to a part of the user interface provided by an electronic device in a locked state. It should be noted that the user interface displayed by the electronic device after opening some applications in the locked state, such as the user interface provided by the camera application in the locked state, is not a lock screen interface. For an example of the lock screen interface, reference may be made to related descriptions in subsequent embodiments.
“锁屏聚合”可以是电子设备提供的一种服务或功能,可以支持电子设备在锁定状态下,显示存在未读消息的应用程序的指示信息。可理解的,“锁屏聚合”只是本实施例中所使用的一个词语,其代表的含义在本实施例中已经记载,其名称并不能对本实施例构成任何限制。"Lock screen aggregation" can be a service or function provided by an electronic device, which can support the electronic device to display indication information of an application with unread messages in a locked state. It is understandable that "lock screen aggregation" is only a word used in this embodiment, and its meaning has been recorded in this embodiment, and its name does not constitute any limitation to this embodiment.
根据是否被锁定来看,电子设备可以有两个状态:锁定状态,和,解锁状态。电子设备处于锁定状态时,部分功能被锁定,即电子设备不提供部分功能。电子设备在锁定状态下提供的功能对数据安全的要求较低。示例性地,电子设备在锁定状态提供的功能可包括:接听电话、挂断电话、调节音乐音量大小、启动相机应用、打开/关闭飞行模式等。电子设备在解锁状态下,被锁定的功能对数据安全的要求较高。示例性地,锁定状态下被锁定的功能可包括:启动部分应用程序(例如购物类应用程序),以及,该应用程序提供的功能等。According to whether it is locked or not, the electronic device can have two states: locked state and unlocked state. When the electronic device is in the locked state, some functions are locked, that is, the electronic device does not provide some functions. The functions provided by the electronic device in the locked state have lower requirements for data security. Exemplarily, the functions provided by the electronic device in the locked state may include: answering a call, hanging up a call, adjusting the volume of music, starting a camera application, turning on/off the airplane mode, and so on. When the electronic device is in the unlocked state, the locked function has higher requirements for data security. Exemplarily, the locked function in the locked state may include: starting a part of an application (such as a shopping application), and functions provided by the application, and so on.
在本申请实施例中,电子设备由锁定状态切换为解锁状态的方式,即解锁方式可包括以下两种:In the embodiment of the present application, the electronic device is switched from the locked state to the unlocked state, that is, the unlocking method may include the following two:
1.在用户设置了鉴权信息的情况下,电子设备可以响应于用户输入的鉴权信息,判断用户输入的鉴权信息是否和预存的鉴权信息相同,若相同,则由锁定状态切换为解锁状态。该鉴权信息可用于认证当前用户是否有权限使用电子设备。该鉴权信息可包括但不限于:数字密码、图形、人脸图像、声纹或语音等。1. In the case that the user has set the authentication information, the electronic device can determine whether the authentication information input by the user is the same as the pre-stored authentication information in response to the authentication information input by the user. If the authentication information is the same, the locked state is switched to Unlocked state. The authentication information can be used to authenticate whether the current user has the authority to use the electronic device. The authentication information may include, but is not limited to: digital passwords, graphics, facial images, voiceprints or voices, etc.
2.在用户没有设置鉴权信息的情况下,电子设备可以响应于在电源键(power键)或实体home键上检测到的按压操作,由锁定状态切换为解锁状态。在其他一些实施例中,在用户没有设置鉴权信息的情况下,电子设备还可以在检测到电源键(power键)或实体home键上的按压操作之后,响应于在显示屏上检测到的滑动操作,由锁定状态切换为解锁状态。2. In the case that the user does not set the authentication information, the electronic device can switch from the locked state to the unlocked state in response to a pressing operation detected on the power key (power key) or the physical home key. In some other embodiments, when the user does not set the authentication information, the electronic device may also respond to the detection on the display screen after detecting a pressing operation on the power button (power button) or the physical home button Slide operation to switch from locked state to unlocked state.
根据是否提供显示屏的电源供应来看,电子设备可以有两个状态:亮屏状态,和,熄屏状态。熄屏状态是指显示屏的电源被关闭,显示屏不显示任何界面元素。亮屏状态是指部分或者全部显示屏被点亮,显示屏上可以显示界面元素。当电子设备的显示屏通过像素点自发 光时(例如显示屏为OLED屏或者AMOLED屏),点亮部分显示屏可以是指点亮显示屏上的部分像素点,点亮全部显示屏可以是指点亮显示屏上的全部像素点。According to whether the power supply of the display screen is provided, the electronic device can have two states: the on-screen state and the off-screen state. The screen off state means that the power of the display is turned off, and the display does not display any interface elements. The bright screen state means that part or all of the display screen is lit, and interface elements can be displayed on the display screen. When the display screen of an electronic device emits light by the pixels (for example, the display screen is an OLED screen or an AMOLED screen), lighting up part of the display screen can mean lighting up some pixels on the display screen, and lighting up all the display screens can mean Light up all pixels on the display.
可理解的,电子设备是否被锁定,和,电子设备是否提供显示屏的电源供应是相互独立的。即,电子设备在锁定状态下,可以同时处于亮屏状态,或者,可以同时处于熄屏状态。It is understandable that whether the electronic device is locked, and whether the electronic device provides power supply for the display screen are independent of each other. That is, in the locked state, the electronic device may be in the on-screen state at the same time, or may be in the off-screen state at the same time.
在本申请以下实施例中,电子设备在锁定状态下,可以点亮部分或者全部显示屏,即在亮屏状态下时,在显示屏上显示存在未读消息的应用程序的指示信息。In the following embodiments of the present application, when the electronic device is in the locked state, part or all of the display screen can be lighted, that is, when the screen is on, the indication information of the application program with unread messages is displayed on the display screen.
在本申请以下实施例中,应用程序的消息可包括以下两种:1.应用程序对应的服务器推送给电子设备的消息,例如微信的服务器发送给电子设备的新闻消息、应用商店的服务器发送给电子设备的应用更新消息等。2.电子设备本地生成的消息,例如未接电话、闹钟或提醒事项等。In the following embodiments of the present application, application messages may include the following two types: 1. Messages pushed by the server corresponding to the application to the electronic device, such as news messages sent to the electronic device by the WeChat server, or sent to the electronic device by the server of the application store Application update news of electronic equipment, etc. 2. Messages generated locally by electronic devices, such as missed calls, alarms, or reminders.
在本申请的一些实施例中,应用程序的未读消息可以是指,电子设备还没有呈现具体内容的消息。其中,电子设备呈现消息的具体内容是指,电子设备启动对应的应用程序,并显示该消息的具体内容或者语音播报该消息的具体内容。可理解的,电子设备接收到新消息后在通知栏或者锁屏界面上显示该新消息的通知信息,不属于电子设备呈现该新消息的具体内容。In some embodiments of the present application, the unread message of the application program may refer to a message that the electronic device has not yet presented specific content. Wherein, the specific content of the message presented by the electronic device refers to that the electronic device starts the corresponding application and displays the specific content of the message or broadcasts the specific content of the message by voice. It is understandable that the electronic device displays the notification information of the new message on the notification bar or the lock screen interface after receiving the new message, which does not belong to the specific content of the new message presented by the electronic device.
举例来说,电子设备上安装的即时通讯应用(例如微信(WeChat))接收到某个联系人发送的新消息(例如文本信息“你好”)时,该电子设备在锁屏界面上显示的文本类通知消息“微信收到1条新消息”、在显示屏顶部区域的通知栏中显示的文本类通知消息“xx发来1条新消息”等,不属于电子设备呈现该新消息的具体内容。在用户打开微信,并选中该联系人打开和该联系人的聊天界面后,电子设备可以显示该文本信息“你好”,此时电子设备呈现了该新消息的具体内容。For example, when an instant messaging application (such as WeChat) installed on an electronic device receives a new message (such as the text message "Hello") from a contact, the electronic device displays the message on the lock screen The text notification message "WeChat received 1 new message", the text notification message "xx sent 1 new message" displayed in the notification bar at the top area of the display screen, etc., are not specific to the electronic device presenting the new message. content. After the user opens WeChat and selects the contact to open the chat interface with the contact, the electronic device can display the text message "Hello", and the electronic device presents the specific content of the new message.
在本申请的另一些实施例中,应用程序的未读消息可以是指,该应用程序中被用户设置为需要提醒的消息类型所对应的消息中,电子设备还没有呈现具体内容的消息。例如,对于微信来说,如果用户对某个联系人设置了消息免打扰,则电子设备接收到该联系人发送的新消息后,即使电子设备未显示该新消息,该新消息也不属于微信的未读消息。In some other embodiments of the present application, the unread message of the application may refer to a message corresponding to the message type set by the user to need to be reminded in the application, and the electronic device has not yet presented a message with specific content. For example, for WeChat, if the user sets Do Not Disturb to a contact, after the electronic device receives a new message sent by the contact, even if the electronic device does not display the new message, the new message does not belong to WeChat Of unread messages.
在本申请以下实施例中,应用程序的指示信息用于指示该应用程序。应用程序的指示信息可包括应用程序的图标、文本信息、动画或其他类型的可视化界面元素。其中,应用程序的图标可以包括:1.单个应用程序的图标,例如微信(WeChat)的图标、邮箱的图标、推特(Twitter)的图标等。2.包含多个应用程序图标的文件夹图标,例如包含多个阅读类应用程序图标的“阅读”文件夹图标。In the following embodiments of the present application, the indication information of the application program is used to indicate the application program. The indication information of the application program may include the icon, text information, animation, or other types of visual interface elements of the application program. Among them, the icon of the application program may include: 1. The icon of a single application program, such as the icon of WeChat, the icon of mailbox, the icon of Twitter, etc. 2. A folder icon containing multiple application icons, such as a "reading" folder icon containing multiple reading application icons.
下面,首先介绍本申请实施例中涉及的电子设备。本申请实施例中的电子设备安装有一个或多个应用程序。本申请对提及的电子设备的类型不做具体限定,电子设备可以为手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载iOS、android、microsoft或者其他操作系统的便携式电子设备。在本申请其他一些实施例中,电子设备也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机、智能电视机等。In the following, the electronic equipment involved in the embodiments of the present application is first introduced. The electronic device in the embodiment of the present application is installed with one or more application programs. This application does not specifically limit the types of electronic devices mentioned. The electronic devices can be mobile phones, tablets, personal digital assistants (personal digital assistants, PDAs), wearable devices, laptops and other portable electronic devices. . Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices equipped with iOS, android, microsoft or other operating systems. In some other embodiments of the present application, the electronic device may not be a portable electronic device, but a desktop computer or smart TV with a touch-sensitive surface (such as a touch panel).
参考图1A,图1A示出了本申请实施例提供的示例性电子设备100的结构示意图。Referring to FIG. 1A, FIG. 1A shows a schematic structural diagram of an exemplary electronic device 100 provided by an embodiment of the present application.
电子设备100可以包括处理器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等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and 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 (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store 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 directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它 将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信 模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递 到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. The NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或 发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through his mouth, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋 模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设 备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
图1B是本申请实施例的电子设备100的软件结构框图。FIG. 1B is a software structure block diagram of an electronic device 100 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图1B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,桌面启动器(launcher)等应用程序。其中,桌面启动器用于管理电子设备的桌面(即主屏幕)以及锁屏界面。在本申请实施例中,桌面启动器维护或者存储各个应用程序存在的未读消息的相关信息。在一些实施例中,该各个应用程序存在的未读消息的相关信息可以实现为未读消息的数量表。As shown in FIG. 1B, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and desktop launcher. Among them, the desktop launcher is used to manage the desktop (ie the main screen) and the lock screen interface of the electronic device. In the embodiment of the present application, the desktop launcher maintains or stores information related to unread messages existing in various applications. In some embodiments, the related information of the unread messages existing in each application program may be implemented as a quantity table of unread messages.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图1B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器,推送消息接收模块,输入子系统(input子系统),canvas模块等。As shown in Figure 1B, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, push message receiving module, input subsystem (input subsystem), canvas Modules etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
推送消息接收模块可用于接收服务器推送给电子设备的消息,例如微信的服务器发送给电子设备的新闻消息、应用商店的服务器发送给电子设备的应用更新消息等。The push message receiving module can be used to receive messages pushed by the server to the electronic device, such as news messages sent by the WeChat server to the electronic device, application update messages sent by the server of the application store to the electronic device, and so on.
输入子系统可用于接收内核层上报的输入事件,并将该输入事件传输给应用程序层。The input subsystem can be used to receive input events reported by the kernel layer and transmit the input events to the application layer.
canvas模块是图形图像绘制的抽象层。canvas模块将计算机显示驱动设备相关的图像绘制操作方法抽象成通俗易懂的接口,方便应用程序层中的应用程序调用。例如经过canvas模块抽象后,canvas给应用程序层提供画布、画笔等方法,屏蔽了晦涩难懂的概念。The canvas module is an abstract layer for drawing graphics and images. The canvas module abstracts the image drawing operation methods related to the computer display drive device into an easy-to-understand interface, which is convenient for application calls in the application layer. For example, after the canvas module is abstracted, canvas provides methods such as canvas and paintbrush to the application layer, shielding obscure concepts.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。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 multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the electronic device 100 will be exemplified in conjunction with capturing a photo scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.). The original input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera 193 captures still images or videos.
下面介绍电子设备100提供的示例性图形用户界面。The following describes an exemplary graphical user interface provided by the electronic device 100.
图2A及图2B示例性示出了电子设备100上的一种开启“锁屏聚合”的操作。2A and FIG. 2B exemplarily show an operation of turning on "lock screen aggregation" on the electronic device 100.
参考图2A,用户界面21用于展示电子设备上已安装的应用程序。用户界面21可包括:状态栏、日历和时间widget、天气widget、页面指示符、具有常用应用程序图标的托盘、其他应用程序图标以及导航栏。用户界面21可以为电子设备100提供的主屏幕(home screen)。Referring to FIG. 2A, the user interface 21 is used to display applications installed on the electronic device. The user interface 21 may include: a status bar, a calendar and time widget, a weather widget, a page indicator, a tray with commonly used application icons, other application icons, and a navigation bar. The user interface 21 may be a home screen provided by the electronic device 100.
如图2A及图2B所示,当电子设备检测到在状态栏上的向下滑动手势时,响应于该手势,电子设备100可以在用户界面21上显示窗口201。窗口201中可以显示有“锁屏聚合”的开关控件201A,还可以显示有其他功能(如Wi-Fi、蓝牙、手电筒等等)的开关控件。“锁屏聚合”的开关控件201A的表现形式可以为文本信息或者图标。不限于在图2A所示的用户界面21上通过向下滑动的手势来打开窗口201,用户还可以在其他用户界面上通过向下滑动的手势来打开窗口201,本申请实施例对此不做限制。As shown in FIGS. 2A and 2B, when the electronic device detects a downward sliding gesture on the status bar, the electronic device 100 may display a window 201 on the user interface 21 in response to the gesture. The window 201 can display the switch control 201A of "lock screen aggregation", and can also display the switch control of other functions (such as Wi-Fi, Bluetooth, flashlight, etc.). The expression form of the switch control 201A of the "lock screen aggregation" may be a text message or an icon. It is not limited to the user interface 21 shown in FIG. 2A to open the window 201 through a downward sliding gesture. The user can also open the window 201 through a downward gesture on other user interfaces, which is not done in this embodiment of the application. limit.
当检测到在窗口201中的开关控件201A上的操作(如触摸操作)时,响应于该操作,电子设备100可以开启“锁屏聚合”。When an operation (such as a touch operation) on the switch control 201A in the window 201 is detected, in response to the operation, the electronic device 100 may start the "lock screen aggregation".
图3A及图3B示例性示出了电子设备100上的另一种开启“锁屏聚合”的操作。FIG. 3A and FIG. 3B exemplarily show another operation of enabling "lock screen aggregation" on the electronic device 100.
图3A示例性示出的用户界面31可以是“设置”应用提供的“设置界面”。“设置”应用是安装于智能手机、平板电脑等电子设备上的一款用于设置电子设备的各项功能的应用程序。该用户界面31可以是用户点击图2A所示的用户界面21中的设置图标而打开的用户界面。The user interface 31 exemplarily shown in FIG. 3A may be a "setting interface" provided by a "settings" application. The "Settings" application is an application that is installed on electronic devices such as smart phones and tablets to set various functions of electronic devices. The user interface 31 may be a user interface opened by the user clicking the setting icon in the user interface 21 shown in FIG. 2A.
如图3A所示,用户界面31显示有包括一个或多个设置项的区域301。区域301中包括“锁屏聚合”设置项301A。当检测到在“锁屏聚合”设置项301A上的操作(如触摸操作)时,响应于该操作,电子设备可显示如图3B所示的用户界面32。As shown in FIG. 3A, the user interface 31 displays an area 301 including one or more setting items. The area 301 includes a "lock screen aggregation" setting item 301A. When an operation (such as a touch operation) on the "lock screen aggregation" setting item 301A is detected, in response to the operation, the electronic device may display a user interface 32 as shown in FIG. 3B.
如图3B所示,用户界面32可包括“锁屏聚合”的开关控件302以及提示信息303。开关控件302用于监听开启/关闭“锁屏聚合”的操作(例如触摸操作)。如图3B所示,当检测到在开关控件302上的操作(如触摸操作)时,响应于该操作,电子设备100可以开启“锁屏聚合”。开关控件302的表现形式可以为文本信息或者图标。提示信息303可用于介绍“锁屏聚合”的作用。提示信息303的表现形式可以为文本信息、图片或者图标。As shown in FIG. 3B, the user interface 32 may include a switch control 302 of “lock screen aggregation” and prompt information 303. The switch control 302 is used to monitor the operation (for example, touch operation) of turning on/off the "lock screen aggregation". As shown in FIG. 3B, when an operation (such as a touch operation) on the switch control 302 is detected, in response to the operation, the electronic device 100 can start the "lock screen aggregation". The form of the switch control 302 may be text information or icons. The prompt message 303 can be used to introduce the function of "lock screen aggregation". The presentation form of the prompt information 303 may be text information, pictures or icons.
不限于图2A-图2B、图3A-图3B示出的两种开启“锁屏聚合”的方式,在其他一些实施例中,用户还可以通过其他方式开启“锁屏聚合”。It is not limited to the two ways of enabling "lock screen aggregation" shown in FIGS. 2A-2B and FIGS. 3A-3B. In some other embodiments, the user may also enable "lock screen aggregation" in other ways.
例如,电子设备处于锁定状态或者解锁状态时,用户可以输入手势、语音指令、针对电子设备的一次或多次摇晃操作、在实体按键上的按压操作等等,来触发电子设备开启“锁屏聚合”。手势可包括触摸手势以及悬浮手势,触摸屏手势是指用户手指直接接触到电子设备的显示屏的手势,悬浮手势是指用户手指不接触到电子设备的显示屏的手势。在实体按键上的按压操作例如可包括在电子设备的实体音量键(提高音量键或者降低音量键)上的两次按压操作等。For example, when the electronic device is in the locked or unlocked state, the user can input gestures, voice commands, one or more shaking operations on the electronic device, pressing on a physical button, etc., to trigger the electronic device to start the "lock screen aggregation" ". Gestures may include touch gestures and hovering gestures. A touch screen gesture refers to a gesture where a user's finger directly touches the display screen of an electronic device, and a hovering gesture refers to a gesture where the user's finger does not touch the display screen of the electronic device. The pressing operation on the physical key may include, for example, two pressing operations on the physical volume key (volume up key or volume down key) of the electronic device.
又例如,用户可以在电子设备开机后提供的开机向导中触发电子设备开启“应用聚合”等。For another example, the user can trigger the electronic device to start "application aggregation" in the boot wizard provided after the electronic device is turned on.
又例如,电子设备也可以在开机后自动开启“应用聚合”等。For another example, the electronic device can also automatically start "application aggregation" after booting.
在本申请一些实施例中,电子设备开启“锁屏聚合”之后,还可以在状态栏中显示“锁屏聚合”已开启的提示信息。例如,在状态栏中显示“锁屏聚合”的图标或文本信息等。In some embodiments of the present application, after the “lock screen aggregation” is enabled, the electronic device may also display a prompt message that the “lock screen aggregation” has been turned on in the status bar. For example, display the "lock screen aggregation" icon or text information in the status bar.
图4A-图4B示例性示出了电子设备开启“锁屏聚合”之前,在锁定状态下提供的两种示例性锁屏界面。4A-4B exemplarily show two exemplary lock screen interfaces provided by the electronic device in the locked state before the "lock screen aggregation" is turned on.
图4A所示的用户界面41可以为电子设备点亮全部显示屏所提供的锁屏界面。如图4A所示,用户界面41可包括:状态栏401、时间widget 402、锁屏图标403、相机的图标404。其中,状态栏401可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符、运营商名称(例如“中国移动”)、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符,电池状态指示符、时间指示符等。时间widget 402可用于指示当前时间,例如日期、星期几、时分信息等。锁屏图标403用于指示当前电子设备处于锁定状态。相机的图标可用于接收用户操作(例如触摸操作),响应于该用户操作,电子设备可以启动相机应用。The user interface 41 shown in FIG. 4A may be a lock screen interface provided by the electronic device to light up all the display screens. As shown in FIG. 4A, the user interface 41 may include: a status bar 401, a time widget 402, a lock screen icon 403, and a camera icon 404. Wherein, the status bar 401 may include: one or more signal strength indicators of mobile communication signals (also called cellular signals), the name of the operator (for example, "China Mobile"), and wireless fidelity (Wi-Fi) ) One or more signal strength indicators of the signal, battery status indicator, time indicator, etc. The time widget 402 can be used to indicate the current time, such as date, day of the week, hour and minute information, etc. The lock screen icon 403 is used to indicate that the current electronic device is in a locked state. The icon of the camera can be used to receive user operations (for example, touch operations), and in response to the user operations, the electronic device can start the camera application.
图4B所示的用户界面42可以为电子设备点亮部分显示屏所提供的锁屏界面。如图4B所示,用户界面42可包括时间信息405。时间信息405用于指示当前时间。从图4B可以看出,电子设备仅点亮了时间信息405所在区域对应的像素点,其余像素点没有被点亮。The user interface 42 shown in FIG. 4B may be a lock screen interface provided by the electronic device to light up part of the display screen. As shown in FIG. 4B, the user interface 42 may include time information 405. The time information 405 is used to indicate the current time. It can be seen from FIG. 4B that the electronic device only lights up the pixels corresponding to the area where the time information 405 is located, and the other pixels are not lit.
不限于图4A或图4B所示的锁屏界面,在其他一些实施例中,电子设备在锁定状态下,还可以停止显示屏的电源供应,即熄屏,显示屏不显示任何界面内容。It is not limited to the lock screen interface shown in FIG. 4A or FIG. 4B. In some other embodiments, when the electronic device is in the locked state, the power supply of the display screen can be stopped, that is, the screen is turned off, and the display screen does not display any interface content.
开启“锁屏聚合”后,电子设备可以在锁定状态下提示用户当前有哪些应用程序存在未读消息。这里,电子设备开启“锁屏聚合”的方式可参照前文相关描述。After the "lock screen aggregation" is turned on, the electronic device can prompt the user which applications currently have unread messages in the locked state. Here, the way for the electronic device to enable "lock screen aggregation" can refer to the previous description.
在本申请实施例中,电子设备可以通过显示锁屏界面,来提示用户当前有哪些应用程序 存在未读消息。用户无需解除电子设备的锁定状态,通过锁屏界面即可方便快捷地了解到有哪些应用程序存在未读消息。In this embodiment of the present application, the electronic device may display a lock screen interface to prompt the user which applications currently have unread messages. The user does not need to release the locked state of the electronic device, and can easily and quickly learn which applications have unread messages through the lock screen interface.
在本申请实施例中,电子设备可以点亮全部显示屏来显示锁屏界面,也可以点亮部分显示屏来显示锁屏界面。In the embodiment of the present application, the electronic device may light up all the display screens to display the lock screen interface, or light up part of the display screens to display the lock screen interface.
图5A-图5D可以为电子设备点亮全部显示屏所显示的锁屏界面。Figures 5A-5D can light up all the lock screen interfaces displayed on the display screens of the electronic device.
在本申请的一些实施例中,电子设备可以在熄屏状态下接收到用于点亮全部显示屏的用户操作,响应于该用户操作点亮全部显示屏来显示图5A-图5D所示的锁屏界面。该用于点亮全部显示屏的用户操作可包括但不限于:语音指令(例如语音指令“亮屏”)、手势指令、在实体电源键(power button)上接收到的按压操作、在实体音量键上接收到的按压操作(一次或两次按压操作)等。在一种具体的实施方式中,一些用于点亮全部显示屏的用户操作,和上述实施例中提及的用于触发电子设备开启“锁屏聚合”的用户操作,可以为同一操作。例如,在熄屏状态下,若用户在实体音量键上输入两次按压操作,则电子设备可以开启“锁屏聚合”,并且,同时点亮全部显示屏显示图5A-图5D所示的锁屏界面。In some embodiments of the present application, the electronic device may receive a user operation for turning on all the display screens in the off-screen state, and in response to the user operation, turn on all the display screens to display the display shown in FIGS. 5A-5D Lock screen interface. The user operation for lighting up all the display screens may include, but is not limited to: voice commands (for example, voice commands "turn on the screen"), gesture commands, pressing operations received on the physical power button, and physical volume Press operation (one or two press operations) received on the key, etc. In a specific implementation, some user operations for illuminating all the display screens and the user operations for triggering the electronic device to enable "lock screen aggregation" mentioned in the above embodiment may be the same operations. For example, in the off-screen state, if the user enters two pressing operations on the physical volume key, the electronic device can turn on the "lock screen aggregation", and light up all the screens at the same time to display the lock shown in Figure 5A-5D Screen interface.
在本申请的另一些实施例中,如果电子设备在解锁状态并且亮屏状态下,在预设时长(例如10秒)内没有接收到任何用户操作,则电子设备可以点亮全部显示屏来显示图5A-图5D所示的锁屏界面。亮屏状态可包括点亮部分显示屏的状态或者点亮全部显示屏的状态。In some other embodiments of the present application, if the electronic device is in the unlocked state and the screen is on, and no user operation is received within a preset period of time (for example, 10 seconds), the electronic device may light up all the display screens to display Figure 5A-5D shows the lock screen interface. The screen-on state may include the state of lighting up part of the display screen or the state of lighting up all the display screens.
在本申请的又一些实施例中,电子设备可以在锁定状态并且点亮部分显示屏的状态下,接收到用于点亮全部显示屏的用户操作,响应于该用户操作点亮全部显示屏来显示图5A-图5D所示的锁屏界面。该用户操作可包括但不限于:语音指令(例如语音指令“亮屏”)、手势指令等。In still other embodiments of the present application, the electronic device may receive a user operation to light up all the display screens in a locked state and light up part of the display screen, and light up all the display screens in response to the user operation. The lock screen interface shown in Figure 5A-5D is displayed. The user operation may include, but is not limited to: voice instructions (for example, voice instructions "turn on the screen"), gesture instructions, and so on.
参考图5A,用户界面51可包括:状态栏501、锁屏图标502、用于展示当前存在未读消息的应用程序的图标的区域503、相机的图标504。其中:Referring to FIG. 5A, the user interface 51 may include: a status bar 501, a lock screen icon 502, an area 503 for displaying icons of applications that currently have unread messages, and a camera icon 504. among them:
状态栏501可参照图4A中的状态栏401、锁屏图标502可参照图4A中的锁屏图标403、相机的图标504可参照图4A中相机的图标404,这里不再赘述。The status bar 501 may refer to the status bar 401 in FIG. 4A, the lock screen icon 502 may refer to the lock screen icon 403 in FIG. 4A, and the camera icon 504 may refer to the camera icon 404 in FIG. 4A, which will not be repeated here.
区域503中显示有当前存在未读消息的应用程序的图标。如图5A所示,区域503中可包括“阅读”文件夹的图标503A、支付宝的图标503B、京东的图标503C、应用商店的图标503D、stored的图标503E、股票的图标503F。其中,“阅读”文件夹内包含一个或多个存在未读消息的应用程序。可理解的,在一些实施例中,电子设备也可以不显示文件夹的图标,直接显示文件夹内存在未读消息的应用程序的图标。通过区域503中所显示的当前存在未读消息的应用程序的图标,用户可以在电子设备的锁定状态下,快速方便地了解到当前有哪些应用程序存在未读消息。The area 503 displays the icons of the applications that currently have unread messages. As shown in FIG. 5A, the area 503 may include the icon 503A of the "read" folder, the icon 503B of Alipay, the icon 503C of JD, the icon 503D of the application store, the icon 503E of stored, and the icon 503F of stocks. Among them, the "read" folder contains one or more applications with unread messages. It is understandable that, in some embodiments, the electronic device may not display the icon of the folder, but directly display the icon of the application program that has unread messages in the folder. Through the icons of the applications that currently have unread messages displayed in the area 503, the user can quickly and conveniently learn which applications currently have unread messages in the locked state of the electronic device.
在一些实施例中,如果当前存在未读消息的应用程序的数量较多,则在锁定状态下,电子设备可以通过以下两种方式提示用户当前存在未读消息的应用程序:In some embodiments, if there are currently a large number of applications with unread messages, in the locked state, the electronic device can prompt the user that there are currently applications with unread messages in the following two ways:
(1)电子设备可以缩小存在未读消息的应用程序的图标,将缩小后的图标显示在同一个锁屏界面上。(1) The electronic device can reduce the icons of the application programs with unread messages, and display the reduced icons on the same lock screen interface.
(2)电子设备可以通过多个锁屏界面来显示当前存在未读消息的应用程序的图标。参考图5B及图5C所示的用户界面,电子设备可以将当前存在未读消息的应用程序的图标分布在多个锁屏界面上。(2) The electronic device can display icons of applications that currently have unread messages through multiple lock screen interfaces. With reference to the user interfaces shown in FIG. 5B and FIG. 5C, the electronic device may distribute the icons of the application programs that currently have unread messages on multiple lock screen interfaces.
在一些实施例中,用户可以在锁屏界面上通过向左滑动或者向右滑动的手势来查看其他锁屏界面。例如,用户可以在图5B所示的用户界面52上输入向左滑动的手势,响应于该滑 动手势,电子设备可以显示如图5C所示的用户界面53。在本申请实施例中,图5B所示的用户界面52可以被称为第一界面,图5C所示的用户界面53可以被称为第二界面。第一界面包括部分存在未读消息的应用程序的图标,第二界面包括部分存在未读消息的应用程序的图标。第一界面和第二界面中显示的应用程序的图标不同。In some embodiments, the user can view other lock screen interfaces by swiping left or right on the lock screen interface. For example, the user may input a leftward sliding gesture on the user interface 52 shown in FIG. 5B, and in response to the sliding gesture, the electronic device may display the user interface 53 as shown in FIG. 5C. In the embodiment of the present application, the user interface 52 shown in FIG. 5B may be referred to as the first interface, and the user interface 53 shown in FIG. 5C may be referred to as the second interface. The first interface includes some icons of applications with unread messages, and the second interface includes some icons of applications with unread messages. The icons of the application programs displayed in the first interface and the second interface are different.
在一些实施例中,电子设备还可以显示页面指示符,用于指示当前显示的是哪一个锁屏界面。参考图5B,页面指示符505中包括两个圆圈,表示当前存在未读消息的应用程序的图标分布在两个锁屏界面上,第一个圆圈内部用黑色填充,表示如5B所示的用户界面52为第一个锁屏界面。参考图5C,页面指示符506用于指示用户界面53为第二个锁屏界面。In some embodiments, the electronic device may also display a page indicator to indicate which lock screen interface is currently displayed. Referring to Figure 5B, the page indicator 505 includes two circles, indicating that the icons of the applications that currently have unread messages are distributed on the two lock screen interfaces. The inside of the first circle is filled with black, indicating the user as shown in 5B Interface 52 is the first lock screen interface. Referring to FIG. 5C, the page indicator 506 is used to indicate that the user interface 53 is the second lock screen interface.
电子设备在点亮全部显示屏来展示存在未读消息的应用程序的图标时,电子设备可以使用以下几种策略,在锁屏界面上排列存在未读消息的应用程序的图标:When an electronic device lights up all the display screens to display the icons of applications with unread messages, the electronic device can use the following strategies to arrange the icons of applications with unread messages on the lock screen:
(1)按照未读消息条数的多少来依次排列应用程序的图标。未读消息条数越多的应用程序的图标排列在前,或者,未读消息条数越少的应用程序的图标排列在前。示例性地,参考图5A或图5B-图5C,电子设备可以根据未读消息条数从少至多,依次排列存在未读消息的应用程序的图标。(1) Arrange application icons in order according to the number of unread messages. The icons of applications with more unread messages are arranged first, or the icons of applications with fewer unread messages are arranged first. Exemplarily, referring to FIG. 5A or FIG. 5B-5C, the electronic device may sequentially arrange the icons of the application programs that have unread messages according to the number of unread messages from as few to as many.
(2)按照应用程序最近一次接收到未读消息的时间,即按照最新未读消息的生成时间,从早至晚,或者,从晚至早,依次排列存在未读消息的应用程序的图标。(2) According to the time when the application program received the unread message last time, that is, according to the generation time of the latest unread message, from morning to night, or from night to morning, sequentially arrange the icons of the application programs with unread messages.
(3)按照应用程序的下载时间,即按照应用程序的安装时间,从早至晚,或者,从晚至早,依次排列存在未读消息的应用程序的图标。(3) According to the download time of the application, that is, according to the installation time of the application, from morning to night, or from night to morning, the icons of the applications with unread messages are arranged in sequence.
不限于上述提及的几种策略,具体实现中,电子设备还可以使用其他策略在锁屏界面上排列存在未读消息的应用程序的图标,本申请实施例对此不做限制。例如,电子设备还可以按照应用程序在桌面或者主屏幕上的排列顺序,按照应用程序的首字母顺序,或者按照应用程序的使用频率等,依次在锁屏界面上排列存在未读消息的应用程序的图标。又例如,电子设备还可以在锁屏界面上随机排列存在未读消息的应用程序的图标。It is not limited to the several strategies mentioned above. In specific implementation, the electronic device can also use other strategies to arrange the icons of the application programs with unread messages on the lock screen interface, which is not limited in the embodiment of the present application. For example, the electronic device can also arrange the applications with unread messages on the lock screen according to the order in which the applications are arranged on the desktop or the home screen, according to the initial order of the applications, or according to the frequency of use of the applications, etc. Icon. For another example, the electronic device may also randomly arrange the icons of applications with unread messages on the lock screen interface.
具体实现中,电子设备在锁屏界面上排列存在未读消息的应用程序图标的策略,可以用户设置的,也可以是电子设备默认设置的。In specific implementation, the strategy for the electronic device to arrange application icons with unread messages on the lock screen interface may be set by the user or set by the electronic device by default.
在本申请的一些实施例中,电子设备在锁屏界面上显示存在未读消息的应用程序的图标时,最新未读消息的生成时间越晚的应用程序的图标的明度越高。这样用户可以通过图标的明度,直接获知哪些应用程序最新接收到未读消息。In some embodiments of the present application, when the electronic device displays the icon of the application program with unread messages on the lock screen interface, the brightness of the icon of the application program with the later generation time of the latest unread message is higher. In this way, users can directly know which applications have received unread messages from the brightness of the icons.
在本申请实施例中,电子设备在锁屏界面上显示存在未读消息的应用程序的图标时,还可以在该图标上显示角标,角标内包含数值。示例性地,参考图5A,电子设备可以在用户界面51上显示角标503G-503L。In this embodiment of the present application, when the electronic device displays an icon of an application program with unread messages on the lock screen interface, it may also display a corner mark on the icon, and the corner mark contains a value. Exemplarily, referring to FIG. 5A, the electronic device may display the corner marks 503G-503L on the user interface 51.
在一些实施例中,角标内的数值可以为对应应用程序的全部未读消息的条数。例如,角标503J中的数值“7”为应用商店的全部未读消息条数。In some embodiments, the value in the subscript may be the number of all unread messages corresponding to the application. For example, the value "7" in the subscript 503J is the total number of unread messages in the application store.
在另一些实施例中,角标内的数值可以为对应应用程序中部分未读消息的条数。例如,角标内的数值可以为被用户设置为需要提醒的消息类型所对应的未读消息的条数。举例来说,对于微信(WeChat),如果用户对某个联系人设置了消息免打扰,则微信图标上角标的数值不包括该联系人发送的未读消息的条数。In other embodiments, the value in the subscript may be the number of some unread messages in the corresponding application. For example, the value in the subscript may be the number of unread messages corresponding to the message type that is set by the user to be reminded. For example, for WeChat (WeChat), if the user sets Do Not Disturb for a certain contact, the value marked on the WeChat icon does not include the number of unread messages sent by the contact.
可理解的,当锁屏界面上显示的图标为包含多个应用程序图标的文件夹图标时,该文件夹图标上角标内的数值可以为该多个应用程序存在的全部或部分未读消息的总条数。Understandably, when the icon displayed on the lock screen interface is a folder icon containing multiple application icons, the value in the corner of the folder icon can be all or part of the unread messages that exist in the multiple applications The total number of entries.
不限于图5A-图5C所示的圆形角标,在本申请一些实施例中,角标还可以实现为其他形 状,例如三角形、正方形或不规则图形等。不限于图5A-图5C所示的在应用程序图标的右上角显示图标,在本申请的一些实施例中,还可以在应用程序图标的左上角、左下角、右下角或中间区域等显示角标。It is not limited to the round corner markers shown in Figs. 5A to 5C. In some embodiments of the present application, the corner markers can also be implemented in other shapes, such as triangles, squares, or irregular figures. It is not limited to the display of the icon in the upper right corner of the application icon as shown in FIGS. 5A-5C. In some embodiments of the present application, it may also be displayed in the upper left corner, lower left corner, lower right corner or middle area of the application icon. Mark.
通过图5A-图5C实施例,电子设备可以在锁屏界面上显示存在未读消息的应用程序的图标。在一些实施例中,还可以在该图标上显示包含数值的角标,该数值为对应应用程序存在的未读消息的条数。这样可以使得用户不必解锁,通过锁屏界面即可获知当前有哪些应用程序存在未读消息。With the embodiments in FIG. 5A-5C, the electronic device can display the icon of the application program with the unread message on the lock screen interface. In some embodiments, a subscript containing a numerical value may also be displayed on the icon, and the numerical value is the number of unread messages in the corresponding application. This allows the user to know which applications currently have unread messages through the lock screen interface without having to unlock.
不限于在锁屏界面上显示存在未读消息的应用程序的图标,电子设备还可以通过其他方式来提示用户当前有哪些应用程序存在未读消息。例如,用户还可以在锁屏界面上显示文本信息来提示用户当前有哪些应用程序存在未读消息。示例性地,参考图5D,图5D示出了电子设备提供的又一种可能的锁屏界面,该锁屏界面通过文本信息来提示用户当前有哪些应用程序存在未读消息。如图5D所示,用户界面54包括:状态栏507、锁屏图标508、文本信息509、相机的图标511。其中:It is not limited to displaying icons of applications with unread messages on the lock screen interface, and the electronic device may also prompt the user which applications currently have unread messages in other ways. For example, the user can also display text information on the lock screen interface to remind the user which applications currently have unread messages. Exemplarily, referring to FIG. 5D, FIG. 5D shows another possible lock screen interface provided by an electronic device. The lock screen interface prompts the user which applications currently have unread messages through text information. As shown in FIG. 5D, the user interface 54 includes: a status bar 507, a lock screen icon 508, text information 509, and a camera icon 511. among them:
状态栏507可参照图4A中的状态栏401、锁屏图标508可参照图4A中的锁屏图标403、相机的图标511可参照图4A中相机的图标404,这里不再赘述。文本信息509用于提示用户当前有哪些应用程序存在未读消息。文本信息509可以包括当前存在未读消息的应用程序的名称。在一些实施例中,文本信息509还可包括各个应用程序存在的未读消息条数。The status bar 507 may refer to the status bar 401 in FIG. 4A, the lock screen icon 508 may refer to the lock screen icon 403 in FIG. 4A, and the camera icon 511 may refer to the camera icon 404 in FIG. 4A, which will not be repeated here. The text information 509 is used to prompt the user which applications currently have unread messages. The text information 509 may include the name of an application program that currently has an unread message. In some embodiments, the text information 509 may also include the number of unread messages in each application.
在一些实施例中,如果当前存在未读消息的应用程序的数量较多,则用户界面54中还可包括控件510。控件510可用于接收用户操作(例如触摸操作),响应于该用户操作,电子设备可以在用户界面54上显示更多的文本信息,从而提示用户其他存在未读消息的应用程序。In some embodiments, if there are currently a large number of applications with unread messages, the user interface 54 may further include a control 510. The control 510 can be used to receive a user operation (for example, a touch operation). In response to the user operation, the electronic device can display more text information on the user interface 54 to prompt the user of other applications with unread messages.
图6A及图6B可以为电子设备点亮部分显示屏所显示的锁屏界面。电子设备在点亮部分显示屏来显示锁屏界面时,锁屏界面上呈现的图标、文本信息等可视化界面元素所对应的像素点被点亮,其余像素点没有被点亮。Fig. 6A and Fig. 6B can show the lock screen interface displayed on a part of the display screen of the electronic device. When the electronic device lights up part of the display screen to display the lock screen interface, the pixels corresponding to the visual interface elements such as icons and text information presented on the lock screen interface are lighted up, and the remaining pixels are not lighted up.
在本申请的一些实施例中,电子设备可以在熄屏状态下接收到用于点亮部分显示屏的用户操作时,点亮部分显示屏来显示图6A或图6B所示的锁屏界面。该用于点亮部分显示屏的用户操作可包括但不限于:熄屏状态下接收到的语音指令(例如语音指令“点亮部分屏幕”)、手势指令等。In some embodiments of the present application, the electronic device may light up a part of the display screen to display the lock screen interface shown in FIG. 6A or FIG. 6B when receiving a user operation for lighting a part of the display screen in the screen off state. The user operation for illuminating part of the display screen may include, but is not limited to: voice instructions received in the off-screen state (for example, voice instructions "light up part of the screen"), gesture instructions, and the like.
在本申请的另一些实施例中,如果电子设备在解锁状态并且在点亮全部显示屏的状态下,在预设时长(例如15秒)内没有接收到任何用户操作,则电子设备可以点亮部分显示屏来显示图6A或图6B所示的锁屏界面。在这种情况下,电子设备可以持续显示图6A或图6B所示的锁屏界面,直至电子设备接收到用于点亮全部显示屏的操作或者用于熄屏的操作。In some other embodiments of the present application, if the electronic device is in the unlocked state and all the display screens are turned on, and no user operation is received within a preset period of time (for example, 15 seconds), the electronic device can be turned on Part of the display screen to display the lock screen interface shown in Figure 6A or Figure 6B. In this case, the electronic device may continue to display the lock screen interface shown in FIG. 6A or FIG. 6B until the electronic device receives an operation for turning on all the display screens or an operation for turning off the screen.
在本申请的又一些实施例中,如果电子设备在锁定状态并且在点亮全部显示屏的状态下,在预设时长(例如5秒)内没有接收到任何用户操作,则电子设备可以点亮部分显示屏来显示图6A或图6B所示的锁屏界面。在这种情况下,电子设备可以持续显示图6A或图6B所示的锁屏界面,直至电子设备接收到用于点亮全部显示屏的操作或者用于熄屏的操作。In still other embodiments of the present application, if the electronic device is in the locked state and all the display screens are on, and no user operation is received within a preset period of time (for example, 5 seconds), the electronic device can light up Part of the display screen to display the lock screen interface shown in Figure 6A or Figure 6B. In this case, the electronic device may continue to display the lock screen interface shown in FIG. 6A or FIG. 6B until the electronic device receives an operation for turning on all the display screens or an operation for turning off the screen.
参考图6A,用户界面61可包括:当前存在未读消息的应用程序的图标。在一些实施例中,如果当前存在未读消息的应用程序的数量较多,则电子设备可以在用户界面61上每隔预设时长(例如5秒)切换显示不同的存在未读消息的应用程序的图标。举例来说,若当前存在未读消息的应用程序的数量为20个,则电子设备可以在显示屏上先显示第1-10个存在未 读消息的应用程序,5秒后显示第11-20个存在未读消息的应用程序,5秒后再循环显示第1-10个存在未读消息的应用程序。Referring to FIG. 6A, the user interface 61 may include: icons of applications that currently have unread messages. In some embodiments, if there are currently a large number of applications with unread messages, the electronic device may switch and display different applications with unread messages on the user interface 61 every preset time period (for example, 5 seconds). Icon. For example, if the current number of applications with unread messages is 20, the electronic device can first display the 1-10 applications with unread messages on the display screen, and display the 11-20 applications after 5 seconds. An application with unread messages will display the 1-10th application with unread messages in a loop after 5 seconds.
电子设备在点亮部分显示屏来展示存在未读消息的应用程序的图标时,排列这些图标时所使用的策略,可以参考前述实施例中电子设备在点亮全部显示屏来展示存在未读消息的应用程序的图标所使用的策略,在此不再赘述。When the electronic device lights up part of the display screen to display the icons of the application programs with unread messages, the strategy used when arranging these icons can refer to the previous embodiment when the electronic device lights up all the display screens to show the presence of unread messages. The strategy used by the icon of the application will not be repeated here.
参考图6A,电子设备在锁屏界面上显示存在未读消息的应用程序的图标时,还可以在该图标上显示角标,角标内包含数值。这里,角标的形状、显示位置、角标内数值的确定方式,可参照前文图5A-图5C中的相关描述。Referring to FIG. 6A, when the electronic device displays an icon of an application with an unread message on the lock screen interface, it may also display a corner mark on the icon, and the corner mark contains a value. Here, the shape of the corner marker, the display position, and the determination method of the value in the corner marker can refer to the related descriptions in Figures 5A to 5C above.
通过图6A实施例,电子设备可以在锁屏界面上显示存在未读消息的应用程序的图标。在一些实施例中,还可以在该图标上显示包含数值的角标,该数值为对应应用程序存在的未读消息的条数。这样可以使得用户不必解锁,通过锁屏界面即可获知当前有哪些应用程序存在未读消息。Through the embodiment of FIG. 6A, the electronic device can display the icon of the application program with the unread message on the lock screen interface. In some embodiments, a subscript containing a numerical value may also be displayed on the icon, and the numerical value is the number of unread messages in the corresponding application. This allows the user to know which applications currently have unread messages through the lock screen interface without having to unlock.
不限于在锁屏界面上显示存在未读消息的应用程序的图标,电子设备还可以通过其他方式来提示用户当前有哪些应用程序存在未读消息。例如,用户还可以在锁屏界面上显示文本信息来提示用户当前有哪些应用程序存在未读消息。示例性地,参考图6B,图6B示出了电子设备提供的又一种可能的锁屏界面,该锁屏界面通过文本信息来提示用户当前有哪些应用程序存在未读消息。如图6B所示,用户界面62包括文本信息,该文本信息用于提示用户当前存在未读消息的应用程序。该文本信息可包括当前存在未读消息的应用程序的名称。在一些实施例中,该文本信息还可包括各个应用程序存在的未读消息条数。It is not limited to displaying icons of applications with unread messages on the lock screen interface, and the electronic device may also prompt the user which applications currently have unread messages in other ways. For example, the user can also display text information on the lock screen interface to remind the user which applications currently have unread messages. Exemplarily, referring to FIG. 6B, FIG. 6B shows another possible lock screen interface provided by an electronic device. The lock screen interface prompts the user which applications currently have unread messages through text information. As shown in FIG. 6B, the user interface 62 includes text information, which is used to prompt the user that there is currently an application program of unread messages. The text information may include the name of the application program that currently has an unread message. In some embodiments, the text information may also include the number of unread messages in each application.
在一些实施例中,如果当前存在未读消息的应用程序的数量较多,则电子设备可以在用户界面62上每隔预设时长(例如5秒)切换显示不同的文本信息,来提示用户当前有哪些应用程序存在未读消息。In some embodiments, if there are currently a large number of applications with unread messages, the electronic device can switch to display different text information on the user interface 62 every preset time (for example, 5 seconds) to remind the user that the current Which applications have unread messages.
图6A及图6B所示的点亮部分显示屏来提示用户当前有哪些应用程序存在未读消息的方式,相比点亮全部显示屏的方式,更加节省电量。The way shown in FIGS. 6A and 6B is to light up part of the display screen to prompt the user which applications currently have unread messages, which saves more power than the way to light up all the display screens.
通过上述图5A-图5D、图6A或图6B中任意一种实施方式,电子设备可以在锁屏界面上显示当前存在未读消息的应用程序的指示信息,使得用户可以无需解除电子设备的锁定状态,通过锁屏界面即可方便快捷地了解到有哪些应用程序存在未读消息。这样的显示方法对用户来说更为直观且简单有效,可以提高用户查看未读消息的效率,提升用户对电子设备的使用体验。Through any of the above-mentioned implementations in FIG. 5A-5D, FIG. 6A or FIG. 6B, the electronic device can display the indication information of the application program that currently has unread messages on the lock screen interface, so that the user does not need to unlock the electronic device Status, through the lock screen interface, you can quickly and easily understand which applications have unread messages. Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
在一些实施例中,电子设备在锁屏界面上显示的存在未读消息的应用程序的图标、文本信息,可用于接收用户操作(例如触摸操作),响应于该用户操作,电子设备可以执行以下任意一种操作:In some embodiments, the icon and text information of the application with unread messages displayed on the lock screen interface of the electronic device can be used to receive user operations (such as touch operations). In response to the user operations, the electronic device can perform the following Any operation:
1、电子设备提示用户解锁。在检测到用于将电子设备由锁定状态切换至解锁状态的操作后,电子设备开启应用程序,使得用户查看该应用程序存在未读消息。该应用程序为用户操作作用于的图标或文本信息所对应的应用程序。这里,用于将电子设备由锁定状态切换至解锁状态的操作可参照前文实施例中电子设备由锁定状态切换为解锁状态的方式,在此不再赘述。示例性地,参考7,其示出了电子设备提示用户解锁的一种方式。1. The electronic device prompts the user to unlock. After detecting the operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts the application, so that the user can view the unread message in the application. The application is the application corresponding to the icon or text information that the user operates on. Here, the operation for switching the electronic device from the locked state to the unlocked state can refer to the manner in which the electronic device is switched from the locked state to the unlocked state in the foregoing embodiment, which will not be repeated here. Exemplarily, refer to 7, which shows a way for the electronic device to prompt the user to unlock.
举例说明,在检测到作用于图5A所示的图标503D上的用户操作(例如触摸操作)时,或者,在检测到作用于图5D所示的文本信息“应用商店:7条未读消息”的用户操作(例如 触摸操作)时,响应于该用户操作,电子设备提示用户解锁,用户解除电子设备的锁定状态之后,电子设备可以运行应用商店并显示应用商店提供的用户界面。For example, when a user operation (such as a touch operation) acting on the icon 503D shown in FIG. 5A is detected, or when it is detected that it acts on the text information "application store: 7 unread messages" shown in FIG. 5D In response to a user operation (such as a touch operation), the electronic device prompts the user to unlock. After the user unlocks the electronic device, the electronic device can run the application store and display the user interface provided by the application store.
可理解的,在一些实施例中,电子设备可以响应于锁屏界面上存在未读消息的应用程序的图标、文本信息所接收到的用户操作,直接检测用于将电子设备由锁定状态切换至解锁状态的操作,无需提示用户。It is understandable that, in some embodiments, the electronic device can directly detect the user operation received by the icon and text information of the application program with unread messages on the lock screen interface to switch the electronic device from the locked state to The operation in the unlocked state does not need to prompt the user.
在一些实施例中,锁屏界面上存在未读消息的应用程序的图标、文本信息所接收到的用户操作,和,用于将电子设备由锁定状态切换至解锁状态的操作可以为同一个操作。例如,电子设备在锁屏界面上存在未读消息的应用程序的图标、文本信息上接收到的用户操作(例如触摸操作)时,可以同时采集用户的指纹,若采集到的指纹和预存的指纹相同,则将电子设备由锁定状态切换至解锁状态。In some embodiments, the icon of the application with the unread message on the lock screen interface, the user operation received by the text message, and the operation for switching the electronic device from the locked state to the unlocked state may be the same operation . For example, when the electronic device has the icon of the application program of the unread message on the lock screen interface, and the user operation (such as touch operation) received on the text message, the user's fingerprint can be collected at the same time, if the collected fingerprint and the pre-stored fingerprint Same, the electronic device is switched from the locked state to the unlocked state.
2、电子设备直接开启应用程序,使得用户查看该应用程序存在未读消息。该应用程序为用户操作作用于的图标或文本信息所对应的应用程序。具体的,在一些实施例中,部分应用程序可以在锁定状态下直接开启,即电子设备无需解锁即可开启该部分应用程序,该部分应用程序可以是用户自主设置的。在一些实施例中,电子设备直接开启应用程序后,可以仅显示该应用程序的部分内容(例如该应用程序存在的未读消息),其余内容(例如该应用程序的主界面)可以在电子设备解锁后显示。2. The electronic device directly starts the application, so that the user can view the unread messages in the application. The application is the application corresponding to the icon or text information that the user operates on. Specifically, in some embodiments, part of the application can be directly opened in the locked state, that is, the electronic device can open the part of the application without being unlocked, and the part of the application can be set by the user. In some embodiments, after the electronic device directly starts the application, it can only display part of the content of the application (for example, the unread message of the application), and the remaining content (for example, the main interface of the application) can be displayed on the electronic device. Display after unlocking.
可理解的,上述图5A-图5D、图6A、图6B及图7所示的用户界面仅为示例,不应构成对本申请的限定。It is understandable that the user interfaces shown in FIGS. 5A-5D, 6A, 6B, and 7 are only examples, and should not constitute a limitation to the present application.
电子设备在显示上述图5A-图5D、图6A或图6B所述的界面时,如果用户关闭电子设备的“锁屏聚合”,则电子设备可以重新显示“锁屏聚合”开启前的锁屏界面。“锁屏聚合”开启前的锁屏界面可参考图4A或图4B。用户关闭电子设备的“锁屏聚合”的方式有多种,例如可以通过下拉通知栏中的“锁屏聚合”开关控件关闭“锁屏聚合”,还可以通过两次摇晃电子设备来关闭“锁屏聚合”、通过语音来关闭“锁屏聚合”等,本申请实施例对此不做限制。When the electronic device displays the interface described in Figures 5A-5D, Figure 6A or Figure 6B, if the user turns off the "lock screen aggregation" of the electronic device, the electronic device can redisplay the lock screen before the "lock screen aggregation" is turned on interface. Refer to Figure 4A or Figure 4B for the lock screen interface before the "lock screen aggregation" is turned on. There are many ways for users to turn off the "lock screen aggregation" of electronic devices. For example, you can turn off the "lock screen aggregation" by pulling down the "lock screen aggregation" switch control in the notification bar, or you can turn off the "lock screen aggregation" by shaking the electronic device twice. The embodiment of the present application does not impose restrictions on the “screen aggregation”, turning off the “lock screen aggregation” by voice, etc.
在本申请实施例中,电子设备可以在亮屏及熄屏状态下接收已安装的各个应用程序的消息,并统计各个应用程序是否存在未读消息。这里,电子设备接收到的应用程序的消息,可以是服务器推送给电子设备的,也可以是电子设备运行该应用程序时所生成的。电子设备可以持续接收或者周期性接收已安装的各个应用程序存在的消息。在一些实施例中,电子设备还可以统计各个应用程序存在的未读消息的条数。In the embodiment of the present application, the electronic device can receive messages of various installed applications in the on and off states, and count whether there are unread messages in each application. Here, the message of the application program received by the electronic device may be pushed by the server to the electronic device, or may be generated when the electronic device runs the application program. The electronic device may continuously receive or periodically receive messages about the existence of various installed applications. In some embodiments, the electronic device may also count the number of unread messages in each application.
下面基于电子设备的软件架构,描述电子设备如何在锁屏界面上显示存在未读消息的应用程序的指示信息。该指示信息可以为应用程序的图标,也可以为文本信息。Based on the software architecture of the electronic device, the following describes how the electronic device displays the indication information of the application program with unread messages on the lock screen interface. The indication information can be an icon of an application program or text information.
参考图8,图8示出了电子设备开启“锁屏聚合”后,在锁屏界面上显示存在未读消息的应用程序的指示信息时,所涉及到的数据流走向示意图。可理解的,图8中示出的仅仅为电子设备中的部分软件模块,不应对电子设备的软件架构构成限定。Referring to FIG. 8, FIG. 8 shows a schematic diagram of the data flow trend involved when the electronic device displays the indication information of the application with unread messages on the lock screen interface after the "lock screen aggregation" is turned on. It is understandable that what is shown in FIG. 8 is only part of the software modules in the electronic device, and should not be limited to the software architecture of the electronic device.
在一些实施例中,应用程序框架层中的推送消息接收模块可接收到服务器推送给电子设备的消息。推送消息接收模块可以将接收到的消息发送给应用层中对应的应用程序。应用层中运行的应用程序可以接收到推送消息接收模块发送的消息,例如微信的服务器发送给电子设备的新闻消息、应用商店的服务器发送给电子设备的应用更新消息等。In some embodiments, the push message receiving module in the application framework layer may receive the message pushed by the server to the electronic device. The push message receiving module can send the received message to the corresponding application in the application layer. The applications running in the application layer can receive messages sent by the push message receiving module, such as news messages sent by the WeChat server to the electronic device, and application update messages sent by the server of the application store to the electronic device.
在另一些实施例中,应用层中运行的应用程序可以生成应用消息,例如闹钟或提醒事项等。In other embodiments, applications running in the application layer can generate application messages, such as alarm clocks or reminders.
应用层中运行的应用程序调用getContentResolver().call(Uri,String,String,Bundle)接口,通知桌面启动器当前存在的未读消息。在该接口中,第一个参数Uri用于指示该通知的目标模块的名称,例如可以是Uri.parse("content://com.huawei.android.桌面启动器.settings/badge/"),指示该通知将被传递到桌面启动器。第二个参数String指示该接口的名称,例如可以为“change_badge”。第三个参数String在本申请中未使用到,可以置为空,例如可以为“null”。第四个参数Bundle用于指示需要传输给桌面启动器的内容,包括哪一个应用程序调用该接口、该应用程序存在的未读消息的数量等。Bundle对象中包含三个值,分别为包名extra.putString("package",packageName)、类名extra.putString("class",className)以及未读消息的条数extra.putInt("badgenumber",count)。其中className可以为应用程序的main Activity的名称。The application running in the application layer calls the getContentResolver().call(Uri,String,String,Bundle) interface to notify the desktop launcher of the current unread messages. In this interface, the first parameter Uri is used to indicate the name of the target module of the notification. For example, it can be Uri.parse("content://com.huawei.android.desktop launcher.settings/badge/"), Indicates that the notification will be delivered to the desktop launcher. The second parameter String indicates the name of the interface, for example, it can be "change_badge". The third parameter String is not used in this application and can be left blank, for example, it can be "null". The fourth parameter Bundle is used to indicate the content that needs to be transmitted to the desktop launcher, including which application calls the interface, the number of unread messages that exist in the application, and so on. The Bundle object contains three values, namely the package name extra.putString("package",packageName), the class name extra.putString("class",className), and the number of unread messages extra.putInt("badgenumber", count). The className can be the name of the main Activity of the application.
桌面启动器用于管理电子设备的桌面(即主屏幕)以及锁屏界面。桌面启动器维护或者存储各个应用程序存在的未读消息的相关信息。在一些实施例中,该信息可以实现为未读消息的数量表。示例性地,参考表1,表1示出了一种可能的未读消息的数量表。The desktop launcher is used to manage the desktop (that is, the home screen) of the electronic device and the lock screen interface. The desktop launcher maintains or stores information about unread messages that exist in various applications. In some embodiments, this information can be implemented as a list of unread messages. Exemplarily, referring to Table 1, Table 1 shows a possible number of unread messages.
表1未读消息的数量表Table 1 Number of unread messages
Figure PCTCN2020098662-appb-000001
Figure PCTCN2020098662-appb-000001
桌面启动器接收到应用程序传输内容后,可以更新各个应用程序存在的未读消息的相关信息,例如可以更新如表1所示的未读消息的数量表。After the desktop launcher receives the content transmitted by the application, it can update the related information of the unread messages existing in each application, for example, it can update the number table of unread messages shown in Table 1.
如果电子设备开启了“锁屏聚合”,则桌面启动器可以根据维护或存储的各个应用程序存在的未读消息的相关信息,调用canvas模块,使得canvas模块通过openGL接口调用显示驱动,从而在显示屏提供的锁屏界面上提示用户当前有哪些应用程序存在未读消息。If the “lock screen aggregation” is enabled on the electronic device, the desktop launcher can call the canvas module according to the information related to the unread messages in each application that is maintained or stored, so that the canvas module can call the display driver through the openGL interface, so that the display The lock screen provided by the screen prompts the user which applications currently have unread messages.
这里,桌面启动器可以在以下几种情况下,调用canvas模块以及显示驱动在锁屏界面上显示存在未读消息的应用程序的指示信息:Here, the desktop launcher can call the canvas module and the display driver to display the instructions of the application with unread messages on the lock screen in the following situations:
(1)电子设备在熄屏状态下,在实体电源键(power button)上接收到按压操作、在实体音量键上接收到按压操作(一次或两次按压操作)、接收到用于点亮全部屏幕的语音指令或者手势指令等。(1) When the screen is off, the electronic device receives a press operation on the physical power button (power button), receives a press operation (one or two press operations) on the physical volume button, and receives a press operation for lighting all Voice commands or gesture commands on the screen, etc.
举例来说,当电子设备在实体音量键上接收到按压操作(一次或两次按压操作)时,传感器驱动可调用设置在实体音量键下方的压力传感器接收到该操作,并将该按压操作封装成输入事件传输给应用程序框架层中的输入子系统(input子系统)。输入子系统可以将该输入事件上传到桌面启动器,触发桌面启动器调用canvas模块以及显示驱动在锁屏界面上显示指示信息。For example, when the electronic device receives a pressing operation (one or two pressing operations) on the physical volume key, the sensor driver can call the pressure sensor provided under the physical volume key to receive the operation, and package the pressing operation The input event is transmitted to the input subsystem (input subsystem) in the application framework layer. The input subsystem can upload the input event to the desktop launcher, trigger the desktop launcher to call the canvas module and the display driver to display instructions on the lock screen interface.
(2)电子设备在解锁状态并且亮屏状态下,在预设时长(例如10秒)内没有接收到任何用户操作。(2) When the electronic device is in the unlocked state and the screen is on, no user operation is received within a preset time period (for example, 10 seconds).
举例来说,电子设备处于解锁状态并且亮屏状态时,如果内核层没有生成任何输入事件,则桌面启动器调用canvas模块以及显示驱动在锁屏界面上显示指示信息。For example, when the electronic device is in the unlocked state and the screen is on, if the kernel layer does not generate any input events, the desktop launcher calls the canvas module and the display driver displays instructions on the lock screen interface.
(3)电子设备在锁定状态并且点亮部分显示屏的状态下,接收到用于点亮全部屏幕的语音指令或者手势指令等。(3) When the electronic device is in the locked state and part of the display screen is lit, it receives a voice instruction or a gesture instruction for lighting up the entire screen.
在上述第(1)、(2)或(3)种情况下,电子设备在锁屏界面上显示的内容可参照上述图 5A-图5D实施例的相关描述。In the case of (1), (2), or (3) above, the content displayed on the lock screen interface of the electronic device can refer to the relevant description of the embodiments in Figs. 5A-5D.
(4)电子设备在熄屏状态下,接收到用于点亮部分屏幕的语音指令或者手势指令等。(4) When the electronic device is in the off-screen state, it receives voice instructions or gesture instructions for lighting part of the screen.
(5)电子设备在解锁状态并且在点亮全部显示屏的状态下,在预设时长(例如15秒)内没有接收到任何用户操作。(5) The electronic device does not receive any user operation within a preset period of time (for example, 15 seconds) when the electronic device is in the unlocked state and all the display screens are lit.
(6)电子设备在锁定状态并且在点亮全部显示屏的状态下,在预设时长(例如5秒)内没有接收到任何用户操作。(6) The electronic device does not receive any user operation within a preset period of time (for example, 5 seconds) when the electronic device is in the locked state and all the display screens are on.
在上述第(1)、(2)或(3)种情况下,电子设备在锁屏界面上显示的内容可参照上述图6A或图6B实施例的相关描述。In the aforementioned case (1), (2) or (3), the content displayed on the lock screen interface of the electronic device can refer to the relevant description of the embodiment in FIG. 6A or FIG. 6B.
不限于上述实施例中提及的在锁屏界面上显示存在未读消息的应用程序的指示信息,在本申请的另一些实施例中,电子设备还可以通过白名单和/或黑名单,来过滤锁屏界面上显示的内容。下面将详细介绍本申请实施例中的白名单和黑名单。It is not limited to the indication information of the application program with unread messages displayed on the lock screen interface mentioned in the above embodiment. In other embodiments of this application, the electronic device may also use a whitelist and/or blacklist to Filter the content displayed on the lock screen interface. The whitelist and blacklist in the embodiments of this application will be described in detail below.
在一些实施例中,电子设备可以存储有应用程序的白名单。该白名单中包括一个或多个应用程序。该白名单可以由用户自主设置。具体的,电子设备在确定当前存在未读消息的应用程序之后,在锁屏界面上显示当前存在未读消息并且属于白名单的应用程序的指示信息。In some embodiments, the electronic device may store a whitelist of applications. One or more applications are included in the whitelist. The whitelist can be set independently by the user. Specifically, after determining that an application program with unread messages currently exists, the electronic device displays the indication information of an application program that currently has unread messages and belongs to the whitelist on the lock screen interface.
在一些实施例中,电子设备可以存储有应用程序的黑名单。该黑名单中包括一个或多个应用程序。该黑名单可以由用户自主设置。具体的,电子设备在确定当前存在未读消息的应用程序之后,在锁屏界面上显示当前存在未读消息并且不属于黑名单的应用程序的指示信息。In some embodiments, the electronic device may store a blacklist of applications. One or more applications are included in the blacklist. The blacklist can be set independently by the user. Specifically, after the electronic device determines that there is currently an application with unread messages, it displays on the lock screen the indication information of an application with currently unread messages and not belonging to the blacklist.
通过白名单和黑名单的方式,电子设备可以对锁屏界面显示的内容进行过滤,在锁屏界面上显示用户想要看到的存在未读消息的应用程序的指示信息。这种方式可以满足用户需求,提升用户体验。By means of whitelists and blacklists, the electronic device can filter the content displayed on the lock screen interface, and display on the lock screen interface indication information of applications that the user wants to see with unread messages. This approach can meet user needs and improve user experience.
可理解的,电子设备也可以同时存储有上述白名单和黑名单。在同时存储有白名单和黑名单时,电子设备可以设置白名单和黑名单的优先级,并根据优先级高的名单来对锁屏界面显示的内容进行过滤。It is understandable that the electronic device may also store the aforementioned whitelist and blacklist at the same time. When a whitelist and a blacklist are stored at the same time, the electronic device can set the priority of the whitelist and the blacklist, and filter the content displayed on the lock screen interface according to the high priority list.
参考图9,图9为本申请实施例提供的锁定状态下的显示方法的流程示意图。如图9所示,该方法可包括如下步骤:Referring to FIG. 9, FIG. 9 is a schematic flowchart of a display method in a locked state according to an embodiment of the application. As shown in Figure 9, the method may include the following steps:
步骤S110、电子设备确定第一应用程序,第一应用程序为该电子设备安装的一个或多个应用程序中存在未读消息的应用程序。Step S110: The electronic device determines a first application, and the first application is an application with unread messages among one or more applications installed on the electronic device.
电子设备可参照前文图1A以及相关描述。For electronic equipment, refer to Figure 1A and related descriptions above.
在一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息的应用程序。In some embodiments, the first application is one or more applications installed on the electronic device, and there is an application with unread messages.
在另一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息并且属于白名单的应用程序。这里,白名单可参照前文实施例的相关描述。In some other embodiments, the first application is one or more applications installed on the electronic device, and there are applications that have unread messages and belong to the whitelist. Here, the white list can refer to the related description of the previous embodiment.
在又一些实施例中,第一应用程序为电子设备安装的一个或多个应用程序中,存在未读消息并且不属于黑名单的应用程序。这里,黑名单可参照前文实施例的相关描述。In still other embodiments, the first application is one or more applications installed by the electronic device, and there are applications that have unread messages and are not blacklisted. Here, the blacklist can refer to the related description of the previous embodiment.
其中,应用程序的未读消息可参照前文实施例的相关描述。Among them, the unread messages of the application program can refer to the related description of the foregoing embodiment.
步骤S120、电子设备处于锁定状态时,在显示屏上显示第一应用程序的图标。该第一应用程序的图标用于指示第一应用程序存在未读消息,该第一应用程序的图标单独显示。Step S120: When the electronic device is in the locked state, the icon of the first application program is displayed on the display screen. The icon of the first application program is used to indicate that there is an unread message in the first application program, and the icon of the first application program is displayed separately.
电子设备在显示屏上显示第一应用程序的图标时,该图标的显示顺序、显示方式可参照 前文图5A-图5D及图6A实施例的相关描述。例如,第一应用程序的图标可以按照如图5A-图5C以及图6A所示的“井”字型排列。When the electronic device displays the icon of the first application program on the display screen, the display sequence and display mode of the icons can refer to the related description of the foregoing embodiments in FIG. 5A-5D and FIG. 6A. For example, the icons of the first application program may be arranged in a "well" shape as shown in FIGS. 5A-5C and 6A.
这里,第一应用程序的图标单独显示是指,电子设备在显示屏上显示第一应用程序的图标时,不显示第一应用程序的未读消息的简略内容或具体内容、未读消息的生成时间等信息。举例来说,电子设备上安装的即时通讯类应用(例如微信(WeChat))接收到联系人发来的一条消息时,电子设备在锁定状态下,在显示屏上显示该即时通讯类应用的图标,而不显示该消息的简略内容(例如“妈妈发来一条消息”)或具体内容(例如“妈妈:晚上回家吃饭”)。Here, the separate display of the icon of the first application program means that when the electronic device displays the icon of the first application program on the display screen, it does not display the abbreviated content or specific content of the unread message of the first application program, and the generation of the unread message Time and other information. For example, when an instant messaging application (such as WeChat) installed on an electronic device receives a message from a contact, the electronic device displays the icon of the instant messaging application on the display screen when the electronic device is locked , Without displaying the brief content of the message (for example, "Mom sent a message") or specific content (for example, "Mom: Go home for dinner at night").
电子设备在显示屏上显示第一应用程序的图标时,软件架构中各个模块的协作过程可参照图8实施例的相关描述。When the electronic device displays the icon of the first application program on the display screen, the coordination process of the various modules in the software architecture can refer to the related description of the embodiment in FIG. 8.
步骤S130、响应于检测到的作用于第一应用程序的图标上的操作,电子设备启动和该第一应用程序的图标对应的应用程序。Step S130: In response to the detected operation on the icon of the first application, the electronic device starts the application corresponding to the icon of the first application.
具体的,电子设备可以检测到作用于第一应用程序的图标上的操作,启动和该第一应用程序的图标对应的应用程序。在一些实施例中,在检测到作用于第一应用程序的图标上的操作后,电子设备可以先提示用户解锁,在用户解锁之后启动和该第一应用程序的图标对应的应用程序。在另一些实施例中,在检测到作用于第一应用程序的图标上的操作后,电子设备可以直接启动和该第一应用程序的图标对应的应用程序。作用于第一应用程序的图标上的操作可以为触摸操作、点击操作等,具体可参照前文实施例的相关描述。Specifically, the electronic device may detect an operation acting on the icon of the first application program, and start the application program corresponding to the icon of the first application program. In some embodiments, after detecting an operation on the icon of the first application program, the electronic device may first prompt the user to unlock, and after the user unlocks, start the application program corresponding to the icon of the first application program. In other embodiments, after detecting an operation on the icon of the first application, the electronic device can directly start the application corresponding to the icon of the first application. The operation acting on the icon of the first application program may be a touch operation, a click operation, etc., for details, please refer to the relevant description of the foregoing embodiment.
这里,电子设备启动和该第一应用程序的图标对应的应用程序时,可以在显示屏上显示该应用程序提供的主页,也可以直接显示该应用程序存在的未读消息的具体内容,本申请实施例对此不做限制。Here, when the electronic device starts the application program corresponding to the icon of the first application program, the homepage provided by the application program can be displayed on the display screen, or the specific content of the unread messages existing in the application program can be directly displayed. The embodiment does not limit this.
实施本申请实施例提供的锁定状态下的显示方法,用户可以在电子设备处于锁定状态时,快速方便地了解有哪些应用程序存在未读消息。这样的显示方法对用户来说更为直观且简单有效,可以提高用户查看未读消息的效率,提升用户对电子设备的使用体验。By implementing the display method in the locked state provided by the embodiments of the present application, the user can quickly and conveniently understand which applications have unread messages when the electronic device is in the locked state. Such a display method is more intuitive, simple and effective for the user, can improve the efficiency of the user for viewing unread messages, and enhance the user's experience of using the electronic device.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In short, the above are only examples of the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (16)

  1. 一种锁定状态下的显示方法,所述方法应用于安装有一个或多个应用程序的电子设备,其特征在于,所述方法包括:A display method in a locked state, the method is applied to an electronic device installed with one or more application programs, and is characterized in that the method includes:
    所述电子设备确定第一应用程序,所述第一应用程序为所述一个或多个应用程序中存在未读消息的应用程序;The electronic device determines a first application, and the first application is an application with unread messages in the one or more applications;
    所述电子设备处于锁定状态时,在显示屏上显示所述第一应用程序的图标,所述第一应用程序的图标用于指示所述第一应用程序存在未读消息,所述第一应用程序的图标单独显示;When the electronic device is in the locked state, the icon of the first application program is displayed on the display screen, and the icon of the first application program is used to indicate that there is an unread message in the first application program. The icon of the program is displayed separately;
    响应于检测到的作用于所述第一应用程序的图标上的操作,所述电子设备启动和所述第一应用程序的图标对应的应用程序。In response to the detected operation on the icon of the first application program, the electronic device starts the application program corresponding to the icon of the first application program.
  2. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, wherein:
    所述第一应用程序的未读消息包括以下一项或多项:所述第一应用程序对应的服务器发送给所述电子设备的消息,或,所述电子设备运行所述第一应用程序时生成的消息。The unread message of the first application includes one or more of the following: a message sent to the electronic device by the server corresponding to the first application, or when the electronic device is running the first application The generated message.
  3. 根据权利要求1或2所述的方法,其特征在于,The method of claim 1 or 2, wherein:
    所述第一应用程序为所述一个或多个应用程序中存在未读消息,并且,属于白名单的应用程序;所述白名单包括一个或多个应用程序;The first application is an application that has unread messages in the one or more applications and belongs to a whitelist; the whitelist includes one or more applications;
    或,or,
    所述第一应用程序为所述一个或多个应用程序中存在未读消息,并且,不属于黑名单的应用程序;所述黑名单包括一个或多个应用程序。The first application is an application that has unread messages in the one or more applications and is not part of the blacklist; the blacklist includes one or more applications.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,The method according to any one of claims 1-3, characterized in that,
    所述电子设备处于锁定状态时,按照所述第一应用程序的未读消息条数,或者,按照所述第一应用程序的最新未读消息的生成时间,或者,按照所述第一应用程序的安装时间,或者,按照所述第一应用程序在所述电子设备的桌面中的显示顺序,或者,按照所述第一应用程序的首字母顺序,或者,按照所述第一应用程序的使用频率,依次在所述显示屏上显示所述第一应用程序的图标。When the electronic device is in the locked state, according to the number of unread messages of the first application, or according to the generation time of the latest unread message of the first application, or according to the first application The installation time of the first application, or according to the display order of the first application on the desktop of the electronic device, or according to the initial order of the first application, or according to the use of the first application Frequency, the icons of the first application program are sequentially displayed on the display screen.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,The method according to any one of claims 1-4, characterized in that,
    所述电子设备处于锁定状态时,在所述显示屏上显示所述第一应用程序的图标时,最新未读消息的生成时间越晚的所述第一应用程序的图标的明度越高。When the electronic device is in the locked state, when the icon of the first application program is displayed on the display screen, the brightness of the icon of the first application program with the later generation time of the latest unread message is higher.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述电子设备处于锁定状态时,在显示屏上显示所述第一应用程序的图标,具体包括:The method according to any one of claims 1 to 5, wherein when the electronic device is in the locked state, displaying the icon of the first application program on the display screen specifically comprises:
    所述电子设备处于锁定状态时,在所述第一应用程序的数量大于阈值的情况下,在所述显示屏上显示第一界面;When the electronic device is in the locked state, when the number of the first application programs is greater than a threshold, displaying a first interface on the display screen;
    响应于在所述第一界面上检测到的滑动手势,所述电子设备在所述显示屏上显示第二界面;In response to the sliding gesture detected on the first interface, the electronic device displays a second interface on the display screen;
    其中,所述第一界面包括部分所述第一应用程序的图标,所述第二界面包括部分所述第一应用程序的图标。Wherein, the first interface includes part of the icons of the first application program, and the second interface includes part of the icons of the first application program.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    所述电子设备处于锁定状态时,在所述显示屏上显示所述第一应用程序的未读消息的条数的指示信息。When the electronic device is in the locked state, display the indication information of the number of unread messages of the first application on the display screen.
  8. 根据权利要求7所述的方法,其特征在于,所述第一应用程序的未读消息的条数的指示信息为,显示在所述第一应用程序的图标之上的角标。8. The method according to claim 7, wherein the indication information of the number of unread messages of the first application is a corner mark displayed on the icon of the first application.
  9. 根据权利要求8所述的方法,其特征在于,The method according to claim 8, wherein:
    所述角标内包含数值,所述数值为所述角标对应的所述第一应用程序的未读消息的条数;The corner mark includes a numerical value, and the numerical value is the number of unread messages of the first application corresponding to the corner mark;
    和/或,and / or,
    所述角标显示在所述第一应用程序的图标的以下一个或多个位置:右上角、右下角、左上角、左下角;The corner mark is displayed in one or more of the following positions of the icon of the first application program: upper right corner, lower right corner, upper left corner, and lower left corner;
    和/或,and / or,
    所述角标的形状包括以下一项或多项:圆形、三角形、正方形或不规则图形。The shape of the corner mark includes one or more of the following: circle, triangle, square or irregular figure.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述电子设备处于锁定状态时,在显示屏上显示所述第一应用程序的图标,具体包括:The method according to any one of claims 1-9, wherein when the electronic device is in the locked state, displaying the icon of the first application program on the display screen specifically comprises:
    所述电子设备处于锁定状态时,响应于在熄屏状态下接收到的用于点亮显示屏的操作,在显示屏上显示所述第一应用程序的图标。When the electronic device is in the locked state, in response to the operation for illuminating the display screen received in the off-screen state, the icon of the first application program is displayed on the display screen.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述电子设备处于锁定状态时,在显示屏上显示所述第一应用程序的图标,具体包括:The method according to any one of claims 1-10, wherein when the electronic device is in the locked state, displaying the icon of the first application program on the display screen specifically comprises:
    所述电子设备处于锁定状态时,点亮部分或全部显示屏来显示所述第一应用程序的图标。When the electronic device is in the locked state, part or all of the display screen is turned on to display the icon of the first application program.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,响应于检测到的作用于所述第一应用程序的图标上的操作,所述电子设备启动和所述第一应用程序的图标对应的应用程序,具体包括:The method according to any one of claims 1-11, wherein, in response to a detected operation on the icon of the first application, the electronic device starts and The application corresponding to the icon, including:
    响应于检测到的作用于所述第一应用程序的图标上的操作,检测用于将所述电子设备由锁定状态切换至解锁状态的操作;In response to a detected operation acting on the icon of the first application program, detecting an operation for switching the electronic device from a locked state to an unlocked state;
    响应于检测到的所述用于将所述电子设备由锁定状态切换至解锁状态的操作,所述电子设备启动和所述第一应用程序的图标对应的应用程序。In response to the detected operation for switching the electronic device from the locked state to the unlocked state, the electronic device starts the application program corresponding to the icon of the first application program.
  13. 根据权利要求12所述的方法,其特征在于,所述用于将所述电子设备由锁定状态切换至解锁状态的操作可包括以下一项或多项:The method according to claim 12, wherein the operation for switching the electronic device from the locked state to the unlocked state may include one or more of the following:
    输入和预存的鉴权信息相同的鉴权信息的操作,所述鉴权信息包括以下至少一项:数字密码、图形、人脸图像、声纹或语音;The operation of inputting the same authentication information as the pre-stored authentication information, where the authentication information includes at least one of the following: digital password, graphics, face image, voiceprint or voice;
    在电源键或者主屏幕键上检测到的按压操作;或者,Pressing operation detected on the power button or the home screen button; or,
    在电源键或者主屏幕键上检测到按压操作后,在所述显示屏上检测到的滑动操作。After detecting a pressing operation on the power key or the home screen key, a sliding operation is detected on the display screen.
  14. 一种电子设备,其特征在于,所述电子设备安装有一个或多个应用程序,所述电子设备包括:一个或多个处理器、存储器和显示屏;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1-13任一项所述的方法。An electronic device, characterized in that one or more application programs are installed in the electronic device, and the electronic device includes: one or more processors, a memory, and a display screen; the memory and the one or more The processor is coupled, the memory is used to store computer program code, the computer program code includes computer instructions, the one or more processors call the computer instructions to make the electronic device execute any of claims 1-13 The method described in one item.
  15. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。A computer program product containing instructions, wherein when the computer program product runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-13.
  16. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。A computer-readable storage medium, comprising instructions, characterized in that when the instructions run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-13.
PCT/CN2020/098662 2019-06-29 2020-06-29 Display method and apparatus in locked state WO2021000804A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910581389.6A CN112148400B (en) 2019-06-29 2019-06-29 Display method and device in locking state
CN201910581389.6 2019-06-29

Publications (1)

Publication Number Publication Date
WO2021000804A1 true WO2021000804A1 (en) 2021-01-07

Family

ID=73892038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098662 WO2021000804A1 (en) 2019-06-29 2020-06-29 Display method and apparatus in locked state

Country Status (2)

Country Link
CN (1) CN112148400B (en)
WO (1) WO2021000804A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747552A (en) * 2021-06-18 2021-12-03 荣耀终端有限公司 Power consumption optimization method and electronic equipment
CN114115772A (en) * 2021-07-21 2022-03-01 荣耀终端有限公司 Screen-off display method and device
CN115079804A (en) * 2021-12-09 2022-09-20 荣耀终端有限公司 Control processing method of electronic equipment
CN115766928A (en) * 2021-08-12 2023-03-07 荣耀终端有限公司 Information reminding method, electronic equipment and storage medium
CN116055738A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Video compression method and electronic equipment
WO2023124589A1 (en) * 2021-12-31 2023-07-06 飞天诚信科技股份有限公司 Method and apparatus for preventing processing by security processor from being interrupted
CN117131555A (en) * 2023-04-28 2023-11-28 荣耀终端有限公司 Information display method and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113158165B (en) * 2021-05-20 2023-05-02 读书郎教育科技有限公司 Method and device for rapidly locking application of Android terminal
CN113741781B (en) * 2021-06-15 2022-06-28 荣耀终端有限公司 Notification display method and electronic equipment
CN115729427A (en) * 2021-08-31 2023-03-03 华为技术有限公司 Message prompting method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135967A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Method and system of displaying unread messages
US20160139770A1 (en) * 2014-11-17 2016-05-19 Htc Corporation Method for presenting prompt on mobile terminal and the same mobile terminal
CN106569814A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8255835B2 (en) * 2004-02-24 2012-08-28 Research In Motion Limited Method and system for managing unread electronic messages
CN106295305A (en) * 2016-08-09 2017-01-04 上海斐讯数据通信技术有限公司 A kind of unlocking screen method and device of touch screen terminal
CN106598569B (en) * 2016-11-11 2019-11-05 努比亚技术有限公司 The bright screen method and mobile terminal of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135967A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Method and system of displaying unread messages
US20160139770A1 (en) * 2014-11-17 2016-05-19 Htc Corporation Method for presenting prompt on mobile terminal and the same mobile terminal
CN106569814A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747552A (en) * 2021-06-18 2021-12-03 荣耀终端有限公司 Power consumption optimization method and electronic equipment
CN113747552B (en) * 2021-06-18 2024-03-19 荣耀终端有限公司 Power consumption optimization method and electronic equipment
CN114115772A (en) * 2021-07-21 2022-03-01 荣耀终端有限公司 Screen-off display method and device
CN114115772B (en) * 2021-07-21 2023-08-11 荣耀终端有限公司 Method and device for off-screen display
CN115766928A (en) * 2021-08-12 2023-03-07 荣耀终端有限公司 Information reminding method, electronic equipment and storage medium
CN115766928B (en) * 2021-08-12 2023-10-10 荣耀终端有限公司 Information reminding method, electronic equipment and storage medium
CN115079804A (en) * 2021-12-09 2022-09-20 荣耀终端有限公司 Control processing method of electronic equipment
CN115079804B (en) * 2021-12-09 2023-11-07 荣耀终端有限公司 Control processing method of electronic equipment
WO2023124589A1 (en) * 2021-12-31 2023-07-06 飞天诚信科技股份有限公司 Method and apparatus for preventing processing by security processor from being interrupted
CN116055738A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Video compression method and electronic equipment
CN116055738B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Video compression method and electronic equipment
CN117131555A (en) * 2023-04-28 2023-11-28 荣耀终端有限公司 Information display method and electronic equipment

Also Published As

Publication number Publication date
CN112148400B (en) 2023-03-31
CN112148400A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN110471639B (en) Display method and related device
WO2021000804A1 (en) Display method and apparatus in locked state
WO2021129326A1 (en) Screen display method and electronic device
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
WO2021017889A1 (en) Display method of video call appliced to electronic device and related apparatus
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2020103764A1 (en) Voice control method and electronic device
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
WO2021000839A1 (en) Screen splitting method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
WO2021036770A1 (en) Split-screen processing method and terminal device
WO2019072178A1 (en) Method for processing notification, and electronic device
CN111240547A (en) Interactive method for cross-device task processing, electronic device and storage medium
WO2021082835A1 (en) Method for activating function and electronic device
WO2022068483A1 (en) Application startup method and apparatus, and electronic device
EP4024210A1 (en) Card sharing method, electronic device, and communication system
WO2020238759A1 (en) Interface display method and electronic device
CN113961157B (en) Display interaction system, display method and equipment
WO2021078032A1 (en) User interface display method and electronic device
WO2022037726A1 (en) Split-screen display method and electronic device
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
WO2021175272A1 (en) Method for displaying application information and related device
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
WO2022179275A1 (en) Terminal application control method, terminal device, and chip system
WO2022184173A1 (en) Card widget display method, graphical user interface, and related apparatus

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20834517

Country of ref document: EP

Kind code of ref document: A1