CN115080158B - Interface display method, device, terminal equipment and computer readable storage medium - Google Patents
Interface display method, device, terminal equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN115080158B CN115080158B CN202110267350.4A CN202110267350A CN115080158B CN 115080158 B CN115080158 B CN 115080158B CN 202110267350 A CN202110267350 A CN 202110267350A CN 115080158 B CN115080158 B CN 115080158B
- Authority
- CN
- China
- Prior art keywords
- display
- operating system
- interface
- shared
- display data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 102
- 230000008569 process Effects 0.000 claims abstract description 42
- 238000009877 rendering Methods 0.000 claims abstract description 18
- 238000002360 preparation method Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 15
- 230000007704 transition Effects 0.000 claims description 10
- 230000000903 blocking effect Effects 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 31
- 238000010586 diagram Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 16
- 238000012545 processing Methods 0.000 description 9
- 238000012790 confirmation Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000000007 visual effect Effects 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000009532 heart rate measurement Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Digital Computer Display Output (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及计算机技术领域,具体涉及一种界面显示方法、装置、终端设备及计算机可读存储介质。The present application relates to the field of computer technology, and in particular to an interface display method, device, terminal equipment and computer-readable storage medium.
背景技术Background technique
为了满足更多用户对于终端设备的不同需求,目前市面上已出现了很多支持多个操作系统的终端设备,终端设备可安装有多个操作系统,在用户使用的功能较少的时候,终端设备可选择运行功耗较低的操作系统,并在用户有需求时运行功能丰富但功耗较高的操作系统,提高终端设备的续航能力。但目前的终端设备在进行操作系统切换时,由于切换过程的时间较长,导致终端设备的画面存在卡顿及显示不连续等情况。In order to meet the different needs of more users for terminal devices, many terminal devices that support multiple operating systems have appeared on the market. Terminal devices can be installed with multiple operating systems. When users use fewer functions, terminal devices can choose to run operating systems with lower power consumption, and run operating systems with rich functions but higher power consumption when users have needs, thereby improving the endurance of terminal devices. However, when current terminal devices switch operating systems, the switching process takes a long time, resulting in freezes and discontinuous displays on the terminal device screen.
发明内容Summary of the invention
本申请实施例公开了一种界面显示方法、装置、终端设备及计算机可读存储介质,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况。The embodiments of the present application disclose an interface display method, apparatus, terminal device and computer-readable storage medium, which can greatly improve the situation of screen freeze or discontinuous display when switching operating systems.
本申请实施例公开了一种界面显示方法,应用于终端设备,所述方法包括:The present application embodiment 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 a system switching request sent by a second operating system, the first operating system loads a first display module in the first operating system according to the system switching request, wherein the second operating system is an operating system currently running in the terminal device;
在所述第一操作系统加载所述第一显示模块的过程中,所述第一操作系统对显示界面进行渲染,并将所述显示界面的显示数据写入共享显示缓存区,所述共享显示缓存区为所述第一操作系统与所述第二操作系统之间共享的显示缓存区;During the process of the first operating system loading the first display module, the first operating system renders a display interface and writes display data of the display interface into a 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 second operating system obtains 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 the first operating system loading the first display module, and write display data of the display interface into a shared display buffer area, wherein 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 used 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, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method described above.
本申请实施例公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法。An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described above is implemented.
本申请实施例公开的界面显示方法、装置、终端设备及计算机可读存储介质,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据该系统切换请求加载第一操作系统中的第一显示模块,在第一操作系统加载第一显示模块的过程中,第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。The interface display method, apparatus, terminal device and computer-readable storage medium disclosed in the embodiments of the present application, when the first operating system in the terminal device receives a 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 the first operating system loading the first display module, the first operating system renders the display interface and writes the display data of the display interface into a shared display cache area. By establishing a shared display cache area between the first operating system and the second operating system, when the system is switched, the first operating system to be switched in renders the display interface and writes it into the shared display cache area, and then the second operating system to be switched out obtains the display data from the shared display cache area and controls the screen display. There is no 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. This can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched, and achieve continuous, smooth and seamless switching of the interface display.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1为一个实施例中界面显示方法的应用场景图;FIG1 is an application scenario diagram of an interface display method in one embodiment;
图2为一个实施例中终端设备的系统架构图;FIG2 is a system architecture diagram of a terminal device in one embodiment;
图3为一个实施例中界面显示方法的流程图;FIG3 is a flow chart of an interface display method in one embodiment;
图4为一个实施例中终端设备的屏幕显示示意图;FIG4 is a schematic diagram of a screen display of a terminal device in one embodiment;
图5为另一个实施例中界面显示方法的流程图;FIG5 is a flow chart of an interface display method in another embodiment;
图6为另一个实施例中界面显示方法的流程图;FIG6 is a flow chart of an interface display method in another embodiment;
图7为一个实施例中不同应用对应的显示界面的示意图;FIG7 is a schematic diagram of display interfaces corresponding to different applications in one embodiment;
图8A为一个实施例中从第二操作系统切换至第一操作系统,第二操作系统使用共享显示缓存区的时序图;FIG8A is a timing diagram of switching from the second operating system to the first operating system in one embodiment, where the second operating system uses a shared display buffer;
图8B为一个实施例中从第二操作系统切换至第一操作系统,第一操作系统使用共享显示缓存区的时序图;FIG8B is a timing diagram of switching from the second operating system to the first operating system, in which the first operating system uses a shared display buffer, in one embodiment;
图9为一个实施例中第二操作系统控制屏幕显示动态的显示界面的示意图;FIG9 is a schematic diagram of a second operating system controlling a screen to display a dynamic display interface in one embodiment;
图10为一个实施例中界面显示装置的框图;FIG10 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 one embodiment.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一操作系统称为第二操作系统,且类似地,可将第二操作系统称为第一操作系统。第一操作系统和第二操作系统两者都是操作系统,但其不是同一个的操作系统。It is 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, without departing from the scope of this application, a first operating system may be referred to as a second operating system, and similarly, a second operating system may be referred to as a first operating system. 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(安卓)系统等),也可同时安装有多个智能操作系统或是多个嵌入式系统等,终端设备上安装的具体操作系统在本申请实施例中不作限制。FIG1 is an application scenario diagram of an interface display method in an embodiment. As shown in FIG1 , the interface display method in the embodiment of the present application can be applied to a terminal device that supports multiple operating systems, and the terminal device may include but is not limited to a smart phone 10, a smart wearable device 20, a tablet computer, a laptop computer, a vehicle terminal, a PC (Personal Computer), etc. At least two operating systems may be installed in the terminal device. For example, the terminal device may be installed with an embedded operating system (such as RTOS (Real Time Operating System, real-time operating system)) and an intelligent operating system (such as IOS system, Android system, etc.), or multiple intelligent operating systems or multiple embedded systems may be installed at the same time. The specific operating system installed on the terminal device is not limited in the embodiment 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 operating systems can be run through different processors, or through different cores in the same processor.
在相关的技术中,终端在不同操作系统之间进行切换的切换过程通常包括以下几个阶段:唤醒待切入的操作系统的唤醒阶段、待切入的操作系统加载显示模块的加载阶段,若是需要启动应用,还可包括待切入的操作系统启动应用的启动阶段等,整个切换过程的耗时较长。而待切入的操作系统的界面需要在系统切换完成后,才能够正常显示,从而导致在切换过程中终端设备的画面会出现卡顿及显示不连续等情况。In related technologies, the switching process of a terminal switching between different operating systems usually includes the following stages: a wake-up stage of waking up the operating system to be switched in, a loading stage of loading a display module of the operating system to be switched in, and if an application needs to be started, a startup stage of the operating system to be switched in starting the application, etc. The entire switching process takes a long time. The interface of the operating system to be switched in can only be displayed normally after the system switching is completed, which may cause 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, apparatus, terminal device and computer-readable storage medium. By establishing a shared display cache area between a first operating system and a second operating system, when a system switch is performed, the first operating system to be switched in renders a display interface and writes display data into the shared display cache area, and then the second operating system to be switched out obtains the display data from the shared display cache area and controls the screen display. There is no need to wait for the first display module of the first operating system to be loaded before displaying the display interface rendered by the first operating system. This can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched, and achieve continuous, smooth and seamless switching of the interface display.
图2为一个实施例中终端设备的系统架构图。如图2所示,终端设备中可安装有A操作系统及B操作系统,A操作系统中可包括应用层、框架层及内核层等。其中,该应用层可安装有一个或多个应用程序。框架层中可为A操作系统的运行及应用层中各应用程序的运行提供相应的接口或服务等,可选地,该框架层可包括系统服务、双核通信服务、切换服务、界面服务等。系统服务可提供应用启动、加载及运行等应用各式的功能接口,A操作系统可通过双核通信服务与B操作系统进行通信,可通过切换服务实现操作系统切换过程中的消息控制、功能控制等,界面服务则可提供显示数据控制等的接口。内核层可包括A操作系统的内核及各种硬件驱动,例如显示驱动、摄像头驱动、传感器驱动等,A操作系统的内核可用于提供A操作系统的最基本功能。FIG2 is a system architecture diagram of a terminal device in an embodiment. As shown in FIG2 , 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, and a kernel layer, etc. Among them, the application layer may be installed with one or more applications. The framework layer may provide corresponding interfaces or services for the operation of the operating system A and the operation of each application in the application layer. Optionally, the framework layer may include system services, dual-core communication services, switching services, interface services, etc. The system service may provide various functional interfaces for applications such as application startup, loading and running. The operating system A may communicate with the operating system B through the dual-core communication service, and may realize message control, function control, etc. during the operating system switching process through the switching service. The interface service may provide interfaces for display data control, etc. The kernel layer may include the kernel of the operating system A and various hardware drivers, such as display drivers, camera drivers, sensor drivers, etc. The kernel of the operating system A may be used to provide the most basic functions of the operating system A.
B操作系统可与A操作系统类似,B操作系统也可包括有应用层、框架层及内核层等,B操作系统可通过双核通信服务与A操作系统通信,并通过切换服务实现操作系统切换过程中的消息控制、功能控制等。The B operating system may be similar to the A operating system. The B operating system may also include an application layer, a framework layer, and a kernel layer. The B operating system may communicate with the A operating system through a dual-core communication service, and implement message control, function control, etc. during the operating system switching process through a switching service.
在本申请实施例中,终端设备可在A操作系统与B操作系统之间建立共享显示缓存区,当任一操作系统接收到另一操作系统发送的系统切换请求时,待切出的操作系统可从共享显示缓存区中获取待切入的操作系统填充的显示数据,并控制屏幕进行显示。In an embodiment of the present application, the terminal device can establish a shared display cache area between operating system A and operating system B. When either operating system receives a system switching request sent by the other operating system, the operating system to be switched out can obtain the display data filled by the operating system to be switched in from the shared display cache area, and control the screen for display.
以从B操作系统切换至A操作系统为例进行说明,在A操作系统接收到B操作系统发送的系统切换请求时,A操作系统可根据该系统切换请求加载A操作系统中的显示模块,该显示模块可包括显示驱动及框架层中与显示相关的接口服务等,只有在显示模块加载完成的情况下,A操作系统才可通过显示模块控制屏幕进行显示。Taking the switching from operating system B to operating system A as an example, when operating system A receives a system switching request sent by operating system B, operating system A can load the display module in operating system A according to the system switching request. The display module may include a display driver and display-related interface services in the framework layer. Only when the display module is loaded can operating system A control the screen for display through the display module.
在A操作系统加载显示模块的过程中,A操作系统可对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,进一步地,A操作系统可通过双核通信服务将显示界面的显示数据写入B操作系统的共享显示缓存区。B操作系统可从该共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示A操作系统渲染的显示界面。在A操作系统的显示模块未完成加载前,提前由B操作系统控制屏幕显示,不需要等待A操作系统的显示模块加载完成才能显示A操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况。During the process of operating system A loading the display module, operating system A can render the display interface and write the display data of the display interface into the shared display buffer area. Furthermore, operating system A can write the display data of the display interface into the shared display buffer area of operating system B through the dual-core communication service. Operating system B can obtain the display data from the shared display buffer area and control the screen to display the display interface rendered by operating system A according to the display data. Before the display module of operating system A is loaded, operating system B controls the screen display in advance, and there is no need to wait for the display module of operating system A to be loaded before displaying the display interface rendered by operating system A, which can greatly improve the screen freeze or discontinuous display when switching operating systems.
需要说明的是,图2中仅示出了一种实施例中终端设备的系统架构图,终端设备的系统架构也可以是其它架构,在此不作限定。It should be noted that FIG. 2 only shows a system architecture diagram of a terminal device in one embodiment, and the system architecture of the terminal device may also be other architectures, which is not limited here.
如图3所示,在一个实施例中,提供一种界面显示方法,可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG3 , in one embodiment, an interface display method is provided, which can be applied to the above-mentioned terminal device. The method may include the following steps:
步骤310,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据系统切换请求加载第一操作系统中的第一显示模块。Step 310: When the first operating system in the terminal device receives a system switching request sent by the second operating system, the first operating system loads a 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 of the terminal device, that is, the operating system to be switched out, wherein the operating system running in the foreground may refer to an operating system that can directly interact with the user through a screen display interface, and 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 the operating system to be switched in. When the second operating system detects a system switching operation, it may trigger the generation of a system switching request and send the system switching request to the first operating system.
可选地,该系统切换操作可以是由用户主动触发的操作,例如用户主动进行操作系统切换、用户点击启动第一操作系统的应用等;该系统切换操作也可以是由终端设备根据实际运行情况主动触发进行的切换操作,例如,第一操作系统的应用接收到推送消息时,可向第二操作系统发送触发系统切换操作的通知,第二操作系统根据该触发系统切换操作的通知生成系统切换请求。Optionally, the system switching operation can be an operation actively triggered by the user, such as the user actively switching the operating system, the user clicking to start the application of the first operating system, etc.; the system switching operation can also be a switching operation actively triggered by the terminal device according to the actual operating conditions. For example, when the application of the first operating system receives a push message, it can send a notification triggering the system switching operation to the second operating system, and the second operating system generates a system switching request based on the notification triggering the system switching operation.
在一些实施例中,在第二操作系统运行时,第一操作系统可处于休眠状态,从而可降低终端设备的功耗,当第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统可基于该系统切换请求被唤醒,并加载第一操作系统中的第一显示模块,其中,休眠状态可指的是第一操作系统的数据存储在内存中,第一操作系统对应的处理核或处理器部分或全部断电,其它关联的硬件(如硬盘等)也可处于断电状态。该第一显示模块可包括第一操作系统中的显示驱动,以及与屏幕显示相关的接品或服务等,第一操作系统对第一显示模块进行加载可包括第一操作系统对显示驱动、与屏幕显示相关的接品或服务等进行加载,并可对显示总线控制器及屏幕等进行初始化及配置。只有在第一显示模块加载完成后,第一操作系统中渲染的显示界面才能输出到屏幕进行显示。In some embodiments, when the second operating system is running, the first operating system may be in a dormant state, thereby reducing the power consumption of the terminal device. 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 dormant state may refer to the data of the first operating system being stored in the memory, the processing core or processor corresponding to the first operating system being partially or completely powered off, and other associated hardware (such as a hard disk, etc.) may also be in a power-off state. The first display module may include a display driver in the first operating system, and connections or services related to screen display, etc. The first operating system loading the first display module may include the first operating system loading the display driver, connections or services related to screen display, etc., and may initialize and configure the display bus controller and the screen, etc. 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 , when the first operating system loads the first display module, the first operating system renders the display interface and writes the display data of the display interface into the shared display buffer area.
在相关的技术中,第一操作系统需要等待第一显示模块加载完成后,才对显示界面进行渲染,并通过第一显示模块控制屏幕进行显示,而由于第一显示模块的加载过程耗时较长,因此容易出现画面卡顿及显示不连续等情况,让用户误以为是终端设备发生系统卡顿,影响用户使用终端设备的体验。In related technologies, the first operating system needs to wait until the first display module is loaded before rendering the display interface and controlling the screen to display through the first display module. However, since the loading process of the first display module takes a long time, screen freezes and discontinuous displays are prone to occur, causing users to mistakenly believe that the terminal device has a system freeze, affecting the user's experience of using the terminal device.
在本申请实施例中,第一操作系统在加载第一显示模块的过程中,可直接对显示界面进行渲染,该显示界面可以是第一操作系统的系统界面,也可以是第一操作系统启动的应用的主界面,或是预先设置的操作系统切换的过渡界面等,但不限于此。第一操作系统对显示界面进行渲染,可得到一帧或多帧显示界面的显示数据,并将该显示数据写入共享显示缓存区。In the embodiment of the present application, the first operating system can directly render the display interface during the process of loading the first display module. The display interface can be the system interface of the first operating system, the main interface of the application started by the first operating system, or a pre-set transition interface for operating system switching, etc., but is not limited thereto. The first operating system renders the display interface to obtain one or more frames of display data of the display interface, and writes the display data into the shared display buffer area.
共享显示缓存区可为第一操作系统与第二操作系统之间共享的显示缓存区,针对该共享显示缓存区,第一操作系统及第二操作系统均具备访问权限,第一操作系统及第二操作系统均可以向共享显示缓存区中写入显示数据,也可以从共享显示缓存区中获取显示数据。The shared display cache area can be a display cache 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 to the shared display cache area. Both the first operating system and the second operating system can write display data to the shared display cache area and obtain display data from the shared display cache area.
在一些实施例中,共享显示缓存区可以是终端设备中可由第一操作系统及第二操作系统共同使用的同一块存储区域。共享显示缓存区也可以分别设置与第一操作系统对应的第一存储区域及与第二操作系统对应的第二存储区域,第一存储区域与第二存储区域可以是分别独立的存储区域,第一操作系统可通过系统间的通信方式发送显示数据至第二操作系统对应的第二存储区域,第二操作系统也可通过系统间的通信方式发送显示数据至第一操作系统对应的第一存储区域。该系统间的通信方式可以有多种不同的方式,例如,可使用双核通信服务进行通信,也可通过共享的内存总线等进行通信。In some embodiments, the shared display cache 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. The shared display cache area may 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 may be independent storage areas. The first operating system may send display data to the second storage area corresponding to the second operating system through inter-system communication, and the second operating system may also send display data to the first storage area corresponding to the first operating system through inter-system communication. There may be many different ways of communication between the systems. For example, communication may be performed using a dual-core communication service or through a shared memory bus.
第一操作系统可通过系统间的通信方式,将渲染得到的显示界面的显示数据发送到第二操作系统的共享显示缓存区中,由第二操作系统的共享显示缓存区存储该显示数据。The first operating system may send the display data of the rendered display interface to the shared display buffer area of the second operating system through the communication between systems, and the shared display buffer area of the second operating system stores the display data.
步骤330,第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示显示界面。Step 330: The second operating system obtains display data from the shared display buffer area, and controls the screen to display a 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 in operation, the second display module in the second operating system can send the display data to the screen for display without loading, thereby achieving the effect of immediately displaying the display interface rendered by the first operating system, and ensuring the continuity of the display screen.
若第一操作系统持续性地向第二操作系统的共享显示缓存区写入显示数据,第二操作系统可依次从共享显示缓存区中获取显示数据,并控制屏幕持续刷新并显示获取的显示数据对应的显示界面。If the first operating system continuously writes display data to the shared display buffer of the second operating system, the second operating system can sequentially obtain display data from the shared display buffer, and control the screen to continuously refresh and display a display interface corresponding to the obtained display data.
图4为一个实施例中终端设备的屏幕显示示意图。示例性地,如图4所示,界面402为当前第二操作系统显示的界面,界面404为第一操作系统的系统界面。在第一操作系统接收到第二操作系统发送的系统切换请求后,在加载第一显示模块的过程中,可对界面404进行渲染,并将渲染得到的界面404的显示数据写入第二操作系统的共享显示缓存区。第二操作系统可从共享显示缓存区中获取界面404的显示数据,并根据该显示数据控制屏幕显示界面404。不需要等到第一操作系统加载完成第一显示模块后,终端设备的屏幕才能够显示界面404,而是由第二操作系统提示显示界面404,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。FIG4 is a schematic diagram of the screen display of a terminal device in an embodiment. Exemplarily, as shown in FIG4 , interface 402 is the interface currently displayed by the second operating system, and 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, interface 404 can be rendered, and the display data of interface 404 obtained by rendering can be written into the shared display buffer of the second operating system. The second operating system can obtain the display data of interface 404 from the shared display buffer, and control the screen display interface 404 according to the display data. There is no need to wait until the first operating system completes loading the first display module before the screen of the terminal device can display interface 404. Instead, the second operating system prompts the display interface 404, which can greatly improve the screen freeze or discontinuous display when switching operating systems, and realize continuous, smooth and seamless switching of interface display.
在一些实施例中,当第一操作系统中的第一显示模块加载完成时,第一操作系统可停止将渲染的显示界面的显示数据写入共享显示缓存区,并通过该第一显示模块控制屏幕对渲染的显示界面进行显示。在第一显示模块加载完成后,终端设备可切换回第一操作系统的正常显示流程,第一操作系统可不再向第二操作系统的共享显示缓存区写入显示数据,而是直接通过第一显示模块将渲染的显示界面的显示数据发送到屏幕,并控制屏幕进行显示。In some embodiments, when the first display module in the first operating system is loaded, the first operating system may stop writing the display data of the rendered display interface to the shared display buffer area, and control the screen to display the rendered display interface through the first display module. After the first display module is loaded, the terminal device may switch back to the normal display process of the first operating system, and the first operating system may no longer write display data to the shared display buffer area of the second operating system, but directly send the display data of the rendered display interface to the screen through the first display module, and control 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, and the first message may be used to notify the second operating system that the switch is complete. The second operating system may stop acquiring display data from the shared display buffer area according to the first message and enter a dormant state. After receiving the first message sent by the first operating system, the second operating system may stop acquiring display data from the shared display buffer area and stop controlling the screen for display. The first operating system takes over the control authority of the screen and returns to the normal screen display process of the first operating system.
需要说明的是,本申请实施例中仅对从第二操作系统切换到第一操作系统的界面显示进行说明,从第一操作系统切换到第二操作系统的方法流程可与从第二操作系统切换到第一操作系统的方法流程类似,在此不再重复进行赘述。此外,终端设备中还可安装有第三操作系统、第四操作系统,任意两个操作系统之间的切换均可以参照从第二操作系统切换到第一操作系统的方法流程说明,本申请实施例并不对具体的操作系统进行限制。It should be noted that, in the embodiment of the present application, only the interface display of switching from the second operating system to the first operating system is described, and the method flow of switching from the first operating system to the second operating system can be similar to the method flow of switching from the second operating system to the first operating system, and will not be 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 method flow description of switching from the second operating system to the first operating system, and the embodiment of the present application does not limit the specific operating system.
在本申请实施例中,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据该系统切换请求加载第一操作系统中的第一显示模块,在第一操作系统加载第一显示模块的过程中,第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In an embodiment of the present application, when the first operating system in the terminal device receives a 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 the first operating system loading the first display module, the first operating system renders the display interface and writes the display data of the display interface into a shared display cache. By establishing a shared display cache between the first operating system and the second operating system, when the system is switched, the first operating system to be switched in renders the display interface and writes it into the shared display cache, and then the second operating system to be switched out obtains the display data from the shared display cache and controls the screen display. There is no 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. This can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched, and achieve continuous, smooth and seamless switching of the interface display.
如图5所示,在一个实施例中,提供另一种界面显示方法,可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG5 , in one embodiment, another interface display method is provided, which can be applied to the above-mentioned terminal device. The method may include the following steps:
步骤502,当终端设备中的第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统根据系统切换请求唤醒系统服务。Step 502: When the first operating system in the terminal device receives a 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. Each service may provide a variety of interfaces for applications in the application layer, so that each application can use the system functions 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 for the system layer of the first operating system, such as power management services, window management services, etc., but is not limited thereto.
在终端设备未运行第一操作系统时,第一操作系统可处于休眠状态,当第一操作系统接收到第二操作系统发送的系统切换请求时,第一操作系统可根据该系统切换请求唤醒系统服务。When the terminal device is not running the first operating system, the first operating system may be in a dormant state. When the first operating system receives a system switching request sent by the second operating system, the first operating system may wake up the system service according to the system switching request.
示例性地,以第一操作系统为Android操作系统为例,在Android操作系统接收到其它操作系统发送物系统切换请求时,可创建wakelock对AMS(Activity ManagerService,活动管理服务)、WMS(Window Manager Service,窗口管理服务)和/或PMW(PowerManage Service,电源管理服务)等系统服务进行唤醒,该wakelock为Android操作系统中的一种锁机制,只要持有该wakelock,Android操作系统就无法进入休眠状态。Exemplarily, taking the first operating system as the Android operating system, when the Android operating system receives a system switching request sent by other operating systems, a wakelock can be created to wake up system services such as AMS (Activity Manager Service), WMS (Window Manager Service) and/or PMW (PowerManage Service). The wakelock is a lock mechanism in the Android operating system. As long as the wakelock is held, the Android operating system cannot enter a 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 establishing, controlling and managing the interface. The loading instruction can be used to instruct the interface service 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. The preparation instruction is used to instruct the system service to render the display interface.
在界面服务接收到加载指令后,由于第一显示模块的加载耗时较长,界面服务可立即向系统服务返回准备指令,该准备指令可用于告知系统服务第一显示模块已“准备就绪”,在界面服务发送准备指令后,可异常继续对第一显示模块进行加载。在系统服务接收到界面服务返回的准备指令后,第一操作系统可正常开始请求对显示界面进行渲染。After the interface service receives the loading instruction, since the loading of the first display module takes a long time, the interface service can immediately return a preparation instruction to the system service, and the preparation instruction can be used to inform the system service that the first display module is "ready". After the interface service sends the preparation instruction, the first display module can be abnormally continued to be loaded. After the system service receives the preparation instruction returned by the interface service, the first operating system can normally start to request to render the display interface.
示例性地,以第一操作系统为Android操作系统为例,在Android操作系统的AMS、WMS、PMW等系统服务被唤醒后,可通过SurfaceFlinger.setDisplayPowerMode调用SurfaceFl inger,使SurfaceFlinger加载第一显示模块。该SurfaceFlinger即为Android操作系统中的界面服务,可用于控制界面显示。For example, taking the first operating system as an Android operating system, after the system services such as AMS, WMS, and PMW of the Android operating system are awakened, SurfaceFlinger can be called through SurfaceFlinger.setDisplayPowerMode to enable SurfaceFlinger to load the first display module. The SurfaceFlinger is an interface service in the Android operating system and can be used to control the interface display.
步骤508,第一操作系统通过切换服务向界面服务发送启动共享显示缓存区消息,该启动共享显示缓存区消息用于指示界面服务将渲染的显示界面的显示数据写入共享显示缓存区。Step 508: The first operating system sends a start shared display buffer area message to the interface service through the switching service. The start shared display buffer area message is used to instruct the interface service to write the display data of the rendered display interface into the shared display buffer area.
第一操作系统中的切换服务可用于对系统之间的切换功能进行控制。在界面服务返回准备指令,且第一操作系统开始对显示界面进行渲染后,切换服务可向界面服务发送启动共享显示缓存区消息,界面服务在接收到该启动共享显示缓存区消息后,可根据该启动共享显示缓存区消息将渲染的显示界面的显示数据写入第二操作系统的共享显示缓存区。进一步地,界面服务可通过双核通信服务发送到第二操作系统,写入第二操作系统中的共享显示缓存区。The switching service in the first operating system can be used to control the switching 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 can send a message to start the shared display buffer area to the interface service. After receiving the message, the interface service can write the display data of the rendered display interface into the shared display buffer area of the second operating system according to the message. Furthermore, 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 in the second operating system.
在界面服务对渲染得到的显示数据进行控制的同时,界面服务也在进行第一显示模块的加载,界面服务可分别建立两个线程执行界面服务中的不同任务,通过第一线程加载第一显示模块,通过第二线程将显示数据发送到第二操作系统的共享显示缓存区,通过双线程的工作方式既不会互相影响,且能够保证二者同时进行,提高界面服务的工作效率。While the interface service is controlling the rendered display data, the interface service is also loading the first display module. The interface service can establish two threads to execute different tasks in the interface service. The first display module is loaded through the first thread, and the display data is sent to the shared display buffer area of the second operating system through the second thread. The dual-thread working mode will not affect each other and can ensure that the two are carried out simultaneously, thereby improving the working efficiency of the interface service.
在一些实施例中,步骤将显示界面的显示数据写入共享显示缓存区,可包括:当第一操作系统接收到第二操作系统发送的第二消息时,根据第二消息将显示界面的显示数据写入共享显示缓存区,第二消息用于表征第二操作系统已启用共享显示缓存区。In some embodiments, the step of writing display data of the display interface into a shared display cache may include: when the first operating system receives a second message sent by the second operating system, writing the display data of the display interface into the shared display cache according to the second message, and the second message is used to indicate that the second operating system has enabled the shared display cache.
在第二操作系统向第一操作系统发送系统切换请求,并接收到第一操作系统回复的确认消息后,第二操作系统可准备启用共享显示缓存区对屏幕进行刷新。第二操作系统可通过双核通信服务向第一操作系统发送第二消息,第一操作系统在接收到该第二消息后,确定第二操作系统已完成切换准备,并通过切换服务向界面服务发送启动共享显示缓存区消息,由界面服务将显示界面的显示数据写入第二操作系统的共享显示缓存区中。第一操作系统在接收到表征第二操作系统已启用共享显示缓存区的第二消息后,才向共享显示缓存区中写入显示数据,可保证第二操作系统能够正常、准确地从共享显示缓存区中读取显示数据并控制屏幕进行显示,进一步保证了画面显示的流畅性。After the second operating system sends a system switching request to the first operating system and receives a confirmation message from the first operating system, the second operating system can prepare to enable the shared display cache to refresh the screen. The second operating system can send a 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 a message to start the shared display cache to the interface service through the switching service. The interface service writes the display data of the display interface into the shared display cache of the second operating system. The first operating system writes the display data to the shared display cache only after receiving the second message indicating that the second operating system has enabled the shared display cache. This ensures that the second operating system can normally and accurately read the display data from the shared display cache and control the screen for display, further ensuring the smoothness of the screen display.
步骤510,第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示显示界面。Step 510: The second operating system obtains display data from the shared display buffer area, and controls the screen to display a display interface according to the display data.
步骤510可参照上述实施例中步骤330的相关描述,在此不再赘述。Step 510 may refer to the relevant description of step 330 in the above embodiment, which will not be repeated here.
在一些实施例中,在第二操作系统向第一操作系统发送系统切换请求后,可根据存储的界面资源控制屏幕显示初始过渡画面,可选地,该根据存储的界面资源可以是系统切换过程中第一帧显示的显示界面。在第二操作系统在等待第一时长后,可从共享显示缓存区中获取第一操作系统写入的显示数据,并根据该显示数据控制屏幕显示显示界面。该第一时长可根据实际需求进行设置,例如30毫秒、20毫秒,从而可减少第二操作系统等待第一操作系统渲染并写入第一帧显示界面的显示数据的时间,更好地实现画面连续及无感切换。且第二操作系统仅存储初始过渡画面的界面资源,不会过多占用第二操作系统的存储空间,保证了第二操作系统的系统性能。In some embodiments, after the second operating system sends a system switching request to the first operating system, the screen can be controlled to display an initial transition screen according to the stored interface resources. Optionally, the stored interface resources can be the display interface displayed in the first frame during the system switching process. After waiting for the first duration, 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 display interface according to the display data. The first duration can be set according to actual needs, such as 30 milliseconds or 20 milliseconds, so as to reduce the time the second operating system waits for the first operating system to render and write the display data of the first frame display interface, and better realize the continuity and seamless switching of the screen. In addition, the second operating system only stores the interface resources of the initial transition screen, which will 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 shared display cache message to the interface service through the switching service. The stop shared display cache message is used to instruct the interface service to stop writing the display data of the rendered display interface into the shared display cache, and control the screen to display the rendered display interface through the first display module.
当第一操作系统中的第一显示模块加载完成时,第一操作系统可停止将渲染的显示界面的显示数据写入共享显示缓存区。在一些实施例中,第一操作系统中的切换服务在监听到第一显示模块已加载完成后,可向界面服务发送停止共享显示缓存区消息。界面服务在接收到该停止共享显示缓存区消息后,可根该停止共享显示缓存区消息停止将渲染的显示界面的显示数据写入共享显示缓存区,并恢复至正常的显示流程,界面服务可通过第一显示模块控制屏幕对渲染的显示界面进行显示。When the first display module in the first operating system is loaded, the first operating system may stop writing the display data of the rendered display interface into the shared display buffer. 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 shared display buffer message to the interface service. After receiving the stop shared display buffer message, the interface service may stop writing the display data of the rendered display interface into the shared display buffer according to the stop shared display buffer message, and resume the normal display process. The interface service may control the screen to display the rendered display interface through the first display module.
可选地,第一操作系统的切换服务还可通过双核通信服务向第二操作系统发送第一消息,表示第一显示模块已加载完成,第二操作系统可根据该第一消息停止从共享显示缓存区中获取显示数据,并进入休眠状态。Optionally, the switching service of the first operating system may also send a first message to the second operating system via the dual-core communication service, indicating that the first display module has been loaded. The second operating system may stop obtaining display data from the shared display buffer area according to the first message and enter a sleep state.
在本申请实施例中,通过第一操作系统及第二操作系统中的多个服务互相配合控制系统切换过程中的界面显示,实现了在进行系统切换时,提前由第二操作系统对第一操作系统渲染的显示界面进行显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In an embodiment of the present application, multiple services in the first operating system and the second operating system cooperate with each other to control the interface display during the system switching process, so that when the system is switched, the display interface rendered by the first operating system is displayed in advance by the second operating system, and there is no 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. This can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched, and achieve continuous, smooth and seamless switching of the interface display.
如图6所示,在一个实施例中,提供另一种界面显示方法,该方法可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG6 , 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:
步骤602,在第二操作系统检测到针对目标应用的应用启动操作时,响应应用启动操作,向第一操作系统发送系统切换请求,该系统切换请求包括目标应用的应用标识。Step 602: When the second operating system detects an application startup operation for a 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 an application identifier of the target application.
终端设备在运行第二操作系统时,第二操作系统的界面中可显示有一个或多个目标应用的应用图标,该目标应用可指的是需要由第一操作系统运行的应用,例如,第一操作系统为功能丰富但功耗较高的操作系统,则目标应用可以是游戏应用、视频应用等需要复杂功能的应用;目标应用也可以是安装在第一操作系统中的应用。用户可在第二操作系统的界面中触发启动目标应用,在第二操作系统检测到针对该目标应用的应用启动操作时,可根据该目标应用的应用标识生成系统切换请求,并向第一操作系统发送该系统切换请求。该系统切换请求可用于请求第一操作系统启动该目标应用,应用标识可包括但不限于应用编号、应用的程序包包名、应用的版本号等信息。When the terminal device is running the second operating system, one or more application icons of the target application may be displayed in the interface of the second operating system. The target application may refer to an application that needs to be run by the first operating system. For example, if the first operating system is a function-rich but high-power operating system, the target application may be a game application, a video application, or other application that requires complex functions; the target application may also be an application installed in the first operating system. The user may trigger the start of the target application in the interface of the second operating system. When the second operating system detects an application start operation for the target application, it may generate a system switching request based on the application identifier of the target application and send the system switching request to the first operating system. The system switching request may be used to request the first operating system to start the target application. The application identifier may include, but is 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 simultaneously loads the first display module in the first operating system.
第一操作系统接收到系统切换请求后,可对系统切换请求进行解析,得到目标应用的应用标识,并根据该应用标识启动并加载目标应用,同时可同步加载第一操作系统中的第一显示模块。在一些实施例中,第一操作系统根据系统切换请求唤醒系统服务后,系统服务可创建活动进程,并在该活动进程中启动并加载目标应用,同时可通过界面服务加载第一显示模块。After receiving the system switching request, the first operating system may parse the system switching request to obtain the application identifier of the target application, and start and load the target application according to the application identifier, and simultaneously load the first display module in the first operating system. In some embodiments, after the first operating system wakes up the system service according to the system switching request, the system service may create an active process, and start and load the target application in the active process, and simultaneously load the first display module through the interface service.
步骤606,在第一操作系统启动并加载目标应用,且同步加载第一显示模块的过程中,第一操作系统对与目标应用对应的显示界面进行渲染,并将该显示界面的显示数据写入共享显示缓存区。Step 606, when the first operating system starts and loads the target application and synchronously loads 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 the shared display buffer area.
第一操作系统渲染的显示界面可以是与目标应用对应的显示界面,例如,该显示界面可以是目标应用的启动界面、主界面等,不同应用对应的显示界面可不同,可由各个应用的开发商设计。在目标应用启动并加载,以及第一显示模块加载的过程中,第一操作系统可通过渲染引擎等对启动的目标应用对应的显示界面进行渲染,得到该目标应用对应的显示界面的显示数据。界面服务可将渲染得到显示数据发送到第二操作系统中的共享显示缓存区。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. The display interfaces corresponding to different applications may be different and may be designed by the developers of each application. 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 started 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 obtains 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 display data from the shared display buffer area, and 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, so there is no need to wait for the first operating system to start and load the target application, and load the first display module, before the display interface can be displayed, so as to achieve continuous and seamless system switching. Different applications are started, and different display interfaces are displayed, which can improve the richness of the interface and the visual effect of the interface display.
图7为一个实施例中不同应用对应的显示界面的示意图。示例性地,如图7所示,当用户触发启动需要在第一操作系统运行的通话应用时,第二操作系统可根据从共享显示缓存区中获取的显示数据,控制屏幕显示界面702;当用户触发启动需要在第一操作系统运行的心率测量应用时,第二操作系统可根据从共享显示缓存区中获取的显示数据,控制屏幕显示界面704;当用户触发启动需要在第一操作系统运行的睡眠监控应用时,第二操作系统可根据从共享显示缓存区中获取的显示数据,控制屏幕显示界面706,启动的应用不同,可显示不同的界面。FIG7 is a schematic diagram of display interfaces corresponding to different applications in an embodiment. For example, as shown in FIG7, when a user triggers the start of a call 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 area; when a user triggers the start of a heart rate measurement application that needs to be 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 area; when a user triggers the start of a sleep monitoring application that needs to be run on the first operating system, the second operating system can control the screen display interface 706 according to the display data obtained from the shared display buffer area. Different applications can be started and different interfaces can be displayed.
当第一操作系统监听到目标应用启动并加载完成,且第一显示模块加载完成,则第一操作系统可停止将渲染的显示界面的显示数据写入共享显示缓存区,并通过第一显示模块控制屏幕对目标应用的界面进行显示。而第二操作系统可停止从共享显示缓存区中获取显示数据,并进入休眠状态,完成系统切换,用户可正常使用目标应用。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 control the screen to display the interface of the target application through the first display module. The second operating system can stop obtaining display data from the shared display buffer area and enter a dormant state, completing the system switch, 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 fixedly designed transition display interface. For any application that is launched, the transition display interface may be consistent, or the user may select a favorite image as the transition display interface, which will be displayed each time the operating system is switched.
在本申请实施例中,第一操作系统可根据启动的目标应用,渲染该目标应用对应的显示界面,并在未完成目标应用启动及加载的过程中,先由第二操作系统显示该显示界面,减少用户视觉上等待的时间,防止出现给用户造成系统卡顿的误觉,实现了界面显示连续、平滑的无感切换。且启动的应用不同,显示的显示界面也不同,能够提高界面的丰富性,提高界面显示的视觉效果。In the embodiment of the present application, the first operating system can render the display interface corresponding to the target application according to the launched target application, and the second operating system will first display the display interface when the target application is not launched and loaded, thereby reducing the visual waiting time of the user, preventing the user from having the false impression of system freeze, and achieving continuous, smooth and seamless switching of the interface display. Different launched applications will display different display interfaces, which can improve the richness of the interface and the visual effect of the interface display.
为了更好地说明本申请实施例中第一操作系统与第二操作系统之间的通信交互流程,请参考图8A及图8B。图8A为一个实施例中从第二操作系统切换至第一操作系统,第二操作系统使用共享显示缓存区的时序图;图8B为一个实施例中从第二操作系统切换至第一操作系统,第一操作系统使用共享显示缓存区的时序图。To better illustrate the communication interaction process between the first operating system and the second operating system in the embodiment of the present application, please refer to Figure 8A and Figure 8B. Figure 8A is a timing diagram of switching from the second operating system to the first operating system in one embodiment, and the second operating system uses a shared display buffer area; Figure 8B is a timing diagram of switching from the second operating system to the first operating system in one embodiment, and the first operating system uses a shared display buffer area.
如图8A所示,当从第二操作系统810切换至第一操作系统820,第二操作系统810使用共享显示缓存区的时序步骤可包括:As shown in FIG8A , when switching from the second operating system 810 to the first operating system 820 , the timing steps of the second operating system 810 using the shared display buffer may include:
1、用户在第二操作系统810触发启动第一操作系统820的目标应用,第二操作系统810检测到该触发操作,向切换服务812发送请求启动第一操作系统820的目标应用的消息。1. The user triggers the start of a target application of the first operating system 820 in the second operating system 810. The second operating system 810 detects the trigger operation and sends a message to the switching service 812 requesting the start of the target application of the first operating system 820.
2、第二操作系统810的切换服务812发起系统切换流程,通过第二操作系统810中的双核通信服务816向第一操作系统发送请求启动目标应用的消息(即上述的系统切换请求);第一操作系统820在接收到该请求消息后回复确认消息(ack消息),并唤醒相关的系统服务,启动及加载目标应用,并加载第一显示模块。2. The switching service 812 of the second operating system 810 initiates the system switching process, and sends a message requesting to start the target application (i.e., 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, the first operating system 820 replies with a confirmation message (ack message), wakes up the relevant 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 area to refresh the screen, and after the switching service 812 returns a confirmation message, it sends a switching preparation completion message (i.e., the above-mentioned second message) to the first operating system through the dual-core communication service 816; after receiving the switching 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 shared display buffer area of the second operating system 810.
4、第一操作系统820向第二操作系统810发送显示数据,第二操作系统810通过双核通信服务816接收第一操作系统820发送的显示数据,并将显示数据写入第二操作系统810的共享显示缓存区,第二操作系统810的显示驱动814不再使用本系统界面的显示数据,而是从共享显示缓存区中获取写入的显示数据,并控制屏幕持续刷新显示。4. The first operating system 820 sends display data to the second operating system 810. 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 shared display buffer area of 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.
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 (i.e., the first message mentioned above). After receiving the message that the target application is started and loaded sent by the first operating system 820 through the dual-core communication service 816, the switching service 812 replies 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 obtaining display data from the shared display buffer.
7、第一操作系统820接管屏幕的控制权,通知界面服务停止将显示数据发送至第二操作系统810的共享显示缓存区,并正常刷新显示。7. The first operating system 820 takes over the control of the screen, notifies the interface service to stop sending display data to the shared display buffer 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 timing steps of the first operating system 820 using the shared display buffer 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 requesting to start the target application through the dual-core communication service 822, and replies a confirmation message to the second operating system 810 through the dual-core communication service 822. The switching service 828 in the first operating system 820 can create the relevant system service 826 in the WakeLock wake-up system according to the message requesting to start the target application.
2、系统服务826可向界面服务824发送sf.setDisplayPowerMode等加载指令,界面服务824接收到该加载指令后,立即向系统服务返回准备指令,并异步继续加载第一显示模块。2. The system service 826 may send a loading instruction such as sf.setDisplayPowerMode to the interface service 824. After receiving the loading instruction, the interface service 824 immediately returns a preparation instruction 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) from the interface service 824, so as to render the display interface and obtain the display data, but the display interface is not actually displayed.
4、第二操作系统810向第一操作系统820发送切换准备完成消息,第一操作系统820的切换服务828通过双核通信服务822接收该切换准备完成消息后,通过双核通信服务822向第二操作系统810回复确认消息。切换服务828可向界面服务824发送启动共享显示缓存区消息,界面服务824通过双核通信服务822向第二操作系统的共享显示缓存区写入渲染的显示数据。4. The second operating system 810 sends a switching preparation completion message to the first operating system 820. After receiving the switching preparation completion message through the dual-core communication service 822, the switching service 828 of the first operating system 820 replies a confirmation message to the second operating system 810 through the dual-core communication service 822. The switching service 828 may send a start shared display buffer area message to the interface service 824, and the interface service 824 writes the rendered display data to the shared display buffer area of the second operating system through the dual-core communication service 822.
5、第二操作系统810从共享显示缓存区中获取显示数据,并持续控制屏幕刷新显示。5. The second operating system 810 obtains display data from the shared display buffer area and continuously controls the screen to refresh the display.
6、在切换服务828监听到目标应用启动完成(Activity Ready)后,由于第一显示模块与目标应用为同步时序,因此也确实第一显模块加载完成,则可向界面服务824发送停止共享显示缓存区消息,界面服务824根据该停止共享显示缓存区消息停止发送显示数据。6. After the switching service 828 monitors that the target application has started (Activity Ready), since the first display module and the target application are in synchronous timing, the first display module is indeed loaded. Then, a message to stop sharing the display cache area can be sent to the interface service 824. The interface service 824 stops sending display data according to the message to stop sharing the display cache area.
7、切换服务828通过双核通信服务822向第二操作系统810发送目标应用启动并加载完成的消息,则第二操作系统810接收到该目标应用启动并加载完成的消息后,返回确认消息,并停止从共享显示缓存区中获取显示数据,停止对屏幕进行刷新显示。7. The switching service 828 sends a message to the second operating system 810 through the dual-core communication service 822 that the target application is started and loaded. After receiving the message, the second operating system 810 returns a confirmation message, stops obtaining display data from the shared display cache, and stops refreshing the screen.
8、第一操作系统820恢复正常的屏幕刷新显示,切换服务828向界面服务824发送正常刷新消息,完全进入第一操作系统820中启动的目标应用的界面中。8. The first operating system 820 resumes normal screen refresh display, and the switching service 828 sends a normal refresh message to the interface service 824 to completely enter the interface of the target application started in the first operating system 820.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In an embodiment of the present application, a shared display cache area is established between the first operating system and the second operating system. When the system is switched, the first operating system to be switched in renders the display interface and writes it into the shared display cache area, and then the second operating system to be switched out obtains the display data from the shared display cache area and controls the screen display. There is no need to wait for the first display module of the first operating system to be loaded before displaying the display interface rendered by the first operating system. This can greatly improve the screen freeze or display discontinuity that occurs when switching operating systems, and achieve continuous, smooth and seamless switching of the interface display.
在一些实施例中,步骤第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,可包括:第一操作系统根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,并将多帧显示界面的显示数据写入共享显示缓存区。In some embodiments, the step of the first operating system rendering the display interface and writing the display data of the display interface into a shared display cache may include: the first operating system renders the display interface according to the designed dynamic display style, obtains the display data of multiple frames of the display interface, and writes the display data of the multiple frames of the display interface into the shared display cache.
在系统切换过程中显示的显示界面可以是具有动画效果的显示界面,第一操作系统可根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,可选地,该动态显示样式可用于表示显示界面的动画展示样式,例如,动态显示样式可包括淡入淡出样式、抖动轨迹样式、逐渐放大样式、逐渐缩小样式等。The display interface displayed during the system switching process can be a display interface with animation effects. The first operating system can render the display interface according to the designed dynamic display style to obtain display data of multiple frames of the display interface. Optionally, the dynamic display style can 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 trajectory style, a gradual zoom-in style, a gradual zoom-out style, etc.
在一些实施例中,共享显示缓存区可包括多个缓存子块。第一操作系统将多帧显示界面的显示数据写入共享显示缓存区,可包括:第一操作系统根据每一帧显示界面的显示时序,依次将每一帧显示界面的显示数据写入共享显示缓存区的缓存子块中,每个缓存子块对应一帧显示界面的显示数据。In some embodiments, the shared display buffer may include multiple buffer sub-blocks. The first operating system writes the display data of multiple frames of display interfaces into the shared display buffer, which may include: the first operating system writes the display data of each frame of the display interface into the buffer sub-block of the shared display buffer in sequence according to the display timing of each frame of the display interface, and each buffer sub-block corresponds to the display data of one frame of the display interface.
动态显示样式可设置有每一帧显示界面的显示样式,该显示样式可包括但不限于显示内容、界面尺寸、界面在屏幕中的位置等,每一帧显示界面可分别对应不同的显示时序,按照该显示时序逐帧对显示界面进行显示,可形成动画效果的显示界面。共享显示缓存区中可包括有多个缓存子块,每个缓存子块可分别用于存储一帧显示界面的显示数据,第一操作系统中的界面服务可通过双核通信服务依次将每一帧显示界面的显示数据写入第二操作系统的共享显示缓存区的各个缓存子块中。The dynamic display style can be set with the display style of each frame of the display interface, and the display style may include but is not limited to the display content, interface size, and the position of the interface in the screen. Each frame of the display interface may correspond to a different display timing, and the display interface is displayed frame by frame according to the display timing to form a display interface with an animation effect. The shared display buffer area may include multiple cache sub-blocks, each of which can be used to store the display data of a frame of the display interface. The interface service in the first operating system can write the display data of each frame of the display interface into each cache sub-block of the shared display buffer area of the second operating system in sequence through the dual-core communication service.
第二操作系统可逐一从共享显示缓存区中获取每一帧显示界面的显示数据,并根据获取的每一帧显示界面的显示数据控制屏幕显示具备动态显示样式的显示界面。进一步地,第二操作系统可逐一从共享显示缓存区中的各个缓存子块中,获取每一帧显示界面的显示数据并发送到屏幕,从而控制屏幕持续刷新显示每一帧显示界面,形成动画效果,丰富了界面的显示样式。The second operating system can obtain the display data of each frame of the display interface from the shared display buffer area one by one, and control the screen to display the display interface with a dynamic display style according to the display data of each frame of the display interface obtained. Furthermore, the second operating system can obtain the display data of each frame of the display interface from each cache sub-block in the shared display buffer area one by one and send it to the screen, thereby controlling the screen to continuously refresh and display each frame of the display interface, forming an animation effect, and enriching the display style of the interface.
图9为一个实施例中第二操作系统控制屏幕显示动态的显示界面的示意图。如图9所示,第二操作系统可从共享显示缓存区的第一个缓存子块中读取第一帧显示数据,并根据该第一帧显示数据控制屏幕显示第一帧显示界面902,可从共享显示缓存区的第二个缓存子块中读取第二帧显示数据,并根据该第一帧显示数据控制屏幕显示第二帧显示界面904,可从共享显示缓存区的第三个缓存子块中读取第三帧显示数据,并根据该第三帧显示数据控制屏幕显示第三帧显示界面906。从第一帧显示界面902到第三帧显示界面906,可形成动态逐渐放大的显示效果。FIG9 is a schematic diagram of a second operating system controlling a screen to display a dynamic display interface in an embodiment. As shown in FIG9 , the second operating system can read the first frame display data from the first cache sub-block of the shared display cache area, and control the screen to display the first frame display interface 902 according to the first frame display data, can read the second frame display data from the second cache sub-block of the shared display cache area, and control the screen to display the second frame display interface 904 according to the first frame display data, can read the third frame display data from the third cache sub-block of the shared display cache area, and control the screen 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 dynamic and gradually enlarged display effect can be formed.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,不需要在第二操作系统中预置动态的过渡显示界面的显示数据,可减少对存储空间的消耗,且方便第一操作系统中的各个应用根据需求对显示界面进行更新,提高了终端设备的整体性能。In an embodiment of the present application, a shared display cache area is established between the first operating system and the second operating system. When the system is switched, the display interface is rendered by the first operating system to be switched in and written into the shared display cache area. There is no need to pre-set 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 demand, thereby improving the overall performance of the terminal device.
需要说明的是,除了在通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,以解决终端设备在进行操作系统切换时出现的画面卡顿或显示不连续等问题,第一操作系统及第二操作系统还可共用一套显示模块,采用同一显示驱动及适配接口、服务等,在进行操作系统切换时,由于共用的显示模块一直处于使用状态,不需要重新进行加载,因此,可直接免去等待加载的时长,以实现界面显示连续、平滑的无感切换。It should be noted that in addition to establishing a shared display cache 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 first operating system and the second operating system can also share a set of display modules, using the same display driver and adapter interface, services, etc. When switching operating systems, since the shared display module is always in use and does not need to be reloaded, the waiting time for loading can be directly avoided, so as to achieve continuous, smooth and seamless switching of interface display.
如图10所示,在一个实施例中,提供一种界面显示装置1000,可应用于上述的终端设备。该界面显示装置1000可包括:加载模块1010、渲染模块1020及显示模块1030。As shown in FIG10 , in one embodiment, an interface display device 1000 is provided, which can be applied to the above-mentioned terminal device. 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 used 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.
渲染模块1020,用于在第一操作系统加载第一显示模块的过程中,通过第一操作系统对显示界面进行渲染,并将显示界面的显示数据写入共享显示缓存区,共享显示缓存区为第一操作系统与第二操作系统之间共享的显示缓存区。The rendering module 1020 is used to render the display interface through the first operating system during the process of loading the first display module, and write the display data of the display interface into the shared display buffer area, which is the display buffer area shared between the first operating system and the second operating system.
显示模块1030,用于通过第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示该显示界面。The display module 1030 is used 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 interface display device 1000 may further include a stop module.
停止模块,用于当第一操作系统中的第一显示模块加载完成时,由第一操作系统停止将渲染的显示界面的显示数据写入共享显示缓存区。The stopping module is used to stop the first operating system from 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 completely.
显示模块1030,还用于由第一操作系统通过第一显示模块控制屏幕对渲染的显示界面进行显示。The display module 1030 is also used for the first operating system to control the screen to display the rendered display interface through the first display module.
在一个实施例中,上述界面显示装置1000,还可包括通信模块。In one embodiment, the interface display device 1000 may further include a communication module.
通信模块,用于当第一操作系统中的第一显示模块加载完成时,由第一操作系统向第二操作系统发送第一消息。The communication module is used for sending 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 completely.
停止模块,还用于由第二操作系统根据第一消息停止从共享显示缓存区中获取显示数据,并进入休眠状态。The stopping module is also used for the second operating system to stop acquiring display data from the shared display buffer area according to the first message and enter a dormant state.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,再由被切出的第二操作系统从共享显示缓存区获取显示数据并控制屏幕显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In an embodiment of the present application, a shared display cache area is established between the first operating system and the second operating system. When the system is switched, the first operating system to be switched in renders the display interface and writes it into the shared display cache area, and then the second operating system to be switched out obtains the display data from the shared display cache area and controls the screen display. There is no need to wait for the first display module of the first operating system to be loaded before displaying the display interface rendered by the first operating system. This can greatly improve the screen freeze or display discontinuity that occurs when switching operating systems, and achieve continuous, smooth and seamless switching of the interface display.
在一个实施例中,渲染模块1020,还用于由第一操作系统通过切换服务向界面服务发送启动共享显示缓存区消息,启动共享显示缓存区消息用于指示界面服务将渲染的显示界面的显示数据写入共享显示缓存区。In one embodiment, the rendering module 1020 is also used for the first operating system to send a start shared display buffer area message to the interface service through the switching service, and the start shared display buffer area message is used to instruct the interface service to write the display data of the rendered display interface into the shared display buffer area.
在一个实施例中,渲染模块1020,还用于当第一操作系统接收到第二操作系统发送的第二消息时,根据第二消息将显示界面的显示数据写入共享显示缓存区,第二消息用于表征第二操作系统已启用共享显示缓存区。In one embodiment, the rendering module 1020 is also used to write the display data of the display interface into the shared display cache according to the second message when the first operating system receives the second message sent by the second operating system, and the second message is used to indicate that the second operating system has enabled the shared display cache.
在一个实施例中,停止模块,还用于由第一操作系统中通过切换服务向界面服务发送停止共享显示缓存区消息,停止共享显示缓存区消息用于指示界面服务停止将渲染的显示界面的显示数据写入共享显示缓存区。In one embodiment, the stop module is also used to send a stop shared display buffer area message to the interface service through the switching service in the first operating system, and the stop shared display buffer area message is used to instruct the interface service to stop writing the display data of the rendered display interface into the shared display buffer area.
显示模块1030,还用于由界面服务通过第一显示模块控制屏幕对渲染的显示界面进行显示。The display module 1030 is also used for the interface service to control the screen to display the rendered display interface through the first display module.
在一个实施例中,加载模块1010,还用于由第一操作系统通过系统服务向界面服务发送加载指令,在界面服务接收到加载指令后,立即向系统服务返回准备指令,并根据加载指令对第一显示模块进行加载,该准备指令用于指示系统服务对显示界面进行渲染。In one embodiment, the loading module 1010 is also used by the first operating system to send 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. The preparation instruction is used to instruct the system service to render the display interface.
在本申请实施例中,通过第一操作系统及第二操作系统中的多个服务互相配合控制系统切换过程中的界面显示,实现了在进行系统切换时,提前由第二操作系统对第一操作系统渲染的显示界面进行显示,不需要等待第一操作系统的第一显示模块加载完成才能显示第一操作系统渲染的显示界面,能够极大地改善在进行操作系统切换时出现的画面卡顿或显示不连续等情况,实现界面显示连续、平滑的无感切换。In an embodiment of the present application, multiple services in the first operating system and the second operating system cooperate with each other to control the interface display during the system switching process, so that when the system is switched, the display interface rendered by the first operating system is displayed in advance by the second operating system, and there is no 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. This can greatly improve the screen freeze or display discontinuity that occurs when the operating system is switched, and achieve continuous, smooth and seamless switching of the interface display.
在一个实施例中,上述界面显示装置1000除了包括加载模块1010、渲染模块1020、显示模块1030、停止模块及通信模块外,还包括操作响应模块。In one embodiment, the interface display device 1000 includes, in addition to the loading module 1010 , the rendering module 1020 , the display module 1030 , the stop module and the communication module, an operation response module.
操作响应模块,用于在第二操作系统检测到针对目标应用的应用启动操作时,通过第二操作系统响应应用启动操作,向第一操作系统发送系统切换请求,系统切换请求包括目标应用的应用标识。The operation response module is used to respond to the application startup operation for the target application through the second operating system when the second operating system detects the application startup operation for the target application, and send a system switching request to the first operating system, wherein the system switching request includes the application identifier of the target application.
加载模块1010,还用于由第一操作系统根据系统切换请求中的应用标识启动并加载目标应用,且同步加载第一操作系统中的第一显示模块。The loading module 1010 is further configured to start and load the target application according to the application identifier in the system switching request by the first operating system, and to synchronously load the first display module in the first operating system.
在一个实施例中,渲染模块1020,还用于在第一操作系统启动并加载目标应用,且同步加载第一显示模块的过程中,通过第一操作系统对与目标应用对应的显示界面进行渲染。In one embodiment, the rendering module 1020 is further configured to render a 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.
在一个实施例中,显示模块1030,还用于由第二操作系统向第一操作系统发送系统切换请求后,根据存储的界面资源控制屏幕显示初始过渡画面,并在等待第一时长后,通过第二操作系统从共享显示缓存区中获取显示数据,并根据显示数据控制屏幕显示该显示界面。In one embodiment, the display module 1030 is also used to control the screen to display an initial transition screen according to the stored interface resources after the second operating system sends a system switching request to the first operating system, and after waiting for a first period of time, 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.
在本申请实施例中,第一操作系统可根据启动的目标应用,渲染该目标应用对应的显示界面,并在未完成目标应用启动及加载的过程中,先由第二操作系统显示该显示界面,减少用户视觉上等待的时间,防止出现给用户造成系统卡顿的误觉,实现了界面显示连续、平滑的无感切换。且启动的应用不同,显示的显示界面也不同,能够提高界面的丰富性,提高界面显示的视觉效果。In the embodiment of the present application, the first operating system can render the display interface corresponding to the target application according to the launched target application, and the second operating system will first display the display interface when the target application is not launched and loaded, thereby reducing the visual waiting time of the user, preventing the user from having the false impression of system freeze, and achieving continuous, smooth and seamless switching of the interface display. Different launched applications will display different display interfaces, which can improve the richness of the interface and the visual effect of the interface display.
在一个实施例中,渲染模块1020,还用于由第一操作系统根据设计的动态显示样式对显示界面进行渲染,得到多帧显示界面的显示数据,并将多帧显示界面的显示数据写入共享显示缓存区。In one embodiment, the rendering module 1020 is also used for the first operating system to render the display interface according to the designed dynamic display style, obtain display data of multiple frames of the display interface, and write the display data of the multiple frames of the display interface into the shared display buffer area.
在一个实施例中,共享显示缓存区包括多个缓存子块。渲染模块1020,还用于由第一操作系统根据每一帧显示界面的显示时序,依次将每一帧显示界面的显示数据写入共享显示缓存区的缓存子块中,每个缓存子块对应一帧显示界面的显示数据。In one embodiment, the shared display buffer includes a plurality of buffer sub-blocks. The rendering module 1020 is further configured to, by the first operating system, sequentially write the display data of each frame of the display interface into the buffer sub-blocks of the shared display buffer according to the display timing of each frame of the display interface, wherein each buffer sub-block corresponds to the display data of one frame of the display interface.
显示模块1030,还用于由第二操作系统逐一从共享显示缓存区中获取每一帧显示界面的显示数据,并根据获取的每一帧显示界面的显示数据控制屏幕显示具备动态显示样式的显示界面。The display module 1030 is also used for the second operating system to obtain display data of each frame of the display interface from the shared display buffer area one by one, and control the screen to display a display interface with a dynamic display style according to the obtained display data of each frame of the display interface.
在本申请实施例中,通过在第一操作系统与第二操作系统之间建立共享的显示缓存区,在进行系统切换时,由待切入的第一操作系统渲染显示界面并写入共享显示缓存区,不需要在第二操作系统中预置动态的过渡显示界面的显示数据,可减少对存储空间的消耗,且方便第一操作系统中的各个应用根据需求对显示界面进行更新,提高了终端设备的整体性能。In an embodiment of the present application, a shared display cache area is established between the first operating system and the second operating system. When the system is switched, the display interface is rendered by the first operating system to be switched in and written into the shared display cache area. There is no need to pre-set 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 demand, thereby improving the overall performance of the terminal device.
图11为一个实施例中终端设备的结构框图。如图11所示,终端设备1100可以包括一个或多个如下部件:处理器1110、与处理器1110耦合的存储器1120,其中存储器1120可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器1110执行时实现如上述各实施例描述的方法。Figure 11 is a block diagram of a terminal device in an embodiment. As shown in Figure 11, the terminal device 1100 may include one or more of the following components: a processor 1110, a memory 1120 coupled to the processor 1110, wherein the memory 1120 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above embodiments when 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 the various parts of the entire terminal device 1100, and executes various functions and processes data of the terminal device 1100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1110 can be implemented in at least one hardware form 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). The processor 1110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1110, but may be implemented separately through a communication chip.
存储器1120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器1120可用于存储指令、程序、代码、代码集或指令集。存储器1120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储终端设备1100在使用中所创建的数据等。The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the terminal device 1100 during use, etc.
可以理解地,终端设备1100可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、WiFi(Wireless Fidelity,无线保真)模块、扬声器、蓝牙模块、传感器等,还可在此不进行限定。It is understandable that the terminal device 1100 may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., and is not limited here.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述实施例描述的方法。An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program implements the method described in the above embodiment when executed by a processor.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的方法。An embodiment of the present application discloses a computer program product, which 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 above embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a ROM, etc.
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically ErasablePROM,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(DirectRambus DRAM,DRDRAM)。As used herein, any reference to memory, storage, database, or other medium may include non-volatile and/or volatile memory. Suitable non-volatile memory may include ROM, programmable ROM (Programmable ROM, PROM), erasable PROM (Erasable PROM, EPROM), electrically erasable PROM (Electrically Erasable PROM, EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM may be in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (Double Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM) and direct memory bus dynamic RAM (DRDRAM).
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware 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 serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of 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 separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
以上对本申请实施例公开的一种界面显示方法、装置、终端设备及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to an interface display method, device, terminal device and computer-readable storage medium disclosed in the embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for those of ordinary skill in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims (14)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110267350.4A CN115080158B (en) | 2021-03-12 | 2021-03-12 | Interface display method, device, terminal equipment and computer readable storage medium |
PCT/CN2022/076335 WO2022188600A1 (en) | 2021-03-12 | 2022-02-15 | Interface display method and apparatus, and terminal device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110267350.4A CN115080158B (en) | 2021-03-12 | 2021-03-12 | Interface display method, device, terminal equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115080158A CN115080158A (en) | 2022-09-20 |
CN115080158B true CN115080158B (en) | 2024-07-09 |
Family
ID=83226336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110267350.4A Active CN115080158B (en) | 2021-03-12 | 2021-03-12 | Interface display method, device, terminal equipment and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115080158B (en) |
WO (1) | WO2022188600A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118244926A (en) * | 2022-12-24 | 2024-06-25 | 华为技术有限公司 | Method for switching display interface, electronic equipment, display screen and display method |
CN115826898B (en) * | 2023-01-03 | 2023-04-28 | 南京芯驰半导体科技有限公司 | Cross-screen display method, system, device, equipment and storage medium |
CN118519568B (en) * | 2024-04-19 | 2025-07-04 | 荣耀终端股份有限公司 | Display control method, electronic device, computer program product, and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (51)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ATE188793T1 (en) * | 1994-10-12 | 2000-01-15 | Touchtunes Music Corp | INTELLIGENT SYSTEM FOR NUMERICAL AUDIOVISUAL REPRODUCTION |
JP4072271B2 (en) * | 1999-02-19 | 2008-04-09 | 株式会社日立製作所 | A computer running multiple operating systems |
US7219183B2 (en) * | 2003-01-21 | 2007-05-15 | Nextio, Inc. | Switching apparatus and method for providing shared I/O within a load-store fabric |
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都科摩 | Multiple operating system switching control device 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 | 英业达股份有限公司 | Ways to protect backup 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 the method |
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 |
CN104050019A (en) * | 2013-03-15 | 2014-09-17 | 宇宙互联有限公司 | Electronic device, system and method with shared control function of operating system |
CN104050020A (en) * | 2013-03-15 | 2014-09-17 | 宇宙互联有限公司 | Electronic device, system and method with shared control function of operating system |
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 |
CN104731721B (en) * | 2015-02-10 | 2019-07-16 | 深圳酷派技术有限公司 | A kind of display sharing method and device of memory |
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 method for sharing data among multiple systems of a mobile terminal and a mobile terminal |
CN105573753B (en) * | 2015-12-11 | 2020-02-07 | 北京元心科技有限公司 | Multi-system switching method and device |
CN105550002B (en) * | 2015-12-28 | 2020-02-07 | 北京元心科技有限公司 | Interface display method based on system switching and intelligent terminal |
CN105677315B (en) * | 2015-12-28 | 2020-02-07 | 北京元心科技有限公司 | Interface display method of multiple operating systems and intelligent terminal |
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 |
-
2021
- 2021-03-12 CN CN202110267350.4A patent/CN115080158B/en active Active
-
2022
- 2022-02-15 WO PCT/CN2022/076335 patent/WO2022188600A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
WO2022188600A1 (en) | 2022-09-15 |
CN115080158A (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115080158B (en) | Interface display method, device, terminal equipment and computer readable storage medium | |
CN115136564A (en) | Preloading of applications and content within applications in user equipment | |
CN109861990B (en) | Data interaction method and device among different systems and computer storage medium | |
US12339726B2 (en) | Method for system switching, wearable device, and storage medium | |
WO2024160154A1 (en) | Cpu scheduling method and apparatus, electronic device, and readable storage medium | |
CN114968375A (en) | System switching method and device, electronic equipment and readable storage medium | |
US20250208688A1 (en) | Switching method, switching apparatus, electronic device, and computer-readable storage medium | |
CN113282362B (en) | Application management method, device, storage medium and terminal | |
US20240345855A1 (en) | Application starting method, electronic device, and non-transitory computer-readable storage medium | |
WO2021121142A1 (en) | Method for controlling animation refresh request, device, computer apparatus, and storage medium | |
WO2024245117A1 (en) | Thread scheduling method and apparatus, and electronic device and medium | |
US10002589B2 (en) | Retaining user selected screen area on user equipment | |
CN110377140A (en) | Method, device, terminal and storage medium for awakening operating system | |
JP3823475B2 (en) | Data processing method, recording medium, and data processing apparatus | |
WO2023116236A1 (en) | Application starting method and apparatus, and device and storage medium | |
CN111767153B (en) | Resource access method, device and electronic device | |
WO2022252906A1 (en) | Interface display method and apparatus, terminal device, and computer readable storage medium | |
CN109725978B (en) | Window refresh method, device, electronic device and storage medium | |
CN111796939A (en) | Processing method and device and electronic equipment | |
CN115562465B (en) | Resetting method and system for soft core processor in FPGA system | |
WO2024169269A1 (en) | Application starting method, device, and storage medium | |
CN116450378A (en) | Service processing method, device and medium based on MDS internal multithreading | |
WO2023138235A1 (en) | Theme switching method and apparatus, and device, storage medium and program product | |
CN118519558A (en) | Popup window display control method and device, electronic equipment and storage medium | |
CN118409839A (en) | Application program starting method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |