WO2023116237A1 - 界面显示方法、装置、设备、存储介质及程序产品 - Google Patents

界面显示方法、装置、设备、存储介质及程序产品 Download PDF

Info

Publication number
WO2023116237A1
WO2023116237A1 PCT/CN2022/130385 CN2022130385W WO2023116237A1 WO 2023116237 A1 WO2023116237 A1 WO 2023116237A1 CN 2022130385 W CN2022130385 W CN 2022130385W WO 2023116237 A1 WO2023116237 A1 WO 2023116237A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
interface
message
response
list interface
Prior art date
Application number
PCT/CN2022/130385
Other languages
English (en)
French (fr)
Inventor
王照金
赵朋勃
唐海云
陈龙
马安生
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023116237A1 publication Critical patent/WO2023116237A1/zh

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/014Hand-worn input/output arrangements, e.g. data gloves

Definitions

  • the embodiments of the present application relate to the field of electronic equipment, and in particular to an interface display method, device, equipment, storage medium, and program product.
  • electronic devices can also realize some complex functions through installed applications. For example, a user can conduct instant messaging through an instant messaging application installed in an electronic device, and monitor sleep quality in real time through an installed sleep monitoring application.
  • Embodiments of the present application provide an interface display method, device, equipment, storage medium, and program product. Described technical scheme is as follows:
  • an embodiment of the present application provides an interface display method, the method is used in an electronic device, and the electronic device supports running the first system and the second system;
  • the methods include:
  • the first system In response to a list start operation, the first system displays an application list interface, the application list interface includes applications run by the first system and the second system;
  • the first system In response to a selection operation of a first application in the application list interface, the first system sends an application start message to the second system, where the first application is an application run by the second system;
  • the second system starts the first application based on the application start message and displays an application interface.
  • an embodiment of the present application provides an interface display device, the device is used in an electronic device, and the electronic device supports running the first system and the second system;
  • the devices include:
  • the first system module is further configured to display an application list interface in response to a list start operation, where the application list interface includes applications run by the first system module and the second system module;
  • the first system module is further configured to send an application start message to a second system module in response to a selection operation of a first application in the application list interface, and the first application is run by the second system module Applications;
  • the second system module is configured to start the first application and display an application interface based on the application start message.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory; the processor includes at least a first processor and a second processor, and the power consumption of the second processor Higher than the power consumption of the first processor, the memory stores at least one program, and the at least one program is used to be executed by the processor to implement the interface display method described in the above aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the storage medium stores at least one program, and the at least one program is used to be executed by a processor to implement the interface display method as described in the above aspect .
  • an embodiment of the present application provides a computer program product, where the computer program product includes computer instructions stored in a computer-readable storage medium; a processor of an electronic device reads the computer-readable storage medium from the computer-readable storage medium. Computer instructions, the processor executes the computer instructions, so that the electronic device executes the interface display method provided in the above aspects.
  • FIG. 1 is a schematic diagram of a dual-core communication software framework corresponding to a second processor shown in an exemplary embodiment of the present application;
  • FIG. 2 is a schematic diagram of a dual-core communication software framework corresponding to the first processor shown in an exemplary embodiment of the present application;
  • Fig. 3 shows a flowchart of an interface display method provided by an exemplary embodiment of the present application
  • Fig. 4 is a schematic interface diagram of an interface switching process in a smart watch shown in an exemplary embodiment of the present application
  • Fig. 5 is a schematic interface diagram of an application layout editing process shown in an exemplary embodiment of the present application
  • Fig. 6 is a schematic interface diagram of an application deletion process shown in an exemplary embodiment of the present application.
  • FIG. 7 is a sequence diagram of interaction between systems during application uninstallation shown in an exemplary embodiment of the present application.
  • Fig. 8 is a sequence diagram of interaction between systems during the application installation process shown in an exemplary embodiment of the present application.
  • Fig. 9 is an interaction sequence diagram between systems under the first return operation shown in an exemplary embodiment of the present application.
  • Fig. 10 is a sequence diagram of interaction between systems under the second return operation shown in an exemplary embodiment of the present application.
  • Fig. 11 shows a structural block diagram of an interface display device provided by another embodiment of the present application.
  • Fig. 12 shows a structural block diagram of an electronic device provided by an exemplary embodiment of the present application.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • an electronic device is provided with a single processor, and through an operating system running on the processor, all system events generated during the operation of the device are processed. Therefore, the processor needs to have a strong data processing capability. And keep the working state during the operation of the equipment.
  • electronic devices only need to implement some functions that require less processing performance in most cases. For example, for smart watches or smart bracelets, in most cases, smart watches or smart wristbands The ring only needs to display the time and prompt the message. Therefore, keeping the processor in the working state for a long time will not improve the performance of the electronic device, but will increase the power consumption of the device, resulting in a shorter battery life of the electronic device (especially in wearable devices with small battery capacity).
  • the electronic device is provided with at least a first processor and a second processor with different processing performance and power consumption, respectively for Run the first system and the second system (ie dual-core dual system), and design a set of system switching mechanism for the dual-core dual system.
  • the first system running on the low-power processor processes the events requiring low-performance processing, and keeps the high-power processor in a dormant state (correspondingly, the high-power processor
  • the running second system is in a dormant state), while realizing the basic functions of the electronic device, reduce the power consumption of the electronic device; controller, and switch to the second system to process the event, so as to ensure that the triggered event can be responded and processed in a timely manner, and meet the performance requirements of the electronic device.
  • the first system is also responsible for displaying an application list interface in addition to displaying the system main interface and the applications run by the first system.
  • the electronic device When the user selects an application run by the first system through the application list interface, the electronic device does not need to perform system switching, but continues to start the application through the first system and display the application interface; when the user selects an application run by the second system through the application list interface
  • the first system sends an application start message to the second system, and switches to the second system to start the application and display the application interface.
  • the application list interface displayed by the first system can prevent the user from wanting to When starting an application run by the first system, it needs to switch to the second system to display the application list interface, causing frequent switching between systems, and helping to reduce power consumption of electronic devices.
  • the first processor and the second processor work asynchronously, and the first system and the second system need to implement system communication (or called dual-core communication).
  • the first system is a real-time operating system (Real Time Operating System, RTOS) running on a Micro Controller Unit (MCU)
  • the second system is a real-time operating system (RTOS) running on a central processing unit (CPU).
  • Android Android operating system on Central Processing Unit, CPU).
  • FIG. 1 it shows a dual-core communication software framework of an Android operating system shown in an exemplary embodiment of the present application.
  • the dual-core communication software framework follows the design principles of "low coupling, high reliability, and high reuse", including Kernel (kernel), HIDL (hardware abstraction layer interface description language), Native Service (local service), Framework Service (framework service) , Framework API (framework interface) and APP (application) module development.
  • the APP module includes Launcher (desktop launcher), Setting (setting) and SystemUI (system user interface) and other functional modules
  • the Framework API module includes MCUManager (MCU management), SensorManager (sensor management), LocationManager (location management), etc.
  • Management module Framework Service module includes MCUManagerService (MCU management service), SystemSensorManager (system sensor management), LocationManagerService (location management service) and other service modules
  • Native Service module includes dccservice (dcc service), Sensorservice (sensor service) and other service modules
  • HIDL modules include Sensor HAL (Sensor Hardware Abstraction Layer), GPS HAL (Global Positioning System Hardware Abstraction Layer) and other modules.
  • the Kernel module includes DCC Transfer Driver (DCC transmission driver) such as dcc_data, Mcu_sensor, and Mcu_gps.
  • the transport layer shields the application layer from the transmission details of the lower layer (data link layer) communication, and provides service channels for application scenarios;
  • the application layer as the main body of service provision, responds to human Machine-computer interaction and transmit the data generated in the process of human-computer interaction through the transport layer, and respond to external data requests.
  • the RTOS is designed using the principle of peer-to-peer. Taking the electronic device as a smart watch as an example, as shown in FIG. 2 , it shows a dual-core communication software framework of an RTOS shown in an exemplary embodiment of the present application.
  • the dual-core communication software framework of RTOS is divided into Application Layer, Service Layer, Framework Layer, Hardware abstraction layer and Platform Layer.
  • the application layer includes watch face (dial), Daily Tracker (daily tracking), Message center (message center), Voice around Apps (sound application), Health Apps (health application), Settings (settings) and other application modules;
  • the service layer Including Sport&health task (sports health task), System manager task (system management task), AMS (activity management service), AudioService (audio service), Log Service (log service), OFTP Service (Odette file transfer protocol service), BT Service (Bluetooth Service), Delegate Service (handover service), RPC Service (remote call service), sensor Service (sensor service), storage Service (storage service) and other service modules;
  • the framework layer includes Message Pub (message center), UI Framework ( User interface framework), G2D Engine (G2D engine), Audio Middleware (audio middleware), Preference (preference), File system (file system), Algorithms (algorithm), AsycEvent (in-process asynchronous event) and other framework modules; hardware abstraction
  • the layer includes Screen/TP (screen/touch screen), sensors (
  • FIG. 3 shows a flowchart of an interface display method provided by an exemplary embodiment of the present application.
  • the method is applied to an electronic device, and the electronic device supports the operation of the first system and the second system as an example.
  • the method may include the following steps.
  • Step 301 in response to a list start operation, the first system displays an application list interface, and the application list interface includes applications run by the first system and the second system.
  • the operating power consumption of the first system is lower than that of the second system, so the electronic device tends to keep the first system awake for a long time, while the second system only switches to wake up state.
  • the electronic device is provided with a first processor and a second processor, wherein the processing performance of the first processor is lower than the processing performance of the second processor (the processing performance of the first processor and the The processing speed is lower than that of the second processor), and the power consumption of the first processor is lower than that of the second processor.
  • the second system running by the second processor
  • can process events handled by the first system running by the first processor
  • the first system may not necessarily be able to process events handled by the second system.
  • the electronic device may also be provided with a single processor, and the first system and the second system run on different cores of the processor respectively, wherein the processing performance of the core running the second system is higher than that of running the The processing performance of the core of the first system.
  • the first processor is an MCU
  • the second processor is a CPU
  • the first system is an RTOS
  • the second system is an Android system.
  • the events that the first system can handle include dial display, dial interface switching, notification message display and other scenes that require less processing performance or weak interaction scenarios; the events that the second system can handle include incoming call answering and message replying , dial editing, function setting and other scenes that require high processing performance or strong interaction scenes.
  • the working modes of the electronic device include a performance mode, a hybrid mode, and a low power consumption mode, wherein, in the performance mode, both the second processor and the first processor remain awake (correspondingly, Both the first system and the second system are in the wake-up state); in the low power mode, only the first processor remains in the wake-up state, while the second processor remains in the off state (that is, the first system is in the wake-up state, and the second system is in the off state state); in the hybrid mode, when the event is processed by the first system, the second processor is in the standby state and can be switched between the sleep state and the wake-up state (that is, when the first system is in the wake-up state, the second system can either be in the Awake state, can be in sleep state again).
  • the system-related data is cached in the memory (RAM), so that the system-related data can be run at any time.
  • RAM memory
  • the system-related data is stored in the hard disk (ROM). And it is written into the memory by the hard disk when switching to the wake-up state.
  • wearable devices as an auxiliary electronic device, only have weak interaction with users in most usage scenarios. For example, in most scenarios, the user only checks the time by raising the wrist through the smart watch. Therefore, when the wearable device processes the event through the first system, the second processor is controlled to be in the sleep state (the second system is in the sleep state), thereby reducing the overall power consumption of the wearable device.
  • the following embodiments take a wearable device as an example for illustration.
  • the application list interface as a kind of entrance for the user to start the application, is frequently used during the operation of the electronic device.
  • the application list interface is rendered and displayed by the first system.
  • the first system is not only responsible for displaying the application list interface, but also responsible for displaying the system main interface of the first system and the application interfaces of the applications run by the first system.
  • the main interface of the system may be a dial interface.
  • the first system when the first system displays the main interface of the system, if it receives a list start operation, the first system switches the system main interface to an application list interface; when the first system runs the application, if it receives a list start operation , the first system switches the currently displayed application interface to an application list interface.
  • the second system when the second system is running the application, if a list start operation is received, the second system switches to the first system, and the first system displays the application list interface.
  • the list start operation may be a touch operation (operating on a touch screen of an electronic device), a button operation (pressing a physical button of the electronic device), a voice operation, etc., which is not limited in this embodiment of the present application.
  • the applications in the application list interface may be displayed in the form of icons and/or text, which is not limited in this embodiment.
  • the first system currently displays a dial interface 41 .
  • the first system switches the dial interface 41 to an application list interface 42, and application icons of various applications are displayed in the application list interface 42.
  • Step 302 in response to a selection operation of the first application in the application list interface, the first system sends an application start message to the second system, where the first application is an application run by the second system.
  • the user can trigger the start of the application through a selection operation, wherein the selection operation can be a click operation, a long press operation, a press operation, etc., which is not limited in this embodiment.
  • the first system needs to determine which system the selected application is executed by. In a possible implementation manner, when it is determined that the selected first application is run by the second system, the first system sends an application start message to the second system, thereby instructing the second system to perform system switching and run the first application .
  • each application in the application list interface is correspondingly provided with a running system identifier, and the running system identifier is used to represent The system on which the application runs.
  • the first system In response to the selection operation of the first application in the application list interface, the first system obtains the running system identifier corresponding to the first application, and the running system identifier is used to represent the system running the application; when the running system identifier indicates that the first application is run by the second system In the case of running, the first system sends an application start message to the second system.
  • the running system identifier is set by the first system or the second system, and stored in the storage space of the first system.
  • the first system sends an application start message to the second system through dual-core communication.
  • the application start message at least includes the application start data of the first application.
  • the application startup data is the application package name of the first application.
  • the first system needs to wake up the second system first, wherein the first system can wake up the second system by sending an interrupt, which is not limited in this embodiment.
  • Step 303 the second system starts the first application based on the application start message and displays the application interface.
  • the second system determines the first application to be started based on the application startup message, thereby starting the first application and displaying the application interface of the first application.
  • the second system since the screen control authority of the electronic device is located in the first system when the application list interface is displayed, the second system first needs to obtain the screen control authority from the first system, so that after obtaining the screen control authority to display the application interface of the first application on the screen.
  • the first system sends the application to the second system.
  • Startup message The second system starts the weather application 421 based on the application start message, and displays the weather application interface 43 .
  • the application list interface includes a fourth application run by the first system, and in response to a selection operation on the fourth application in the application list interface, the first system starts the fourth application and displays the application interface without system switch.
  • the application list interface is displayed through the first system, and When receiving a selection operation on an application run by the second system in the application list, switch to the second system to start the application and display the application interface, avoiding the need to switch from the first system to the second system when displaying the application list interface, and effectively It helps to reduce the switching frequency between systems, and avoids the high power consumption of equipment caused by frequent system switching.
  • the first system displays an application list interface, including:
  • the first system acquires the stored application identification and application layout information of at least one application, and the application layout information is used to represent the layout of each application identification in the application list interface;
  • the first system displays an application list interface based on the application identification and the application layout information.
  • the method also includes:
  • the first system In response to a layout editing operation on the second application in the application list interface, the first system updates the application list interface, and the second application is run by the first system or the second system;
  • the first system updates the application layout information.
  • the method also includes:
  • the first system In response to an uninstall operation on the third application in the application list interface, the first system updates the application list interface, and the third application is run by the first system or the second system;
  • the first system deletes the application identifier corresponding to the third application, and updates the application layout information.
  • the method further includes:
  • the first system sends an application uninstallation message to the second system
  • the second system uninstalls the third application based on the application uninstall message.
  • the method also includes:
  • the second system sends an application list update message to the first system, where the application list update message includes at least one of an application installation message, an application uninstallation message, and an application update message;
  • the first system updates the stored application identification and application layout information based on the application list update message.
  • the method also includes:
  • the second system In response to the return operation, the second system sends an interface switching message to the first system based on the return operation;
  • the first system obtains the screen control authority from the second system, and displays a target interface based on the interface switching message, where the target interface is the system main interface or the application list interface of the first system.
  • the second system in response to the return operation, sends an interface switching message to the first system based on the return operation, including:
  • the second system In response to the first return operation, the second system sends a first interface switching message to the first system based on the first return operation, where the first interface switching message is used to instruct the first system to switch and display the main interface of the system;
  • the second system In response to the second return operation, the second system sends a second interface switching message to the first system based on the first return operation, and the second interface switching message is used to instruct the first system to switch and display the application list interface.
  • the method includes:
  • the second system switches from the wake-up state to the sleep state
  • the method includes:
  • the second system maintains the wake-up state within the wake-up hold duration
  • the second system switches from the wake-up state to the sleep state.
  • the first system in response to a selection operation of the first application in the application list interface, sends an application start message to the second system, including:
  • the first system In response to the selection operation of the first application in the application list interface, the first system obtains the running system identifier corresponding to the first application, and the running system identifier is used to represent the system running the application;
  • the first system sends an application start message to the second system.
  • the method also includes:
  • the first system In response to the selection operation of the fourth application in the application list interface, the first system starts the fourth application and displays the application interface.
  • the fourth application is an application run by the first system.
  • the operating power consumption of the first system is lower than that of the second system.
  • the system status of each system can include the following situations:
  • the control screen of the first system displays the main interface of the system, and the second system is in a dormant state;
  • the first system switches the main interface of the system (such as switching the dial interface of a smart watch), and the second system is in a dormant state;
  • the first system control screen displays the application interface.
  • the first system control screen displays the system main interface, and the second system is in a dormant state;
  • the control screen of the second system displays the application interface.
  • the control screen of the first system displays the main interface of the system, and the second system switches to the dormant state;
  • the control screen of the first system displays the main interface of the system.
  • the control screen of the first system displays the application interface or the application list interface, and the second system is in a dormant state;
  • the control screen of the first system displays the main interface of the system.
  • the first system wakes up the second system, and the control screen of the second system displays the application interface;
  • the first system displays the main interface of the system.
  • the first system displays the application list interface, and the second system is in a dormant state;
  • the first system control screen displays the application interface.
  • the first system control screen displays the application list interface, and the second system is in a dormant state;
  • the control screen of the second system displays the application interface.
  • the second system switches to the first system
  • the control screen of the first system displays the application list interface
  • the second system switches to the dormant state
  • the first system control screen displays the application list interface.
  • the first system control screen displays the application interface, and the second system is in a dormant state;
  • the first system controls the screen to display the application list interface.
  • the first system wakes up the second system, and the second system controls the screen to display the application interface.
  • the first system acquires the stored application identifier and application layout information of at least one application, so as to display the application list interface based on the application identifier and application layout information, wherein the application The layout information is used to characterize the layout of each application identifier in the application list interface.
  • the application identifier and application layout information are stored in a storage space corresponding to the first system, and are maintained and updated by the first system.
  • the application identifier may include an application icon, an application name, etc., which are not limited in this embodiment.
  • the application layout information includes the display position and size of the application icon in the application list, the display font and font size of the application name, etc. This embodiment does not limit the specific content contained in the application layout information.
  • the user can adjust the layout of the applications in the application list interface according to his own needs, such as adjusting the display position of the application in the application list interface, setting the list of commonly used applications to the top, and so on.
  • the first system updates the application list interface in response to a layout editing operation on the second application in the application list interface, where the second application is an application run by the first system or the second system. Moreover, since the applications included in the application list interface do not change after the layout editing operation, the first system only needs to update the application layout information.
  • the layout editing operation includes icon moving operations (such as long pressing and dragging the application icon), top operations (such as long pressing the application icon to call out the editing menu, and clicking the top option in the editing menu), etc.
  • icon moving operations such as long pressing and dragging the application icon
  • top operations such as long pressing the application icon to call out the editing menu, and clicking the top option in the editing menu
  • the first system displays the application list interface 51.
  • the first system swaps the display positions of the clock application icon 511 and the heart rate application icon 512 in the application list interface 51 , and updates the layout information corresponding to the clock application icon 511 and the heart rate application icon 512 in the application layout information.
  • the user can also uninstall the applications in the application list interface according to requirements.
  • the first system in response to an uninstall operation on a third application in the application list interface, updates the application list interface, and the third application is an application run by the first system or the second system.
  • the first system Since the applications contained in the application list interface change after the deletion operation, the first system needs to update the stored application identification and application layout information. Optionally, the first system deletes the application identifier corresponding to the third application, and updates the application layout information.
  • the first system displays an application list interface 61.
  • the upper right corner of the sleep application icon 611 displays a delete control.
  • the first system deletes the sleep application icon 611 from the application list interface 61, and deletes the application identification and layout information corresponding to the sleep application.
  • the first system when the first system receives an uninstall operation for the third application, it determines the system running the third application based on the running system identifier corresponding to the third application. When the third application is run by the first system, the first system deletes the application data of the third application, thereby releasing the storage space of the first system.
  • the first system when the third application is run by the second system, since the relevant data of the third application is stored in the storage space corresponding to the second system, the first system also needs to notify the second system to uninstall the third application (the first system only deletes the application app icon in the list interface).
  • the first system when the third application is run by the second system, the first system sends an application uninstall message to the second system, and the second system uninstalls the third application based on the application uninstall message.
  • the application uninstallation message includes the application identifier of the third application.
  • the first system when the first system receives the uninstall operation and the second system is in the wake-up state, it sends the application uninstall message to the second system (the second system receives the application uninstall After the message, the application is uninstalled in the background, and it is still displayed on the first system control screen).
  • the first system receives the uninstallation operation and the second system is in a dormant state, the first system sends an application uninstallation message to the second system when waking up the second system next time, so as to avoid frequent waking up of the second system.
  • the first system when the first system displays the application list interface, when an uninstall operation is received, the first system updates the application list interface based on the uninstall operation (remove the application icon of the application to be uninstalled from the application list interface Delete), and identify the systems running the application to be uninstalled.
  • the first system sends an application uninstall message to the second system. After receiving the application uninstall message, the second system uninstalls the application.
  • the second system can install new applications through the running application store, or delete existing applications. Installed apps, or, Update an installed app.
  • the second system sends an application list update message to the first system, where the application list update message includes an application installation message, At least one of an application uninstall message and an application update message.
  • the first system updates the stored application identification and application layout information based on the application list update message.
  • the application installation message includes the application identifier of the newly installed application
  • the application uninstallation message includes the application identifier of the application to be uninstalled
  • the application update message includes the application identifier of the application to be updated.
  • the second system in response to an application installation operation (installation via an application store or installation based on an acquired application installation package), sends an application installation message to the first system.
  • the first system adds an application identifier based on the application installation message, and updates the application layout information (at least adds the layout information of the newly installed application).
  • the second system In response to an application uninstall operation (uninstall through an application store, or through application management software), the second system sends an application uninstall message to the first system. Based on the application uninstall message, the first system deletes the application identifier of the application to be uninstalled, and updates the application layout information (at least deletes the layout information of the application to be uninstalled).
  • the second system In response to an application update operation (triggered manually or automatically by the user), the second system sends an application update message to the first system.
  • the first system updates the application identification of the application based on the application update message.
  • the second system when the second system is running in the foreground, when receiving an application installation operation, the second system installs the application, and sends an application installation message including the application identifier to the first system.
  • the first system After receiving the application installation message, the first system adds the application identifier and updates the application layout information.
  • the subsequent first system displays the application list interface according to the updated application layout information and application identification.
  • the second system when the second system is in the wake-up state, in response to the language change operation, the second system sends a language update message to the first system, and the first system updates the stored application identifier based on the language update message. For example, when the system language is changed from Chinese to English, the second system sends a language update message containing the English name of the application to the first system, so that the first system updates the stored Chinese name of the application to the English name of the application.
  • the second system when the second system is in the wake-up state, in response to the display mode change operation, the second system sends a display mode update message to the first system, and the first system updates the application layout based on the display mode update message information.
  • the display mode update message is used to indicate to update at least one of font, font size, application icon size, and application icon view (list view or grid view). For example, when the user switches the display mode to the elderly mode, the first system increases the size of the application icon and the font size of the application name based on the display mode change message sent by the second system.
  • the user can switch the first system back to the foreground state through a return operation.
  • the second system in response to the return operation, sends an interface switching message to the first system based on the return operation.
  • the interface switching message is used to instruct to switch and display the target interface of the first system.
  • the first system Since the screen control authority of the electronic device is located in the second system when displaying the application interface of the first application, the first system obtains the screen control authority from the second system after receiving the interface switching message, and displays the target interface based on the interface switching message , the target interface is the system main interface or the application list interface of the first system.
  • the main interface of the system may be a dial interface.
  • the first system returns to display different target interfaces.
  • the second system in response to the first return operation, sends a first interface switching message to the first system based on the first return operation, where the first interface switching message is used to instruct the first system to switch and display the system main interface.
  • the first interface switching message includes the first identifier.
  • the first system recognizes the first identifier, it switches to display the main interface of the system.
  • the second system when receiving a screen covering operation (that is, using a palm to cover the screen, the screen covering operation can be identified by detecting the number of touch point coordinates), the second system sends a report to the second A system sends a first interface switching message.
  • a screen covering operation that is, using a palm to cover the screen
  • the screen covering operation can be identified by detecting the number of touch point coordinates
  • the second system In response to the second return operation, the second system sends a second interface switching message to the first system based on the first return operation, and the second interface switching message is used to instruct the first system to switch and display the application list interface.
  • the second return operation is different from the first return operation
  • the second interface switching message includes a second identifier different from the first identifier.
  • the second system when the electronic device is a smart watch, when a pressing operation on the crown is received, the second system sends a second interface switching message to the first system.
  • the second system switches from the wake-up state to the sleep state, thereby reducing power consumption.
  • the user triggers switching of the first system to display the application list interface through the second return operation, the user usually continues to select and start other application programs from the application list interface. If the application selected to start subsequently is run by the second system, the second system needs to be woken up again, causing the second system to frequently switch between the sleep state and the wake-up state within a short period of time.
  • the second system switches from the wake-up state to dormant state. Since the user triggers the switching of the first system to display the main interface of the system through the first return operation, it usually does not continue to start the application run by the second system, so the second system immediately switches to sleep after sending the first interface switching message to the first system state, thereby reducing device power consumption.
  • the second system when the second system displays the application interface, when receiving the first return operation, the second system sends a first interface switching message to the first system, and switches to a dormant state.
  • the first system obtains the screen control authority from the second system according to the first interface switching message, and controls the screen to display the main interface of the system.
  • the second system after the second system sends the second interface switching message to the first system based on the first return operation, the second system remains in the wake-up state within the wake-up hold time period, wherein, during the wake-up state, the second system One system has the screen control authority of the device, and the second system is running in the background.
  • the second system switches from the wake-up state to the sleep state.
  • the second system Since the user usually continues to start other applications after switching the first system to display the application list interface through the second return operation, the second system will not immediately switch to the dormant state after sending the first interface switching message to the first system. Instead, the wake-up state is kept within the wake-up hold time (such as 1s, 2s, etc.). If the first system receives an operation to select an application in the application list interface within the wake-up duration, and the selected application is run by the second system, the first system sends an application start message to the second system. Since the second system remains in the wake-up state, the second system does not need to perform state switching, and directly starts the application. On the one hand, it avoids the frequent switching of the second system state, and on the other hand, it can improve the startup speed of the application (because the sleep state is omitted. switch to the wake-up state).
  • the wake-up hold time such as 1s, 2s, etc.
  • the second system when the second system displays the application interface, when receiving the second return operation, the second system sends a second interface switching message to the first system, and remains awake.
  • the first system obtains the screen control authority from the second system according to the second interface switching message, and controls the screen to display the application list interface. If the application start message sent by the first system is not received within the wake-up time period, the second system switches to the dormant state.
  • FIG. 11 shows a structural block diagram of an interface display device provided by an embodiment of the present application.
  • the device can be implemented as all or a part of electronic equipment through software, hardware or a combination of the two.
  • the unit includes:
  • the first system module 1101 is further configured to display an application list interface in response to a list start operation, and the application list interface includes applications run by the first system module 1101 and the second system module 1102;
  • the first system module 1101 is further configured to send an application start message to the second system module 1102 in response to the selection operation of the first application in the application list interface, the first application is provided by the second system an application run by module 1102;
  • the second system module 1102 is configured to start the first application and display an application interface based on the application start message.
  • the first system module 1101 is configured to:
  • the application layout information is used to characterize the layout of each application identification in the application list interface
  • the application list interface is displayed based on the application identification and the application layout information.
  • the first system module 1101 is also used for:
  • the application layout information is updated.
  • the first system module 1101 is also used for:
  • the application identifier corresponding to the third application is deleted, and the application layout information is updated.
  • the first system module 1101 is configured to send an application uninstallation message to the second system module 1102;
  • the second system module 1102 is configured to uninstall the third application based on the application uninstall message.
  • the second system module 1102 is further configured to send an application list update message to the first system module 1101, where the application list update message includes at least one of an application installation message, an application uninstallation message, and an application update message.
  • the application list update message includes at least one of an application installation message, an application uninstallation message, and an application update message.
  • the first system module 1101 is configured to update the stored application identification and the application layout information based on the application list update message.
  • the second system module 1102 is further configured to send an interface switching message to the first system module 1101 based on the return operation in response to the return operation;
  • the first system module 1101 is configured to obtain screen control authority from the second system module 1102, and display a target interface based on the interface switching message, and the target interface is the system main interface of the first system module 1101 Or the application list interface.
  • the second system module 1102 is configured to:
  • a second interface switching message is sent to the first system module 1101 based on the first return operation, and the second interface switching message is used to instruct the first system module 1101 to switch to display the Application list interface.
  • the second system module 1102 is configured to:
  • the second system module 1102 is also used for:
  • the first system module 1101 is configured to:
  • the first system module 1101 is used for:
  • the fourth application In response to a selection operation of a fourth application in the application list interface, the fourth application is started and an application interface is displayed, and the fourth application is an application run by the first system module 1101 .
  • the operating power consumption of the first system module 1101 is lower than the operating power consumption of the second system module 1102 .
  • the application list interface is displayed through the first system, and When receiving a selection operation on an application run by the second system in the application list, switch to the second system to start the application and display the application interface, avoiding the need to switch from the first system to the second system when displaying the application list interface, and effectively It helps to reduce the switching frequency between systems, and avoids the high power consumption of equipment caused by frequent system switching.
  • FIG. 12 shows a structural block diagram of an electronic device provided by an exemplary embodiment of the present application.
  • the electronic device in this application may include one or more of the following components: a processor 1210 and a memory 1220 .
  • the processor 1210 includes at least a first processor 1211 and a second processor 1212, wherein the first processor 1211 is used to run the first system, the second processor 1212 is used to run the second system, and the first The power consumption of the processor 1211 is lower than that of the second processor 1212 , and the performance of the first processor 1211 is lower than the performance of the second processor 1212 .
  • the processor 1210 uses various interfaces and lines to connect various parts of the entire electronic device, and executes electronic operations by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Various functions and processing data of the device.
  • the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • the processor 1210 can integrate one or more of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a modem, etc. The combination.
  • the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the content that needs to be displayed on the touch screen; the NPU is used to realize the artificial intelligence (Artificial Intelligence, AI) function; the modem is used to process Wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1210, but may be implemented by a single chip.
  • the memory 1220 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM).
  • the memory 1220 includes a non-transitory computer-readable storage medium.
  • the memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for implementing the following various method embodiments; the storage data area can store data created according to the use of the electronic device (such as audio data, phonebook) and the like.
  • the electronic device in this embodiment of the present application further includes a communication component 1230 and a display component 1240 .
  • the communication component 1230 can be a Bluetooth component, a wireless local area network (Wireless Fidelity, Wi-Fi) component, a near field communication (Near Field Communication, NFC) component, etc., and is used to communicate with external devices (servers or other The terminal device) communicates;
  • the display component 1240 is configured to display a graphical user interface, and/or receive user interaction operations.
  • an electronic device does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the illustration, or combine certain some components, or a different arrangement of components.
  • an electronic device also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a speaker, a microphone, and a power supply, which will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium, the storage medium stores at least one program, and the at least one program is used to be executed by a processor to implement the interface display method as described in the above-mentioned embodiments.
  • An embodiment of the present application provides a computer program product, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium; the processor of the electronic device reads the computer instructions from the computer-readable storage medium, and processes The computer executes the computer instruction, so that the electronic device executes the interface display method provided by the above-mentioned embodiments.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

一种界面显示方法、装置、设备、存储介质及程序产品,属于电子设备领域。该方法包括:响应于列表启动操作,第一系统显示应用列表界面,应用列表界面中包含由第一系统和第二系统运行的应用(301);响应于对应用列表界面中第一应用的选择操作,第一系统向第二系统发送应用启动消息,第一应用是由第二系统运行的应用(302);第二系统基于应用启动消息启动第一应用并显示应用界面(303)。采用本申请实施例提供的方案,有助于降低系统间的切换频率,避免因频繁系统切换造成设备功耗升高。

Description

界面显示方法、装置、设备、存储介质及程序产品
本申请要求于2021年12月23日提交的申请号为202111590043.6、发明名称为“界面显示方法、装置、设备、存储介质及程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子设备领域,特别涉及一种界面显示方法、装置、设备、存储介质及程序产品。
背景技术
随着科技技术的不断发展,越来越多功能各异的电子设备应运而生,为用户的日常生活带来诸多遍历。
电子设备除了可以实现一些简单功能,比如查看时间、设置闹钟外,还可以通过安装的应用实现一些复杂功能。比如,用户可以通过电子设备中安装的即时通信应用进行即时通信,通过安装的睡眠监测应用对睡眠质量进行实时监测。
发明内容
本申请实施例提供了一种界面显示方法、装置、设备、存储介质及程序产品。所述技术方案如下:
一方面,本申请实施例提供了一种界面显示方法,所述方法用于电子设备,所述电子设备中支持运行第一系统和第二系统;
所述方法包括:
响应于列表启动操作,所述第一系统显示应用列表界面,所述应用列表界面中包含由所述第一系统和所述第二系统运行的应用;
响应于对所述应用列表界面中第一应用的选择操作,所述第一系统向所述第二系统发送应用启动消息,所述第一应用是由所述第二系统运行的应用;
所述第二系统基于所述应用启动消息启动所述第一应用并显示应用界面。
另一方面,本申请实施例提供了一种界面显示装置,所述装置用于电子设备,所述电子设备中支持运行第一系统和第二系统;
所述装置包括:
第一系统模块,还用于响应于列表启动操作,显示应用列表界面,所述应用列表界面中包含由所述第一系统模块和所述第二系统模块运行的应用;
所述第一系统模块,还用于响应于对所述应用列表界面中第一应用的选择操作,向第二系统模块发送应用启动消息,所述第一应用是由所述第二系统模块运行的应用;
所述第二系统模块,用于基于所述应用启动消息启动所述第一应用并显示应用界面。
另一方面,本申请实施例提供了一种电子设备,所述电子设备包括处理器和存储器;所述处理器至少包括第一处理器和第二处理器,所述第二处理器的功耗高于所述第一处理器的功耗,所述存储器存储有至少一段程序,所述至少一段程序用于被所述处理器执行以实现上述方面所述的界面显示方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质存储有至少一段程序,所述至少一段程序用于被处理器执行以实现如上述方面所述的界面显示方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述方面提供的界面显示方法。
附图说明
图1是本申请一个示例性实施例示出的第二处理器对应双核通信软件框架的示意图;
图2是本申请一个示例性实施例示出的第一处理器对应双核通信软件框架的示意图;
图3示出了本申请一个示例性实施例提供的界面显示方法的流程图;
图4是本申请一个示例性实施例示出的智能手表中界面切换过程的界面示意图;
图5是本申请一个示例性实施例示出的应用布局编辑过程的界面示意图;
图6是本申请一个示例性实施例示出的应用删除过程的界面示意图;
图7是本申请一个示例性实施例示出的应用卸载过程中系统之间的交互时序图;
图8是本申请一个示例性实施例示出的应用安装过程中系统之间的交互时序图;
图9是本申请一个示例性实施例示出的第一返回操作下系统之间的交互时序图;
图10是本申请一个示例性实施例示出的第二返回操作下系统之间的交互时序图;
图11示出了本申请另一个实施例提供的界面显示装置的结构框图;
图12示出了本申请一个示例性实施例提供的电子设备的结构方框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
相关技术中,电子设备中设置有单一处理器,并通过运行在处理器上的操作系统,对设备运行过程中产生的所有系统事件进行处理,因此该处理器需要具备较强的数据处理能力,并在设备运行过程中保持工作状态。然而,在日常使用过程中,电子设备在大多数情况下只需要实现一些对处理性能要求较低的功能,比如,对于智能手表或智能手环来说,大多数情况下,智能手表或智能手环只需要进行时间显示和消息提示。因此,长时间保持处理器处于工作状态并不会提高电子设备的性能,反而会增加设备功耗,导致电子设备的续航时间较短(在电池容量较小的可穿戴式设备上尤为明显)。
为了在保证电子设备性能的同时,降低电子设备的功耗,在一种可能的实施方式中,电子设备至少设置具有不同处理性能以及功耗的第一处理器和第二处理器,分别用于运行第一系统和第二系统(即双核双系统),并为双核双系统设计了一套系统切换机制。
电子设备运行过程中,通过运行在低功耗处理器上的第一系统,对低性能处理需求的事件进行处理,并保持高功耗处理器处于休眠状态(相应的,由高功耗处理器运行的第二系统处于休眠状态),在实现电子设备基础功能的同时,降低电子设备的功耗;当出现存在高性能处理需求的事件时(比如启动应用程序时),通过唤醒高功耗处理器,并切换至第二系统对事件进行处理,保证触发的事件能够被及时响应并处理,满足电子设备的性能需求。
为了避免系统之间的频繁切换,本申请实施例中,第一系统除了显示系统主界面以及由第一系统运行的应用外,还负责显示应用列表界面。当用户通过应用列表界面选择由第一系统运行的应用时,电子设备无需进行系统切换,而是继续通过第一系统启动应用并显示应用界面;当用户通过应用列表界面选择由第二系统运行的应用时,第一系统向第二系统发送应用启动消息,并切换至第二系统启动应用并显示应用界面。
由于用户通过应用列表界面可以启动由第一系统或第二系统运行的应用,因此由第一系统显示应用列表界面,在保证由第二系统运行的应用能够正常启动的同时,能够避免用户想要启动由第一系统运行的应用时,需要切换至第二系统显示应用列表界面造成系统之间频繁切换的问题,并有助于降低电子设备的功耗。
本申请实施例中,由于第一处理器和第二处理器异步工作,且第一系统和第二系统需要实现系统通信(或称为双核通信)。在一种可能的应用场景下,第一系统为运行在微控制单 元(Micro Controller Unit,MCU)上的实时操作系统(Real Time Operating System,RTOS),且第二系统为运行在中央处理器(Central Processing Unit,CPU)上的安卓(Android)操作系统。
如图1所示,其示出了本申请一个示例性实施例示出的安卓操作系统的双核通信软件框架。该双核通信软件框架遵循“低耦合,高可靠,高复用”的设计原则,包括Kernel(内核)、HIDL(硬件抽象层接口描述语言)、Native Service(本地服务)、Framework Service(框架服务)、Framework API(框架接口)和APP(应用)部分的模块开发。
其中,APP模块包括Launcher(桌面启动器)、Setting(设置)和SystemUI(系统用户界面)等功能模块、Framework API模块中包括MCUManager(MCU管理)、SensorManager(传感器管理)、LocationManager(位置管理)等管理模块,Framework Service模块中包括MCUManagerService(MCU管理服务)、SystemSensorManager(系统传感器管理)、LocationManagerService(位置管理服务)等服务模块,Native Service模块包括dccservice(dcc服务)、Sensorservice(传感器服务)等服务模块,HIDL模块包括Sensor HAL(传感器硬件抽象层)、GPS HAL(全球定位系统硬件抽象层)等模块。Kernel模块包括dcc_data、Mcu_sensor、Mcu_gps等DCC Transfer Driver(DCC传输驱动)。
传输层作为双核通信软件框架中衔接上下层的接口层,向应用层屏蔽系统下层(数据链路层)通信的传输细节,为应用场景提供服务通道;应用层作为服务提供的主体,响应于人机交互并通过传输层对人机交互过程中产生的数据进行传输,以及对外部数据请求进行响应。
RTOS采用对等原则进行设计。以电子设备为智能手表为例,如图2所示,其示出了本申请一个示例性实施例示出的RTOS的双核通信软件框架。
RTOS的双核通信软件框架分为应用层(Application Layer)、服务层(Service Layer)、框架层(Framework Layer)、硬件抽象层(Hardware abstraction layer)和平台层(Platform Layer)。
其中,应用层包括watch face(表盘)、Daily Tracker(日常追踪)、Message center(消息中心)、Voice around Apps(声音应用)、Health Apps(健康应用)、Settings(设置)等应用模块;服务层包括Sport&health task(运动健康任务)、System manager task(系统管理任务)、AMS(活动管理服务)、AudioService(音频服务)、Log Service(日志服务)、OFTP Service(Odette文件传输协议服务)、BT Service(蓝牙服务)、Delegate Service(转交服务)、RPC Service(远程调用服务)、sensor Service(传感器服务)、storage Service(存储服务)等服务模块;框架层包括Message Pub(消息中心)、UI Framework(用户界面框架)、G2D Engine(G2D引擎)、Audio Middleware(音频中间件)、Preference(偏好)、File system(文件系统)、Algorithms(算法)、AsycEvent(进程内异步事件)等框架模块;硬件抽象层包括Screen/TP(屏幕/触控屏)、sensors(传感器)等硬件抽象模块;平台层包括板级支持包(Board Support Package,BSP)以及低等级驱动(LOW level Driver),其中,BSP包括Screen/TP、Codec(编码译码器)、sensors、Flash(闪存)、PSRAM(伪静态随机存储器)等等,低等级驱动包括Uart(通用异步收发传输器)、ADC(模数转换器)、GPIO(通用输入输出)、SPI(串行外设接口)、I2C(集成电路总线)、IOS(输入输出系统)、PCM(脉冲编码调制)、I2S(集成音频总线)、HWTimer(硬件定时器)。
需要说明的是,上述双核通信软件框架仅用于示意性说明,本领域技术人员还可以根据实际需求,对上述框架进行增加、删除或修改,本申请实施例并不对双核通信软件框架的具体结构构成限定。
请参考图3,其示出了本申请一个示例性实施例提供的界面显示方法的流程图,本实施例以该方法应用于电子设备,且电子设备支持运行第一系统和第二系统为例进行说明,该方法可以包括如下步骤。
步骤301,响应于列表启动操作,第一系统显示应用列表界面,应用列表界面中包含由 第一系统第二系统运行的应用。
在一些实施例中,第一系统的运行功耗低于第二系统的运行功耗,因此电子设备倾向于使第一系统长时间处于唤醒状态,而第二系统仅在处理特定任务时切换为唤醒状态。
在一种可能的实施方式中,电子设备设置有第一处理器和第二处理器,其中,第一处理器的处理性能低于第二处理器的处理性能(第一处理器的处理能力和处理速度均低于第二处理器),且第一处理器的功耗低于第二处理器的功耗。相应的,第二系统(由第二处理器运行)能够处理第一系统(由第一处理器运行)所处理的事件,而第一系统并不一定能够处理第二系统所处理的事件。
在另一种可能的实施方式中,电子设备也可以设置单一处理器,第一系统和第二系统分别运行在处理器的不同核心上,其中,运行第二系统的核心的处理性能高于运行第一系统的核心的处理性能。
以电子设备为智能手表为例,第一处理器为MCU,第二处理器为CPU,第一系统为RTOS,第二系统为安卓系统。相应的,第一系统所能处理的事件包括表盘显示、表盘界面切换、通知消息显示等对处理性能要求较低的场景或弱交互场景;第二系统所能处理的事件包括来电接听、消息回复、表盘编辑、功能设置等对处理性能要求较高的场景或强交互场景。
在一种可能的实施方式中,电子设备的工作模式包括性能模式、混动模式和低功耗模式,其中,性能模式下,第二处理器和第一处理器均保持唤醒状态(相应的,第一系统和第二系统均处于唤醒状态);低功耗模式下,仅第一处理器保持唤醒状态,而第二处理器保持关闭状态(即第一系统处于唤醒状态,第二系统处于关闭状态);混动模式下,在通过第一系统处理事件时,第二处理器处于待机状态,可以在休眠和唤醒状态之间切换(即第一系统处于唤醒状态时,第二系统既可以处于唤醒状态,又可以处于休眠状态)。
可选的,唤醒状态下,系统相关数据缓存在内存(RAM)中,以便于随时运行系统相关数据,休眠状态下,处理器大部分硬件模块关闭,系统相关数据存储在硬盘(ROM)中,并在切换为唤醒状态时由硬盘写入内存中。
不同于智能手机一类具有强交互属性的电子设备,可穿戴式设备作为一种辅助性的电子设备,在绝大多数使用场景下与用户之间仅存在弱交互。比如,用户在大部分场景下仅通过智能手表进行抬腕查看时间。因此,可穿戴式设备通过第一系统对事件进行处理时,控制第二处理器处于休眠状态(第二系统处于休眠状态),从而降低可穿戴式设备的整体功耗。为了方便表述,下述实施例中以可穿戴式设备为例进行说明。
应用列表界面作为用户启动应用的一种入口,在电子设备运行过程中的使用频率较高。为了降低电子设备的运行功耗,本申请实施例中,该应用列表界面由第一系统负责渲染并显示。此外,第一系统除了负责显示应用列表界面外,还负责显示第一系统的系统主界面以及由第一系统运行的应用的应用界面。其中,当电子设备为智能手表时,该系统主界面可以为表盘界面。
可选的,第一系统显示系统主界面的过程中,若接收到列表启动操作,第一系统将系统主界面切换为应用列表界面;第一系统运行应用的过程中,若接收到列表启动操作,第一系统将当前显示的应用界面切换为应用列表界面。
可选的,第二系统运行应用的过程中,若接收到列表启动操作,第二系统切换为第一系统,并由第一系统显示应用列表界面。
其中,该列表启动操作可以为触控操作(在电子设备的触控显示屏上进行操作)、按键操作(按压电子设备的物理按键)、语音操作等等,本申请实施例对此不作限定。
可选的,应用列表界面中的应用可以以图标和/或文本的形式显示,本实施例对此不作限定。
示意性的,如图4所示,以电子设备为智能手表为例,第一系统当前显示表盘界面41。当接收到对表冠的按压操作时,第一系统将表盘界面41切换为应用列表界面42,该应用列 表界面42中显示有各个应用的应用图标。
步骤302,响应于对应用列表界面中第一应用的选择操作,第一系统向第二系统发送应用启动消息,第一应用是由第二系统运行的应用。
对于应用列表界面中显示的各个应用,用户可以通过选择操作触发启动应用,其中,该选择操作可以是点击操作、长按操作、按压操作等等,本实施例对此不作限定。
由于用户选择的应用可能是由第一系统运行,也可能是由第二系统运行,因此第一系统需要确定选择的应用由哪一系统运行。在一种可能的实施方式中,当确定选择的第一应用由第二系统运行时,第一系统向第二系统发送应用启动消息,从而指示第二系统进行系统切换,并运行该第一应用。
为了使第一系统能够区分由第一系统以及第二系统运行的应用,在一种可能的实施方式中,应用列表界面中的各个应用均对应设置有运行系统标识,该运行系统标识用于表征运行应用的系统。
响应于对应用列表界面中第一应用的选择操作,第一系统获取第一应用对应的运行系统标识,运行系统标识用于表征运行应用的系统;在运行系统标识指示第一应用由第二系统运行的情况下,第一系统向第二系统发送应用启动消息。
可选的,该运行系统标识由第一系统或第二系统设置,并存储在第一系统的存储空间。
在一种可能的实施方式中,第一系统通过双核通信的方式,向第二系统发送应用启动消息。其中,该应用启动消息中至少包含第一应用的应用启动数据。比如,该应用启动数据为第一应用的应用包名。
需要说明的是,若第二系统处于休眠状态,第一系统需要先唤醒第二系统,其中,第一系统可以通过发送中断的方式唤醒第二系统,本实施例对此不作限定。
步骤303,第二系统基于应用启动消息启动第一应用并显示应用界面。
唤醒状态下,第二系统基于应用启动消息确定待启动的第一应用,从而启动第一应用并显示第一应用的应用界面。
在一种可能的实施方式中,由于显示应用列表界面时,电子设备的屏幕控制权限位于第一系统,因此第二系统首先需要从第一系统处获取屏幕控制权限,从而在获取屏幕控制权限后,通过屏幕显示第一应用的应用界面。
示意性的,如图4所示,当接收到对应用列表界面42中天气应用421的点击操作时,由于天气应用421是有第二系统运行的应用,因此第一系统向第二系统发送应用启动消息。第二系统基于该应用启动消息启动天气应用421,并显示天气应用界面43。
在一些实施例中,应用列表界面中包含由第一系统运行的第四应用,响应于对应用列表界面中第四应用的选择操作,第一系统启动第四应用并显示应用界面,无需进行系统切换。
示意性的,如图4所示,当接收到对应用列表界面42中心率应用422的点击操作时,由于心率应用422是由第一系统运行的应用,因此第一系统启动心率应用422,并显示心率测量界面44。
综上所述,对于支持双系统的电子设备,由于用户通过应用列表界面可以启动由第一系统或第二系统运行的应用,因此本申请实施例中,通过第一系统显示应用列表界面,并在接收到对应用列表中由第二系统运行的应用的选择操作时,切换至第二系统启动该应用并显示应用界面,避免显示应用列表界面时需要由第一系统切换至第二系统,有助于降低系统间的切换频率,避免因频繁系统切换造成设备功耗升高。
可选的,第一系统显示应用列表界面,包括:
第一系统获取存储的至少一个应用的应用标识以及应用布局信息,应用布局信息用于表征各个应用标识在应用列表界面中的布局方式;
第一系统基于应用标识和应用布局信息显示应用列表界面。
可选的,方法还包括:
响应于对应用列表界面中第二应用的布局编辑操作,第一系统更新应用列表界面,第二应用由第一系统或第二系统运行;
第一系统更新应用布局信息。
可选的,方法还包括:
响应于对应用列表界面中第三应用的卸载操作,第一系统更新应用列表界面,第三应用由第一系统或第二系统运行;
第一系统删除第三应用对应的应用标识,并更新应用布局信息。
可选的,在第三应用由第二系统运行的情况下,方法还包括:
第一系统向第二系统发送应用卸载消息;
第二系统基于应用卸载消息卸载第三应用。
可选的,方法还包括:
第二系统向第一系统发送应用列表更新消息,应用列表更新消息包括应用安装消息、应用卸载消息和应用更新消息中的至少一种;
第一系统基于应用列表更新消息更新存储的应用标识以及应用布局信息。
可选的,方法还包括:
响应于返回操作,第二系统基于返回操作向第一系统发送界面切换消息;
第一系统从第二系统处获取屏幕控制权限,基于界面切换消息显示目标界面,目标界面为第一系统的系统主界面或应用列表界面。
可选的,响应于返回操作,第二系统基于返回操作向第一系统发送界面切换消息,包括:
响应于第一返回操作,第二系统基于第一返回操作向第一系统发送第一界面切换消息,第一界面切换消息用于指示第一系统切换显示系统主界面;
响应于第二返回操作,第二系统基于第一返回操作向第一系统发送第二界面切换消息,第二界面切换消息用于指示第一系统切换显示应用列表界面。
可选的,第二系统基于第一返回操作向第一系统发送第一界面切换消息之后,方法包括:
第二系统由唤醒状态切换为休眠状态;
第二系统基于第一返回操作向第一系统发送第二界面切换消息之后,方法包括:
第二系统在唤醒保持时长内保持唤醒状态;
响应于达到唤醒保持时长,且未接收到应用启动消息,第二系统由唤醒状态切换为休眠状态。
可选的,响应于对应用列表界面中第一应用的选择操作,第一系统向第二系统发送应用启动消息,包括:
响应于对应用列表界面中第一应用的选择操作,第一系统获取第一应用对应的运行系统标识,运行系统标识用于表征运行应用的系统;
在运行系统标识指示第一应用由第二系统运行的情况下,第一系统向第二系统发送应用启动消息。
可选的,方法还包括:
响应于对应用列表界面中第四应用的选择操作,第一系统启动第四应用并显示应用界面,第四应用是由第一系统运行的应用。
可选的,第一系统的运行功耗低于第二系统的运行功耗。
当第一系统用于显示系统主界面、应用界面(由第一系统运行的应用)以及应用列表界面,第二系统用于显示应用界面(由第二系统运行的应用)时,界面切换过程中,各个系统的系统状态可以包括如下情况:
1、电子设备由熄屏变为亮屏时,第一系统控制屏幕显示系统主界面,第二系统处于休眠状态;
2、当接收到主界面切换操作时,第一系统切换系统主界面(比如切换智能手表的表盘界 面),第二系统处于休眠状态;
3、第一系统控制屏幕显示应用界面,当接收到主界面启动操作时,第一系统控制屏幕显示系统主界面,第二系统处于休眠状态;
4、第二系统控制屏幕显示应用界面,当接收到主界面启动操作时,第一系统控制屏幕显示系统主界面,第二系统切换为休眠状态;
5、第一系统控制屏幕显示系统主界面,当接收到对第一系统下应用的启动操作或者列表启动操作时,第一系统控制屏幕显示应用界面或应用列表界面,第二系统处于休眠状态;
6、第一系统控制屏幕显示系统主界面,当接收到对第二系统下应用的启动操作时,第一系统唤醒第二系统,第二系统控制屏幕显示应用界面;
7、第一系统显示系统主界面,当接收到列表启动操作时,第一系统显示应用列表界面,第二系统处于休眠状态;
8、第一系统控制屏幕显示应用界面,当接收到列表启动操作时,第一系统控制屏幕显示应用列表界面,第二系统处于休眠状态;
9、第二系统控制屏幕显示应用界面,当接收到列表启动操作时,第二系统切换为第一系统,第一系统控制屏幕显示应用列表界面,第二系统切换为休眠状态;
10、第一系统控制屏幕显示应用列表界面,当接收到对第一系统下应用的启动操作时,第一系统控制屏幕显示应用界面,第二系统处于休眠状态;
11、第一系统控制屏幕显示应用列表界面,当接收到对第二系统下应用的启动操作时,第一系统唤醒第二系统,第二系统控制屏幕显示应用界面。
从上述情况可以看出,在需要启动由第二系统的应用时,第二系统才会被第一系统唤醒并启动应用,提高了电子设备运行过程中第一系统的运行时长占比,有助于降低设备功耗,并能够避免系统之间的频繁切换。
在一种可能的实施方式中,第一系统在显示应用列表过程中,获取存储的至少一个应用的应用标识以及应用布局信息,从而基于应用标识和应用布局信息显示应用列表界面,其中,该应用布局信息用于表征各个应用标识在应用列表界面中的布局方式。
可选的,该应用标识和应用布局信息存储在第一系统对应的存储空间,并由第一系统进行维护更新。
可选的,该应用标识可以包括应用图标、应用名称等等,本实施例对此不作限定。
可选的,该应用布局信息中包含应用图标在应用列表中的显示位置、显示尺寸、应用名称的显示字体、字号等等,本实施例对应用布局信息中包含的具体内容不作限定。
在使用电子设备的过程中,用户可以根据自身的需求,对应用列表界面中应用的布局进行调整,比如调整应用在应用列表界面中的显示位置,对常用应用进行列表置顶操作等等。
在一种可能的实施方式中,响应于对应用列表界面中第二应用的布局编辑操作,第一系统更新应用列表界面,其中,第二应用是由第一系统或第二系统运行的应用。并且,由于布局编辑操作后,应用列表界面中包含的应用并未发生变化,因此第一系统仅需要更新应用布局信息。
可选的,该布局编辑操作包括图标移动操作(比如长按并拖动应用图标)、置顶操作(比如长按应用图标呼出编辑菜单,并点击编辑菜单中的置顶选项)等等,本申请实施例并不对布局编辑操作的具体方式进行限定。
示意性的,如图5所示,第一系统显示应用列表界面51,当接收到对时钟应用图标511的长按拖动操作,且长按拖动操作的操作终点位于心率应用图标512处时,第一系统对换时钟应用图标511与心率应用图标512在应用列表界面51中的显示位置,并更新应用布局信息中时钟应用图标511以及心率应用图标512对应布局信息。
除了能够编辑应用列表界面中应用的布局外,用户还可以根据需求对应用列表界面中的应用进行卸载。在一种可能的实施方式中,响应于对应用列表界面中第三应用的卸载操作, 第一系统更新应用列表界面,该第三应用是由第一系统或第二系统运行的应用。
由于删除操作后,应用列表界面中包含的应用发生变化,因此第一系统需要对存储的应用标识以及应用布局信息进行更新。可选的,第一系统删除第三应用对应的应用标识,并更新应用布局信息。
示意性的,如图6所示,第一系统显示应用列表界面61,当接收到对睡眠应用图标611的长按操作时,睡眠应用图标611的右上角显示删除控件,当接收到对删除控件的点击操作时,第一系统从应用列表界面61中删除睡眠应用图标611,并删除睡眠应用对应的应用标识以及布局信息。
在一种可能的实施方式中,第一系统接收到对第三应用的卸载操作时,基于第三应用对应的运行系统标识,确定运行第三应用的系统。当第三应用由第一系统运行时,第一系统删除第三应用的应用数据,以此释放第一系统的存储空间。
而当第三应用由第二系统运行时,由于第三应用的相关数据存储在第二系统对应的存储空间,因此第一系统还需要通知第二系统卸载第三应用(第一系统仅删除应用列表界面中的应用图标)。
在一种可能的实施方式中,在第三应用由第二系统运行的情况下,第一系统向第二系统发送应用卸载消息,由第二系统基于应用卸载消息卸载第三应用。可选的,该应用卸载消息中包含第三应用的应用标识。
关于第一系统发送应用卸载消息的时机,在一些实施例中,第一系统接收到卸载操作,且第二系统处于唤醒状态时,向第二系统发送应用卸载消息(第二系统接收到应用卸载消息后在后台进行应用卸载,仍旧由第一系统控制屏幕显示)。第一系统接收到卸载操作,且第二系统处于休眠状态时,第一系统在下一次唤醒第二系统时,向第二系统发送应用卸载消息,避免第二系统被频繁唤醒。
示意性的,如图7所示,第一系统显示应用列表界面过程中,当接收到卸载操作时,第一系统基于卸载操作更新应用列表界面(将待卸载应用的应用图标从应用列表界面中删除),并确定运行待卸载应用的系统。当待卸载的应用由第二系统运行时,第一系统向第二系统发送应用卸载消息。第二系统接收到应用卸载消息后即进行应用卸载。
除了在第一系统处于前台运行的情况下,通过应用列表界面进行应用卸载外,在第二系统处于前台运行的情况下,第二系统可以通过运行的应用商店安装新的应用,或者,删除已安装的应用,或者,更新已安装的应用。这种情况下,为了使应用列表界面中显示的应用能够同步更新,在一种可能的实施方式中,第二系统向第一系统发送应用列表更新消息,该应用列表更新消息包括应用安装消息、应用卸载消息和应用更新消息中的至少一种。对应的,第一系统基于应用列表更新消息更新存储的应用标识以及应用布局信息。
可选的,应用安装消息中包含新安装应用的应用标识,应用卸载消息中包含待卸载应用的应用标识,应用更新消息中包含待更新应用的应用标识。
在一些实施例中,响应于应用安装操作(通过应用商店安装或者基于获取到的应用安装包安装),第二系统向第一系统发送应用安装消息。第一系统基于应用安装消息新增应用标识,并更新应用布局信息(至少增加了新安装应用的布局信息)。
响应于应用卸载操作(通过应用商店卸载,或者,通过应用管理软件卸载),第二系统向第一系统发送应用卸载消息。第一系统基于应用卸载消息,删除待卸载应用的应用标识,并更新应用布局信息(至少删除了待卸载应用的布局信息)。
响应于应用更新操作(用户手动触发或者自动触发),第二系统向第一系统发送应用更新消息。第一系统基于应用更新消息,更新应用的应用标识。
示意性的,如图8所示,第二系统处于前台运行时,当接收到应用安装操作时,第二系统安装应用,并向第一系统发送包含应用标识的应用安装消息。第一系统接收到应用安装消息后,添加应用标识,并对应用布局信息进行更新。后续第一系统即根据更新后的应用布局 信息以及应用标识显示应用列表界面。
在其他可能的实施方式中,第二系统处于唤醒状态的情况下,响应于语言变更操作,第二系统向第一系统发送语言更新消息,由第一系统基于语言更新消息更新存储的应用标识。比如,当系统语言由中文修改为英语时,第二系统向第一系统发送包含应用英文名称的语言更新消息,以便第一系统将存储的应用中文名称更新为应用英文名称。
在其他可能的实施方式中,第二系统处于唤醒状态的情况下,响应于显示模式变更操作,第二系统向第一系统发送显示模式更新消息,由第一系统基于显示模式更新消息更新应用布局信息。其中,该显示模式更新消息用于指示更新字体、字号、应用图标尺寸、应用图标视图(列表视图或者网格视图)中的至少一种。比如,当用户将显示模式切换为老人模式时,第一系统基于第二系统发送的显示模式变更消息增大应用图标尺寸以及应用名称的字号。
第一应用使用完毕后,用户可以通过返回操作,将第一系统重新切换回前台状态。在一种可能的实施方式中,响应于返回操作,第二系统基于返回操作向第一系统发送界面切换消息。其中,该界面切换消息用于指示切换显示第一系统的目标界面。
由于显示第一应用的应用界面时,电子设备的屏幕控制权限位于第二系统,因此第一系统接收到界面切换消息后,从第二系统处获取屏幕控制权限,并基于界面切换消息显示目标界面,该目标界面为第一系统的系统主界面或应用列表界面。比如,当电子设备为智能手表时,该系统主界面可以是表盘界面。
不同类型的返回操作下,第一系统返回显示的目标界面不同。
在一些实施例中,响应于第一返回操作,第二系统基于第一返回操作向第一系统发送第一界面切换消息,第一界面切换消息用于指示第一系统切换显示系统主界面。
在一种可能的实施方式中,该第一界面切换消息中包含第一标识。第一系统在识别到第一标识时,即切换显示系统主界面。
在一个示意性的例子中,当电子设备为智能手表时,当接收到屏幕覆盖操作时(即使用手掌覆盖屏幕,可以通过检测触控点坐标的数量识别屏幕覆盖操作),第二系统向第一系统发送第一界面切换消息。
响应于第二返回操作,第二系统基于第一返回操作向第一系统发送第二界面切换消息,第二界面切换消息用于指示第一系统切换显示应用列表界面。
在一种可能的实施方式中,第二返回操作不同于第一返回操作,且该第二界面切换消息中包含不同于第一标识的第二标识。第一系统在识别到第二标识时,即切换显示应用列表界面。
在一个示意性的例子中,当电子设备为智能手表时,当接收到对表冠的按压操作时,第二系统向第一系统发送第二界面切换消息。
在一种可能的实施方式中,第一系统显示目标界面时,第二系统由唤醒状态切换为休眠状态,以此降低功耗。然而,当用户通过第二返回操作触发切换第一系统显示应用列表界面时,通常会继续从应用列表界面中选择启动其他应用程序。若后续选择启动的应用由第二系统运行,则需要再次将第二系统唤醒,导致短时间内第二系统在休眠状态与唤醒状态之间频繁切换。
为了避免第二系统在短时间内频繁切换状态,在一种可能的实施方式中,第二系统基于第一返回操作向第一系统发送第一界面切换消息后,第二系统由唤醒状态切换为休眠状态。由于用户通过第一返回操作触发切换第一系统显示系统主界面后,通常不会继续启动由第二系统运行的应用,因此第二系统向第一系统发送第一界面切换消息后立即切换为休眠状态,从而降低设备功耗。
示意性的,如图9所示,第二系统显示应用界面时,当接收到第一返回操作,第二系统向第一系统发送第一界面切换消息,并切换为休眠状态。第一系统根据该第一界面切换消息,从第二系统处获取屏幕控制权限,并控制屏幕显示系统主界面。
在另一种可能的实施方式中,第二系统基于第一返回操作向第一系统发送第二界面切换消息后,第二系统在唤醒保持时长内保持唤醒状态,其中,保持唤醒状态期间,第一系统具有设备的屏幕控制权限,第二系统处于后台运行状态。响应于达到唤醒保持时长,且未接收到第一系统发送的应用启动消息,第二系统由唤醒状态切换为休眠状态。
由于用户通过第二返回操作触发切换第一系统显示应用列表界面后,通常会继续启动其他应用,因此第二系统向第一系统发送第一界面切换消息后,并不会立即切换为休眠状态,而是在唤醒保持时长(比如1s、2s等等)内保持唤醒状态。若第一系统在该唤醒保持时长内接收到应用列表界面内应用的选择操作,且该选择的应用由第二系统运行,第一系统即向第二系统发送应用启动消息。由于第二系统保持唤醒状态,因此第二系统无需进行状态切换,并直接启动应用,一方面避免了第二系统状态频繁切换,另一方面能够提高应用的启动速度(因为省去了由休眠状态切换为唤醒状态的流程)。
示意性的,如图10所示,第二系统显示应用界面时,当接收到第二返回操作,第二系统向第一系统发送第二界面切换消息,并保持唤醒状态。第一系统根据该第二界面切换消息,从第二系统处获取屏幕控制权限,并控制屏幕显示应用列表界面。若在唤醒时长内未接收到第一系统发送的应用启动消息,第二系统则切换为休眠状态。
请参考图11,其示出了本申请一个实施例提供的界面显示装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为电子设备的全部或一部分。该装置包括:
第一系统模块1101,还用于响应于列表启动操作,显示应用列表界面,所述应用列表界面中包含由第一系统模块1101和第二系统模块1102运行的应用;
所述第一系统模块1101,还用于响应于对所述应用列表界面中第一应用的选择操作,向第二系统模块1102发送应用启动消息,所述第一应用是由所述第二系统模块1102运行的应用;
所述第二系统模块1102,用于基于所述应用启动消息启动所述第一应用并显示应用界面。
可选的,所述第一系统模块1101,用于:
获取存储的至少一个应用的应用标识以及应用布局信息,所述应用布局信息用于表征各个应用标识在所述应用列表界面中的布局方式;
基于所述应用标识和所述应用布局信息显示所述应用列表界面。
可选的,所述第一系统模块1101,还用于:
响应于对所述应用列表界面中第二应用的布局编辑操作,更新所述应用列表界面,所述第二应用由所述第一系统模块1101或所述第二系统模块1102运行;
更新所述应用布局信息。
可选的,所述第一系统模块1101,还用于:
响应于对所述应用列表界面中第三应用的卸载操作,更新所述应用列表界面,所述第三应用由所述第一系统模块1101或所述第二系统模块1102运行;
删除所述第三应用对应的应用标识,并更新所述应用布局信息。
可选的,在所述第三应用由所述第二系统模块1102运行的情况下,所述第一系统模块1101,用于向所述第二系统模块1102,发送应用卸载消息;
所述第二系统模块1102,用于基于所述应用卸载消息卸载所述第三应用。
可选的,所述第二系统模块1102,还用于向所述第一系统模块1101发送应用列表更新消息,所述应用列表更新消息包括应用安装消息、应用卸载消息和应用更新消息中的至少一种;
所述第一系统模块1101,用于基于所述应用列表更新消息更新存储的应用标识以及所述应用布局信息。
可选的,所述第二系统模块1102,还用于响应于返回操作,基于所述返回操作向所述第一系统模块1101发送界面切换消息;
所述第一系统模块1101,用于从所述第二系统模块1102处获取屏幕控制权限,基于所述界面切换消息显示目标界面,所述目标界面为所述第一系统模块1101的系统主界面或所述应用列表界面。
可选的,所述第二系统模块1102,用于:
响应于第一返回操作,基于所述第一返回操作向所述第一系统模块1101发送第一界面切换消息,所述第一界面切换消息用于指示所述第一系统模块1101切换显示所述系统主界面;
响应于第二返回操作,基于所述第一返回操作向所述第一系统模块1101发送第二界面切换消息,所述第二界面切换消息用于指示所述第一系统模块1101切换显示所述应用列表界面。
可选的,所述第二系统模块1102,用于:
由唤醒状态切换为休眠状态;
所述第二系统模块1102,还用于:
在唤醒保持时长内保持唤醒状态;
响应于达到所述唤醒保持时长,且未接收到应用启动消息,由唤醒状态切换为休眠状态。
可选的,所述第一系统模块1101,用于:
响应于对所述应用列表界面中所述第一应用的选择操作,获取所述第一应用对应的运行系统标识,所述运行系统标识用于表征运行应用的系统;
在所述运行系统标识指示所述第一应用由所述第二系统模块1102运行的情况下,向所述第二系统模块1102发送所述应用启动消息。
可选的,述第一系统模块1101,用于:
响应于对所述应用列表界面中第四应用的选择操作,启动所述第四应用并显示应用界面,所述第四应用是由所述第一系统模块1101运行的应用。
可选的,所述第一系统模块1101的运行功耗低于所述第二系统模块1102的运行功耗。
综上所述,对于支持双系统的电子设备,由于用户通过应用列表界面可以启动由第一系统或第二系统运行的应用,因此本申请实施例中,通过第一系统显示应用列表界面,并在接收到对应用列表中由第二系统运行的应用的选择操作时,切换至第二系统启动该应用并显示应用界面,避免显示应用列表界面时需要由第一系统切换至第二系统,有助于降低系统间的切换频率,避免因频繁系统切换造成设备功耗升高。
请参考图12,其示出了本申请一个示例性实施例提供的电子设备的结构方框图。本申请中的电子设备可以包括一个或多个如下部件:处理器1210和存储器1220。
可选的,处理器1210至少包括第一处理器1211和第二处理器1212,其中,第一处理器1211用于运行第一系统,第二处理器1212用于运行第二系统,且第一处理器1211的功耗低于第二处理器1212的功耗,第一处理器1211的性能低于第二处理器1212的性能。处理器1210利用各种接口和线路连接整个电子设备内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行电子设备的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块芯片进行实现。
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读 存储器(Read-Only Memory,ROM)。可选地,该存储器1220包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本)等。
本申请实施例中的电子设备还包括通信组件1230和显示组件1240。其中,通信组件1230可以为蓝牙组件、无线局域网(Wireless Fidelity,Wi-Fi)组件、近场通信(Near Field Communication,NFC)组件等等,用于通过有线或无线网络与外部设备(服务器或其他终端设备)进行通信;显示组件1240用于进行图形用户界面展示,和/或,接收用户交互操作。
除此之外,本领域技术人员可以理解,上述附图所示出的电子设备的结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,电子设备中还包括射频电路、输入单元、传感器、音频电路、扬声器、麦克风、电源等部件,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,该存储介质存储有至少一段程序,至少一段程序用于被处理器执行以实现如上述实施例所述的界面显示方法。
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述实施例提供的界面显示方法。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种界面显示方法,所述方法用于电子设备,所述电子设备中支持运行第一系统和第二系统;
    所述方法包括:
    响应于列表启动操作,所述第一系统显示应用列表界面,所述应用列表界面中包含由所述第一系统和所述第二系统运行的应用;
    响应于对所述应用列表界面中第一应用的选择操作,所述第一系统向所述第二系统发送应用启动消息,所述第一应用是由所述第二系统运行的应用;
    所述第二系统基于所述应用启动消息启动所述第一应用并显示应用界面。
  2. 根据权利要求1所述的方法,其中,所述第一系统显示应用列表界面,包括:
    所述第一系统获取存储的至少一个应用的应用标识以及应用布局信息,所述应用布局信息用于表征各个应用标识在所述应用列表界面中的布局方式;
    所述第一系统基于所述应用标识和所述应用布局信息显示所述应用列表界面。
  3. 根据权利要求2所述的方法,其中,所述方法还包括:
    响应于对所述应用列表界面中第二应用的布局编辑操作,所述第一系统更新所述应用列表界面,所述第二应用由所述第一系统或所述第二系统运行;
    所述第一系统更新所述应用布局信息。
  4. 根据权利要求2所述的方法,其中,所述方法还包括:
    响应于对所述应用列表界面中第三应用的卸载操作,所述第一系统更新所述应用列表界面,所述第三应用由所述第一系统或所述第二系统运行;
    所述第一系统删除所述第三应用对应的应用标识,并更新所述应用布局信息。
  5. 根据权利要求4所述的方法,其中,在所述第三应用由所述第二系统运行的情况下,所述方法还包括:
    所述第一系统向所述第二系统发送应用卸载消息;
    所述第二系统基于所述应用卸载消息卸载所述第三应用。
  6. 根据权利要求2所述的方法,其中,所述方法还包括:
    所述第二系统向所述第一系统发送应用列表更新消息,所述应用列表更新消息包括应用安装消息、应用卸载消息和应用更新消息中的至少一种;
    所述第一系统基于所述应用列表更新消息更新存储的应用标识以及所述应用布局信息。
  7. 根据权利要求1至6任一所述的方法,其中,所述方法还包括:
    响应于返回操作,所述第二系统基于所述返回操作向所述第一系统发送界面切换消息;
    所述第一系统从所述第二系统处获取屏幕控制权限,基于所述界面切换消息显示目标界面,所述目标界面为所述第一系统的系统主界面或所述应用列表界面。
  8. 根据权利要求7所述的方法,其中,所述响应于返回操作,所述第二系统基于所述返回操作向所述第一系统发送界面切换消息,包括:
    响应于第一返回操作,所述第二系统基于所述第一返回操作向所述第一系统发送第一界面切换消息,所述第一界面切换消息用于指示所述第一系统切换显示所述系统主界面;
    响应于第二返回操作,所述第二系统基于所述第一返回操作向所述第一系统发送第二界面切换消息,所述第二界面切换消息用于指示所述第一系统切换显示所述应用列表界面。
  9. 根据权利要求8所述的方法,其中,所述第二系统基于所述第一返回操作向所述第一系统发送第一界面切换消息之后,所述方法包括:
    所述第二系统由唤醒状态切换为休眠状态;
    所述第二系统基于所述第一返回操作向所述第一系统发送第二界面切换消息之后,所述方法包括:
    所述第二系统在唤醒保持时长内保持唤醒状态;
    响应于达到所述唤醒保持时长,且未接收到应用启动消息,所述第二系统由唤醒状态切换为休眠状态。
  10. 根据权利要求1至6任一所述的方法,其中,所述响应于对所述应用列表界面中第一应用的选择操作,所述第一系统向所述第二系统发送应用启动消息,包括:
    响应于对所述应用列表界面中所述第一应用的选择操作,所述第一系统获取所述第一应用对应的运行系统标识,所述运行系统标识用于表征运行应用的系统;
    在所述运行系统标识指示所述第一应用由所述第二系统运行的情况下,所述第一系统向所述第二系统发送所述应用启动消息。
  11. 根据权利要求1至6任一所述的方法,其中,所述方法还包括:
    响应于对所述应用列表界面中第四应用的选择操作,所述第一系统启动所述第四应用并显示应用界面,所述第四应用是由所述第一系统运行的应用。
  12. 根据权利要求1至6任一所述的方法,其中,所述第一系统的运行功耗低于所述第二系统的运行功耗。
  13. 一种界面显示装置,所述装置用于电子设备,所述电子设备中支持运行第一系统和第二系统;
    所述装置包括:
    第一系统模块,还用于响应于列表启动操作,显示应用列表界面,所述应用列表界面中包含由所述第一系统模块和所述第二系统模块运行的应用;
    所述第一系统模块,还用于响应于对所述应用列表界面中第一应用的选择操作,向第二系统模块发送应用启动消息,所述第一应用是由所述第二系统模块运行的应用;
    所述第二系统模块,用于基于所述应用启动消息启动所述第一应用并显示应用界面。
  14. 根据权利要求13所述的装置,其中,所述第一系统模块,用于:
    获取存储的至少一个应用的应用标识以及应用布局信息,所述应用布局信息用于表征各个应用标识在所述应用列表界面中的布局方式;
    基于所述应用标识和所述应用布局信息显示所述应用列表界面。
  15. 根据权利要求14所述的装置,其中,所述第一系统模块,用于:
    响应于对所述应用列表界面中第二应用的布局编辑操作,更新所述应用列表界面,所述第二应用由所述第一系统模块或所述第二系统模块运行;
    更新所述应用布局信息。
  16. 根据权利要求14所述的装置,其中,所述第一系统模块,用于:
    响应于对所述应用列表界面中第三应用的卸载操作,更新所述应用列表界面,所述第三应用由所述第一系统模块或所述第二系统模块运行;
    删除所述第三应用对应的应用标识,并更新所述应用布局信息。
  17. 根据权利要求16所述的装置,其中,在所述第三应用由所述第二系统模块运行的情况下,所述第一系统模块,用于向所述第二系统模块发送应用卸载消息;
    所述第二系统模块,用于基于所述应用卸载消息卸载所述第三应用。
  18. 一种电子设备,所述电子设备包括处理器和存储器;所述存储器存储有至少一段程序,所述至少一段程序用于被所述处理器执行以实现如权利要求1至12任一所述的界面显示方法。
  19. 一种计算机可读存储介质,所述存储介质存储有至少一段程序,所述至少一段程序用于被处理器执行以实现如权利要求1至12任一所述的界面显示方法。
  20. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;电子设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述电子设备实现如权利要求1至12任一所述的界面 显示方法。
PCT/CN2022/130385 2021-12-23 2022-11-07 界面显示方法、装置、设备、存储介质及程序产品 WO2023116237A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111590043.6A CN116339873A (zh) 2021-12-23 2021-12-23 界面显示方法、装置、设备、存储介质及程序产品
CN202111590043.6 2021-12-23

Publications (1)

Publication Number Publication Date
WO2023116237A1 true WO2023116237A1 (zh) 2023-06-29

Family

ID=86891660

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/130385 WO2023116237A1 (zh) 2021-12-23 2022-11-07 界面显示方法、装置、设备、存储介质及程序产品

Country Status (2)

Country Link
CN (1) CN116339873A (zh)
WO (1) WO2023116237A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008077250A1 (en) * 2006-12-22 2008-07-03 Research In Motion Limited 'system for switching between running applications'
CN105653336A (zh) * 2015-12-30 2016-06-08 惠州市德赛西威汽车电子股份有限公司 双操作系统下整合应用的方法
CN112015475A (zh) * 2019-05-30 2020-12-01 杭州海康威视数字技术股份有限公司 一种应用程序启动方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008077250A1 (en) * 2006-12-22 2008-07-03 Research In Motion Limited 'system for switching between running applications'
CN105653336A (zh) * 2015-12-30 2016-06-08 惠州市德赛西威汽车电子股份有限公司 双操作系统下整合应用的方法
CN112015475A (zh) * 2019-05-30 2020-12-01 杭州海康威视数字技术股份有限公司 一种应用程序启动方法及装置

Also Published As

Publication number Publication date
CN116339873A (zh) 2023-06-27

Similar Documents

Publication Publication Date Title
KR102148948B1 (ko) 전자 장치의 멀티 태스킹 방법 및 그 전자 장치
WO2022262434A1 (zh) 一种功耗优化方法和电子设备
US20230324974A1 (en) Method for system switching, wearable device, and storage medium
WO2024032144A1 (zh) 设备控制方法、装置、可穿戴设备及存储介质
WO2021042881A1 (zh) 消息通知方法及电子设备
CN108021298B (zh) 利用剪切板粘贴信息的方法及装置
WO2023116237A1 (zh) 界面显示方法、装置、设备、存储介质及程序产品
WO2022218107A1 (zh) 数据传输方法、装置、设备及存储介质
WO2023124554A1 (zh) 应用启动方法、装置、设备及存储介质
WO2023116236A1 (zh) 应用启动方法、装置、设备及存储介质
WO2022213757A1 (zh) 应用界面的显示方法、装置、设备及存储介质
WO2022213743A1 (zh) 用户界面的显示方法、装置、设备及存储介质
WO2023124622A1 (zh) 通信连接的维持方法、装置、设备、存储介质及程序产品
WO2023138235A1 (zh) 主题切换方法、装置、设备、存储介质及程序产品
WO2024032140A1 (zh) 息屏显示方法、装置、设备及存储介质
WO2023185152A1 (zh) 来电处理方法、装置、设备及存储介质
WO2023236516A1 (zh) 语音识别方法、装置、设备及存储介质
CN106681845B (zh) 一种管理通讯消息的方法和装置
US10397390B2 (en) Communication event transfer method and apparatus, communication event processing method and apparatus, and terminal
WO2022218106A1 (zh) 数据传输方法、装置、设备及存储介质
CN116521283A (zh) 界面显示方法、装置、设备及存储介质
CN115309252A (zh) 音乐控制界面显示方法、装置、可穿戴式设备及存储介质
CN110543333B (zh) 针对处理器的休眠处理方法、装置、移动终端和存储介质
CN112148399B (zh) 一种应用图标的切换方法、装置及存储介质
CN116679900B (zh) 一种音频业务处理方法、固件去加载方法及相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22909554

Country of ref document: EP

Kind code of ref document: A1