WO2022142793A1 - Interface rendering method and apparatus, wearable device, and readable storage medium - Google Patents

Interface rendering method and apparatus, wearable device, and readable storage medium Download PDF

Info

Publication number
WO2022142793A1
WO2022142793A1 PCT/CN2021/130845 CN2021130845W WO2022142793A1 WO 2022142793 A1 WO2022142793 A1 WO 2022142793A1 CN 2021130845 W CN2021130845 W CN 2021130845W WO 2022142793 A1 WO2022142793 A1 WO 2022142793A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
operating system
rendering
type
virtual machine
Prior art date
Application number
PCT/CN2021/130845
Other languages
French (fr)
Chinese (zh)
Inventor
曹庆峰
林春德
马海龙
曹智强
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022142793A1 publication Critical patent/WO2022142793A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation

Definitions

  • the present application relates to the field of computer technology, and in particular, to an interface rendering method and device, a wearable device, and a readable storage medium.
  • wearable devices With the continuous development of computer technology, wearable devices are becoming more and more powerful and more and more popular. Wearable devices have brought a lot of convenience to people's daily life and travel.
  • wearable devices are relatively small in size and cannot carry large-capacity batteries like mobile phones and other electronic devices. Therefore, the battery life of wearable devices has always been a shortcoming that hinders its development.
  • interface rendering is one of the functions that consume more power on wearable devices. Therefore, how to reduce the power consumption of interface rendering on wearable devices has become a difficult problem that needs to be solved urgently.
  • Embodiments of the present application provide an interface rendering method and apparatus, a wearable device, and a readable storage medium, which can reduce the power consumption of the wearable device during interface rendering.
  • An interface rendering method is applied to a wearable device, wherein a first operating system and a second operating system can be run on the wearable device, and the power consumption when running the second operating system on the wearable device is greater than that on the wearable device.
  • the power consumption when running the first operating system on the wearable device includes:
  • the first operating system performs interface rendering to generate a first target interface
  • the second target interface is generated by the second operating system performing interface rendering.
  • An interface rendering apparatus is applied to a wearable device.
  • a first operating system and a second operating system can be run on the wearable device, and the power consumption when the second operating system is run on the wearable device is greater than that on the wearable device.
  • the power consumption when running the first operating system on the wearable device, the device includes:
  • the interface type identification module is used to respond to the interface rendering instruction and determine the interface type of the interface to be rendered
  • a first interface rendering module configured to perform interface rendering by the first operating system to generate a first target interface if the interface type belongs to a preset first type of interface
  • a second interface rendering module configured to generate a second target interface by performing interface rendering by the second operating system if the interface type belongs to a preset second type of interface.
  • a wearable device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor causes the processor to perform the operations of the interface rendering method as described above.
  • Fig. 1 is the application environment diagram of the interface rendering method in one embodiment
  • FIG. 2 is a flowchart of an interface rendering method in one embodiment
  • FIG. 3 is a flowchart of an interface rendering method in another embodiment
  • FIG. 5 is a schematic diagram of a distributed architecture of an interface rendering method based on dual virtual machines in one embodiment
  • FIG. 6 is a communication flow chart between the Android system running on the AP and the RTOS system running on the MCU in one embodiment
  • FIG. 7 is a schematic diagram of splitting a dial rendering function into a first dial rendering class and a second dial rendering class in one embodiment
  • FIG. 9 is a structural block diagram of an interface rendering apparatus in one embodiment
  • FIG. 10 is a structural block diagram of an interface rendering apparatus in yet another embodiment
  • FIG. 11 is a schematic diagram of the internal structure of a wearable device in one embodiment.
  • FIG. 1 is an application scene diagram of an interface rendering method in one embodiment.
  • the application environment includes a wearable device 120.
  • a first operating system and a second operating system can be run on the wearable device, and the power consumption when running the second operating system on the wearable device is greater than that when the wearable device runs the second operating system. Power consumption when the first operating system is running on the device.
  • the wearable device 120 uses the interface rendering method in this application to respond to the interface rendering instruction and determine the interface type of the interface to be rendered; if the interface type belongs to the preset first type of interface, the first operating system performs interface rendering A first target interface is generated; if the interface type belongs to a preset second type of interface, the second operating system performs interface rendering to generate a second target interface.
  • a wearable device refers to a portable device that is directly worn on the body or integrated into the user's clothing or accessories.
  • the wearable device 120 may be a terminal device such as a smart bracelet, a smart watch, smart glasses, smart gloves, smart socks, and a smart belt, which is not limited in this application.
  • FIG. 2 is a flowchart of an interface rendering method in one embodiment.
  • the interface rendering method in this embodiment is described by taking running on the wearable device 120 in FIG. 1 as an example.
  • the first operating system and the second operating system can run on the wearable device, and the first operating system can run on the wearable device.
  • the power consumption of the second operating system is greater than that of running the first operating system on the wearable device.
  • an interface rendering method is provided, including operations 220 to 260 . in,
  • the interface type of the interface to be rendered is determined in response to the interface rendering instruction.
  • a first operating system and a second operating system can be run on the wearable device, wherein the power consumption when the second operating system is run on the wearable device is greater than the power consumption when the first operating system is run on the wearable device.
  • the second operating system may be an Android (Andriod) system
  • the first operating system may be a real-time operating system, such as an RTOS system (real-time operating system), etc., which is not limited in this application.
  • the RTOS system consumes less power during operation, and the system can be used to support the basic functions of wearable devices, such as time display, alarm schedule, physiological data monitoring, call reminder and other functions.
  • the Android Andriod system consumes a lot of power when running, and the Andriod system can be used to support complex functions of wearable devices, such as video and voice calling services, games, audio and video playback, WIFI, power management and other functions.
  • the wearable device is a smart watch or smart bracelet
  • preset events can be set. If the wearable device detects that a preset event occurs, it triggers an interface rendering instruction, and performs interface rendering based on the interface rendering instruction.
  • rendering refers to the process that the GPU reads data from the cache and renders it to the screen.
  • a drawing process may also be included before rendering, and drawing refers to a process in which the CPU converts the content to be rendered into data and stores it in the cache.
  • the preset events include acceleration data greater than a preset threshold, displacement within a preset time period greater than a preset threshold, gaze events (the user's eyes gaze on the screen for more than a preset duration), touch events, etc., which are not covered in this application. limited.
  • the user wears the wearable device on the arm, and if the wearable device detects that a preset event occurs when the arm lifts up, an interface rendering instruction is triggered on the wearable device. That is, if the acceleration sensor in the wearable device detects that the acceleration data is greater than the preset threshold when the action of raising the arm occurs, it is considered that a preset event has occurred.
  • the triggering interface rendering instruction is used to instruct interface rendering, which is dial rendering for a smart watch or smart bracelet.
  • the interface rendering instruction is received through the first operating system. Then continue to identify the interface type of the interface to be rendered carried in the interface rendering instruction by the first operating system.
  • the interface rendering instruction carries the interface type of the interface to be rendered.
  • the images to be rendered may be classified based on the number of elements included in the interface to be rendered, the color types of the elements, and the complexity of the elements. For example, it is divided into the first type of interface, the second type of interface, and the third type of interface, wherein the number of elements included in the third type of interface, the color type of the elements, and the complexity of the elements are all larger than those of the second type of interface.
  • the number of elements contained in the class interface, the color types of the elements, and the complexity of the elements are more or greater than those of the first class interface.
  • the first operating system performs interface rendering to generate the first target interface.
  • the first operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the first target interface.
  • the first target interface belongs to the first type of interface. Because the number of elements included in the first type of interface, the color types of the elements, and the complexity of the elements are relatively small, it is sufficient to control the first operating system to perform interface rendering, and the second operating system does not need to be used for interface rendering.
  • the power consumption when running the second operating system on the wearable device is greater than the power consumption when running the first operating system on the wearable device. Therefore, by controlling the first operating system to render the first type of interface, the power consumption of interface rendering on the wearable device can be reduced.
  • the second operating system performs interface rendering to generate a second target interface.
  • the first operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the second target interface .
  • the second target interface belongs to the second type of interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the first type of interface. An operating system is insufficient to support rendering of the second type of interface, so the second operating system is controlled to perform interface rendering. Because, the first operating system can be used to support basic functions of the wearable device, and the second operating system can be used to support complex functions of the wearable device.
  • the interface type of the interface to be rendered is determined in response to the interface rendering instruction. If the interface type belongs to the preset second type of interface, the second operating system performs interface rendering to generate the second target interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the first type of interface. One operating system is not enough to support rendering of the second type of interface, so the second operating system is controlled to perform interface rendering to meet the needs of rendering more complex interfaces on the wearable device.
  • the interface type of the interface to be rendered is determined in response to the interface rendering instruction. If the interface type belongs to the preset first type of interface, the first operating system performs interface rendering to generate the first target interface. If the interface type belongs to the preset second type of interface, the second operating system performs interface rendering to generate the second target interface. Because the power consumption of running the second operating system on the wearable device is greater than the power consumption of running the first operating system on the wearable device, by identifying the interface type of the interface to be rendered carried in the interface rendering instruction, if If the interface type belongs to the preset first type of interface, it is sufficient to control the first operating system to perform interface rendering, and it is not necessary to use the second operating system to perform interface rendering. Obviously, the power consumption of the wearable device during interface rendering is reduced.
  • determining the interface type of the interface to be drawn and rendered includes:
  • the interface rendering instruction is received through the first operating system, and the interface type of the to-be-rendered interface is determined by the first operating system.
  • the first operating system receives the interface rendering instruction, and then the first operating system continues to determine the interface type of the interface to be rendered.
  • the first operating system receives the interface rendering instruction through the second operating system, and then continue to determine the interface type of the interface to be rendered by the second operating system, which is not limited in this application.
  • an interface rendering method is provided, further comprising:
  • the first operating system and the second operating system both perform interface rendering to generate a third target interface
  • the third target interface is the first target interface and the second target interface. Synthesized interface.
  • the first operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the third target interface .
  • the third target interface belongs to the third type of interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the third type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface, the second type of interface contains more or more elements.
  • the operating system is also insufficient to support rendering of the third type of interface, or even if the second operating system can support the rendering of the third type of interface, the power consumption of rendering is relatively high, so the first operating system and the second operating system are controlled to jointly perform interface rendering.
  • the third target interface includes two parts. The first operating system can be used to render a part of the third target interface, and the second operating system can be used to render another part of the third target interface. The rendering of these two parts has a sequential order. However, this application does not limit the sequence. Because the power consumption of running the second operating system on the wearable device is greater than the power consumption of running the first operating system on the wearable device, combining the two operating systems for rendering can achieve a complex rendering of the third operating system. While the target interface is displayed, the power consumption of the wearable device during the interface rendering process is reduced.
  • the interface type of the interface to be rendered is determined in response to the interface rendering instruction. If the interface type belongs to the preset third type of interface, the second operating system performs interface rendering to generate the third target interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the third type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface.
  • the second operating system is not enough to support the rendering of the second type of interface, or even though the second operating system can support the rendering of the third type of interface, the power consumption of rendering is high, so the first operating system and the second operating system are controlled to perform interface rendering to meet the needs of The need to render more complex interfaces on wearable devices. And because the power consumption when running the first operating system is relatively small, the first operating system is also used to render a part of the third target interface here, so the power consumption of the wearable device during the interface rendering process can be reduced.
  • the first virtual machine runs on the first operating system, and the second virtual machine runs on the second operating system; the first virtual machine and the second virtual machine can run the same application program; operation 240, the first operation
  • the system performs interface rendering to generate the first target interface, including:
  • the first operating system performs interface rendering by running the first virtual machine to generate the first target interface.
  • the RTOS system generally runs on the coprocessor MCU of the wearable device, and the software on the MCU is often written in C language.
  • the second operating system is an Andriod system
  • the Andriod system generally runs on the main processor CPU of the wearable device, and the software on the CPU is usually written in a high-level architecture and language, such as JAVA language. In this way, because the RTOS system and the Andriod system are written in different languages, it is impossible to achieve joint compilation and deployment, and it is impossible to achieve a distributed architecture.
  • a lightweight JVM virtual machine (Java Virtual Machine, Java virtual machine) is run on the first operating system (such as an RTOS system), and a DVM (Dalvik Virtual Machine) virtual machine is run in the second operating system (such as an Andriod system).
  • the first virtual machine and the second virtual machine can run the same type of application, where the same type of application can be a JAVA application. That is, through the first virtual machine and the second virtual machine, it is realized that both the first operating system and the second operating system can run the JAVA application program.
  • the joint compilation and deployment of the JAVA application program in the first operating system and the second operating system is realized, and the efficiency of compilation and deployment is improved.
  • the JVM is a fictional computer, which is realized by simulating various computer functions on an actual computer.
  • a very important feature of the Java language is its independence from the platform, and the use of the Java virtual machine is the key to realizing this feature. If a general high-level language is to run on different platforms, at least it needs to be compiled into different object codes. After the introduction of the Java virtual machine, the Java language does not need to be recompiled when running on different platforms.
  • the Java language uses the Java virtual machine to shield the information related to the specific platform, so that the Java language compiler only needs to generate the object code (bytecode) running on the Java virtual machine, and it can run on various platforms without modification. .
  • the Java virtual machine executes the bytecode, it interprets the bytecode into machine instructions for execution on a specific platform. That's why Java is able to "compile once, run anywhere”.
  • All Java programs in the Android system run on the DVM.
  • Each program on the Android system has its own thread, and the DVM only executes the Dalvik executable file of .dex.
  • Each Android application corresponds to an independent DVM instance at the bottom and executes under its interpretation.
  • running the JVM virtual machine in the first operating system realizes that both the DVM virtual machine and the DVM virtual machine running in the second operating system are written in the JAVA language, thereby realizing joint compilation and deployment and distributed architecture. That is, the JVM virtual machine can be run in the first operating system to perform interface rendering.
  • the wearable device determines the interface type of the interface to be rendered in response to the interface rendering instruction. If the interface type belongs to the preset first type of interface, the first operating system performs interface rendering by running the first virtual machine to generate the first target interface.
  • the first virtual machine runs on the first operating system, for example, the JVM virtual machine runs on the RTOS system.
  • running the JVM virtual machine in the first operating system realizes that both the DVM virtual machine and the DVM virtual machine running in the second operating system are written in JAVA language, and then the interface rendering process can be jointly compiled, deployed and distributed architecture.
  • the JVM virtual machine can be run in the first operating system to perform interface rendering.
  • the wearable device responds to the interface rendering instruction and determines the interface type of the interface to be rendered. If the interface type belongs to the preset first type of interface, the first operating system performs interface rendering by running the first virtual machine to generate the first target interface.
  • the first target interface is independently rendered in the first operating system.
  • the second virtual machine is run on the second operating system; in operation 260, the second operating system performs interface rendering to generate the second target interface; including:
  • the second virtual machine is run by the second operating system to perform interface rendering, and a second target interface is generated.
  • the second virtual machine is run on the second operating system, for example, the DVM virtual machine is run in the Android system.
  • the second virtual machine is run by the second operating system to perform interface rendering, and a second target interface is generated.
  • a second target interface with more or larger number of elements, color types of elements, and complexity of elements included in the first type of interface is implemented on the second operating system. Because the first operating system is not enough to support rendering of the second type of interface, the second operating system is controlled to run the second virtual machine to perform interface rendering, so as to meet the requirements of rendering more complex interfaces on the wearable device.
  • the second operating system runs the second virtual machine to perform interface rendering to generate the second target interface; including:
  • the second operating system is controlled to run the second virtual machine to perform interface rendering, and a second target interface is generated.
  • an interface rendering method including:
  • Operation 402 receiving an interface rendering instruction through the first operating system; enter operation 404;
  • operation 404 determine whether the interface type of the interface to be rendered carried in the interface rendering instruction is the first type of interface; if so, go to operation 406; if not, go to operation 408;
  • Operation 406 controlling the first operating system to run the first virtual machine to perform interface rendering according to the interface rendering instruction to generate the first target interface
  • Operation 408 sending an interface rendering instruction to the second operating system through the first operating system
  • Operation 410 Control the second operating system to run the second virtual machine to perform interface rendering according to the interface rendering instruction, and generate a second target interface.
  • sending the interface rendering instruction to the second operating system through the first operating system may be performed through a virtual interface (VirtualAPI) between the first virtual machine in the first operating system and the second virtual machine in the second operating system communication.
  • VirtualAPI virtual interface
  • API underlying dual-core communication interface
  • the first virtual machine runs on the first operating system, for example, the JVM virtual machine runs on the RTOS system.
  • running the JVM virtual machine in the first operating system realizes that both the DVM virtual machine and the DVM virtual machine running in the second operating system are written in JAVA language, and then the interface rendering process can be jointly compiled, deployed and distributed architecture.
  • communication between the first operating system and the second operating system may be performed through a virtual interface (VirtualAPI) between the first virtual machine and the second virtual machine.
  • VirtualAPI virtual interface
  • the first operating system determines that the interface type of the interface to be rendered carried in the interface rendering instruction is not the first type of interface, the first operating system sends the interface rendering instruction to the second operating system, which realizes the process of passing the first operating system. After the operating system makes the judgment, it controls the second operating system to run the second virtual machine to perform interface rendering to generate the second target interface. That is, a common compilation, deployment and distributed architecture can be implemented for the interface rendering process.
  • sending an interface rendering instruction to the second operating system through the first operating system includes:
  • the first operating system is controlled to forward the interface rendering instruction to the second operating system through the dual-system communication interface.
  • FIG. 5 it is a schematic diagram of a distributed architecture of an interface rendering method based on dual virtual machines in one embodiment.
  • the AP Application Processor, application processor
  • the AP can run a second operating system, such as an Android system.
  • MCU Microcontroller Unit, Micro Control Unit
  • a first operating system such as an RTOS system, can run.
  • Wear OS Clockwork runs on the second operating system
  • Wear OS Clockwork (written based on JAVA language) can communicate with DVM through Virtual Dual-core Communication
  • DVM can communicate with the underlying dual-core through JNI (JavaNative Interface, Java Native Interface).
  • JNI JavaNative Interface, Java Native Interface
  • module Dual-core communication to communicate.
  • the dual-core communication module is written based on C language.
  • Light-WatchFace runs on the first operating system
  • Light-WatchFace (written based on JAVA language) can communicate with the Embedded JVM through Virtual Dual-core Communication
  • the Embedded JVM can communicate with the underlying dual-core communication module (Dual) through JNI -core communication) to communicate.
  • a dual-system communication interface 560 is configured between the dual-core communication module on the first operating system and the dual-core communication module on the second operating system, and the dual-system communication can be realized through the dual-system communication interface 560 .
  • the dual-system communication interface 560 may be an SPI interface (Serial Peripheral Interface, serial peripheral interface), which, of course, is not limited in this application.
  • the Wear OS Clockwork of the first operating system can be controlled, and the interface rendering instruction is forwarded to the second operating system from top to bottom through the dual-system communication interface.
  • the dual-system communication interface of the second operating system After receiving the interface rendering instruction, the dual-system communication interface of the second operating system transmits the interface rendering instruction to the Embeded JVM from bottom to top. Then, interface rendering is performed on the Embedded JVM according to the interface rendering instruction to generate a second target interface.
  • the second operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the second target interface. Because the first operating system is not enough to support rendering of the second type of interface, the second operating system is controlled to run the second virtual machine to perform interface rendering, so as to meet the requirement of rendering more complex interfaces on the wearable device.
  • controlling the first operating system to forward the interface rendering instruction to the second operating system through the dual-system communication interface includes:
  • the interface rendering instruction is sent to the hardware abstraction layer of the second operating system through the peripheral interface through the hardware abstraction layer of the first operating system.
  • FIG. 6 it is the communication flow chart between the Android system running on the AP and the RTOS system running on the MCU.
  • Android adopts a layered architecture, which can be divided into four layers. From the top layer to the bottom layer, it is divided into application layer (app+System apps), application framework layer (JavaAPI Framework), system runtime library and runtime environment layer (Libraries). +android Runtime) and Linux kernel layer (HAL+Linux Kernel).
  • HAL is a hardware abstraction layer (HardwareAbstraction Layer).
  • the first operating system in FIG. 6 includes an application layer 602 , an application framework layer 604 , a system runtime library 606 and a hardware abstraction layer 608 in sequence from the upper layer to the bottom layer, and other parts of the hierarchical structure are not shown in FIG. 6 for the time being. Shows. And the algorithm for identifying the interface type of the interface to be rendered carried in the interface rendering instruction is stored in the system runtime library 606 .
  • the second operating system in FIG. 6 sequentially includes an application layer 610 , an application framework layer 612 and a hardware abstraction layer 614 from the upper layer to the bottom layer, and other parts of the hierarchical structure are not shown in FIG. 6 for the time being.
  • an interface rendering method is provided.
  • the first operating system of the wearable device uses the algorithm in the system runtime library 606 to determine the content in the current interface rendering instruction.
  • the interface type of the interface to be rendered If it is determined that the interface type of the interface to be rendered is the first type of interface, the interface rendering instruction is sent to the application framework layer 604, and then sent to the application layer 602 through the application framework layer 604, and the application layer 602 performs rendering A first target interface is generated.
  • the interface rendering instruction is sent to the application framework layer 604 , and then sent to the hardware abstraction layer 608 through the application framework layer 604 .
  • the hardware abstraction layer 608 sends the interface rendering instruction to the hardware abstraction layer 614 of the second operating system through the peripheral interface, and notifies the second operating system to perform rendering.
  • the hardware abstraction layer 614 sends the interface rendering instruction to the application framework layer 612, and then the application framework layer 612 sends it to the application layer 610 for rendering to generate the second target interface.
  • the interface rendering instruction is sent to the hardware abstraction layer of the first operating system through the application framework layer of the first operating system, and the hardware abstraction layer of the first operating system is used to send the interface rendering instruction to the hardware abstraction layer of the first operating system.
  • the layer sends the interface rendering instruction to the hardware abstraction layer of the second operating system through the peripheral interface. Therefore, it is realized that the interface rendering instruction is sent from the first operating system to the second operating system, so that the second operating system can perform interface rendering to generate the second target interface.
  • an interface rendering method further comprising:
  • the second interface rendering class is loaded into the second virtual machine, and the second interface rendering class is used to render the second type of interface.
  • the dial rendering functions are all run on the AP, while in the embodiment of the present application, the dial rendering functions are divided into a first dial rendering class and a second dial rendering class in advance.
  • the first interface rendering class is loaded into the first virtual machine in the MCU, and the first interface rendering class is used to render the first type of interface.
  • the second interface rendering class is loaded into the second virtual machine in the AP, and the second interface rendering class is used to render the second type of interface.
  • the dial rendering function is divided into the first dial rendering class and the second dial rendering class, and these two dial rendering classes can run independently under the corresponding operating system, it can be realized that if the interface type belongs to the preset The first type of interface is called, according to the interface rendering instruction, the first interface rendering class is called in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate the first type of interface. At the same time, if the interface type belongs to the preset second type of interface, the second interface rendering class is called in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate the second type of interface.
  • the dial rendering function is divided into a first dial rendering class and a second dial rendering class, and both of these two dial rendering classes can run independently under the corresponding operating system, it is possible to realize the Different interface types of the to-be-rendered interface carried in the interface rendering instruction control different operating systems to render the interface. It is not necessary to perform interface rendering under the second operating system, so the power consumption of the wearable device during interface rendering is reduced.
  • the first operating system runs the first virtual machine to perform interface rendering to generate the first target interface, including:
  • the first interface rendering class is called in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate the first type of interface.
  • the dial rendering function is divided into a first dial rendering class and a second dial rendering class, and these two dial rendering classes can run independently under the corresponding operating system, if the interface rendering instruction
  • the to-be-rendered interface carried in the interface belongs to the preset first type of interface, and the first operating system is controlled to perform interface rendering. It is not necessary to perform interface rendering under the second operating system, so the power consumption of the wearable device during interface rendering is reduced.
  • the second operating system runs the second virtual machine to perform interface rendering to generate the second target interface, including:
  • the second interface rendering class is called in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate the second type of interface.
  • the dial rendering function is divided into a first dial rendering class and a second dial rendering class, and these two dial rendering classes can run independently under the corresponding operating system, if the interface rendering instruction
  • the to-be-rendered interface carried in the interface belongs to a preset second type of interface, and controls the second operating system to perform interface rendering.
  • the first operating system is insufficient to support rendering of the second type of interface, so the second operating system is controlled to perform interface rendering to meet the requirements of rendering more complex interfaces on the wearable device.
  • At least one of the brightness of the interface of the second type, the number of included elements, and the color type of the elements is greater than the brightness of the interface of the first type, the number of included elements, and the color type of the elements.
  • the number of elements contained in the second type of interface may be greater than the number of elements contained in the first type of interface, or the elements contained in the second type of interface may have more color types than the first type of interface.
  • the color type of the element may also be that the brightness of the second type of interface is greater than the brightness of the first type of interface.
  • the brightness of the second type of interface, the number of elements included, and the color types of the elements are all greater than those of the first type of interface, which is not limited in this application.
  • the second type of interface can be a common dial with multiple colors and elements
  • the first type of interface can be a black and white low-light dial that only displays time hands.
  • the second type of interface is distinguished from the first type of interface from at least one direction of brightness, the number of elements contained, and the color type of the elements.
  • the interface rendering instruction In order to respond to the interface rendering instruction and determine the interface type of the interface to be rendered, if the interface type belongs to the preset first type of interface, control the first operating system to perform interface rendering according to the interface rendering instruction to generate the first target interface. If the interface type belongs to the preset second type of interface, control the second operating system to perform interface rendering according to the interface rendering instruction to generate the second target interface. Therefore, it is possible to control different operating systems to perform interface rendering based on different interface types of the interface to be rendered carried in the interface rendering instruction. It is not necessary to perform interface rendering under the second operating system, so the power consumption of the wearable device during interface rendering is reduced.
  • an interface rendering method is provided, which is applied to a wearable watch or a wristband, and a first operating system and a second operating system can be run on the wearable watch or the wristband, And the power consumption when running the second operating system on the wearable watch or the bracelet is greater than the power consumption when running the first operating system on the wearable watch or the bracelet, and the method includes:
  • the wearable watch or bracelet receives an interface rendering instruction through the RTOS system
  • operation 804 it is determined whether the interface type of the interface to be rendered carried in the interface rendering instruction is a low-light dial; if so, go to operation 806; if not, go to operation 808;
  • the RTOS system is controlled according to the interface rendering instruction, and the low-light dial rendering class is called in the JVM virtual machine to perform rendering to generate the low-light dial.
  • an interface rendering instruction is sent to the Android system through the RTOS system
  • the Android system is controlled according to the interface rendering instruction, and the non-low-light dial rendering class is called in the DVM virtual machine to perform interface rendering, so as to generate a non-low-light dial.
  • the interface type of the interface to be rendered carried in the interface rendering instruction is identified by identifying the interface type of the interface to be rendered. , if the interface type belongs to the preset low-light dial, you can control the TOS system for interface rendering, and do not need to use the Android system for interface rendering. Obviously, the power consumption of the wearable device during interface rendering is reduced.
  • an interface rendering apparatus 900 is provided, which is applied to a wearable device.
  • a first operating system and a second operating system can run on the wearable device, and run on the wearable device.
  • the power consumption of the second operating system is greater than that of running the first operating system on the wearable device, and the device includes:
  • an interface type identification module 920 configured to respond to the interface rendering instruction and determine the interface type of the interface to be rendered
  • a first interface rendering module 940 configured to generate a first target interface by performing interface rendering by the first operating system if the interface type belongs to a preset first type of interface
  • the second interface rendering module 960 is configured to generate a second target interface by performing interface rendering by the second operating system if the interface type belongs to a preset second type of interface.
  • the interface type identification module 920 is further configured to receive an interface rendering instruction through the first operating system, and determine the interface type of the interface to be rendered and rendered by the first operating system.
  • an interface rendering apparatus 900 which further includes a third interface rendering module; the third interface rendering module is used to render the interface to be rendered by the first operating system and the second interface if the interface to be rendered belongs to the third type interface.
  • the operating systems all perform interface rendering to generate a third target interface, and the third target interface is an interface obtained by synthesizing the first target interface and the second target interface.
  • the first virtual machine runs on the first operating system, and the second virtual machine runs on the second operating system;
  • the first interface rendering module 940 is further configured to be executed by the first operating system by running the first virtual machine The interface rendering generates the first target interface;
  • the second interface rendering module is further configured to run the second virtual machine by the second operating system to perform interface rendering to generate the second target interface.
  • the second interface rendering module 960 includes an interface rendering instruction sending unit for sending an interface rendering instruction to the second operating system through the first operating system; an interface rendering unit for controlling the second operating system according to the interface rendering instruction The operating system runs the second virtual machine to perform interface rendering to generate a second target interface.
  • the interface rendering instruction sending unit is further configured to control the first operating system to forward the interface rendering instruction to the second operating system through the dual-system communication interface.
  • the interface rendering instruction sending unit is further configured to send the interface rendering instruction to the hardware abstraction layer of the first operating system through the application framework layer of the first operating system;
  • the interface is set to send the interface rendering instruction to the hardware abstraction layer of the second operating system.
  • an interface rendering apparatus 900 which further includes a dial rendering function splitting module 980; the dial rendering function splitting module 980 is used to split the dial rendering function into A dial rendering class and a second dial rendering class; load the first interface rendering class into the first virtual machine, and the first interface rendering class is used to render the first interface; load the second interface rendering class into the second virtual machine , the second interface rendering class is used to render the second type of interface.
  • the first interface rendering module 940 is further configured to call the first interface rendering class in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate the first type of interface.
  • the second interface rendering module 960 is further configured to call the second interface rendering class in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate the second type of interface.
  • At least one of the brightness of the interface of the second type, the number of included elements, and the color type of the elements is greater than the brightness of the interface of the first type, the number of included elements, and the color type of the elements.
  • the first operating system is an RTOS system
  • the second operating system is an Android system.
  • the first virtual machine is a JVM virtual machine
  • the second virtual machine is a DVM virtual machine.
  • each module in the above interface rendering apparatus is only used for illustration. In other embodiments, the interface rendering apparatus may be divided into different modules as required to complete all or part of the functions of the above interface rendering apparatus.
  • Each module in the above-mentioned interface rendering apparatus may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a wearable device including a memory and a processor, a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes an interface provided by the above embodiments The operation of the render method.
  • FIG. 11 is a schematic diagram of the internal structure of a wearable device in one embodiment.
  • the wearable device includes a processor and a memory connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire wearable device.
  • the memory may include non-volatile storage media and internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the computer program can be executed by the processor to implement an interface rendering method provided by the above embodiments.
  • Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media.
  • the wearable device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a car computer, a wearable device, and the like.
  • a mobile phone a tablet computer
  • PDA Personal Digital Assistant, personal digital assistant
  • POS Point of Sales, a sales terminal
  • car computer a wearable device, and the like.
  • each module in the interface rendering apparatus provided in the embodiment of the present application may be in the form of a computer program.
  • the computer program can be run on a wearable device or a wearable device.
  • the program modules formed by the computer program can be stored on the wearable device or the memory of the wearable device.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions, when executed by one or more processors, cause the processors to perform the operations of the interface rendering method.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An interface rendering method and apparatus, a wearable device, and a computer readable storage medium. The method comprises: responding to an interface rendering instruction, and determining an interface type of an interface to be rendered (220); and if the interface type belongs to a preset first-type interface, performing, by a first operating system, interface rendering to generate a first target interface (240). Power consumption of running a second operating system on the wearable device is greater than power consumption of running the first operating system on the wearable device, and therefore, the interface type of the interface to be rendered carried in the interface rendering instruction is identified, and if the interface type belongs to the preset first-type interface, it is only required to control the first operating system to perform interface rendering, without using the second operating system to perform interface rendering.

Description

界面渲染方法和装置、可穿戴设备、可读存储介质Interface rendering method and device, wearable device, and readable storage medium
本申请要求于2020年12月31日提交中国专利局,申请号为202011641335.3,发明名称为“界面渲染方法和装置、可穿戴设备、可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 31, 2020 with the application number 202011641335.3 and the invention title is "Interface rendering method and device, wearable device, and readable storage medium", the entire content of which is Incorporated herein by reference.
技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种界面渲染方法和装置、可穿戴设备、可读存储介质。The present application relates to the field of computer technology, and in particular, to an interface rendering method and device, a wearable device, and a readable storage medium.
背景技术Background technique
随着计算机技术的不断发展,可穿戴设备的功能越来越强大,也越来越受到人们的欢迎。可穿戴设备对人们的日常生活、出行等都带来了很多便利。With the continuous development of computer technology, wearable devices are becoming more and more powerful and more and more popular. Wearable devices have brought a lot of convenience to people's daily life and travel.
但是,目前出于便携和轻薄化设计的目的,可穿戴设备的体积都比较小,无法像手机等电子设备一样携带大容量电池,因此可穿戴设备的续航时间一直是阻碍其发展的短板。其中,界面渲染是可穿戴设备上耗电量较多的功能之一。因此,如何降低可穿戴设备上进行界面渲染的功耗,就成为当下亟需解决的一个难题。However, for the purpose of portability and thinning design, wearable devices are relatively small in size and cannot carry large-capacity batteries like mobile phones and other electronic devices. Therefore, the battery life of wearable devices has always been a shortcoming that hinders its development. Among them, interface rendering is one of the functions that consume more power on wearable devices. Therefore, how to reduce the power consumption of interface rendering on wearable devices has become a difficult problem that needs to be solved urgently.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种界面渲染方法和装置、可穿戴设备、可读存储介质,可以降低可穿戴设备在进行界面渲染时的功耗。Embodiments of the present application provide an interface rendering method and apparatus, a wearable device, and a readable storage medium, which can reduce the power consumption of the wearable device during interface rendering.
一种界面渲染方法,应用于可穿戴设备,所述可穿戴设备上可运行第一操作系统及第二操作系统,且在所述可穿戴设备上运行第二操作系统时的功耗大于在所述可穿戴设备上运行第一操作系统时的功耗,所述方法包括:An interface rendering method is applied to a wearable device, wherein a first operating system and a second operating system can be run on the wearable device, and the power consumption when running the second operating system on the wearable device is greater than that on the wearable device. The power consumption when running the first operating system on the wearable device, the method includes:
响应于界面渲染指令,并确定待渲染界面的界面类型;Responding to the interface rendering instruction, and determining the interface type of the interface to be rendered;
若所述界面类型属于预设的第一类界面,则由所述第一操作系统进行界面渲染生成第一目标界面;If the interface type belongs to a preset first type of interface, the first operating system performs interface rendering to generate a first target interface;
若所述界面类型属于预设的第二类界面,则由所述第二操作系统进行界面渲染生成第二目标界面。If the interface type belongs to a preset second type of interface, the second target interface is generated by the second operating system performing interface rendering.
一种界面渲染装置,应用于可穿戴设备,所述可穿戴设备上可运行第一操作系统及第二操作系统,且在所述可穿戴设备上运行第二操作系统时的功耗大于在所述可穿戴设备上运行第一操作系统时的功耗,所述装置包括:An interface rendering apparatus is applied to a wearable device. A first operating system and a second operating system can be run on the wearable device, and the power consumption when the second operating system is run on the wearable device is greater than that on the wearable device. The power consumption when running the first operating system on the wearable device, the device includes:
界面类型识别模块,用于响应于界面渲染指令,并确定待渲染界面的界面类型;The interface type identification module is used to respond to the interface rendering instruction and determine the interface type of the interface to be rendered;
第一界面渲染模块,用于若所述界面类型属于预设的第一类界面,则由所述第一操作系统进行界面渲染生成第一目标界面;a first interface rendering module, configured to perform interface rendering by the first operating system to generate a first target interface if the interface type belongs to a preset first type of interface;
第二界面渲染模块,用于若所述界面类型属于预设的第二类界面,则由所述第二操作系统进行界面渲染生成第二目标界面。A second interface rendering module, configured to generate a second target interface by performing interface rendering by the second operating system if the interface type belongs to a preset second type of interface.
一种可穿戴设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的界面渲染方法的操作。A wearable device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor causes the processor to perform the operations of the interface rendering method as described above.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的界面渲染方法的操作。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the operations of the above-mentioned interface rendering method.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技 术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中界面渲染方法的应用环境图;Fig. 1 is the application environment diagram of the interface rendering method in one embodiment;
图2为一个实施例中界面渲染方法的流程图;2 is a flowchart of an interface rendering method in one embodiment;
图3为另一个实施例中界面渲染方法的流程图;3 is a flowchart of an interface rendering method in another embodiment;
图4为又一个实施例中界面渲染方法的流程图;4 is a flowchart of an interface rendering method in another embodiment;
图5为一个实施例中基于双虚拟机的界面渲染方法的分布式架构示意图;5 is a schematic diagram of a distributed architecture of an interface rendering method based on dual virtual machines in one embodiment;
图6为一个实施例中运行在AP上的Android系统与运行在MCU上的RTOS系统之间的通信流程图;6 is a communication flow chart between the Android system running on the AP and the RTOS system running on the MCU in one embodiment;
图7为一个实施例中将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类的示意图;7 is a schematic diagram of splitting a dial rendering function into a first dial rendering class and a second dial rendering class in one embodiment;
图8为一个具体的实施例中界面渲染方法的流程图;8 is a flowchart of an interface rendering method in a specific embodiment;
图9为一个实施例中界面渲染装置的结构框图;9 is a structural block diagram of an interface rendering apparatus in one embodiment;
图10为再一个实施例中界面渲染装置的结构框图;10 is a structural block diagram of an interface rendering apparatus in yet another embodiment;
图11为一个实施例中可穿戴设备的内部结构示意图。FIG. 11 is a schematic diagram of the internal structure of a wearable device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
图1为一个实施例中界面渲染方法的应用场景图。如图1所示,该应用环境包括可穿戴设备120,可穿戴设备上可运行第一操作系统及第二操作系统,且在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗。可穿戴设备120通过本申请中的界面渲染方法,实现响应于界面渲染指令,并确定待渲染界面的界面类型;若界面类型属于预设的第一类界面,则由第一操作系统进行界面渲染生成第一目标界面;若界面类型属于预设的第二类界面,则由第二操作系统进行界面渲染生成第二目标界面。这里,可穿戴设备指的是直接穿在身上,或是整合到用户的衣服或配件中的一种便携式设备。可穿戴设备120可以是智能手环、智能手表、智能眼镜、智能手套、智能袜子、智能腰带等终端设备,本申请对此不做限定。FIG. 1 is an application scene diagram of an interface rendering method in one embodiment. As shown in FIG. 1 , the application environment includes a wearable device 120. A first operating system and a second operating system can be run on the wearable device, and the power consumption when running the second operating system on the wearable device is greater than that when the wearable device runs the second operating system. Power consumption when the first operating system is running on the device. The wearable device 120 uses the interface rendering method in this application to respond to the interface rendering instruction and determine the interface type of the interface to be rendered; if the interface type belongs to the preset first type of interface, the first operating system performs interface rendering A first target interface is generated; if the interface type belongs to a preset second type of interface, the second operating system performs interface rendering to generate a second target interface. Here, a wearable device refers to a portable device that is directly worn on the body or integrated into the user's clothing or accessories. The wearable device 120 may be a terminal device such as a smart bracelet, a smart watch, smart glasses, smart gloves, smart socks, and a smart belt, which is not limited in this application.
图2为一个实施例中界面渲染方法的流程图。本实施例中的界面渲染方法,以运行于图1中的可穿戴设备120上为例进行描述,可穿戴设备上可运行第一操作系统及第二操作系统,且在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗。如图2所示,提供了一种界面渲染方法,包括操作220至操作260。其中,FIG. 2 is a flowchart of an interface rendering method in one embodiment. The interface rendering method in this embodiment is described by taking running on the wearable device 120 in FIG. 1 as an example. The first operating system and the second operating system can run on the wearable device, and the first operating system can run on the wearable device. The power consumption of the second operating system is greater than that of running the first operating system on the wearable device. As shown in FIG. 2 , an interface rendering method is provided, including operations 220 to 260 . in,
操作220,响应于界面渲染指令,并确定待渲染界面的界面类型。In operation 220, the interface type of the interface to be rendered is determined in response to the interface rendering instruction.
可穿戴设备上可运行第一操作系统及第二操作系统,其中,在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗。例如,第二操作系统可以为安卓(Andriod)系统,相应地第一操作系统可以为实时操作系统,例如RTOS系统(real-time operating system)等,本申请对此不做限定。A first operating system and a second operating system can be run on the wearable device, wherein the power consumption when the second operating system is run on the wearable device is greater than the power consumption when the first operating system is run on the wearable device. For example, the second operating system may be an Android (Andriod) system, and correspondingly, the first operating system may be a real-time operating system, such as an RTOS system (real-time operating system), etc., which is not limited in this application.
其中,RTOS系统在运行时功耗较小,且该系统可用于支持可穿戴设备的基本功能,例如时间显示、闹钟日程、生理数据监测、来电提醒等功能。而安卓Andriod系统在运行时的功耗较大,且该Andriod系统可用于支持可穿戴设备的复杂功能,例如视频语音通话服务、游戏、播放音视频、WIFI、电源管理等功能。Among them, the RTOS system consumes less power during operation, and the system can be used to support the basic functions of wearable devices, such as time display, alarm schedule, physiological data monitoring, call reminder and other functions. The Android Andriod system consumes a lot of power when running, and the Andriod system can be used to support complex functions of wearable devices, such as video and voice calling services, games, audio and video playback, WIFI, power management and other functions.
若可穿戴设备为智能手表或智能手环,可以设置预设事件。若可穿戴设备检测到发生了预设事件时,则触发界面渲染指令,并基于该界面渲染指令进行界面渲染。其中,渲染 是指由GPU从缓存里读取数据并渲染至屏幕上的过程。一般情况下,在渲染之前还可以包括绘制过程,绘制是指由CPU将所要渲染的的内容转换为数据存储至缓存中的过程。在这里,预设事件包括加速度数据大于预设阈值、预设时间段内的位移大于预设阈值、注视事件(用户的眼睛注视屏幕超过预设时长)、触摸事件等,本申请对此不做限定。If the wearable device is a smart watch or smart bracelet, preset events can be set. If the wearable device detects that a preset event occurs, it triggers an interface rendering instruction, and performs interface rendering based on the interface rendering instruction. Among them, rendering refers to the process that the GPU reads data from the cache and renders it to the screen. In general, a drawing process may also be included before rendering, and drawing refers to a process in which the CPU converts the content to be rendered into data and stores it in the cache. Here, the preset events include acceleration data greater than a preset threshold, displacement within a preset time period greater than a preset threshold, gaze events (the user's eyes gaze on the screen for more than a preset duration), touch events, etc., which are not covered in this application. limited.
例如,用户将可穿戴设备佩戴在手臂上,若发生抬起手臂的动作时可穿戴设备检测到发生了预设事件,则在可穿戴设备上触发界面渲染指令。即若发生抬起手臂的动作时,可穿戴设备内的加速度传感器检测到加速度数据大于预设阈值,则认为发生了预设事件。触发界面渲染指令用于指示进行界面渲染,对于智能手表或智能手环来说即为表盘渲染。For example, the user wears the wearable device on the arm, and if the wearable device detects that a preset event occurs when the arm lifts up, an interface rendering instruction is triggered on the wearable device. That is, if the acceleration sensor in the wearable device detects that the acceleration data is greater than the preset threshold when the action of raising the arm occurs, it is considered that a preset event has occurred. The triggering interface rendering instruction is used to instruct interface rendering, which is dial rendering for a smart watch or smart bracelet.
具体的,在可穿戴设备上触发界面渲染指令之后,通过第一操作系统接收界面渲染指令。再继续由第一操作系统识别界面渲染指令中所携带的待渲染界面的界面类型。其中,界面渲染指令中携带了待渲染界面的界面类型。可以基于待渲染界面所包含的元素的数量、元素的色彩种类、元素的复杂程度,对待渲染画面进行分类。例如,划分为第一类界面、第二类界面、第三类界面,其中,第三类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均大于第二类界面,第二类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均多于或大于第一类界面。Specifically, after the interface rendering instruction is triggered on the wearable device, the interface rendering instruction is received through the first operating system. Then continue to identify the interface type of the interface to be rendered carried in the interface rendering instruction by the first operating system. The interface rendering instruction carries the interface type of the interface to be rendered. The images to be rendered may be classified based on the number of elements included in the interface to be rendered, the color types of the elements, and the complexity of the elements. For example, it is divided into the first type of interface, the second type of interface, and the third type of interface, wherein the number of elements included in the third type of interface, the color type of the elements, and the complexity of the elements are all larger than those of the second type of interface. The number of elements contained in the class interface, the color types of the elements, and the complexity of the elements are more or greater than those of the first class interface.
操作240,若界面类型属于预设的第一类界面,则由第一操作系统进行界面渲染生成第一目标界面。In operation 240, if the interface type belongs to the preset first type of interface, the first operating system performs interface rendering to generate the first target interface.
若由第一操作系统识别界面渲染指令中所携带的待渲染界面的界面类型属于预设的第一类界面,根据该界面渲染指令控制第一操作系统进行界面渲染生成第一目标界面。其中,第一目标界面属于第一类界面。因为第一类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均较小,则控制第一操作系统进行界面渲染即可,不需要采用第二操作系统进行界面渲染。而在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗。所以,控制第一操作系统进行渲染第一类界面,就可以降低在可穿戴设备上进行界面渲染的功耗。If the interface type of the interface to be rendered carried in the interface rendering instruction is identified by the first operating system as belonging to the preset first type of interface, the first operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the first target interface. The first target interface belongs to the first type of interface. Because the number of elements included in the first type of interface, the color types of the elements, and the complexity of the elements are relatively small, it is sufficient to control the first operating system to perform interface rendering, and the second operating system does not need to be used for interface rendering. The power consumption when running the second operating system on the wearable device is greater than the power consumption when running the first operating system on the wearable device. Therefore, by controlling the first operating system to render the first type of interface, the power consumption of interface rendering on the wearable device can be reduced.
操作260,若界面类型属于预设的第二类界面,则由第二操作系统进行界面渲染生成第二目标界面。In operation 260, if the interface type belongs to a preset second type of interface, the second operating system performs interface rendering to generate a second target interface.
具体的,若由第一操作系统识别界面渲染指令中所携带的待渲染界面的界面类型属于预设的第二类界面,根据该界面渲染指令控制第一操作系统进行界面渲染生成第二目标界面。其中,第二目标界面属于第二类界面。因为第二类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度较第一类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均较多或较大,第一操作系统不足以支持渲染第二类界面,所以控制第二操作系统进行界面渲染。因为,第一操作系统可用于支持可穿戴设备的基础功能,第二操作系统可用于支持可穿戴设备的复杂功能。Specifically, if the interface type of the interface to be rendered carried in the interface rendering instruction is identified by the first operating system as belonging to the preset second type of interface, the first operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the second target interface . The second target interface belongs to the second type of interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the first type of interface. An operating system is insufficient to support rendering of the second type of interface, so the second operating system is controlled to perform interface rendering. Because, the first operating system can be used to support basic functions of the wearable device, and the second operating system can be used to support complex functions of the wearable device.
其中,响应于界面渲染指令,并确定待渲染界面的界面类型。若界面类型属于预设的第二类界面,则由第二操作系统进行界面渲染生成第二目标界面。因为第二类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度较第一类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均较多或较大,第一操作系统不足以支持渲染第二类界面,所以控制第二操作系统进行界面渲染,以满足可穿戴设备上渲染较复杂界面的需求。The interface type of the interface to be rendered is determined in response to the interface rendering instruction. If the interface type belongs to the preset second type of interface, the second operating system performs interface rendering to generate the second target interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the first type of interface. One operating system is not enough to support rendering of the second type of interface, so the second operating system is controlled to perform interface rendering to meet the needs of rendering more complex interfaces on the wearable device.
本申请实施例中,响应于界面渲染指令,并确定待渲染界面的界面类型。若界面类型属于预设的第一类界面,则由第一操作系统进行界面渲染生成第一目标界面。若界面类型属于预设的第二类界面,则由第二操作系统进行界面渲染生成第二目标界面。因为在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗,所以,通过识别界面渲染指令中所携带的待渲染界面的界面类型,若界面类型属于预设的第一类界面,则控制第一操作系统进行界面渲染即可,不需要采用第二操作系统进行界面渲染。显然,就降低了可穿戴设备在进行界面渲染时的功耗。In this embodiment of the present application, the interface type of the interface to be rendered is determined in response to the interface rendering instruction. If the interface type belongs to the preset first type of interface, the first operating system performs interface rendering to generate the first target interface. If the interface type belongs to the preset second type of interface, the second operating system performs interface rendering to generate the second target interface. Because the power consumption of running the second operating system on the wearable device is greater than the power consumption of running the first operating system on the wearable device, by identifying the interface type of the interface to be rendered carried in the interface rendering instruction, if If the interface type belongs to the preset first type of interface, it is sufficient to control the first operating system to perform interface rendering, and it is not necessary to use the second operating system to perform interface rendering. Obviously, the power consumption of the wearable device during interface rendering is reduced.
在一个实施例中,响应于界面绘制渲染指令,确定待绘制渲染界面的界面类型,包括:In one embodiment, in response to the interface drawing and rendering instruction, determining the interface type of the interface to be drawn and rendered includes:
通过第一操作系统接收界面渲染指令,并由第一操作系统确定待绘制渲染界面的界面类型。The interface rendering instruction is received through the first operating system, and the interface type of the to-be-rendered interface is determined by the first operating system.
本申请实施例中,在可穿戴设备上触发界面渲染指令之后,通过第一操作系统接收界面渲染指令,再继续由第一操作系统确定待渲染界面的界面类型。当然,也可以通过第二操作系统接收界面渲染指令,再继续由第二操作系统确定待渲染界面的界面类型,本申请对此不做限定。In this embodiment of the present application, after the interface rendering instruction is triggered on the wearable device, the first operating system receives the interface rendering instruction, and then the first operating system continues to determine the interface type of the interface to be rendered. Of course, it is also possible to receive the interface rendering instruction through the second operating system, and then continue to determine the interface type of the interface to be rendered by the second operating system, which is not limited in this application.
在一个实施例中,如图3所示,提供了一种界面渲染方法,还包括:In one embodiment, as shown in FIG. 3, an interface rendering method is provided, further comprising:
操作280,若待渲染界面属于第三类型界面,则由第一操作系统和第二操作系统均进行界面渲染生成第三目标界面,第三目标界面为将第一目标界面与第二目标界面进行合成得到的界面。In operation 280, if the interface to be rendered belongs to the third type of interface, then the first operating system and the second operating system both perform interface rendering to generate a third target interface, and the third target interface is the first target interface and the second target interface. Synthesized interface.
具体的,若由第一操作系统识别界面渲染指令中所携带的待渲染界面的界面类型属于预设的第三类界面,根据该界面渲染指令控制第一操作系统进行界面渲染生成第三目标界面。其中,第三目标界面属于第三类界面。因为第三类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度较第二类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度较多或较大,第二操作系统也不足以支持渲染第三类界面,或即使第二操作系统可以支持渲染第三类界面但是渲染的功耗较高,所以控制第一操作系统和第二操作系统共同进行界面渲染。具体为,第三目标界面包含两部分,可以采用第一操作系统渲染第三目标界面中的一部分,采用第二操作系统渲染第三目标界面中的另一部分,这两部分的渲染具有先后顺序,但本申请对此先后顺序不做限定。因为在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗,将两个操作系统均结合起来进行渲染,能够在实现渲染复杂的第三目标界面的同时,降低可穿戴设备在界面渲染过程中的功耗。Specifically, if the interface type of the interface to be rendered carried in the interface rendering instruction is identified by the first operating system as belonging to the preset third type of interface, the first operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the third target interface . The third target interface belongs to the third type of interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the third type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface, the second type of interface contains more or more elements. The operating system is also insufficient to support rendering of the third type of interface, or even if the second operating system can support the rendering of the third type of interface, the power consumption of rendering is relatively high, so the first operating system and the second operating system are controlled to jointly perform interface rendering. Specifically, the third target interface includes two parts. The first operating system can be used to render a part of the third target interface, and the second operating system can be used to render another part of the third target interface. The rendering of these two parts has a sequential order. However, this application does not limit the sequence. Because the power consumption of running the second operating system on the wearable device is greater than the power consumption of running the first operating system on the wearable device, combining the two operating systems for rendering can achieve a complex rendering of the third operating system. While the target interface is displayed, the power consumption of the wearable device during the interface rendering process is reduced.
本申请实施例中,响应于界面渲染指令,并确定待渲染界面的界面类型。若界面类型属于预设的第三类界面,则由第二操作系统进行界面渲染生成第三目标界面。因为第三类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度较第二类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均较多或较大,第二操作系统不足以支持渲染第二类界面,或即使第二操作系统可以支持渲染第三类界面但是渲染的功耗较高,所以控制第一操作系统和第二操作系统进行界面渲染,以满足可穿戴设备上渲染较复杂界面的需求。且因为,运行第一操作系统时的功耗较小,在此处也采用第一操作系统渲染了第三目标界面的一部分,所以可以降低可穿戴设备在界面渲染过程中的功耗。In this embodiment of the present application, the interface type of the interface to be rendered is determined in response to the interface rendering instruction. If the interface type belongs to the preset third type of interface, the second operating system performs interface rendering to generate the third target interface. Because the number of elements, the color types of elements, and the complexity of the elements contained in the third type of interface are more or larger than the number of elements, the color types of elements, and the complexity of the elements contained in the second type of interface. The second operating system is not enough to support the rendering of the second type of interface, or even though the second operating system can support the rendering of the third type of interface, the power consumption of rendering is high, so the first operating system and the second operating system are controlled to perform interface rendering to meet the needs of The need to render more complex interfaces on wearable devices. And because the power consumption when running the first operating system is relatively small, the first operating system is also used to render a part of the third target interface here, so the power consumption of the wearable device during the interface rendering process can be reduced.
在一个实施例中,第一操作系统上运行第一虚拟机,第二操作系统上运行第二虚拟机;第一虚拟机和第二虚拟机能够运行同类应用程序;操作240,由第一操作系统进行界面渲染生成第一目标界面,包括:In one embodiment, the first virtual machine runs on the first operating system, and the second virtual machine runs on the second operating system; the first virtual machine and the second virtual machine can run the same application program; operation 240, the first operation The system performs interface rendering to generate the first target interface, including:
由第一操作系统通过运行第一虚拟机进行界面渲染,生成第一目标界面。The first operating system performs interface rendering by running the first virtual machine to generate the first target interface.
具体的,若第一操作系统为RTOS系统,RTOS系统一般运行在可穿戴设备的协处理器MCU上,而MCU上的软体往往采用C语言进行编写。若第二操作系统为Andriod系统,Andriod系统一般运行在可穿戴设备的主处理器CPU上,而CPU上的软体往往会使用高级架构和语言进行编写,例如JAVA语言。如此,因为RTOS系统与Andriod系统分别采用不同的语言进行编写,所以无法实现共同编译部署,也无法实现分布式架构。Specifically, if the first operating system is an RTOS system, the RTOS system generally runs on the coprocessor MCU of the wearable device, and the software on the MCU is often written in C language. If the second operating system is an Andriod system, the Andriod system generally runs on the main processor CPU of the wearable device, and the software on the CPU is usually written in a high-level architecture and language, such as JAVA language. In this way, because the RTOS system and the Andriod system are written in different languages, it is impossible to achieve joint compilation and deployment, and it is impossible to achieve a distributed architecture.
因此,在第一操作系统(例如RTOS系统)上运行轻量级JVM虚拟机(JavaVirtualMachine,Java虚拟机),而在第二操作系统(例如Andriod系统)中运行DVM(Dalvik Virtual Machine)虚拟机。且第一虚拟机和第二虚拟机能够运行同类应用程序,其中,同类应用程序可以是JAVA应用程序。即通过第一虚拟机和第二虚拟机,实现了在第一操作系统和第二操作系统上均可运行JAVA应用程序。进而,实现了在第一操作系统 和第二操作系统中对JAVA应用程序的共同编译部署,提高了编译部署的效率。其中,JVM是一种虚构出来的计算机,通过在实际的计算机上仿真模拟各种计算机功能来实现的。Java语言的一个非常重要的特点就是与平台的无关性,而使用Java虚拟机是实现这一特点的关键。一般的高级语言如果要在不同的平台上运行,至少需要编译成不同的目标代码。而引入Java虚拟机后,Java语言在不同平台上运行时不需要重新编译。Java语言使用Java虚拟机屏蔽了与具体平台相关的信息,使得Java语言编译程序只需生成在Java虚拟机上运行的目标代码(字节码),就可以在多种平台上不加修改地运行。Java虚拟机在执行字节码时,把字节码解释成具体平台上的机器指令执行。这就是Java能够“一次编译,到处运行”的原因。Therefore, a lightweight JVM virtual machine (Java Virtual Machine, Java virtual machine) is run on the first operating system (such as an RTOS system), and a DVM (Dalvik Virtual Machine) virtual machine is run in the second operating system (such as an Andriod system). And the first virtual machine and the second virtual machine can run the same type of application, where the same type of application can be a JAVA application. That is, through the first virtual machine and the second virtual machine, it is realized that both the first operating system and the second operating system can run the JAVA application program. Furthermore, the joint compilation and deployment of the JAVA application program in the first operating system and the second operating system is realized, and the efficiency of compilation and deployment is improved. Among them, the JVM is a fictional computer, which is realized by simulating various computer functions on an actual computer. A very important feature of the Java language is its independence from the platform, and the use of the Java virtual machine is the key to realizing this feature. If a general high-level language is to run on different platforms, at least it needs to be compiled into different object codes. After the introduction of the Java virtual machine, the Java language does not need to be recompiled when running on different platforms. The Java language uses the Java virtual machine to shield the information related to the specific platform, so that the Java language compiler only needs to generate the object code (bytecode) running on the Java virtual machine, and it can run on various platforms without modification. . When the Java virtual machine executes the bytecode, it interprets the bytecode into machine instructions for execution on a specific platform. That's why Java is able to "compile once, run anywhere".
Android系统中的所有Java程序都是运行在DVM上的。Android系统上的每个程序都有自己的线程,DVM只执行.dex的Dalvik executable文件。每个Android应用在底层都对应有一个独立的DVM实例并在其解释下执行。All Java programs in the Android system run on the DVM. Each program on the Android system has its own thread, and the DVM only executes the Dalvik executable file of .dex. Each Android application corresponds to an independent DVM instance at the bottom and executes under its interpretation.
如此,在第一操作系统中运行JVM虚拟机,就实现了与第二操作系统中所运行的DVM虚拟机,均采用JAVA语言进行编写,进而可以实现共同编译部署和分布式架构。即可以实现在第一操作系统中运行JVM虚拟机进行界面渲染。In this way, running the JVM virtual machine in the first operating system realizes that both the DVM virtual machine and the DVM virtual machine running in the second operating system are written in the JAVA language, thereby realizing joint compilation and deployment and distributed architecture. That is, the JVM virtual machine can be run in the first operating system to perform interface rendering.
具体的,可穿戴设备响应于界面渲染指令,并确定待渲染界面的界面类型。若界面类型属于预设的第一类界面,则由第一操作系统通过运行第一虚拟机进行界面渲染,生成第一目标界面。Specifically, the wearable device determines the interface type of the interface to be rendered in response to the interface rendering instruction. If the interface type belongs to the preset first type of interface, the first operating system performs interface rendering by running the first virtual machine to generate the first target interface.
本申请实施例中,第一操作系统上运行第一虚拟机,例如在RTOS系统上运行JVM虚拟机。如此,在第一操作系统中运行JVM虚拟机,就实现了与第二操作系统中所运行的DVM虚拟机,均采用JAVA语言进行编写,进而可以对界面渲染流程实现共同编译部署和分布式架构。即可以实现了在第一操作系统中运行JVM虚拟机进行界面渲染。从而,可穿戴设备响应于界面渲染指令,并确定待渲染界面的界面类型。若界面类型属于预设的第一类界面,则由第一操作系统通过运行第一虚拟机进行界面渲染,生成第一目标界面。实现了在第一操作系统中单独进行渲染第一目标界面。In the embodiment of the present application, the first virtual machine runs on the first operating system, for example, the JVM virtual machine runs on the RTOS system. In this way, running the JVM virtual machine in the first operating system realizes that both the DVM virtual machine and the DVM virtual machine running in the second operating system are written in JAVA language, and then the interface rendering process can be jointly compiled, deployed and distributed architecture. . That is, the JVM virtual machine can be run in the first operating system to perform interface rendering. Thus, the wearable device responds to the interface rendering instruction and determines the interface type of the interface to be rendered. If the interface type belongs to the preset first type of interface, the first operating system performs interface rendering by running the first virtual machine to generate the first target interface. The first target interface is independently rendered in the first operating system.
接上一个实施例,第二操作系统上运行第二虚拟机;操作260,由第二操作系统进行界面渲染生成第二目标界面;包括:Continuing from the previous embodiment, the second virtual machine is run on the second operating system; in operation 260, the second operating system performs interface rendering to generate the second target interface; including:
由第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。The second virtual machine is run by the second operating system to perform interface rendering, and a second target interface is generated.
本申请实施例中,在第二操作系统上运行第二虚拟机,例如在Android系统中运行DVM虚拟机。由第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。实现在第二操作系统上渲染较第一类界面所包含的元素的数量、元素的色彩种类、元素的复杂程度均较多或较大的第二目标界面。因为,第一操作系统不足以支持渲染第二类界面,所以控制第二操作系统运行第二虚拟机进行界面渲染,以满足可穿戴设备上渲染较复杂界面的需求。In this embodiment of the present application, the second virtual machine is run on the second operating system, for example, the DVM virtual machine is run in the Android system. The second virtual machine is run by the second operating system to perform interface rendering, and a second target interface is generated. A second target interface with more or larger number of elements, color types of elements, and complexity of elements included in the first type of interface is implemented on the second operating system. Because the first operating system is not enough to support rendering of the second type of interface, the second operating system is controlled to run the second virtual machine to perform interface rendering, so as to meet the requirements of rendering more complex interfaces on the wearable device.
在一个实施例中,由第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面;包括:In one embodiment, the second operating system runs the second virtual machine to perform interface rendering to generate the second target interface; including:
通过第一操作系统向第二操作系统发送界面渲染指令;Send an interface rendering instruction to the second operating system through the first operating system;
根据界面渲染指令控制第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。According to the interface rendering instruction, the second operating system is controlled to run the second virtual machine to perform interface rendering, and a second target interface is generated.
如图4所示,提供了一种界面渲染方法,包括:As shown in Figure 4, an interface rendering method is provided, including:
操作402,通过第一操作系统接收界面渲染指令;进入操作404; Operation 402, receiving an interface rendering instruction through the first operating system; enter operation 404;
操作404,判断界面渲染指令中所携带的待渲染界面的界面类型是否为第一类界面;若是,进入操作406;若否,进入操作408;In operation 404, determine whether the interface type of the interface to be rendered carried in the interface rendering instruction is the first type of interface; if so, go to operation 406; if not, go to operation 408;
操作406,根据界面渲染指令控制第一操作系统运行第一虚拟机进行界面渲染生成第一目标界面; Operation 406, controlling the first operating system to run the first virtual machine to perform interface rendering according to the interface rendering instruction to generate the first target interface;
操作408,通过第一操作系统向第二操作系统发送界面渲染指令; Operation 408, sending an interface rendering instruction to the second operating system through the first operating system;
操作410,根据界面渲染指令控制第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。Operation 410: Control the second operating system to run the second virtual machine to perform interface rendering according to the interface rendering instruction, and generate a second target interface.
其中,通过第一操作系统向第二操作系统发送界面渲染指令,可以是通过第一操作系统中的第一虚拟机与第二操作系统中的第二虚拟机之间的虚拟接口(VirtualAPI)进行通信。其中,实际上通过VirtualAPI是无法直接通信的,必须通过底层的双核通信接口(API)进行中转。但是对于Java调用者而言,看起来就像是直接在两个虚拟机之间进行调度一样。Wherein, sending the interface rendering instruction to the second operating system through the first operating system may be performed through a virtual interface (VirtualAPI) between the first virtual machine in the first operating system and the second virtual machine in the second operating system communication. Among them, in fact, it is impossible to communicate directly through the VirtualAPI, and it must be transferred through the underlying dual-core communication interface (API). But to the Java caller, it looks like the scheduling is directly between the two virtual machines.
本申请实施例中,第一操作系统上运行第一虚拟机,例如在RTOS系统上运行JVM虚拟机。如此,在第一操作系统中运行JVM虚拟机,就实现了与第二操作系统中所运行的DVM虚拟机,均采用JAVA语言进行编写,进而可以对界面渲染流程实现共同编译部署和分布式架构。且第一操作系统与第二操作系统之间,可以通过第一虚拟机与第二虚拟机之间的虚拟接口(VirtualAPI)进行通信。所以,若第一操作系统判断出界面渲染指令中所携带的待渲染界面的界面类型不是第一类界面,则通过第一操作系统向第二操作系统发送界面渲染指令,实现了在经过第一操作系统进行判断之后,控制第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。即可以对界面渲染流程实现共同编译部署和分布式架构。In the embodiment of the present application, the first virtual machine runs on the first operating system, for example, the JVM virtual machine runs on the RTOS system. In this way, running the JVM virtual machine in the first operating system realizes that both the DVM virtual machine and the DVM virtual machine running in the second operating system are written in JAVA language, and then the interface rendering process can be jointly compiled, deployed and distributed architecture. . Furthermore, communication between the first operating system and the second operating system may be performed through a virtual interface (VirtualAPI) between the first virtual machine and the second virtual machine. Therefore, if the first operating system determines that the interface type of the interface to be rendered carried in the interface rendering instruction is not the first type of interface, the first operating system sends the interface rendering instruction to the second operating system, which realizes the process of passing the first operating system. After the operating system makes the judgment, it controls the second operating system to run the second virtual machine to perform interface rendering to generate the second target interface. That is, a common compilation, deployment and distributed architecture can be implemented for the interface rendering process.
接上一个实施例中,通过第一操作系统向第二操作系统发送界面渲染指令,包括:Continuing from the previous embodiment, sending an interface rendering instruction to the second operating system through the first operating system includes:
控制第一操作系统通过双系统通信接口向第二操作系统转发界面渲染指令。The first operating system is controlled to forward the interface rendering instruction to the second operating system through the dual-system communication interface.
如图5所示,为一个实施例中基于双虚拟机的界面渲染方法的分布式架构示意图。其中,AP(Application Processor,应用处理器)520,其上可运行第二操作系统,例如Android系统。MCU(Microcontroller Unit,微控制单元)540,其上可运行第一操作系统,例如RTOS系统。As shown in FIG. 5 , it is a schematic diagram of a distributed architecture of an interface rendering method based on dual virtual machines in one embodiment. Wherein, the AP (Application Processor, application processor) 520 can run a second operating system, such as an Android system. MCU (Microcontroller Unit, Micro Control Unit) 540, on which a first operating system, such as an RTOS system, can run.
[根据细则91更正 21.12.2021] 
第二操作系统上运行了Wear OS Clockwork,Wear OS Clockwork(基于JAVA语言进行编写)可以通过Virtual Dual-core Communication与DVM进行通信,DVM可以通过JNI(JavaNative Interface,Java本地接口)与底层的双核通信模块(Dual-core communication)进行通信。其中,双核通信模块基于C语言进行编写。相应地,第一操作系统上运行了Light-WatchFace,Light-WatchFace(基于JAVA语言进行编写)可以通过Virtual Dual-core Communication与Embeded JVM进行通信,Embeded JVM可以通过JNI与底层的双核通信模块(Dual-core communication)进行通信。第一操作系统上的双核通信模块与第二操作系统上的双核通信模块之间配置了双系统通信接口560,通过该双系统通信接口560就可以实现双系统的通信。其中,双系统通信接口560可以是SPI接口(Serial Peripheral Interface,串行外设接口),当然,本申请对此不做限定。
[Corrected 21.12.2021 in accordance with Rule 91]
Wear OS Clockwork runs on the second operating system, Wear OS Clockwork (written based on JAVA language) can communicate with DVM through Virtual Dual-core Communication, and DVM can communicate with the underlying dual-core through JNI (JavaNative Interface, Java Native Interface). module (Dual-core communication) to communicate. Among them, the dual-core communication module is written based on C language. Correspondingly, Light-WatchFace runs on the first operating system, Light-WatchFace (written based on JAVA language) can communicate with the Embedded JVM through Virtual Dual-core Communication, and the Embedded JVM can communicate with the underlying dual-core communication module (Dual) through JNI -core communication) to communicate. A dual-system communication interface 560 is configured between the dual-core communication module on the first operating system and the dual-core communication module on the second operating system, and the dual-system communication can be realized through the dual-system communication interface 560 . The dual-system communication interface 560 may be an SPI interface (Serial Peripheral Interface, serial peripheral interface), which, of course, is not limited in this application.
其中,第一操作系统上的Virtual Dual-core Communication与第二操作系统上的Virtual Dual-core Communication之间具有的虚拟接口(Virtual API),但实际上通过Virtual API是无法直接通信的,必须通过底层的双核通信接口(API,Application Programming Interface)进行中转,具体的理由在此不再赘述。Among them, there is a virtual interface (Virtual API) between the Virtual Dual-core Communication on the first operating system and the Virtual Dual-core Communication on the second operating system, but in fact, it is impossible to communicate directly through the Virtual API. The underlying dual-core communication interface (API, Application Programming Interface) performs the transfer, and the specific reasons will not be repeated here.
[根据细则91更正 21.12.2021] 
本申请实施例中,基于上述分布式架构,就可以控制第一操作系统的Wear OS Clockwork,自上而下将界面渲染指令通过双系统通信接口向第二操作系统转发界面渲染指令。第二操作系统的双系统通信接口再接收到界面渲染指令之后,再自下而上将界面渲染指令传输至Embeded JVM。然后,根据界面渲染指令在Embeded JVM进行界面渲染,生成第二目标界面。实现了若界面渲染指令中所携带的待渲染界面的界面类型属于预设的第二类界面,则根据界面渲染指令控制第二操作系统进行界面渲染生成第二目标界面。因为,第一操作系统不足以支持渲染第二类界面,所以控制第二操作系统运行第二虚拟机进行界面渲染,以满足可穿戴设备上渲染较复杂界面的需求。
[Corrected 21.12.2021 in accordance with Rule 91]
In the embodiment of the present application, based on the above distributed architecture, the Wear OS Clockwork of the first operating system can be controlled, and the interface rendering instruction is forwarded to the second operating system from top to bottom through the dual-system communication interface. After receiving the interface rendering instruction, the dual-system communication interface of the second operating system transmits the interface rendering instruction to the Embeded JVM from bottom to top. Then, interface rendering is performed on the Embedded JVM according to the interface rendering instruction to generate a second target interface. It is realized that if the interface type of the interface to be rendered carried in the interface rendering instruction belongs to the preset second type of interface, the second operating system is controlled to perform interface rendering according to the interface rendering instruction to generate the second target interface. Because the first operating system is not enough to support rendering of the second type of interface, the second operating system is controlled to run the second virtual machine to perform interface rendering, so as to meet the requirement of rendering more complex interfaces on the wearable device.
在一个实施例中,控制第一操作系统通过双系统通信接口向第二操作系统转发界面渲染指令,包括:In one embodiment, controlling the first operating system to forward the interface rendering instruction to the second operating system through the dual-system communication interface includes:
通过第一操作系统的应用框架层将界面渲染指令发送至第一操作系统的硬件抽象层;sending the interface rendering instruction to the hardware abstraction layer of the first operating system through the application framework layer of the first operating system;
通过第一操作系统的硬件抽象层经过外设接口将界面渲染指令发送至第二操作系统的硬件抽象层。The interface rendering instruction is sent to the hardware abstraction layer of the second operating system through the peripheral interface through the hardware abstraction layer of the first operating system.
如图6所示,为运行在AP上的Android系统与运行在MCU上的RTOS系统之间的通信流程图。其中,Android采用分层的架构,具体可以分为四层,从高层到底层分为应用程序层(app+System apps),应用程序框架层(JavaAPI Framework),系统运行库和运行环境层(Libraries+android Runtime)和Linux核心层(HAL+Linux Kernel)。其中,HAL为硬件抽象层(HardwareAbstraction Layer)。As shown in Figure 6, it is the communication flow chart between the Android system running on the AP and the RTOS system running on the MCU. Among them, Android adopts a layered architecture, which can be divided into four layers. From the top layer to the bottom layer, it is divided into application layer (app+System apps), application framework layer (JavaAPI Framework), system runtime library and runtime environment layer (Libraries). +android Runtime) and Linux kernel layer (HAL+Linux Kernel). Among them, HAL is a hardware abstraction layer (HardwareAbstraction Layer).
其中,图6中的第一操作系统从上层到底层,依次包括了应用程序层602、应用程序框架层604、系统运行库606及硬件抽象层608,其他部分分层结构暂未在图6中示出。且识别界面渲染指令中所携带的待渲染界面的界面类型的算法,就存储在系统运行库606中。相应地,图6中的第二操作系统从上层到底层,依次包括了应用程序层610、应用程序框架层612及硬件抽象层614,其他部分分层结构暂未在图6中示出。The first operating system in FIG. 6 includes an application layer 602 , an application framework layer 604 , a system runtime library 606 and a hardware abstraction layer 608 in sequence from the upper layer to the bottom layer, and other parts of the hierarchical structure are not shown in FIG. 6 for the time being. Shows. And the algorithm for identifying the interface type of the interface to be rendered carried in the interface rendering instruction is stored in the system runtime library 606 . Correspondingly, the second operating system in FIG. 6 sequentially includes an application layer 610 , an application framework layer 612 and a hardware abstraction layer 614 from the upper layer to the bottom layer, and other parts of the hierarchical structure are not shown in FIG. 6 for the time being.
具体的,如图6所示,提供了一种界面渲染方法,可穿戴设备的第一操作系统在接收到界面渲染指令之后,经过系统运行库606中的算法,判断当前的界面渲染指令中所携带的待渲染界面的界面类型。若判断出待渲染界面的界面类型为第一类界面,则将该界面渲染指令发送至应用程序框架层604,再经过应用程序框架层604发送至应用程序层602,由应用程序层602进行渲染生成第一目标界面。Specifically, as shown in FIG. 6 , an interface rendering method is provided. After receiving the interface rendering instruction, the first operating system of the wearable device uses the algorithm in the system runtime library 606 to determine the content in the current interface rendering instruction. The interface type of the interface to be rendered. If it is determined that the interface type of the interface to be rendered is the first type of interface, the interface rendering instruction is sent to the application framework layer 604, and then sent to the application layer 602 through the application framework layer 604, and the application layer 602 performs rendering A first target interface is generated.
若经过系统运行库606判断出待渲染界面的界面类型为第二类界面,则将该界面渲染指令发送至应用程序框架层604,再经过应用程序框架层604发送至硬件抽象层608。由硬件抽象层608通过外设接口将界面渲染指令发送至第二操作系统的硬件抽象层614,知会第二操作系统进行渲染。具体的,由硬件抽象层614将界面渲染指令发送至应用程序框架层612,再由应用程序框架层612发送至应用程序层610进行渲染生成第二目标界面。If the system runtime library 606 determines that the interface type of the interface to be rendered is the second type interface, the interface rendering instruction is sent to the application framework layer 604 , and then sent to the hardware abstraction layer 608 through the application framework layer 604 . The hardware abstraction layer 608 sends the interface rendering instruction to the hardware abstraction layer 614 of the second operating system through the peripheral interface, and notifies the second operating system to perform rendering. Specifically, the hardware abstraction layer 614 sends the interface rendering instruction to the application framework layer 612, and then the application framework layer 612 sends it to the application layer 610 for rendering to generate the second target interface.
本申请实施例中,若界面类型属于预设的第二类界面,通过第一操作系统的应用框架层将界面渲染指令发送至第一操作系统的硬件抽象层,通过第一操作系统的硬件抽象层经过外设接口将界面渲染指令发送至第二操作系统的硬件抽象层。从而,实现了将界面渲染指令从第一操作系统发送至第二操作系统,以便于第二操作系统进行界面渲染生成第二目标界面。In the embodiment of the present application, if the interface type belongs to the preset second type of interface, the interface rendering instruction is sent to the hardware abstraction layer of the first operating system through the application framework layer of the first operating system, and the hardware abstraction layer of the first operating system is used to send the interface rendering instruction to the hardware abstraction layer of the first operating system. The layer sends the interface rendering instruction to the hardware abstraction layer of the second operating system through the peripheral interface. Therefore, it is realized that the interface rendering instruction is sent from the first operating system to the second operating system, so that the second operating system can perform interface rendering to generate the second target interface.
在一个实施例中,提供了一种界面渲染方法,还包括:In one embodiment, an interface rendering method is provided, further comprising:
预先将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类;Split the dial rendering function into the first dial rendering class and the second dial rendering class in advance;
将第一界面渲染类加载至第一虚拟机中,第一界面渲染类用于渲染第一类界面;Loading the first interface rendering class into the first virtual machine, where the first interface rendering class is used to render the first type of interface;
将第二界面渲染类加载至第二虚拟机中,第二界面渲染类用于渲染第二类界面。The second interface rendering class is loaded into the second virtual machine, and the second interface rendering class is used to render the second type of interface.
如图7所示,传统方法中表盘渲染函数都是运行在AP上,而本申请实施例中,预先将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类。将第一界面渲染类加载至MCU中的第一虚拟机中,第一界面渲染类用于渲染第一类界面。将第二界面渲染类加载至AP中的第二虚拟机中,第二界面渲染类用于渲染第二类界面。As shown in FIG. 7 , in the traditional method, the dial rendering functions are all run on the AP, while in the embodiment of the present application, the dial rendering functions are divided into a first dial rendering class and a second dial rendering class in advance. The first interface rendering class is loaded into the first virtual machine in the MCU, and the first interface rendering class is used to render the first type of interface. The second interface rendering class is loaded into the second virtual machine in the AP, and the second interface rendering class is used to render the second type of interface.
因为将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类,且这两个表盘渲染类均可以独立运行于对应的操作系统下,所以,就可以实现了若界面类型属于预设的第一类界面,则根据界面渲染指令在第一虚拟机中调用第一界面渲染类,以在第一操作系统的应用层中进行界面渲染,生成第一类界面。同时实现了若界面类型属于预设的第二类界面,则在第二虚拟机中调用第二界面渲染类,以在第二操作系统的应用层中进行界面渲染,生成第二类界面。Because the dial rendering function is divided into the first dial rendering class and the second dial rendering class, and these two dial rendering classes can run independently under the corresponding operating system, it can be realized that if the interface type belongs to the preset The first type of interface is called, according to the interface rendering instruction, the first interface rendering class is called in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate the first type of interface. At the same time, if the interface type belongs to the preset second type of interface, the second interface rendering class is called in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate the second type of interface.
本申请实施例中,因为将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类,且 这两个表盘渲染类均可以独立运行于对应的操作系统下,所以,就可以实现基于界面渲染指令中所携带的待渲染界面不同的界面类型,控制不同的操作系统进行界面渲染。不需要均在第二操作系统下进行界面渲染,就降低了可穿戴设备在进行界面渲染时的功耗。In the embodiment of the present application, because the dial rendering function is divided into a first dial rendering class and a second dial rendering class, and both of these two dial rendering classes can run independently under the corresponding operating system, it is possible to realize the Different interface types of the to-be-rendered interface carried in the interface rendering instruction control different operating systems to render the interface. It is not necessary to perform interface rendering under the second operating system, so the power consumption of the wearable device during interface rendering is reduced.
在一个实施例中,由第一操作系统运行第一虚拟机进行界面渲染,生成第一目标界面,包括:In one embodiment, the first operating system runs the first virtual machine to perform interface rendering to generate the first target interface, including:
在第一虚拟机中调用第一界面渲染类,以在第一操作系统的应用层中进行界面渲染,生成第一类界面。The first interface rendering class is called in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate the first type of interface.
本申请实施例中,因为将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类,且这两个表盘渲染类均可以独立运行于对应的操作系统下,所以,若界面渲染指令中所携带的待渲染界面属于预设的第一类界面,则控制第一操作系统进行界面渲染。不需要均在第二操作系统下进行界面渲染,就降低了可穿戴设备在进行界面渲染时的功耗。In the embodiment of the present application, because the dial rendering function is divided into a first dial rendering class and a second dial rendering class, and these two dial rendering classes can run independently under the corresponding operating system, if the interface rendering instruction The to-be-rendered interface carried in the interface belongs to the preset first type of interface, and the first operating system is controlled to perform interface rendering. It is not necessary to perform interface rendering under the second operating system, so the power consumption of the wearable device during interface rendering is reduced.
在一个实施例中,由第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面,包括:In one embodiment, the second operating system runs the second virtual machine to perform interface rendering to generate the second target interface, including:
在第二虚拟机中调用第二界面渲染类,以在第二操作系统的应用层中进行界面渲染,生成第二类界面。The second interface rendering class is called in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate the second type of interface.
本申请实施例中,因为将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类,且这两个表盘渲染类均可以独立运行于对应的操作系统下,所以,若界面渲染指令中所携带的待渲染界面属于预设的第二类界面,控制第二操作系统进行界面渲染。第一操作系统不足以支持渲染第二类界面,所以控制第二操作系统进行界面渲染,以满足可穿戴设备上渲染较复杂界面的需求。In the embodiment of the present application, because the dial rendering function is divided into a first dial rendering class and a second dial rendering class, and these two dial rendering classes can run independently under the corresponding operating system, if the interface rendering instruction The to-be-rendered interface carried in the interface belongs to a preset second type of interface, and controls the second operating system to perform interface rendering. The first operating system is insufficient to support rendering of the second type of interface, so the second operating system is controlled to perform interface rendering to meet the requirements of rendering more complex interfaces on the wearable device.
在一个实施例中,第二类界面的亮度、所包含的元素的数量、元素的色彩种类中的至少一个大于第一类界面的亮度、所包含的元素的数量、元素的色彩种类。In one embodiment, at least one of the brightness of the interface of the second type, the number of included elements, and the color type of the elements is greater than the brightness of the interface of the first type, the number of included elements, and the color type of the elements.
具体的,可以是第二类界面所包含的元素的数量大于第一类界面所包含的元素的数量,也可以是第二类界面所包含的元素的色彩种类多于第一类界面所包含的元素的色彩种类,也可以是第二类界面的亮度大于第一类界面的亮度。当然,还可以是第二类界面的亮度、所包含的元素的数量、元素的色彩种类均大于第一类界面,本申请对此不做限定。例如,对于可穿戴手表或手环而言,第二类界面可以是具有多种色彩、多种元素的普通表盘,第一类界面可以是黑白的、仅显示时间指针的微光表盘。Specifically, the number of elements contained in the second type of interface may be greater than the number of elements contained in the first type of interface, or the elements contained in the second type of interface may have more color types than the first type of interface. The color type of the element may also be that the brightness of the second type of interface is greater than the brightness of the first type of interface. Of course, it may also be that the brightness of the second type of interface, the number of elements included, and the color types of the elements are all greater than those of the first type of interface, which is not limited in this application. For example, for a wearable watch or bracelet, the second type of interface can be a common dial with multiple colors and elements, and the first type of interface can be a black and white low-light dial that only displays time hands.
本申请实施例中,从亮度、所包含的元素的数量、元素的色彩种类中的至少一个方向,来将第二类界面与第一类界面进行区分。以便响应于界面渲染指令,并确定待渲染界面的界面类型,若界面类型属于预设的第一类界面,则根据界面渲染指令控制第一操作系统进行界面渲染生成第一目标界面。若界面类型属于预设的第二类界面,则根据界面渲染指令控制第二操作系统进行界面渲染生成第二目标界面。从而,就可以实现基于界面渲染指令中所携带的待渲染界面不同的界面类型,控制不同的操作系统进行界面渲染。不需要均在第二操作系统下进行界面渲染,就降低了可穿戴设备在进行界面渲染时的功耗。In this embodiment of the present application, the second type of interface is distinguished from the first type of interface from at least one direction of brightness, the number of elements contained, and the color type of the elements. In order to respond to the interface rendering instruction and determine the interface type of the interface to be rendered, if the interface type belongs to the preset first type of interface, control the first operating system to perform interface rendering according to the interface rendering instruction to generate the first target interface. If the interface type belongs to the preset second type of interface, control the second operating system to perform interface rendering according to the interface rendering instruction to generate the second target interface. Therefore, it is possible to control different operating systems to perform interface rendering based on different interface types of the interface to be rendered carried in the interface rendering instruction. It is not necessary to perform interface rendering under the second operating system, so the power consumption of the wearable device during interface rendering is reduced.
在一个具体的实施例中,如图8所示,提供了一种界面渲染方法,应用于可穿戴手表或手环,可穿戴手表或手环上可运行第一操作系统及第二操作系统,且在可穿戴手表或手环上运行第二操作系统时的功耗大于在可穿戴手表或手环上运行第一操作系统时的功耗,该方法包括:In a specific embodiment, as shown in FIG. 8 , an interface rendering method is provided, which is applied to a wearable watch or a wristband, and a first operating system and a second operating system can be run on the wearable watch or the wristband, And the power consumption when running the second operating system on the wearable watch or the bracelet is greater than the power consumption when running the first operating system on the wearable watch or the bracelet, and the method includes:
操作802,可穿戴手表或手环通过RTOS系统接收界面渲染指令;In operation 802, the wearable watch or bracelet receives an interface rendering instruction through the RTOS system;
操作804,判断界面渲染指令中所携带的待渲染界面的界面类型是否为微光表盘;若是,进入操作806;若否,进入操作808;In operation 804, it is determined whether the interface type of the interface to be rendered carried in the interface rendering instruction is a low-light dial; if so, go to operation 806; if not, go to operation 808;
操作806,根据界面渲染指令控制RTOS系统,在JVM虚拟机中调用微光表盘渲染类进行渲染生成微光表盘。In operation 806, the RTOS system is controlled according to the interface rendering instruction, and the low-light dial rendering class is called in the JVM virtual machine to perform rendering to generate the low-light dial.
操作808,通过RTOS系统向Android系统发送界面渲染指令;In operation 808, an interface rendering instruction is sent to the Android system through the RTOS system;
操作810,根据界面渲染指令控制Android系统,在DVM虚拟机中调用非微光表盘渲染类进行界面渲染,生成非微光表盘。In operation 810, the Android system is controlled according to the interface rendering instruction, and the non-low-light dial rendering class is called in the DVM virtual machine to perform interface rendering, so as to generate a non-low-light dial.
本申请实施例中,因为在可穿戴设备上运行Android系统时的功耗大于在可穿戴设备上运行RTOS系统时的功耗,所以,通过识别界面渲染指令中所携带的待渲染界面的界面类型,若界面类型属于预设的微光表盘,则控制TOS系统进行界面渲染即可,不需要采用Android系统进行界面渲染。显然,就降低了可穿戴设备在进行界面渲染时的功耗。In the embodiment of the present application, because the power consumption when running the Android system on the wearable device is greater than the power consumption when running the RTOS system on the wearable device, the interface type of the interface to be rendered carried in the interface rendering instruction is identified by identifying the interface type of the interface to be rendered. , if the interface type belongs to the preset low-light dial, you can control the TOS system for interface rendering, and do not need to use the Android system for interface rendering. Obviously, the power consumption of the wearable device during interface rendering is reduced.
在一个实施例中,如图9所示,提供了一种界面渲染装置900,应用于可穿戴设备,可穿戴设备上可运行第一操作系统及第二操作系统,且在可穿戴设备上运行第二操作系统时的功耗大于在可穿戴设备上运行第一操作系统时的功耗,该装置包括:In one embodiment, as shown in FIG. 9, an interface rendering apparatus 900 is provided, which is applied to a wearable device. A first operating system and a second operating system can run on the wearable device, and run on the wearable device. The power consumption of the second operating system is greater than that of running the first operating system on the wearable device, and the device includes:
界面类型识别模块920,用于响应于界面渲染指令,并确定待渲染界面的界面类型;an interface type identification module 920, configured to respond to the interface rendering instruction and determine the interface type of the interface to be rendered;
第一界面渲染模块940,用于若界面类型属于预设的第一类界面,则由第一操作系统进行界面渲染生成第一目标界面;a first interface rendering module 940, configured to generate a first target interface by performing interface rendering by the first operating system if the interface type belongs to a preset first type of interface;
第二界面渲染模块960,用于若界面类型属于预设的第二类界面,则由第二操作系统进行界面渲染生成第二目标界面。The second interface rendering module 960 is configured to generate a second target interface by performing interface rendering by the second operating system if the interface type belongs to a preset second type of interface.
在一个实施例中,界面类型识别模块920,还用于通过第一操作系统接收界面渲染指令,并由第一操作系统确定待绘制渲染界面的界面类型。In one embodiment, the interface type identification module 920 is further configured to receive an interface rendering instruction through the first operating system, and determine the interface type of the interface to be rendered and rendered by the first operating system.
在一个实施例中,提供了一种界面渲染装置900,还包括第三界面渲染模块;第三界面渲染模块,用于若待渲染界面属于第三类型界面,则由第一操作系统和第二操作系统均进行界面渲染生成第三目标界面,第三目标界面为将第一目标界面与第二目标界面进行合成得到的界面。In one embodiment, an interface rendering apparatus 900 is provided, which further includes a third interface rendering module; the third interface rendering module is used to render the interface to be rendered by the first operating system and the second interface if the interface to be rendered belongs to the third type interface. The operating systems all perform interface rendering to generate a third target interface, and the third target interface is an interface obtained by synthesizing the first target interface and the second target interface.
在一个实施例中,第一操作系统上运行第一虚拟机,第二操作系统上运行第二虚拟机;第一界面渲染模块940,还用于由第一操作系统通过运行第一虚拟机进行界面渲染,生成第一目标界面;第二界面渲染模块,还用于由第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。In one embodiment, the first virtual machine runs on the first operating system, and the second virtual machine runs on the second operating system; the first interface rendering module 940 is further configured to be executed by the first operating system by running the first virtual machine The interface rendering generates the first target interface; the second interface rendering module is further configured to run the second virtual machine by the second operating system to perform interface rendering to generate the second target interface.
在一个实施例中,第二界面渲染模块960,包括界面渲染指令发送单元,用于通过第一操作系统向第二操作系统发送界面渲染指令;界面渲染单元,用于根据界面渲染指令控制第二操作系统运行第二虚拟机进行界面渲染,生成第二目标界面。In one embodiment, the second interface rendering module 960 includes an interface rendering instruction sending unit for sending an interface rendering instruction to the second operating system through the first operating system; an interface rendering unit for controlling the second operating system according to the interface rendering instruction The operating system runs the second virtual machine to perform interface rendering to generate a second target interface.
在一个实施例中,界面渲染指令发送单元,还用于控制第一操作系统通过双系统通信接口向第二操作系统转发界面渲染指令。In one embodiment, the interface rendering instruction sending unit is further configured to control the first operating system to forward the interface rendering instruction to the second operating system through the dual-system communication interface.
在一个实施例中,界面渲染指令发送单元,还用于通过第一操作系统的应用框架层将界面渲染指令发送至第一操作系统的硬件抽象层;通过第一操作系统的硬件抽象层经过外设接口将界面渲染指令发送至第二操作系统的硬件抽象层。In one embodiment, the interface rendering instruction sending unit is further configured to send the interface rendering instruction to the hardware abstraction layer of the first operating system through the application framework layer of the first operating system; The interface is set to send the interface rendering instruction to the hardware abstraction layer of the second operating system.
在一个实施例中,如图10所示,提供了一种界面渲染装置900,还包括表盘渲染函数拆分模块980;表盘渲染函数拆分模块980,用于预先将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类;将第一界面渲染类加载至第一虚拟机中,第一界面渲染类用于渲染第一类界面;将第二界面渲染类加载至第二虚拟机中,第二界面渲染类用于渲染第二类界面。In one embodiment, as shown in FIG. 10, an interface rendering apparatus 900 is provided, which further includes a dial rendering function splitting module 980; the dial rendering function splitting module 980 is used to split the dial rendering function into A dial rendering class and a second dial rendering class; load the first interface rendering class into the first virtual machine, and the first interface rendering class is used to render the first interface; load the second interface rendering class into the second virtual machine , the second interface rendering class is used to render the second type of interface.
在一个实施例中,第一界面渲染模块940,还用于在第一虚拟机中调用第一界面渲染类,以在第一操作系统的应用层中进行界面渲染,生成第一类界面。In one embodiment, the first interface rendering module 940 is further configured to call the first interface rendering class in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate the first type of interface.
在一个实施例中,第二界面渲染模块960,还用于在第二虚拟机中调用第二界面渲染类,以在第二操作系统的应用层中进行界面渲染,生成第二类界面。In one embodiment, the second interface rendering module 960 is further configured to call the second interface rendering class in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate the second type of interface.
在一个实施例中,第二类界面的亮度、所包含的元素的数量、元素的色彩种类中的至少一个大于第一类界面的亮度、所包含的元素的数量、元素的色彩种类。In one embodiment, at least one of the brightness of the interface of the second type, the number of included elements, and the color type of the elements is greater than the brightness of the interface of the first type, the number of included elements, and the color type of the elements.
在一个实施例中,第一操作系统为RTOS系统,第二操作系统为安卓系统。In one embodiment, the first operating system is an RTOS system, and the second operating system is an Android system.
在一个实施例中,第一虚拟机为JVM虚拟机,第二虚拟机为DVM虚拟机。In one embodiment, the first virtual machine is a JVM virtual machine, and the second virtual machine is a DVM virtual machine.
应该理解的是,虽然上述图中的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,上述图中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various operations in the flow charts in the above figures are displayed in sequence according to the arrows, these operations are not necessarily executed in the sequence indicated by the arrows. Unless otherwise specified herein, the execution of these operations is not strictly limited in order, and these operations may be performed in other orders. Moreover, at least a part of the operations in the above figures may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-operations or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other operations or at least a portion of sub-operations or phases of other operations.
上述界面渲染装置中各个模块的划分仅用于举例说明,在其他实施例中,可将界面渲染装置按照需要划分为不同的模块,以完成上述界面渲染装置的全部或部分功能。The division of each module in the above interface rendering apparatus is only used for illustration. In other embodiments, the interface rendering apparatus may be divided into different modules as required to complete all or part of the functions of the above interface rendering apparatus.
关于界面渲染装置的具体限定可以参见上文中对于界面渲染方法的限定,在此不再赘述。上述界面渲染装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the interface rendering apparatus, please refer to the limitation on the interface rendering method above, which will not be repeated here. Each module in the above-mentioned interface rendering apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,还提供了一种可穿戴设备,包括存储器及处理器,存储器中储存有计算机程序,计算机程序被处理器执行时,使得处理器执行以上各个实施例所提供的一种界面渲染方法的操作。In one embodiment, a wearable device is also provided, including a memory and a processor, a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes an interface provided by the above embodiments The operation of the render method.
图11为一个实施例中可穿戴设备的内部结构示意图。如图11所示,该可穿戴设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个可穿戴设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以上各个实施例所提供的一种界面渲染方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该可穿戴设备可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。FIG. 11 is a schematic diagram of the internal structure of a wearable device in one embodiment. As shown in Figure 11, the wearable device includes a processor and a memory connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire wearable device. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an interface rendering method provided by the above embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The wearable device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a car computer, a wearable device, and the like.
本申请实施例中提供的界面渲染装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在可穿戴设备或可穿戴设备上运行。该计算机程序构成的程序模块可存储在可穿戴设备或可穿戴设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的操作。The implementation of each module in the interface rendering apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program can be run on a wearable device or a wearable device. The program modules formed by the computer program can be stored on the wearable device or the memory of the wearable device. When the computer program is executed by the processor, the operations of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行界面渲染方法的操作。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when executed by one or more processors, cause the processors to perform the operations of the interface rendering method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行界面渲染方法。A computer program product containing instructions, when run on a computer, causes the computer to perform an interface rendering method.
本申请实施例所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used in embodiments of the present application may include non-volatile and/or volatile memory. Suitable nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上界面渲染实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范 围。因此,本申请专利的保护范围应以所附权利要求为准。The above interface rendering examples only express several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can also be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (16)

  1. 一种界面渲染方法,其特征在于,应用于可穿戴设备,所述可穿戴设备可运行第一操作系统及第二操作系统,且在所述可穿戴设备上运行第二操作系统时的功耗大于在所述可穿戴设备上运行第一操作系统时的功耗,所述方法包括:An interface rendering method, characterized in that it is applied to a wearable device, the wearable device can run a first operating system and a second operating system, and the power consumption when running the second operating system on the wearable device is greater than the power consumption when the first operating system is run on the wearable device, and the method includes:
    响应于界面渲染指令,确定待渲染界面的界面类型;In response to the interface rendering instruction, determine the interface type of the interface to be rendered;
    若所述界面类型属于预设的第一类界面,则由所述第一操作系统进行界面渲染生成第一目标界面;If the interface type belongs to a preset first type of interface, the first operating system performs interface rendering to generate a first target interface;
    若所述界面类型属于预设的第二类界面,则由所述第二操作系统进行界面渲染生成第二目标界面。If the interface type belongs to a preset second type of interface, the second target interface is generated by the second operating system performing interface rendering.
  2. 根据权利要求1所述的方法,其特征在于,所述响应于界面绘制渲染指令,确定待绘制渲染界面的界面类型,包括:The method according to claim 1, wherein the determining the interface type of the interface to be rendered and rendered in response to the interface drawing and rendering instruction comprises:
    通过所述第一操作系统接收界面渲染指令,并由所述第一操作系统确定待绘制渲染界面的界面类型。The interface rendering instruction is received through the first operating system, and the interface type of the interface to be rendered and rendered is determined by the first operating system.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    若所述待渲染界面属于第三类型界面,则由所述第一操作系统和所述第二操作系统均进行界面渲染生成第三目标界面,所述第三目标界面为将所述第一目标界面与所述第二目标界面进行合成得到的界面。If the interface to be rendered belongs to the third type of interface, the first operating system and the second operating system both perform interface rendering to generate a third target interface, and the third target interface is the first target interface An interface obtained by synthesizing the interface and the second target interface.
  4. 根据权利要求1所述的方法,其特征在于,所述第一操作系统上运行有第一虚拟机,所述第二操作系统上运行有第二虚拟机,所述第一虚拟机和所述第二虚拟机能够运行同类应用程序;所述由所述第一操作系统进行界面渲染生成第一目标界面,包括:The method according to claim 1, wherein a first virtual machine runs on the first operating system, a second virtual machine runs on the second operating system, the first virtual machine and the The second virtual machine can run applications of the same type; the generating the first target interface by performing interface rendering by the first operating system includes:
    由所述第一操作系统通过运行所述第一虚拟机进行界面渲染,生成第一目标界面;performing interface rendering by the first operating system by running the first virtual machine to generate a first target interface;
    所述由所述第二操作系统进行界面渲染生成第二目标界面;包括:The generating a second target interface by performing interface rendering by the second operating system; including:
    由所述第二操作系统运行所述第二虚拟机进行界面渲染,生成第二目标界面。The second virtual machine is run by the second operating system to perform interface rendering to generate a second target interface.
  5. 根据权利要求4所述的方法,其特征在于,所述由所述第二操作系统运行所述第二虚拟机进行界面渲染,生成第二目标界面;包括:The method according to claim 4, wherein the second operating system runs the second virtual machine to perform interface rendering to generate a second target interface; comprising:
    通过所述第一操作系统向所述第二操作系统发送所述界面渲染指令;Send the interface rendering instruction to the second operating system through the first operating system;
    根据所述界面绘制指令控制所述第二操作系统运行所述第二虚拟机进行界面渲染,生成第二目标界面。Controlling the second operating system to run the second virtual machine to perform interface rendering according to the interface drawing instruction to generate a second target interface.
  6. 根据权利要求5所述的方法,其特征在于,所述通过所述第一操作系统向所述第二操作系统发送所述界面渲染指令,包括:The method according to claim 5, wherein the sending the interface rendering instruction to the second operating system through the first operating system comprises:
    控制所述第一操作系统通过双系统通信接口向所述第二操作系统转发所述界面渲染指令。The first operating system is controlled to forward the interface rendering instruction to the second operating system through a dual-system communication interface.
  7. 根据权利要求6所述的方法,其特征在于,所述控制所述第一操作系统通过双系统通信接口向所述第二操作系统转发所述界面渲染指令,包括:The method according to claim 6, wherein the controlling the first operating system to forward the interface rendering instruction to the second operating system through a dual-system communication interface comprises:
    通过所述第一操作系统的应用框架层将所述界面渲染指令发送至所述第一操作系统的硬件抽象层;sending the interface rendering instruction to the hardware abstraction layer of the first operating system through the application framework layer of the first operating system;
    通过所述第一操作系统的硬件抽象层经过外设接口将所述界面渲染指令发送至所述第二操作系统的硬件抽象层。The interface rendering instruction is sent to the hardware abstraction layer of the second operating system through the peripheral interface through the hardware abstraction layer of the first operating system.
  8. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    预先将表盘渲染函数拆分为第一表盘渲染类及第二表盘渲染类;Split the dial rendering function into the first dial rendering class and the second dial rendering class in advance;
    将所述第一界面渲染类加载至所述第一虚拟机中,所述第一界面渲染类用于渲染第一类界面;Loading the first interface rendering class into the first virtual machine, where the first interface rendering class is used to render the first type of interface;
    将所述第二界面渲染类加载至所述第二虚拟机中,所述第二界面渲染类用于渲染第二类界面。Loading the second interface rendering class into the second virtual machine, where the second interface rendering class is used to render the second type of interface.
  9. 根据权利要求8所述的方法,其特征在于,所述由所述第一操作系统运行所述第一虚拟机进行界面渲染,生成第一目标界面,包括:The method according to claim 8, wherein the performing interface rendering by running the first virtual machine by the first operating system to generate the first target interface comprises:
    在所述第一虚拟机中调用所述第一界面渲染类,以在所述第一操作系统的应用层中进行界面渲染,生成第一类界面。The first interface rendering class is called in the first virtual machine to perform interface rendering in the application layer of the first operating system to generate a first type of interface.
  10. 根据权利要求8所述的方法,其特征在于,所述由所述第二操作系统运行所述第二虚拟机进行界面渲染,生成第二目标界面,包括:The method according to claim 8, wherein the step of running the second virtual machine by the second operating system to perform interface rendering to generate the second target interface comprises:
    在所述第二虚拟机中调用所述第二界面渲染类,以在所述第二操作系统的应用层中进行界面渲染,生成第二类界面。The second interface rendering class is called in the second virtual machine to perform interface rendering in the application layer of the second operating system to generate a second type of interface.
  11. 根据权利要求1所述的方法,其特征在于,所述第二类界面的亮度、所包含的元素的数量、所述元素的色彩种类中的至少一个大于所述第一类界面的亮度、所包含的元素的数量、所述元素的色彩种类。The method according to claim 1, wherein at least one of the brightness of the second type interface, the number of elements included, and the color type of the element are greater than the brightness of the first type interface, the The number of elements included, the color type of the element.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述第一操作系统为RTOS系统,所述第二操作系统为安卓系统。The method according to any one of claims 1-11, wherein the first operating system is an RTOS system, and the second operating system is an Android system.
  13. 根据权利要求1-11任一项所述的方法,其特征在于,所述第一虚拟机为JVM虚拟机,所述第二虚拟机为DVM虚拟机。The method according to any one of claims 1-11, wherein the first virtual machine is a JVM virtual machine, and the second virtual machine is a DVM virtual machine.
  14. 一种界面渲染装置,其特征在于,应用于可穿戴设备,所述可穿戴设备上可运行第一操作系统及第二操作系统,且在所述可穿戴设备上运行第二操作系统时的功耗大于在所述可穿戴设备上运行第一操作系统时的功耗,所述装置包括:An interface rendering device is characterized in that, it is applied to a wearable device, a first operating system and a second operating system can be run on the wearable device, and the function of running the second operating system on the wearable device is The power consumption is greater than the power consumption when the first operating system is run on the wearable device, and the device includes:
    界面类型识别模块,用于响应于界面渲染指令,并确定待渲染界面的界面类型;The interface type identification module is used to respond to the interface rendering instruction and determine the interface type of the interface to be rendered;
    第一界面渲染模块,用于若所述界面类型属于预设的第一类界面,则由所述第一操作系统进行界面渲染生成第一目标界面;a first interface rendering module, configured to perform interface rendering by the first operating system to generate a first target interface if the interface type belongs to a preset first type of interface;
    第二界面渲染模块,用于若所述界面类型属于预设的第二类界面,则由所述第二操作系统进行界面渲染生成第二目标界面。A second interface rendering module, configured to generate a second target interface by performing interface rendering by the second operating system if the interface type belongs to a preset second type of interface.
  15. 一种可穿戴设备,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至13中任一项所述的界面渲染方法的操作。A wearable device, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that, when the computer program is executed by the processor, the processor executes the execution as in claims 1 to 13 Operation of any one of the interface rendering methods.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至13中任一项所述的界面渲染方法的操作。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the operation of the interface rendering method according to any one of claims 1 to 13 is implemented.
PCT/CN2021/130845 2020-12-31 2021-11-16 Interface rendering method and apparatus, wearable device, and readable storage medium WO2022142793A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011641335.3 2020-12-31
CN202011641335.3A CN114691130A (en) 2020-12-31 2020-12-31 Interface rendering method and device, wearable device and readable storage medium

Publications (1)

Publication Number Publication Date
WO2022142793A1 true WO2022142793A1 (en) 2022-07-07

Family

ID=82135552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130845 WO2022142793A1 (en) 2020-12-31 2021-11-16 Interface rendering method and apparatus, wearable device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN114691130A (en)
WO (1) WO2022142793A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080178112A1 (en) * 2007-01-19 2008-07-24 Hruska Robert B System and method for rendering multiple user interfaces
CN104199735A (en) * 2014-09-26 2014-12-10 酷派软件技术(深圳)有限公司 Switching method, switching system and terminal for operating system
CN105204931A (en) * 2014-06-11 2015-12-30 联发科技(新加坡)私人有限公司 Low-power wearable equipment and multi-operation system switching, communication and management method thereof
CN111836187A (en) * 2020-06-16 2020-10-27 出门问问信息科技有限公司 Data processing method, device and system and computer readable storage medium
CN112000336A (en) * 2020-08-05 2020-11-27 上海连尚网络科技有限公司 Interface rendering method, electronic device and computer-readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080178112A1 (en) * 2007-01-19 2008-07-24 Hruska Robert B System and method for rendering multiple user interfaces
CN105204931A (en) * 2014-06-11 2015-12-30 联发科技(新加坡)私人有限公司 Low-power wearable equipment and multi-operation system switching, communication and management method thereof
CN104199735A (en) * 2014-09-26 2014-12-10 酷派软件技术(深圳)有限公司 Switching method, switching system and terminal for operating system
CN111836187A (en) * 2020-06-16 2020-10-27 出门问问信息科技有限公司 Data processing method, device and system and computer readable storage medium
CN112000336A (en) * 2020-08-05 2020-11-27 上海连尚网络科技有限公司 Interface rendering method, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN114691130A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US9798378B2 (en) Apparatus and method for awakening a primary processor out of sleep mode
US9753527B2 (en) Apparatus and method for managing graphics buffers for a processor in sleep mode
US20150185815A1 (en) Apparatus and Method for Passing Event Handling Control from a Primary Processor to a Secondary Processor During Sleep Mode
US20230418696A1 (en) Method for performing drawing operation by application and electronic device
EP3971818A1 (en) Picture processing method and apparatus
CN113132526B (en) Page drawing method and related device
CN113761427A (en) Method for generating card in self-adaptive mode, terminal device and server
CN116501210A (en) Display method, electronic equipment and storage medium
CN114498028A (en) Data transmission method, device, equipment and storage medium
WO2022142793A1 (en) Interface rendering method and apparatus, wearable device, and readable storage medium
CN113590210A (en) Class verification method and device in application program
CN111381996A (en) Memory exception handling method and device
CN114741121B (en) Method and device for loading module and electronic equipment
CN114489410A (en) Light spot display method, electronic device and computer readable storage medium
CN115904297A (en) Screen display detection method, electronic device and storage medium
CN116737292B (en) Display mode switching method, electronic equipment and readable storage medium
CN116027878B (en) Power consumption adjustment method and electronic equipment
WO2023241544A1 (en) Component preview method and electronic device
WO2024046084A1 (en) User interface display method and related apparatus
CN116703690B (en) Image processing method and apparatus
KR102115263B1 (en) Electronic Device And Method For Processing User Input Of The Same
WO2022247664A1 (en) Graphical interface display method, electronic device, medium, and program product
CN115543334B (en) Compiling optimization method and electronic equipment
WO2023280141A1 (en) Method for refreshing user interface, and electronic device
CN116088715B (en) Message reminding method and electronic equipment

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913536

Country of ref document: EP

Kind code of ref document: A1