WO2022188600A1 - Interface display method and apparatus, and terminal device and computer-readable storage medium - Google Patents

Interface display method and apparatus, and terminal device and computer-readable storage medium Download PDF

Info

Publication number
WO2022188600A1
WO2022188600A1 PCT/CN2022/076335 CN2022076335W WO2022188600A1 WO 2022188600 A1 WO2022188600 A1 WO 2022188600A1 CN 2022076335 W CN2022076335 W CN 2022076335W WO 2022188600 A1 WO2022188600 A1 WO 2022188600A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
operating system
interface
shared
module
Prior art date
Application number
PCT/CN2022/076335
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 WO2022188600A1 publication Critical patent/WO2022188600A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an interface display method, apparatus, terminal device, and computer-readable storage medium.
  • Terminal devices can be installed with multiple operating systems.
  • the switching process takes a long time, which causes the screen of the terminal device to freeze and display discontinuously.
  • the embodiments of the present application disclose an interface display method, device, terminal device, and computer-readable storage medium, which can greatly improve the situation of screen freeze or display discontinuity when switching operating systems.
  • the embodiment of the present application discloses an interface display method, which is applied to a terminal device, and the method includes:
  • the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system loads the first display module in the first operating system according to the system switching request,
  • the second operating system is the operating system currently running in the terminal device;
  • the first operating system renders the display interface, and writes the display data of the display interface into the shared display buffer area, and the shared display
  • the buffer area is a display buffer area shared between the first operating system and the second operating system
  • the second operating system acquires the display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
  • the embodiment of the present application discloses an interface display device, which is applied to a terminal device, and the device includes:
  • a loading module configured to load the first display module in the first operating system through the first operating system when the first operating system in the terminal device receives a system switching request sent by the second operating system,
  • the second operating system is the operating system currently running in the terminal device
  • a rendering module configured to render a display interface through the first operating system during the process of loading the first display module by the first operating system, and write the display data of the display interface into a shared display cache area, the shared display buffer area is a display buffer area shared between the first operating system and the second operating system;
  • the display module is configured to obtain the display data from the shared display buffer area through the second operating system, and control the screen to display the display interface according to the display data.
  • An embodiment of the present application discloses a terminal device, including a memory and a processor, where a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the above method.
  • the embodiment of the present application discloses a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method is implemented.
  • Fig. 1 is the application scene diagram of the interface display method in one embodiment
  • FIG. 2 is a system architecture diagram of a terminal device in one embodiment
  • FIG. 3 is a flowchart of an interface display method in one embodiment
  • FIG. 4 is a schematic diagram of a screen display of a terminal device in one embodiment
  • FIG. 6 is a flowchart of an interface display method in another embodiment
  • FIG. 7 is a schematic diagram of display interfaces corresponding to different applications in one embodiment
  • 8A is a timing diagram of switching from a second operating system to a first operating system, and the second operating system uses a shared display buffer in one embodiment
  • 8B is a timing diagram of switching from a second operating system to a first operating system, and the first operating system using a shared display buffer in one embodiment
  • FIG. 9 is a schematic diagram of a second operating system control screen displaying a dynamic display interface in one embodiment
  • FIG. 10 is a block diagram of an interface display device in one embodiment
  • FIG. 11 is a structural block diagram of a terminal device in an embodiment.
  • first, second, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element.
  • a first operating system could be referred to as a second operating system, and similarly, a second operating system could be referred to as a first operating system, without departing from the scope of this application.
  • Both the first operating system and the second operating system are operating systems, but they are not the same operating system.
  • FIG. 1 is an application scenario diagram of an interface display method in an embodiment.
  • the interface display method in this embodiment of the present application can be applied to a terminal device supporting multiple operating systems, and the terminal device may include, but is not limited to, a smartphone 10 , a smart wearable device 20 , a tablet computer, a Vehicle terminal, PC (Personal Computer, personal computer), etc.
  • At least two operating systems can be installed in the terminal device.
  • the terminal device can be installed with an embedded operating system (such as RTOS (Real Time Operating System, real-time operating system), etc.) and an intelligent operating system (such as IOS system, Android ( Android) system, etc.), multiple intelligent operating systems or multiple embedded systems, etc. may also be installed at the same time, and the specific operating system installed on the terminal device is not limited in the embodiments of the present application.
  • RTOS Real Time Operating System, real-time operating system
  • an intelligent operating system such as IOS system, Android ( Android) system, etc.
  • multiple intelligent operating systems or multiple embedded systems, etc.
  • the terminal device may include multiple processors, or may include a multi-core processor, for example, may include a dual-core processor, a quad-core processor, etc., so that different processors may be used, or Running different operating systems with different cores in the same processor.
  • the switching process of the terminal switching between different operating systems usually includes the following stages: a wake-up stage for waking up the operating system to be switched in, a loading stage for loading the display module of the operating system to be switched in, if it needs to be started
  • the application may also include the startup phase of the operating system to be switched to start the application, etc., and the entire switching process takes a long time.
  • the interface of the operating system to be switched can be displayed normally only after the system switching is completed, which causes the screen of the terminal device to freeze and display discontinuity during the switching process.
  • the embodiments of the present application disclose an interface display method, device, terminal device, and computer-readable storage medium.
  • the The first operating system to be switched in renders the display interface and writes the display data into the shared display buffer area
  • the second operating system to be switched out obtains the display data from the shared display buffer area and controls the screen display, without waiting for the first operation
  • the display interface rendered by the first operating system can only be displayed after the first display module of the system is loaded, which can greatly improve the situation of screen freeze or display discontinuity when switching operating systems, and realize continuous and smooth interface display without feeling. switch.
  • FIG. 2 is a system architecture diagram of a terminal device in an embodiment.
  • an operating system A and an operating system B may be installed in the terminal device, and the operating system A may include an application layer, a framework layer, a kernel layer, and the like.
  • the application layer may be installed with one or more application programs.
  • the framework layer can provide corresponding interfaces or services for the operation of the A operating system and the operation of each application in the application layer.
  • the framework layer can include system services, dual-core communication services, switching services, and interface services. System services can provide various functional interfaces for applications such as application startup, loading and running.
  • a operating system can communicate with B operating system through dual-core communication services, and can realize message control and function control in the process of operating system switching through switching services.
  • the interface service can provide interfaces such as display data control.
  • the kernel layer may include the kernel of the A operating system and various hardware drivers, such as display drivers, camera drivers, sensor drivers, etc.
  • the kernel of the A operating system can be used to provide the most basic functions of the A operating system.
  • the B operating system can be similar to the A operating system.
  • the B operating system can also include the application layer, the framework layer, and the kernel layer.
  • the B operating system can communicate with the A operating system through the dual-core communication service, and realize the operating system switching process through the switching service. message control, function control, etc.
  • the terminal device may establish a shared display buffer area between the A operating system and the B operating system.
  • the operating system When either operating system receives a system switching request sent by another operating system, the operating system to be switched
  • the display data filled by the operating system to be switched to can be obtained from the shared display buffer area, and the screen can be controlled to display.
  • the A operating system can load the display module in the A operating system according to the system switching request.
  • the display module may include display drivers and display-related interface services in the framework layer, etc. Only when the display module is loaded can the A operating system control the screen to display through the display module.
  • the A operating system can render the display interface, and write the display data of the display interface into the shared display buffer area.
  • the display data is written to the shared display buffer of the B operating system.
  • the B operating system can obtain display data from the shared display buffer area, and control the screen to display the display interface rendered by the A operating system according to the display data.
  • the screen display is controlled by the B operating system in advance. It does not need to wait for the display module of the A operating system to be loaded before the display interface rendered by the A operating system can be displayed, which can greatly improve the performance of the operating system.
  • the screen freezes or the display is discontinuous when switching.
  • FIG. 2 only shows a system architecture diagram of the terminal device in one embodiment, and the system architecture of the terminal device may also be other architectures, which are not limited herein.
  • an interface display method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step 310 when the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system loads the first display module in the first operating system according to the system switching request.
  • the second operating system may refer to the operating system currently running in the foreground in the terminal device, that is, the operating system to be switched out, wherein the operating system running in the foreground may refer to the one that can directly interact with the user through the screen display interface The user can directly see the interface displayed by the operating system through the screen of the terminal device.
  • the first operating system may refer to an operating system to be switched in.
  • the system switching operation may be an operation actively triggered by the user, for example, the user actively switches the operating system, the user clicks to start the application of the first operating system, etc.; the system switching operation may also be performed by the terminal device according to the actual operating conditions.
  • a switching operation that is actively triggered For example, when an application of the first operating system receives a push message, it can send a notification that triggers the system switching operation to the second operating system, and the second operating system generates a system switching operation according to the notification that triggers the system switching operation. ask.
  • the first operating system when the second operating system is running, the first operating system can be in a dormant state, so that the power consumption of the terminal device can be reduced.
  • the first operating system may be awakened based on the system switching request, and load the first display module in the first operating system, wherein the sleep state may refer to the fact that the data of the first operating system is stored in the memory, and the first operating system corresponds to Some or all of the processing cores or processors are powered off, and other associated hardware (such as hard disks, etc.) may also be powered off.
  • the first display module may include a display driver in the first operating system, as well as products or services related to screen display, etc.
  • the loading of the first display module by the first operating system may include the first operating system loading the display driver, and The screen displays related products or services, etc. to be loaded, and the display bus controller and screen can be initialized and configured. Only after the first display module is loaded, the display interface rendered in the first operating system can be output to the screen for display.
  • Step 320 During the process of loading the first display module by the first operating system, the first operating system renders the display interface, and writes the display data of the display interface into the shared display buffer area.
  • the first operating system needs to wait for the first display module to be loaded before rendering the display interface, and control the screen to display through the first display module, and the loading process of the first display module takes a long time. Therefore, it is easy to cause screen freezes and discontinuous display, which makes users mistakenly believe that the terminal device has system freezes, which affects the user's experience of using the terminal device.
  • the first operating system may directly render the display interface, and the display interface may be the system interface of the first operating system, or the first operating system startup The main interface of the application, or a preset transition interface for operating system switching, etc., but not limited to this.
  • the first operating system renders the display interface, obtains display data of one or more frames of the display interface, and writes the display data into the shared display buffer area.
  • the shared display buffer area may be a display buffer area shared between the first operating system and the second operating system.
  • both the first operating system and the second operating system have access rights, and the first operating system and the second operating system have access rights. Both operating systems can write display data into the shared display buffer area, and can also obtain display data from the shared display buffer area.
  • the shared display buffer area may be the same storage area in the terminal device that can be used by the first operating system and the second operating system in common.
  • the shared display buffer area can also be respectively set with a first storage area corresponding to the first operating system and a second storage area corresponding to the second operating system.
  • the first storage area and the second storage area can be separate storage areas, and the An operating system can send display data to the second storage area corresponding to the second operating system through inter-system communication, and the second operating system can also send display data to the first storage area corresponding to the first operating system through inter-system communication area.
  • the communication between the systems can be carried out in many different ways, for example, communication can be carried out using a dual-core communication service, or communication can be carried out through a shared memory bus or the like.
  • the first operating system can send the display data of the rendered display interface to the shared display buffer area of the second operating system through inter-system communication, and the display data is stored in the shared display buffer area of the second operating system.
  • Step 330 the second operating system acquires display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
  • the second operating system can obtain the display data written by the first operating system from the shared display buffer area, and control the screen to display the corresponding display interface through the second display module in the second operating system. Since the second operating system is always running, the second display module in the second operating system can send display data to the screen for display without being loaded, so that the display interface rendered by the first operating system can be displayed immediately. , to ensure the continuity of the display screen.
  • the second operating system can sequentially obtain the display data from the shared display buffer area, and control the screen to continuously refresh and display the acquired display data corresponding display interface.
  • FIG. 4 is a schematic diagram of screen display of a terminal device in one embodiment.
  • the interface 402 is the interface currently displayed by the second operating system
  • the interface 404 is the system interface of the first operating system.
  • the interface 404 can be rendered, and the rendered display data of the interface 404 can be written into the second operation
  • the system's shared display buffer may acquire display data of the interface 404 from the shared display buffer, and control the screen display interface 404 according to the display data.
  • the interface display can be continuously and smoothly switched without feeling.
  • the first operating system when the first display module in the first operating system is loaded, the first operating system can stop writing the display data of the rendered display interface into the shared display buffer, and control the display through the first display module.
  • the screen displays the rendered display interface.
  • the terminal device can switch back to the normal display process of the first operating system, and the first operating system can no longer write display data to the shared display buffer of the second operating system, but directly pass the first operating system
  • the display module sends the display data of the rendered display interface to the screen, and controls the screen to display.
  • the first operating system may send a first message to the second operating system, where the first message may be used to notify the second operating system that the switching is completed.
  • the second operating system may stop acquiring display data from the shared display buffer area according to the first message, and enter a sleep state.
  • the second operating system can stop acquiring display data from the shared display buffer area and stop controlling the screen to display, and the first operating system can take over the control authority of the screen and restore it. into the normal screen display process of the first operating system.
  • the first operating system in the terminal device receives the system switching request sent by the second operating system
  • the first operating system loads the first display module in the first operating system according to the system switching request
  • the first operating system renders the display interface and writes the display data of the display interface into the shared display buffer area.
  • a shared display buffer area is established between the two, and when the system is switched, the first operating system to be switched in renders the display interface and writes it into the shared display buffer area, and then the second operating system to be switched out obtains the display from the shared display buffer area.
  • Data and control the screen display it does not need to wait for the first display module of the first operating system to be loaded before the display interface rendered by the first operating system can be displayed, which can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched. In other cases, the interface display can be continuously and smoothly switched without feeling.
  • another interface display method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step 502 when the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system wakes up the system service according to the system switching request.
  • the framework layer of the first operating system may include multiple services, which may include but are not limited to system services, switching services, dual-core communication services, interface services, etc. interface, so that each application can use the system function of the first operating system or the hardware of the terminal device by calling the interface or service.
  • the system service may provide a control interface to the system layer of the first operating system, such as power management service, window management service, etc., but is not limited thereto.
  • the first operating system When the terminal device is not running the first operating system, the first operating system can be in a dormant state, and when the first operating system receives a system switching request sent by the second operating system, the first operating system can wake up the system according to the system switching request Serve.
  • a wakelock can be created to pair AMS (Activity Manager Service, activity management service), WMS (Window Manager Service, window management service) and/or PMW (Power Manage Service, power management service) and other system services to wake up, the wakelock is a lock mechanism in the Android operating system, as long as the wakelock is held, the Android operating system cannot Enter sleep state.
  • AMS Activity Manager Service, activity management service
  • WMS Window Manager Service, window management service
  • PMW Power Manage Service, power management service
  • Step 504 the first operating system sends a loading instruction to the interface service through the system service.
  • the system service can communicate with the interface service, and send a loading instruction to the interface service.
  • the interface service can be used to implement functions such as interface establishment, control and management.
  • the loading instruction can be used The interface service is instructed to load the first display module.
  • Step 506 after receiving the loading instruction, the interface service immediately returns a preparation instruction to the system service, and loads the first display module according to the loading instruction, and the preparation instruction is used to instruct the system service to render the display interface.
  • the interface service After the interface service receives the loading command, since the loading of the first display module takes a long time, the interface service can immediately return a preparation command to the system service, and the preparation command can be used to inform the system service that the first display module is "ready", After the interface service sends the preparation instruction, the loading of the first display module can be continued abnormally. After the system service receives the preparation instruction returned by the interface service, the first operating system can normally start to request rendering of the display interface.
  • SurfaceFlinger can be called through SurfaceFlinger.setDisplayPowerMode, so that SurfaceFlinger loads the first display module.
  • the SurfaceFlinger is an interface service in the Android operating system, which can be used to control the interface display.
  • Step 508 the first operating system sends a message of starting the shared display buffer to the interface service through the switching service, where the message of starting the shared display buffer is used to instruct the interface service to write the display data of the rendered display interface into the shared display buffer.
  • the handover service in the first operating system may be used to control the handover function between systems.
  • the switching service may send a message to start the shared display buffer area to the interface service.
  • the interface service can The start shared display buffer message writes the display data of the rendered display interface into the shared display buffer of the second operating system. Further, the interface service can be sent to the second operating system through the dual-core communication service, and written into the shared display buffer area of the second operating system.
  • the interface service While the interface service controls the rendered display data, the interface service is also loading the first display module.
  • the interface service can create two threads to perform different tasks in the interface service, and load the first display through the first thread.
  • the module sends the display data to the shared display buffer area of the second operating system through the second thread, and the dual-thread working mode will not affect each other, and can ensure that the two are performed at the same time, thereby improving the work efficiency of the interface service.
  • the step of writing the display data of the display interface into the shared display buffer area may include: when the first operating system receives the second message sent by the second operating system, displaying the display interface according to the second message The data is written into the shared display buffer, and the second message is used to indicate that the second operating system has enabled the shared display buffer.
  • the second operating system After the second operating system sends a system switching request to the first operating system and receives a confirmation message replied by the first operating system, the second operating system can prepare to enable the shared display buffer area to refresh the screen.
  • the second operating system can send the second message to the first operating system through the dual-core communication service.
  • the first operating system determines that the second operating system has completed the switching preparation, and sends the second operating system to the interface service through the switching service.
  • the shared display buffer area message is started, and the interface service writes the display data of the display interface into the shared display buffer area of the second operating system.
  • the first operating system writes display data to the shared display buffer area only after receiving the second message indicating that the second operating system has enabled the shared display buffer area, which can ensure that the second operating system can normally and accurately access the shared display buffer area.
  • the display data is read in the buffer area and the screen is controlled to be displayed, which further ensures the fluency of the screen display.
  • Step 510 the second operating system acquires display data from the shared display buffer, and controls the screen to display the display interface according to the display data.
  • step 510 reference may be made to the relevant description of step 330 in the foregoing embodiment, and details are not described herein again.
  • the screen may be controlled to display an initial transition screen according to the stored interface resources.
  • the stored interface resources may be a system switching process.
  • the display data written by the first operating system can be obtained from the shared display buffer area, and the screen display interface can be controlled according to the display data.
  • the first duration can be set according to actual needs, such as 30 milliseconds or 20 milliseconds, thereby reducing the time for the second operating system to wait for the first operating system to render and write the display data of the first frame of the display interface, and to better realize the picture Continuous and senseless switching.
  • the second operating system only stores the interface resources of the initial transition screen, and does not occupy too much storage space of the second operating system, thereby ensuring the system performance of the second operating system.
  • Step 512 when the first display module is loaded, the first operating system sends a stop sharing display buffer message to the interface service through the switching service, and the stop sharing display buffer message is used to instruct the interface service to stop displaying the display interface to be rendered.
  • the data is written into the shared display buffer area, and the rendered display interface is displayed on the screen controlled by the first display module.
  • the first operating system may stop writing the display data of the rendered display interface into the shared display buffer area.
  • the switching service in the first operating system may send a stop sharing display buffer message to the interface service.
  • the interface service can stop writing the display data of the rendered display interface into the shared display buffer based on the stop sharing display buffer message, and restore the normal display process.
  • the interface service can The rendered display interface is displayed on the screen controlled by the first display module.
  • the switching service of the first operating system can also send a first message to the second operating system through the dual-core communication service, indicating that the first display module has been loaded, and the second operating system can stop the display from the shared display according to the first message.
  • the display data is obtained from the buffer area, and it enters the sleep state.
  • the interface display during the system switching process is controlled by the mutual cooperation of multiple services in the first operating system and the second operating system, so that when the system is switched, the second operating system can control the first operating system in advance
  • the display interface rendered by the operating system is displayed, and the display interface rendered by the first operating system can be displayed without waiting for the first display module of the first operating system to be loaded, which can greatly improve the screen freeze or freeze when switching the operating system. Display discontinuous and other situations, realize continuous and smooth non-inductive switching of interface display.
  • another interface display method is provided, and the method can be applied to the above-mentioned terminal device, and the method can include the following steps:
  • Step 602 when the second operating system detects an application startup operation for the target application, in response to the application startup operation, sends a system switching request to the first operating system, where the system switching request includes the application identifier of the target application.
  • the interface of the second operating system may display application icons of one or more target applications, and the target applications may refer to applications that need to be run by the first operating system, for example, the first operating system.
  • the target application may be an application requiring complex functions, such as a game application or a video application; the target application may also be an application installed in the first operating system.
  • the user can trigger the startup of the target application in the interface of the second operating system, and when the second operating system detects an application startup operation for the target application, it can generate a system switching request according to the application identifier of the target application, and send it to the first operation system.
  • the system sends the system switching request.
  • the system switching request may be used to request the first operating system to start the target application, and the application identifier may include but not limited to information such as the application number, the package name of the application, and the version number of the application.
  • Step 604 the first operating system starts and loads the target application according to the application identifier in the system switching request, and synchronously loads the first display module in the first operating system.
  • the first operating system After the first operating system receives the system switching request, it can parse the system switching request to obtain the application identifier of the target application, start and load the target application according to the application identifier, and simultaneously load the first display in the first operating system. module.
  • the system service can create an active process, start and load the target application in the active process, and simultaneously load the first display module through the interface service.
  • Step 606 During the process of starting and loading the target application by the first operating system and synchronously loading the first display module, the first operating system renders the display interface corresponding to the target application, and writes the display data of the display interface into Shared display buffer.
  • the display interface rendered by the first operating system may be a display interface corresponding to the target application.
  • the display interface may be a startup interface, a main interface, etc. of the target application. design.
  • the first operating system may render the display interface corresponding to the launched target application through a rendering engine, etc., to obtain display data of the display interface corresponding to the target application.
  • the interface service may send the rendered display data to the shared display buffer in the second operating system.
  • Step 608 the second operating system acquires display data from the shared display buffer area, and controls the screen to display a display interface corresponding to the target application according to the display data.
  • the second operating system can obtain the display data from the shared display buffer area, send the display data to the screen for display through the second display module, and control the screen to display the display interface corresponding to the target application, without waiting for the first operating system to start
  • the display interface can be displayed only after the target application is loaded and the first display module is loaded, so as to realize continuous non-sensing system switching of the screen.
  • different applications are started, and the displayed display interface is also different, which can improve the richness of the interface and improve the visual effect of the interface display.
  • FIG. 7 is a schematic diagram of display interfaces corresponding to different applications in one embodiment.
  • the second operating system when the user triggers the launch of the calling application that needs to be run on the first operating system, the second operating system can control the screen display interface 702 according to the display data obtained from the shared display buffer;
  • the second operating system can control the screen display interface 704 according to the display data obtained from the shared display buffer;
  • the second operating system can control the screen display interface 706 according to the display data obtained from the shared display buffer area, and different interfaces can be displayed depending on the activated application.
  • the first operating system monitors that the target application is started and loaded, and the first display module is loaded, the first operating system can stop writing the display data of the rendered display interface into the shared display buffer area, and pass the first display module The control screen displays the interface of the target application.
  • the second operating system can stop acquiring display data from the shared display buffer area, and enter a dormant state to complete the system switching, and the user can use the target application normally.
  • the display interface rendered by the first operating system may also be a transitional display interface with a fixed design.
  • the transitional display interface may be the same, or the user may select a favorite image as the transition.
  • the display interface is displayed every time the operating system is switched.
  • the first operating system may render the display interface corresponding to the target application according to the activated target application, and the second operating system first displays the display interface in the process of not completing the start and loading of the target application , reducing the visual waiting time of users, preventing the misperception that the system is stuck for users, and realizing continuous, smooth and non-sensing switching of the interface display.
  • different applications are started, and the displayed display interface is also different, which can improve the richness of the interface and improve the visual effect of the interface display.
  • FIG. 8A is a timing diagram of switching from the second operating system to the first operating system, and the second operating system uses the shared display buffer in one embodiment
  • FIG. 8B is a switching from the second operating system to the first operating system in one embodiment.
  • the first operating system uses the timing diagram of the shared display buffer area.
  • the sequence steps for the second operating system 810 to use the shared display buffer area may include:
  • the user triggers to start the target application of the first operating system 820 on the second operating system 810 .
  • the second operating system 810 detects the trigger operation and sends a message requesting to start the target application of the first operating system 820 to the switching service 812 .
  • the switching service 812 of the second operating system 810 initiates a system switching process, and sends a message requesting to start the target application (that is, the above-mentioned system switching request) to the first operating system through the dual-core communication service 816 in the second operating system 810; After receiving the request message, an operating system 820 replies with an acknowledgment message (ack message), and wakes up related system services, starts and loads the target application, and loads the first display module.
  • ack message acknowledgment message
  • the switching service 812 of the second operating system 810 sends a message to the display driver 814 to start using the shared display buffer for screen refresh, and after the switching service 812 returns a confirmation message, it sends the switching service 816 to the first operating system through the dual-core communication service 816.
  • a preparation completion message (that is, the above-mentioned second message); after receiving the switch preparation completion message, the first operating system 820 replies with a confirmation message, and notifies the interface service to send the rendered display data to the share of the second operating system 810 Show buffer area.
  • the first operating system 820 sends display data to the second operating system 810, and the second operating system 810 receives the display data sent by the first operating system 820 through the dual-core communication service 816, and writes the display data into the second operating system 810.
  • the display driver 814 of the second operating system 810 no longer uses the display data of the system interface, but obtains the written display data from the shared display buffer area, and controls the screen to continuously refresh the display.
  • the first operating system 820 sends a message that the target application is started and loaded (ie, the above-mentioned first message).
  • the switching service 812 receives a message sent by the first operating system 820 that the target application has been started and loaded through the dual-core communication service 816, and then returns a confirmation message to the first operating system 820.
  • the switching service 812 sends a message to the display driver 814 to stop using the shared display buffer to refresh the screen, and the display driver 814 stops acquiring display data from the shared display buffer.
  • the first operating system 820 takes over control of the screen, notifies the interface service to stop sending display data to the shared display buffer area of the second operating system 810, and refreshes the display normally.
  • the sequence steps for the first operating system 820 to use the shared display buffer area may include:
  • the switching service 828 in the first operating system 820 receives the message sent by the second operating system 810 for requesting to start the target application through the dual-core communication service 822, and returns a confirmation message to the second operating system 810 through the dual-core communication service 822.
  • the switching service 828 in the operating system 820 can create a WakeLock to wake up the relevant system service 826 in the system according to the message requesting to start the target application.
  • the system service 826 can send a loading command such as sf.setDisplayPowerMode to the interface service 824. After receiving the loading command, the interface service 824 immediately returns a preparation command to the system service, and continues to load the first display module asynchronously.
  • a loading command such as sf.setDisplayPowerMode
  • the switching service 828 starts to start the target application, and the system service 826 normally requests the display buffer (acquireBuffer) and the message display buffer (releaseBuffer) to the interface service 824, so as to render the display interface and obtain the display data, but it is not actually correct.
  • the display interface is displayed.
  • the second operating system 810 sends a switching preparation complete message to the first operating system 820.
  • the switching service 828 of the first operating system 820 sends the information to the second operation through the dual-core communication service 822.
  • System 810 replies with a confirmation message.
  • the switching service 828 may send a message to enable the shared display buffer to the interface service 824, and the interface service 824 writes the rendered display data to the shared display buffer of the second operating system through the dual-core communication service 822.
  • the second operating system 810 acquires display data from the shared display buffer area, and continuously controls the screen to refresh and display.
  • the switching service 828 monitors the completion of the target application startup (Activity Ready), since the first display module and the target application are in a synchronous timing sequence, and it is true that the first display module is loaded, the user can send a message to the interface service 824 to stop the shared display Buffer message, the interface service 824 stops sending display data according to the stop sharing display buffer message.
  • the switching service 828 sends a message that the target application has been started and loaded to the second operating system 810 through the dual-core communication service 822. After receiving the message that the target application has been started and loaded, the second operating system 810 returns a confirmation message, and Stop getting display data from the shared display buffer and stop refreshing the screen.
  • the first operating system 820 resumes normal screen refresh display, the switching service 828 sends a normal refresh message to the interface service 824, and completely enters the interface of the target application started in the first operating system 820.
  • the first operating system when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer Then, the second operating system that is cut out obtains display data from the shared display buffer area and controls the screen display. It does not need to wait for the first display module of the first operating system to be loaded before the display interface rendered by the first operating system can be displayed. It can greatly improve the situation that the screen is stuck or the display is discontinuous when switching the operating system, and realize the continuous, smooth and non-sensing switching of the interface display.
  • the step of rendering the display interface by the first operating system and writing the display data of the display interface into the shared display buffer area may include: the first operating system rendering the display interface according to the designed dynamic display style, The display data of the multi-frame display interface is obtained, and the display data of the multi-frame display interface is written into the shared display buffer area.
  • the display interface displayed during the system switching process may be a display interface with animation effects, and the first operating system may render the display interface according to the designed dynamic display style to obtain the display data of the multi-frame display interface.
  • the display style may be used to represent the animation display style of the display interface.
  • the dynamic display style may include a fade-in and fade-out style, a jitter track style, a gradual enlargement style, a gradual shrinkage style, and the like.
  • the shared display buffer may include multiple buffer sub-blocks.
  • the first operating system writes the display data of the multi-frame display interface into the shared display buffer area, which may include: the first operating system sequentially writes the display data of each frame of the display interface into the shared display according to the display timing of each frame of the display interface In the cache sub-blocks of the cache area, each cache sub-block corresponds to a frame of display data of the display interface.
  • the dynamic display style can be set with the display style of each frame of the display interface.
  • the display style can include but is not limited to the display content, the interface size, the position of the interface on the screen, etc.
  • Each frame of the display interface can correspond to different display timings.
  • the display interface is displayed frame by frame according to the display sequence, and an animation effect display interface can be formed.
  • the shared display buffer area may include multiple cache sub-blocks, and each cache sub-block may be used to store the display data of a frame of the display interface.
  • the display data of the display interface is written into each cache sub-block of the shared display cache area of the second operating system.
  • the second operating system can acquire the display data of each frame of the display interface one by one from the shared display buffer area, and control the screen to display the display interface with the dynamic display style according to the acquired display data of each frame of the display interface. Further, the second operating system can obtain the display data of each frame of the display interface one by one from each cache sub-block in the shared display buffer area and send it to the screen, thereby controlling the screen to continuously refresh and display each frame of the display interface to form an animation. effect, which enriches the display style of the interface.
  • FIG. 9 is a schematic diagram of a second operating system controlling a screen to display a dynamic display interface in one embodiment.
  • the second operating system can read the first frame display data from the first buffer sub-block of the shared display buffer area, and control the screen to display the first frame display interface 902 according to the first frame display data,
  • the second frame display data can be read from the second buffer sub-block of the shared display buffer, and the screen can be controlled to display the second frame display interface 904 according to the first frame display data.
  • the third frame display data is read from the cache sub-block, and the screen is controlled to display the third frame display interface 906 according to the third frame display data. From the first frame display interface 902 to the third frame display interface 906, a display effect of dynamic and gradual enlargement can be formed.
  • the first operating system by establishing a shared display buffer area between the first operating system and the second operating system, when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer It is not necessary to preset the display data of the dynamic transition display interface in the second operating system, which can reduce the consumption of storage space, and facilitate each application in the first operating system to update the display interface according to the needs, which improves the terminal performance. overall performance of the device.
  • the third The first operating system and the second operating system can also share a set of display modules, and use the same display driver and adaptation interface, services, etc., when the operating system is switched, since the shared display module is always in use, it does not need to be reloaded , therefore, the waiting time for loading can be directly eliminated, so as to realize continuous, smooth and non-sensing switching of interface display.
  • an interface display apparatus 1000 is provided, which can be applied to the above-mentioned terminal equipment.
  • the interface display device 1000 may include: a loading module 1010 , a rendering module 1020 and a display module 1030 .
  • the loading module 1010 is configured to load the first display module in the first operating system through the first operating system when the first operating system in the terminal device receives the system switching request sent by the second operating system, wherein the second operation The system is the operating system currently running in the terminal device.
  • the rendering module 1020 is configured to render the display interface through the first operating system during the process of loading the first display module by the first operating system, and write the display data of the display interface into the shared display buffer area, where the shared display buffer area is A display buffer area shared between the first operating system and the second operating system.
  • the display module 1030 is configured to obtain display data from the shared display buffer area through the second operating system, and control the screen to display the display interface according to the display data.
  • the above-mentioned interface display apparatus 1000 may further include a stop module.
  • the stopping module is configured to stop the writing of the display data of the rendered display interface into the shared display buffer area by the first operating system when the first display module in the first operating system is loaded.
  • the display module 1030 is further configured to control the screen by the first operating system to display the rendered display interface through the first display module.
  • the above interface display apparatus 1000 may further include a communication module.
  • the communication module is configured to send the first message from the first operating system to the second operating system when the first display module in the first operating system is loaded.
  • the stop module is further configured to stop the acquisition of display data from the shared display buffer area by the second operating system according to the first message, and enter a sleep state.
  • the first operating system when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer Then, the second operating system that is cut out obtains display data from the shared display buffer area and controls the screen display. It does not need to wait for the first display module of the first operating system to be loaded before the display interface rendered by the first operating system can be displayed. It can greatly improve the situation that the screen is stuck or the display is discontinuous when switching the operating system, and realize the continuous, smooth and non-sensing switching of the interface display.
  • the rendering module 1020 is further configured to send a message of starting the shared display buffer area to the interface service by the first operating system through the switching service, and the message of starting the shared display buffer area is used to indicate the display of the display interface to be rendered by the interface service Data is written to the shared display buffer.
  • the rendering module 1020 is further configured to, when the first operating system receives the second message sent by the second operating system, write the display data of the display interface into the shared display buffer according to the second message, and the second The message is used to indicate that the second operating system has enabled the shared display buffer area.
  • the stop module is further configured to send a stop sharing display buffer message to the interface service through the switching service in the first operating system, and the stop sharing display buffer message is used to instruct the interface service to stop the rendering of the display interface to be rendered. Display data is written to the shared display buffer.
  • the display module 1030 is further configured to control the screen to display the rendered display interface by the interface service through the first display module.
  • the loading module 1010 is further configured to send the loading instruction to the interface service by the first operating system through the system service, and after receiving the loading instruction, the interface service immediately returns the preparation instruction to the system service, and according to the loading instruction
  • the first display module is loaded, and the preparation instruction is used to instruct the system service to render the display interface.
  • the interface display during the system switching process is controlled by the mutual cooperation of multiple services in the first operating system and the second operating system, so that when the system is switched, the second operating system can control the first operating system in advance
  • the display interface rendered by the operating system is displayed, and the display interface rendered by the first operating system can be displayed without waiting for the first display module of the first operating system to be loaded, which can greatly improve the screen freeze or freeze when switching the operating system. Display discontinuous and other situations, realize continuous and smooth non-inductive switching of interface display.
  • the above-mentioned interface display apparatus 1000 further includes an operation response module in addition to a loading module 1010, a rendering module 1020, a display module 1030, a stop module and a communication module.
  • the operation response module is configured to, when the second operating system detects an application startup operation for the target application, respond to the application startup operation through the second operating system, and send a system switching request to the first operating system, where the system switching request includes the application of the target application logo.
  • the loading module 1010 is further configured to start and load the target application by the first operating system according to the application identifier in the system switching request, and synchronously load the first display module in the first operating system.
  • the rendering module 1020 is further configured to render the display interface corresponding to the target application through the first operating system during the process of starting and loading the target application and synchronously loading the first display module by the first operating system .
  • the display module 1030 is further configured to, after the second operating system sends a system switching request to the first operating system, control the screen to display the initial transition picture according to the stored interface resources, and after waiting for the first time period, display the initial transition picture through the control screen.
  • the second operating system acquires display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
  • the first operating system may render the display interface corresponding to the target application according to the activated target application, and the second operating system first displays the display interface in the process of not completing the start and loading of the target application , reducing the visual waiting time of users, preventing the misperception that the system is stuck for users, and realizing continuous, smooth and non-sensing switching of the interface display.
  • different applications are started, and the displayed display interface is also different, which can improve the richness of the interface and improve the visual effect of the interface display.
  • the rendering module 1020 is further configured to render the display interface by the first operating system according to the designed dynamic display style, obtain display data of the multi-frame display interface, and write the display data of the multi-frame display interface into Shared display buffer.
  • the shared display buffer includes multiple buffer sub-blocks.
  • the rendering module 1020 is further configured to sequentially write the display data of each frame of the display interface into the cache sub-blocks of the shared display buffer area by the first operating system according to the display timing of each frame of the display interface, and each cache sub-block corresponds to A frame of display data of the display interface.
  • the display module 1030 is further configured to obtain the display data of each frame of the display interface from the shared display buffer one by one by the second operating system, and control the screen to display a display with a dynamic display style according to the obtained display data of each frame of the display interface interface.
  • the first operating system by establishing a shared display buffer area between the first operating system and the second operating system, when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer It is not necessary to preset the display data of the dynamic transition display interface in the second operating system, which can reduce the consumption of storage space, and facilitate each application in the first operating system to update the display interface according to the needs, which improves the terminal performance. overall performance of the device.
  • FIG. 11 is a structural block diagram of a terminal device in an embodiment.
  • the terminal device 1100 may include one or more of the following components: a processor 1110, a memory 1120 coupled with the processor 1110, wherein the memory 1120 may store one or more computer programs, one or more computer programs
  • the methods as described in the above embodiments may be configured to be executed by one or more processors 1110 .
  • the processor 1110 may include one or more processing cores.
  • the processor 1110 uses various interfaces and lines to connect various parts of the entire terminal device 1100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1120, and calling the data stored in the memory 1120.
  • the processor 1110 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 1110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used for rendering and drawing of the display content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1110, and is implemented by a communication chip alone.
  • the memory 1120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Memory 1120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing the operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like.
  • the storage data area may also store data and the like created by the terminal device 1100 in use.
  • the terminal device 1100 may include more or less structural elements than those in the above structural block diagram, for example, including a power module, physical buttons, WiFi (Wireless Fidelity, wireless fidelity) module, speaker, Bluetooth module, sensors, etc. , which is not limited here.
  • a power module for example, including a power module, physical buttons, WiFi (Wireless Fidelity, wireless fidelity) module, speaker, Bluetooth module, sensors, etc. , which is not limited here.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the method described in the foregoing embodiments is implemented.
  • the embodiments of the present application disclose a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the foregoing embodiments.
  • the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, and the like.
  • Non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM can be in various forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate SDRAM) Data Rate SDRAM, DDR SDRAM), Enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), Synchronous Link DRAM (Synchlink DRAM, SLDRAM), Memory Bus Direct RAM (Rambus DRAM, RDRAM) and Direct Memory Bus Dynamic RAM (Direct Rambus DRAM) , DRDRAM).
  • static RAM Static RAM, SRAM
  • dynamic RAM Dynamic Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM synchronous DRAM
  • double data rate SDRAM Double data rate SDRAM
  • Data Rate SDRAM Data Rate SDRAM
  • DDR SDRAM Data Rate SDRAM
  • Enhanced SDRAM Enhanced Synchronous DRAM, ESDRAM
  • Synchronous Link DRAM Synchronous Link DRAM
  • DRDRAM Direct Memory Bus Dynamic RAM
  • the units described above as separate components may or may not be physically separated, and components displayed as units may or may not be object units, and may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the above-mentioned integrated units if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory.
  • the technical solution of the present application or the part that contributes to the prior art, or the whole or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to cause a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device) to execute some or all of the steps of the above methods in the various embodiments of the present application.
  • a computer device which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device

Abstract

Disclosed in the embodiments of the present application are an interface display method and apparatus, and a terminal device and a computer-readable storage medium, wherein the method is applied to the terminal device. The method comprises: when a first operating system in a terminal device receives a system switching request sent by a second operating system, the first operating system loading a first display module in the first operating system according to the system switching request; during the process of the first operating system loading the first display module, the first operating system rendering a display interface, and writing display data of the display interface into a shared display cache area; and the second operating system acquiring the display data from the shared display cache area, and controlling, according to the display data, the screen to display the display interface.

Description

界面显示方法、装置、终端设备及计算机可读存储介质Interface display method, apparatus, terminal device, and computer-readable storage medium
本申请要求于2021年03月12日提交、申请号为202110267350.4、发明名称为“界面显示方法、装置、终端设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 12, 2021, with the application number of 202110267350.4 and the invention titled "Interface Display Method, Apparatus, Terminal Equipment and Computer-readable Storage Medium", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及计算机技术领域,具体涉及一种界面显示方法、装置、终端设备及计算机可读存储介质。The present application relates to the field of computer technologies, and in particular, to an interface display method, apparatus, terminal device, and computer-readable storage medium.
背景技术Background technique
为了满足更多用户对于终端设备的不同需求,目前市面上已出现了很多支持多个操作系统的终端设备,终端设备可安装有多个操作系统,在用户使用的功能较少的时候,终端设备可选择运行功耗较低的操作系统,并在用户有需求时运行功能丰富但功耗较高的操作系统,提高终端设备的续航能力。但目前的终端设备在进行操作系统切换时,由于切换过程的时间较长,导致终端设备的画面存在卡顿及显示不连续等情况。In order to meet the different needs of more users for terminal devices, many terminal devices supporting multiple operating systems have appeared on the market. Terminal devices can be installed with multiple operating systems. When users use fewer functions, terminal devices You can choose to run an operating system with low power consumption, and run an operating system with rich functions but high power consumption when the user needs it, so as to improve the battery life of the terminal device. However, when the current terminal device switches the operating system, the switching process takes a long time, which causes the screen of the terminal device to freeze and display discontinuously.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种界面显示方法、装置、终端设备及计算机可读存储介质,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况。The embodiments of the present application disclose an interface display method, device, terminal device, and computer-readable storage medium, which can greatly improve the situation of screen freeze or display discontinuity when switching operating systems.
本申请实施例公开了一种界面显示方法,应用于终端设备,所述方法包括:The embodiment of the present application discloses an interface display method, which is applied to a terminal device, and the method includes:
当所述终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,所述第一操作系统根据所述系统切换请求加载所述第一操作系统中的第一显示模块,其中,所述第二操作系统为所述终端设备中当前运行的操作系统;When the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system loads the first display module in the first operating system according to the system switching request, Wherein, the second operating system is the operating system currently running in the terminal device;
在所述第一操作系统加载所述第一显示模块的过程中,所述第一操作系统对显示界面进行渲染,并将所述显示界面的显示数据写入共享显示缓存区,所述共享显示缓存区为所述第一操作系统与所述第二操作系统之间共享的显示缓存区;During the process of loading the first display module by the first operating system, the first operating system renders the display interface, and writes the display data of the display interface into the shared display buffer area, and the shared display The buffer area is a display buffer area shared between the first operating system and the second operating system;
所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面。The second operating system acquires the display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
本申请实施例公开了一种界面显示装置,应用于终端设备,所述装置包括:The embodiment of the present application discloses an interface display device, which is applied to a terminal device, and the device includes:
加载模块,用于当所述终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,通过所述第一操作系统加载所述第一操作系统中的第一显示模块,其中,所述第二操作系统为所述终端设备中当前运行的操作系统;a loading module, configured to load the first display module in the first operating system through the first operating system when the first operating system in the terminal device receives a system switching request sent by the second operating system, Wherein, the second operating system is the operating system currently running in the terminal device;
渲染模块,用于在所述第一操作系统加载所述第一显示模块的过程中,通过所述第一操作系统对显示界面进行渲染,并将所述显示界面的显示数据写入共享显示缓存区,所述共享显示缓存区为所述第一操作系统与所述第二操作系统之间共享的显示缓存区;A rendering module, configured to render a display interface through the first operating system during the process of loading the first display module by the first operating system, and write the display data of the display interface into a shared display cache area, the shared display buffer area is a display buffer area shared between the first operating system and the second operating system;
显示模块,用于通过所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面。The display module is configured to obtain the display data from the shared display buffer area through the second operating system, and control the screen to display the display interface according to the display data.
本申请实施例公开了一种终端设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上所述的方法。An embodiment of the present application discloses a terminal device, including a memory and a processor, where a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the above method.
本申请实施例公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法。The embodiment of the present application discloses a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method is implemented.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and benefits of the present application will emerge from the description, drawings, and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为一个实施例中界面显示方法的应用场景图;Fig. 1 is the application scene diagram of the interface display method in one embodiment;
图2为一个实施例中终端设备的系统架构图;2 is a system architecture diagram of a terminal device in one embodiment;
图3为一个实施例中界面显示方法的流程图;3 is a flowchart of an interface display method in one embodiment;
图4为一个实施例中终端设备的屏幕显示示意图;4 is a schematic diagram of a screen display of a terminal device in one embodiment;
图5为另一个实施例中界面显示方法的流程图;5 is a flowchart of an interface display method in another embodiment;
图6为另一个实施例中界面显示方法的流程图;6 is a flowchart of an interface display method in another embodiment;
图7为一个实施例中不同应用对应的显示界面的示意图;7 is a schematic diagram of display interfaces corresponding to different applications in one embodiment;
图8A为一个实施例中从第二操作系统切换至第一操作系统,第二操作系统使用共享显示缓存区的时序图;8A is a timing diagram of switching from a second operating system to a first operating system, and the second operating system uses a shared display buffer in one embodiment;
图8B为一个实施例中从第二操作系统切换至第一操作系统,第一操作系统使用共享显示缓存区的时序图;8B is a timing diagram of switching from a second operating system to a first operating system, and the first operating system using a shared display buffer in one embodiment;
图9为一个实施例中第二操作系统控制屏幕显示动态的显示界面的示意图;9 is a schematic diagram of a second operating system control screen displaying a dynamic display interface in one embodiment;
图10为一个实施例中界面显示装置的框图;10 is a block diagram of an interface display device in one embodiment;
图11为一个实施例中终端设备的结构框图。FIG. 11 is a structural block diagram of a terminal device in an embodiment.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" in the embodiments of the present application and the accompanying drawings and any modifications thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一操作系统称为第二操作系统,且类似地,可将第二操作系统称为第一操作系统。第一操作系统和第二操作系统两者都是操作系统,但其不是同一个的操作系统。It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first operating system could be referred to as a second operating system, and similarly, a second operating system could be referred to as a first operating system, without departing from the scope of this application. Both the first operating system and the second operating system are operating systems, but they are not the same operating system.
图1为一个实施例中界面显示方法的应用场景图。如图1所示,本申请实施例中的界面显示方法可应用于支持多操作系统的终端设备,该终端设备可包括但不限于智能手机10、智能可穿戴设备20、平板电脑、笔记本电脑、车载终端、PC(Personal Computer,个人计算机)等。终端设备中可安装有至少两个操作系统,例如,终端设备可同时安装有嵌入式操作系统(如RTOS(Real Time Operating System,实时操作系统)等)及智能操作系统(如IOS系统、Android(安卓)系统等),也可同时安装有多个智能操作系统或是多个嵌入式系统等,终端设备上安装的具体操作系统在本申请实施例中不作限制。FIG. 1 is an application scenario diagram of an interface display method in an embodiment. As shown in FIG. 1 , the interface display method in this embodiment of the present application can be applied to a terminal device supporting multiple operating systems, and the terminal device may include, but is not limited to, a smartphone 10 , a smart wearable device 20 , a tablet computer, a Vehicle terminal, PC (Personal Computer, personal computer), etc. At least two operating systems can be installed in the terminal device. For example, the terminal device can be installed with an embedded operating system (such as RTOS (Real Time Operating System, real-time operating system), etc.) and an intelligent operating system (such as IOS system, Android ( Android) system, etc.), multiple intelligent operating systems or multiple embedded systems, etc. may also be installed at the same time, and the specific operating system installed on the terminal device is not limited in the embodiments of the present application.
在一些实施例中,终端设备中可包括有多个处理器,或是可包括一个多核处理器,例如,可包括双核处理器、四核处理器等,从而可通过不同的处理器,或是通过同一个处理器中的不同内核运行不同的操作系统。In some embodiments, the terminal device may include multiple processors, or may include a multi-core processor, for example, may include a dual-core processor, a quad-core processor, etc., so that different processors may be used, or Running different operating systems with different cores in the same processor.
在相关的技术中,终端在不同操作系统之间进行切换的切换过程通常包括以下几个阶段:唤醒待切入的操作系统的唤醒阶段、待切入的操作系统加载显示模块的加载阶段,若是需要启动应用,还可包括待切入的操作系统启动应用的启动阶段等,整个切换过程的耗时较长。而待切入的操作系统的界面需要在系统切换完成后,才能够正常显示,从而导致在切换过程中终端设备的画面会出现卡顿及显示不连续等情况。In the related art, the switching process of the terminal switching between different operating systems usually includes the following stages: a wake-up stage for waking up the operating system to be switched in, a loading stage for loading the display module of the operating system to be switched in, if it needs to be started The application may also include the startup phase of the operating system to be switched to start the application, etc., and the entire switching process takes a long time. However, the interface of the operating system to be switched can be displayed normally only after the system switching is completed, which causes the screen of the terminal device to freeze and display discontinuity during the switching process.
本申请实施例公开了一种界面显示方法、装置、终端设备及计算机可读存储介质,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并将显示数据写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。The embodiments of the present application disclose an interface display method, device, terminal device, and computer-readable storage medium. By establishing a shared display buffer area between a first operating system and a second operating system, when performing system switching, the The first operating system to be switched in renders the display interface and writes the display data into the shared display buffer area, and then the second operating system to be switched out obtains the display data from the shared display buffer area and controls the screen display, without waiting for the first operation The display interface rendered by the first operating system can only be displayed after the first display module of the system is loaded, which can greatly improve the situation of screen freeze or display discontinuity when switching operating systems, and realize continuous and smooth interface display without feeling. switch.
图2为一个实施例中终端设备的系统架构图。如图2所示,终端设备中可安装有A操作系统及B操作系统,A操作系统中可包括应用层、框架层及内核层等。其中,该应用层可安装有一个或多个应用程序。框架层中可为A操作系统的运行及应用层中各应用程序的运行提供相应的接口或服务等,可选地,该框架层可包括系统服务、双核通信服务、切换服务、界面服务等。系统服务可提供应用启动、加载及运行等应用各式的功能接口,A操作系统可通过双核通信服务与B操作系统进行通信,可通过切换服务实现操作系统切换过程中的消息控制、功能控制等,界面服务则可提供显示数据控制等的接口。内核层可包括A操作系统的内核及各种硬件驱动,例如显示驱动、摄像头驱动、传感器驱动等,A操作系统的内核可用于提供A操作系统的最基本功能。FIG. 2 is a system architecture diagram of a terminal device in an embodiment. As shown in FIG. 2 , an operating system A and an operating system B may be installed in the terminal device, and the operating system A may include an application layer, a framework layer, a kernel layer, and the like. Wherein, the application layer may be installed with one or more application programs. The framework layer can provide corresponding interfaces or services for the operation of the A operating system and the operation of each application in the application layer. Optionally, the framework layer can include system services, dual-core communication services, switching services, and interface services. System services can provide various functional interfaces for applications such as application startup, loading and running. A operating system can communicate with B operating system through dual-core communication services, and can realize message control and function control in the process of operating system switching through switching services. , the interface service can provide interfaces such as display data control. The kernel layer may include the kernel of the A operating system and various hardware drivers, such as display drivers, camera drivers, sensor drivers, etc. The kernel of the A operating system can be used to provide the most basic functions of the A operating system.
B操作系统可与A操作系统类似,B操作系统也可包括有应用层、框架层及内核层等,B操作系统可通过双核通信服务与A操作系统通信,并通过切换服务实现操作系统切换过程中的消息控制、功能控制等。The B operating system can be similar to the A operating system. The B operating system can also include the application layer, the framework layer, and the kernel layer. The B operating system can communicate with the A operating system through the dual-core communication service, and realize the operating system switching process through the switching service. message control, function control, etc.
在本申请实施例中,终端设备可在A操作系统与B操作系统之间建立共享显示缓存区,当任一操作系统接收到另一操作系统发送的系统切换请求时,待切出的操作系统可从共享显示缓存区中获取待切入的操作系统填充的显示数据,并控制屏幕进行显示。In the embodiment of the present application, the terminal device may establish a shared display buffer area between the A operating system and the B operating system. When either operating system receives a system switching request sent by another operating system, the operating system to be switched The display data filled by the operating system to be switched to can be obtained from the shared display buffer area, and the screen can be controlled to display.
以从B操作系统切换至A操作系统为例进行说明,在A操作系统接收到B操作系统发送的系统切换请求时,A操作系统可根据该系统切换请求加载A操作系统中的显示模块,该显示模块可包括显示驱动及框架层中与显示相关的接口服务等,只有在显示模块加载完成的情况下,A操作系统才可通过显示模块控制屏幕进行显示。Taking switching from the B operating system to the A operating system as an example, when the A operating system receives the system switching request sent by the B operating system, the A operating system can load the display module in the A operating system according to the system switching request. The display module may include display drivers and display-related interface services in the framework layer, etc. Only when the display module is loaded can the A operating system control the screen to display through the display module.
在A操作系统加载显示模块的过程中,A操作系统可对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,进一步地,A操作系统可通过双核通信服务将显示界面的显示数据写入B操作系统的共享显示缓存区。B操作系统可从该共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示A操作系统渲染的显示界面。在A操作系统的显示模块未完成加载前,提前由B操作系统控制屏幕显示,不需要等待A操作系统的显示模块加载完成才能显示A操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况。During the process of loading the display module by the A operating system, the A operating system can render the display interface, and write the display data of the display interface into the shared display buffer area. The display data is written to the shared display buffer of the B operating system. The B operating system can obtain display data from the shared display buffer area, and control the screen to display the display interface rendered by the A operating system according to the display data. Before the display module of the A operating system is loaded, the screen display is controlled by the B operating system in advance. It does not need to wait for the display module of the A operating system to be loaded before the display interface rendered by the A operating system can be displayed, which can greatly improve the performance of the operating system. The screen freezes or the display is discontinuous when switching.
需要说明的是,图2中仅示出了一种实施例中终端设备的系统架构图,终端设备的系统架构也可以是其它架构,在此不作限定。It should be noted that FIG. 2 only shows a system architecture diagram of the terminal device in one embodiment, and the system architecture of the terminal device may also be other architectures, which are not limited herein.
如图3所示,在一个实施例中,提供一种界面显示方法,可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG. 3, in one embodiment, an interface display method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
步骤310,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据系统切换请求加载第一操作系统中的第一显示模块。 Step 310, when the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system loads the first display module in the first operating system according to the system switching request.
第二操作系统可指的是终端设备中当前在前台运行的操作系统,也即待切出的操作系统,其中,在前台运行的操作系统可指的是可通过屏幕显示界面与用户直接进行交互的操作系统,用户通过终端设备的屏幕可直接看到该操作系统显示的界面。第一操作系统可指的是待切入的操作系统。在第二操作系统检测到系统切换操作时,可触发生成系统切换请求,并将系统切换请求发送至第一操作系统。The second operating system may refer to the operating system currently running in the foreground in the terminal device, that is, the operating system to be switched out, wherein the operating system running in the foreground may refer to the one that can directly interact with the user through the screen display interface The user can directly see the interface displayed by the operating system through the screen of the terminal device. The first operating system may refer to an operating system to be switched in. When the second operating system detects the system switching operation, it can trigger the generation of a system switching request, and send the system switching request to the first operating system.
可选地,该系统切换操作可以是由用户主动触发的操作,例如用户主动进行操作系统切换、用户点击启动第一操作系统的应用等;该系统切换操作也可以是由终端设备根据实际运行情况主动触发进行的切换操作,例如,第一操作系统的应用接收到推送消息时,可向第二操作系统发送触发系统切换操作的通知,第二操作系统根据该触发系统切换操作的通知生成系统切换请求。Optionally, the system switching operation may be an operation actively triggered by the user, for example, the user actively switches the operating system, the user clicks to start the application of the first operating system, etc.; the system switching operation may also be performed by the terminal device according to the actual operating conditions. A switching operation that is actively triggered. For example, when an application of the first operating system receives a push message, it can send a notification that triggers the system switching operation to the second operating system, and the second operating system generates a system switching operation according to the notification that triggers the system switching operation. ask.
在一些实施例中,在第二操作系统运行时,第一操作系统可处于休眠状态,从而可降低终端设备的功耗,当第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统可基于该系统切换请求被唤醒,并加载第一操作系统中的第一显示模块,其中,休眠状态可指的是第一操作系统的数据存储在内存中,第一操作系统对应的处理核或处理器部分或全部断电,其它关联的硬件(如硬盘等)也可处于断电状态。该第一显示模块可包括第一操作系统中的显示驱动,以及与屏幕显示相关的接品或服务等,第一操作系统对第一显示模块进行加载可包括第一操作系统对显示驱动、与屏幕显示相关的接品或服务等进行加载,并可对显示总线控制器及屏幕等进行初始化及配置。只有在第一显示模块加载完成后,第一操作系统中渲染的显示界面才能输出到屏幕进行显示。In some embodiments, when the second operating system is running, the first operating system can be in a dormant state, so that the power consumption of the terminal device can be reduced. When the first operating system receives a system switching request sent by the second operating system, The first operating system may be awakened based on the system switching request, and load the first display module in the first operating system, wherein the sleep state may refer to the fact that the data of the first operating system is stored in the memory, and the first operating system corresponds to Some or all of the processing cores or processors are powered off, and other associated hardware (such as hard disks, etc.) may also be powered off. The first display module may include a display driver in the first operating system, as well as products or services related to screen display, etc. The loading of the first display module by the first operating system may include the first operating system loading the display driver, and The screen displays related products or services, etc. to be loaded, and the display bus controller and screen can be initialized and configured. Only after the first display module is loaded, the display interface rendered in the first operating system can be output to the screen for display.
步骤320,在第一操作系统加载第一显示模块的过程中,第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区。Step 320: During the process of loading the first display module by the first operating system, the first operating system renders the display interface, and writes the display data of the display interface into the shared display buffer area.
在相关的技术中,第一操作系统需要等待第一显示模块加载完成后,才对显示界面进行渲染,并通过第一显示模块控制屏幕进行显示,而由于第一显示模块的加载过程耗时较长,因此容易出现画面卡顿及显示不连续等情况,让用户误以为是终端设备发生系统卡顿,影响用户使用终端设备的体验。In the related art, the first operating system needs to wait for the first display module to be loaded before rendering the display interface, and control the screen to display through the first display module, and the loading process of the first display module takes a long time. Therefore, it is easy to cause screen freezes and discontinuous display, which makes users mistakenly believe that the terminal device has system freezes, which affects the user's experience of using the terminal device.
在本申请实施例中,第一操作系统在加载第一显示模块的过程中,可直接对显示界面进行渲染,该显示界面可以是第一操作系统的系统界面,也可以是第一操作系统启动的应用的主界面,或是预先设置的操作系统切换的过渡界面等,但不限于此。第一操作系统对显示界面进行渲染,可得到一帧或多帧显示界面的显示数据,并将该显示数据写入共享显示缓存区。In this embodiment of the present application, during the process of loading the first display module, the first operating system may directly render the display interface, and the display interface may be the system interface of the first operating system, or the first operating system startup The main interface of the application, or a preset transition interface for operating system switching, etc., but not limited to this. The first operating system renders the display interface, obtains display data of one or more frames of the display interface, and writes the display data into the shared display buffer area.
共享显示缓存区可为第一操作系统与第二操作系统之间共享的显示缓存区,针对该共享显示缓存区,第一操作系统及第二操作系统均具备访问权限,第一操作系统及第二操作系统均可以向共享显示缓存区中写入显示数据,也可以从共享显示缓存区中获取显示数据。The shared display buffer area may be a display buffer area shared between the first operating system and the second operating system. For the shared display buffer area, both the first operating system and the second operating system have access rights, and the first operating system and the second operating system have access rights. Both operating systems can write display data into the shared display buffer area, and can also obtain display data from the shared display buffer area.
在一些实施例中,共享显示缓存区可以是终端设备中可由第一操作系统及第二操作系统共同使用的同一块存储区域。共享显示缓存区也可以分别设置与第一操作系统对应的第一存储区域及与第二操作系统对应的第二存储区域,第一存储区域与第二存储区域可以是分别独立的存储区域,第一操作系统可通过系统间的通信方式发送显示数据至第二操作系统对应的第二存储区域,第二操作系统也可通过系统间的通信方式发送显示数据至第一操作系统对应的第一存储区域。该系统间的通信方式可以有多种不同的方式,例如,可使用双核通信服务进行通信,也可通过共享的内存总线等进行通信。In some embodiments, the shared display buffer area may be the same storage area in the terminal device that can be used by the first operating system and the second operating system in common. The shared display buffer area can also be respectively set with a first storage area corresponding to the first operating system and a second storage area corresponding to the second operating system. The first storage area and the second storage area can be separate storage areas, and the An operating system can send display data to the second storage area corresponding to the second operating system through inter-system communication, and the second operating system can also send display data to the first storage area corresponding to the first operating system through inter-system communication area. The communication between the systems can be carried out in many different ways, for example, communication can be carried out using a dual-core communication service, or communication can be carried out through a shared memory bus or the like.
第一操作系统可通过系统间的通信方式,将渲染得到的显示界面的显示数据发送到第二操作系统的共享显示缓存区中,由第二操作系统的共享显示缓存区存储该显示数据。The first operating system can send the display data of the rendered display interface to the shared display buffer area of the second operating system through inter-system communication, and the display data is stored in the shared display buffer area of the second operating system.
步骤330,第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏 幕显示显示界面。 Step 330, the second operating system acquires display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
第二操作系统可从共享显示缓存区中获取第一操作系统写入的显示数据,并通过第二操作系统中的第二显示模块控制屏幕显示相应的显示界面。由于第二操作系统一直处于运行状态,因此第二操作系统中的第二显示模块不需要加载即可将显示数据发送到屏幕进行显示,从而可实现立即显示第一操作系统渲染的显示界面的效果,保证显示画面的连续性。The second operating system can obtain the display data written by the first operating system from the shared display buffer area, and control the screen to display the corresponding display interface through the second display module in the second operating system. Since the second operating system is always running, the second display module in the second operating system can send display data to the screen for display without being loaded, so that the display interface rendered by the first operating system can be displayed immediately. , to ensure the continuity of the display screen.
若第一操作系统持续性地向第二操作系统的共享显示缓存区写入显示数据,第二操作系统可依次从共享显示缓存区中获取显示数据,并控制屏幕持续刷新并显示获取的显示数据对应的显示界面。If the first operating system continuously writes display data to the shared display buffer area of the second operating system, the second operating system can sequentially obtain the display data from the shared display buffer area, and control the screen to continuously refresh and display the acquired display data corresponding display interface.
图4为一个实施例中终端设备的屏幕显示示意图。示例性地,如图4所示,界面402为当前第二操作系统显示的界面,界面404为第一操作系统的系统界面。在第一操作系统接收到第二操作系统发送的系统切换请求后,在加载第一显示模块的过程中,可对界面404进行渲染,并将渲染得到的界面404的显示数据写入第二操作系统的共享显示缓存区。第二操作系统可从共享显示缓存区中获取界面404的显示数据,并根据该显示数据控制屏幕显示界面404。不需要等到第一操作系统加载完成第一显示模块后,终端设备的屏幕才能够显示界面404,而是由第二操作系统提示显示界面404,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。FIG. 4 is a schematic diagram of screen display of a terminal device in one embodiment. Exemplarily, as shown in FIG. 4 , the interface 402 is the interface currently displayed by the second operating system, and the interface 404 is the system interface of the first operating system. After the first operating system receives the system switching request sent by the second operating system, in the process of loading the first display module, the interface 404 can be rendered, and the rendered display data of the interface 404 can be written into the second operation The system's shared display buffer. The second operating system may acquire display data of the interface 404 from the shared display buffer, and control the screen display interface 404 according to the display data. It is not necessary to wait until the first display module is loaded by the first operating system, and the screen of the terminal device can display the interface 404, but the second operating system prompts the display interface 404, which can greatly improve the screen that appears when the operating system is switched. In the case of stuck or discontinuous display, the interface display can be continuously and smoothly switched without feeling.
在一些实施例中,当第一操作系统中的第一显示模块加载完成时,第一操作系统可停止将渲染的显示界面的显示数据写入共享显示缓存区,并通过该第一显示模块控制屏幕对渲染的显示界面进行显示。在第一显示模块加载完成后,终端设备可切换回第一操作系统的正常显示流程,第一操作系统可不再向第二操作系统的共享显示缓存区写入显示数据,而是直接通过第一显示模块将渲染的显示界面的显示数据发送到屏幕,并控制屏幕进行显示。In some embodiments, when the first display module in the first operating system is loaded, the first operating system can stop writing the display data of the rendered display interface into the shared display buffer, and control the display through the first display module. The screen displays the rendered display interface. After the first display module is loaded, the terminal device can switch back to the normal display process of the first operating system, and the first operating system can no longer write display data to the shared display buffer of the second operating system, but directly pass the first operating system The display module sends the display data of the rendered display interface to the screen, and controls the screen to display.
在一些实施例中,当第一操作系统中的第一显示模块加载完成时,第一操作系统可向第二操作系统发送第一消息,该第一消息可用于通知第二操作系统切换完成。第二操作系统可根据该第一消息停止从共享显示缓存区中获取显示数据,并进入休眠状态。第二操作系统在接收到第一操作系统发送的第一消息后,可停止从共享显示缓存区中获取显示数据,并停止控制屏幕进行显示,由第一操作系统接管屏幕的控制权限,并恢复到第一操作系统的正常屏幕显示流程中。In some embodiments, when the first display module in the first operating system is loaded, the first operating system may send a first message to the second operating system, where the first message may be used to notify the second operating system that the switching is completed. The second operating system may stop acquiring display data from the shared display buffer area according to the first message, and enter a sleep state. After receiving the first message sent by the first operating system, the second operating system can stop acquiring display data from the shared display buffer area and stop controlling the screen to display, and the first operating system can take over the control authority of the screen and restore it. into the normal screen display process of the first operating system.
需要说明的是,本申请实施例中仅对从第二操作系统切换到第一操作系统的界面显示进行说明,从第一操作系统切换到第二操作系统的方法流程可与从第二操作系统切换到第一操作系统的方法流程类似,在此不再重复进行赘述。此外,终端设备中还可安装有第三操作系统、第四操作系统,任意两个操作系统之间的切换均可以参照从第二操作系统切换到第一操作系统的方法流程说明,本申请实施例并不对具体的操作系统进行限制。It should be noted that only the interface display of switching from the second operating system to the first operating system is described in the embodiments of the present application, and the method flow of switching from the first operating system to the second operating system may be the same as that of switching from the second operating system to the second operating system. The process of the method for switching to the first operating system is similar, and details are not repeated here. In addition, a third operating system and a fourth operating system can also be installed in the terminal device, and the switching between any two operating systems can refer to the description of the method for switching from the second operating system to the first operating system. This application implements The example does not limit the specific operating system.
在本申请实施例中,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据该系统切换请求加载第一操作系统中的第一显示模块,在第一操作系统加载第一显示模块的过程中,第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In the embodiment of the present application, when the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system loads the first display module in the first operating system according to the system switching request, During the process of loading the first display module by the first operating system, the first operating system renders the display interface and writes the display data of the display interface into the shared display buffer area. A shared display buffer area is established between the two, and when the system is switched, the first operating system to be switched in renders the display interface and writes it into the shared display buffer area, and then the second operating system to be switched out obtains the display from the shared display buffer area. Data and control the screen display, it does not need to wait for the first display module of the first operating system to be loaded before the display interface rendered by the first operating system can be displayed, which can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched. In other cases, the interface display can be continuously and smoothly switched without feeling.
如图5所示,在一个实施例中,提供另一种界面显示方法,可应用于上述的终端设备, 该方法可包括以下步骤:As shown in FIG. 5, in one embodiment, another interface display method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
步骤502,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据系统切换请求唤醒系统服务。 Step 502, when the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system wakes up the system service according to the system switching request.
第一操作系统的框架层中可包括有多个服务,该服务可包括但不限于系统服务、切换服务、双核通信服务、界面服务等,各个服务可为应用层的应用提供各式各样的接口,从而各个应用能够通过调用接口或服务,使用第一操作系统的系统功能或终端设备的硬件。系统服务可提供对于第一操作系统的系统层的控制接口,例如电源管理服务、窗口管理服务等,但不限于此。The framework layer of the first operating system may include multiple services, which may include but are not limited to system services, switching services, dual-core communication services, interface services, etc. interface, so that each application can use the system function of the first operating system or the hardware of the terminal device by calling the interface or service. The system service may provide a control interface to the system layer of the first operating system, such as power management service, window management service, etc., but is not limited thereto.
在终端设备未运行第一操作系统时,第一操作系统可处于休眠状态,当第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统可根据该系统切换请求唤醒系统服务。When the terminal device is not running the first operating system, the first operating system can be in a dormant state, and when the first operating system receives a system switching request sent by the second operating system, the first operating system can wake up the system according to the system switching request Serve.
示例性地,以第一操作系统为Android操作系统为例,在Android操作系统接收到其它操作系统发送物系统切换请求时,可创建wakelock对AMS(Activity Manager Service,活动管理服务)、WMS(Window Manager Service,窗口管理服务)和/或PMW(Power Manage Service,电源管理服务)等系统服务进行唤醒,该wakelock为Android操作系统中的一种锁机制,只要持有该wakelock,Android操作系统就无法进入休眠状态。Exemplarily, taking the Android operating system as the first operating system as an example, when the Android operating system receives a system switching request sent by other operating systems, a wakelock can be created to pair AMS (Activity Manager Service, activity management service), WMS (Window Manager Service, window management service) and/or PMW (Power Manage Service, power management service) and other system services to wake up, the wakelock is a lock mechanism in the Android operating system, as long as the wakelock is held, the Android operating system cannot Enter sleep state.
步骤504,第一操作系统通过系统服务向界面服务发送加载指令。 Step 504, the first operating system sends a loading instruction to the interface service through the system service.
在第一操作系统的系统服务被唤醒后,系统服务可与界面服务进行通信,向界面服务发送加载指令,该界面服务可用于实现对界面的建立、控制及管理等功能,该加载指令可用于指示界面服务对第一显示模块进行加载。After the system service of the first operating system is awakened, the system service can communicate with the interface service, and send a loading instruction to the interface service. The interface service can be used to implement functions such as interface establishment, control and management. The loading instruction can be used The interface service is instructed to load the first display module.
步骤506,在界面服务接收到加载指令后,立即向系统服务返回准备指令,并根据该加载指令对第一显示模块进行加载,该准备指令用于指示系统服务对显示界面进行渲染。 Step 506, after receiving the loading instruction, the interface service immediately returns a preparation instruction to the system service, and loads the first display module according to the loading instruction, and the preparation instruction is used to instruct the system service to render the display interface.
在界面服务接收到加载指令后,由于第一显示模块的加载耗时较长,界面服务可立即向系统服务返回准备指令,该准备指令可用于告知系统服务第一显示模块已“准备就绪”,在界面服务发送准备指令后,可异常继续对第一显示模块进行加载。在系统服务接收到界面服务返回的准备指令后,第一操作系统可正常开始请求对显示界面进行渲染。After the interface service receives the loading command, since the loading of the first display module takes a long time, the interface service can immediately return a preparation command to the system service, and the preparation command can be used to inform the system service that the first display module is "ready", After the interface service sends the preparation instruction, the loading of the first display module can be continued abnormally. After the system service receives the preparation instruction returned by the interface service, the first operating system can normally start to request rendering of the display interface.
示例性地,以第一操作系统为Android操作系统为例,在Android操作系统的AMS、WMS、PMW等系统服务被唤醒后,可通过SurfaceFlinger.setDisplayPowerMode调用SurfaceFlinger,使SurfaceFlinger加载第一显示模块。该SurfaceFlinger即为Android操作系统中的界面服务,可用于控制界面显示。Exemplarily, taking the Android operating system as the first operating system as an example, after the system services such as AMS, WMS, and PMW of the Android operating system are awakened, SurfaceFlinger can be called through SurfaceFlinger.setDisplayPowerMode, so that SurfaceFlinger loads the first display module. The SurfaceFlinger is an interface service in the Android operating system, which can be used to control the interface display.
步骤508,第一操作系统通过切换服务向界面服务发送启动共享显示缓存区消息,该启动共享显示缓存区消息用于指示界面服务将渲染的显示界面的显示数据写入共享显示缓存区。 Step 508 , the first operating system sends a message of starting the shared display buffer to the interface service through the switching service, where the message of starting the shared display buffer is used to instruct the interface service to write the display data of the rendered display interface into the shared display buffer.
第一操作系统中的切换服务可用于对系统之间的切换功能进行控制。在界面服务返回准备指令,且第一操作系统开始对显示界面进行渲染后,切换服务可向界面服务发送启动共享显示缓存区消息,界面服务在接收到该启动共享显示缓存区消息后,可根据该启动共享显示缓存区消息将渲染的显示界面的显示数据写入第二操作系统的共享显示缓存区。进一步地,界面服务可通过双核通信服务发送到第二操作系统,写入第二操作系统中的共享显示缓存区。The handover service in the first operating system may be used to control the handover function between systems. After the interface service returns the preparation instruction and the first operating system starts to render the display interface, the switching service may send a message to start the shared display buffer area to the interface service. After receiving the message to start the shared display buffer area, the interface service can The start shared display buffer message writes the display data of the rendered display interface into the shared display buffer of the second operating system. Further, the interface service can be sent to the second operating system through the dual-core communication service, and written into the shared display buffer area of the second operating system.
在界面服务对渲染得到的显示数据进行控制的同时,界面服务也在进行第一显示模块的加载,界面服务可分别建立两个线程执行界面服务中的不同任务,通过第一线程加载第一显示模块,通过第二线程将显示数据发送到第二操作系统的共享显示缓存区,通过双线程的工作方式既不会互相影响,且能够保证二者同时进行,提高界面服务的工作效率。While the interface service controls the rendered display data, the interface service is also loading the first display module. The interface service can create two threads to perform different tasks in the interface service, and load the first display through the first thread. The module sends the display data to the shared display buffer area of the second operating system through the second thread, and the dual-thread working mode will not affect each other, and can ensure that the two are performed at the same time, thereby improving the work efficiency of the interface service.
在一些实施例中,步骤将显示界面的显示数据写入共享显示缓存区,可包括:当第一操作系统接收到第二操作系统发送的第二消息时,根据第二消息将显示界面的显示数据写入共享显示缓存区,第二消息用于表征第二操作系统已启用共享显示缓存区。In some embodiments, the step of writing the display data of the display interface into the shared display buffer area may include: when the first operating system receives the second message sent by the second operating system, displaying the display interface according to the second message The data is written into the shared display buffer, and the second message is used to indicate that the second operating system has enabled the shared display buffer.
在第二操作系统向第一操作系统发送系统切换请求,并接收到第一操作系统回复的确认消息后,第二操作系统可准备启用共享显示缓存区对屏幕进行刷新。第二操作系统可通过双核通信服务向第一操作系统发送第二消息,第一操作系统在接收到该第二消息后,确定第二操作系统已完成切换准备,并通过切换服务向界面服务发送启动共享显示缓存区消息,由界面服务将显示界面的显示数据写入第二操作系统的共享显示缓存区中。第一操作系统在接收到表征第二操作系统已启用共享显示缓存区的第二消息后,才向共享显示缓存区中写入显示数据,可保证第二操作系统能够正常、准确地从共享显示缓存区中读取显示数据并控制屏幕进行显示,进一步保证了画面显示的流畅性。After the second operating system sends a system switching request to the first operating system and receives a confirmation message replied by the first operating system, the second operating system can prepare to enable the shared display buffer area to refresh the screen. The second operating system can send the second message to the first operating system through the dual-core communication service. After receiving the second message, the first operating system determines that the second operating system has completed the switching preparation, and sends the second operating system to the interface service through the switching service. The shared display buffer area message is started, and the interface service writes the display data of the display interface into the shared display buffer area of the second operating system. The first operating system writes display data to the shared display buffer area only after receiving the second message indicating that the second operating system has enabled the shared display buffer area, which can ensure that the second operating system can normally and accurately access the shared display buffer area. The display data is read in the buffer area and the screen is controlled to be displayed, which further ensures the fluency of the screen display.
步骤510,第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示显示界面。 Step 510, the second operating system acquires display data from the shared display buffer, and controls the screen to display the display interface according to the display data.
步骤510可参照上述实施例中步骤330的相关描述,在此不再赘述。For step 510, reference may be made to the relevant description of step 330 in the foregoing embodiment, and details are not described herein again.
在一些实施例中,在第二操作系统向第一操作系统发送系统切换请求后,可根据存储的界面资源控制屏幕显示初始过渡画面,可选地,该根据存储的界面资源可以是系统切换过程中第一帧显示的显示界面。在第二操作系统在等待第一时长后,可从共享显示缓存区中获取第一操作系统写入的显示数据,并根据该显示数据控制屏幕显示显示界面。该第一时长可根据实际需求进行设置,例如30毫秒、20毫秒,从而可减少第二操作系统等待第一操作系统渲染并写入第一帧显示界面的显示数据的时间,更好地实现画面连续及无感切换。且第二操作系统仅存储初始过渡画面的界面资源,不会过多占用第二操作系统的存储空间,保证了第二操作系统的系统性能。In some embodiments, after the second operating system sends a system switching request to the first operating system, the screen may be controlled to display an initial transition screen according to the stored interface resources. Optionally, the stored interface resources may be a system switching process. The display interface shown in the first frame in . After the second operating system waits for the first time period, the display data written by the first operating system can be obtained from the shared display buffer area, and the screen display interface can be controlled according to the display data. The first duration can be set according to actual needs, such as 30 milliseconds or 20 milliseconds, thereby reducing the time for the second operating system to wait for the first operating system to render and write the display data of the first frame of the display interface, and to better realize the picture Continuous and senseless switching. In addition, the second operating system only stores the interface resources of the initial transition screen, and does not occupy too much storage space of the second operating system, thereby ensuring the system performance of the second operating system.
步骤512,当第一显示模块加载完成时,第一操作系统中通过切换服务向界面服务发送停止共享显示缓存区消息,停止共享显示缓存区消息用于指示界面服务停止将渲染的显示界面的显示数据写入共享显示缓存区,并通过第一显示模块控制屏幕对渲染的显示界面进行显示。 Step 512, when the first display module is loaded, the first operating system sends a stop sharing display buffer message to the interface service through the switching service, and the stop sharing display buffer message is used to instruct the interface service to stop displaying the display interface to be rendered. The data is written into the shared display buffer area, and the rendered display interface is displayed on the screen controlled by the first display module.
当第一操作系统中的第一显示模块加载完成时,第一操作系统可停止将渲染的显示界面的显示数据写入共享显示缓存区。在一些实施例中,第一操作系统中的切换服务在监听到第一显示模块已加载完成后,可向界面服务发送停止共享显示缓存区消息。界面服务在接收到该停止共享显示缓存区消息后,可根该停止共享显示缓存区消息停止将渲染的显示界面的显示数据写入共享显示缓存区,并恢复至正常的显示流程,界面服务可通过第一显示模块控制屏幕对渲染的显示界面进行显示。When the loading of the first display module in the first operating system is completed, the first operating system may stop writing the display data of the rendered display interface into the shared display buffer area. In some embodiments, after monitoring that the first display module has been loaded, the switching service in the first operating system may send a stop sharing display buffer message to the interface service. After receiving the stop sharing display buffer message, the interface service can stop writing the display data of the rendered display interface into the shared display buffer based on the stop sharing display buffer message, and restore the normal display process. The interface service can The rendered display interface is displayed on the screen controlled by the first display module.
可选地,第一操作系统的切换服务还可通过双核通信服务向第二操作系统发送第一消息,表示第一显示模块已加载完成,第二操作系统可根据该第一消息停止从共享显示缓存区中获取显示数据,并进入休眠状态。Optionally, the switching service of the first operating system can also send a first message to the second operating system through the dual-core communication service, indicating that the first display module has been loaded, and the second operating system can stop the display from the shared display according to the first message. The display data is obtained from the buffer area, and it enters the sleep state.
在本申请实施例中,通过第一操作系统及第二操作系统中的多个服务互相配合控制系统切换过程中的界面显示,实现了在进行系统切换时,提前由第二操作系统对第一操作系统渲染的显示界面进行显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In the embodiment of the present application, the interface display during the system switching process is controlled by the mutual cooperation of multiple services in the first operating system and the second operating system, so that when the system is switched, the second operating system can control the first operating system in advance The display interface rendered by the operating system is displayed, and the display interface rendered by the first operating system can be displayed without waiting for the first display module of the first operating system to be loaded, which can greatly improve the screen freeze or freeze when switching the operating system. Display discontinuous and other situations, realize continuous and smooth non-inductive switching of interface display.
如图6所示,在一个实施例中,提供另一种界面显示方法,该方法可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG. 6, in one embodiment, another interface display method is provided, and the method can be applied to the above-mentioned terminal device, and the method can include the following steps:
步骤602,在第二操作系统检测到针对目标应用的应用启动操作时,响应应用启动操 作,向第一操作系统发送系统切换请求,该系统切换请求包括目标应用的应用标识。 Step 602, when the second operating system detects an application startup operation for the target application, in response to the application startup operation, sends a system switching request to the first operating system, where the system switching request includes the application identifier of the target application.
终端设备在运行第二操作系统时,第二操作系统的界面中可显示有一个或多个目标应用的应用图标,该目标应用可指的是需要由第一操作系统运行的应用,例如,第一操作系统为功能丰富但功耗较高的操作系统,则目标应用可以是游戏应用、视频应用等需要复杂功能的应用;目标应用也可以是安装在第一操作系统中的应用。用户可在第二操作系统的界面中触发启动目标应用,在第二操作系统检测到针对该目标应用的应用启动操作时,可根据该目标应用的应用标识生成系统切换请求,并向第一操作系统发送该系统切换请求。该系统切换请求可用于请求第一操作系统启动该目标应用,应用标识可包括但不限于应用编号、应用的程序包包名、应用的版本号等信息。When the terminal device runs the second operating system, the interface of the second operating system may display application icons of one or more target applications, and the target applications may refer to applications that need to be run by the first operating system, for example, the first operating system. If an operating system is an operating system with rich functions but high power consumption, the target application may be an application requiring complex functions, such as a game application or a video application; the target application may also be an application installed in the first operating system. The user can trigger the startup of the target application in the interface of the second operating system, and when the second operating system detects an application startup operation for the target application, it can generate a system switching request according to the application identifier of the target application, and send it to the first operation system. The system sends the system switching request. The system switching request may be used to request the first operating system to start the target application, and the application identifier may include but not limited to information such as the application number, the package name of the application, and the version number of the application.
步骤604,第一操作系统根据系统切换请求中的应用标识启动并加载目标应用,且同步加载第一操作系统中的第一显示模块。 Step 604, the first operating system starts and loads the target application according to the application identifier in the system switching request, and synchronously loads the first display module in the first operating system.
第一操作系统接收到系统切换请求后,可对系统切换请求进行解析,得到目标应用的应用标识,并根据该应用标识启动并加载目标应用,同时可同步加载第一操作系统中的第一显示模块。在一些实施例中,第一操作系统根据系统切换请求唤醒系统服务后,系统服务可创建活动进程,并在该活动进程中启动并加载目标应用,同时可通过界面服务加载第一显示模块。After the first operating system receives the system switching request, it can parse the system switching request to obtain the application identifier of the target application, start and load the target application according to the application identifier, and simultaneously load the first display in the first operating system. module. In some embodiments, after the first operating system wakes up the system service according to the system switching request, the system service can create an active process, start and load the target application in the active process, and simultaneously load the first display module through the interface service.
步骤606,在第一操作系统启动并加载目标应用,且同步加载第一显示模块的过程中,第一操作系统对与目标应用对应的显示界面进行渲染,并将该显示界面的显示数据写入共享显示缓存区。Step 606: During the process of starting and loading the target application by the first operating system and synchronously loading the first display module, the first operating system renders the display interface corresponding to the target application, and writes the display data of the display interface into Shared display buffer.
第一操作系统渲染的显示界面可以是与目标应用对应的显示界面,例如,该显示界面可以是目标应用的启动界面、主界面等,不同应用对应的显示界面可不同,可由各个应用的开发商设计。在目标应用启动并加载,以及第一显示模块加载的过程中,第一操作系统可通过渲染引擎等对启动的目标应用对应的显示界面进行渲染,得到该目标应用对应的显示界面的显示数据。界面服务可将渲染得到显示数据发送到第二操作系统中的共享显示缓存区。The display interface rendered by the first operating system may be a display interface corresponding to the target application. For example, the display interface may be a startup interface, a main interface, etc. of the target application. design. During the process of starting and loading the target application and loading the first display module, the first operating system may render the display interface corresponding to the launched target application through a rendering engine, etc., to obtain display data of the display interface corresponding to the target application. The interface service may send the rendered display data to the shared display buffer in the second operating system.
步骤608,第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示该目标应用对应的显示界面。 Step 608, the second operating system acquires display data from the shared display buffer area, and controls the screen to display a display interface corresponding to the target application according to the display data.
第二操作系统可从共享显示缓存区中获取显示数据,并通过第二显示模块将显示数据发送到屏幕进行显示,控制屏幕显示该目标应用对应的显示界面,则不需要等待第一操作系统启动并加载完目标应用,以及加载完第一显示模块,才能够显示该显示界面,实现画面连续的无感系统切换。且启动的应用不同,显示的显示界面也不同,能够提高界面的丰富性,提高界面显示的视觉效果。The second operating system can obtain the display data from the shared display buffer area, send the display data to the screen for display through the second display module, and control the screen to display the display interface corresponding to the target application, without waiting for the first operating system to start The display interface can be displayed only after the target application is loaded and the first display module is loaded, so as to realize continuous non-sensing system switching of the screen. In addition, different applications are started, and the displayed display interface is also different, which can improve the richness of the interface and improve the visual effect of the interface display.
图7为一个实施例中不同应用对应的显示界面的示意图。示例性地,如图7所示,当用户触发启动需要在第一操作系统运行的通话应用时,第二操作系统可根据从共享显示缓存区中获取的显示数据,控制屏幕显示界面702;当用户触发启动需要在第一操作系统运行的心率测量应用时,第二操作系统可根据从共享显示缓存区中获取的显示数据,控制屏幕显示界面704;当用户触发启动需要在第一操作系统运行的睡眠监控应用时,第二操作系统可根据从共享显示缓存区中获取的显示数据,控制屏幕显示界面706,启动的应用不同,可显示不同的界面。FIG. 7 is a schematic diagram of display interfaces corresponding to different applications in one embodiment. Exemplarily, as shown in FIG. 7 , when the user triggers the launch of the calling application that needs to be run on the first operating system, the second operating system can control the screen display interface 702 according to the display data obtained from the shared display buffer; When the user triggers the startup of the heart rate measurement application that needs to run on the first operating system, the second operating system can control the screen display interface 704 according to the display data obtained from the shared display buffer; when the user triggers the startup, it needs to run on the first operating system When the sleep monitoring application is activated, the second operating system can control the screen display interface 706 according to the display data obtained from the shared display buffer area, and different interfaces can be displayed depending on the activated application.
当第一操作系统监听到目标应用启动并加载完成,且第一显示模块加载完成,则第一操作系统可停止将渲染的显示界面的显示数据写入共享显示缓存区,并通过第一显示模块控制屏幕对目标应用的界面进行显示。而第二操作系统可停止从共享显示缓存区中获取显示数据,并进入休眠状态,完成系统切换,用户可正常使用目标应用。When the first operating system monitors that the target application is started and loaded, and the first display module is loaded, the first operating system can stop writing the display data of the rendered display interface into the shared display buffer area, and pass the first display module The control screen displays the interface of the target application. On the other hand, the second operating system can stop acquiring display data from the shared display buffer area, and enter a dormant state to complete the system switching, and the user can use the target application normally.
在一些实施例中,第一操作系统渲染的显示界面也可以是固定设计的过渡显示界面,对于启动的任一应用,该过渡显示界面可以是一致的,也可以由用户选择喜欢的图像作为过渡显示界面,在每次进行操作系统切换时进行显示。In some embodiments, the display interface rendered by the first operating system may also be a transitional display interface with a fixed design. For any application that is started, the transitional display interface may be the same, or the user may select a favorite image as the transition. The display interface is displayed every time the operating system is switched.
在本申请实施例中,第一操作系统可根据启动的目标应用,渲染该目标应用对应的显示界面,并在未完成目标应用启动及加载的过程中,先由第二操作系统显示该显示界面,减少用户视觉上等待的时间,防止出现给用户造成系统卡顿的误觉,实现了界面显示连续、平滑的无感切换。且启动的应用不同,显示的显示界面也不同,能够提高界面的丰富性,提高界面显示的视觉效果。In the embodiment of the present application, the first operating system may render the display interface corresponding to the target application according to the activated target application, and the second operating system first displays the display interface in the process of not completing the start and loading of the target application , reducing the visual waiting time of users, preventing the misperception that the system is stuck for users, and realizing continuous, smooth and non-sensing switching of the interface display. In addition, different applications are started, and the displayed display interface is also different, which can improve the richness of the interface and improve the visual effect of the interface display.
为了更好地说明本申请实施例中第一操作系统与第二操作系统之间的通信交互流程,请参考图8A及图8B。图8A为一个实施例中从第二操作系统切换至第一操作系统,第二操作系统使用共享显示缓存区的时序图;图8B为一个实施例中从第二操作系统切换至第一操作系统,第一操作系统使用共享显示缓存区的时序图。To better describe the communication interaction flow between the first operating system and the second operating system in the embodiment of the present application, please refer to FIG. 8A and FIG. 8B . FIG. 8A is a timing diagram of switching from the second operating system to the first operating system, and the second operating system uses the shared display buffer in one embodiment; FIG. 8B is a switching from the second operating system to the first operating system in one embodiment. , the first operating system uses the timing diagram of the shared display buffer area.
如图8A所示,当从第二操作系统810切换至第一操作系统820,第二操作系统810使用共享显示缓存区的时序步骤可包括:As shown in FIG. 8A , when switching from the second operating system 810 to the first operating system 820, the sequence steps for the second operating system 810 to use the shared display buffer area may include:
1、用户在第二操作系统810触发启动第一操作系统820的目标应用,第二操作系统810检测到该触发操作,向切换服务812发送请求启动第一操作系统820的目标应用的消息。1. The user triggers to start the target application of the first operating system 820 on the second operating system 810 . The second operating system 810 detects the trigger operation and sends a message requesting to start the target application of the first operating system 820 to the switching service 812 .
2、第二操作系统810的切换服务812发起系统切换流程,通过第二操作系统810中的双核通信服务816向第一操作系统发送请求启动目标应用的消息(即上述的系统切换请求);第一操作系统820在接收到该请求消息后回复确认消息(ack消息),并唤醒相关的系统服务,启动及加载目标应用,并加载第一显示模块。2. The switching service 812 of the second operating system 810 initiates a system switching process, and sends a message requesting to start the target application (that is, the above-mentioned system switching request) to the first operating system through the dual-core communication service 816 in the second operating system 810; After receiving the request message, an operating system 820 replies with an acknowledgment message (ack message), and wakes up related system services, starts and loads the target application, and loads the first display module.
3、第二操作系统810的切换服务812向显示驱动814发送开始使用共享显示缓存区进行屏幕刷新的消息,并在切换服务812返回确认消息后,通过双核通信服务816向第一操作系统发送切换准备完成消息(即上述的第二消息);第一操作系统820在接收到该切换准备完成消息后,回复确认消息,并通知界面服务将渲染得到的显示数据发送至第二操作系统810的共享显示缓存区。3. The switching service 812 of the second operating system 810 sends a message to the display driver 814 to start using the shared display buffer for screen refresh, and after the switching service 812 returns a confirmation message, it sends the switching service 816 to the first operating system through the dual-core communication service 816. A preparation completion message (that is, the above-mentioned second message); after receiving the switch preparation completion message, the first operating system 820 replies with a confirmation message, and notifies the interface service to send the rendered display data to the share of the second operating system 810 Show buffer area.
4、第一操作系统820向第二操作系统810发送显示数据,第二操作系统810通过双核通信服务816接收第一操作系统820发送的显示数据,并将显示数据写入第二操作系统810的共享显示缓存区,第二操作系统810的显示驱动814不再使用本系统界面的显示数据,而是从共享显示缓存区中获取写入的显示数据,并控制屏幕持续刷新显示。4. The first operating system 820 sends display data to the second operating system 810, and the second operating system 810 receives the display data sent by the first operating system 820 through the dual-core communication service 816, and writes the display data into the second operating system 810. In the shared display buffer area, the display driver 814 of the second operating system 810 no longer uses the display data of the system interface, but obtains the written display data from the shared display buffer area, and controls the screen to continuously refresh the display.
5、当第一操作系统820的目标应用启动并加载完成,且第一显示模块加载完成,第一操作系统820发送目标应用启动并加载完成的消息(即上述的第一消息)。切换服务812通过双核通信服务816接收第一操作系统820发送的目标应用启动并加载完成的消息后向第一操作系统820回复确认消息。5. When the target application of the first operating system 820 is started and loaded, and the first display module is loaded, the first operating system 820 sends a message that the target application is started and loaded (ie, the above-mentioned first message). The switching service 812 receives a message sent by the first operating system 820 that the target application has been started and loaded through the dual-core communication service 816, and then returns a confirmation message to the first operating system 820.
6、切换服务812向显示驱动814发送停止使用共享显示缓存区刷新屏幕的消息,显示驱动814停止从共享显示缓存区中获取显示数据。6. The switching service 812 sends a message to the display driver 814 to stop using the shared display buffer to refresh the screen, and the display driver 814 stops acquiring display data from the shared display buffer.
7、第一操作系统820接管屏幕的控制权,通知界面服务停止将显示数据发送至第二操作系统810的共享显示缓存区,并正常刷新显示。7. The first operating system 820 takes over control of the screen, notifies the interface service to stop sending display data to the shared display buffer area of the second operating system 810, and refreshes the display normally.
如图8B示,当从第二操作系统810切换至第一操作系统820,第一操作系统820使用共享显示缓存区的时序步骤可包括:As shown in FIG. 8B, when switching from the second operating system 810 to the first operating system 820, the sequence steps for the first operating system 820 to use the shared display buffer area may include:
1、第一操作系统820中的切换服务828通过双核通信服务822接收第二操作系统810发送的请求启动目标应用的消息,并通过双核通信服务822向第二操作系统810回复确认消息,第一操作系统820中的切换服务828可根据该请求启动目标应用的消息创建 WakeLock唤醒系统中的相关系统服务826。1. The switching service 828 in the first operating system 820 receives the message sent by the second operating system 810 for requesting to start the target application through the dual-core communication service 822, and returns a confirmation message to the second operating system 810 through the dual-core communication service 822. The switching service 828 in the operating system 820 can create a WakeLock to wake up the relevant system service 826 in the system according to the message requesting to start the target application.
2、系统服务826可向界面服务824发送sf.setDisplayPowerMode等加载指令,界面服务824接收到该加载指令后,立即向系统服务返回准备指令,并异步继续加载第一显示模块。2. The system service 826 can send a loading command such as sf.setDisplayPowerMode to the interface service 824. After receiving the loading command, the interface service 824 immediately returns a preparation command to the system service, and continues to load the first display module asynchronously.
3、切换服务828开始启动目标应用,并由系统服务826向界面服务824正常请求显示缓存(acquireBuffer)及消息显示缓存(releaseBuffer),从而对显示界面进行渲染,得到显示数据,但实际上并不对显示界面进行显示。3. The switching service 828 starts to start the target application, and the system service 826 normally requests the display buffer (acquireBuffer) and the message display buffer (releaseBuffer) to the interface service 824, so as to render the display interface and obtain the display data, but it is not actually correct. The display interface is displayed.
4、第二操作系统810向第一操作系统820发送切换准备完成消息,第一操作系统820的切换服务828通过双核通信服务822接收该切换准备完成消息后,通过双核通信服务822向第二操作系统810回复确认消息。切换服务828可向界面服务824发送启动共享显示缓存区消息,界面服务824通过双核通信服务822向第二操作系统的共享显示缓存区写入渲染的显示数据。4. The second operating system 810 sends a switching preparation complete message to the first operating system 820. After receiving the switching preparation complete message through the dual-core communication service 822, the switching service 828 of the first operating system 820 sends the information to the second operation through the dual-core communication service 822. System 810 replies with a confirmation message. The switching service 828 may send a message to enable the shared display buffer to the interface service 824, and the interface service 824 writes the rendered display data to the shared display buffer of the second operating system through the dual-core communication service 822.
5、第二操作系统810从共享显示缓存区中获取显示数据,并持续控制屏幕刷新显示。5. The second operating system 810 acquires display data from the shared display buffer area, and continuously controls the screen to refresh and display.
6、在切换服务828监听到目标应用启动完成(Activity Ready)后,由于第一显示模块与目标应用为同步时序,因此也确实第一显模块加载完成,则可向界面服务824发送停止共享显示缓存区消息,界面服务824根据该停止共享显示缓存区消息停止发送显示数据。6. After the switching service 828 monitors the completion of the target application startup (Activity Ready), since the first display module and the target application are in a synchronous timing sequence, and it is true that the first display module is loaded, the user can send a message to the interface service 824 to stop the shared display Buffer message, the interface service 824 stops sending display data according to the stop sharing display buffer message.
7、切换服务828通过双核通信服务822向第二操作系统810发送目标应用启动并加载完成的消息,则第二操作系统810接收到该目标应用启动并加载完成的消息后,返回确认消息,并停止从共享显示缓存区中获取显示数据,停止对屏幕进行刷新显示。7. The switching service 828 sends a message that the target application has been started and loaded to the second operating system 810 through the dual-core communication service 822. After receiving the message that the target application has been started and loaded, the second operating system 810 returns a confirmation message, and Stop getting display data from the shared display buffer and stop refreshing the screen.
8、第一操作系统820恢复正常的屏幕刷新显示,切换服务828向界面服务824发送正常刷新消息,完全进入第一操作系统820中启动的目标应用的界面中。8. The first operating system 820 resumes normal screen refresh display, the switching service 828 sends a normal refresh message to the interface service 824, and completely enters the interface of the target application started in the first operating system 820.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In the embodiment of the present application, by establishing a shared display buffer area between the first operating system and the second operating system, when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer Then, the second operating system that is cut out obtains display data from the shared display buffer area and controls the screen display. It does not need to wait for the first display module of the first operating system to be loaded before the display interface rendered by the first operating system can be displayed. It can greatly improve the situation that the screen is stuck or the display is discontinuous when switching the operating system, and realize the continuous, smooth and non-sensing switching of the interface display.
在一些实施例中,步骤第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,可包括:第一操作系统根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,并将多帧显示界面的显示数据写入共享显示缓存区。In some embodiments, the step of rendering the display interface by the first operating system and writing the display data of the display interface into the shared display buffer area may include: the first operating system rendering the display interface according to the designed dynamic display style, The display data of the multi-frame display interface is obtained, and the display data of the multi-frame display interface is written into the shared display buffer area.
在系统切换过程中显示的显示界面可以是具有动画效果的显示界面,第一操作系统可根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,可选地,该动态显示样式可用于表示显示界面的动画展示样式,例如,动态显示样式可包括淡入淡出样式、抖动轨迹样式、逐渐放大样式、逐渐缩小样式等。The display interface displayed during the system switching process may be a display interface with animation effects, and the first operating system may render the display interface according to the designed dynamic display style to obtain the display data of the multi-frame display interface. The display style may be used to represent the animation display style of the display interface. For example, the dynamic display style may include a fade-in and fade-out style, a jitter track style, a gradual enlargement style, a gradual shrinkage style, and the like.
在一些实施例中,共享显示缓存区可包括多个缓存子块。第一操作系统将多帧显示界面的显示数据写入共享显示缓存区,可包括:第一操作系统根据每一帧显示界面的显示时序,依次将每一帧显示界面的显示数据写入共享显示缓存区的缓存子块中,每个缓存子块对应一帧显示界面的显示数据。In some embodiments, the shared display buffer may include multiple buffer sub-blocks. The first operating system writes the display data of the multi-frame display interface into the shared display buffer area, which may include: the first operating system sequentially writes the display data of each frame of the display interface into the shared display according to the display timing of each frame of the display interface In the cache sub-blocks of the cache area, each cache sub-block corresponds to a frame of display data of the display interface.
动态显示样式可设置有每一帧显示界面的显示样式,该显示样式可包括但不限于显示内容、界面尺寸、界面在屏幕中的位置等,每一帧显示界面可分别对应不同的显示时序,按照该显示时序逐帧对显示界面进行显示,可形成动画效果的显示界面。共享显示缓存区中可包括有多个缓存子块,每个缓存子块可分别用于存储一帧显示界面的显示数据,第一操作系统中的界面服务可通过双核通信服务依次将每一帧显示界面的显示数据写入第二操 作系统的共享显示缓存区的各个缓存子块中。The dynamic display style can be set with the display style of each frame of the display interface. The display style can include but is not limited to the display content, the interface size, the position of the interface on the screen, etc. Each frame of the display interface can correspond to different display timings. The display interface is displayed frame by frame according to the display sequence, and an animation effect display interface can be formed. The shared display buffer area may include multiple cache sub-blocks, and each cache sub-block may be used to store the display data of a frame of the display interface. The display data of the display interface is written into each cache sub-block of the shared display cache area of the second operating system.
第二操作系统可逐一从共享显示缓存区中获取每一帧显示界面的显示数据,并根据获取的每一帧显示界面的显示数据控制屏幕显示具备动态显示样式的显示界面。进一步地,第二操作系统可逐一从共享显示缓存区中的各个缓存子块中,获取每一帧显示界面的显示数据并发送到屏幕,从而控制屏幕持续刷新显示每一帧显示界面,形成动画效果,丰富了界面的显示样式。The second operating system can acquire the display data of each frame of the display interface one by one from the shared display buffer area, and control the screen to display the display interface with the dynamic display style according to the acquired display data of each frame of the display interface. Further, the second operating system can obtain the display data of each frame of the display interface one by one from each cache sub-block in the shared display buffer area and send it to the screen, thereby controlling the screen to continuously refresh and display each frame of the display interface to form an animation. effect, which enriches the display style of the interface.
图9为一个实施例中第二操作系统控制屏幕显示动态的显示界面的示意图。如图9所示,第二操作系统可从共享显示缓存区的第一个缓存子块中读取第一帧显示数据,并根据该第一帧显示数据控制屏幕显示第一帧显示界面902,可从共享显示缓存区的第二个缓存子块中读取第二帧显示数据,并根据该第一帧显示数据控制屏幕显示第二帧显示界面904,可从共享显示缓存区的第三个缓存子块中读取第三帧显示数据,并根据该第三帧显示数据控制屏幕显示第三帧显示界面906。从第一帧显示界面902到第三帧显示界面906,可形成动态逐渐放大的显示效果。FIG. 9 is a schematic diagram of a second operating system controlling a screen to display a dynamic display interface in one embodiment. As shown in FIG. 9 , the second operating system can read the first frame display data from the first buffer sub-block of the shared display buffer area, and control the screen to display the first frame display interface 902 according to the first frame display data, The second frame display data can be read from the second buffer sub-block of the shared display buffer, and the screen can be controlled to display the second frame display interface 904 according to the first frame display data. The third frame display data is read from the cache sub-block, and the screen is controlled to display the third frame display interface 906 according to the third frame display data. From the first frame display interface 902 to the third frame display interface 906, a display effect of dynamic and gradual enlargement can be formed.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,不需要在第二操作系统中预置动态的过渡显示界面的显示数据,可减少对存储空间的消耗,且方便第一操作系统中的各个应用根据需求对显示界面进行更新,提高了终端设备的整体性能。In the embodiment of the present application, by establishing a shared display buffer area between the first operating system and the second operating system, when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer It is not necessary to preset the display data of the dynamic transition display interface in the second operating system, which can reduce the consumption of storage space, and facilitate each application in the first operating system to update the display interface according to the needs, which improves the terminal performance. overall performance of the device.
需要说明的是,除了在通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,以解决终端设备在进行操作系统切换时出现的画面卡顿或显示不连续等问题,第一操作系统及第二操作系统还可共用一套显示模块,采用同一显示驱动及适配接口、服务等,在进行操作系统切换时,由于共用的显示模块一直处于使用状态,不需要重新进行加载,因此,可直接免去等待加载的时长,以实现界面显示连续、平滑的无感切换。It should be noted that, in addition to establishing a shared display buffer area between the first operating system and the second operating system to solve problems such as screen freezes or discontinuous display when the terminal device switches operating systems, the third The first operating system and the second operating system can also share a set of display modules, and use the same display driver and adaptation interface, services, etc., when the operating system is switched, since the shared display module is always in use, it does not need to be reloaded , therefore, the waiting time for loading can be directly eliminated, so as to realize continuous, smooth and non-sensing switching of interface display.
如图10所示,在一个实施例中,提供一种界面显示装置1000,可应用于上述的终端设备。该界面显示装置1000可包括:加载模块1010、渲染模块1020及显示模块1030。As shown in FIG. 10 , in one embodiment, an interface display apparatus 1000 is provided, which can be applied to the above-mentioned terminal equipment. The interface display device 1000 may include: a loading module 1010 , a rendering module 1020 and a display module 1030 .
加载模块1010,用于当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,通过第一操作系统加载第一操作系统中的第一显示模块,其中,第二操作系统为终端设备中当前运行的操作系统。The loading module 1010 is configured to load the first display module in the first operating system through the first operating system when the first operating system in the terminal device receives the system switching request sent by the second operating system, wherein the second operation The system is the operating system currently running in the terminal device.
渲染模块1020,用于在第一操作系统加载第一显示模块的过程中,通过第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,共享显示缓存区为第一操作系统与第二操作系统之间共享的显示缓存区。The rendering module 1020 is configured to render the display interface through the first operating system during the process of loading the first display module by the first operating system, and write the display data of the display interface into the shared display buffer area, where the shared display buffer area is A display buffer area shared between the first operating system and the second operating system.
显示模块1030,用于通过第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示该显示界面。The display module 1030 is configured to obtain display data from the shared display buffer area through the second operating system, and control the screen to display the display interface according to the display data.
在一个实施例中,上述界面显示装置1000,还可包括停止模块。In one embodiment, the above-mentioned interface display apparatus 1000 may further include a stop module.
停止模块,用于当第一操作系统中的第一显示模块加载完成时,由第一操作系统停止将渲染的显示界面的显示数据写入共享显示缓存区。The stopping module is configured to stop the writing of the display data of the rendered display interface into the shared display buffer area by the first operating system when the first display module in the first operating system is loaded.
显示模块1030,还用于由第一操作系统通过第一显示模块控制屏幕对渲染的显示界面进行显示。The display module 1030 is further configured to control the screen by the first operating system to display the rendered display interface through the first display module.
在一个实施例中,上述界面显示装置1000,还可包括通信模块。In one embodiment, the above interface display apparatus 1000 may further include a communication module.
通信模块,用于当第一操作系统中的第一显示模块加载完成时,由第一操作系统向第二操作系统发送第一消息。The communication module is configured to send the first message from the first operating system to the second operating system when the first display module in the first operating system is loaded.
停止模块,还用于由第二操作系统根据第一消息停止从共享显示缓存区中获取显示数据,并进入休眠状态。The stop module is further configured to stop the acquisition of display data from the shared display buffer area by the second operating system according to the first message, and enter a sleep state.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In the embodiment of the present application, by establishing a shared display buffer area between the first operating system and the second operating system, when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer Then, the second operating system that is cut out obtains display data from the shared display buffer area and controls the screen display. It does not need to wait for the first display module of the first operating system to be loaded before the display interface rendered by the first operating system can be displayed. It can greatly improve the situation that the screen is stuck or the display is discontinuous when switching the operating system, and realize the continuous, smooth and non-sensing switching of the interface display.
在一个实施例中,渲染模块1020,还用于由第一操作系统通过切换服务向界面服务发送启动共享显示缓存区消息,启动共享显示缓存区消息用于指示界面服务将渲染的显示界面的显示数据写入共享显示缓存区。In one embodiment, the rendering module 1020 is further configured to send a message of starting the shared display buffer area to the interface service by the first operating system through the switching service, and the message of starting the shared display buffer area is used to indicate the display of the display interface to be rendered by the interface service Data is written to the shared display buffer.
在一个实施例中,渲染模块1020,还用于当第一操作系统接收到第二操作系统发送的第二消息时,根据第二消息将显示界面的显示数据写入共享显示缓存区,第二消息用于表征第二操作系统已启用共享显示缓存区。In one embodiment, the rendering module 1020 is further configured to, when the first operating system receives the second message sent by the second operating system, write the display data of the display interface into the shared display buffer according to the second message, and the second The message is used to indicate that the second operating system has enabled the shared display buffer area.
在一个实施例中,停止模块,还用于由第一操作系统中通过切换服务向界面服务发送停止共享显示缓存区消息,停止共享显示缓存区消息用于指示界面服务停止将渲染的显示界面的显示数据写入共享显示缓存区。In one embodiment, the stop module is further configured to send a stop sharing display buffer message to the interface service through the switching service in the first operating system, and the stop sharing display buffer message is used to instruct the interface service to stop the rendering of the display interface to be rendered. Display data is written to the shared display buffer.
显示模块1030,还用于由界面服务通过第一显示模块控制屏幕对渲染的显示界面进行显示。The display module 1030 is further configured to control the screen to display the rendered display interface by the interface service through the first display module.
在一个实施例中,加载模块1010,还用于由第一操作系统通过系统服务向界面服务发送加载指令,在界面服务接收到加载指令后,立即向系统服务返回准备指令,并根据加载指令对第一显示模块进行加载,该准备指令用于指示系统服务对显示界面进行渲染。In one embodiment, the loading module 1010 is further configured to send the loading instruction to the interface service by the first operating system through the system service, and after receiving the loading instruction, the interface service immediately returns the preparation instruction to the system service, and according to the loading instruction The first display module is loaded, and the preparation instruction is used to instruct the system service to render the display interface.
在本申请实施例中,通过第一操作系统及第二操作系统中的多个服务互相配合控制系统切换过程中的界面显示,实现了在进行系统切换时,提前由第二操作系统对第一操作系统渲染的显示界面进行显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In the embodiment of the present application, the interface display during the system switching process is controlled by the mutual cooperation of multiple services in the first operating system and the second operating system, so that when the system is switched, the second operating system can control the first operating system in advance The display interface rendered by the operating system is displayed, and the display interface rendered by the first operating system can be displayed without waiting for the first display module of the first operating system to be loaded, which can greatly improve the screen freeze or freeze when switching the operating system. Display discontinuous and other situations, realize continuous and smooth non-inductive switching of interface display.
在一个实施例中,上述界面显示装置1000除了包括加载模块1010、渲染模块1020、显示模块1030、停止模块及通信模块外,还包括操作响应模块。In one embodiment, the above-mentioned interface display apparatus 1000 further includes an operation response module in addition to a loading module 1010, a rendering module 1020, a display module 1030, a stop module and a communication module.
操作响应模块,用于在第二操作系统检测到针对目标应用的应用启动操作时,通过第二操作系统响应应用启动操作,向第一操作系统发送系统切换请求,系统切换请求包括目标应用的应用标识。The operation response module is configured to, when the second operating system detects an application startup operation for the target application, respond to the application startup operation through the second operating system, and send a system switching request to the first operating system, where the system switching request includes the application of the target application logo.
加载模块1010,还用于由第一操作系统根据系统切换请求中的应用标识启动并加载目标应用,且同步加载第一操作系统中的第一显示模块。The loading module 1010 is further configured to start and load the target application by the first operating system according to the application identifier in the system switching request, and synchronously load the first display module in the first operating system.
在一个实施例中,渲染模块1020,还用于在第一操作系统启动并加载目标应用,且同步加载第一显示模块的过程中,通过第一操作系统对与目标应用对应的显示界面进行渲染。In one embodiment, the rendering module 1020 is further configured to render the display interface corresponding to the target application through the first operating system during the process of starting and loading the target application and synchronously loading the first display module by the first operating system .
在一个实施例中,显示模块1030,还用于由第二操作系统向第一操作系统发送系统切换请求后,根据存储的界面资源控制屏幕显示初始过渡画面,并在等待第一时长后,通过第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示该显示界面。In one embodiment, the display module 1030 is further configured to, after the second operating system sends a system switching request to the first operating system, control the screen to display the initial transition picture according to the stored interface resources, and after waiting for the first time period, display the initial transition picture through the control screen. The second operating system acquires display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
在本申请实施例中,第一操作系统可根据启动的目标应用,渲染该目标应用对应的显示界面,并在未完成目标应用启动及加载的过程中,先由第二操作系统显示该显示界面,减少用户视觉上等待的时间,防止出现给用户造成系统卡顿的误觉,实现了界面显示连续、平滑的无感切换。且启动的应用不同,显示的显示界面也不同,能够提高界面的丰富性,提高界面显示的视觉效果。In the embodiment of the present application, the first operating system may render the display interface corresponding to the target application according to the activated target application, and the second operating system first displays the display interface in the process of not completing the start and loading of the target application , reducing the visual waiting time of users, preventing the misperception that the system is stuck for users, and realizing continuous, smooth and non-sensing switching of the interface display. In addition, different applications are started, and the displayed display interface is also different, which can improve the richness of the interface and improve the visual effect of the interface display.
在一个实施例中,渲染模块1020,还用于由第一操作系统根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,并将多帧显示界面的显示数据写入共享显示缓存区。In one embodiment, the rendering module 1020 is further configured to render the display interface by the first operating system according to the designed dynamic display style, obtain display data of the multi-frame display interface, and write the display data of the multi-frame display interface into Shared display buffer.
在一个实施例中,共享显示缓存区包括多个缓存子块。渲染模块1020,还用于由第一操作系统根据每一帧显示界面的显示时序,依次将每一帧显示界面的显示数据写入共享显示缓存区的缓存子块中,每个缓存子块对应一帧显示界面的显示数据。In one embodiment, the shared display buffer includes multiple buffer sub-blocks. The rendering module 1020 is further configured to sequentially write the display data of each frame of the display interface into the cache sub-blocks of the shared display buffer area by the first operating system according to the display timing of each frame of the display interface, and each cache sub-block corresponds to A frame of display data of the display interface.
显示模块1030,还用于由第二操作系统逐一从共享显示缓存区中获取每一帧显示界面的显示数据,并根据获取的每一帧显示界面的显示数据控制屏幕显示具备动态显示样式的显示界面。The display module 1030 is further configured to obtain the display data of each frame of the display interface from the shared display buffer one by one by the second operating system, and control the screen to display a display with a dynamic display style according to the obtained display data of each frame of the display interface interface.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,不需要在第二操作系统中预置动态的过渡显示界面的显示数据,可减少对存储空间的消耗,且方便第一操作系统中的各个应用根据需求对显示界面进行更新,提高了终端设备的整体性能。In the embodiment of the present application, by establishing a shared display buffer area between the first operating system and the second operating system, when performing system switching, the first operating system to be switched to render the display interface and write into the shared display buffer It is not necessary to preset the display data of the dynamic transition display interface in the second operating system, which can reduce the consumption of storage space, and facilitate each application in the first operating system to update the display interface according to the needs, which improves the terminal performance. overall performance of the device.
图11为一个实施例中终端设备的结构框图。如图11所示,终端设备1100可以包括一个或多个如下部件:处理器1110、与处理器1110耦合的存储器1120,其中存储器1120可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器1110执行时实现如上述各实施例描述的方法。FIG. 11 is a structural block diagram of a terminal device in an embodiment. As shown in FIG. 11, the terminal device 1100 may include one or more of the following components: a processor 1110, a memory 1120 coupled with the processor 1110, wherein the memory 1120 may store one or more computer programs, one or more computer programs The methods as described in the above embodiments may be configured to be executed by one or more processors 1110 .
处理器1110可以包括一个或者多个处理核。处理器1110利用各种接口和线路连接整个终端设备1100内的各个部分,通过运行或执行存储在存储器1120内的指令、程序、代码集或指令集,以及调用存储在存储器1120内的数据,执行终端设备1100的各种功能和处理数据。可选地,处理器1110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1110中,单独通过一块通信芯片进行实现。The processor 1110 may include one or more processing cores. The processor 1110 uses various interfaces and lines to connect various parts of the entire terminal device 1100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1120, and calling the data stored in the memory 1120. Various functions of the terminal device 1100 and processing data. Optionally, the processor 1110 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). A hardware form is implemented. The processor 1110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1110, and is implemented by a communication chip alone.
存储器1120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器1120可用于存储指令、程序、代码、代码集或指令集。存储器1120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储终端设备1100在使用中所创建的数据等。The memory 1120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Memory 1120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 1120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing the operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like. The storage data area may also store data and the like created by the terminal device 1100 in use.
可以理解地,终端设备1100可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、WiFi(Wireless Fidelity,无线保真)模块、扬声器、蓝牙模块、传感器等,还可在此不进行限定。It can be understood that the terminal device 1100 may include more or less structural elements than those in the above structural block diagram, for example, including a power module, physical buttons, WiFi (Wireless Fidelity, wireless fidelity) module, speaker, Bluetooth module, sensors, etc. , which is not limited here.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述实施例描述的方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the method described in the foregoing embodiments is implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的方法。The embodiments of the present application disclose a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the foregoing embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过 计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a ROM, and the like.
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM可为多种形式,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。Any reference to a memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (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 can be in various forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate SDRAM) Data Rate SDRAM, DDR SDRAM), Enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), Synchronous Link DRAM (Synchlink DRAM, SLDRAM), Memory Bus Direct RAM (Rambus DRAM, RDRAM) and Direct Memory Bus Dynamic RAM (Direct Rambus DRAM) , DRDRAM).
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In the various embodiments of the present application, it should be understood that the size of the sequence numbers of the above-mentioned processes does not imply an inevitable sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be implemented in the present application. The implementation of the examples constitutes no limitation.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components displayed as units may or may not be object units, and may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to cause a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device) to execute some or all of the steps of the above methods in the various embodiments of the present application.
以上对本申请实施例公开的一种界面显示方法、装置、终端设备及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The interface display method, device, terminal device, and computer-readable storage medium disclosed in the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions are only used to aid in understanding the methodology of the present application and its core ideas. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. To sum up, the content of this specification should not be construed as a limitation to the present application.

Claims (24)

  1. 一种界面显示方法,其特征在于,应用于终端设备,所述方法包括:An interface display method, characterized in that, applied to a terminal device, the method comprising:
    当所述终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,所述第一操作系统根据所述系统切换请求加载所述第一操作系统中的第一显示模块,其中,所述第二操作系统为所述终端设备中当前在前台运行的操作系统;When the first operating system in the terminal device receives the system switching request sent by the second operating system, the first operating system loads the first display module in the first operating system according to the system switching request, Wherein, the second operating system is the operating system currently running in the foreground in the terminal device;
    在所述第一操作系统加载所述第一显示模块的过程中,所述第一操作系统对显示界面进行渲染,并将所述显示界面的显示数据写入共享显示缓存区,所述共享显示缓存区为所述第一操作系统与所述第二操作系统之间共享的显示缓存区;During the process of loading the first display module by the first operating system, the first operating system renders the display interface, and writes the display data of the display interface into the shared display buffer area, and the shared display The buffer area is a display buffer area shared between the first operating system and the second operating system;
    所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面。The second operating system acquires the display data from the shared display buffer area, and controls the screen to display the display interface according to the display data.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述第一操作系统中的所述第一显示模块加载完成时,所述第一操作系统停止将渲染的显示界面的显示数据写入所述共享显示缓存区,并通过所述第一显示模块控制所述屏幕对渲染的显示界面进行显示。When the loading of the first display module in the first operating system is completed, the first operating system stops writing the display data of the rendered display interface into the shared display buffer, and passes the first display interface through the first display interface. The module controls the screen to display the rendered display interface.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    当所述第一操作系统中的所述第一显示模块加载完成时,所述第一操作系统向所述第二操作系统发送第一消息;When the loading of the first display module in the first operating system is completed, the first operating system sends a first message to the second operating system;
    所述第二操作系统根据所述第一消息停止从所述共享显示缓存区中获取显示数据,并进入休眠状态。The second operating system stops acquiring display data from the shared display buffer area according to the first message, and enters a sleep state.
  4. 根据权利要求2所述的方法,其特征在于,所述将所述显示界面的显示数据写入共享显示缓存区,包括:The method according to claim 2, wherein the writing the display data of the display interface into the shared display buffer area comprises:
    所述第一操作系统通过切换服务向界面服务发送启动共享显示缓存区消息,所述启动共享显示缓存区消息用于指示所述界面服务将渲染的显示界面的显示数据写入共享显示缓存区;The first operating system sends a message of starting the shared display buffer area to the interface service through the switching service, where the message of starting the shared display buffer area is used to instruct the interface service to write the display data of the rendered display interface into the shared display buffer area;
    所述第一操作系统停止将渲染的显示界面的显示数据写入所述共享显示缓存区,并通过所述第一显示模块控制所述屏幕对渲染的显示界面进行显示,包括:The first operating system stops writing the display data of the rendered display interface into the shared display buffer, and controls the screen to display the rendered display interface through the first display module, including:
    所述第一操作系统中通过切换服务向所述界面服务发送停止共享显示缓存区消息,所述停止共享显示缓存区消息用于指示所述界面服务停止将渲染的显示界面的显示数据写入所述共享显示缓存区,并通过所述第一显示模块控制所述屏幕对渲染的显示界面进行显示。The first operating system sends a stop sharing display buffer message to the interface service through the switching service, and the stop sharing display buffer message is used to instruct the interface service to stop writing the display data of the rendered display interface into the interface service. The shared display buffer area is controlled, and the screen is controlled to display the rendered display interface through the first display module.
  5. 根据权利要求4所述的方法,其特征在于,所述加载所述第一操作系统中的第一显示模块,包括:The method according to claim 4, wherein the loading the first display module in the first operating system comprises:
    所述第一操作系统通过系统服务向界面服务发送加载指令;The first operating system sends a loading instruction to the interface service through the system service;
    在所述界面服务接收到所述加载指令后,立即向所述系统服务返回准备指令,并根据所述加载指令对第一显示模块进行加载,所述准备指令用于指示所述系统服务对显示界面进行渲染。After the interface service receives the loading instruction, it immediately returns a preparation instruction to the system service, and loads the first display module according to the loading instruction, and the preparation instruction is used to instruct the system service to display The interface is rendered.
  6. 根据权利要求1所述的方法,其特征在于,在所述当所述终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,所述第一操作系统根据所述系统切换请求加载所述第一操作系统中的第一显示模块之前,所述方法还包括:The method according to claim 1, wherein, when the first operating system in the terminal device receives a system switching request sent by the second operating system, the first operating system according to the system Before switching the request to load the first display module in the first operating system, the method further includes:
    在第二操作系统检测到针对目标应用的应用启动操作时,响应所述应用启动操作,向所述第一操作系统发送系统切换请求,所述系统切换请求包括所述目标应用的应用标识,所述目标应用为需要由所述第一操作系统运行的应用;When the second operating system detects an application startup operation for the target application, in response to the application startup operation, a system switching request is sent to the first operating system, where the system switching request includes the application identifier of the target application, and the system switching request includes the application identifier of the target application. The target application is an application that needs to be run by the first operating system;
    所述第一操作系统根据所述系统切换请求加载所述第一操作系统中的第一显示模块,包括:The first operating system loads the first display module in the first operating system according to the system switching request, including:
    所述第一操作系统根据所述系统切换请求中的所述应用标识启动并加载所述目标应用,且同步加载所述第一操作系统中的第一显示模块。The first operating system starts and loads the target application according to the application identifier in the system switching request, and synchronously loads the first display module in the first operating system.
  7. 根据权利要求6所述的方法,其特征在于,所述在所述第一操作系统加载所述第一显示模块的过程中,所述第一操作系统对显示界面进行渲染,包括:The method according to claim 6, wherein, in the process of loading the first display module by the first operating system, the first operating system renders the display interface, comprising:
    在所述第一操作系统启动并加载所述目标应用,且同步加载所述第一显示模块的过程中,所述第一操作系统对与所述目标应用对应的显示界面进行渲染。During the process that the first operating system starts and loads the target application, and synchronously loads the first display module, the first operating system renders a display interface corresponding to the target application.
  8. 根据权利要求1~7任一所述的方法,其特征在于,所述第一操作系统对显示界面进行渲染,并将所述显示界面的显示数据写入共享显示缓存区,包括:The method according to any one of claims 1 to 7, wherein the first operating system renders a display interface, and writes display data of the display interface into a shared display buffer, comprising:
    所述第一操作系统根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,并将所述多帧显示界面的显示数据写入共享显示缓存区;The first operating system renders the display interface according to the designed dynamic display style, obtains display data of the multi-frame display interface, and writes the display data of the multi-frame display interface into the shared display buffer area;
    所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面,包括:The second operating system acquires the display data from the shared display buffer area, and controls the screen to display the display interface according to the display data, including:
    所述第二操作系统逐一从所述共享显示缓存区中获取每一帧显示界面的显示数据,并根据获取的每一帧显示界面的显示数据控制屏幕显示具备所述动态显示样式的显示界面。The second operating system acquires the display data of each frame of the display interface from the shared display buffer one by one, and controls the screen to display the display interface with the dynamic display style according to the acquired display data of each frame of the display interface.
  9. 根据权利要求8所述的方法,其特征在于,所述共享显示缓存区包括多个缓存子块,所述将所述多帧显示界面的显示数据写入共享显示缓存区,包括:The method according to claim 8, wherein the shared display buffer area includes a plurality of buffer sub-blocks, and the writing the display data of the multi-frame display interface into the shared display buffer area includes:
    所述第一操作系统根据每一帧显示界面的显示时序,依次将所述每一帧显示界面的显示数据写入所述共享显示缓存区的缓存子块中,每个缓存子块对应一帧显示界面的显示数据。The first operating system sequentially writes the display data of each frame of the display interface into the cache sub-blocks of the shared display buffer area according to the display timing of each frame of the display interface, and each cache sub-block corresponds to one frame Display data of the interface.
  10. 根据权利要求1~7任一所述的方法,其特征在于,所述将所述显示界面的显示数据写入共享显示缓存区,包括:The method according to any one of claims 1 to 7, wherein the writing the display data of the display interface into a shared display buffer area comprises:
    当所述第一操作系统接收到所述第二操作系统发送的第二消息时,根据所述第二消息将所述显示界面的显示数据写入共享显示缓存区,所述第二消息用于表征所述第二操作系统已启用所述共享显示缓存区。When the first operating system receives the second message sent by the second operating system, the display data of the display interface is written into the shared display buffer area according to the second message, and the second message is used for Indicates that the second operating system has enabled the shared display buffer.
  11. 根据权利要求1~7任一所述的方法,其特征在于,在所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面之前,所述方法还包括:The method according to any one of claims 1 to 7, wherein the second operating system acquires the display data from the shared display buffer area, and controls the display to display the display on a screen according to the display data Before the interface, the method further includes:
    所述第二操作系统向所述第一操作系统发送所述系统切换请求后,根据存储的界面资源控制屏幕显示初始过渡画面;After the second operating system sends the system switching request to the first operating system, control the screen to display an initial transition screen according to the stored interface resources;
    所述第二操作系统在等待第一时长后,执行所述从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面的步骤。After waiting for the first time period, the second operating system executes the steps of acquiring the display data from the shared display buffer area, and controlling the screen to display the display interface according to the display data.
  12. 一种界面显示装置,其特征在于,应用于终端设备,所述装置包括:An interface display device, characterized in that it is applied to terminal equipment, the device comprising:
    加载模块,用于当所述终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,通过所述第一操作系统加载所述第一操作系统中的第一显示模块,其中,所述第二操作系统为所述终端设备中当前运行的操作系统;a loading module, configured to load the first display module in the first operating system through the first operating system when the first operating system in the terminal device receives a system switching request sent by the second operating system, Wherein, the second operating system is the operating system currently running in the terminal device;
    渲染模块,用于在所述第一操作系统加载所述第一显示模块的过程中,通过所述第一操作系统对显示界面进行渲染,并将所述显示界面的显示数据写入共享显示缓存区,所述共享显示缓存区为所述第一操作系统与所述第二操作系统之间共享的显示缓存区;A rendering module, configured to render a display interface through the first operating system during the process of loading the first display module by the first operating system, and write the display data of the display interface into a shared display cache area, the shared display buffer area is a display buffer area shared between the first operating system and the second operating system;
    显示模块,用于通过所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面。The display module is configured to obtain the display data from the shared display buffer area through the second operating system, and control the screen to display the display interface according to the display data.
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The apparatus of claim 12, wherein the apparatus further comprises:
    停止模块,用于当所述第一操作系统中的所述第一显示模块加载完成时,由所述第一操作系统停止将渲染的显示界面的显示数据写入所述共享显示缓存区;a stopping module, configured to stop, by the first operating system, writing the display data of the rendered display interface into the shared display buffer area when the first display module in the first operating system is loaded;
    所述显示模块,还用于由所述第一操作系统通过所述第一显示模块控制所述屏幕对渲染的显示界面进行显示。The display module is further configured to control the screen to display the rendered display interface by the first operating system through the first display module.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The apparatus of claim 13, wherein the apparatus further comprises:
    通信模块,用于当所述第一操作系统中的所述第一显示模块加载完成时,由所述第一操作系统向所述第二操作系统发送第一消息;a communication module, configured to send a first message from the first operating system to the second operating system when the first display module in the first operating system is loaded;
    所述停止模块,还用于由所述第二操作系统根据所述第一消息停止从所述共享显示缓存区中获取显示数据,并进入休眠状态。The stopping module is further configured to stop the acquisition of display data from the shared display buffer area by the second operating system according to the first message, and enter a sleep state.
  15. 根据权利要求13所述的装置,其特征在于,The device of claim 13, wherein:
    所述渲染模块,还用于由所述第一操作系统通过切换服务向界面服务发送启动共享显示缓存区消息,所述启动共享显示缓存区消息用于指示所述界面服务将渲染的显示界面的显示数据写入共享显示缓存区;The rendering module is further configured to send a start shared display buffer area message to the interface service by the first operating system through the switching service, where the start shared display buffer area message is used to indicate the display interface to be rendered by the interface service. Display data is written to the shared display buffer;
    所述停止模块,还用于由所述第一操作系统中通过切换服务向所述界面服务发送停止共享显示缓存区消息,所述停止共享显示缓存区消息用于指示所述界面服务停止将渲染的显示界面的显示数据写入所述共享显示缓存区;The stop module is further configured to send a stop sharing display buffer area message to the interface service through the switching service in the first operating system, where the stop sharing display buffer area message is used to instruct the interface service to stop rendering The display data of the display interface is written into the shared display buffer area;
    所述显示模块,还用于由所述界面服务通过所述第一显示模块控制所述屏幕对渲染的显示界面进行显示。The display module is further configured to control the screen to display the rendered display interface through the first display module by the interface service.
  16. 根据权利要求15所述的装置,其特征在于,The apparatus of claim 15, wherein:
    所述加载模块,还用于由所述第一操作系统通过系统服务向界面服务发送加载指令;在所述界面服务接收到所述加载指令后,立即向所述系统服务返回准备指令,并根据所述加载指令对第一显示模块进行加载,所述准备指令用于指示所述系统服务对显示界面进行渲染。The loading module is further configured to send a loading instruction to the interface service by the first operating system through the system service; after the interface service receives the loading instruction, it immediately returns a preparation instruction to the system service, and according to the The loading instruction loads the first display module, and the preparation instruction is used to instruct the system service to render the display interface.
  17. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The apparatus of claim 12, wherein the apparatus further comprises:
    操作响应模块,用于在第二操作系统检测到针对目标应用的应用启动操作时,通过所述第二操作系统响应所述应用启动操作,向所述第一操作系统发送系统切换请求,所述系统切换请求包括所述目标应用的应用标识,所述目标应用为需要由所述第一操作系统运行的应用;an operation response module, configured to send a system switching request to the first operating system through the second operating system in response to the application startup operation when the second operating system detects an application startup operation for the target application, the The system switching request includes an application identifier of the target application, and the target application is an application that needs to be run by the first operating system;
    所述加载模块,还用于由所述第一操作系统根据所述系统切换请求中的所述应用标识启动并加载所述目标应用,且同步加载所述第一操作系统中的第一显示模块。The loading module is further configured to start and load the target application by the first operating system according to the application identifier in the system switching request, and synchronously load the first display module in the first operating system .
  18. 根据权利要求17所述的装置,其特征在于,The apparatus of claim 17, wherein:
    所述渲染模块,还用于在所述第一操作系统启动并加载所述目标应用,且同步加载所述第一显示模块的过程中,通过所述第一操作系统对与所述目标应用对应的显示界面进行渲染。The rendering module is further configured to correspond to the target application through the first operating system when the first operating system starts and loads the target application and synchronously loads the first display module The display interface is rendered.
  19. 根据权利要求12~18任一所述的装置,其特征在于,The device according to any one of claims 12 to 18, characterized in that:
    所述渲染模块,还用于由所述第一操作系统根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,并将所述多帧显示界面的显示数据写入共享显示缓存区;The rendering module is further configured to render the display interface by the first operating system according to the designed dynamic display style, obtain the display data of the multi-frame display interface, and write the display data of the multi-frame display interface into a shared show buffer area;
    所述显示模块,还用于由所述第二操作系统逐一从所述共享显示缓存区中获取每一帧显示界面的显示数据,并根据获取的每一帧显示界面的显示数据控制屏幕显示具备所述动态显示样式的显示界面。The display module is further configured to obtain, by the second operating system, the display data of each frame of the display interface from the shared display buffer one by one, and control the screen display device according to the obtained display data of each frame of the display interface. The display interface of the dynamic display style.
  20. 根据权利要求19所述的装置,其特征在于,The apparatus of claim 19, wherein:
    所述渲染模块,还用于由所述第一操作系统根据每一帧显示界面的显示时序,依次将所述每一帧显示界面的显示数据写入所述共享显示缓存区的缓存子块中,每个缓存子块对应一帧显示界面的显示数据。The rendering module is further configured to sequentially write the display data of each frame of the display interface into the cache sub-block of the shared display buffer area by the first operating system according to the display timing of each frame of the display interface , and each cache sub-block corresponds to a frame of display data of the display interface.
  21. 根据权利要求12~18任一所述的装置,其特征在于,The device according to any one of claims 12 to 18, characterized in that:
    所述渲染模块,还用于当所述第一操作系统接收到所述第二操作系统发送的第二消息时,根据所述第二消息将所述显示界面的显示数据写入共享显示缓存区,所述第二消息用于表征所述第二操作系统已启用所述共享显示缓存区。The rendering module is further configured to, when the first operating system receives a second message sent by the second operating system, write the display data of the display interface into the shared display buffer area according to the second message , the second message is used to represent that the shared display buffer area has been enabled by the second operating system.
  22. 根据权利要求12~18任一所述的装置,其特征在于,The device according to any one of claims 12 to 18, characterized in that:
    所述显示模块,还用于由所述第二操作系统向所述第一操作系统发送所述系统切换请求后,根据存储的界面资源控制屏幕显示初始过渡画面,并在等待第一时长后,通过所述第二操作系统从所述共享显示缓存区中获取所述显示数据,并根据所述显示数据控制屏幕显示所述显示界面。The display module is further configured to, after the second operating system sends the system switching request to the first operating system, control the screen to display an initial transition picture according to the stored interface resources, and after waiting for a first time period, Acquire the display data from the shared display buffer area by using the second operating system, and control the screen to display the display interface according to the display data.
  23. 一种终端设备,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1至11任一所述的方法。A terminal device, characterized in that it 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 can realize any one of claims 1 to 11. the method described.
  24. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至11任一所述的方法。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 method according to any one of claims 1 to 11 is implemented.
PCT/CN2022/076335 2021-03-12 2022-02-15 Interface display method and apparatus, and terminal device and computer-readable storage medium WO2022188600A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110267350.4A CN115080158A (en) 2021-03-12 2021-03-12 Interface display method and device, terminal equipment and computer readable storage medium
CN202110267350.4 2021-03-12

Publications (1)

Publication Number Publication Date
WO2022188600A1 true WO2022188600A1 (en) 2022-09-15

Family

ID=83226336

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/076335 WO2022188600A1 (en) 2021-03-12 2022-02-15 Interface display method and apparatus, and terminal device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115080158A (en)
WO (1) WO2022188600A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826898B (en) * 2023-01-03 2023-04-28 南京芯驰半导体科技有限公司 Cross-screen display method, system, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025119A1 (en) * 2003-01-21 2005-02-03 Nextio Inc. Switching apparatus and method for providing shared I/O within a load-store fabric
CN104731721A (en) * 2015-02-10 2015-06-24 深圳酷派技术有限公司 Sharing method and device for memory for display
CN105550002A (en) * 2015-12-28 2016-05-04 北京元心科技有限公司 interface display method based on system switching and intelligent terminal
CN105573753A (en) * 2015-12-11 2016-05-11 北京元心科技有限公司 Multi-system switching method and device
CN105677315A (en) * 2015-12-28 2016-06-15 北京元心科技有限公司 interface display method of multiple operating systems and intelligent terminal

Family Cites Families (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996012255A1 (en) * 1994-10-12 1996-04-25 Technical Maintenance Corporation Intelligent digital audiovisual playback system
JP4072271B2 (en) * 1999-02-19 2008-04-09 株式会社日立製作所 A computer running multiple operating systems
US6763226B1 (en) * 2002-07-31 2004-07-13 Computer Science Central, Inc. Multifunctional world wide walkie talkie, a tri-frequency cellular-satellite wireless instant messenger computer and network for establishing global wireless volp quality of service (qos) communications, unified messaging, and video conferencing via the internet
JP4683384B2 (en) * 2004-09-22 2011-05-18 株式会社ソニー・コンピュータエンタテインメント Memory control method, graphic processor, and information processing apparatus
US20060101116A1 (en) * 2004-10-28 2006-05-11 Danny Rittman Multifunctional telephone, walkie talkie, instant messenger, video-phone computer, based on WiFi (Wireless Fidelity) and WiMax technology, for establishing global wireless communication, network and video conferencing via the internet
CN100552633C (en) * 2006-07-25 2009-10-21 株式会社Ntt都科摩 A plurality of operating system switching controls and computer system
CN101615123A (en) * 2008-06-26 2009-12-30 比亚迪股份有限公司 A kind of bootstrap technique of mobile terminal operating system and portable terminal
CN101493783A (en) * 2009-02-11 2009-07-29 魏新成 Method for integrating two operating system desktops in one computer screen
CN101907981B (en) * 2009-06-05 2012-10-10 联想(北京)有限公司 Data processing equipment and display method thereof
US9348633B2 (en) * 2009-07-20 2016-05-24 Google Technology Holdings LLC Multi-environment operating system
CN102053874B (en) * 2009-10-27 2013-01-02 英业达股份有限公司 Method for protecting standby data
CN102236548A (en) * 2010-04-30 2011-11-09 深圳市先阳软件技术有限公司 Method and system for designing industrial control software interface based on linux
CN102135910B (en) * 2011-03-03 2014-05-14 威盛电子股份有限公司 Method for switching operating systems and electronic device using same
KR101725247B1 (en) * 2011-05-27 2017-04-10 엘지전자 주식회사 Mobile terminal and Method for controlling mode thereof
CN102810071B (en) * 2011-05-30 2015-01-28 联想(北京)有限公司 Control method, control device and computer
KR101819506B1 (en) * 2011-06-28 2018-01-17 엘지전자 주식회사 Mobile terminal and Method for controlling display thereof
CN103092635B (en) * 2011-10-31 2016-03-02 联想(北京)有限公司 Method of operating and electronic equipment
CN103049071B (en) * 2011-10-17 2016-03-30 联想(北京)有限公司 The method for handover control of shared device output attribute, electronic equipment and portable terminal device
CN102413246B (en) * 2011-11-29 2013-11-13 宇龙计算机通信科技(深圳)有限公司 Method for switching sharing application between multiple systems and mobile terminal
US9582287B2 (en) * 2012-09-27 2017-02-28 Intel Corporation Processor having multiple cores, shared core extension logic, and shared core extension utilization instructions
CN104050020A (en) * 2013-03-15 2014-09-17 宇宙互联有限公司 Electronic device with operating system sharing control function, and system and method
CN104050019A (en) * 2013-03-15 2014-09-17 宇宙互联有限公司 Electronic device with operating system share control function, and system and method
CN104697513B (en) * 2013-12-10 2017-12-22 惠州市德赛西威汽车电子股份有限公司 multimedia navigation instrument
CN105204931B (en) * 2014-06-11 2019-03-15 联发科技(新加坡)私人有限公司 Low-power consumption wearable device and its multiple operating system switching, communication and management method
US20170269939A1 (en) * 2014-08-25 2017-09-21 Hewlett-Packard Development Company, L.P. Selection of an operating system
CN104239165A (en) * 2014-09-01 2014-12-24 深圳市中兴移动通信有限公司 Mobile terminal as well as method and device for treating tasks of two systems of mobile terminal
CN105653969B (en) * 2015-04-27 2018-05-15 宇龙计算机通信科技(深圳)有限公司 Data processing method, device and electronic equipment
CN105550042B (en) * 2015-07-29 2018-11-30 宇龙计算机通信科技(深圳)有限公司 Synchronous method and user terminal are applied when switching between a kind of multiple domain
CN105260664B (en) * 2015-09-24 2018-05-15 宇龙计算机通信科技(深圳)有限公司 Method for security protection and terminal are applied between a kind of multisystem
CN105242856B (en) * 2015-10-29 2019-02-15 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal multisystem data sharing
CN105653336A (en) * 2015-12-30 2016-06-08 惠州市德赛西威汽车电子股份有限公司 Method for integrating application under double operating systems
CN105718265B (en) * 2016-01-21 2019-10-11 浙江慧脑信息科技有限公司 A kind of the block form nested software design and programmed method of tape label
US9746895B2 (en) * 2016-01-22 2017-08-29 Microsoft Technology Licensing, Llc Use of volatile memory as non-volatile memory
CN107807847B (en) * 2016-09-09 2022-04-29 华为技术有限公司 Application process management method and terminal equipment
US10534725B2 (en) * 2017-07-25 2020-01-14 International Business Machines Corporation Computer system software/firmware and a processor unit with a security module
CN109783245B (en) * 2017-11-13 2023-07-18 厦门雅迅网络股份有限公司 Data interaction method and system based on dual-system shared memory
CN108170544B (en) * 2017-12-29 2020-08-28 中国人民解放军国防科技大学 Shared data dynamic updating method for data conflict-free program
CN111049940A (en) * 2018-10-19 2020-04-21 上海伴我科技有限公司 Configuration method of communication resources, navigation method of user interface and electronic equipment
CN109447048B (en) * 2018-12-25 2020-12-25 苏州闪驰数控系统集成有限公司 Artificial intelligence early warning system
CN110502928B (en) * 2019-08-28 2022-03-29 上海金卓科技有限公司 Dual operating system, working state control method, device and storage medium
CN110569075B (en) * 2019-09-12 2020-10-02 浙江立为信息科技有限公司 Switching method of multiple operating systems
CN110990321A (en) * 2019-12-27 2020-04-10 歌尔科技有限公司 Multi-operating system equipment
CN111327589B (en) * 2020-01-19 2021-09-10 腾讯科技(深圳)有限公司 Resource sharing method and device, computer readable storage medium and computer equipment
CN111966311B (en) * 2020-07-15 2024-04-26 北京视博云信息技术有限公司 Display setting method and device for cloud game, readable storage medium and equipment
CN112130911A (en) * 2020-08-28 2020-12-25 山东云海国创云计算装备产业创新中心有限公司 Data interaction method, device and system, electronic equipment and storage medium
CN112423051B (en) * 2020-11-03 2022-09-13 Oppo广东移动通信有限公司 Shared screen switching method, device, terminal and storage medium
CN115617223A (en) * 2021-07-12 2023-01-17 广州视源电子科技股份有限公司 Switching control method and device, interactive intelligent panel and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025119A1 (en) * 2003-01-21 2005-02-03 Nextio Inc. Switching apparatus and method for providing shared I/O within a load-store fabric
CN104731721A (en) * 2015-02-10 2015-06-24 深圳酷派技术有限公司 Sharing method and device for memory for display
CN105573753A (en) * 2015-12-11 2016-05-11 北京元心科技有限公司 Multi-system switching method and device
CN105550002A (en) * 2015-12-28 2016-05-04 北京元心科技有限公司 interface display method based on system switching and intelligent terminal
CN105677315A (en) * 2015-12-28 2016-06-15 北京元心科技有限公司 interface display method of multiple operating systems and intelligent terminal

Also Published As

Publication number Publication date
CN115080158A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
JP6377263B2 (en) Method, apparatus, storage medium, and device for providing screenshot service in terminal device
WO2022188600A1 (en) Interface display method and apparatus, and terminal device and computer-readable storage medium
CN111522620B (en) Full liquid crystal instrument of quick demonstration and high frame rate of rendering based on two process HMI
US20230054174A1 (en) Preloading of applications and in-application content in user devices
EP3716637A1 (en) Television standby and startup method, television and computer-readable storage medium
KR102606693B1 (en) Electronic device and method for controlling operation thereof
JP6730325B2 (en) Terminal switching display method and terminal
US20230324974A1 (en) Method for system switching, wearable device, and storage medium
US20120291043A1 (en) Minimizing Resource Latency Between Processor Application States In A Portable Computing Device By Using A Next-Active State Set
US10002589B2 (en) Retaining user selected screen area on user equipment
WO2022252906A1 (en) Interface display method and apparatus, terminal device, and computer readable storage medium
CN107539239A (en) For starting the method and system of automotive electronics in vehicle electronic control unit
CN110377140A (en) Method, apparatus, terminal and the storage medium of wake operation system
US10936365B2 (en) Data processing systems
TW202243714A (en) Method of displaying information, device, terminal, storage medium and computer program product
JP3823475B2 (en) Data processing method, recording medium, and data processing apparatus
WO2021121142A1 (en) Method for controlling animation refresh request, device, computer apparatus, and storage medium
WO2024032138A1 (en) Switching method, switching apparatus, electronic device, and computer-readable storage medium
CN113835760A (en) System starting method, electronic device and storage medium
JP2015158751A (en) Plotting method, plotting device, and program
CN116761032B (en) Video playing method, readable medium and electronic device
US20240045702A1 (en) User interface display method and apparatus, device, and storage medium
WO2023124554A1 (en) Application starting method and apparatus, and device and storage medium
WO2023116236A1 (en) Application starting method and apparatus, and device and storage medium
CN115421681A (en) Image display method for intersystem switching, intelligent wearable device and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1