WO2021129888A1 - Display control method and electronic device - Google Patents
Display control method and electronic device Download PDFInfo
- Publication number
- WO2021129888A1 WO2021129888A1 PCT/CN2021/070463 CN2021070463W WO2021129888A1 WO 2021129888 A1 WO2021129888 A1 WO 2021129888A1 CN 2021070463 W CN2021070463 W CN 2021070463W WO 2021129888 A1 WO2021129888 A1 WO 2021129888A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- operating system
- displayed
- data
- image
- layout file
- Prior art date
Links
Images
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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- 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/4418—Suspend and resume; Hibernate and awake
-
- 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
Definitions
- FIG. 1 is a schematic diagram of the first structure of an electronic device provided by an embodiment of this application.
- FIG. 9 is a schematic flowchart of a fifth display control method provided by an embodiment of the application.
- the main processing chip 10 is used to control and run the first operating system to control the electronic device 100 to perform task processing under the first operating system.
- the main processing chip 10 can control the electronic device 100 to perform data processing under the first operating system, and make the electronic device 100 control the display screen 30 to work in the first display mode under the first operating system. At this time, the display screen 30 displays information in the first display mode.
- the display screen 30 of the electronic device 100 is locked and the screen is off, but the display screen 30 may display part of the information in the off-screen display mode.
- the display screen 30 may display time, lock Information such as screen identification, shortcut application icon, etc., where the shortcut application icon may include a calculator, a game console, a sticky note, a camera, a flashlight, etc.
- the shortcut application icon may include a calculator, a game console, a sticky note, a camera, a flashlight, etc.
- the main processing chip 10 can control and run the first operating system to process, and the high-performance task requirements of the electronic device can be met at this time; when the electronic device 100 needs to perform
- the co-processing chip 20 can control and run the second operating system for processing. At this time, the task requirements of the electronic device can be met, the power consumption of the electronic device 100 can be saved, and the electronic device 100 can be extended. 100 standby time.
- the first operating system generates the to-be-displayed layout according to the view component, the to-be-displayed data, and the layout file, including: the first operating system maps the to-be-displayed layout in the view component Layout file; the first operating system fills the to-be-displayed data into the layout file.
- the view component includes a plurality of sub-view components, and after the first operating system fills the to-be-displayed data into the layout file, it further includes: the first operating system obtains each The size and position information of the sub-view components; the first operating system sequentially sets each sub-view component in a corresponding position in the view component according to the size and position information of each sub-view component.
- the method before the first operating system sends the image to be displayed to the second operating system, the method further includes: compressing the image to be displayed by the first operating system to generate a compressed image The image to be displayed; the first operating system sending the image to be displayed to the second operating system includes: the first operating system sending the compressed image to be displayed to the second operation System; before the second operating system controls the display of the image to be displayed on the display screen of the electronic device, it further includes: the second operating system decompresses the compressed image to be displayed to obtain The image to be displayed.
- the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
- the electronic device includes a main processing chip and a co-processing chip.
- the main processing chip is electrically connected to the co-processing chip.
- the operating power consumption of the co-processing chip is less than the operating power consumption of the main processing chip.
- An operating system, the co-processing chip controls and runs the second operating system.
- the data to be displayed includes only one type of data, for example, only includes one overall display frame, then only one layout file corresponding to the overall display frame needs to be obtained.
- the first operating system can generate the image to be displayed according to the data to be displayed and the layout file.
- the to-be-displayed image includes the display form, display position, display size, etc. of each part of the data in the to-be-displayed data.
- the image to be displayed may be an image as shown in FIG. 5.
- the image to be displayed includes data such as an overall display frame, station name, transfer line, current station icon, transfer station icon, and station connection line.
- the main processing chip 10 of the electronic device 100 controls to run the first operating system, at this time the co-processing chip 20 is in a sleep state and the second operating system is not running.
- the main processing chip 10 may send a wake-up signal to the co-processing chip 20, and the co-processing chip 20 wakes up after receiving the wake-up signal, and controls to run the second operating system.
- the main processing chip 10 sends a wake-up signal to the co-processing chip 20, it can control the first operating system to simultaneously send the image to be displayed to the storage area corresponding to the second operating system, for example, store it in the memory of the co-processing chip 20. in.
- the co-processing chip 20 controls to run the second operating system, it controls the second operating system to extract the image to be displayed from the corresponding storage area. Subsequently, the main processing chip 10 controls to exit the first operating system, and the main processing chip 10 can enter a sleep state.
- the co-processing chip 20 may be provided with a display driving circuit, and the second operating system may send the to-be-displayed image to the display screen 30 for display through the display driving circuit.
- the first operating system obtains a corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file;
- the first operating system may measure the size of the acquired view component, for example, measure the width, height, and other dimensions of the view component. If the acquired view component is of another shape, such as a circle, the radius or diameter of the view component can be measured. It should be noted that the measurement of the size of the view component is performed automatically by the first operating system, and no user intervention or operation is required.
- the first operating system maps the layout file in the view component
- the first operating system obtains size and position information of each sub-view component
- the view component acquired by the first operating system may include multiple sub-view components, and in this case, the view component may be understood as a main view component.
- each of the sub-view components corresponds to each part of data in the data to be displayed.
- the view components obtained by the first operating system can include the sub-view component corresponding to the station name, the sub-view component corresponding to the transfer line, and the sub-view corresponding to the icon of the current station. Components, sub-view components corresponding to the icon of the transfer station, etc.
- the layout to be displayed can be generated.
- FIG. 9 is a schematic flowchart of a fifth display control method provided by an embodiment of this application.
- the first operating system obtains the corresponding layout file according to the data to be displayed, it can be implemented in the following ways:
- the control module is configured to control the display of the to-be-displayed image on the display screen of the electronic device based on the second operating system.
- the generating module is further configured to: map the layout file in the view component based on the first operating system; and fill the layout file with the data to be displayed based on the first operating system.
- the generating module 202 is configured to: The layout file is mapped in the component; the data to be displayed is filled into the layout file based on the first operating system.
- FIG. 11 is a schematic diagram of the second structure of the display control device 200 according to an embodiment of the application.
- the display control device 200 further includes: a compression module 205 and a decompression module 206.
- the first operating system generates the layout to be displayed according to the view component, the data to be displayed, and the layout file, including: the first operating system maps the layout file in the view component; The first operating system fills the to-be-displayed data into the layout file.
- the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
- the electronic device includes a main processing chip and a co-processing chip.
- the main processing chip is electrically connected to the co-processing chip.
- the operating power consumption of the co-processing chip is less than the operating power consumption of the main processing chip.
- An operating system, the co-processing chip controls and runs the second operating system.
- the main processing chip 10 controls the first operating system to generate an image to be displayed according to the data to be displayed and the layout file;
- Control the first operating system to draw the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
- the first operating system is controlled to sequentially set each sub-view component in a corresponding position in the view component according to the size and position information of each of the sub-view components.
- the first operating system includes a layout file library
- the layout file library includes a plurality of layout files
- the main processing Chip 10 is used for:
- the main processing chip 10 before controlling the first operating system to send the to-be-displayed image to the second operating system, is further configured to: control the first operating system to send the to-be-displayed image to the second operating system.
- the display image is compressed to generate a compressed image to be displayed;
- the main processing chip 10 When controlling the first operating system to send the image to be displayed to the second operating system, the main processing chip 10 is used to: control the first operating system to send the compressed image to be displayed to The second operating system;
- the co-processing chip 20 is also used to: control the second operating system to control the compressed waiting The display image is decompressed to obtain the to-be-displayed image.
- the first operating system is an Android operating system, a Linux operating system, a Windows operating system, or an ios operating system
- the second operating system is a real-time operating system.
- the co-processing chip 20 when the main processing chip 10 controls to run the first operating system, the co-processing chip 20 enters a sleep state;
- the main processing chip 10 When the co-processing chip 20 controls to run the second operating system, the main processing chip 10 enters a sleep state.
- the memory 40 can be used to store computer programs and data.
- the computer program stored in the memory 40 contains instructions that can be executed in the processor.
- Computer programs can be composed of various functional modules.
- the processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 40.
- the electronic device may be a smart phone, a tablet computer, or other devices.
- FIG. 13 is a schematic diagram of a third structure of an electronic device provided by an embodiment of this application.
- the main processing chip 10 may include a first processor 11 and a first memory 12.
- the co-processing chip 20 includes a second processor 21 and a second memory 22.
- the first processor 11 is electrically connected to the first memory 12, and the second processor 21 is electrically connected to the second memory 22.
- the second processor 21 calls the second computer program for:
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
A display control method and an electronic device. The display control method comprises: a first operating system acquiring a corresponding layout file according to data to be displayed; the first operating system generating, according to said data and the layout file, an image to be displayed; the first operating system sending said image to a second operating system; and the second operating system controlling the displaying of said image on a display screen of an electronic device.
Description
本申请要求于2019年12月27日提交中国专利局、申请号为201911378814.8、发明名称为“显示控制方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 27, 2019, the application number is 201911378814.8, and the invention title is "display control method, device, storage medium and electronic equipment", the entire content of which is incorporated by reference In this application.
本申请涉及电子技术领域,特别涉及一种显示控制方法及电子设备。This application relates to the field of electronic technology, in particular to a display control method and electronic equipment.
随着电子技术的发展,各式各样的电子设备已成为用户生活工作中不可或缺的工具,电子设备能够支持的功能也越来越多。例如,用户可以通过电子设备实现通话功能、网购功能、导航功能、游戏功能等。With the development of electronic technology, various electronic devices have become indispensable tools in the life and work of users, and the functions that electronic devices can support are also increasing. For example, users can implement call functions, online shopping functions, navigation functions, and game functions through electronic devices.
发明内容Summary of the invention
本申请实施例提供一种显示控制方法及电子设备,可以通过第一操作系统和第二操作系统的交互共同实现电子设备的显示控制,从而可以提高电子设备操作系统的资源利用率。The embodiments of the present application provide a display control method and an electronic device, which can jointly realize the display control of the electronic device through the interaction of the first operating system and the second operating system, so that the resource utilization rate of the electronic device operating system can be improved.
第一方面,本申请实施例提供一种显示控制方法,应用于电子设备,所述电子设备包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统,所述显示控制方法包括:In the first aspect, an embodiment of the present application provides a display control method, which is applied to an electronic device, the electronic device includes a first operating system and a second operating system, and the second operating system is different from the first operating system Operating system, the display control method includes:
所述第一操作系统根据待显示数据获取对应的布局文件;The first operating system obtains a corresponding layout file according to the data to be displayed;
所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;Generating, by the first operating system, an image to be displayed according to the data to be displayed and the layout file;
所述第一操作系统将所述待显示图像发送给所述第二操作系统;Sending, by the first operating system, the image to be displayed to the second operating system;
所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
第二方面,本申请实施例提供一种电子设备,包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统;In a second aspect, an embodiment of the present application provides an electronic device, including a first operating system and a second operating system, where the second operating system and the first operating system are different operating systems;
所述第一操作系统根据待显示数据获取对应的布局文件;The first operating system obtains a corresponding layout file according to the data to be displayed;
所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;Generating, by the first operating system, an image to be displayed according to the data to be displayed and the layout file;
所述第一操作系统将所述待显示图像发送给所述第二操作系统;Sending, by the first operating system, the image to be displayed to the second operating system;
所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
第三方面,本申请实施例提供一种电子设备,包括主处理芯片和协处理芯片,所述主处理芯片与所述协处理芯片电连接,所述协处理芯片的运行功耗小于所述主处理芯片的运行功耗;In a third aspect, an embodiment of the present application provides an electronic device, including a main processing chip and a co-processing chip, the main processing chip is electrically connected to the co-processing chip, and the operating power consumption of the co-processing chip is less than that of the main processing chip. Processing the operating power consumption of the chip;
所述主处理芯片包括第一处理器和第一存储器,所述第一存储器上存储有第一操作系统和第一计算机程序,所述第一处理器通过调用所述第一计算机程序,用于:The main processing chip includes a first processor and a first memory. A first operating system and a first computer program are stored on the first memory. The first processor is used for calling the first computer program. :
运行所述第一操作系统以根据待显示数据获取对应的布局文件;Running the first operating system to obtain a corresponding layout file according to the data to be displayed;
运行所述第一操作系统以根据所述待显示数据和所述布局文件生成待显示图像;Running the first operating system to generate an image to be displayed according to the data to be displayed and the layout file;
运行所述第一操作系统以将所述待显示图像发送给所述第二操作系统;Running the first operating system to send the image to be displayed to the second operating system;
所述协处理芯片包括第二处理器和第二存储器,所述第二存储器上存储有第二操作系统和第二计算机程序,所述第二操作系统不同于所述第一操作系统,所述第二处理器通过调用所述第二计算机程序,用于:The co-processing chip includes a second processor and a second memory. A second operating system and a second computer program are stored on the second memory. The second operating system is different from the first operating system. By calling the second computer program, the second processor is used to:
运行所述第二操作系统以控制在所述电子设备的显示屏上显示所述待显示图像。Running the second operating system to control the display of the to-be-displayed image on the display screen of the electronic device.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例提供的电子设备的第一种结构示意图。FIG. 1 is a schematic diagram of the first structure of an electronic device provided by an embodiment of this application.
图2为本申请实施例提供的电子设备的显示屏处于亮屏显示模式时的示意图。FIG. 2 is a schematic diagram when the display screen of the electronic device according to an embodiment of the application is in a bright screen display mode.
图3为本申请实施例提供的电子设备的显示屏处于熄屏显示模式时的示意图。FIG. 3 is a schematic diagram when the display screen of the electronic device is in the off-screen display mode according to an embodiment of the application.
图4为本申请实施例提供的显示控制方法的第一种流程示意图。FIG. 4 is a schematic diagram of the first flow of a display control method provided by an embodiment of the application.
图5为本申请实施例提供的显示控制方法控制电子设备显示的示意图。FIG. 5 is a schematic diagram of controlling the display of an electronic device by a display control method according to an embodiment of the application.
图6为本申请实施例提供的显示控制方法的第二种流程示意图。FIG. 6 is a schematic diagram of the second flow of the display control method provided by an embodiment of the application.
图7为本申请实施例提供的显示控制方法的第三种流程示意图。FIG. 7 is a schematic diagram of a third flow chart of a display control method provided by an embodiment of this application.
图8为本申请实施例提供的显示控制方法的第四种流程示意图。FIG. 8 is a schematic diagram of a fourth flow of a display control method provided by an embodiment of the application.
图9为本申请实施例提供的显示控制方法的第五种流程示意图。FIG. 9 is a schematic flowchart of a fifth display control method provided by an embodiment of the application.
图10为本申请实施例提供的显示控制装置的第一种结构示意图。FIG. 10 is a schematic diagram of the first structure of a display control device provided by an embodiment of the application.
图11为本申请实施例提供的显示控制装置的第二种结构示意图。FIG. 11 is a schematic diagram of a second structure of a display control device provided by an embodiment of the application.
图12为本申请实施例提供的电子设备的第二种结构示意图。FIG. 12 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the application.
图13为本申请实施例提供的电子设备的第三种结构示意图。FIG. 13 is a schematic diagram of a third structure of an electronic device provided by an embodiment of the application.
下面将结合本申请实施例中的附图1至13,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with accompanying drawings 1 to 13 in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of this application.
本申请实施例提供一种电子设备。所述电子设备可以是智能手机、智能手表、平板电脑等设备,还可以是游戏设备、AR(Augmented Reality,增强现实)设备、汽车装置、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备等,还可以是诸如电子头盔、电子眼镜、电子衣物等可穿戴式电子设备。The embodiment of the present application provides an electronic device. The electronic device can be a smart phone, a smart watch, a tablet computer, etc., and can also be a game device, AR (Augmented Reality) device, automobile device, data storage device, audio playback device, video playback device, notebook computer, etc. , Desktop computing devices, etc., can also be wearable electronic devices such as electronic helmets, electronic glasses, and electronic clothing.
参考图1,图1为本申请实施例提供的电子设备100的第一种结构示意图。Referring to FIG. 1, FIG. 1 is a schematic diagram of a first structure of an electronic device 100 according to an embodiment of the application.
其中,电子设备100包括主处理芯片10、协处理芯片20、显示屏30。所述主处理芯片10与所述显示屏30电连接,所述协处理芯片20与所述主处理芯片10、所述显示屏30均电连接,所述显示屏30用于显示诸如文本、图像等信息。可以理解的,电连接可以是直接连接以实现电信号的传递,也可以是间接连接,例如通过开关等其它电子器件间接连接以实现电信号的传递。The electronic device 100 includes a main processing chip 10, a co-processing chip 20, and a display screen 30. The main processing chip 10 is electrically connected to the display screen 30, and the co-processing chip 20 is electrically connected to the main processing chip 10 and the display screen 30. The display screen 30 is used to display text, images, etc. And other information. It is understandable that the electrical connection may be a direct connection to realize the transmission of electric signals, or an indirect connection, for example, an indirect connection through other electronic devices such as switches to realize the transmission of electric signals.
所述主处理芯片10可以作为电子设备100的主控SOC(System on Chip,系统级芯片)。所述主处理芯片10上可以集成有处理器和存储器,诸如第一处理器和第一存储器。所述第一处理器诸如为CPU(Central Processing Unit,中央处理器),所述第一处理器可以进行数据处理。所述第一存储器可以存储数据,例如存储第一操作系统和应用程序。其中,所述主处理芯片10可运行所述第一操作系统及所述第一存储器上存储的应用程序。The main processing chip 10 may be used as a main control SOC (System on Chip) of the electronic device 100. The main processing chip 10 may be integrated with a processor and a memory, such as a first processor and a first memory. The first processor is, for example, a CPU (Central Processing Unit, central processing unit), and the first processor may perform data processing. The first memory may store data, for example, store a first operating system and application programs. Wherein, the main processing chip 10 can run the first operating system and application programs stored on the first memory.
其中,所述主处理芯片10用于控制运行所述第一操作系统,以控制所述电子设备100在所述第一操作系统下进行任务处理。例如,所述主处理芯片10可以控制电子设备100在所述第一操作系统下进行数据处理,以及使得电子设备100在所述第一操作系统下控制显示屏30工作于第一显示模式,此时所述显示屏30以所述第一显示模式显示信息。The main processing chip 10 is used to control and run the first operating system to control the electronic device 100 to perform task processing under the first operating system. For example, the main processing chip 10 can control the electronic device 100 to perform data processing under the first operating system, and make the electronic device 100 control the display screen 30 to work in the first display mode under the first operating system. At this time, the display screen 30 displays information in the first display mode.
其中,所述第一显示模式可以理解为显示屏30的正常显示模式,或者标准功耗显示模式。显示屏30处于所述第一显示模式时,显示屏30的功耗为标准功耗,也即正常功耗。其中,所述第一显示模式可以包括亮屏显示模式,或者亮屏工作模式。在所述亮屏显示模式下,所述显示屏30点亮,所述显示屏30上可以显示多个应用的图标和名称,如图2所示,图2为本申请实施例提供的电子设备的显示屏30处于亮屏显示模式时的示意图。当用户点击应用图标时,电子设备100即可启动对应的应用。此外,可以理解的,所述显示屏30上还可以显示诸如时间、日期、天气、温度等信息。Wherein, the first display mode can be understood as the normal display mode of the display screen 30 or the standard power consumption display mode. When the display screen 30 is in the first display mode, the power consumption of the display screen 30 is the standard power consumption, that is, the normal power consumption. Wherein, the first display mode may include a bright screen display mode or a bright screen working mode. In the bright screen display mode, the display screen 30 is lit, and the display screen 30 can display icons and names of multiple applications, as shown in FIG. 2, which is an electronic device provided by an embodiment of the application. Schematic diagram of the display screen 30 in the bright screen display mode. When the user clicks the application icon, the electronic device 100 can start the corresponding application. In addition, it is understandable that the display screen 30 may also display information such as time, date, weather, temperature and the like.
所述协处理芯片20为一个低功耗的SOC。所述协处理芯片20的运行功耗小于所述主处理芯片10的运行功耗。所述协处理芯片20上也可以集成有处理器和存储器,诸如第二处理器和第二存储器。其中,所述第二处理器可以进行数据处理。所述第二存储器可以存储数据,例如存储第二操作系统和应用程序。其中,所述协处理芯片20可运行所述第二操作系统及所述第二存储器上存储的应用程序。The co-processing chip 20 is a low-power SOC. The operating power consumption of the co-processing chip 20 is less than the operating power consumption of the main processing chip 10. The co-processing chip 20 may also be integrated with a processor and a memory, such as a second processor and a second memory. Wherein, the second processor can perform data processing. The second memory may store data, for example, store a second operating system and application programs. Wherein, the co-processing chip 20 can run the second operating system and application programs stored on the second memory.
其中,所述协处理芯片20用于控制运行所述第二操作系统,以控制所述电子设备100在所述第二操作系统下进行任务处理。例如,所述协处理芯片20可以控制电子设备100在所述第二操作系统下进行数据处理,以及使得电子设备100在所述第二操作系统下控制显示屏30工作于第二显示模式,此时所述显示屏30以所述第二显示模式显示信息。The co-processing chip 20 is used to control and run the second operating system to control the electronic device 100 to perform task processing under the second operating system. For example, the co-processing chip 20 can control the electronic device 100 to perform data processing under the second operating system, and make the electronic device 100 control the display screen 30 to work in the second display mode under the second operating system. At this time, the display screen 30 displays information in the second display mode.
其中,所述第二显示模式可以理解为显示屏30的低功耗显示模式。显示屏30处于所述第二显示模式时,显示屏30的功耗较低,此时显示屏30的功耗低于标准功耗,也即低于正常功耗。也即,显示屏30处于所述第二显示模式时的功耗低于所述显示屏30处于所述第一显示模式时的功耗。其中,所述第二显示模式可以包括熄屏显示模式。熄屏显示模式(Always On Display,AOD)是指电子设备100在熄屏状态下由显示屏30显示信息的一种显示模式,如图3所示,图3为本申请实施例提供的电子设备的显示屏30处于熄屏显示模式时的示意图。在一种可能的实施方式中,电子设备100能够在熄屏显示模式下通过具备自发光能力的像素点进行发光,在熄屏显示模式下,电子设备100的功耗较低且能够实现显示相应的信息。Wherein, the second display mode can be understood as a low power consumption display mode of the display screen 30. When the display screen 30 is in the second display mode, the power consumption of the display screen 30 is relatively low. At this time, the power consumption of the display screen 30 is lower than the standard power consumption, that is, lower than the normal power consumption. That is, the power consumption when the display screen 30 is in the second display mode is lower than the power consumption when the display screen 30 is in the first display mode. Wherein, the second display mode may include an off-screen display mode. The always-on display mode (AOD) refers to a display mode in which the electronic device 100 displays information on the display screen 30 when the screen is off, as shown in FIG. 3, which is an electronic device provided by an embodiment of the application The schematic diagram of the display screen 30 in the off-screen display mode. In a possible implementation manner, the electronic device 100 can emit light through pixels with self-luminescence capability in the off-screen display mode. In the off-screen display mode, the electronic device 100 has low power consumption and can achieve display response. Information.
需要说明的是,在所述第二显示模式下,电子设备100的部分功能锁定,其他部分功能仍可使用。例如,在所述熄屏显示模式下,电子设备100的显示屏30锁定并熄屏,但是所述显示屏30可以以熄屏显示的方式显示部分信息,例如显示屏30上可以显示时间、锁屏标识、快捷应用图标等信息,其中快捷应用图标可以包括计算器、游戏机、便签、照相机、手电筒等。当用户点击快捷应用图标时,电子设备100即可启动对应的快捷应用。It should be noted that in the second display mode, some functions of the electronic device 100 are locked, and other functions are still available. For example, in the off-screen display mode, the display screen 30 of the electronic device 100 is locked and the screen is off, but the display screen 30 may display part of the information in the off-screen display mode. For example, the display screen 30 may display time, lock Information such as screen identification, shortcut application icon, etc., where the shortcut application icon may include a calculator, a game console, a sticky note, a camera, a flashlight, etc. When the user clicks the shortcut application icon, the electronic device 100 can start the corresponding shortcut application.
其中,所述第二操作系统与所述第一操作系统为不同的操作系统,所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。所述第一操作系统可以理解为通用操作系统,所述第二操作系统可以理解为相对于所述第一操作系统的轻量操作系统。例如,所述第一操作系统可以为安卓(Android)操作系统、Linux操作系统、Windows操作系统或ios操作系统,所述第二操作系统为实时操作系统。电子设备100既可以通过主处理芯片10控制运行所述第一操作系统,也可以通过协处理芯片20控制运行所述第二操作系统。Wherein, the second operating system and the first operating system are different operating systems, and the power consumption when the second operating system is running is less than the power consumption when the first operating system is running. The first operating system may be understood as a general operating system, and the second operating system may be understood as a lightweight operating system relative to the first operating system. For example, the first operating system may be an Android operating system, a Linux operating system, a Windows operating system, or an ios operating system, and the second operating system is a real-time operating system. The electronic device 100 can either control the running of the first operating system through the main processing chip 10, or control the running of the second operating system through the co-processing chip 20.
由于所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗,因此可以理解的,所述第一操作系统的处理能力较强,而所述第二操作系统的处理能力较弱。也即,所述第二操作系统的处理能力低于所述第一操作系统的处理能力。当电子设备100需要进行数据运算量大的任务处理时,可以由主处理芯片10控制运行所述第一操作系统来处理,此时可以满足电子设备的高性能任务需求;当电子设备100需要进行数据运算量小的任务处理时,可以由协处理芯片20控制运行所述第二操作系统来处理,此时既可以满足电子设备的任务需求,又可以节省电子设备100的功耗,延长电子设备100的待机时间。Since the power consumption when the second operating system is running is less than the power consumption when the first operating system is running, it can be understood that the processing capability of the first operating system is relatively strong, while the power consumption of the second operating system is relatively strong. The processing power is weak. That is, the processing capability of the second operating system is lower than the processing capability of the first operating system. When the electronic device 100 needs to process a task with a large amount of data calculation, the main processing chip 10 can control and run the first operating system to process, and the high-performance task requirements of the electronic device can be met at this time; when the electronic device 100 needs to perform When a task with a small amount of data calculation is processed, the co-processing chip 20 can control and run the second operating system for processing. At this time, the task requirements of the electronic device can be met, the power consumption of the electronic device 100 can be saved, and the electronic device 100 can be extended. 100 standby time.
此外,可以理解的,在所述主处理芯片10控制运行所述第一操作系统时,所述协处理芯片20可以进入休眠状态,可以进一步节省所述协处理芯片20的功耗,以降低电子设备100的功耗。类似的,在所述协处理芯片20控制运行所述第二操作系统时,所述主处理芯片10可以进入休眠状态,可以进一步节省所述主处理芯片10的功耗,从而降低电子设备100的功耗。In addition, it can be understood that when the main processing chip 10 controls the operation of the first operating system, the co-processing chip 20 can enter a sleep state, which can further save the power consumption of the co-processing chip 20, thereby reducing electronic components. The power consumption of the device 100. Similarly, when the co-processing chip 20 controls to run the second operating system, the main processing chip 10 can enter a sleep state, which can further save the power consumption of the main processing chip 10, thereby reducing the power consumption of the electronic device 100. Power consumption.
在本申请的描述中,需要理解的是,诸如“第一”、“第二”等术语仅用于区分类似的对象,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。In the description of this application, it should be understood that terms such as "first" and "second" are only used to distinguish similar objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technology The number of features.
本申请实施例还提供一种显示控制方法,可以应用于上述电子设备中,所述电子设备 包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统,所述显示控制方法包括:An embodiment of the present application also provides a display control method, which can be applied to the above electronic device. The electronic device includes a first operating system and a second operating system, and the second operating system is different from the first operating system. Operating system, the display control method includes:
所述第一操作系统根据待显示数据获取对应的布局文件;The first operating system obtains a corresponding layout file according to the data to be displayed;
所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;Generating, by the first operating system, an image to be displayed according to the data to be displayed and the layout file;
所述第一操作系统将所述待显示图像发送给所述第二操作系统;Sending, by the first operating system, the image to be displayed to the second operating system;
所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
在一些实施例中,所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像,包括:所述第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;所述第一操作系统根据所述视图组件创建位图;所述第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。In some embodiments, generating the image to be displayed by the first operating system according to the data to be displayed and the layout file includes: the first operating system according to the data type of the data to be displayed and the layout file Obtain the corresponding view component in the first operating system; the first operating system generates the layout to be displayed according to the view component, the data to be displayed, and the layout file; the first operating system generates the layout to be displayed according to the view The component creates a bitmap; the first operating system draws the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
在一些实施例中,所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局,包括:所述第一操作系统在所述视图组件中映射所述布局文件;所述第一操作系统将所述待显示数据填充到所述布局文件中。In some embodiments, the first operating system generates the to-be-displayed layout according to the view component, the to-be-displayed data, and the layout file, including: the first operating system maps the to-be-displayed layout in the view component Layout file; the first operating system fills the to-be-displayed data into the layout file.
在一些实施例中,所述视图组件包括多个子视图组件,所述第一操作系统将所述待显示数据填充到所述布局文件中之后,还包括:所述第一操作系统获取每一所述子视图组件的尺寸和位置信息;所述第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。In some embodiments, the view component includes a plurality of sub-view components, and after the first operating system fills the to-be-displayed data into the layout file, it further includes: the first operating system obtains each The size and position information of the sub-view components; the first operating system sequentially sets each sub-view component in a corresponding position in the view component according to the size and position information of each sub-view component.
在一些实施例中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件,所述第一操作系统根据待显示数据获取对应的布局文件,包括:所述第一操作系统获取所述待显示数据的数据类型;所述第一操作系统根据所述数据类型从所述布局文件库中检索与所述数据类型对应的布局文件;所述第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。In some embodiments, the first operating system includes a layout file library, the layout file library includes a plurality of layout files, and the first operating system obtains a corresponding layout file according to the data to be displayed, including: the first The operating system obtains the data type of the data to be displayed; the first operating system retrieves the layout file corresponding to the data type from the layout file library according to the data type; the first operating system will retrieve The layout file of is determined as the layout file corresponding to the data to be displayed.
在一些实施例中,所述第一操作系统将所述待显示图像发送给所述第二操作系统之前,还包括:所述第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;所述第一操作系统将所述待显示图像发送给所述第二操作系统,包括:所述第一操作系统将所述压缩后的待显示图像发送给所述第二操作系统;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像之前,还包括:所述第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。In some embodiments, before the first operating system sends the image to be displayed to the second operating system, the method further includes: compressing the image to be displayed by the first operating system to generate a compressed image The image to be displayed; the first operating system sending the image to be displayed to the second operating system includes: the first operating system sending the compressed image to be displayed to the second operation System; before the second operating system controls the display of the image to be displayed on the display screen of the electronic device, it further includes: the second operating system decompresses the compressed image to be displayed to obtain The image to be displayed.
在一些实施例中,所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。In some embodiments, the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
在一些实施例中,电子设备包括主处理芯片和协处理芯片,主处理芯片与协处理芯片电连接,协处理芯片的运行功耗小于主处理芯片的运行功耗,其中主处理芯片控制运行第一操作系统,协处理芯片控制运行第二操作系统。In some embodiments, the electronic device includes a main processing chip and a co-processing chip. The main processing chip is electrically connected to the co-processing chip. The operating power consumption of the co-processing chip is less than the operating power consumption of the main processing chip. An operating system, the co-processing chip controls and runs the second operating system.
在一些实施例中,主处理芯片控制运行第一操作系统时,协处理芯片进入休眠状态;协处理芯片控制运行第二操作系统时,主处理芯片进入休眠状态。下面结合附图对本申请实施例的显示控制方法进行示例性说明。请参考图4,图4为本申请实施例提供的显示控制方法的第一种流程示意图。其中,所述显示控制方法包括:In some embodiments, when the main processing chip controls to run the first operating system, the co-processing chip enters a sleep state; when the co-processing chip controls to run the second operating system, the main processing chip enters a sleep state. The display control method of the embodiment of the present application will be exemplarily described below with reference to the accompanying drawings. Please refer to FIG. 4, which is a schematic flowchart of the first display control method provided by an embodiment of the application. Wherein, the display control method includes:
110,第一操作系统根据待显示数据获取对应的布局文件。110. The first operating system obtains a corresponding layout file according to the data to be displayed.
电子设备100的显示屏30需要显示与待显示数据对应的图像时,可以首先由第一操作系统根据待显示数据获取与所述待显示数据对应的布局文件。其中,所述待显示数据可以包括文本数据、图片数据等。所述待显示数据可以是由电子设备100的系统应用产生的数据,例如系统应用产生的时间数据、锁屏图标、快捷应用图标等。所述待显示数据也可以是由电子设备100中的第三方应用产生的数据,例如导航应用产生的导航数据等。When the display screen 30 of the electronic device 100 needs to display an image corresponding to the data to be displayed, the first operating system may first obtain the layout file corresponding to the data to be displayed according to the data to be displayed. Wherein, the data to be displayed may include text data, picture data, and so on. The data to be displayed may be data generated by a system application of the electronic device 100, such as time data generated by a system application, a lock screen icon, a shortcut application icon, and the like. The data to be displayed may also be data generated by a third-party application in the electronic device 100, such as navigation data generated by a navigation application.
其中,所述布局文件即为确定所述待显示数据在显示屏上进行显示时的显示方式、显示位置、显示尺寸所需的文件。其中,可以理解的,显示方式诸如为文本数据的显示字体以及文字间距、图片数据的显示形状以及显示颜色等;显示位置诸如为文本数据或者图片数据在显示屏上的显示位置;显示尺寸诸如为文本数据的显示字体大小、图片数据的尺寸大小等。第一操作系统根据待显示数据获取的布局文件可以为一个,也可以为多个。Wherein, the layout file is a file required to determine the display mode, display position, and display size of the data to be displayed when displayed on the display screen. Among them, it is understandable that the display mode is such as the display font and character spacing of text data, the display shape and color of picture data, etc.; the display position is such as the display position of text data or picture data on the display screen; the display size is such as The display font size of the text data, the size of the image data, etc. There may be one or more layout files obtained by the first operating system according to the data to be displayed.
例如,如图5所示,图5为本申请实施例提供的显示控制方法控制电子设备显示的示意图。其中,电子设备上需要显示地铁站导航信息,包括整体显示框、站点名称、换乘线路、当前站图标、换乘站图标、站点连接线等信息。其中,站点名称为文本数据,整体显示框、当前站图标、换乘站图标、站点连接线都为图片数据,换乘线路包括文本数据和图片数据。第一操作系统根据待显示数据获取对应的布局文件时,需要分别获取待显示数据中每一部分数据对应的布局文件,例如需要分别获取整体显示框、站点名称、换乘线路、当前站图标、换乘站图标、站点连接线对应的布局文件。For example, as shown in FIG. 5, FIG. 5 is a schematic diagram of controlling the display of an electronic device by the display control method provided by an embodiment of the application. Among them, the electronic equipment needs to display subway station navigation information, including the overall display frame, station name, transfer line, current station icon, transfer station icon, station connection line and other information. Among them, the station name is text data, the overall display box, the current station icon, the transfer station icon, and the station connecting line are all picture data, and the transfer line includes text data and picture data. When the first operating system obtains the corresponding layout file according to the data to be displayed, it needs to obtain the layout file corresponding to each part of the data to be displayed. For example, it needs to obtain the overall display frame, station name, transfer line, current station icon, and change. The layout file corresponding to the station icon and station connection line.
此外,可以理解的,当待显示数据只包括一个类型的数据,例如只包括一个整体显示框时,那么只需要获取整体显示框对应的一个布局文件即可。In addition, it can be understood that when the data to be displayed includes only one type of data, for example, only includes one overall display frame, then only one layout file corresponding to the overall display frame needs to be obtained.
120,第一操作系统根据所述待显示数据和所述布局文件生成待显示图像。120. The first operating system generates an image to be displayed according to the data to be displayed and the layout file.
第一操作系统根据待显示数据获取到对应的布局文件后,即可根据所述待显示数据和所述布局文件生成待显示图像。其中,所述待显示图像包括待显示数据中的每一部分数据的显示形式、显示位置、显示尺寸等。After obtaining the corresponding layout file according to the data to be displayed, the first operating system can generate the image to be displayed according to the data to be displayed and the layout file. Wherein, the to-be-displayed image includes the display form, display position, display size, etc. of each part of the data in the to-be-displayed data.
例如,所述待显示图像可以为如图5所示的图像。所述待显示图像中包括了整体显示框、站点名称、换乘线路、当前站图标、换乘站图标、站点连接线等数据。For example, the image to be displayed may be an image as shown in FIG. 5. The image to be displayed includes data such as an overall display frame, station name, transfer line, current station icon, transfer station icon, and station connection line.
130,第一操作系统将所述待显示图像发送给第二操作系统。130. The first operating system sends the to-be-displayed image to the second operating system.
第一操作系统生成待显示图像后,将所述待显示图像发送给第二操作系统。After the image to be displayed is generated by the first operating system, the image to be displayed is sent to the second operating system.
具体地,在电子设备100的主处理芯片10控制运行第一操作系统时,此时协处理芯片20处于休眠状态,第二操作系统也未运行。主处理芯片10可以向协处理芯片20发送唤醒信号,协处理芯片20接收到唤醒信号后唤醒,并控制运行第二操作系统。并且,主处理芯片10向协处理芯片20发送唤醒信号时,可以控制第一操作系统同时将所述待显示图像发送到第二操作系统对应的存储区域中,例如存储到协处理芯片20的存储器中。协处理芯片20控制运行第二操作系统时,控制第二操作系统从对应的存储区域中提取所述待显示图像。随后,主处理芯片10控制退出所述第一操作系统,并且主处理芯片10可以进入休眠状态。Specifically, when the main processing chip 10 of the electronic device 100 controls to run the first operating system, at this time the co-processing chip 20 is in a sleep state and the second operating system is not running. The main processing chip 10 may send a wake-up signal to the co-processing chip 20, and the co-processing chip 20 wakes up after receiving the wake-up signal, and controls to run the second operating system. In addition, when the main processing chip 10 sends a wake-up signal to the co-processing chip 20, it can control the first operating system to simultaneously send the image to be displayed to the storage area corresponding to the second operating system, for example, store it in the memory of the co-processing chip 20. in. When the co-processing chip 20 controls to run the second operating system, it controls the second operating system to extract the image to be displayed from the corresponding storage area. Subsequently, the main processing chip 10 controls to exit the first operating system, and the main processing chip 10 can enter a sleep state.
140,第二操作系统控制在电子设备的显示屏上显示所述待显示图像。140. The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
第二操作系统获取到第一操作系统发送的待显示图像后,即可控制在电子设备100的显示屏30上显示所述待显示图像。After the second operating system obtains the to-be-displayed image sent by the first operating system, it can control the display of the to-be-displayed image on the display screen 30 of the electronic device 100.
具体地,所述协处理芯片20中可以设置有显示驱动电路,第二操作系统可以通过所述显示驱动电路将所述待显示图像发送到所述显示屏30进行显示。Specifically, the co-processing chip 20 may be provided with a display driving circuit, and the second operating system may send the to-be-displayed image to the display screen 30 for display through the display driving circuit.
本申请实施例提供的显示控制方法中,通过第一操作系统获取布局文件并生成待显示图像,第一操作系统将生成的待显示图像发送给第二操作系统后,通过第二操作系统控制显示待显示图像,从而可以通过第一操作系统进行数据处理,并通过第二操作系统控制显示,因此可以通过第一操作系统和第二操作系统的交互共同实现电子设备的显示控制,从而既可以充分利用第二操作系统的资源,又可以充分利用第一操作系统的资源,因此可以提高电子设备操作系统的资源利用率。In the display control method provided by the embodiment of the present application, the layout file is obtained through the first operating system and the image to be displayed is generated. After the first operating system sends the generated image to be displayed to the second operating system, the second operating system controls the display The image to be displayed can be processed by the first operating system and the display can be controlled by the second operating system. Therefore, the display control of the electronic device can be realized through the interaction of the first operating system and the second operating system, so that both Utilizing the resources of the second operating system can also make full use of the resources of the first operating system, so that the resource utilization rate of the electronic device operating system can be improved.
此外,当第二操作系统运行时的功耗小于第一操作系统运行时的功耗时,通过第一操作系统获取布局文件并生成待显示图像,可以满足对数据处理的需求,而在第一操作系统处理完数据生成待显示图像后,通过第二操作系统控制显示待显示图像,此时无需通过高功耗的第一操作系统来控制显示,因此可以降低电子设备的功耗,延长电子设备的待机时 间。In addition, when the power consumption when the second operating system is running is less than the power consumption when the first operating system is running, the layout file is obtained through the first operating system and the image to be displayed is generated, which can meet the requirements for data processing. After the operating system processes the data to generate the image to be displayed, the second operating system controls the display of the image to be displayed. At this time, there is no need to control the display through the first operating system with high power consumption, so the power consumption of the electronic device can be reduced and the electronic device can be extended Standby time.
在一些实施例中,参考图6,图6为本申请实施例提供的显示控制方法的第二种流程示意图。其中,第一操作系统获取到待显示数据对应的布局文件后,根据待显示数据和布局文件生成待显示图像时,可以通过以下方式实现:In some embodiments, referring to FIG. 6, FIG. 6 is a schematic diagram of the second flow chart of the display control method provided by an embodiment of this application. Wherein, after the first operating system obtains the layout file corresponding to the data to be displayed, when generating the image to be displayed according to the data to be displayed and the layout file, it can be implemented in the following ways:
121,第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;121. The first operating system obtains a corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file;
122,第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;122. The first operating system generates a layout to be displayed according to the view component, the data to be displayed, and the layout file;
123,第一操作系统根据所述视图组件创建位图;123. The first operating system creates a bitmap according to the view component;
124,第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。124. The first operating system draws the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
第一操作系统中包括多种视图组件(View)。视图组件与待显示数据的数据类型以及布局文件对应。例如,文本数据和文本数据的布局文件对应文本视图组件(TextView),图片数据和图片数据的布局文件对应图片视图组件(ImageView)。The first operating system includes a variety of view components (View). The view component corresponds to the data type and layout file of the data to be displayed. For example, the layout file of text data and text data corresponds to the text view component (TextView), and the layout file of image data and image data corresponds to the image view component (ImageView).
第一操作系统获取到待显示数据后,可以首先确定待显示数据的数据类型,并根据待显示数据的数据类型、布局文件以及与视图组件之间的对应关系来获取对应的视图组件。After the first operating system obtains the data to be displayed, it can first determine the data type of the data to be displayed, and obtain the corresponding view component according to the data type of the data to be displayed, the layout file, and the corresponding relationship with the view component.
其中,所述数据类型可以包括文本数据和图片数据等。可以理解的,由于文本数据包括不同的语言、不同的字体、不同的字号等,因此文本数据还可以根据语言、字体、字号等划分为不同的数据类型。同样的,图片数据也可以包括不同的形状、不同的大小、不同的颜色等,因此图片数据也可以根据形状、大小、颜色等划分为不同的数据类型。因此,所述数据类型可以包括很多个类型,而不仅仅限于文本数据和图片数据这两个类型。Wherein, the data type may include text data, picture data, and so on. It is understandable that since the text data includes different languages, different fonts, different font sizes, etc., the text data can also be divided into different data types according to language, font, font size, etc. Similarly, the picture data can also include different shapes, different sizes, different colors, etc. Therefore, the picture data can also be divided into different data types according to shapes, sizes, colors, and so on. Therefore, the data type may include many types, and is not limited to the two types of text data and picture data.
随后,第一操作系统根据获取的视图组件、所述待显示数据以及所述布局文件生成待显示布局。其中,所述待显示布局中即包括了待显示数据中每一部分数据的显示布局,也即每一部分显示数据在整个待显示图像中的位置、尺寸等。Subsequently, the first operating system generates a layout to be displayed according to the obtained view component, the data to be displayed, and the layout file. Wherein, the to-be-displayed layout includes the display layout of each part of the data to be displayed, that is, the position and size of each part of the display data in the entire to-be-displayed image.
其中,第一操作系统可以测量获取到的视图组件的尺寸,例如测量所述视图组件的宽度、高度等尺寸。若获取到的视图组件为其它形状,诸如圆形,那么可以测量视图组件的半径或者直径等尺寸。需要说明的是,测量视图组件的尺寸是第一操作系统自动进行的,无需用户人为干预,也无需用户进行操作。Wherein, the first operating system may measure the size of the acquired view component, for example, measure the width, height, and other dimensions of the view component. If the acquired view component is of another shape, such as a circle, the radius or diameter of the view component can be measured. It should be noted that the measurement of the size of the view component is performed automatically by the first operating system, and no user intervention or operation is required.
随后,第一操作系统可以根据所述视图组件创建位图,具体地可以是根据所述视图组件的尺寸来创建位图。其中,所述位图可以为空白图片。所述位图的尺寸与所述视图组件的尺寸相同,或者所述位图的尺寸也可以大于所述视图组件。例如,当所述视图组件为矩形时,所述位图也为矩形,所述位图的宽度与所述视图组件的宽度相同,所述位图的高度与所述视图组件的高度相同。Subsequently, the first operating system may create a bitmap according to the view component, and specifically may create a bitmap according to the size of the view component. Wherein, the bitmap may be a blank picture. The size of the bitmap is the same as the size of the view component, or the size of the bitmap may also be larger than the view component. For example, when the view component is rectangular, the bitmap is also rectangular, the width of the bitmap is the same as the width of the view component, and the height of the bitmap is the same as the height of the view component.
最后,第一操作系统将生成的待显示布局绘制在所述位图上,即可生成待显示图像。Finally, the first operating system draws the generated layout to be displayed on the bitmap to generate the image to be displayed.
在一些实施例中,参考图7,图7为本申请实施例提供的显示控制方法的第三种流程示意图。其中,第一操作系统根据数据类型和布局文件获取到对应的视图组件后,根据视图组件、待显示数据以及布局文件生成待显示布局时,可以通过以下方式实现:In some embodiments, referring to FIG. 7, FIG. 7 is a schematic flowchart of a third display control method provided by an embodiment of this application. Among them, after the first operating system obtains the corresponding view component according to the data type and the layout file, when generating the to-be-displayed layout according to the view component, the data to be displayed, and the layout file, it can be implemented in the following ways:
1221,第一操作系统在所述视图组件中映射所述布局文件;1221. The first operating system maps the layout file in the view component;
1222,第一操作系统将所述待显示数据填充到所述布局文件中。1222. The first operating system fills the to-be-displayed data into the layout file.
第一操作系统获取到视图组件后,可以将待显示数据的每一部分数据对应的布局文件映射到所述视图组件中,例如将如图5对应的待显示数据的整体显示框、站点名称、换乘线路、当前站图标、换乘站图标、站点连接线等每一部分数据的布局文件映射到所述视图组件中。其中,映射可以理解为将每一布局文件按照显示的位置、尺寸等参数生成到所述视图组件中。After the first operating system obtains the view component, the layout file corresponding to each part of the data to be displayed can be mapped to the view component, for example, the overall display box, site name, and change of the data to be displayed corresponding to FIG. 5 The layout files of each part of the data such as the ride route, the current station icon, the transfer station icon, and the station connection line are mapped to the view component. Wherein, the mapping can be understood as generating each layout file into the view component according to the displayed position, size and other parameters.
随后,第一操作系统可以将所述待显示数据填充到所述视图组件的布局文件中,以生 成待显示布局。具体地,第一操作系统可以将所述待显示数据中的每一部分数据分别填充到对应的布局文件中,例如将整体显示框填充到整体显示框对应的布局文件中,将站点名称填充到站点名称对应的布局文件中,将换乘线路填充到换乘线路对应的布局文件中,等等。Subsequently, the first operating system may fill the to-be-displayed data into the layout file of the view component to generate the to-be-displayed layout. Specifically, the first operating system may fill each part of the data to be displayed into the corresponding layout file, for example, fill the overall display frame into the layout file corresponding to the overall display frame, and fill the site name into the site In the layout file corresponding to the name, fill the transfer line into the layout file corresponding to the transfer line, and so on.
在一些实施例中,参考图8,图8为本申请实施例提供的显示控制方法的第四种流程示意图。其中,第一操作系统在获取到的视图组件中映射布局文件,并将待显示数据填充到所述布局文件中之后,还可以进行以下处理:In some embodiments, referring to FIG. 8, FIG. 8 is a schematic flowchart of the fourth display control method provided by an embodiment of this application. Wherein, after the first operating system maps the layout file in the acquired view component, and fills the data to be displayed into the layout file, it may also perform the following processing:
1223,第一操作系统获取每一子视图组件的尺寸和位置信息;1223. The first operating system obtains size and position information of each sub-view component;
1224,第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。1224. The first operating system sequentially sets each sub-view component in a corresponding position in the view component according to the size and position information of each of the sub-view components.
可以理解的,第一操作系统获取到的视图组件可以包括多个子视图组件,此时所述视图组件可以理解为主视图组件。其中,每一所述子视图组件与所述待显示数据中的每一部分数据对应。例如,如图5所示的待显示图像,那么第一操作系统获取到的视图组件中即可包括站点名称对应的子视图组件、换乘线路对应的子视图组件、当前站图标对应的子视图组件、换乘站图标对应的子视图组件等等。It can be understood that the view component acquired by the first operating system may include multiple sub-view components, and in this case, the view component may be understood as a main view component. Wherein, each of the sub-view components corresponds to each part of data in the data to be displayed. For example, the image to be displayed as shown in Figure 5, the view components obtained by the first operating system can include the sub-view component corresponding to the station name, the sub-view component corresponding to the transfer line, and the sub-view corresponding to the icon of the current station. Components, sub-view components corresponding to the icon of the transfer station, etc.
其中,第一操作系统可以分别获取每一子视图组件的尺寸和位置信息。可以理解的,子视图组件的尺寸即为子视图组件的诸如宽度、高度或者半径等尺寸,子视图组件的位置信息即为每一子视图组件在主视图组件中的位置。Wherein, the first operating system can separately obtain the size and position information of each sub-view component. It can be understood that the size of the sub-view component is the size of the sub-view component such as the width, height, or radius, and the position information of the sub-view component is the position of each sub-view component in the main view component.
第一操作系统获取到每一子视图组件的尺寸和位置信息后,即可根据每一子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置,也即设置在主视图组件中对应的位置。例如,如图5所示,将站点名称对应的子视图组件设置在主视图组件的左上角,将当前站图标对应的子视图组件设置在主视图组件的左下角,等等。After the first operating system obtains the size and position information of each sub-view component, it can set each sub-view component in a corresponding position in the view component according to the size and position information of each sub-view component. That is, it is set in the corresponding position in the main view component. For example, as shown in Figure 5, the sub-view component corresponding to the site name is set in the upper left corner of the main view component, the sub-view component corresponding to the current station icon is set in the lower left corner of the main view component, and so on.
第一操作系统将每一子视图组件在主视图组件中设置完成后,即可生成待显示布局。After the first operating system sets each sub-view component in the main view component, the layout to be displayed can be generated.
在一些实施例中,参考图9,图9为本申请实施例提供的显示控制方法的第五种流程示意图。其中,第一操作系统根据待显示数据获取对应的布局文件时,可以通过以下方式实现:In some embodiments, referring to FIG. 9, FIG. 9 is a schematic flowchart of a fifth display control method provided by an embodiment of this application. Wherein, when the first operating system obtains the corresponding layout file according to the data to be displayed, it can be implemented in the following ways:
111,第一操作系统获取待显示数据的数据类型;111. The first operating system obtains the data type of the data to be displayed;
112,第一操作系统根据所述数据类型从布局文件库中检索与所述数据类型对应的布局文件;112. The first operating system retrieves a layout file corresponding to the data type from a layout file library according to the data type;
113,第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。113. The first operating system determines the retrieved layout file as the layout file corresponding to the data to be displayed.
其中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件,每一所述布局文件都与一种数据类型对应。可以理解的,所述布局文件库可以在电子设备安装所述第一操作系统时同步进行设置并由所述第一操作系统自动进行维护,也可以在所述第一操作系统安装完成后,由用户手动进行设置和维护。对布局文件库进行维护时,可以添加布局文件、删除布局文件、或者修改布局文件与数据类型之间的对应关系。Wherein, the first operating system includes a layout file library, the layout file library includes a plurality of layout files, and each of the layout files corresponds to a data type. It is understandable that the layout file library can be set synchronously when the first operating system is installed on the electronic device and maintained automatically by the first operating system, or after the installation of the first operating system is completed, The user manually performs setup and maintenance. When maintaining the layout file library, you can add layout files, delete layout files, or modify the correspondence between layout files and data types.
其中,所述数据类型可以包括文本数据和图片数据等。可以理解的,由于文本数据包括不同的语言、不同的字体、不同的字号等,因此文本数据还可以根据语言、字体、字号等划分为不同的数据类型。同样的,图片数据也可以包括不同的形状、不同的大小、不同的颜色等,因此图片数据也可以根据形状、大小、颜色等划分为不同的数据类型。因此,所述数据类型可以包括很多个类型,而不仅仅限于文本数据和图片数据这两个类型。Wherein, the data type may include text data, picture data, and so on. It is understandable that since the text data includes different languages, different fonts, different font sizes, etc., the text data can also be divided into different data types according to language, font, font size, etc. Similarly, the picture data can also include different shapes, different sizes, different colors, etc. Therefore, the picture data can also be divided into different data types according to shapes, sizes, colors, and so on. Therefore, the data type may include many types, and is not limited to the two types of text data and picture data.
第一操作系统可以先确定待显示数据的数据类型,例如确定的数据类型可以为文本-中文-楷体-16号,或者为图片-矩形-10mm*10mm-红色,等等。随后,第一操作系统根据确定的数据类型以及布局文件与数据类型之间的对应关系从所述布局文件库中检索与所述数据类型对应的布局文件,并将检索到的布局文件确定为待显示数据对应的布局文件。The first operating system may first determine the data type of the data to be displayed. For example, the determined data type may be text-Chinese-KaiTi-16, or picture-rectangular-10mm*10mm-red, and so on. Subsequently, the first operating system retrieves the layout file corresponding to the data type from the layout file library according to the determined data type and the corresponding relationship between the layout file and the data type, and determines the retrieved layout file as a to-be Display the layout file corresponding to the data.
继续参考图9,在一些实施例中,第一操作系统生成待显示图像之后,将所述待显示图像发送给第二操作系统之前,还可以进行以下处理:Continuing to refer to FIG. 9, in some embodiments, after the first operating system generates the image to be displayed, before sending the image to be displayed to the second operating system, the following processing may also be performed:
151,第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;151. The first operating system compresses the image to be displayed to generate a compressed image to be displayed;
第一操作系统将生成的待显示图像发送给第二操作系统时,进行以下处理:When the first operating system sends the generated image to be displayed to the second operating system, the following processing is performed:
131,第一操作系统将所述压缩后的待显示图像发送给第二操作系统;131. The first operating system sends the compressed image to be displayed to the second operating system;
第一操作系统将压缩后的待显示图像发送给第二操作系统之后,第二操作系统控制在电子设备的显示屏上显示所述待显示图像之前,还可以进行以下处理:After the first operating system sends the compressed image to be displayed to the second operating system, before the second operating system controls to display the image to be displayed on the display screen of the electronic device, the following processing may also be performed:
152、第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。152. The second operating system decompresses the compressed image to be displayed to obtain the image to be displayed.
可以理解的,由于第二操作系统的处理能力较弱,第二操作系统对应的存储空间也较小,例如第二操作系统仅可使用协处理芯片20上有限的存储空间。因此,为了减小对第二操作系统的存储空间的占用,第一操作系统将待显示图像发送给第二操作系统之前,可以将所述待显示图像进行压缩。例如,第一操作系统根据预设的压缩算法将待显示图像进行格式转换,由占用空间较大的格式转换为占用空间较小的格式,以生成压缩后的待显示图像。随后,第一操作系统将压缩后的待显示图像发送给第二操作系统。It can be understood that due to the weak processing capability of the second operating system, the storage space corresponding to the second operating system is also small. For example, the second operating system can only use the limited storage space on the co-processing chip 20. Therefore, in order to reduce the occupation of the storage space of the second operating system, the first operating system may compress the image to be displayed before sending the image to be displayed to the second operating system. For example, the first operating system converts the format of the to-be-displayed image according to a preset compression algorithm, from a format that occupies a larger space to a format that occupies a smaller space, so as to generate a compressed image to be displayed. Subsequently, the first operating system sends the compressed image to be displayed to the second operating system.
第二操作系统获取到第一操作系统发送的压缩后的待显示图像后,根据所述预设的压缩算法对所述压缩后的待显示图像进行解压缩,将待显示图像由压缩后的格式转换为压缩前的原始格式,从而得到所述待显示图像。After the second operating system obtains the compressed image to be displayed sent by the first operating system, it decompresses the compressed image to be displayed according to the preset compression algorithm, and converts the image to be displayed into a compressed format Converting to the original format before compression, thereby obtaining the to-be-displayed image.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the order of execution of the various steps described, and certain steps may also be performed in other order or at the same time if there is no conflict.
由上可知,本申请实施例提供的显示控制方法,通过第一操作系统获取布局文件并生成待显示图像,第一操作系统将生成的待显示图像发送给第二操作系统后,通过第二操作系统控制显示待显示图像,从而可以通过第一操作系统进行数据处理,并通过第二操作系统控制显示,因此可以通过第一操作系统和第二操作系统的交互共同实现电子设备的显示控制,从而既可以充分利用第二操作系统的资源,又可以充分利用第一操作系统的资源,因此可以提高电子设备操作系统的资源利用率。It can be seen from the above that the display control method provided by the embodiment of the present application obtains the layout file through the first operating system and generates the image to be displayed. After the first operating system sends the generated image to be displayed to the second operating system, the second operation The system controls and displays the image to be displayed, so that data processing can be performed by the first operating system, and the display can be controlled by the second operating system. Therefore, the display control of the electronic device can be realized through the interaction of the first operating system and the second operating system, thereby Both the resources of the second operating system and the resources of the first operating system can be fully utilized, so the resource utilization rate of the operating system of the electronic device can be improved.
本申请实施例还提供一种显示控制装置,应用于电子设备,所述电子设备包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统,所述显示控制装置包括:An embodiment of the present application also provides a display control device, which is applied to an electronic device, the electronic device includes a first operating system and a second operating system, and the second operating system and the first operating system are different operating systems , The display control device includes:
获取模块,用于基于所述第一操作系统根据待显示数据获取对应的布局文件;An obtaining module, configured to obtain a corresponding layout file according to the data to be displayed based on the first operating system;
生成模块,用于基于所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;A generating module, configured to generate an image to be displayed according to the data to be displayed and the layout file based on the first operating system;
发送模块,用于通过所述第一操作系统将所述待显示图像发送给所述第二操作系统;A sending module, configured to send the to-be-displayed image to the second operating system through the first operating system;
控制模块,用于基于所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The control module is configured to control the display of the to-be-displayed image on the display screen of the electronic device based on the second operating system.
在一些实施例中,所述生成模块还用于:基于第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;基于第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;基于第一操作系统根据所述视图组件创建位图;基于所述第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。In some embodiments, the generating module is further configured to: obtain the corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file based on the first operating system; and based on the first operation The system generates a layout to be displayed based on the view component, the data to be displayed, and the layout file; creates a bitmap based on the view component based on the first operating system; draws the layout to be displayed based on the first operating system On the bitmap, an image to be displayed is generated.
在一些实施例中,所述生成模块还用于:基于第一操作系统在视图组件中映射所述布局文件;基于第一操作系统将待显示数据填充到所述布局文件中。In some embodiments, the generating module is further configured to: map the layout file in the view component based on the first operating system; and fill the layout file with the data to be displayed based on the first operating system.
在一些实施例中,视图组件包括多个子视图组件,生成模块还用于:基于第一操作系统获取每一子视图组件的尺寸和位置信息;基于第一操作系统依次根据每一子视图组件的尺寸和位置信息将每一子视图组件设置在视图组件中对应的位置。In some embodiments, the view component includes a plurality of sub-view components, and the generation module is further used to: obtain the size and position information of each sub-view component based on the first operating system; The size and position information sets each sub-view component in a corresponding position in the view component.
在一些实施例中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件;所述获取模块还用于:基于所述第一操作系统获取所述待显示数据的数据类型;基于所述第一操作系统根据所述数据类型从所述布局文件库中检索与所述数据类型对应的布局文件;基于所述第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。In some embodiments, the first operating system includes a layout file library, and the layout file library includes a plurality of layout files; the acquisition module is further configured to: acquire the data to be displayed based on the first operating system Data type; retrieve the layout file corresponding to the data type from the layout file library according to the data type based on the first operating system; determine the retrieved layout file as the layout file based on the first operating system The layout file corresponding to the data to be displayed.
在一些实施例中,所述的显示控制装置还包括:压缩模块,用于基于所述第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;所述发送模块还用于:基于所述第一操作系统将所述压缩后的待显示图像发送给所述第二操作系统;所述显示控制装置还包括:解压缩模块,用于基于所述第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。In some embodiments, the display control device further includes: a compression module for compressing the image to be displayed based on the first operating system to generate a compressed image to be displayed; the sending module further Used to: send the compressed to-be-displayed image to the second operating system based on the first operating system; the display control device further includes: a decompression module for pairing based on the second operating system The compressed image to be displayed is decompressed to obtain the image to be displayed.
在一些实施例中,所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。In some embodiments, the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
在一些实施例中,电子设备包括主处理芯片和协处理芯片,主处理芯片与协处理芯片电连接,协处理芯片的运行功耗小于主处理芯片的运行功耗,其中主处理芯片控制运行第一操作系统,协处理芯片控制运行第二操作系统。In some embodiments, the electronic device includes a main processing chip and a co-processing chip. The main processing chip is electrically connected to the co-processing chip. The operating power consumption of the co-processing chip is less than the operating power consumption of the main processing chip. An operating system, the co-processing chip controls and runs the second operating system.
在一些实施例中,主处理芯片控制运行第一操作系统时,协处理芯片进入休眠状态;协处理芯片控制运行第二操作系统时,主处理芯片进入休眠状态。In some embodiments, when the main processing chip controls to run the first operating system, the co-processing chip enters a sleep state; when the co-processing chip controls to run the second operating system, the main processing chip enters a sleep state.
基于上述电子设备100的结构,对本申请实施例提供的显示控制装置200进行说明。请参考图10,图10为本申请实施例提供的显示控制装置的结构示意图。显示控制装置200应用于上述电子设备中。其中,所述显示控制装置200包括:获取模块201、生成模块202、发送模块203、控制模块204。Based on the structure of the above-mentioned electronic device 100, the display control apparatus 200 provided in the embodiment of the present application will be described. Please refer to FIG. 10, which is a schematic structural diagram of a display control device provided by an embodiment of the application. The display control device 200 is applied to the above-mentioned electronic equipment. Wherein, the display control device 200 includes: an acquisition module 201, a generation module 202, a sending module 203, and a control module 204.
获取模块201,用于基于第一操作系统根据待显示数据获取对应的布局文件。The obtaining module 201 is configured to obtain a corresponding layout file according to the data to be displayed based on the first operating system.
生成模块202,用于基于第一操作系统根据所述待显示数据和所述布局文件生成待显示图像。The generating module 202 is configured to generate an image to be displayed according to the data to be displayed and the layout file based on the first operating system.
发送模块203,用于通过第一操作系统将所述待显示图像发送给第二操作系统。The sending module 203 is configured to send the image to be displayed to the second operating system through the first operating system.
控制模块204,用于基于第二操作系统控制在电子设备的显示屏上显示所述待显示图像。The control module 204 is configured to control the display of the to-be-displayed image on the display screen of the electronic device based on the second operating system.
在一些实施例中,基于第一操作系统根据所述待显示数据和所述布局文件生成待显示图像时,所述生成模块202用于:基于第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;基于第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;基于第一操作系统根据所述视图组件创建位图;基于第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。In some embodiments, when the image to be displayed is generated according to the data to be displayed and the layout file based on the first operating system, the generating module 202 is configured to: according to the data type of the data to be displayed based on the first operating system And the layout file obtains the corresponding view component in the first operating system; generates the layout to be displayed based on the view component, the data to be displayed, and the layout file based on the first operating system; and based on the first operating system according to The view component creates a bitmap; draws the to-be-displayed layout on the bitmap based on the first operating system to generate the to-be-displayed image.
在一些实施例中,基于第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局时,所述生成模块202用于:基于第一操作系统在所述视图组件中映射所述布局文件;基于第一操作系统将所述待显示数据填充到所述布局文件中。In some embodiments, when the to-be-displayed layout is generated according to the view component, the to-be-displayed data, and the layout file based on the first operating system, the generating module 202 is configured to: The layout file is mapped in the component; the data to be displayed is filled into the layout file based on the first operating system.
在一些实施例中,基于第一操作系统将所述待显示数据填充到所述布局文件中之后,所述生成模块202还用于:基于第一操作系统获取每一子视图组件的尺寸和位置信息;基于第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。In some embodiments, after the data to be displayed is filled into the layout file based on the first operating system, the generating module 202 is further configured to: obtain the size and position of each sub-view component based on the first operating system Information; Based on the first operating system, each sub-view component is set in a corresponding position in the view component according to the size and position information of each sub-view component in turn.
在一些实施例中,基于第一操作系统根据待显示数据获取对应的布局文件时,所述获取模块201用于:基于第一操作系统获取待显示数据的数据类型;基于第一操作系统根据所述数据类型从布局文件库中检索与所述数据类型对应的布局文件;基于第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。In some embodiments, when the corresponding layout file is obtained according to the data to be displayed based on the first operating system, the obtaining module 201 is configured to: obtain the data type of the data to be displayed based on the first operating system; The data type retrieves a layout file corresponding to the data type from a layout file library; the retrieved layout file is determined as the layout file corresponding to the data to be displayed based on the first operating system.
在一些实施例中,参考图11,图11为本申请实施例提供的显示控制装置200的第二种结构示意图。其中,所述显示控制装置200还包括:压缩模块205、解压缩模块206。In some embodiments, referring to FIG. 11, FIG. 11 is a schematic diagram of the second structure of the display control device 200 according to an embodiment of the application. Wherein, the display control device 200 further includes: a compression module 205 and a decompression module 206.
压缩模块205,用于基于第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;The compression module 205 is configured to compress the image to be displayed based on the first operating system to generate a compressed image to be displayed;
所述发送模块203基于第一操作系统将所述待显示图像发送给第二操作系统时,用于:基于第一操作系统将所述压缩后的待显示图像发送给第二操作系统;When the sending module 203 sends the image to be displayed to the second operating system based on the first operating system, it is configured to: send the compressed image to be displayed to the second operating system based on the first operating system;
解压缩模块206,用于基于第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。The decompression module 206 is configured to decompress the compressed image to be displayed based on the second operating system to obtain the image to be displayed.
其中,所述显示控制装置200的各个模块所执行的功能的具体实现过程可以参考上文对显示控制方法的描述,在此不再赘述。For the specific implementation process of the functions performed by the modules of the display control device 200, reference may be made to the above description of the display control method, which will not be repeated here.
本申请实施例提供的显示控制装置200,所述显示控制装置200通过第一操作系统获取布局文件并生成待显示图像,第一操作系统将生成的待显示图像发送给第二操作系统后,通过第二操作系统控制显示待显示图像,从而可以通过第一操作系统进行数据处理,并通过第二操作系统控制显示,因此可以通过第一操作系统和第二操作系统的交互共同实现电子设备的显示控制,从而既可以充分利用第二操作系统的资源,又可以充分利用第一操作系统的资源,因此可以提高电子设备操作系统的资源利用率。According to the display control device 200 provided by the embodiment of the present application, the display control device 200 obtains the layout file through the first operating system and generates the image to be displayed. After the first operating system sends the generated image to be displayed to the second operating system, The second operating system controls the display of the image to be displayed, so that data processing can be performed by the first operating system, and the display can be controlled by the second operating system, so the display of the electronic device can be realized through the interaction of the first operating system and the second operating system. Control, so that both the resources of the second operating system and the resources of the first operating system can be fully utilized, so that the resource utilization rate of the operating system of the electronic device can be improved.
此外,当第二操作系统运行时的功耗小于第一操作系统运行时的功耗时,通过第一操作系统获取布局文件并生成待显示图像,可以满足对数据处理的需求,而在第一操作系统处理完数据生成待显示图像后,通过第二操作系统控制显示待显示图像,此时无需通过高功耗的第一操作系统来控制显示,因此可以降低电子设备的功耗,延长电子设备的待机时间。In addition, when the power consumption when the second operating system is running is less than the power consumption when the first operating system is running, the layout file is obtained through the first operating system and the image to be displayed is generated, which can meet the requirements for data processing. After the operating system processes the data to generate the image to be displayed, the second operating system controls the display of the image to be displayed. At this time, there is no need to control the display through the first operating system with high power consumption, so the power consumption of the electronic device can be reduced, and the electronic device can be lengthened. Standby time.
本申请实施例还提供一种电子设备,包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统;An embodiment of the present application also provides an electronic device, including a first operating system and a second operating system, where the second operating system and the first operating system are different operating systems;
所述第一操作系统根据待显示数据获取对应的布局文件;The first operating system obtains a corresponding layout file according to the data to be displayed;
所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;Generating, by the first operating system, an image to be displayed according to the data to be displayed and the layout file;
所述第一操作系统将所述待显示图像发送给所述第二操作系统;Sending, by the first operating system, the image to be displayed to the second operating system;
所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
在一些实施例中,所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像,包括:所述第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;所述第一操作系统根据所述视图组件创建位图;所述第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。In some embodiments, generating the image to be displayed by the first operating system according to the data to be displayed and the layout file includes: the first operating system according to the data type of the data to be displayed and the layout file Obtain the corresponding view component in the first operating system; the first operating system generates the layout to be displayed according to the view component, the data to be displayed, and the layout file; the first operating system generates the layout to be displayed according to the view The component creates a bitmap; the first operating system draws the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
在一些实施例中,第一操作系统根据所述视图组件、待显示数据以及所述布局文件生成待显示布局,包括:所述第一操作系统在所述视图组件中映射所述布局文件;所述第一操作系统将所述待显示数据填充到所述布局文件中。In some embodiments, the first operating system generates the layout to be displayed according to the view component, the data to be displayed, and the layout file, including: the first operating system maps the layout file in the view component; The first operating system fills the to-be-displayed data into the layout file.
在一些实施例中,视图组件包括多个子视图组件,第一操作系统将待显示数据填充到布局文件中之后,还包括:第一操作系统获取每一子视图组件的尺寸和位置信息;所述第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。In some embodiments, the view component includes multiple sub-view components. After the first operating system fills the data to be displayed into the layout file, the method further includes: the first operating system obtains the size and position information of each sub-view component; The first operating system sequentially sets each sub-view component in a corresponding position in the view component according to the size and position information of each of the sub-view components.
在一些实施例中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件,所述第一操作系统根据待显示数据获取对应的布局文件,包括:所述第一操作系统获取所述待显示数据的数据类型;所述第一操作系统根据所述数据类型从所述布局文件库中检索与所述数据类型对应的布局文件;所述第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。In some embodiments, the first operating system includes a layout file library, the layout file library includes a plurality of layout files, and the first operating system obtains a corresponding layout file according to the data to be displayed, including: the first The operating system obtains the data type of the data to be displayed; the first operating system retrieves the layout file corresponding to the data type from the layout file library according to the data type; the first operating system will retrieve The layout file of is determined as the layout file corresponding to the data to be displayed.
在一些实施例中,所述第一操作系统将所述待显示图像发送给所述第二操作系统之前,还包括:所述第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;所述第一操作系统将所述待显示图像发送给所述第二操作系统,包括:所述第一操作系统将所述压缩后的待显示图像发送给所述第二操作系统;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像之前,还包括:所述第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。In some embodiments, before the first operating system sends the image to be displayed to the second operating system, the method further includes: compressing the image to be displayed by the first operating system to generate a compressed image The image to be displayed; the first operating system sending the image to be displayed to the second operating system includes: the first operating system sending the compressed image to be displayed to the second operation System; before the second operating system controls the display of the image to be displayed on the display screen of the electronic device, it further includes: the second operating system decompresses the compressed image to be displayed to obtain The image to be displayed.
在一些实施例中,所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。In some embodiments, the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
在一些实施例中,电子设备包括主处理芯片和协处理芯片,主处理芯片与协处理芯片电连接,协处理芯片的运行功耗小于主处理芯片的运行功耗,其中主处理芯片控制运行第一操作系统,协处理芯片控制运行第二操作系统。In some embodiments, the electronic device includes a main processing chip and a co-processing chip. The main processing chip is electrically connected to the co-processing chip. The operating power consumption of the co-processing chip is less than the operating power consumption of the main processing chip. An operating system, the co-processing chip controls and runs the second operating system.
在一些实施例中,主处理芯片控制运行第一操作系统时,协处理芯片进入休眠状态;协处理芯片控制运行第二操作系统时,主处理芯片进入休眠状态。In some embodiments, when the main processing chip controls to run the first operating system, the co-processing chip enters a sleep state; when the co-processing chip controls to run the second operating system, the main processing chip enters a sleep state.
所述电子设备可以是智能手机、智能手表、平板电脑等设备,还可以是游戏设备、AR(Augmented Reality,增强现实)设备、汽车装置、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备等,还可以是诸如电子头盔、电子眼镜、电子衣物等可穿戴式电子设备。参考图12,图12为本申请实施例提供的电子设备100的第二种结构示意图。The electronic device can be a smart phone, a smart watch, a tablet computer, etc., and can also be a game device, AR (Augmented Reality) device, automobile device, data storage device, audio playback device, video playback device, notebook computer, etc. , Desktop computing devices, etc., can also be wearable electronic devices such as electronic helmets, electronic glasses, and electronic clothing. Referring to FIG. 12, FIG. 12 is a schematic diagram of a second structure of an electronic device 100 provided by an embodiment of the application.
电子设备100包括主处理芯片10、协处理芯片20以及存储器40。其中,主处理芯片10、协处理芯片20均与存储器40电性连接,主处理芯片10还与协处理芯片20电连接。所述协处理芯片20的运行功耗小于所述主处理芯片10的运行功耗。所述主处理芯片10用于控制运行第一操作系统,以控制所述电子设备100在所述第一操作系统下进行任务处理。协处理芯片20用于控制运行第二操作系统,以控制所述电子设备100在所述第二操作系统下进行任务处理。所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。The electronic device 100 includes a main processing chip 10, a co-processing chip 20, and a memory 40. Wherein, the main processing chip 10 and the co-processing chip 20 are electrically connected to the memory 40, and the main processing chip 10 is also electrically connected to the co-processing chip 20. The operating power consumption of the co-processing chip 20 is less than the operating power consumption of the main processing chip 10. The main processing chip 10 is used to control and run a first operating system to control the electronic device 100 to perform task processing under the first operating system. The co-processing chip 20 is used to control and run a second operating system to control the electronic device 100 to perform task processing under the second operating system. The power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
其中,主处理芯片10和协处理芯片20是电子设备100的控制中心,利用各种接口和线路连接整个电子设备100的各个部分,通过运行或调用存储在存储器40内的计算机程序,以及调用存储在存储器40内的数据,执行电子设备100的各种功能和处理数据,从而对电子设备100进行整体监控。Among them, the main processing chip 10 and the co-processing chip 20 are the control centers of the electronic device 100. Various interfaces and lines are used to connect the various parts of the entire electronic device 100. By running or calling the computer program stored in the memory 40, and calling the storage The data in the memory 40 executes various functions of the electronic device 100 and processes data, thereby monitoring the electronic device 100 as a whole.
在本实施例中,所述主处理芯片10和所述协处理芯片20按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器40中,并运行存储在存储器40中的计算机程序,用于:In this embodiment, the main processing chip 10 and the co-processing chip 20 follow the steps below to load instructions corresponding to the processes of one or more computer programs into the memory 40, and run and store them in the memory 40 Computer program for:
所述主处理芯片10控制所述第一操作系统根据待显示数据获取对应的布局文件;The main processing chip 10 controls the first operating system to obtain a corresponding layout file according to the data to be displayed;
所述主处理芯片10控制所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;The main processing chip 10 controls the first operating system to generate an image to be displayed according to the data to be displayed and the layout file;
所述主处理芯片10控制所述第一操作系统将所述待显示图像发送给所述第二操作系统;The main processing chip 10 controls the first operating system to send the image to be displayed to the second operating system;
所述协处理芯片20控制所述第二操作系统以控制在所述电子设备的显示屏上显示所述待显示图像。The co-processing chip 20 controls the second operating system to control the display of the to-be-displayed image on the display screen of the electronic device.
在一些实施例中,控制所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像时,所述主处理芯片10用于:In some embodiments, when controlling the first operating system to generate the image to be displayed according to the data to be displayed and the layout file, the main processing chip 10 is used to:
控制所述第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;Controlling the first operating system to obtain a corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file;
控制所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待 显示布局;Controlling the first operating system to generate a layout to be displayed according to the view component, the data to be displayed, and the layout file;
控制所述第一操作系统根据所述视图组件创建位图;Controlling the first operating system to create a bitmap according to the view component;
控制所述第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。Control the first operating system to draw the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
在一些实施例中,控制所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局时,所述主处理芯片10用于:In some embodiments, when controlling the first operating system to generate the to-be-displayed layout according to the view component, the to-be-displayed data, and the layout file, the main processing chip 10 is used to:
控制所述第一操作系统在所述视图组件中映射所述布局文件;Controlling the first operating system to map the layout file in the view component;
控制所述第一操作系统将所述待显示数据填充到所述布局文件中。Controlling the first operating system to fill the to-be-displayed data into the layout file.
在一些实施例中,所述视图组件包括多个子视图组件,控制所述第一操作系统将所述待显示数据填充到所述布局文件中之后,所述主处理芯片10用于:In some embodiments, the view component includes a plurality of sub-view components, and after controlling the first operating system to fill the to-be-displayed data into the layout file, the main processing chip 10 is used to:
控制所述第一操作系统获取每一所述子视图组件的尺寸和位置信息;Controlling the first operating system to obtain size and position information of each of the sub-view components;
控制所述第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。The first operating system is controlled to sequentially set each sub-view component in a corresponding position in the view component according to the size and position information of each of the sub-view components.
在一些实施例中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件,控制所述第一操作系统根据待显示数据获取对应的布局文件时,所述主处理芯片10用于:In some embodiments, the first operating system includes a layout file library, the layout file library includes a plurality of layout files, and when the first operating system is controlled to obtain a corresponding layout file according to the data to be displayed, the main processing Chip 10 is used for:
控制所述第一操作系统获取所述待显示数据的数据类型;Controlling the first operating system to obtain the data type of the data to be displayed;
控制所述第一操作系统根据所述数据类型从所述布局文件库中检索与所述数据类型对应的布局文件;Controlling the first operating system to retrieve the layout file corresponding to the data type from the layout file library according to the data type;
控制所述第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。Control the first operating system to determine the retrieved layout file as the layout file corresponding to the data to be displayed.
在一些实施例中:控制所述第一操作系统将所述待显示图像发送给所述第二操作系统之前,所述主处理芯片10还用于:控制所述第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;In some embodiments: before controlling the first operating system to send the to-be-displayed image to the second operating system, the main processing chip 10 is further configured to: control the first operating system to send the to-be-displayed image to the second operating system. The display image is compressed to generate a compressed image to be displayed;
控制所述第一操作系统将所述待显示图像发送给所述第二操作系统时,所述主处理芯片10用于:控制所述第一操作系统将所述压缩后的待显示图像发送给所述第二操作系统;When controlling the first operating system to send the image to be displayed to the second operating system, the main processing chip 10 is used to: control the first operating system to send the compressed image to be displayed to The second operating system;
控制所述第二操作系统以控制在所述电子设备的显示屏上显示所述待显示图像之前,所述协处理芯片20还用于:控制所述第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。Before controlling the second operating system to control the display of the to-be-displayed image on the display screen of the electronic device, the co-processing chip 20 is also used to: control the second operating system to control the compressed waiting The display image is decompressed to obtain the to-be-displayed image.
在一些实施例中,所述第一操作系统为安卓操作系统、Linux操作系统、Windows操作系统或ios操作系统,所述第二操作系统为实时操作系统。In some embodiments, the first operating system is an Android operating system, a Linux operating system, a Windows operating system, or an ios operating system, and the second operating system is a real-time operating system.
在一些实施例中,所述主处理芯片10控制运行所述第一操作系统时,所述协处理芯片20进入休眠状态;In some embodiments, when the main processing chip 10 controls to run the first operating system, the co-processing chip 20 enters a sleep state;
所述协处理芯片20控制运行所述第二操作系统时,所述主处理芯片10进入休眠状态。When the co-processing chip 20 controls to run the second operating system, the main processing chip 10 enters a sleep state.
存储器40可用于存储计算机程序和数据。存储器40存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器301通过调用存储在存储器40的计算机程序,从而执行各种功能应用以及数据处理。The memory 40 can be used to store computer programs and data. The computer program stored in the memory 40 contains instructions that can be executed in the processor. Computer programs can be composed of various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 40.
本申请实施例提供的电子设备100中,通过第一操作系统获取布局文件并生成待显示图像,第一操作系统将生成的待显示图像发送给第二操作系统后,通过第二操作系统控制显示待显示图像,从而可以通过第一操作系统进行数据处理,并通过第二操作系统控制显示,因此可以通过第一操作系统和第二操作系统的交互共同实现电子设备的显示控制,从而既可以充分利用第二操作系统的资源,又可以充分利用第一操作系统的资源,因此可以提高电子设备操作系统的资源利用率。In the electronic device 100 provided by the embodiment of the present application, the layout file is obtained through the first operating system and the image to be displayed is generated. After the first operating system sends the generated image to be displayed to the second operating system, the second operating system controls the display The image to be displayed can be processed by the first operating system, and the display can be controlled by the second operating system. Therefore, the display control of the electronic device can be realized through the interaction of the first operating system and the second operating system, so that the display control of the electronic device can be fully realized. Utilizing the resources of the second operating system can also make full use of the resources of the first operating system, so the resource utilization rate of the electronic device operating system can be improved.
此外,当第二操作系统运行时的功耗小于第一操作系统运行时的功耗时,通过第一操作系统获取布局文件并生成待显示图像,可以满足对数据处理的需求,而在第一操作系统处理完数据生成待显示图像后,通过第二操作系统控制显示待显示图像,此时无需通过高 功耗的第一操作系统来控制显示,因此可以降低电子设备的功耗,延长电子设备的待机时间。In addition, when the power consumption when the second operating system is running is less than the power consumption when the first operating system is running, the layout file is obtained through the first operating system and the image to be displayed is generated, which can meet the requirements for data processing. After the operating system processes the data to generate the image to be displayed, the second operating system controls the display of the image to be displayed. At this time, there is no need to control the display through the first operating system with high power consumption, so the power consumption of the electronic device can be reduced, and the electronic device can be lengthened. Standby time.
所述电子设备可以是智能手机、平板电脑等设备。请参阅图13,图13为本申请实施例提供的电子设备的第三种结构示意图。基于上述电子设备100的结构,主处理芯片10可以包括第一处理器11和第一存储器12。协处理芯片20包括第二处理器21和第二存储器22。其中,第一处理器11与第一存储器12电性连接,第二处理器21与第二存储器22电性连接。The electronic device may be a smart phone, a tablet computer, or other devices. Please refer to FIG. 13, which is a schematic diagram of a third structure of an electronic device provided by an embodiment of this application. Based on the structure of the electronic device 100 described above, the main processing chip 10 may include a first processor 11 and a first memory 12. The co-processing chip 20 includes a second processor 21 and a second memory 22. The first processor 11 is electrically connected to the first memory 12, and the second processor 21 is electrically connected to the second memory 22.
第一处理器11是电子设备100的控制中心,利用各种接口和线路连接整个电子设备100的各个部分,通过运行或调用存储在第一存储器12内的第一计算机程序和第一操作系统,以及调用存储在第一存储器12内的数据,执行电子设备100的各种功能和处理数据,从而对电子设备100进行整体监控。The first processor 11 is the control center of the electronic device 100, which uses various interfaces and lines to connect various parts of the entire electronic device 100, and by running or calling the first computer program and the first operating system stored in the first memory 12, And call the data stored in the first memory 12 to execute various functions of the electronic device 100 and process data, so as to monitor the electronic device 100 as a whole.
第一存储器12可用于存储第一计算机程序、第一操作系统和数据。第一存储器12存储的第一计算机程序中包含有可在第一处理器11中执行的指令。第一计算机程序可以组成各种功能模块。第一处理器11通过调用存储在第一存储器12的第一计算机程序,从而执行各种功能应用以及数据处理。The first memory 12 may be used to store a first computer program, a first operating system, and data. The first computer program stored in the first memory 12 contains instructions that can be executed in the first processor 11. The first computer program can constitute various functional modules. The first processor 11 executes various functional applications and data processing by calling the first computer program stored in the first memory 12.
第二处理器21也可以作为电子设备100的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在第二存储器22内的第二计算机程序和第二操作系统,以及调用存储在第二存储器22内的数据,执行电子设备100的各种功能和处理数据,从而对电子设备100进行整体监控。The second processor 21 can also be used as the control center of the electronic device 100, using various interfaces and lines to connect various parts of the entire electronic device, and by running or calling the second computer program and the second operating system stored in the second memory 22 , And call the data stored in the second memory 22 to execute various functions of the electronic device 100 and process data, so as to monitor the electronic device 100 as a whole.
第二存储器22可用于存储第二计算机程序、第二操作系统和数据,其中,第二操作系统可以不同于第一操作系统。第二存储器22存储的第二计算机程序中包含有可在第二处理器21中执行的指令。第二计算机程序可以组成各种功能模块。第二处理器21通过调用存储在第二存储器22的第二计算机程序,从而执行各种功能应用以及数据处理。The second memory 22 may be used to store a second computer program, a second operating system, and data, where the second operating system may be different from the first operating system. The second computer program stored in the second memory 22 contains instructions that can be executed in the second processor 21. The second computer program can constitute various functional modules. The second processor 21 executes various functional applications and data processing by calling the second computer program stored in the second memory 22.
在本实施例中,电子设备100中的第一处理器11会按照如下的步骤,将一个或一个以上的第一计算机程序的进程对应的指令加载到第一存储器12中,并由第一处理器11调用存储在第一存储器12中的第一计算机程序,用于:In this embodiment, the first processor 11 in the electronic device 100 will load one or more instructions corresponding to the process of the first computer program into the first memory 12 according to the following steps, and the first processor 11 The device 11 calls the first computer program stored in the first memory 12 for:
运行第一操作系统以根据待显示数据获取对应的布局文件;Run the first operating system to obtain the corresponding layout file according to the data to be displayed;
运行第一操作系统以根据待显示数据和布局文件生成待显示图像;Running the first operating system to generate the image to be displayed according to the data to be displayed and the layout file;
运行第一操作系统以将待显示图像发送给第二操作系统;Running the first operating system to send the image to be displayed to the second operating system;
所述第二处理器21通过调用所述第二计算机程序,用于:The second processor 21 calls the second computer program for:
运行第二操作系统以控制在电子设备的显示屏上显示所述待显示图像。The second operating system is executed to control the display of the to-be-displayed image on the display screen of the electronic device.
在一些实施例中,运行第一操作系统以根据待显示数据和布局文件生成待显示图像述第一处理器11还用于:运行第一操作系统以根据待显示数据的数据类型以及布局文件获取第一操作系统中对应的视图组件;运行第一操作系统以根据视图组件、待显示数据以及布局文件生成待显示布局;运行第一操作系统以根据视图组件创建位图;运行第一操作系统以将待显示布局绘制在位图上,以生成待显示图像。In some embodiments, the first operating system is run to generate the image to be displayed according to the data to be displayed and the layout file. The first processor 11 is also used to: run the first operating system to obtain the image according to the data type and the layout file of the data to be displayed. The corresponding view component in the first operating system; run the first operating system to generate the layout to be displayed based on the view component, the data to be displayed, and the layout file; run the first operating system to create a bitmap based on the view component; run the first operating system to Draw the layout to be displayed on the bitmap to generate the image to be displayed.
在一些实施例中,运行第一操作系统以根据视图组件、待显示数据以及布局文件生成待显示布局,第一处理器11还用于:运行第一操作系统以在视图组件中映射布局文件;运行第一操作系统以将待显示数据填充到布局文件中。In some embodiments, the first operating system is run to generate the layout to be displayed according to the view component, the data to be displayed, and the layout file, and the first processor 11 is further configured to: run the first operating system to map the layout file in the view component; Run the first operating system to fill the layout file with the data to be displayed.
在一些实施例中,视图组件包括多个子视图组件,运行第一操作系统以将待显示数据填充到布局文件中之后,第一处理器11还用于:运行第一操作系统以获取每一子视图组件的尺寸和位置信息;运行第一操作系统以依次根据每一子视图组件的尺寸和位置信息将每一子视图组件设置在视图组件中对应的位置。In some embodiments, the view component includes a plurality of sub-view components. After running the first operating system to fill the data to be displayed into the layout file, the first processor 11 is further configured to: run the first operating system to obtain each sub-view component. Size and position information of the view component; run the first operating system to sequentially set each sub-view component in a corresponding position in the view component according to the size and position information of each sub-view component.
在一些实施例中,第一操作系统包括布局文件库,所述布局文件库包括多个布局文件, 运行第一操作系统以根据待显示数据获取对应的布局文件,第一处理器11还用于:运行第一操作系统以获取待显示数据的数据类型;运行第一操作系统以根据数据类型从布局文件库中检索与数据类型对应的布局文件;运行第一操作系统以将检索到的布局文件确定为待显示数据对应的布局文件。In some embodiments, the first operating system includes a layout file library, the layout file library includes a plurality of layout files, the first operating system is run to obtain corresponding layout files according to the data to be displayed, and the first processor 11 is also configured to : Run the first operating system to obtain the data type of the data to be displayed; run the first operating system to retrieve the layout file corresponding to the data type from the layout file library according to the data type; run the first operating system to retrieve the layout file Determine the layout file corresponding to the data to be displayed.
在一些实施例中,运行第一操作系统以将待显示图像发送给第二操作系统之前,第一处理器11还用于:运行第一操作系统以将待显示图像进行压缩,以生成压缩后的待显示图像;In some embodiments, before running the first operating system to send the image to be displayed to the second operating system, the first processor 11 is further configured to: run the first operating system to compress the image to be displayed to generate a compressed image The image to be displayed;
运行第一操作系统以将待显示图像发送给第二操作系统,第一处理器11还用于:运行第一操作系统以将压缩后的待显示图像发送给第二操作系统;Run the first operating system to send the image to be displayed to the second operating system, and the first processor 11 is further configured to: run the first operating system to send the compressed image to be displayed to the second operating system;
运行第二操作系统以控制在电子设备的显示屏上显示待显示图像之前,第二处理器21还用于:运行第二操作系统对压缩后的待显示图像进行解压缩,以得到待显示图像。Before running the second operating system to control the display of the image to be displayed on the display screen of the electronic device, the second processor 21 is further configured to: run the second operating system to decompress the compressed image to be displayed to obtain the image to be displayed .
在一些实施例中,第二操作系统运行时的功耗小于第一操作系统运行时的功耗。In some embodiments, the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
本申请实施例还提供一种存储介质,应用于电子设备,所述电子设备包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统;所述存储介质中存储有计算机程序,当所述计算机程序被运行时,使得上述任一实施例所述的显示控制方法可以被执行。An embodiment of the present application further provides a storage medium applied to an electronic device, the electronic device includes a first operating system and a second operating system, and the second operating system and the first operating system are different operating systems; The storage medium stores a computer program, and when the computer program is executed, the display control method described in any of the above embodiments can be executed.
例如,在一些实施例中,当所述计算机程序被运行时,使得:所述第一操作系统根据待显示数据获取对应的布局文件;所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;所述第一操作系统将所述待显示图像发送给所述第二操作系统;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。For example, in some embodiments, when the computer program is executed, the first operating system obtains the corresponding layout file according to the data to be displayed; the first operating system obtains the corresponding layout file according to the data to be displayed and the The layout file generates the image to be displayed; the first operating system sends the image to be displayed to the second operating system; the second operating system controls the display of the image to be displayed on the display screen of the electronic device . It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a computer program, which can be stored in a computer-readable storage medium. Here, the storage medium may include, but is not limited to: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
以上对本申请实施例所提供的显示控制方法、装置、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above describes in detail the display control method, device, storage medium, and electronic equipment provided by the embodiments of the present application. Specific examples are used in this article to describe the principles and implementation of the application. The descriptions of the above examples are only used to help understand the methods and core ideas of the application; at the same time, for those skilled in the art, according to the principles of the application There will be changes in the thinking, specific implementation and application scope. In summary, the content of this specification should not be construed as a limitation to this application.
Claims (20)
- 一种显示控制方法,应用于电子设备,所述电子设备包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统,所述显示控制方法包括:A display control method applied to an electronic device, the electronic device includes a first operating system and a second operating system, the second operating system and the first operating system are different operating systems, the display control method include:所述第一操作系统根据待显示数据获取对应的布局文件;The first operating system obtains a corresponding layout file according to the data to be displayed;所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;Generating, by the first operating system, an image to be displayed according to the data to be displayed and the layout file;所述第一操作系统将所述待显示图像发送给所述第二操作系统;Sending, by the first operating system, the image to be displayed to the second operating system;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
- 根据权利要求1所述的显示控制方法,其中,所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像,包括:The display control method according to claim 1, wherein the first operating system generates the image to be displayed according to the data to be displayed and the layout file, comprising:所述第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;Acquiring, by the first operating system, a corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file;所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;Generating, by the first operating system, a layout to be displayed according to the view component, the data to be displayed, and the layout file;所述第一操作系统根据所述视图组件创建位图;The first operating system creates a bitmap according to the view component;所述第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。The first operating system draws the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
- 根据权利要求2所述的显示控制方法,其中,所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局,包括:3. The display control method according to claim 2, wherein the first operating system generates the to-be-displayed layout according to the view component, the to-be-displayed data, and the layout file, comprising:所述第一操作系统在所述视图组件中映射所述布局文件;The first operating system maps the layout file in the view component;所述第一操作系统将所述待显示数据填充到所述布局文件中。The first operating system fills the to-be-displayed data into the layout file.
- 根据权利要求3所述的显示控制方法,其中,所述视图组件包括多个子视图组件,所述第一操作系统将所述待显示数据填充到所述布局文件中之后,还包括:3. The display control method according to claim 3, wherein the view component includes a plurality of sub-view components, and after the first operating system fills the to-be-displayed data into the layout file, the method further comprises:所述第一操作系统获取每一所述子视图组件的尺寸和位置信息;Acquiring, by the first operating system, size and position information of each of the sub-view components;所述第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。The first operating system sequentially sets each sub-view component in a corresponding position in the view component according to the size and position information of each of the sub-view components.
- 根据权利要求1所述的显示控制方法,其中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件,所述第一操作系统根据待显示数据获取对应的布局文件,包括:The display control method according to claim 1, wherein the first operating system includes a layout file library, the layout file library includes a plurality of layout files, and the first operating system obtains a corresponding layout file according to the data to be displayed ,include:所述第一操作系统获取所述待显示数据的数据类型;Acquiring, by the first operating system, the data type of the data to be displayed;所述第一操作系统根据所述数据类型从所述布局文件库中检索与所述数据类型对应的布局文件;The first operating system retrieves the layout file corresponding to the data type from the layout file library according to the data type;所述第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。The first operating system determines the retrieved layout file as the layout file corresponding to the data to be displayed.
- 根据权利要求1所述的显示控制方法,其中:The display control method according to claim 1, wherein:所述第一操作系统将所述待显示图像发送给所述第二操作系统之前,还包括:所述第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;Before the first operating system sends the image to be displayed to the second operating system, the method further includes: compressing the image to be displayed by the first operating system to generate a compressed image to be displayed;所述第一操作系统将所述待显示图像发送给所述第二操作系统,包括:所述第一操作系统将所述压缩后的待显示图像发送给所述第二操作系统;The first operating system sending the image to be displayed to the second operating system includes: the first operating system sending the compressed image to be displayed to the second operating system;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像之前,还包括:所述第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。Before the second operating system controls the display of the image to be displayed on the display screen of the electronic device, the method further includes: the second operating system decompresses the compressed image to be displayed to obtain the The image to be displayed.
- 根据权利要求1所述的显示控制方法,其中,所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。The display control method according to claim 1, wherein the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
- 根据权利要求1所述的显示控制方法,其中,所述电子设备包括主处理芯片和协处理芯片,所述主处理芯片与所述协处理芯片电连接,所述协处理芯片的运行功耗小于所述主处理芯片的运行功耗,其中所述主处理芯片控制运行所述第一操作系统,所述协处理 芯片控制运行所述第二操作系统。The display control method according to claim 1, wherein the electronic device comprises a main processing chip and a co-processing chip, the main processing chip is electrically connected to the co-processing chip, and the operating power consumption of the co-processing chip is less than The operating power consumption of the main processing chip, wherein the main processing chip controls the operation of the first operating system, and the co-processing chip controls the operation of the second operating system.
- 根据权利要求8所述的显示控制方法,其中:The display control method according to claim 8, wherein:所述主处理芯片控制运行所述第一操作系统时,所述协处理芯片进入休眠状态;When the main processing chip controls to run the first operating system, the co-processing chip enters a sleep state;所述协处理芯片控制运行所述第二操作系统时,所述主处理芯片进入休眠状态。When the co-processing chip controls the running of the second operating system, the main processing chip enters a sleep state.
- 一种电子设备,包括第一操作系统和第二操作系统,所述第二操作系统与所述第一操作系统为不同的操作系统;An electronic device includes a first operating system and a second operating system, where the second operating system and the first operating system are different operating systems;所述第一操作系统根据待显示数据获取对应的布局文件;The first operating system obtains a corresponding layout file according to the data to be displayed;所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像;Generating, by the first operating system, an image to be displayed according to the data to be displayed and the layout file;所述第一操作系统将所述待显示图像发送给所述第二操作系统;Sending, by the first operating system, the image to be displayed to the second operating system;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像。The second operating system controls the display of the to-be-displayed image on the display screen of the electronic device.
- 根据权利要求10所述的电子设备,其中,所述第一操作系统根据所述待显示数据和所述布局文件生成待显示图像,包括:11. The electronic device according to claim 10, wherein the first operating system generates the image to be displayed according to the data to be displayed and the layout file, comprising:所述第一操作系统根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;Acquiring, by the first operating system, a corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file;所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;Generating, by the first operating system, a layout to be displayed according to the view component, the data to be displayed, and the layout file;所述第一操作系统根据所述视图组件创建位图;The first operating system creates a bitmap according to the view component;所述第一操作系统将所述待显示布局绘制在所述位图上,以生成待显示图像。The first operating system draws the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
- 根据权利要求11所述的电子设备,其中,所述第一操作系统根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局,包括:11. The electronic device according to claim 11, wherein the first operating system generates the to-be-displayed layout according to the view component, the to-be-displayed data, and the layout file, comprising:所述第一操作系统在所述视图组件中映射所述布局文件;The first operating system maps the layout file in the view component;所述第一操作系统将所述待显示数据填充到所述布局文件中。The first operating system fills the to-be-displayed data into the layout file.
- 根据权利要求12所述的电子设备,其中,所述视图组件包括多个子视图组件,所述第一操作系统将所述待显示数据填充到所述布局文件中之后,还包括:The electronic device according to claim 12, wherein the view component includes a plurality of sub-view components, and after the first operating system fills the to-be-displayed data into the layout file, further comprising:所述第一操作系统获取每一所述子视图组件的尺寸和位置信息;Acquiring, by the first operating system, size and position information of each of the sub-view components;所述第一操作系统依次根据每一所述子视图组件的尺寸和位置信息将每一所述子视图组件设置在所述视图组件中对应的位置。The first operating system sequentially sets each sub-view component in a corresponding position in the view component according to the size and position information of each of the sub-view components.
- 根据权利要求10所述的电子设备,其中,所述第一操作系统包括布局文件库,所述布局文件库包括多个布局文件,所述第一操作系统根据待显示数据获取对应的布局文件,包括:11. The electronic device according to claim 10, wherein the first operating system includes a layout file library, the layout file library includes a plurality of layout files, and the first operating system obtains a corresponding layout file according to the data to be displayed, include:所述第一操作系统获取所述待显示数据的数据类型;Acquiring, by the first operating system, the data type of the data to be displayed;所述第一操作系统根据所述数据类型从所述布局文件库中检索与所述数据类型对应的布局文件;The first operating system retrieves the layout file corresponding to the data type from the layout file library according to the data type;所述第一操作系统将检索到的布局文件确定为所述待显示数据对应的布局文件。The first operating system determines the retrieved layout file as the layout file corresponding to the data to be displayed.
- 根据权利要求10所述的电子设备,其中:The electronic device according to claim 10, wherein:所述第一操作系统将所述待显示图像发送给所述第二操作系统之前,还包括:所述第一操作系统将所述待显示图像进行压缩,以生成压缩后的待显示图像;Before the first operating system sends the image to be displayed to the second operating system, the method further includes: compressing the image to be displayed by the first operating system to generate a compressed image to be displayed;所述第一操作系统将所述待显示图像发送给所述第二操作系统,包括:所述第一操作系统将所述压缩后的待显示图像发送给所述第二操作系统;The first operating system sending the image to be displayed to the second operating system includes: the first operating system sending the compressed image to be displayed to the second operating system;所述第二操作系统控制在所述电子设备的显示屏上显示所述待显示图像之前,还包括:所述第二操作系统对所述压缩后的待显示图像进行解压缩,以得到所述待显示图像。Before the second operating system controls the display of the image to be displayed on the display screen of the electronic device, the method further includes: the second operating system decompresses the compressed image to be displayed to obtain the The image to be displayed.
- 根据权利要求10所述的电子设备,其中,所述第二操作系统运行时的功耗小于所述第一操作系统运行时的功耗。The electronic device according to claim 10, wherein the power consumption when the second operating system is running is less than the power consumption when the first operating system is running.
- 根据权利要求10所述的电子设备,其中,所述电子设备包括主处理芯片和协处 理芯片,所述主处理芯片与所述协处理芯片电连接,所述协处理芯片的运行功耗小于所述主处理芯片的运行功耗,其中,所述主处理芯片控制运行所述第一操作系统,所述协处理芯片控制运行所述第二操作系统。The electronic device according to claim 10, wherein the electronic device comprises a main processing chip and a co-processing chip, the main processing chip is electrically connected to the co-processing chip, and the operating power consumption of the co-processing chip is less than that of the co-processing chip. The operating power consumption of the main processing chip, wherein the main processing chip controls to run the first operating system, and the co-processing chip controls to run the second operating system.
- 根据权利要求17所述的电子设备,其中:The electronic device according to claim 17, wherein:所述主处理芯片控制运行所述第一操作系统时,所述协处理芯片进入休眠状态;When the main processing chip controls to run the first operating system, the co-processing chip enters a sleep state;所述协处理芯片控制运行所述第二操作系统时,所述主处理芯片进入休眠状态。When the co-processing chip controls the running of the second operating system, the main processing chip enters a sleep state.
- 一种电子设备,包括主处理芯片和协处理芯片,所述主处理芯片与所述协处理芯片电连接,所述协处理芯片的运行功耗小于所述主处理芯片的运行功耗;An electronic device comprising a main processing chip and a co-processing chip, the main processing chip is electrically connected to the co-processing chip, and the operating power consumption of the co-processing chip is less than the operating power consumption of the main processing chip;所述主处理芯片包括第一处理器和第一存储器,所述第一存储器上存储有第一操作系统和第一计算机程序,所述第一处理器通过调用所述第一计算机程序,用于:The main processing chip includes a first processor and a first memory. A first operating system and a first computer program are stored on the first memory. The first processor is used for calling the first computer program. :运行所述第一操作系统以根据待显示数据获取对应的布局文件;Running the first operating system to obtain a corresponding layout file according to the data to be displayed;运行所述第一操作系统以根据所述待显示数据和所述布局文件生成待显示图像;Running the first operating system to generate an image to be displayed according to the data to be displayed and the layout file;运行所述第一操作系统以将所述待显示图像发送给所述第二操作系统;Running the first operating system to send the image to be displayed to the second operating system;所述协处理芯片包括第二处理器和第二存储器,所述第二存储器上存储有第二操作系统和第二计算机程序,所述第二操作系统不同于所述第一操作系统,所述第二处理器通过调用所述第二计算机程序,用于:The co-processing chip includes a second processor and a second memory. A second operating system and a second computer program are stored on the second memory. The second operating system is different from the first operating system. By calling the second computer program, the second processor is used to:运行所述第二操作系统以控制在所述电子设备的显示屏上显示所述待显示图像。Running the second operating system to control the display of the to-be-displayed image on the display screen of the electronic device.
- 根据权利要求19所述的电子设备,其中,运行所述第一操作系统以根据所述待显示数据和所述布局文件生成待显示图像,所述第一处理器用于:The electronic device according to claim 19, wherein the first operating system is run to generate the image to be displayed according to the data to be displayed and the layout file, and the first processor is configured to:运行所述第一操作系统以根据所述待显示数据的数据类型以及所述布局文件获取所述第一操作系统中对应的视图组件;Running the first operating system to obtain a corresponding view component in the first operating system according to the data type of the data to be displayed and the layout file;运行所述第一操作系统以根据所述视图组件、所述待显示数据以及所述布局文件生成待显示布局;Running the first operating system to generate a layout to be displayed according to the view component, the data to be displayed, and the layout file;运行所述第一操作系统以根据所述视图组件创建位图;Running the first operating system to create a bitmap according to the view component;运行所述第一操作系统以将所述待显示布局绘制在所述位图上,以生成待显示图像。Run the first operating system to draw the to-be-displayed layout on the bitmap to generate the to-be-displayed image.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911378814.8A CN113051084B (en) | 2019-12-27 | 2019-12-27 | Display control method and device, storage medium and electronic equipment |
CN201911378814.8 | 2019-12-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021129888A1 true WO2021129888A1 (en) | 2021-07-01 |
Family
ID=76506886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/070463 WO2021129888A1 (en) | 2019-12-27 | 2021-01-06 | Display control method and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113051084B (en) |
WO (1) | WO2021129888A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105431897A (en) * | 2013-03-15 | 2016-03-23 | 谷歌技术控股有限责任公司 | Method and apparatus for displaying a predetermined image on a display panel of an electronic device when the electronic device is operating in a reduced power mode of operation |
CN108227895A (en) * | 2017-07-26 | 2018-06-29 | 珠海市魅族科技有限公司 | One kind puts out screen display methods and terminal, computer installation and readable storage medium storing program for executing |
CN108334296A (en) * | 2018-01-26 | 2018-07-27 | 出门问问信息科技有限公司 | A kind of display device, electronic equipment and control method for screen display |
CN108337363A (en) * | 2017-12-26 | 2018-07-27 | 努比亚技术有限公司 | A kind of terminal puts out screen display control method, terminal |
US20190237007A1 (en) * | 2018-01-26 | 2019-08-01 | Mobvoi Information Technology Co., Ltd. | Display device, electronic device and method of controlling screen display |
CN111831099A (en) * | 2020-07-06 | 2020-10-27 | Oppo广东移动通信有限公司 | Electronic device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101714021B (en) * | 2008-10-08 | 2015-01-28 | 联想(北京)有限公司 | Computer of hybrid system |
CN107491160A (en) * | 2017-06-22 | 2017-12-19 | 深圳天珑无线科技有限公司 | A kind of application method of dual operating systems, storage device and intelligent terminal |
CN108319360A (en) * | 2018-01-26 | 2018-07-24 | 出门问问信息科技有限公司 | A kind of display device, electronic equipment and control method for screen display |
-
2019
- 2019-12-27 CN CN201911378814.8A patent/CN113051084B/en active Active
-
2021
- 2021-01-06 WO PCT/CN2021/070463 patent/WO2021129888A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105431897A (en) * | 2013-03-15 | 2016-03-23 | 谷歌技术控股有限责任公司 | Method and apparatus for displaying a predetermined image on a display panel of an electronic device when the electronic device is operating in a reduced power mode of operation |
CN108227895A (en) * | 2017-07-26 | 2018-06-29 | 珠海市魅族科技有限公司 | One kind puts out screen display methods and terminal, computer installation and readable storage medium storing program for executing |
CN108337363A (en) * | 2017-12-26 | 2018-07-27 | 努比亚技术有限公司 | A kind of terminal puts out screen display control method, terminal |
CN108334296A (en) * | 2018-01-26 | 2018-07-27 | 出门问问信息科技有限公司 | A kind of display device, electronic equipment and control method for screen display |
US20190237007A1 (en) * | 2018-01-26 | 2019-08-01 | Mobvoi Information Technology Co., Ltd. | Display device, electronic device and method of controlling screen display |
CN111831099A (en) * | 2020-07-06 | 2020-10-27 | Oppo广东移动通信有限公司 | Electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN113051084B (en) | 2023-07-14 |
CN113051084A (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10565965B2 (en) | Method and device for controlling refresh rate of mobile terminal and mobile terminal | |
CN106791212B (en) | A kind of control method, device and the mobile terminal of mobile terminal refresh rate | |
CN106933587B (en) | Layer drawing control method and device and mobile terminal | |
AU2014223629B2 (en) | System and method for virtual displays | |
WO2021115209A1 (en) | Display screen region refreshing method, storage medium and electronic device | |
CN109857486B (en) | Method, device, equipment and medium for processing program page data | |
US10410398B2 (en) | Systems and methods for reducing memory bandwidth using low quality tiles | |
US10235945B2 (en) | Apparatus and method for controlling display in electronic device having processors | |
US20180233106A1 (en) | Page display method and terminal | |
CN109948581B (en) | Image-text rendering method, device, equipment and readable storage medium | |
WO2018176734A1 (en) | Data processing method and terminal | |
CN108256072B (en) | Album display method, apparatus, storage medium and electronic device | |
WO2021129888A1 (en) | Display control method and electronic device | |
JP2021190098A (en) | Image preprocessing method, device, electronic apparatus, and storage medium | |
CN112882561B (en) | Display control method, storage medium, and electronic device | |
CN115373618B (en) | Multi-screen display method and device, vehicle machine and storage medium | |
CN114820878B (en) | Image editing method and device | |
CN110737323A (en) | Screen display method, device, storage medium and terminal | |
CN116719587A (en) | Screen display method, electronic device and computer readable storage medium | |
CN114968041A (en) | Event response method, device, equipment and medium based on graph | |
CN114489910A (en) | Video conference data display method, device, equipment and medium | |
CN113822010A (en) | Content display method, device, equipment and storage medium | |
US10997356B1 (en) | Computing device user interface having auto-grouping of data columns | |
WO2021115229A1 (en) | Method and apparatus for displaying electronic book, storage medium and electronic device | |
CN113031748A (en) | Display method and device based on dynamic word stock, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21735132 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21735132 Country of ref document: EP Kind code of ref document: A1 |