WO2022213757A1 - 应用界面的显示方法、装置、设备及存储介质 - Google Patents

应用界面的显示方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022213757A1
WO2022213757A1 PCT/CN2022/079536 CN2022079536W WO2022213757A1 WO 2022213757 A1 WO2022213757 A1 WO 2022213757A1 CN 2022079536 W CN2022079536 W CN 2022079536W WO 2022213757 A1 WO2022213757 A1 WO 2022213757A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
interface
storage space
interface resource
update
Prior art date
Application number
PCT/CN2022/079536
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广东移动通信有限公司
Priority to JP2023556870A priority Critical patent/JP2024515440A/ja
Priority to EP22783826.5A priority patent/EP4293508A1/en
Publication of WO2022213757A1 publication Critical patent/WO2022213757A1/zh
Priority to US18/462,038 priority patent/US20230409355A1/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/4401Bootstrapping
    • 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
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/163Wearable computers, e.g. on a belt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • 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/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Definitions

  • the embodiments of the present application relate to the field of wearable devices, and in particular, to a method, device, device, and storage medium for displaying an application interface.
  • a wearable device is a portable electronic device that can be directly worn or integrated on clothes or accessories.
  • Common wearable devices include smart watches, smart bracelets, smart glasses and so on.
  • the user can use the wearable device to check the time, and use the application installed in the wearable device to realize functions such as sleep quality monitoring, exercise statistics, and notification message viewing.
  • Embodiments of the present application provide a method, apparatus, device, and storage medium for displaying an application interface.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for displaying an application interface, the method is used in a wearable device, and the wearable device supports running a first system and a second system;
  • the method includes:
  • the interface of the target application is displayed by the second system and the target application is executed.
  • an embodiment of the present application provides a display device for an application interface, the device is used in a wearable device, and the wearable device supports running a first system and a second system;
  • the device includes:
  • the first system module is configured to draw and display the The interface of the target application
  • a second system module configured to draw the interface of the target application through the second system in response to the second system being switched from the sleep state to the wake-up state;
  • the second system module is further configured to display the interface of the target application through the second system and run the target application in response to the second system completing the interface drawing.
  • an embodiment of the present application provides a wearable device, the wearable device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used by the processor Execute to realize the display method of the application interface described in the above aspects.
  • an embodiment of the present application provides a computer-readable storage medium, where the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the application interface described in the above aspects. Display method.
  • an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the application interface display method provided by the above aspects.
  • FIG. 1 is a schematic diagram of a dual-core communication software framework corresponding to a second processor according to an exemplary embodiment of the present application
  • FIG. 2 is a schematic diagram of a dual-core communication software framework corresponding to a first processor according to an exemplary embodiment of the present application
  • FIG. 3 shows a flowchart of a method for displaying an application interface provided by an exemplary embodiment of the present application
  • FIG. 4 is a schematic interface diagram of an application startup process in a smart watch according to an exemplary embodiment of the present application
  • FIG. 5 shows a flowchart of a method for displaying an application interface provided by an exemplary embodiment of the present application
  • FIG. 6 is a schematic diagram of the implementation of an interface resource update process shown in an exemplary embodiment of the present application.
  • FIG. 7 shows a flowchart of an interface resource update process provided by an exemplary embodiment of the present application.
  • FIG. 8 is a system interaction sequence diagram of an interface resource update process shown in an exemplary embodiment of the present application.
  • FIG. 9 shows a flowchart of an interface resource update process provided by another exemplary embodiment of the present application.
  • FIG. 10 is a system interaction sequence diagram of an interface resource update process shown in another exemplary embodiment of the present application.
  • FIG. 11 shows a structural block diagram of a display device for an application interface provided by another embodiment of the present application.
  • FIG. 12 shows a structural block diagram of a wearable device provided by an exemplary embodiment of the present application.
  • plural refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects are an "or" relationship.
  • a single processor is set in the wearable device, and all system events generated during the operation of the device are processed through the operating system running on the processor, so the processor needs to have strong data processing capabilities. capability and maintain working condition while the equipment is in operation.
  • wearable 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 The smart bracelet only needs to display time and prompt messages. Therefore, keeping the processor in operation for a long time will not improve the performance of the wearable device, but will increase the power consumption of the device, resulting in a shorter battery life of the wearable device.
  • the wearable device is provided with at least a first processor and a second processor with different processing performance and power consumption.
  • the processor is respectively used to run the first system and the second system (ie dual-core dual system), and a system switching mechanism is designed for the dual-core dual system.
  • the first system running on the low-power processor processes events requiring low-performance processing, and keeps the high-power processor in a dormant state (correspondingly, the high-power processor is
  • the second system run by the processor is in a dormant state), which reduces the power consumption of the wearable device while implementing the basic functions of the wearable device; when there is an event that requires high-performance processing (such as when an application is started) , by waking up the high-power consumption processor and switching to the second system to process the event, ensuring that the triggered event can be responded to and processed in time, and meeting the performance requirements of the wearable device.
  • the present application introduces a startup effect pre-display mechanism, Before the high-power processor switches to the wake-up state, the first system run by the low-power processor draws and displays the application interface; when the high-power processor switches to the wake-up state, the first system run by the high-power processor The second system displays the application screen and runs the application to realize the pre-display of the application startup effect, thereby improving the startup speed of the application visually and reducing the display delay of the application screen during the system switching process.
  • the first processor and the second processor work asynchronously, and the first system and the second system need to implement system communication (or referred to as dual-core communication).
  • the first system is a 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 ( The Android operating system on the Central Processing Unit (CPU).
  • RTOS Real Time Operating System
  • MCU Micro Controller Unit
  • RTOS Real-time operating system
  • CPU Central Processing Unit
  • 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) part of the module development.
  • the APP module includes functional modules such as Launcher (desktop launcher), Setting (setting) and SystemUI (system user interface);
  • 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 Drivers such as dcc_datah, dcc_data, Mcu_sensor, Mcu_gps, and Mcu_factory.
  • the transport layer as the interface layer connecting the upper and lower layers in the dual-core communication software framework, shields the application layer from the transmission details of the communication of the lower layer (data link layer) of the system, and provides a service channel for application scenarios;
  • the application layer as the main body of service provision, responds to people It communicates with the computer and transmits the data generated in the process of human-computer interaction through the transport layer, and responds to external data requests.
  • RTOS is designed using the principle of peer-to-peer. Taking the wearable device as a smart watch as an example, as shown in FIG. 2 , it shows the dual-core communication software framework of 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; 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 (transfer 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 attention), Audio Middleware (audio middleware), Preference (preference), File system (file system), Algorithms (algorithm), Aios, AsycEvent (in-process asynchronous event) and other framework modules;
  • the hardware abstraction layer includes hardware abstraction modules such as Screen/TP (screen
  • FIG. 3 shows a flow chart of a method for displaying an application interface provided by an exemplary embodiment of the present application.
  • This embodiment uses the method to apply a wearable device, and the wearable device supports running the first system and
  • the second system is taken as an example to illustrate, and the method may include the following steps.
  • Step 301 when the first system is in an awake state and the second system is in a dormant state, in response to an application startup instruction of the target application, the interface of the target application is drawn and displayed by the first system.
  • the wearable 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 power and processing speed are 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 (run by the second processor) can process events handled by the first system (run by the first processor), while the first system is not necessarily capable of handling events handled by the second system.
  • the wearable device may also be provided with a single processor, the first system and the second system respectively run on different cores of the processor, wherein the core running the second system has high processing performance processing performance of the core running 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 scenarios with low processing performance requirements or weak interaction scenarios; the events that the second system can handle include answering incoming calls, launching applications, etc. , dial editing, function settings and other scenarios that require high processing performance or strong interaction scenarios.
  • the working modes of the wearable device include a power mode, a hybrid mode and a low power consumption mode, wherein, in the performance mode, both the second processor and the first processor are kept in an awake state (corresponding to , 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, the second system is in the wake-up state) in the off state); in the hybrid mode, when the first system processes events, the second processor is in a standby state and can switch between sleep and wake-up states (that is, when the first system is in the wake-up state, the second system is both can be awake or dormant).
  • 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 memory by the hard disk when it is switched to the wake-up state.
  • wearable devices as an auxiliary electronic device, only have weak interactions with users in most usage scenarios. For example, in most scenarios, users only raise their wrists through smart watches to check the time or message prompts. Therefore, when the wearable device processes the event through the first system, the second processor is controlled to be in a sleep state (the second system is in a sleep state), thereby reducing the overall power consumption of the wearable device.
  • the first system When the first system is in the awake state and the second system is in the dormant state, when an application startup instruction of the target application is received, it indicates that the target application needs to be started and run, because the first system does not have the ability to run the target application , so it is necessary to wake up the second system in the dormant state, so as to start and run the target application through the second system.
  • the wake-up process of the second system takes a certain amount of time (at least 200ms to 300ms), there will be a short-term non-response phenomenon after triggering the startup of the target application (it takes a while for the application screen to appear), which affects the user experience.
  • the wearable device in order to reduce the display delay of the application screen during the system switching process, when the wearable device receives the application startup instruction of the target application during the operation of the first system, the first system first draws the interface of the target application and Display (only responsible for drawing interface images, not starting or running the target application at the first system).
  • the application startup instruction is an instruction triggered by a shortcut key (such as a physical key) or an instruction triggered by a widget (widget) in the first system;
  • the target application may be a health monitoring application, an instant messaging application, a timing application, An alarm clock application, a sports application, etc.
  • the interface of the target application can be a static picture (such as the first frame application interface) or a dynamic picture (such as a startup animation of an application startup process).
  • the embodiments of the present application do not limit the triggering manner of the application startup instruction, the type of the target application, and the type of the interface.
  • the first system can draw and display the interface immediately after receiving the application startup instruction, that is, display the interface of the target application immediately after triggering the startup of the target application, thereby improving the startup speed of the application visually.
  • the smart watch is provided with an RTOS (run by the first processor) and an Android system (run by the second processor).
  • the smart watch displays the dial 41 through the RTOS, and the Android system is in a dormant state, thereby maintaining low power consumption.
  • the sports application can be quickly started by double-clicking the physical button.
  • the RTOS draws and displays the application interface 42 of the motion application.
  • Step 302 in response to the second system being switched from the sleep state to the wake-up state, draw the interface of the target application by the second system.
  • the second system performs synchronous wake-up, that is, the second processor switches from the sleep state to the wake-up state.
  • the target application is started and run through the second system.
  • the second system also needs to perform interface drawing of the target application.
  • the interface of the target application drawn by the second system is the same as the interface of the target application drawn by the first system, for example, both draw the first frame of the application interface after the target application is started; or, the target application drawn by the second system.
  • the interface drawn by the first system is different from the interface of the target application drawn by the first system.
  • the interface drawn by the first system is the transition animation during the application startup process
  • the interface drawn by the second system is the first frame of the application after the transition animation is played. interface.
  • the first system and the second system may also draw other interfaces belonging to the target application, and this embodiment does not limit the specific interfaces drawn by the two.
  • the first processor wakes up the second processor by sending an interrupt to the second processor.
  • Step 303 in response to the second system completing the interface drawing, display the interface of the target application through the second system and run the target application.
  • the system running on the wearable device is switched from the first system to the second system, so that the interface of the target application is displayed through the second system, and the target application continues to run.
  • the first system is still in a wake-up state (low power consumption, less impact on battery life), or the first system is switched to a sleep state, which is not limited in this embodiment.
  • the Android system is switched from the sleep state to the wake-up state.
  • the Android system wakes up for example, after 200ms
  • the running system of the smart watch is switched from the RTOS to the Android system. system, and display the application interface 42 through the Android system to run the sports application.
  • the second processor switches back to the sleep state, and switches back to the first system to process events, so that the wearable device can remain in a small number of scenarios.
  • High performance but high power consumption
  • low power consumption but low performance
  • the application startup instruction of the target application is received, first The interface of the target application is drawn and displayed by the first system, and after the second system wakes up, the interface of the target application is displayed and the target application is run through the second system; using the solution provided by the embodiment of the present application, the application is pre-displayed through the first system
  • the startup effect can improve the startup speed of the visual application and reduce the display delay of the application screen during the system switching process.
  • the interface of the target application is drawn and displayed by the first system, including:
  • the target interface resource corresponding to the target application from the first storage space by the first system, and the first storage space is the storage space corresponding to the first system;
  • the interface of the target application is drawn and displayed by the first system.
  • acquiring the target interface resource corresponding to the target application from the first storage space through the first system including:
  • the target interface resource is acquired from the first storage space through the first system.
  • the method also includes:
  • the interface resource stored in the first storage space is updated by the first system.
  • sending an interface resource update message to the first system through the second system including:
  • the interface resources stored in the first storage space are updated by the first system, including:
  • the first application information and the updated first interface resource are associated and stored in the first storage space.
  • obtaining the first application information of the first application through the second system including:
  • the first application information of the first application is sent to the second system through the first system, and the first interface resource corresponding to the first application in the first storage space is deleted.
  • obtaining the first application information of the first application through the second system including:
  • the second storage space is the storage space corresponding to the second system
  • the first application information is associated with the updated first interface resource and stored in the first storage space, including:
  • sending an interface resource update message to the first system through the second system including:
  • the second application information and the second interface resource of the second application are obtained through the second system in response to monitoring the startup mode update message of the second application, and the startup mode update message is used to represent The startup method of the second application changes;
  • the interface resources stored in the first storage space are updated by the first system, including:
  • the second interface resource corresponding to the second application information in the first storage space is updated by the first system based on the update method.
  • the second interface resource corresponding to the second application information in the first storage space is updated by the first system based on the update method, including:
  • the second application information is associated with the second interface resource and stored in the first storage space by the first system;
  • the second application information and the second interface resource are deleted from the first storage space by the first system.
  • the method also includes:
  • the second interface resource in the first storage space is not updated.
  • updating the second interface resource corresponding to the second application information in the first storage space through the first system based on the update method including:
  • Methods also include:
  • the second interface resource corresponding to the second application information in the first storage space is updated by the first system based on the update method.
  • the first storage space is used to store interface resources corresponding to applications that are supported to be started under the first system, wherein the manner of starting the application under the first system includes at least one of the following: starting through a shortcut key and through the first system.
  • the widget widget of the system starts.
  • displaying the interface of the target application through the second system and running the target application including:
  • the interface of the target application is displayed through the second system and the target application is executed.
  • the wearable device is provided with a first processor and a second processor, the power consumption of the second processor is higher than that of the first processor, and the first system is a system run by the first processor , the second system is a system run by the second processor.
  • the first system and the second system have corresponding data storage spaces, and since the first system is only responsible for processing simple events, while the second system needs to process complex events, the corresponding The storage space is much larger than the storage space corresponding to the first system.
  • the storage space corresponding to the first system stores the interface resources corresponding to the application, and after receiving the application startup instruction, the first system draws the application interface based on the interface resources in the storage space. Exemplary embodiments are used for description below.
  • FIG. 5 shows a flowchart of a method for displaying an application interface provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps .
  • Step 501 when the first system is in the wake-up state and the second system is in the dormant state, in response to the application startup instruction of the target application, obtain the target interface resource corresponding to the target application from the first storage space through the first system,
  • a storage space is a storage space corresponding to the first system.
  • the first system corresponds to a first storage space
  • the first storage space stores interface resources corresponding to at least one application
  • the interface resources refer to resources required for drawing an application interface
  • the interface resources may include text resources , picture resources, animation resources, special effects resources, interface layout resources, etc.
  • This embodiment does not limit the specific content contained in the interface resources.
  • the first storage space stores interface resources corresponding to each application in the second system.
  • the interface resources corresponding to each of the four applications are stored and installed in the first storage space.
  • the first storage space is used to store interface resources corresponding to applications that are supported to be started under the first system, thereby reducing the storage space occupied by the interface resources while realizing the switch of the sensorless system.
  • the application supported to be started under the first system refers to an application that can be started when the second system is in a dormant state.
  • the application belongs to an application supported to be started under the first system, and/or, when the application is set to be able to be started through a shortcut key, the application belongs to an application supported to be started in the first system.
  • the manner of starting the application under the first system includes at least one of the following: starting through a shortcut key and starting through a widget of the first system.
  • the way to start the application under the first system through the shortcut key can be set by the user, for example, double-click the physical button to start a specific application, or long-press the physical button to start a specific application;
  • the widget can be added by the user in the first system, For example, a widget corresponding to the health monitoring application is added on the dial, so that the user clicks the widget displayed in the first system to start the health monitoring application.
  • the first storage only stores interface resources corresponding to sports applications and health monitoring applications, and does not need to store interface resources corresponding to alarm clock applications and instant messaging applications.
  • the application information in the first storage space is stored in association with the interface resource, that is, the mapping relationship between the application information and the interface resource is stored.
  • the application information includes at least one of an application package name (packagename) and an application class name (activityname).
  • the application information when the application has only a single functional interface, the application information includes the application package name, and when the application has multiple functional interfaces and can be activated under the first system by setting and displays a specific functional interface, the application information includes Application package name and application class name (corresponding to a specific functional interface).
  • the target application information corresponding to the target application is obtained through the first system, and the target interface resource is obtained from the first storage space through the first system based on the target application information, wherein,
  • the target application information includes at least one of a target application package name and a target application class name.
  • the first system searches the first storage space for an interface resource matching the target application information based on the target application information, and determines the found interface resource as the target interface resource corresponding to the target application.
  • mapping relationship between application information and interface resources in the first storage space is shown in Table 1.
  • Application Information interface resources Application package name: sport_app Interface resource file A Application package name: health_app Interface resource file B
  • the first system determines the interface resource file A in the first storage space as the target interface resource; when the acquired application package name of the target application is health_app, the first system will The interface resource file B in the first storage space is determined as the target interface resource.
  • Step 502 based on the target interface resource, draw and display the interface of the target application through the first system.
  • the first system after acquiring the target interface resource, the first system immediately performs real-time rendering and display of the interface.
  • other data may also need to be used, such as time data, sensor data (such as pedometer data), etc. the accuracy of the content in the interface.
  • the target interface resources obtained by the first system that correspond to the sports application include image resources, text resources, and interface layout resources.
  • the text resource is drawn at the corresponding interface position, and the current time and pedometer data are rendered in the interface to obtain the application interface of the sports application.
  • Step 503 in response to the second system being switched from the sleep state to the wake-up state, draw the interface of the target application by the second system.
  • step 302 For the implementation of this step, reference may be made to step 302, and details are not described herein again in this embodiment.
  • Step 504 in response to the second system completing the interface drawing, send a switching instruction to the first system through the second system, and the switching instruction is used to instruct the first system to transfer the display authority of the graphical user interface (Graphical User Interface, GUI).
  • GUI graphical User Interface
  • the first system needs to transfer the GUI display authority to the second system, so that the wearable device displays the GUI of the second system during the running of the target application.
  • the second system sends a switching instruction to the first system after completing the interface drawing, instructing the first system to transfer the display authority of the graphical user interface to the second system.
  • Step 505 in response to the second system acquiring the permission to display the graphical user interface, display the interface of the target application through the second system and run the target application.
  • the second system After the second system obtains the display permission of the graphical user interface, it displays the interface of the target application that has been drawn and runs the target application. Correspondingly, the wearable device displays the interface of the target application.
  • the first system can accurately acquire the corresponding target interface from the first storage space based on the target application information of the target application. Resources that help improve the drawing speed and drawing accuracy of the interface.
  • the first storage space only stores the interface resources that support the applications started under the first system.
  • the storage space occupied by the interface resources is reduced, and the demand for the capacity of the first storage space is reduced.
  • the interface resources stored in the first storage space also need to be updated accordingly.
  • the wearable device when the second system is in an awake state, the wearable device sends an interface resource update message to the first system through the second system (when there is an interface resource update event), the first system is Based on the interface resource update message, the interface resources stored in the first storage space are updated.
  • the interface resource update message includes at least application information of the application to be updated.
  • the application layer presets the updated interface resources into the Android application package (Android application Package, APK) corresponding to the framework (Framework) resource of the Android system.
  • APK Android application Package
  • the interface resource management central control set in the framework layer is responsible for monitoring interface resource update events.
  • the interface resource management central control obtains interface resources from the framework resource APK and communicates with the dual-core set in the kernel layer.
  • the module (specifically the DCC set at the kernel layer) communicates with the MCU, so that the MCU updates the interface resources stored in the first storage space based on the received interface resource update data.
  • the process of implementing interface resource update through interaction between the second system and the first system is also different.
  • the first system needs to update all interface resources stored in the first storage space;
  • an application-level interface resource update event the first system only needs to update the specific interface resources.
  • the UI resources of the application are updated.
  • FIG. 7 shows a flowchart of an interface resource update process provided by an exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps.
  • Step 701 in the case that the second system is in an awake state, in response to receiving the language update broadcast, obtain the first application information of the first application through the second system, wherein the first storage space stores the corresponding information of the first application.
  • the first interface resource in response to receiving the language update broadcast, obtain the first application information of the first application through the second system, wherein the first storage space stores the corresponding information of the first application.
  • the second system when the system language of the wearable device is changed, the second system will receive a language update broadcast, where the language update broadcast includes the switched system language. For example, when the user switches the system language of the wearable device from Chinese to English, the second system receives a language update broadcast instructing to switch to English.
  • the application language applied in the second system needs to be changed, and accordingly, the content (such as text content) contained in the application interface will also change accordingly. Therefore, after receiving the language update broadcast, the second system The system determines that interface resources of all applications need to be updated, and acquires first application information of the first application in the first storage space.
  • this step may include the following steps:
  • the second system sends a query message to the first system through a dual-core communication module at the kernel layer, requesting the first system to query the first application information stored in the first storage space.
  • the first system acquires the stored first application information from the first storage space.
  • the Android system when the Android system receives the language update broadcast (ACTION_LOCALE_CHANGED) in the wake-up state, it sends a query message to the RTOS.
  • ACTION_LOCALE_CHANGED the language update broadcast
  • the first system after querying the first application information of each first application, the first system sends a query result including the first application information to the second system through a dual-core communication module at the kernel layer.
  • the query result fed back by the first system to the second system includes the application package names sport_app and health_app.
  • the first system will delete the first storage space The first interface resource corresponding to the first application.
  • the query message sent by the second system contains a preset identifier, and when it is recognized that the query message contains the preset identifier, the first system determines that the interface resource needs to be updated due to a change in the system language, thereby deleting the information in the first storage space.
  • the stored first interface resource In combination with the data shown in Table 1 in the foregoing embodiment, the first system deletes the interface resource file A and the interface resource file B stored in the first storage space.
  • the RTOS deletes the first interface resource stored in the first storage space while feeding back the query result to the Android system.
  • Step 702 Send a first interface resource update message to the first system through the second system, where the first interface resource update message includes the first application information and the updated first interface resource.
  • the second system obtains, based on the first application information, the updated first interface resource corresponding to the stored first application from the second storage space, where the second storage space is the second system corresponding storage space, and the updated first interface resource is stored in the second storage space by each first application.
  • the interface resource management central control in the second system obtains the updated first interface resource from the framework resource APK.
  • the second system obtains the updated interface resource file A' and the interface resource file B' based on the application package names sport_app and health_app.
  • the text resources included in the updated first interface resource are different from the text resources included in the first interface resource before the update.
  • the updated text resource is the English name of the first application
  • the text resource before the update is the Chinese name of the first application.
  • the second system sends the first interface resource update message to the first system through the dual-core communication module, so that the first system can update the interface resources in the first storage space.
  • the first interface resource update message may include the following fields:
  • path used to represent the update path.
  • the value of the path field represents that the system language update triggers the interface resource update;
  • action used to represent the update method of the interface resource, in this embodiment, the value of the action field represents the replacement interface resource;
  • packagename application package name
  • the first interface resource update message may also include other fields, and this embodiment only takes the inclusion of the above fields as an example for illustrative description, but does not constitute a limitation.
  • the Android system after receiving the query result, the Android system obtains the updated first interface resource based on the query result, and sends a first interface resource update message to the RTOS based on the first interface resource.
  • Step 703 store the first application information and the updated first interface resource in the first storage space in association with the first system.
  • the first system After receiving the first interface resource update message, the first system will store the first application information in association with the updated first interface resource, and in the subsequent system switching process, the first system can perform the application interface based on the updated interface resource. Draw and display, and ensure that the language used in the displayed application interface is consistent with the system language.
  • the mapping relationship between the application information and the interface resources in the first storage space is shown in Table 2.
  • Application Information interface resources Application package name: sport_app Interface resource file A’
  • the first system after completing the update of the interface resources, notifies the second system that the update is complete, informing the second system that the update of the interface resources has been completed. If the second system does not receive the update completion notification within the preset time period, it re-sends the first interface resource update message to the first system.
  • the RTOS after the RTOS finishes updating the first interface resource, it sends an update completion notification to the Android system.
  • each application will store the updated interface resources in the second system (the second storage space) , so the wearable device can also obtain the first application information of the first application from the second storage space through the second system, and set the mandatory update flag in the first interface resource update message sent to the first system.
  • the first system when the first system recognizes that the first interface resource update message contains a mandatory update identifier (for example, set by the extra field in the first interface update message), it deletes the interface resources stored in the first storage space, and stores the first interface resource.
  • An application information is stored in the first storage space in association with the updated first interface resource, so as to avoid storing two sets of interface resources of the same application.
  • the first application information of each first application is obtained through the second system, and the updated first interface resources are obtained based on the first application information, so that the updated first interface resources are It is sent to the first system, and the first system updates the first interface resources stored in the first storage space to ensure that the language of the application interface displayed by the first system is consistent with the system language during subsequent system switching.
  • FIG. 9 shows a flowchart of an interface resource update process provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps.
  • Step 901 in the case where the second system is in an awake state, in response to monitoring the startup mode update message of the second application, obtain the second application information and second interface resources of the second application through the second system, and the startup mode update message The launch mode used to characterize the second application changes.
  • the user may set a shortcut startup method for the application in the second system, so that the application in the second system can also be started under the first system.
  • the setting of the shortcut startup mode may include adding a widget of the application in the first system, and setting a shortcut key for starting the application.
  • the first system needs to adaptively update the interface resources in the first storage space.
  • the second system listens to a startup mode change message, and the startup mode change message may include the target startup mode and the corresponding target startup mode update method.
  • the target startup method is widget startup, and the update method is add; when the second application is deleted by shortcut key, the target startup method is shortcut key startup, and the update method is The method is delete.
  • the second system acquires second application information and second interface resources corresponding to the second application.
  • the second system may update the application information of the second application in the message according to the startup mode, and obtain the second interface resource from the second storage space.
  • the second system when the update mode indicated by the startup mode update message is add, the second system obtains the second application information and the second interface resource, and when the update mode indicated by the startup mode update message is delete, the second system only needs to Obtain second application information.
  • the Android system obtains the second interface resource of the second application when it monitors the startup mode update message of the second application (including ACTION_SHORTC UT_SETTING_CHANGED and ACTION_WIDGET_CHANGED).
  • Step 902 Send a second interface resource update message to the first system through the second system, where the second interface resource update message includes the update method, the second application information, and the second interface resource.
  • the second system Based on the acquired second interface resource, the second system sends a second interface resource update message to the first system through the dual-core communication module, where the second interface resource update message includes, in addition to the second application information and the second interface resource, also includes How the target is launched and how it is updated.
  • the second interface resource update message may include the following fields:
  • path used to represent the update path.
  • the value of the path field represents the update shortcut startup method (including update widget and update shortcut key) to trigger interface resource update;
  • action used to represent the update method of interface resources.
  • the value of the action field represents adding interface resources or deleting interface resources;
  • packagename application package name
  • activityname application class name, used to indicate a specific application interface in the application
  • the second interface resource update message may also include other fields, and this embodiment only takes the inclusion of the above fields as an example for illustrative description, but does not constitute a limitation.
  • the Android system after acquiring the second interface resource, the Android system sends a second interface resource update message to the RTOS, instructing the RTOS to update the interface resource stored in the first storage space.
  • Step 903 Update the second interface resource corresponding to the second application information in the first storage space through the first system based on the update method.
  • the first system updates the second interface resource corresponding to the second application information in the first storage space based on the acquired second interface resource update message.
  • the wearable device when the updating method is adding, stores the second application information and the second interface resource in the first storage space in association with the first system; For deletion, the wearable device deletes the second application information and the second interface resource from the first storage space through the first system.
  • updating the interface resource directly based on the second interface resource update message may cause an update conflict.
  • the second interface resource of the second application is stored in the first storage space
  • the second interface resource update message indicates to add the second interface resource of the second application (which may correspond to different shortcut startup methods)
  • the Adding a second interface resource to a storage space will cause repeated storage of interface resources, resulting in wasted storage space.
  • the second interface resource of the second application is stored in the first storage space, and the second application supports launching through at least two different shortcuts
  • the second interface resource update message indicates to delete the second interface resource of the second application.
  • Interface resources deleting one of the shortcut startup methods
  • directly deleting the second interface resource in the first storage space will cause the second application to be started only through other shortcut startup methods, and the first system cannot draw and display the application interface.
  • the first system after receiving the second interface resource update message, the first system performs update conflict detection based on the update method and the second application information, and if there is no update conflict, based on the second interface resource
  • the update method indicated by the update message updates the interface resources in the first storage space; if there is a conflict, the second interface resource update message is not responded to.
  • the first system detects whether there is second application information in the first storage space, and if not If there is, it is determined that there is no conflict under the update, so that the second application information and the second interface resource are associated and stored in the first storage space.
  • mapping relationship between application information and interface resources in the first storage space is as shown in Table 1, if the update mode included in the second interface resource update message is increase, and When the second application information is "application package name: alarm_app" (alarm_app), since the second application information is not included in the first storage space, it is determined that there is no update conflict, and the interface resource is updated. After the interface resource is updated, the first A mapping relationship between application information and interface resources in a storage space is shown in Table 3.
  • Application Information interface resources Application package name: sport_app Interface resource file A Application package name: health_app Interface resource file B Application package name: alarm_app Interface resource file C
  • the first system determines that there is an update conflict, and does not update the second interface resource in the first storage space.
  • the first system adds a corresponding startup mode to be added to the second application information.
  • the first system when the update mode is delete (second interface resource), the first system detects the first storage based on the target startup mode (ie, the startup mode to be deleted) in the update message of the second interface resource. Whether the second application information stored in the space is used by a startup mode other than the startup mode to be deleted, if not (that is, the second application is only activated by the shortcut indicated by the startup mode to be deleted), the first system determines that there is no update conflict, so that the second application information and the second interface resource are deleted from the first storage space.
  • the target startup mode ie, the startup mode to be deleted
  • the first system determines that there is no update conflict, so that the second application information and the second interface resource are deleted from the first storage space.
  • mapping relationship among application information, interface resources and startup modes in the first storage space is shown in Table 4.
  • Application Information interface resources Start method
  • Application package name sport_app Interface resource file A widgets, shortcut keys
  • Application package name health_app Interface resource file B hot key
  • the first system determines that there is no update conflict , and update the interface resources. After the interface resources are updated, the mapping relationship between the application information interface resources and the startup methods in the first storage space is shown in Table 5.
  • Application Information interface resources Start method Application package name: sport_app Interface resource file A widgets, shortcut keys
  • the second application information is stored in the first storage space, and the second application information is used in a startup mode other than the startup mode to be deleted, the first system determines that there is an update conflict, and does not The second interface resource in the first storage space is updated.
  • the first system deletes the start mode to be deleted corresponding to the second application information.
  • the update method contained in the second interface resource update message is delete, and the contained second application information is "application package name: health_app", because the first storage space contains The second application information determines that there is an update conflict, does not update the interface resource file A, and only deletes the startup mode "shortcut key" to be deleted in the second interface resource update message for health_app.
  • the second system may instruct a forced update of the second interface resource by setting a forced update flag in the second interface resource update message.
  • the first system performs update conflict detection based on the update method and the second application information
  • the first system In response to identifying that the second interface resource update message contains the mandatory update identifier, the first system updates the second interface resource corresponding to the second application information in the first storage space through the first system based on the update method.
  • the first system after completing the update of the interface resources, notifies the second system that the update is complete, informing the second system that the update of the interface resources has been completed. If the second system does not receive the update completion notification within the preset time period, it re-sends the second interface resource update message to the first system.
  • RTOS after RTOS receives the second interface resource update message, if it contains the mandatory update identifier, the RTOS system directly updates (adds or deletes) the interface resource, if it does not contain the mandatory update identifier, The RTOS system updates (adds or deletes) interface resources under conditions (that is, when there is no update conflict), and sends an update completion notification to the Android system after updating the second interface resources.
  • the second application information of the second application is acquired through the second system, and the second interface resource is acquired based on the second application information, so as to send the second application information to the first system.
  • the interface resource update message the first system determines whether there is an update conflict for the second interface resource, updates the second interface resource if there is no update conflict, and does not update the second interface resource in the case of an update conflict to ensure startup.
  • FIG. 11 shows a structural block diagram of a display device for an application interface provided by an embodiment of the present application.
  • the apparatus can be implemented as all or a part of the wearable device through software, hardware or a combination of the two.
  • the device includes:
  • the first system module 1101 is configured to draw and display the interface of the target application through the first system in response to an application startup instruction of the target application when the first system is in an awake state and the second system is in a dormant state;
  • the second system module 1102 is configured to draw the interface of the target application through the second system in response to the second system being switched from the sleep state to the wake-up state;
  • the second system module 1102 is further configured to display the interface of the target application through the second system and run the target application in response to the second system completing the interface drawing.
  • the first system module 1101 is used for:
  • the target interface resource corresponding to the target application from a first storage space, where the first storage space is the storage space corresponding to the first system;
  • the interface of the target application is drawn and displayed by the first system.
  • the first system module 1101 is specifically used for:
  • the target interface resource is acquired from the first storage space by the first system.
  • the second system module 1102 is further configured to:
  • the first system module 1101 is further configured to update the interface resources stored in the first storage space through the first system based on the interface resource update message.
  • the second system module 1102 is specifically used for:
  • the second processor When the second processor is in an awake state, in response to receiving the language update broadcast, acquire first application information of the first application through the second system, wherein the first storage space stores all the first interface resource corresponding to the first application;
  • the first system module 1101 is specifically used for:
  • the first application information is stored in the first storage space in association with the updated first interface resource.
  • the second system module 1102 is specifically configured to: send a query message to the first system through the second system;
  • the first system module 1101 is specifically configured to send the first application information of the first application to the second system through the first system, and delete the first application information in the first storage space.
  • the first interface resource corresponding to the application is specifically configured to send the first application information of the first application to the second system through the first system, and delete the first application information in the first storage space.
  • the second system module 1102 is specifically configured to: obtain the first application information of the first application from a second storage space through the second system, and the second storage space is all the storage space corresponding to the second system;
  • the first system module 1101 is specifically configured to: in response to identifying that the first interface resource update message contains a mandatory update identifier, delete the interface resources stored in the first storage space through the first system, and The first application information is associated with the updated first interface resource and stored in the first storage space.
  • the second system module 1102 is specifically used for:
  • the second system in response to monitoring the startup mode update message of the second application, obtain the second application information and second interface resources of the second application through the second system, so The startup mode update message is used to indicate that the startup mode of the second application has changed;
  • the first system module 1101 is specifically used for:
  • the second interface resource corresponding to the second application information in the first storage space is updated by the first system based on the update method.
  • the first system module 1101 is specifically used for:
  • the second application information and the second interface resource are deleted from the first storage space by the first system.
  • the first system module 1101 is further configured to:
  • the second application information is stored in the first storage space, and there is a startup method other than the to-be-deleted startup method that uses the second application information, determining that there is an update conflict ;
  • the second interface resource in the first storage space is not updated.
  • the first system module 1101 is further configured to:
  • the first storage space is used to store interface resources corresponding to applications that are supported to be started under the first system, wherein the manner of starting the application under the first system includes at least one of the following: through a shortcut key activation and activation through the widget widget of the first system.
  • the second system module 1102 is further configured to:
  • the interface of the target application is displayed by the second system and the target application is executed.
  • the wearable device is provided with a first processor and a second processor, the power consumption of the second processor is higher than the power consumption of the first processor, and the first system is A system run by the first processor and the second system is a system run by the second processor.
  • the application startup instruction of the target application is received, first The interface of the target application is drawn and displayed by the first system, and after the second system wakes up, the interface of the target application is displayed and the target application is run through the second system; using the solution provided by the embodiment of the present application, the application is pre-displayed through the first system
  • the startup effect can improve the startup speed of the visual application and reduce the display delay of the application screen during the system switching process.
  • the first system can accurately acquire the corresponding target interface from the first storage space based on the target application information of the target application. Resources to help improve the interface drawing speed and drawing accuracy of the target application.
  • the first storage space only stores the interface resources that support the applications started under the first system.
  • the storage space occupied by the interface resources is reduced, and the capacity of the first storage space is reduced. need.
  • the first application information of each first application is obtained through the second system, and the updated first interface resources are obtained based on the first application information, so that the updated first interface resources are It is sent to the first system, and the first system updates the first interface resources stored in the first storage space to ensure that the language of the application interface displayed by the first system is consistent with the system language during subsequent system switching.
  • the second application information of the second application is acquired through the second system, and the second interface resource is acquired based on the second application information, so as to send the second application information to the first system.
  • the interface resource update message the first system determines whether there is an update conflict for the second interface resource, updates the second interface resource if there is no update conflict, and does not update the second interface resource in the case of an update conflict to ensure startup.
  • FIG. 12 shows a structural block diagram of a wearable device provided by an exemplary embodiment of the present application.
  • the wearable 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 the power consumption of the second processor 1212 , and the performance of the first processor 1211 is lower than that of the second processor 1212 .
  • the processor 1210 uses various interfaces and lines to connect various parts in the entire electronic device, and executes the electronic device by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1220, and calling the data stored in the memory 1220. Various functions of the device and processing data.
  • the processor 1210 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • a hardware form is implemented.
  • the processor 1210 may integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics 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 applications; the GPU is used to render and draw the content that needs to be displayed on the touch screen; the NPU is used to implement artificial intelligence (AI) functions; 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 is implemented by a single chip.
  • the memory 1220 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM).
  • the memory 1220 includes a non-transitory computer-readable storage medium.
  • Memory 1220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1220 may include a stored program area and a stored data area, wherein the stored program 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 may store data (such as audio data, phone book) and the like created according to the use of the wearable device.
  • the wearable device in this embodiment of the present application further includes a communication component 1230 and a display component 1240 .
  • the communication component 1230 may be a Bluetooth component, a wireless local area network (Wireless Fidelity, Wi-Fi) component, a near field communication (Near Field Communication, NFC) component, etc., for communicating with an external device (server or other device) through a wired or wireless network terminal device) for communication;
  • the display component 1240 is used for displaying a graphical user interface, and/or receiving user interaction operations.
  • the structure of the wearable device shown in the above drawings does not constitute a limitation on the wearable device, and the wearable device may include more or less than shown in the figure. components, or a combination of certain components, or a different arrangement of components.
  • the wearable 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.
  • Embodiments of the present application further provide a computer-readable storage medium, where at least one instruction is stored in the storage medium, and at least one instruction is used to be executed by a processor to implement the method for displaying an application interface as described in the foregoing embodiments.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for displaying the application interface provided by the foregoing embodiments.
  • 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 medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Abstract

一种应用界面的显示方法、装置、设备及存储介质,属于可穿戴式设备领域。该方法包括:在第一系统处于唤醒状态,且第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过第一系统绘制并显示目标应用的界面(301);响应于第二系统由休眠状态切换为唤醒状态,通过第二系统绘制目标应用的界面(302);响应于第二系统完成界面绘制,通过第二系统显示目标应用的界面并运行目标应用(303)。通过第一系统展示应用启动效果,能够提升视觉上应用的启动速度,降低系统切换过程中应用画面的显示延迟。通过第一系统预展示应用启动效果,能够提升视觉上应用的启动速度,降低系统切换过程中应用画面的显示延迟。

Description

应用界面的显示方法、装置、设备及存储介质
本申请要求于2021年4月6日提交的申请号为202110366882.3、发明名称为“应用界面的显示方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及可穿戴式设备领域,特别涉及一种应用界面的显示方法、装置、设备及存储介质。
背景技术
可穿戴式设备是一种可以直接穿戴或者整合在衣服或配件上的便携式电子设备,常见的可穿戴式设备包括智能手表、智能手环、智能眼镜等等。
以可穿戴式设备为智能手表为例,用户可以使用可穿戴式设备查看时间,使用可穿戴式设备中安装的应用程序实现睡眠质量监测、运动统计以及通知消息查看等功能。
发明内容
本申请实施例提供了一种应用界面的显示方法、装置、设备及存储介质。所述技术方案如下:
一方面,本申请实施例提供了一种应用界面的显示方法,所述方法用于可穿戴式设备,所述可穿戴式设备中支持运行第一系统和第二系统;
所述方法包括:
在所述第一系统处于唤醒状态,且所述第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过所述第一系统绘制并显示所述目标应用的界面;
响应于所述第二系统由休眠状态切换为唤醒状态,通过所述第二系统绘制所述目标应用的界面;
响应于所述第二系统完成界面绘制,通过所述第二系统显示所述目标应用的界面并运行所述目标应用。
另一方面,本申请实施例提供了一种应用界面的显示装置,所述装置用于可穿戴式设备,所述可穿戴式设备中支持运行第一系统和第二系统;
所述装置包括:
第一系统模块,用于在所述第一系统处于唤醒状态,且所述第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过所述第一系统绘制并显示所述目标应用的界面;
第二系统模块,用于响应于所述第二系统由休眠状态切换为唤醒状态,通过所述第二系统绘制所述目标应用的界面;
所述第二系统模块,还用于响应于所述第二系统完成界面绘制,通过所述第二系统显示所述目标应用的界面并运行所述目标应用。
另一方面,本申请实施例提供了一种可穿戴式设备,所述可穿戴式设备包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现上述方面所述的应用界面的显示方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的应用界面的显示方法。
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的应用界面的显示方法。
附图说明
图1是本申请一个示例性实施例示出的第二处理器对应双核通信软件框架的示意图;
图2是本申请一个示例性实施例示出的第一处理器对应双核通信软件框架的示意图;
图3示出了本申请一个示例性实施例提供的应用界面的显示方法的流程图;
图4是本申请一个示例性实施例示出的智能手表中应用启动过程的界面示意图;
图5示出了本申请一个示例性实施例提供的应用界面的显示方法的流程图;
图6是本申请一个示例性实施例示出的界面资源更新过程的实施示意图;
图7示出了本申请一个示例性实施例提供的界面资源更新过程的流程图;
图8是本申请一个示例性实施例示出的界面资源更新过程的系统交互时序图;
图9示出了本申请另一个示例性实施例提供的界面资源更新过程的流程图;
图10是本申请另一个示例性实施例示出的界面资源更新过程的系统交互时序图;
图11示出了本申请另一个实施例提供的应用界面的显示装置的结构框图;
图12示出了本申请一个示例性实施例提供的可穿戴式设备的结构方框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
相关技术中,可穿戴式设备中设置有单一处理器,并通过运行在处理器上的操作系统,对设备运行过程中产生的所有系统事件进行处理,因此该处理器需要具备较强的数据处理能力,并在设备运行过程中保持工作状态。然而,在日常使用过程中,可穿戴式设备在大多数情况下只需要实现一些对处理性能要求较低的功能,比如,对于智能手表或智能手环来说,大多数情况下,智能手表或智能手环只需要进行时间显示和消息提示。因此,长时间保持处理器处于工作状态并不会提高可穿戴式设备的性能,反而会增加设备功耗,导致可穿戴式设备的续航时间较短。
为了在保证可穿戴式设备性能的同时,降低可穿戴式设备的功耗,在一种可能的实施方式中,可穿戴式设备至少设置具有不同处理性能以及功耗的第一处理器和第二处理器,分别用于运行第一系统和第二系统(即双核双系统),并为双核双系统设计了一套系统切换机制。
可穿戴式设备运行过程中,通过运行在低功耗处理器上的第一系统,对低性能处理需求的事件进行处理,并保持高功耗处理器处于休眠状态(相应的,由高功耗处理器运行的第二系统处于休眠状态),在实现可穿戴式设备基础功能的同时,降低了可穿戴式设备的功耗;当出现存在高性能处理需求的事件时(比如启动应用程序时),通过唤醒高功耗处理器,并切换至第二系统对事件进行处理,保证触发的事件能够被及时响应并处理,满足可穿戴式设备的性能需求。
并且,由于高功耗处理器从休眠状态切换为唤醒状态需要耗费一定时间(至少需要200ms至300ms),因此为了降低启动应用过程中应用画面的显示延迟,本申请引入了启动效果预展示机制,在高功耗处理器切换至唤醒状态之前,由低功耗处理器运行的第一系统绘制并展示应用界面;当高功耗处理器切换至唤醒状态时,再由高功耗处理器运行的第二系统展示应用画面并运行应用,实现应用启动效果的预展示,从而提升视觉上应用的启动速度,降低系统切换过程中应用画面的显示延迟。
本申请实施例中,由于第一处理器和第二处理器异步工作,且第一系统和第二系统需要实现系统通信(或称为双核通信)。在一种可能的应用场景下,第一系统为运行在微控制单元(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_datah、dcc_data、Mcu_sensor、Mcu_gps、Mcu_factory等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(算法)、Aios、AsycEvent(进程内异步事件)等框架模块;硬件抽象层包括Screen/TP(屏幕/触控屏)、Audio(音频)、GPS(全球定位系统)、sensors(传感器)、Keypad(键盘)、Motor(马达)等硬件抽象模块;平台层包括板级支持包(Board Support Package,BSP)以及低等级驱动(LOW level Driver),其中,BSP包括Screen/TP、Keys(按键)、GPS、Codec(编码译码器)、sensors、Flash(闪存)、Motor、PSRAM(伪静态随机存储器)等等,低等级驱动包括Uart(通用异步收发传输器)、ADC(模数转换器)、GPIO(通用输入输出)、SPI(串行外设接口)、I2C(集成电路总线)、IOS(输入输出系统)、PCM(脉冲编码调制)、I2S(集成音频总线)、HWTimer(硬件定时器)。
需要说明的是,上述双核通信软件框架仅用于示意性说明,本领域技术人员还可以根据实际需求,对上述框架进行增加、删除或修改,本申请实施例并不对双核通信软件框架的具体结构构成限定。
请参考图3,其示出了本申请一个示例性实施例提供的应用界面的显示方法的流程图,本实施例以该方法应用可穿戴式设备,且可穿戴式设备支持运行第一系统和第二系统为例进行说明,该方法可以包括如下步骤。
步骤301,在第一系统处于唤醒状态,且第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过第一系统绘制并显示目标应用的界面。
在一种可能的实施方式中,可穿戴式设备设置有第一处理器和第二处理器,其中,第一处理器的处理性能低于第二处理器的处理性能(第一处理器的处理能力和处理速度均低于第二处理器),且第一处理器的功耗低于第二处理器的功耗。相应的,第二系统(由第二处理器运行)能够处理第一系统(由第一处理器运行)所处理的事件,而第一系统并不一定能够处理第二系统所处理的事件。
在另一种可能的实施方式中,可穿戴式设备也可以设置单一处理器,第一系统和第二系统分别运行在处理器的不同核心上,其中,运行第二系统的核心的处理性能高于运行第一系统的核心的处理性能。
比如,以可穿戴式设备为智能手表为例,第一处理器为MCU,第二处理器为CPU,第一系统为RTOS,第二系统为安卓系统。相应的,第一系统所能处理的事件包括表盘显示、表盘界面切换、通知消息显示等对处理性能要求较低的场景或弱交互场景;第二系统所能处理的事件包括来电接听、启动应用、表盘编辑、功能设置等对处理性能要求较高的场景或强交互场景。
在一种可能的实施方式中,可穿戴式设备的工作模式包括能模式、混动模式和低功耗模式,其中,性能模式下,第二处理器和第一处理器均保持唤醒状态(相应的,第一系统和第二系统均处于唤醒状态);低功耗模式下,仅第一处理器保持唤醒状态,而第二处理器保持关闭状态(即第一系统处于唤醒状态,第二系统处于关闭状态);混动模式下,在通过第一系统处理事件时,第二处理器处于待机状态,可以在休眠和唤醒状态之间切换(即第一系统处于唤醒状态时,第二系统既可以处于唤醒状态,又可以处于休眠状态)。
可选的,唤醒状态下,系统相关数据缓存在内存(RAM)中,以便于随时运行系统相关数据,休眠状态下,处理器大部分硬件模块关闭,系统相关数据存储在硬盘(ROM)中,并在切换为唤醒状态时由硬盘写入内存中。
不同于智能手机一类具有强交互属性的电子设备,可穿戴式设备作为一种辅助性的电子设备,在绝大多数使用场景下与用户之间仅存在弱交互。比如,用户在大部分场景下仅通过智能手表进行抬腕查看时间或消息提示。因此,可穿戴式设备通过第一系统对事件进行处理时,控制第二处理器处于休眠状态(第二系统处于休眠状态),从而降低可穿戴式设备的整体功耗。
在第一系统处于唤醒状态,且第二系统处于休眠状态的情况下,当接收到目标应用的应用启动指令时,表明需要启动并运行目标应用,由于第一系统并不具备运行目标应用的能力,因此需要唤醒处于休眠状态的第二系统,从而通过第二系统启动并运行目标应用。
然而,由于第二系统的唤醒过程需要花费一定时间(至少需要200ms至300ms),因此触发启动目标应用后会出现短暂无响应现象(表现为需要等待一段时间才会出现应用画面),影响使用体验。本申请实施例中,为了降低系统切换过程中应用画面的显示延迟,当可穿戴式设备在第一系统运行过程中接收到目标应用的应用启动指令,首先通过第一系统绘制目标应用的界面并进行显示(仅负责绘制界面图像,并非在第一系统处启动或运行目标应用)。
可选的,该应用启动指令为通过快捷键(比如物理按键)触发的指令或者通过第一系统中微件(widget)触发的指令;目标应用可以为健康监测应用、即时通信应用、计时应用、闹钟应用、运动应用等等,且该 目标应用的界面可以为静态画面(比如首帧应用界面),也可以是动态画面(比如应用启动过程的启动动画)。本申请实施例并不对应用启动指令的触发方式、目标应用的类型以及界面的类型进行限定。
由于第一系统处于唤醒状态,因此第一系统在接收到应用启动指令后可以立即进行界面绘制显示,即触发启动目标应用后立即显示目标应用的界面,从而提升视觉上应用的启动速度。
示意性的,如图4所示,以可穿戴式设备为智能手表为例,智能手表中设置有RTOS(由第一处理器运行)和安卓系统(由第二处理器运行)。第一处理器处于唤醒状态,而第二处理器处于休眠状态时,智能手表通过RTOS显示表盘41,安卓系统处于休眠状态,从而保持较低的功耗。当用户需要通过运动应用查看运动数据时,可以通过双击物理按键的方式快速启动运动应用。接收到运动应用的启动指令后,RTOS绘制运动应用的应用界面42并进行显示。
步骤302,响应于第二系统由休眠状态切换为唤醒状态,通过第二系统绘制目标应用的界面。
在一种可能的实施方式中,第一系统绘制显示界面的过程中,第二系统进行同步唤醒,即第二处理器由休眠状态切换为唤醒状态。当第二系统切换至唤醒状态后,通过第二系统启动并运行目标应用。其中,在启动目标应用过程中,第二系统同样需要进行目标应用的界面绘制。
可选的,第二系统所绘制目标应用的界面与第一系统所绘制目标应用的界面相同,比如,两者均绘制目标应用启动后的首帧应用界面;或者,第二系统所绘制目标应用的界面与第一系统所绘制目标应用的界面不同,比如,第一系统所绘制的界面为应用启动过程中的过渡动画,而第二系统所绘制的界面为过渡动画播放完毕后的首帧应用界面。当然,第一系统和第二系统还可以绘制其他属于目标应用的界面,本实施例并不对两者绘制的具体界面进行限定。
可选的,第一处理器采用向第二处理器发送中断的方式唤醒第二处理器。
步骤303,响应于第二系统完成界面绘制,通过第二系统显示目标应用的界面并运行目标应用。
第二系统完成界面绘制后,可穿戴式设备运行的系统即由第一系统切换为第二系统,从而通过第二系统对目标应用的界面进行显示,并继续运行目标应用。
可选的,切换至第二系统后,第一系统仍旧在后续处于唤醒状态(低功耗,对续航影响较小),或者第一系统切换为休眠状态,本实施例对此不作限定。
示意性的,如图4所示,RTOS显示应用界面42的过程中,安卓系统由休眠状态切换为唤醒状态,当安卓系统唤醒后(比如经过200ms),智能手表运行的系统由RTOS切换为安卓系统,并通过安卓系统显示应用界面42,运行运动应用。
可选的,第二系统完成事件处理后(比如退出目标应用返回表盘),第二处理器重新切换至休眠状态,并切换回第一系统处理事件,使可穿戴式设备在少部分场景下保持高性能(但是高功耗),而在大多数场景下保持低功耗(但低性能),进一步降低可穿戴式设备的功耗,延长可穿戴式设备的续航时间。
综上所述,本申请实施例中,对于支持双系统的可穿戴式设备,若在第一系统处于运行状态而第二系统处于休眠状态的情况下,接收到目标应用的应用启动指令,首先由第一系统绘制并显示目标应用的界面,并在第二系统唤醒后,通过第二系统显示目标应用的界面并运行目标应用;采用本申请实施例提供的方案,通过第一系统预展示应用启动效果,能够提升视觉上应用的启动速度,降低系统切换过程中应用画面的显示延迟。
可选的,通过第一系统绘制并显示目标应用的界面,包括:
通过第一系统从第一存储空间获取目标应用对应的目标界面资源,第一存储空间为第一系统对应的存储空间;
基于目标界面资源,通过第一系统绘制并显示目标应用的界面。
可选的,通过第一系统从第一存储空间获取目标应用对应的目标界面资源,包括:
通过第一系统获取目标应用对应的目标应用信息;
基于目标应用信息,通过第一系统从第一存储空间中获取目标界面资源。
可选的,方法还包括:
在第二系统处于唤醒状态的情况下,通过第二系统向第一系统发送界面资源更新消息;
基于界面资源更新消息,通过第一系统更新第一存储空间中存储的界面资源。
可选的,在第二系统处于唤醒状态的情况下,通过第二系统向第一系统发送界面资源更新消息,包括:
在第二系统处于唤醒状态的情况下,响应于接收到语言更新广播,通过第二系统获取第一应用的第一应用信息,其中,第一存储空间中存储有第一应用对应的第一界面资源;
通过第二系统向第一系统发送第一界面资源更新消息,第一界面资源更新消息中包含第一应用信息以及更新后的第一界面资源;
基于界面资源更新消息,通过第一系统更新第一存储空间中存储的界面资源,包括:
通过第一系统,将第一应用信息与更新后的第一界面资源关联存储在第一存储空间。
可选的,通过第二系统获取第一应用的第一应用信息,包括:
通过第二系统向第一系统发送查询消息;
通过第一系统向第二系统发送第一应用的第一应用信息,并删除第一存储空间中第一应用对应的第一界面资源。
可选的,通过第二系统获取第一应用的第一应用信息,包括:
通过第二系统从第二存储空间中获取第一应用的第一应用信息,第二存储空间为第二系统对应的存储空间;
通过第一系统,将第一应用信息与更新后的第一界面资源关联存储在第一存储空间,包括:
响应于识别出第一界面资源更新消息中包含强制更新标识,通过第一系统删除第一存储空间中存储的界面资源,并将第一应用信息与更新后的第一界面资源关联存储在第一存储空间。
可选的,在第二系统处于唤醒状态的情况下,通过第二系统向第一系统发送界面资源更新消息,包括:
在第二系统处于唤醒状态的情况下,响应于监听到第二应用的启动方式更新消息,通过第二系统获取第二应用的第二应用信息以及第二界面资源,启动方式更新消息用于表征第二应用的启动方式发生变化;
通过第二系统向第一系统发送第二界面资源更新消息,第二界面资源更新消息中包含更新方式、第二应用信息以及第二界面资源;
基于界面资源更新消息,通过第一系统更新第一存储空间中存储的界面资源,包括:
基于更新方式通过第一系统更新第一存储空间中第二应用信息对应的第二界面资源。
可选的,基于更新方式通过第一系统更新第一存储空间中第二应用信息对应的第二界面资源,包括:
响应于更新方式为增加,通过第一系统将第二应用信息与第二界面资源关联存储在第一存储空间;
响应于更新方式为删除,通过第一系统从第一存储空间中删除第二应用信息以及第二界面资源。
可选的,方法还包括:
响应于更新方式为增加,且第一存储空间中存储有第二应用信息,确定存在更新冲突;
响应于更新方式为删除,且第一存储空间中存储有第二应用信息,且存在待删除启动方式以外的启动方式使用第二应用信息,确定存在更新冲突;
其中,存在更新冲突的情况下,第一存储空间中的第二界面资源不更新。
可选的,基于更新方式通第一系统更新第一存储空间中第二应用信息对应的第二界面资源,包括:
响应于识别出第二界面资源更新消息中不包含强制更新标识,且不存在更新冲突,基于更新方式通过第一系统更新第一存储空间中第二应用信息对应的第二界面资源;
方法还包括:
响应于识别出第二界面资源更新消息中包含强制更新标识,基于更新方式通过第一系统更新第一存储空间中第二应用信息对应的第二界面资源。
可选的,第一存储空间用于存储支持在第一系统下启动的应用对应的界面资源,其中,在第一系统下启动应用的方式包括如下至少一种:通过快捷键启动和通过第一系统的微件widget启动。
可选的,响应于第二系统完成界面绘制,通过第二系统显示目标应用的界面并运行目标应用,包括:
响应于第二系统完成界面绘制,通过第二系统向第一系统发送切换指令,切换指令用于指示第一系统转移图形用户界面的展示权限;
响应于第二系统获取到图形用户界面的展示权限,通过第二系统显示目标应用的界面并运行目标应用。
可选的,可穿戴式设备设置有第一处理器和第二处理器,第二处理器的功耗高于第一处理器的功耗,且第一系统是由第一处理器运行的系统,第二系统是由第二处理器运行的系统。
在一种可能的实施方式中,第一系统和第二系统各自对应有数据存储空间,且由于第一系统仅负责处理简单事件,而第二系统则需要处理复杂事件,因此第二系统对应的存储空间远大于第一系统对应的存储空间。为了实现通过第一系统绘制显示界面,第一系统对应的存储空间中存储应用对应的界面资源,接收到应用启动指令后,第一系统即基于存储空间中的界面资源进行应用界面绘制。下面采用示例性的实施例进行说明。
请参考图5,其示出了本申请另一个示例性实施例提供的应用界面的显示方法的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤501,在第一系统处于唤醒状态,且第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过第一系统从第一存储空间获取目标应用对应的目标界面资源,第一存储空间为第一系统对应的存储空间。
本申请实施例中,第一系统对应有第一存储空间,第一存储空间中存储有至少一个应用对应的界面资 源,该界面资源指绘制应用界面所需的资源,该界面资源可以包括文字资源、图片资源、动画资源、特效资源、界面布局资源等等,本实施例对界面资源中包含的具体内容不做限定。
在一种可能的实施方式中,第一存储空间中存储有第二系统中各个应用对应的界面资源。比如,当第二系统中安装有运动应用、健康监测应用、闹钟应用以及即时通信应用时,第一存储空间中即存储安装有4个应用各自对应的界面资源。
由于第一存储空间有限,且并非第二系统下的所有应用均支持从第一系统启动(即目标应用为支持在第一系统下启动的应用),因此在另一种可能的实施方式中,第一存储空间用于存储支持在第一系统下启动的应用对应的界面资源,从而在实现无感系统切换的同时,降低界面资源占用的存储空间。
可选的,支持在第一系统下启动的应用指:能够在第二系统处于休眠状态的情况下启动的应用。比如,当第一系统中设置有应用的启动入口时,该应用则属于支持在第一系统下启动的应用,和/或,当应用被设置为可以通过快捷键启动时,该应用属于支持在第一系统下启动的应用。
在一些实施例中,在第一系统下启动应用的方式包括如下至少一种:通过快捷键启动和通过第一系统的widget启动。
其中,通过快捷键在第一系统下启动应用的方式可以由用户自行设置,比如设置双击物理按键启动特定应用,或者长按物理按键启动特定应用;widget可以由用户自行添加在第一系统中,比如在表盘上添加健康监测应用对应的widget,以便用户点击第一系统中显示的widget启动健康监测应用。
比如,当第二系统中安装有运动应用、健康监测应用、闹钟应用以及即时通信应用时,由于运动应用支持通过双击物理按键启动,且健康监测应用支持通过表盘上的widget触发,因此第一存储空间仅存储运动应用以及健康监测应用对应的界面资源,无需存储闹钟应用以及即时通信应用对应的界面资源。
关于获取目标应用对应目标界面资源的具体方式,在一种可能的实施方式中,第一存储空间中的应用信息与界面资源关联存储,即存储应用信息与界面资源之间的映射关系。
可选的,该应用信息包括应用包名(packagename)和应用类名(activityname)中的至少一种。其中,当应用仅具有单一功能界面时,该应用信息中包含应用包名,当应用具有多个功能界面,且可以通过设置在第一系统下启动并显示特定功能界面时,该应用信息中包含应用包名和(特定功能界面对应的)应用类名。
相应的,接收到目标应用的应用启动指令后,即通过第一系统获取目标应用对应的目标应用信息,从而基于目标应用信息,通过第一系统从第一存储空间中获取目标界面资源,其中,目标应用信息包括目标应用包名和目标应用类名中的至少一种。
在一些实施例中,第一系统基于目标应用信息在第一存储空间中查找与目标应用信息匹配的界面资源,并将查找到的界面资源确定为目标应用对应的目标界面资源。
在一个示意性的例子中,第一存储空间中应用信息与界面资源之间的映射关系如表一所示。
表一
应用信息 界面资源
应用包名:sport_app 界面资源文件A
应用包名:health_app 界面资源文件B
当获取到目标应用的应用包名为sport_app时,第一系统将第一存储空间中的界面资源文件A确定为目标界面资源;当获取到目标应用的应用包名为health_app时,第一系统将第一存储空间中的界面资源文件B确定为目标界面资源。
步骤502,基于目标界面资源,通过第一系统绘制并显示目标应用的界面。
进一步的,获取到目标界面资源后,第一系统立即进行界面的实时绘制及显示。
可选的,第一系统进行界面绘制过程中,除了需要利用到目标界面资源外,还可能需要利用到其他数据,比如时间数据,传感器数据(比如计步器数据)等等,从而保证绘制出的界面中内容的准确性。
在一个示例性的例子中,第一系统获取到运动应用对应的目标界面资源中包含图片资源、文字资源以及界面布局资源,第一系统根据界面布局资源指示的界面元素布局方式,将图片资源以及文字资源绘制在对应的界面位置,并将当前时间以及计步器数据渲染在界面中,得到运动应用的应用界面。
步骤503,响应于第二系统由休眠状态切换为唤醒状态,通过第二系统绘制目标应用的界面。
本步骤的实施方式可以参考步骤302,本实施例在此不再赘述。
步骤504,响应于第二系统完成界面绘制,通过第二系统向第一系统发送切换指令,切换指令用于指示第一系统转移图形用户界面(Graphical User Interface,GUI)的展示权限。
为了保证目标应用的正常使用,系统切换过程中,第一系统需要将图形用户界面的展示权限转移给第二系统,以便目标应用运行过程中可穿戴式设备展示第二系统的图形用户界面。在一种可能的实施方式中 第二系统完成界面绘制后,向第一系统发送切换指令,指示第一系统向第二系统转移图形用户界面的展示权限。
步骤505,响应于第二系统获取到图形用户界面的展示权限,通过第二系统显示目标应用的界面并运行目标应用。
第二系统获取到图形用户界面的展示权限后,显示绘制完成的目标应用的界面并运行目标应用,相应的,可穿戴式设备即展示目标应用的界面。
本实施例中,通过在第一存储空间中存储应用信息与界面资源,使得第一系统接收到应用启动指令后,能够基于目标应用的目标应用信息从第一存储空间中准确获取对应的目标界面资源,有助于提高界面的绘制速度和绘制准确性。
并且,第一存储空间仅对支持在第一系统下启动的应用的界面资源进行存储,在实现系统无感切换的前提下,减少界面资源占用的存储空间,降低对第一存储空间容量的需求。
上述实施例中,由于可穿戴式设备中应用的界面并非保持不变,且支持在第一系统下启动的应用也可能会发生变化,因此为了保证应用启动过程中显示的应用界面的准确性,第一存储空间中存储的界面资源也需要相应更新。在一种可能的实施方式中,在第二系统处于唤醒状态的情况下,可穿戴式设备通过第二系统向第一系统发送界面资源更新消息(存在界面资源更新事件时),第一系统即基于界面资源更新消息,更新第一存储空间中存储的界面资源。其中,该界面资源更新消息中至少包括待更新应用的应用信息。
以第一系统为MCU运行的RTOS,第二系统为CPU运行的安卓系统为例,如图6所示,当应用层(Application)中存在界面资源更新事件(包括语言更新、widget更新、快捷键更新等事件)时,应用层将更新后的界面资源预置到安卓系统对应的框架(Framework)资源安卓应用程序包(Android application Package,APK)中。
框架层中设置的界面资源管理中控负责监听界面资源更新事件,当监听到界面资源更新事件时,界面资源管理中控即从框架资源APK中获取界面资源,并通过内核层中设置的双核通信模块(具体设置在内核层的DCC)与MCU进行通信,以便MCU基于接收到界面资源更新数据对第一存储空间中存储的界面资源进行更新。
针对不同的更新场景,第二系统与第一系统之间通过交互实现界面资源更新的过程也不同。其中,当存在系统级的界面资源更新事件时,第一系统需要对第一存储空间内存储的所有界面资源进行更新;当存在应用级的界面资源更新事件时,第一系统则只需要对特定应用的界面资源进行更新。下面分别采用实施例对不同更新场景下的界面资源更新过程进行说明。
请参考图7,其示出了本申请一个示例性实施例提供的界面资源更新过程的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤701,在第二系统处于唤醒状态的情况下,响应于接收到语言更新广播,通过第二系统获取第一应用的第一应用信息,其中,第一存储空间中存储有第一应用对应的第一界面资源。
在一种可能的实施方式中,当可穿戴式设备的系统语言发生变更时,第二系统会接收到语言更新广播,该语言更新广播中包含切换后的系统语言。比如,当用户将可穿戴式设备的系统语言由中文切换为英文时,第二系统接收到指示切换为英文的语言更新广播。
由于系统语言发生变更时,第二系统中应用的应用语言均需要发生变更,相应的,应用界面中包含的内容(比如文字内容)也会发生相应变化,因此接收到语言更新广播后,第二系统确定需要对所有应用的界面资源进行更新,并获取第一存储空间中第一应用的第一应用信息。
关于获取第一应用信息的方式,在一种可能的实施方式中,由于第一存储空间中存储有第一应用信息与第一界面资源之间的映射关系,因此第二系统可以通过第一系统获取第一应用信息。可选的,本步骤可以包括如下步骤:
一、通过第二系统向第一系统发送查询消息。
可选的,第二系统通过内核层的双核通信模块,向第一系统发送查询消息,请求第一系统查询第一存储空间中存储的第一应用信息。相应的,第一系统接收到查询消息后,即从第一存储空间中获取存储的第一应用信息。
示意性的,如图8所示,安卓系统在唤醒状态下接收到语言更新广播(ACTION_LOCALE_CHANGED)时,向RTOS发送查询消息。
二、通过第一系统向第二系统发送第一应用的第一应用信息,并删除第一存储空间中第一应用对应的第一界面资源。
可选的,第一系统查询到各个第一应用的第一应用信息后,通过内核层的双核通信模块向第二系统发送包含第一应用信息的查询结果。
结合上述实施例中表一所示的数据,第一系统向第二系统反馈的查询结果中包含应用包名sport_app 以及health_app。
由于系统语言更新后,原先存储的界面资源无效,因此为了释放第一存储空间,并保证后续界面资源更新的准确性,在一种可能的实施方式中,第一系统将删除第一存储空间中第一应用对应的第一界面资源。
可选的,第二系统发送的查询消息中包含预设标识,当识别出查询消息中包含该预设标识时,第一系统确定因系统语言变化需要更新界面资源,从而删除第一存储空间中存储的第一界面资源。结合上述实施例中表一所示的数据,第一系统删除第一存储空间中存储的界面资源文件A和界面资源文件B。
示意性的,如8所示,RTOS向安卓系统反馈查询结果的同时,删除第一存储空间中存储的第一界面资源。
步骤702,通过第二系统向第一系统发送第一界面资源更新消息,第一界面资源更新消息中包含第一应用信息以及更新后的第一界面资源。
在一种可能的实施方式中,第二系统基于第一应用信息,从第二存储空间中获取存储的第一应用对应的更新后的第一界面资源,其中,第二存储空间为第二系统对应的存储空间,且更新后的第一界面资源由各个第一应用存储至第二存储空间。比如,第二系统中的界面资源管理中控从框架资源APK中获取更新后的第一界面资源。
结合上述步骤中的示例,第二系统基于应用包名sport_app以及health_app,获取更新后的界面资源文件A’和界面资源文件B’。
可选的,更新后的第一界面资源中包含的文字资源与更新前第一界面资源中包含的文字资源不同。比如,更新后的文字资源为第一应用的英文名,更新前的文字资源为第一应用的中文名。
进一步的,第二系统通过双核通信模块向第一系统发送第一界面资源更新消息,以便第一系统对第一存储空间进行界面资源更新。
在一种可能的实施方式中,第一界面资源更新消息中可以包含如下字段中:
1、path:用于表征更新路径,本实施例中,path字段的值表征系统语言更新触发界面资源更新;
2、action:用于表征界面资源的更新方式,本实施例中,action字段的值表征替换界面资源;
3、packagename:应用包名;
4、data:更新后的界面资源;
5、extra:用于表征是否强制更新界面资源,本实施例中,extra字段的值表征强制更新界面资源。
需要说明的是,第一界面资源更新消息中还可以包括其他字段,本实施例仅以包含上述字段为例进行示意性说明,但并不对此构成限定。
示意性的,如图8所示,安卓系统接收到查询结果后,基于查询结果获取更新后的第一界面资源,并基于第一界面资源向RTOS发送第一界面资源更新消息。
步骤703,通过第一系统,将第一应用信息与更新后的第一界面资源关联存储在第一存储空间。
接收到第一界面资源更新消息后,第一系统即将第一应用信息与更新后的第一界面资源进行关联存储,后续系统切换过程中,第一系统即可基于更新后的界面资源进行应用界面绘制和显示,保证显示的应用界面所采用的语言与系统语言一致。
结合上述步骤的示例,第一系统基于第一界面资源更新消息进行界面资源更新后,第一存储空间中应用信息与界面资源之间的映射关系如表二所示。
表二
应用信息 界面资源
应用包名:sport_app 界面资源文件A’
应用包名:health_app 界面资源文件B’
可选的,完成界面资源更新后,第一系统向第二系统那个更新完成通知,告知第二系统已完成对界面资源的更新。若第二系统在预设时长内未接收到更新完成通知,则重新向第一系统发送第一界面资源更新消息。
示意性的,如图8所示,RTOS更新完第一界面资源后,向安卓系统发送更新完成通知。
除了采用从第一系统处获取第一应用信息这一方式外,在另一种可能的实施方式中,由于各个应用都会将更新后的界面资源存储在第二系统(的第二存储空间)中,因此可穿戴式设备还可以通过第二系统从第二存储空间中获取第一应用的第一应用信息,并在向第一系统发送的第一界面资源更新消息中设置强制更新标识。
相应的,第一系统识别出第一界面资源更新消息中包含强制更新标识时(比如通过第一界面更新消息中的extra字段设置),即删除第一存储空间中存储的界面资源,并将第一应用信息与更新后的第一界面资源关联存储在第一存储空间,避免存储同一应用的两套界面资源。
本实施例中,在系统语言更新时,通过第二系统获取各个第一应用的第一应用信息,并基于第一应用 信息获取更新后的第一界面资源,从而将更新后的第一界面资源发送至第一系统,由第一系统对第一存储空间中存储的第一界面资源进行更新,确保后续进行系统切换时,第一系统显示的应用界面的语言与系统语言保持一致。
请参考图9,其示出了本申请另一个示例性实施例提供的界面资源更新过程的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤901,在第二系统处于唤醒状态的情况下,响应于监听到第二应用的启动方式更新消息,通过第二系统获取第二应用的第二应用信息以及第二界面资源,启动方式更新消息用于表征第二应用的启动方式发生变化。
为了提高应用的启动效率,用户可能会为第二系统中的应用设置快捷启动方式,从而在第一系统下也能够启动第二系统中的应用。其中,设置快捷启动方式可以包括在第一系统中添加应用的widget,以及设置启动应用的快捷键。
相应的,当第二应用的启动方式发生更新(比如添加快捷启动方式或者删除快捷启动方式)时,第一系统需要对第一存储空间中的界面资源进行适应性更新。
在一种可能的实施方式中,当第二系统中第二应用的启动方式发生变化时,第二系统监听到启动方式变更消息,该启动方式变更消息中可以包括目标启动方式以及目标启动方式对应的更新方式。
比如,当为第二应用设置通过widget启动时,该目标启动方式为widget启动,且更新方式为增加;当为第二应用删除通过快捷键启动时,该目标启动方式为快捷键启动,且更新方式为删除。
进一步的,第二系统获取第二应用对应的第二应用信息以及第二界面资源。其中,第二系统可以根据启动方式更新消息中第二应用的应用信息,从第二存储空间中获取第二界面资源。
可选的,当启动方式更新消息指示的更新方式为增加时,第二系统获取第二应用信息以及第二界面资源,而当启动方式更新消息指示的更新方式为删除时,第二系统仅需获取第二应用信息。
示意性的,如图10所示,安卓系统监听到到第二应用的启动方式更新消息(包括ACTION_SHORTC UT_SETTING_CHANGED以及ACTION_WIDGET_CHANGED)时,获取第二应用的第二界面资源。
步骤902,通过第二系统向第一系统发送第二界面资源更新消息,第二界面资源更新消息中包含更新方式、第二应用信息以及第二界面资源。
基于获取到的第二界面资源,第二系统通过双核通信模块向第一系统发送第二界面资源更新消息,该第二界面资源更新消息除了包含第二应用信息和第二界面资源外,还包含目标启动方式以及更新方式。
在一种可能的实施方式中,第二界面资源更新消息中可以包含如下字段中:
1、path:用于表征更新路径,本实施例中,path字段的值表征更新快捷启动方式(包括更新widget以及更新快捷键)触发界面资源更新;
2、action:用于表征界面资源的更新方式,本实施例中,action字段的值表征增加界面资源或删除界面资源;
3、packagename:应用包名;
4、activityname:应用类名,用于指示应用中的特定应用界面;
5、data:更新后的界面资源;
6、extra:用于表征是否强制更新界面资源。
需要说明的是,第二界面资源更新消息中还可以包括其他字段,本实施例仅以包含上述字段为例进行示意性说明,但并不对此构成限定。
示意性的,如图10所示,安卓系统获取到第二界面资源后,向RTOS发送第二界面资源更新消息,指示RTOS更新第一存储空间中存储的界面资源。
步骤903,基于更新方式通过第一系统更新第一存储空间中第二应用信息对应的第二界面资源。
在一种可能的实施方式中,第一系统基于获取到第二界面资源更新消息,对第一存储空间中第二应用信息对应的第二界面资源进行更新。
关于界面资源更新的具体方式,在一些实施例中,当更新方式为增加时,可穿戴式设备通过第一系统将第二应用信息与第二界面资源关联存储在第一存储空间;当更新方式为删除时,可穿戴式设备通过第一系统从第一存储空间中删除第二应用信息以及第二界面资源。
在一种可能的应用场景下,当第一存储空间中存储有第二应用的第二界面资源时,若直接基于第二界面资源更新消息进行界面资源更新,可能会造成更新冲突。
比如,当第一存储空间中存储有第二应用的第二界面资源时,若第二界面资源更新消息指示增加第二应用的第二界面资源(可以对应不同的快捷启动方式),直接向第一存储空间中添加第二界面资源会造成界面资源重复存储,导致存储空间浪费。
又比如,当第一存储空间中存储有第二应用的第二界面资源,且第二应用支持通过至少两种不同快捷 方式启动时,若第二界面资源更新消息指示删除第二应用的第二界面资源(删除其中一种快捷启动方式),直接删除第一存储空间中的第二界面资源会造成只能通过其他快捷启动方式启动第二应用,第一系统无法绘制并显示应用界面。
因此,在一种可能的实施方式中,第一系统接收到第二界面资源更新消息后,基于更新方式以及第二应用信息,进行更新冲突检测,若不存在更新冲突,则基于第二界面资源更新消息指示的更新方式对第一存储空间中的界面资源进行更新;若存在冲突,则不响应第二界面资源更新消息。
针对检测是否存在更新冲突的具体方式,在一种可能的实施方式中,当更新方式为增加(第二界面资源)时,第一系统检测第一存储空间中是否存在第二应用信息,若不存在,则确定不存在更新下冲突,从而将第二应用信息与第二界面资源关联存储在第一存储空间。
在一个示意性的例子中,当第一存储空间中应用信息与界面资源之间的映射关系如表一所示时,若第二界面资源更新消息中包含的更新方式为增加,且包含的第二应用信息为“应用包名:alarm_app”(闹钟应用)时,由于第一存储空间中不包含该第二应用信息,从而确定不存在更新冲突,并进行界面资源更新,界面资源更新后,第一存储空间中应用信息与界面资源之间的映射关系如表三所示。
表三
应用信息 界面资源
应用包名:sport_app 界面资源文件A
应用包名:health_app 界面资源文件B
应用包名:alarm_app 界面资源文件C
可选的,响应于更新方式为增加,且第一存储空间中存储有第二应用信息,第一系统确定存在更新冲突,并不对第一存储空间中的第二界面资源进行更新。
可选的,更新方式为增加时,若确定存在更新冲突,第一系统为第二应用信息添加对应的待添加启动方式。
比如,结合表三所示的数据,当若第二界面资源更新消息中包含的更新方式为增加,且包含的第二应用信息为“应用包名:sport_app”时,由于第一存储空间中包含该第二应用信息,从而确定存在更新冲突,并不对界面资源文件A进行更新,仅为sport_app增加第二界面资源更新消息中的目标启动方式“快捷键”。
在另一种可能的实施方式中,当更新方式为删除(第二界面资源)时,第一系统基于第二界面资源更新消息中的目标启动方式(即待删除启动方式),检测第一存储空间存储的第二应用信息是否被除待删除启动方式以外的启动方式所使用,若不存在(即第二应用仅采用待删除启动方式所指示的快捷方式启动),第一系统确定不存在更新冲突,从而从第一存储空间中删除第二应用信息以及第二界面资源。
在一个示意性的例子中,当第一存储空间中应用信息、界面资源以及启动方式之间的映射关系如表四所示。
表四
应用信息 界面资源 启动方式
应用包名:sport_app 界面资源文件A widget、快捷键
应用包名:health_app 界面资源文件B 快捷键
若第二界面资源更新消息中包含的更新方式为删除,且包含的第二应用信息为“应用包名:health_app”,待删除启动方式为“快捷键”时,第一系统确定不存在更新冲突,并进行界面资源更新,界面资源更新后,第一存储空间中应用信息界面资源以及启动方式之间的映射关系如表五所示。
表五
应用信息 界面资源 启动方式
应用包名:sport_app 界面资源文件A widget、快捷键
可选的,响应于更新方式为删除,且第一存储空间中存储有第二应用信息,且存在待删除启动方式以外的启动方式使用第二应用信息,第一系统确定存在更新冲突,并不对第一存储空间中的第二界面资源进行更新。
可选的,更新方式为删除时,若确定存在更新冲突,第一系统为第二应用信息删除对应的待删除启动方式。
比如,结合表四所示的数据,当若第二界面资源更新消息中包含的更新方式为删除,且包含的第二应用信息为“应用包名:health_app”时,由于第一存储空间中包含该第二应用信息,从而确定存在更新冲突,并不对界面资源文件A进行更新,仅为health_app删除第二界面资源更新消息中的待删除启动方式“快捷键”。
在一种可能的实施方式中,第二系统可以通过在第二界面资源更新消息中设置强制更新标识,指示对 第二界面资源进行强制更新。
可选的,响应于识别出第二界面资源更新消息中不包含强制更新标识,第一系统则基于更新方式以及第二应用信息进行更新冲突检测;
响应于识别出第二界面资源更新消息中包含强制更新标识,第一系统则基于更新方式通过第一系统更新第一存储空间中第二应用信息对应的第二界面资源。
可选的,完成界面资源更新后,第一系统向第二系统那个更新完成通知,告知第二系统已完成对界面资源的更新。若第二系统在预设时长内未接收到更新完成通知,则重新向第一系统发送第二界面资源更新消息。
示意性的,如图10所示,RTOS接收到第二界面资源更新消息后,若其中包含强制更新标识,RTOS系统则直接进行界面资源更新(增加或删除),若其中不包含强制更新标识,RTOS系统则有条件(即不存在更新冲突时)进行界面资源更新(增加或删除),并在更新完第二界面资源后,向安卓系统发送更新完成通知。
本实施例中,当第二应用的启动方式发生更新时,通过第二系统获取第二应用的第二应用信息,并基于第二应用信息获取第二界面资源,从而向第一系统发送第二界面资源更新消息,由第一系统确定是否第二界面资源是否存在更新冲突,在不存在更新冲突的情况下更新第二界面资源,在存在更新冲突的情况下不更新第二界面资源,保证启动方式更新后系统无感切换功能的正常运行。
需要说明的是,上述各个实施例中,仅以双核双系统设备下应用界面的显示过程为例进行说明,在其他可能的应用场景下,单核双系统(比如处理器不同核心上运行不同系统)设备也可以采用本申请实施例提供的方案实现系统切换过程中应用界面的显示,本实施例在此不作赘述。
请参考图11,其示出了本申请一个实施例提供的应用界面的显示装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为可穿戴式设备的全部或一部分。该装置包括:
第一系统模块1101,用于在第一系统处于唤醒状态,且第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过第一系统绘制并显示所述目标应用的界面;
第二系统模块1102,用于响应于所述第二系统由休眠状态切换为唤醒状态,通过第二系统绘制所述目标应用的界面;
所述第二系统模块1102,还用于响应于所述第二系统完成界面绘制,通过所述第二系统显示所述目标应用的界面并运行所述目标应用。
可选的,所述第一系统模块1101,用于:
通过所述第一系统从第一存储空间获取所述目标应用对应的目标界面资源,所述第一存储空间为所述第一系统对应的存储空间;
基于所述目标界面资源,通过所述第一系统绘制并显示所述目标应用的界面。
可选的,所述第一系统模块1101,具体用于:
通过所述第一系统获取所述目标应用对应的目标应用信息;
基于所述目标应用信息,通过所述第一系统从所述第一存储空间中获取所述目标界面资源。
可选的,所述第二系统模块1102,还用于:
在所述第二系统处于唤醒状态的情况下,通过所述第二系统向所述第一系统发送界面资源更新消息;
所述第一系统模块1101,还用于基于所述界面资源更新消息,通过所述第一系统更新所述第一存储空间中存储的界面资源。
可选的,所述第二系统模块1102,具体用于:
在所述第二处理器处于唤醒状态的情况下,响应于接收到语言更新广播,通过所述第二系统获取第一应用的第一应用信息,其中,所述第一存储空间中存储有所述第一应用对应的第一界面资源;
通过所述第二系统向所述第一系统发送第一界面资源更新消息,所述第一界面资源更新消息中包含所述第一应用信息以及更新后的所述第一界面资源;
所述第一系统模块1101,具体用于:
通过所述第一系统,将所述第一应用信息与更新后的所述第一界面资源关联存储在所述第一存储空间。
可选的,所述第二系统模块1102,具体用于:通过所述第二系统向所述第一系统发送查询消息;
所述第一系统模块1101,具体用于通过所述第一系统向所述第二系统发送所述第一应用的所述第一应用信息,并删除所述第一存储空间中所述第一应用对应的所述第一界面资源。
可选的,所述第二系统模块1102,具体用于:通过所述第二系统从第二存储空间中获取所述第一应用的所述第一应用信息,所述第二存储空间为所述第二系统对应的存储空间;
所述第一系统模块1101,具体用于:响应于识别出所述第一界面资源更新消息中包含强制更新标识, 通过所述第一系统删除所述第一存储空间中存储的界面资源,并将所述第一应用信息与更新后的所述第一界面资源关联存储在所述第一存储空间。
可选的,所述第二系统模块1102,具体用于:
在所述第二系统处于唤醒状态的情况下,响应于监听到第二应用的启动方式更新消息,通过所述第二系统获取所述第二应用的第二应用信息以及第二界面资源,所述启动方式更新消息用于表征所述第二应用的启动方式发生变化;
通过所述第二系统向所述第一系统发送第二界面资源更新消息,所述第二界面资源更新消息中包含更新方式、所述第二应用信息以及所述第二界面资源;
所述第一系统模块1101,具体用于:
基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源。
可选的,所述第一系统模块1101,具体用于:
响应于所述更新方式为增加,通过所述第一系统将所述第二应用信息与所述第二界面资源关联存储在所述第一存储空间;
响应于所述更新方式为删除,通过所述第一系统从所述第一存储空间中删除所述第二应用信息以及所述第二界面资源。
可选的,所述第一系统模块1101,还用于:
响应于所述更新方式为增加,且所述第一存储空间中存储有所述第二应用信息,确定存在更新冲突;
响应于所述更新方式为删除,且所述第一存储空间中存储有所述第二应用信息,且存在所述待删除启动方式以外的启动方式使用所述第二应用信息,确定存在更新冲突;
其中,存在更新冲突的情况下,所述第一存储空间中的所述第二界面资源不更新。
可选的,所述第一系统模块1101,还用于:
响应于识别出所述第二界面资源更新消息中不包含强制更新标识,且不存在更新冲突,基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源;
响应于识别出所述第二界面资源更新消息中包含所述强制更新标识,基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源。
可选的,所述第一存储空间用于存储支持在所述第一系统下启动的应用对应的界面资源,其中,在所述第一系统下启动应用的方式包括如下至少一种:通过快捷键启动和通过所述第一系统的微件widget启动。
可选的,所述第二系统模块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 (22)

  1. 一种应用界面的显示方法,所述方法用于可穿戴式设备,所述可穿戴式设备中支持运行第一系统和第二系统;
    所述方法包括:
    在所述第一系统处于唤醒状态,且所述第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过所述第一系统绘制并显示所述目标应用的界面;
    响应于所述第二系统由休眠状态切换为唤醒状态,通过所述第二系统绘制所述目标应用的界面;
    响应于所述第二系统完成界面绘制,通过所述第二系统显示所述目标应用的界面并运行所述目标应用。
  2. 根据权利要求1所述的方法,其中,所述通过所述第一系统绘制并显示所述目标应用的界面,包括:
    通过所述第一系统从第一存储空间获取所述目标应用对应的目标界面资源,所述第一存储空间为所述第一系统对应的存储空间;
    基于所述目标界面资源,通过所述第一系统绘制并显示所述目标应用的界面。
  3. 根据权利要求2所述的方法,其中,所述通过所述第一系统从第一存储空间获取所述目标应用对应的目标界面资源,包括:
    通过所述第一系统获取所述目标应用对应的目标应用信息;
    基于所述目标应用信息,通过所述第一系统从所述第一存储空间中获取所述目标界面资源。
  4. 根据权利要求2所述的方法,其中,所述方法还包括:
    在所述第二系统处于唤醒状态的情况下,通过所述第二系统向所述第一系统发送界面资源更新消息;
    基于所述界面资源更新消息,通过所述第一系统更新所述第一存储空间中存储的界面资源。
  5. 根据权利要求4所述的方法,其中,所述在所述第二系统处于唤醒状态的情况下,通过所述第二系统向所述第一系统发送界面资源更新消息,包括:
    在所述第二系统处于唤醒状态的情况下,响应于接收到语言更新广播,通过所述第二系统获取第一应用的第一应用信息,其中,所述第一存储空间中存储有所述第一应用对应的第一界面资源;
    通过所述第二系统向所述第一系统发送第一界面资源更新消息,所述第一界面资源更新消息中包含所述第一应用信息以及更新后的所述第一界面资源;
    所述基于所述界面资源更新消息,通过所述第一系统更新所述第一存储空间中存储的界面资源,包括:
    通过所述第一系统,将所述第一应用信息与更新后的所述第一界面资源关联存储在所述第一存储空间。
  6. 根据权利要求5所述的方法,其中,所述通过所述第二系统获取第一应用的第一应用信息,包括:
    通过所述第二系统向所述第一系统发送查询消息;
    通过所述第一系统向所述第二系统发送所述第一应用的所述第一应用信息,并删除所述第一存储空间中所述第一应用对应的所述第一界面资源。
  7. 根据权利要求5所述的方法,其中,所述通过所述第二系统获取第一应用的第一应用信息,包括:
    通过所述第二系统从第二存储空间中获取所述第一应用的所述第一应用信息,所述第二存储空间为所述第二系统对应的存储空间;
    所述通过所述第一系统,将所述第一应用信息与更新后的所述第一界面资源关联存储在所述第一存储空间,包括:
    响应于识别出所述第一界面资源更新消息中包含强制更新标识,通过所述第一系统删除所述第一存储空间中存储的界面资源,并将所述第一应用信息与更新后的所述第一界面资源关联存储在所述第一存储空间。
  8. 根据权利要求4所述的方法,其中,所述在所述第二系统处于唤醒状态的情况下,通过所述第二系统向所述第一系统发送界面资源更新消息,包括:
    在所述第二系统处于唤醒状态的情况下,响应于监听到第二应用的启动方式更新消息,通过所述第二系统获取所述第二应用的第二应用信息以及第二界面资源,所述启动方式更新消息用于表征所述第二应用的启动方式发生变化;
    通过所述第二系统向所述第一系统发送第二界面资源更新消息,所述第二界面资源更新消息中包含更新方式、所述第二应用信息以及所述第二界面资源;
    所述基于所述界面资源更新消息,通过所述第一系统更新所述第一存储空间中存储的界面资源,包括:
    基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源。
  9. 根据权利要求8所述的方法,其中,所述基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源,包括:
    响应于所述更新方式为增加,通过所述第一系统将所述第二应用信息与所述第二界面资源关联存储在所述第一存储空间;
    响应于所述更新方式为删除,通过所述第一系统从所述第一存储空间中删除所述第二应用信息以及所述第二界面资源。
  10. 根据权利要求9所述的方法,其中,所述方法还包括:
    响应于所述更新方式为增加,且所述第一存储空间中存储有所述第二应用信息,确定存在更新冲突;
    响应于所述更新方式为删除,且所述第一存储空间中存储有所述第二应用信息,且存在待删除启动方式以外的启动方式使用所述第二应用信息,确定存在更新冲突;
    其中,存在更新冲突的情况下,所述第一存储空间中的所述第二界面资源不更新。
  11. 根据权利要求8所述的方法,其中,所述基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源,包括:
    响应于识别出所述第二界面资源更新消息中不包含强制更新标识,且不存在更新冲突,基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源;
    所述方法还包括:
    响应于识别出所述第二界面资源更新消息中包含所述强制更新标识,基于所述更新方式通过所述第一系统更新所述第一存储空间中所述第二应用信息对应的所述第二界面资源。
  12. 根据权利要求2至11任一所述的方法,其中,所述第一存储空间用于存储支持在所述第一系统下启动的应用对应的界面资源,其中,在所述第一系统下启动应用的方式包括如下至少一种:通过快捷键启动和通过所述第一系统的微件widget启动。
  13. 根据权利要求1至11任一所述的方法,其中,所述响应于所述第二系统完成界面绘制,通过所述第二系统显示所述目标应用的界面并运行所述目标应用,包括:
    响应于所述第二系统完成界面绘制,通过所述第二系统向所述第一系统发送切换指令,所述切换指令用于指示所述第一系统转移图形用户界面的展示权限;
    响应于所述第二系统获取到图形用户界面的展示权限,通过所述第二系统显示所述目标应用的界面并运行所述目标应用。
  14. 根据权利要求1至11任一所述的方法,其中,所述可穿戴式设备设置有第一处理器和第二处理器,所述第二处理器的功耗高于所述第一处理器的功耗,且所述第一系统是由所述第一处理器运行的系统,所述第二系统是由所述第二处理器运行的系统。
  15. 一种应用界面的显示装置,所述装置用于可穿戴式设备,所述可穿戴式设备中支持运行第一系统和第二系统;
    所述装置包括:
    第一系统模块,用于在所述第一系统处于唤醒状态,且所述第二系统处于休眠状态的情况下,响应于目标应用的应用启动指令,通过所述第一系统绘制并显示所述目标应用的界面;
    第二系统模块,用于响应于所述第二系统由休眠状态切换为唤醒状态,通过所述第二系统绘制所述目标应用的界面;
    所述第二系统模块,还用于响应于所述第二系统完成界面绘制,通过所述第二系统显示所述目标应用 的界面并运行所述目标应用。
  16. 根据权利要求15所述的装置,其中,所述第一系统模块,用于:
    通过所述第一系统从第一存储空间获取所述目标应用对应的目标界面资源,所述第一存储空间为所述第一系统对应的存储空间;
    基于所述目标界面资源,通过所述第一系统绘制并显示所述目标应用的界面;
    通过所述第一系统获取所述目标应用对应的目标应用信息;
    基于所述目标应用信息,通过所述第一系统从所述第一存储空间中获取所述目标界面资源。
  17. 根据权利要求15所述的装置,其中,所述第二系统模块,还用于:
    在所述第二系统处于唤醒状态的情况下,通过所述第二系统向所述第一系统发送界面资源更新消息;
    所述第一系统模块,还用于基于所述界面资源更新消息,通过所述第一系统更新所述第一存储空间中存储的界面资源。
  18. 根据权利要求17所述的装置,其中,所述第二系统模块,用于:
    在所述第二处理器处于唤醒状态的情况下,响应于接收到语言更新广播,通过所述第二系统获取第一应用的第一应用信息,其中,所述第一存储空间中存储有所述第一应用对应的第一界面资源;
    通过所述第二系统向所述第一系统发送第一界面资源更新消息,所述第一界面资源更新消息中包含所述第一应用信息以及更新后的所述第一界面资源;
    所述第一系统模块,用于:
    通过所述第一系统,将所述第一应用信息与更新后的所述第一界面资源关联存储在所述第一存储空间。
  19. 根据权利要求15至18任一所述的装置,其中,所述可穿戴式设备设置有第一处理器和第二处理器,所述第二处理器的功耗高于所述第一处理器的功耗,且所述第一系统是由所述第一处理器运行的系统,所述第二系统是由所述第二处理器运行的系统。
  20. 一种可穿戴式设备,所述可穿戴式设备包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至14任一所述的应用界面的显示方法。
  21. 一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至14任一所述的应用界面的显示方法。
  22. 一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在计算机可读存储介质中;可穿戴式设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述终端执行如权利要求1至14任一所述的应用界面的显示方法。
PCT/CN2022/079536 2021-04-06 2022-03-07 应用界面的显示方法、装置、设备及存储介质 WO2022213757A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2023556870A JP2024515440A (ja) 2021-04-06 2022-03-07 アプリケーションインターフェースの表示方法、装置、デバイス、及び記憶媒体
EP22783826.5A EP4293508A1 (en) 2021-04-06 2022-03-07 Application interface display method and apparatus, device, and storage medium
US18/462,038 US20230409355A1 (en) 2021-04-06 2023-09-06 Method for displaying application interface, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110366882.3 2021-04-06
CN202110366882.3A CN115167953A (zh) 2021-04-06 2021-04-06 应用界面的显示方法、装置、设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/462,038 Continuation US20230409355A1 (en) 2021-04-06 2023-09-06 Method for displaying application interface, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022213757A1 true WO2022213757A1 (zh) 2022-10-13

Family

ID=83475625

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079536 WO2022213757A1 (zh) 2021-04-06 2022-03-07 应用界面的显示方法、装置、设备及存储介质

Country Status (5)

Country Link
US (1) US20230409355A1 (zh)
EP (1) EP4293508A1 (zh)
JP (1) JP2024515440A (zh)
CN (1) CN115167953A (zh)
WO (1) WO2022213757A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100122077A1 (en) * 2008-11-13 2010-05-13 David Durham SWITCHING BETWEEN MULTIPLE OPERATING SYSTEMS (OSes) USING SLEEP STATE MANAGEMENT AND SEQUESTERED RE-BASEABLE MEMORY
CN105589743A (zh) * 2015-04-14 2016-05-18 中国银联股份有限公司 一种系统间画面切换方法
CN105793821A (zh) * 2014-11-13 2016-07-20 联发科技股份有限公司 操作系统具有快速恢复和切换的双系统架构
CN107256165A (zh) * 2017-04-28 2017-10-17 努比亚技术有限公司 一种应用启动方法、终端和计算机可读存储介质
CN107678824A (zh) * 2017-10-11 2018-02-09 青岛海信移动通信技术股份有限公司 基于系统切换的屏幕图像切换方法及装置
CN112579187A (zh) * 2019-09-27 2021-03-30 北京安云世纪科技有限公司 一种应用程序冷启动的优化方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100122077A1 (en) * 2008-11-13 2010-05-13 David Durham SWITCHING BETWEEN MULTIPLE OPERATING SYSTEMS (OSes) USING SLEEP STATE MANAGEMENT AND SEQUESTERED RE-BASEABLE MEMORY
CN105793821A (zh) * 2014-11-13 2016-07-20 联发科技股份有限公司 操作系统具有快速恢复和切换的双系统架构
CN105589743A (zh) * 2015-04-14 2016-05-18 中国银联股份有限公司 一种系统间画面切换方法
CN107256165A (zh) * 2017-04-28 2017-10-17 努比亚技术有限公司 一种应用启动方法、终端和计算机可读存储介质
CN107678824A (zh) * 2017-10-11 2018-02-09 青岛海信移动通信技术股份有限公司 基于系统切换的屏幕图像切换方法及装置
CN112579187A (zh) * 2019-09-27 2021-03-30 北京安云世纪科技有限公司 一种应用程序冷启动的优化方法及装置

Also Published As

Publication number Publication date
EP4293508A1 (en) 2023-12-20
CN115167953A (zh) 2022-10-11
JP2024515440A (ja) 2024-04-10
US20230409355A1 (en) 2023-12-21

Similar Documents

Publication Publication Date Title
KR102148948B1 (ko) 전자 장치의 멀티 태스킹 방법 및 그 전자 장치
US20220350602A1 (en) Multi-Thread Synchronization Method and Electronic Device
WO2020211705A1 (zh) 一种联系人的推荐方法及电子设备
WO2022262434A1 (zh) 一种功耗优化方法和电子设备
US10338936B2 (en) Method for controlling schedule of executing application in terminal device and terminal device implementing the method
US20230324974A1 (en) Method for system switching, wearable device, and storage medium
US20160057615A1 (en) Transfer of status information concerning a mobile device via a cloud based service
WO2021037228A1 (zh) 一种系统应用的管理方法及装置
WO2022218107A1 (zh) 数据传输方法、装置、设备及存储介质
WO2022213757A1 (zh) 应用界面的显示方法、装置、设备及存储介质
WO2022213743A1 (zh) 用户界面的显示方法、装置、设备及存储介质
WO2023116237A1 (zh) 界面显示方法、装置、设备、存储介质及程序产品
WO2023124622A1 (zh) 通信连接的维持方法、装置、设备、存储介质及程序产品
WO2023185152A1 (zh) 来电处理方法、装置、设备及存储介质
WO2023124554A1 (zh) 应用启动方法、装置、设备及存储介质
CN106681845B (zh) 一种管理通讯消息的方法和装置
WO2023116236A1 (zh) 应用启动方法、装置、设备及存储介质
WO2024032140A1 (zh) 息屏显示方法、装置、设备及存储介质
WO2022218106A1 (zh) 数据传输方法、装置、设备及存储介质
WO2023236516A1 (zh) 语音识别方法、装置、设备及存储介质
US10397390B2 (en) Communication event transfer method and apparatus, communication event processing method and apparatus, and terminal
CN110543333B (zh) 针对处理器的休眠处理方法、装置、移动终端和存储介质
CN106445692B (zh) 一种网络服务控制方法及装置
WO2023138235A1 (zh) 主题切换方法、装置、设备、存储介质及程序产品
CN115309252A (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: 22783826

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022783826

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2023556870

Country of ref document: JP

ENP Entry into the national phase

Ref document number: 2022783826

Country of ref document: EP

Effective date: 20230913

NENP Non-entry into the national phase

Ref country code: DE