CN114637559A - Method, system, equipment and storage medium for displaying starting interface - Google Patents

Method, system, equipment and storage medium for displaying starting interface Download PDF

Info

Publication number
CN114637559A
CN114637559A CN202011482383.2A CN202011482383A CN114637559A CN 114637559 A CN114637559 A CN 114637559A CN 202011482383 A CN202011482383 A CN 202011482383A CN 114637559 A CN114637559 A CN 114637559A
Authority
CN
China
Prior art keywords
display
icon
output interface
hardware
startup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011482383.2A
Other languages
Chinese (zh)
Other versions
CN114637559B (en
Inventor
吴瀚宁
朱锋
林鹏展
郭霞飞
王若楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Corp
Pateo Connect and Technology Shanghai Corp
Original Assignee
Dongfeng Motor Corp
Pateo Connect and Technology Shanghai Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Corp, Pateo Connect and Technology Shanghai Corp filed Critical Dongfeng Motor Corp
Priority to CN202011482383.2A priority Critical patent/CN114637559B/en
Publication of CN114637559A publication Critical patent/CN114637559A/en
Application granted granted Critical
Publication of CN114637559B publication Critical patent/CN114637559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method, a system, equipment and a storage medium for displaying a starting interface, which comprise the following steps: after receiving a starting instruction, starting a Linux kernel; acquiring a hardware resource for displaying a startup icon based on a Linux kernel; setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in a display output interface; drawing the startup icon; storing the boot icon into a display cache of the hardware resource; and reading the boot icon in the display cache, and outputting a boot interface containing the boot icon in the display output interface according to the sorting value. Hardware resources used for displaying the startup icon are obtained based on a Linux kernel, the startup icon is displayed independently of android display service, an open graphic library can be used for drawing the icon in an application layer, and the startup icon is rapidly displayed without being limited to a static icon.

Description

Method, system, equipment and storage medium for displaying starting interface
Technical Field
The present application relates to the field of display control, and in particular, to a method, a system, a device, and a storage medium for displaying a booting interface.
Background
For embedded products with user interface interaction capability, a specific icon is often required to be displayed on a display screen at the startup stage, and the display requirement of the icon is as fast as possible after startup. For example, in the dual screen or triple screen which is popular in the automobile industry at present, if the central control screen can quickly display the icons after the automobile is started, the icons can be continuously displayed with the digital liquid crystal instrument, and the multi-screen interaction effect can be achieved.
The display mode of the starting icon depends on the android display service, and the starting of the android display service is slow, so that the starting icon is slow to display; therefore, another way for enabling the display of the boot icon to be independent of android display service and accelerating the display of the boot icon appears, that is, the boot icon is integrated into the Linux kernel by using the Linux kernel icon instead of the android icon, and because an open graphics library (OpenGL) can only be used in an application layer and cannot be used in the Linux kernel layer, only static icons can be displayed, and the requirements of most situations cannot be met.
Therefore, how to provide a display mode of a boot interface capable of quickly displaying a boot icon without being limited to a static icon becomes an important research topic in the field.
Disclosure of Invention
One objective of the present application is to provide a method, a system, a device, and a storage medium for displaying a boot interface, in which after a Linux kernel is started, hardware resources for displaying a boot icon are obtained based on the Linux kernel; the method has the advantages that the display of the starting interface containing the starting icon does not depend on android display service, the starting interface can be rapidly displayed, the starting icon is not drawn on the kernel layer, hardware resources are obtained on the basis of the kernel layer, the starting icon is drawn on the application layer, an open graphic library can be used, and the starting icon is not limited to a static icon and can also be a dynamic icon.
Another object of the present application is to provide a method, a system, a device and a storage medium for displaying a boot interface, wherein after an android hardware abstraction layer service is successfully started, hardware resources for displaying a boot icon are obtained from the android hardware abstraction layer service; the method has the advantages that the hardware resources for displaying the startup icon are obtained from the android hardware abstraction layer service, and then the hardware resources are obtained from the Linux kernel by the android hardware abstraction layer service, so that direct interaction between an application program and the Linux kernel is reduced, and uniform management is realized by the android hardware abstraction layer service; and the display of the startup icon does not depend on android display service, an open graphic library can be used in an application layer, and the startup icon is not limited to a static icon.
Another object of the present application is to provide a method, system, device and storage medium for displaying a booting interface, wherein an open graphic library is used to perform drawing of a booting icon, and the booting icon is stored in a display buffer after the completion of drawing of the booting icon, so as to ensure that the booting icon can be displayed completely and smoothly; the method has the advantages that the texture rendering time of the open graphic library is short, the performance of millisecond level is realized, and the drawing of the startup icon can be completed quickly, so that the display of the startup interface containing the startup icon is accelerated.
Another object of the present application is to provide a method, a system, a device and a storage medium for displaying a booting interface, wherein the method, the system, the device and the storage medium access hardware display information of a Linux kernel to obtain display parameters of a display output interface, and set the display parameters of hardware resources for displaying a booting icon as the display parameters of the display output interface, so as to display the booting icon completely without loss; the method has the advantages that the display parameters of the display output interface are obtained from the Linux kernel, the android hardware service is not depended on, the independence of the boot icon display function module is enhanced, and the coupling of the module is reduced.
Another objective of the present application is to provide a method, a system, a device, and a storage medium for displaying a boot interface, wherein the display parameters of the display output interface are obtained by invoking an interface of the android hardware abstraction layer service, and the display parameters of the hardware resources for displaying a boot icon are set as the display parameters of the display output interface, so as to display the boot icon completely without loss; the method has the advantages that the display parameters of the display output interface are obtained through the android hardware service, data access to the Linux kernel is reduced, data security is enhanced, and kernel performance is optimized.
To achieve the foregoing objective, in a first aspect, the present application provides a method for displaying a booting interface, including: after receiving a starting instruction, starting a Linux kernel; acquiring a hardware resource for displaying a startup icon based on the Linux kernel; setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in a display output interface; drawing the startup icon; storing the boot icon into a display cache of the hardware resource; and reading the boot icon in the display cache, and outputting a boot interface containing the boot icon in the display output interface according to the sorting value. Acquiring hardware resources for displaying a startup icon based on a Linux kernel, setting the sorting value of the hardware resources to a numerical value larger than 0, and placing the hardware resources for displaying the startup icon on an android display layer so as to display a startup interface containing the startup icon on the display output interface; the display of the startup icon does not depend on android display service, an open graphic library can be used in an application layer, and the startup icon is not limited to a static icon.
With reference to the first aspect, in some embodiments, the drawing the power-on icon includes: loading an image resource; the image resources comprise one or more of static images or dynamic images; performing texture rendering on the image resource to obtain the startup icon; the texture rendering includes one or more of a two-dimensional texture rendering or a three-dimensional texture rendering. And creating a canvas draft memory by using an open graphic library, drawing the startup icon in the canvas draft memory, and storing the startup icon into the display cache after the startup icon is drawn so as to ensure that the startup icon can be completely and smoothly displayed. The image resources may support one or more of static images or dynamic images, and the texture rendering may include one or more of two-dimensional texture rendering or three-dimensional texture rendering; the texture rendering of the open graphic library is short in time consumption, has the performance of millisecond level, and can quickly finish the drawing of the startup icon so as to accelerate the display of the startup interface containing the startup icon.
With reference to the first aspect, in some embodiments, before the storing the power-on icon in the display cache of the hardware resource, the method further includes: acquiring display parameters of the display output interface; setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise display resolution, display memory format and display refresh rate. And setting the display parameters of the hardware resources to be matched with the display parameters of the display output interface so as to ensure that the startup icon is displayed completely without loss.
With reference to the first aspect, in some embodiments, the obtaining the display parameter of the display output interface includes: and acquiring hardware display information of the Linux kernel to obtain display parameters of the display output interface. And the display parameters of the display output interface are acquired from the Linux kernel, so that the independence of the boot icon display functional module is enhanced and the coupling of the module is reduced without depending on android hardware service.
With reference to the first aspect, in some embodiments, before the obtaining the display parameters of the display output interface, the method further includes: starting android hardware abstraction layer service; the acquiring the display parameters of the display output interface comprises: and calling an interface of the android hardware abstraction layer service to obtain the display parameters of the display output interface. And the display parameters of the display output interface are acquired through the android hardware service, so that data access to the Linux kernel is reduced, the data security is enhanced, and the kernel performance is optimized.
With reference to the first aspect, in some embodiments, before the outputting, in the display output interface, the boot interface including the boot icon according to the sorting value, the method further includes: setting a display transparency of the hardware resource to opaque. The startup icon display layer realizes full coverage on the android display layer, and ensures that the startup icon is displayed completely without insertion and overlapping obstacles.
With reference to the first aspect, in some embodiments, before outputting, in the display output interface, the boot interface including the boot icon according to the sorting value, the method further includes: and setting the display transparency of the part of the hardware resources occupied by the startup icon as opaque, and setting the display transparency of the part of the hardware resources except the startup icon as transparent. The display position that the start icon occupies sets up to opaque to the start icon, and other parts set up to transparent, realize partial cover to the tall and erect display layer of ann, and the interface that does not influence tall and erect display layer when the guarantee start icon is complete, do not insert, do not overlap and hinder ground and show.
With reference to the first aspect, in some embodiments, the ranking value of the hardware resource is preferably set to a value of 1, a value of 2, or a value of 3; and the ranking value of the android display layer is 0, and the ranking value of the hardware resource is set to be greater than 0, so that the hardware resource is displayed on the android display layer.
With reference to the first aspect, in some embodiments, the display of the boot interface including the boot icon does not end the display task until the following conditions are met: finishing the playing of the startup icon; and completing starting of the android system.
In a second aspect, the present application provides a method for displaying a booting interface, including: after receiving a starting instruction, starting a Linux kernel; starting android hardware abstraction layer services based on the Linux kernel; acquiring hardware resources for displaying a startup icon based on the android hardware abstraction layer service; setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in a display output interface; drawing the startup icon; storing the boot icon into a display cache of the hardware resource; and reading the startup icon in the display cache, and displaying a startup interface containing the startup icon in the display output interface according to the sorting value. And acquiring hardware resources for displaying a startup icon from the android hardware abstraction layer service, and acquiring the hardware resources from the Linux kernel by the android hardware abstraction layer service, so that direct interaction between an application program and the Linux kernel is reduced, and uniform management is realized by the android hardware abstraction layer service.
With reference to the second aspect, in some embodiments, the drawing the power-on icon includes: loading an image resource; the image resources comprise one or more of static images or dynamic images; performing texture rendering on the image resource to obtain the startup icon; the texture rendering includes one or more of a two-dimensional texture rendering or a three-dimensional texture rendering. And creating a canvas draft memory by using an open graphic library, drawing the startup icon in the canvas draft memory, and storing the startup icon into the display cache after the startup icon is drawn so as to ensure that the startup icon can be completely and smoothly displayed. The image resources may support one or more of static images or dynamic images, and the texture rendering may include one or more of two-dimensional texture rendering or three-dimensional texture rendering; the texture rendering of the open graphic library is short in time consumption, has the performance of millisecond level, and can quickly finish the drawing of the startup icon so as to accelerate the display of the startup interface containing the startup icon.
With reference to the second aspect, in some embodiments, before the storing the power-on icon in the display cache of the hardware resource, the method further comprises: acquiring display parameters of the display output interface; setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise display resolution, display memory format and display refresh rate. And setting the display parameters of the hardware resources to be matched with the display parameters of the display output interface so as to ensure that the startup icon is displayed completely without loss.
With reference to the second aspect, in some embodiments, the obtaining the display parameter of the display output interface includes: and acquiring hardware display information of the Linux kernel to obtain display parameters of the display output interface. And the display parameters of the display output interface are acquired from the Linux kernel, so that the independence of the boot icon display functional module is enhanced and the coupling of the module is reduced without depending on android hardware service.
With reference to the second aspect, in some embodiments, the obtaining the display parameter of the display output interface includes: and calling an interface of the android hardware abstraction layer service to obtain the display parameters of the display output interface. And the display parameters of the display output interface are acquired through the android hardware service, so that data access to the Linux kernel is reduced, the data security is enhanced, and the kernel performance is optimized.
With reference to the second aspect, in some embodiments, before the outputting, in the display output interface, the boot interface including the boot icon according to the sorting value, the method further includes: setting a display transparency of the hardware resource to opaque. The startup icon display layer realizes full coverage on the android display layer, and ensures that the startup icon is displayed completely without insertion and overlapping obstacles.
With reference to the second aspect, in some embodiments, before the outputting, in the display output interface, the boot interface including the boot icon according to the sorting value, the method further includes: and setting the display transparency of the part of the hardware resources occupied by the startup icon as opaque, and setting the display transparency of the part of the hardware resources except the startup icon as transparent. The display position that the start icon occupies sets up to opaque to the start icon, and other parts set up to transparent, realize partial cover to the tall and erect display layer of ann, and the interface that does not influence tall and erect display layer when the guarantee start icon is complete, do not insert, do not overlap and hinder ground and show.
In combination with the second aspect, in some embodiments, the ranking value of the hardware resource is preferably set to a value of 1, a value of 2, or a value of 3; and the ranking value of the android display layer is 0, and the ranking value of the hardware resource is set to be greater than 0, so that the hardware resource is displayed on the android display layer.
With reference to the second aspect, in some embodiments, the display of the booting interface including the booting icon does not end the display task until the following conditions are satisfied: finishing the playing of the startup icon; and completing starting of the android system.
In a third aspect, the present application provides a device for displaying a booting interface, including:
the starting unit is used for starting the Linux kernel after receiving the starting instruction;
the obtaining unit is used for obtaining hardware resources for displaying the startup icon based on the Linux kernel;
the setting unit is used for setting the ranking value of the hardware resource to a numerical value larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing unit is used for drawing the startup icon;
the storage unit is used for storing the startup icon into a display cache of the hardware resource;
and the display unit is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
In a fourth aspect, the present application provides an apparatus for displaying a booting interface, including:
the starting unit is used for starting the Linux kernel after receiving the starting instruction;
the starting unit is also used for starting android hardware abstract layer service based on the Linux kernel;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring hardware resources for displaying a startup icon based on the android hardware abstraction layer service;
the setting unit is used for setting the ranking value of the hardware resource to a numerical value larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing unit is used for drawing the startup icon;
the storage unit is used for storing the startup icon into a display cache of the hardware resource;
and the display unit is used for reading the startup icon in the display cache and displaying a startup interface containing the startup icon in the display output interface according to the sorting value.
In a fifth aspect, the present application provides a system for displaying a booting interface, including:
the starting module is used for starting the Linux kernel after receiving the starting instruction;
the obtaining module is used for obtaining hardware resources for displaying the startup icon based on the Linux kernel;
the setting module is used for setting the ranking value of the hardware resource to a numerical value which is larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing module is used for drawing the startup icon;
the storage module is used for storing the startup icon into a display cache of the hardware resource;
and the display module is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
In a sixth aspect, the present application provides a system for displaying a booting interface, including:
the starting module is used for starting the Linux kernel after receiving the starting instruction;
the starting module is also used for starting android hardware abstraction layer service based on the Linux kernel;
the acquisition module is used for acquiring hardware resources for displaying the startup icon based on the android hardware abstraction layer service;
the setting module is used for setting the ranking value of the hardware resource to a numerical value which is larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing module is used for drawing the startup icon;
the storage module is used for storing the boot icon into a display cache of the hardware resource;
and the display module is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
In a seventh aspect, the present application provides an electronic device, comprising: the device comprises a memory and a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform a method as described in any one of the first aspect and the first possible implementation manner or to perform a method as described in any one of the second aspect and the second possible implementation manner.
In an eighth aspect, the present application provides a computer readable storage medium having a computer program stored therein; the computer program, when run on one or more processors, causes the electronic device to perform a method as described in the first aspect and any one of the possible implementations of the first aspect or to perform a method as described in the second aspect and any one of the possible implementations of the second aspect.
In a ninth aspect, the present application provides a computer program product comprising instructions that, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect and any one of the possible implementations of the first aspect or to perform a method as described in the second aspect and any one of the possible implementations of the second aspect.
Drawings
In order to more clearly illustrate the technical solution in the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for displaying a booting interface according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of another method for displaying a booting interface according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for drawing a power-on icon according to an embodiment of the present disclosure;
fig. 5A is a flowchart of a method for acquiring display output interface parameters according to an embodiment of the present disclosure;
fig. 5B is a flowchart of a method for obtaining display output interface parameters according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating an apparatus for displaying a booting interface according to an embodiment of the disclosure;
FIG. 7 is a diagram illustrating a system for displaying a booting interface according to an embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating a method for displaying a booting interface according to an embodiment of the disclosure;
fig. 9 is a flowchart of a method for displaying a booting interface according to an embodiment of the present disclosure.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In this application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and three or more, "and/or" for describing an association relationship of associated objects, which means that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one item(s) below" or similar expressions refer to any combination of these items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b," a and c, "" b and c, "or" a and b and c.
In order to describe the scheme of the present application more clearly, some knowledge related to the scheme is introduced below.
A Linux kernel: linux is an operating system kernel of an open-source computer. The operating system is a low-level supporting software that is used to interface with the hardware and provide a limited set of services for user programs. A computer system is a co-organism of hardware and software that are interdependent, not separable. The hardware of the computer comprises peripheral equipment, a processor, a memory, a hard disk and other electronic equipment which form a motor of the computer. But has no software to operate and control it and is not functional by itself. The software that performs this control task is called the operating system, which in Linux terminology is called the "kernel" and may also be called the "kernel". The main modules of the Linux kernel are divided into the following parts: storage management, CPU and process management, file systems, device management and drivers, network communications, and system initialization, system calls, etc.
Hardware resources: the most important hardware resources are computing resources and storage resources, and except for the management of computing resources and memory resources, the operating system manages other resources through input/output (IO). The display output interface belongs to output equipment, and hardware resources with the display function are acquired and managed by IO. And the hardware resources with the display function adjust the display sequence of the hardware resources in the display output interface by setting the display sequence value of the hardware resources. The hardware resource with the display function can provide a hardware channel for the cache content, and output the content in the display cache of the hardware resource to the display output interface, that is, writing data in a specific format into the display cache means outputting the content to the display output interface.
Texture rendering: the texture rendering comprises two-dimensional texture rendering and three-dimensional texture rendering, and the texture rendering process comprises the following steps: creating a corresponding two-dimensional texture class or a three-dimensional texture class according to the image resource, and obtaining the surface of the texture of the image resource; rendering a scene to the textured surface; rendering the texture itself, adding either 2D effects or 3D effects. For example, rotation of a sphere is realized, and a two-dimensional texture rendering mode or a three-dimensional texture rendering mode can be adopted; the two-dimensional texture rendering method comprises the following steps: the method comprises the steps of firstly, creating a two-dimensional texture class, loading two-dimensional image resources of a plurality of spheres into the two-dimensional texture class, and obtaining the surface of the texture of the two-dimensional image resources; secondly, rendering a scene to the surface of the texture, such as coloring and display parameter setting; and thirdly, rendering the texture, and playing the two-dimensional texture images in sequence to obtain the 3D effect of the rotary sphere. The steps of rendering by adopting the three-dimensional texture are as follows: the method comprises the steps of firstly, creating a three-dimensional texture class, loading a three-dimensional image resource into the three-dimensional texture class, and obtaining the surface of the texture of the three-dimensional image resource; secondly, rendering a scene to the surface of the texture, such as coloring and display parameter setting; and step three, rendering the texture, and controlling the rotation of the three-dimensional texture image to obtain the 3D effect of the rotary sphere.
An exemplary electronic device 100 provided in the following embodiments of the present application is described below.
The following describes each component of the electronic device in detail with reference to fig. 1:
the memory 110 may be used to store software programs and modules, and the processor 120 executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory 110. The memory 110 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function, such as a sound playing function, an image playing function, and the like; the storage data area may store data created according to use of the electronic device. Further, memory 110 may include high speed random access memory, which may be volatile or non-volatile. Such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 120 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 110 and calling data stored in the memory 110, thereby performing overall monitoring of the electronic device. Optionally, processor 120 may include one or more processing units; preferably, the processor 120 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor may not be integrated into the processor 120.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 120, and can receive and execute commands sent by the processor 120. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the electronic device. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 120 to determine the type of the touch event, and then the processor 120 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 1, the touch panel 131 and the display panel 141 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the electronic device.
The processor 120 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 110 and calling data stored in the memory 110, thereby performing overall monitoring of the electronic device. Optionally, processor 120 may include one or more processing units; preferably, the processor 120 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor may not be integrated into the processor 120.
The electronic device also includes a power supply 150 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 120 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Some of the drawings to which this application relates are further described below.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for displaying a booting interface according to an embodiment of the present disclosure. As shown in fig. 2, in step 201, after receiving a power-on command, a Linux kernel is started; step 202, acquiring hardware resources for displaying a startup icon based on the Linux kernel; after the Linux is started, acquiring a hardware resource for displaying a startup icon from the Linux kernel; the hardware resource has a display function, provides a hardware channel for the cache content, and outputs the cache content in the display cache of the hardware resource to the display output interface, namely, writing data in a specific format into the display cache means outputting the content to the display output interface; the display of the startup icon does not depend on android display service, an open graphic library can be used in an application layer, and the startup icon is rapidly displayed and is not limited to a static icon; step 203, setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in the display output interface; adjusting the display sequence of the hardware resources in a display output interface by setting the display sequence value of the hardware resources, so that the startup icon display layer is displayed on the android display layer; preferably, the ranking value of the hardware resource is set to a value of 1, a value of 2, or a value of 3; and the ranking value of the android display layer is 0, and the ranking value of the hardware resource is set to be greater than 0, so that the hardware resource is displayed on the android display layer. Step 204, drawing the startup icon; executing a drawing task in an application layer, and drawing the startup icon by using an open graphic library, wherein the image resource of the startup icon is not limited to a static image; step 205, storing the boot icon in a display cache of the hardware resource; writing the startup icon into a display cache; step 206, reading the boot icon in the display cache, and displaying the boot interface containing the boot icon in the display output interface according to the sorting value. The display of the booting interface containing the booting icon is not finished until the following conditions are met: one condition is that the boot icon is played; another condition is that the android system boot is complete.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for displaying a booting interface according to an embodiment of the present disclosure.
As shown in fig. 3, in step 301, after receiving a boot instruction, starting a Linux kernel; step 302, starting android hardware abstraction layer services based on the Linux kernel; step 303, acquiring hardware resources for displaying a boot icon based on the android hardware abstraction layer service; after the android hardware abstraction layer service is started, hardware resources used for displaying a startup icon are obtained from the android hardware abstraction layer service, and then the hardware resources are obtained from the Linux kernel by the android hardware abstraction layer service, so that direct interaction between an application program and the Linux kernel is reduced, and unified management is achieved by the android hardware abstraction layer service. Step 304, setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in the display output interface; adjusting the display sequence of the hardware resources in a display output interface by setting the display sequence value of the hardware resources, so that the display layer of the startup icon is displayed on the android display layer; preferably, the ranking value of the hardware resource is set to a value of 1, a value of 2, or a value of 3; and the ranking value of the android display layer is 0, and the ranking value of the hardware resource is set to be greater than 0, so that the hardware resource is displayed on the android display layer. Step 305, drawing the startup icon; executing a drawing task in an application layer, and drawing the startup icon by using an open graphic library, wherein the image resource of the startup icon is not limited to a static image; step 306, storing the boot icon in a display cache of the hardware resource; writing the startup icon into a display cache; step 307, reading the boot icon in the display cache, and displaying the boot interface including the boot icon in the display output interface according to the sorting value. The display of the booting interface containing the booting icon is not finished until the following conditions are met: one condition is that the boot icon is played; another condition is that the android system boot is complete.
Referring to fig. 4, fig. 4 is a flowchart of a method for drawing a power-on icon according to an embodiment of the present disclosure. In step 203 shown in fig. 2 or step 305 shown in fig. 3, the drawing the boot icon includes: loading an image resource; the image resources comprise one or more of static images or dynamic images; performing texture rendering on the image resource to obtain the startup icon; the texture rendering includes one or more of a two-dimensional texture rendering or a three-dimensional texture rendering. As shown in fig. 4, the step of drawing the boot icon includes the following steps: step 401, creating a canvas memory for storing a drawing result; the method comprises the steps that a canvas draft memory is created by using an open graphic library, the boot icon can be drawn in the canvas draft memory, and the boot icon is stored in the display cache after being drawn, so that the boot icon can be completely and smoothly displayed; step 402, creating texture classes, wherein the texture classes comprise one or more of two-dimensional texture classes or three-dimensional texture classes; under the condition that the image resources are two-dimensional image resources, creating two-dimensional texture classes; under the condition that the image resources are three-dimensional image resources, creating a three-dimensional texture class; under the condition that the image resources comprise two-dimensional image resources and three-dimensional image resources, creating a two-dimensional texture class and a three-dimensional texture class, wherein the two-dimensional texture class and the three-dimensional texture class are used for loading the image resources into corresponding texture classes; preferably, a programming interface calling OpenGL is adopted to initialize OpenGL to create texture classes; step 403, loading image resources to the texture class; loading the image resources into corresponding texture classes, specifically loading two-dimensional image resources into two-dimensional texture classes, and loading three-dimensional image resources into three-dimensional texture classes; step 404, performing texture rendering to obtain a drawing result as the startup icon; comprises pixel processing and coloring processing; step 405, storing the boot icon in a display cache of the hardware resource.
Referring to fig. 5A, fig. 5A is a flowchart of a method for obtaining display output interface parameters according to an embodiment of the present disclosure. Before storing the power-on icon in the display cache of the hardware resource as described in step 204 of fig. 2, the method further comprises: as shown in fig. 5A, step 501, obtaining display parameters of the display output interface; step 502, setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise display resolution, display memory format and display refresh rate. As shown in fig. 5A, there are provided two methods for obtaining the display parameters of the display output interface:
(1) as shown in step 503 of fig. 5A, acquiring hardware display information of the Linux kernel to obtain display parameters of the display output interface; the Linux kernel is successfully started before the hardware resource for displaying the startup icon is obtained, and the Linux kernel comprehensively manages system information and can view display parameters of a display output interface by accessing the Linux kernel. The display parameters of the display output interface are obtained from the Linux kernel, the independence of the startup icon display function module is enhanced without depending on android hardware service, and the coupling of the module is reduced.
(2) As in step 504 of fig. 5A, the android hardware abstraction layer service is started; and 505, calling an interface of the android hardware abstraction layer service, and acquiring display parameters of the display output interface. And the display parameters of the display output interface are acquired through the android hardware service, so that data access to the Linux kernel is reduced, the data security is enhanced, and the kernel performance is optimized.
Referring to fig. 5B, fig. 5B is a flowchart of a method for obtaining display output interface parameters according to an embodiment of the present disclosure. Before storing the power-on icon in the display cache of the hardware resource in step 306 in fig. 3, the method further includes: as shown in fig. 5B, in step 506, the display parameters of the display output interface are obtained; step 507, setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise display resolution, display memory format and display refresh rate. As shown in fig. 5B, there are provided two methods for obtaining the display parameters of the display output interface:
(1) as shown in step 508 in fig. 5B, acquiring the hardware display information of the Linux kernel to obtain the display parameters of the display output interface; the Linux kernel is successfully started before the hardware resource for displaying the startup icon is obtained, and the Linux kernel comprehensively manages system information and can view display parameters of a display output interface by accessing the Linux kernel. And the display parameters of the display output interface are acquired from the Linux kernel, so that the independence of the boot icon display functional module is enhanced and the coupling of the module is reduced without depending on android hardware service.
(2) As shown in step 509 of fig. 5B, an interface of the android hardware abstraction layer service is called, and the display parameters of the display output interface are obtained. And the display parameters of the display output interface are acquired through the android hardware service, so that data access to the Linux kernel is reduced, the data security is enhanced, and the kernel performance is optimized.
Referring to fig. 6, fig. 6 is a schematic diagram of a device for displaying a booting interface according to an embodiment of the present application. As shown in fig. 6, the apparatus for displaying a booting interface includes: the starting unit 601 is configured to start the Linux kernel after receiving the boot instruction; an obtaining unit 602, configured to obtain, based on the Linux kernel, a hardware resource for displaying a boot icon; a setting unit 603, configured to set a ranking value of the hardware resource to a numerical value greater than 0, where the ranking value indicates a display order of the hardware resource in a display output interface; a drawing unit 604, configured to draw the boot icon; a storage unit 605, configured to store the boot icon in a display cache of the hardware resource; a display unit 606, configured to read the boot icon in the display cache, and display a boot interface including the boot icon in the display output interface according to the sorting value.
In some other embodiments, the means for displaying the booting interface includes: the starting unit 601 is configured to start the Linux kernel after receiving the boot instruction; the starting unit 601 also starts an android hardware abstraction layer service based on the Linux kernel; an obtaining unit 602, configured to obtain, based on the android hardware abstraction layer service, a hardware resource for displaying a boot icon; a setting unit 603, configured to set a ranking value of the hardware resource to a numerical value greater than 0, where the ranking value indicates a display order of the hardware resource in a display output interface; a drawing unit 604, configured to draw the boot icon; a storage unit 605, configured to store the boot icon in the display cache of the hardware resource; a display unit 606, configured to read the boot icon in the display cache, and display a boot interface including the boot icon in the display output interface according to the sorting value.
Referring to fig. 7, fig. 7 is a schematic diagram of a system for displaying a booting interface according to an embodiment of the present disclosure. As shown in fig. 7, the system for displaying a booting interface includes: the starting module 701 is used for starting a Linux kernel after receiving a starting instruction; an obtaining module 702, configured to obtain, based on the Linux kernel, a hardware resource for displaying a boot icon; a setting module 703, configured to set a ranking value of the hardware resource to a numerical value greater than 0, where the ranking value indicates a display order of the hardware resource in the display output interface; a drawing module 704, configured to draw the boot icon; the storage module 705 is configured to store the boot icon in the display cache of the hardware resource; a display module 706, configured to read the boot icon in the display cache, and display a boot interface including the boot icon in the display output interface according to the sorting value.
In some other embodiments, the system for displaying a booting interface includes: the starting module 701 is used for starting a Linux kernel after receiving a starting instruction; the starting module 701 is further configured to start an android hardware abstraction layer service based on the Linux kernel; an obtaining module 702, configured to obtain, based on the android hardware abstraction layer service, a hardware resource for displaying a boot icon; a setting module 703, configured to set a ranking value of the hardware resource to a numerical value greater than 0, where the ranking value indicates a display order of the hardware resource in the display output interface; a drawing module 704, configured to draw the boot icon; the storage module 705 is configured to store the boot icon in the display cache of the hardware resource; a display module 706, configured to read the boot icon in the display cache, and display a boot interface including the boot icon in the display output interface according to the sorting value.
The following introduces a specific processing flow for displaying the startup interface by using the method for displaying the startup interface provided by the present application in combination with a use scenario.
Use scenario one: fig. 8 shows an application program for executing and displaying a boot interface based on a Linux kernel, and in this embodiment, the application program for executing and displaying a boot interface based on a Linux kernel includes the following steps:
step 801, after receiving a starting-up instruction, starting a Linux kernel;
step 802, determining whether the Linux kernel is started successfully;
step 803, under the condition that the Linux kernel is determined to be successfully started, starting a display application program; in some embodiments, the display application is a Linux kernel-based application designed to display a boot icon;
step 804, acquiring a hardware resource for displaying a startup icon from the Linux kernel; the hardware resource has a display function, provides a hardware channel for the cache content, and outputs the cache content in the display cache of the hardware resource to the display output interface, namely, writing data in a specific format into the display cache means outputting the content to the display output interface; specifically, a DRM frame interface is initialized, the hardware resource is acquired, a video Overlay function (Overlay) of the DRM frame is enabled, and a set right of the hardware resource is given to the Overlay.
Step 805, setting the ranking value of the hardware resource to a numerical value greater than 0; the ranking value indicates a display order of the hardware resources in the display output interface; adjusting the display sequence of the hardware resources in a display output interface by setting the display sequence value of the hardware resources, so that the startup icon display layer is displayed on the android display layer; preferably, the ranking value of the hardware resource is set to a value of 1, a value of 2, or a value of 3; setting the ranking value of the hardware resource to be greater than 0 when the ranking value of the android display layer is 0, so that the hardware resource is displayed on the android display layer; specifically, the hardware resources of the hardware composition (hardware composition) are configured to display the ordered values (e.g., Z-axis order) so that the Overlay of the hardware resources is drawn on top of the Overlay of the Android.
Step 806, acquiring hardware display information of the Linux kernel to obtain display parameters of the display output interface; the display parameters of the display output interface are obtained from a Linux kernel, the independence of a boot icon display function module is enhanced without depending on android hardware service, and the coupling of the module is reduced;
step 807, setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise one or more of display resolution, display memory format and display refresh rate; specifically, in some embodiments, the display resolution of the hardware resource is set to the display resolution of the display output interface, the video memory format of the hardware resource is set to the video memory format of the display output interface, and the display refresh rate of the hardware resource is set to the display refresh rate of the display output interface; in some embodiments, the display transparency of the hardware resource is set to be opaque, or the display transparency of the part of the hardware resource occupied by the power-on icon is set to be opaque, and the display transparency of the part of the hardware resource except the power-on icon is set to be transparent.
Step 808, enabling the display application program to draw the startup icon; specifically, an OpenGL application programming interface is called, OpenGL is initialized, and a canvas memory used for storing a drawing result is created; creating a texture class comprising one or more of a two-dimensional texture class (2D texture) or a three-dimensional texture class (3D texture); loading image resources to the texture class, executing texture rendering, configuring corresponding 3D effect, and obtaining a drawing result as the startup icon; in some embodiments, the image assets include one or more of still images or moving images.
Step 809, storing the boot icon in a display cache (frame buffer) of the hardware resource;
step 810, reading the boot icon in the display cache, and displaying a boot interface containing the boot icon in the display output interface according to the sorting value; and ending the display task until the display of the starting interface containing the starting icon meets the following conditions: finishing the playing of the startup icon; and completing starting of the android system.
By executing the method provided by the embodiment, after the Linux kernel is successfully started, the display task of the startup icon can be executed on the application layer, the hardware resource for displaying the startup icon is obtained, the startup icon display does not depend on android display service, an open graphic library can be used on the application layer, and the startup icon is quickly displayed and is not limited to a static icon. The time consumption for executing texture rendering of the open graphic library is short, the performance of millisecond level is achieved, and the drawing of the startup icon can be completed quickly, so that the display of the startup interface containing the startup icon is accelerated. And the display parameters of the display output interface are acquired from the Linux kernel, so that the independence of the boot icon display functional module is enhanced and the coupling of the module is reduced without depending on android hardware service.
(II) usage scenario II: executing an application program for displaying a starting interface based on the android hardware abstraction layer service:
as shown in fig. 9, in this embodiment, the executing application program for displaying the boot interface based on the android hardware abstraction layer service includes the following steps:
step 901, after receiving a starting instruction, starting a Linux kernel;
step 902, determining whether the Linux kernel is successfully started;
step 903, starting android hardware abstraction layer service under the condition that the Linux kernel is determined to be started successfully;
step 904, starting a display application program; in some embodiments, the display application is a Linux kernel-based application designed to display a boot icon;
step 905, acquiring hardware resources for displaying a boot icon from the android hardware abstraction layer; the hardware resource has a display function, provides a hardware channel for the cache content, and outputs the cache content in the display cache of the hardware resource to the display output interface, namely, writing data in a specific format into the display cache means outputting the content to the display output interface; acquiring hardware resources for displaying a boot icon from the android hardware abstraction layer service, and acquiring the hardware resources from the Linux kernel by the android hardware abstraction layer service, so that direct interaction between an application program and the Linux kernel is reduced, and uniform management is realized by the android hardware abstraction layer service; specifically, a socket is adopted to connect the android hardware abstraction layer service, and the hardware resource is applied to the android hardware abstraction layer service through a communication protocol; the socket is a means of cross-process communication, specifically is an interface for an application program to communicate through a network protocol, and is an interface for the application program to interact with the network protocol.
Step 906, setting the ranking value of the hardware resource to a numerical value greater than 0; the ranking value indicates a display order of the hardware resources in the display output interface; adjusting the display sequence of the hardware resources in a display output interface by setting the display sequence value of the hardware resources, so that the startup icon display layer is displayed on the android display layer; preferably, the ranking value of the hardware resource is set to a value of 1, a value of 2, or a value of 3; setting the ranking value of the hardware resource to be greater than 0 when the ranking value of the android display layer is 0, so that the hardware resource is displayed on the android display layer; the specific implementation method is described in detail in step 805 of fig. 8, and is not described herein again.
Step 907, calling an interface of the android hardware abstraction layer service to obtain display parameters of the display output interface; the display parameters of the display output interface are obtained through an android hardware service, so that data access to a Linux kernel is reduced, data security is enhanced, and kernel performance is optimized;
step 908, setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise one or more of display resolution, display memory format and display refresh rate; the specific setting method is described in detail in step 807 in fig. 8, and is not described herein again.
Step 909, enabling the display application program to draw the startup icon; drawing of the boot icon is completed by calling an OpenGL application programming interface, and a specific setting method is described in detail in step 808 of fig. 8, which is not described herein again.
Step 910, storing the boot icon in a display cache (frame buffer) of the hardware resource;
step 911, reading the boot icon in the display cache, and displaying the boot interface including the boot icon in the display output interface according to the sorting value; and ending the display task until the display of the starting interface containing the starting icon meets the following conditions: finishing the playing of the startup icon; and completing starting of the android system.
By executing the method provided by the embodiment, after the Linux kernel is successfully started, the display task of the boot icon can be executed in the application layer, the hardware resource for displaying the boot icon is obtained, the boot icon is displayed without depending on android display service, an open graphic library can be used in the application layer, and the boot icon is rapidly displayed without being limited to a static icon. The time consumption for executing texture rendering of the open graphic library is short, the performance of millisecond level is achieved, and the drawing of the startup icon can be completed quickly, so that the display of the startup interface containing the startup icon is accelerated. The display parameters of the display output interface are obtained from the Linux kernel, the independence of the startup icon display function module is enhanced without depending on android hardware service, and the coupling of the module is reduced.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …", depending on the context. Similarly, depending on the context, the phrase "at the time of determination …" or "if (a stated condition or event) is detected" may be interpreted to mean "if the determination …" or "in response to the determination …" or "upon detection (a stated condition or event)" or "in response to detection (a stated condition or event)".
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application occur, in whole or in part, when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (18)

1. A method for displaying a boot interface, comprising:
after receiving a starting instruction, starting a Linux kernel;
acquiring a hardware resource for displaying a startup icon based on the Linux kernel;
setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in a display output interface;
drawing the startup icon;
storing the boot icon into a display cache of the hardware resource;
and reading the boot icon in the display cache, and outputting a boot interface containing the boot icon in the display output interface according to the sorting value.
2. The method of claim 1, said drawing said power-on icon comprising:
loading an image resource; the image resource comprises one or more of a static image or a dynamic image;
performing texture rendering on the image resource to obtain the startup icon; the texture rendering includes one or more of a two-dimensional texture rendering or a three-dimensional texture rendering.
3. The method of claim 1 or 2, prior to the storing the power-on icon in a display cache of the hardware resource, the method further comprising:
acquiring display parameters of the display output interface;
setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise display resolution, display memory format and display refresh rate.
4. The method of claim 3, the obtaining display parameters of the display output interface comprising:
and acquiring hardware display information of the Linux kernel to obtain display parameters of the display output interface.
5. The method of claim 3, prior to said obtaining display parameters for said display output interface, further comprising:
starting an android hardware abstraction layer service;
the acquiring the display parameters of the display output interface comprises: and calling an interface of the android hardware abstraction layer service to obtain the display parameters of the display output interface.
6. The method according to claim 1 or 2, before outputting, in the display output interface, a boot interface including the boot icon according to the ranking value, the method further comprising: setting a display transparency of the hardware resource to opaque.
7. A method for displaying a boot interface, comprising:
after receiving a starting instruction, starting a Linux kernel;
starting android hardware abstraction layer services based on the Linux kernel;
acquiring hardware resources for displaying a startup icon based on the android hardware abstraction layer service;
setting the ranking value of the hardware resource to a numerical value larger than 0, wherein the ranking value indicates the display sequence of the hardware resource in a display output interface;
drawing the boot icon;
storing the boot icon into a display cache of the hardware resource;
and reading the startup icon in the display cache, and displaying a startup interface containing the startup icon in the display output interface according to the sorting value.
8. The method of claim 7, said drawing said power-on icon comprising:
loading an image resource; the image resources comprise one or more of static images or dynamic images;
performing texture rendering on the image resource to obtain the startup icon; the texture rendering includes one or more of a two-dimensional texture rendering or a three-dimensional texture rendering.
9. The method of claim 7 or 8, prior to the storing the power-on icon in a display cache of the hardware resource, the method further comprising:
acquiring display parameters of the display output interface;
setting the display parameters of the hardware resources as the display parameters of the display output interface; the display parameters comprise display resolution, display memory format and display refresh rate.
10. The method of claim 9, the obtaining display parameters of the display output interface comprising:
and acquiring hardware display information of the Linux kernel to obtain display parameters of the display output interface.
11. The method of claim 9, the obtaining display parameters of the display output interface comprising: and calling an interface of the android hardware abstraction layer service to obtain the display parameters of the display output interface.
12. The method according to claim 7 or 8, before outputting, in the display output interface, a boot interface including the boot icon according to the ranking value, the method further comprising: setting a display transparency of the hardware resource to opaque.
13. An apparatus for displaying a boot interface, comprising:
the starting unit is used for starting the Linux kernel after receiving the starting command;
the obtaining unit is used for obtaining hardware resources for displaying the startup icon based on the Linux kernel;
the setting unit is used for setting the ranking value of the hardware resource to a numerical value larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing unit is used for drawing the startup icon;
the storage unit is used for storing the startup icon into a display cache of the hardware resource;
and the display unit is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
14. An apparatus for displaying a boot interface, comprising:
the starting unit is used for starting the Linux kernel after receiving the starting instruction;
the starting unit is also used for starting android hardware abstract layer service based on the Linux kernel;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring hardware resources for displaying a startup icon based on the android hardware abstraction layer service;
the setting unit is used for setting the ranking value of the hardware resource to a numerical value larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing unit is used for drawing the startup icon;
the storage unit is used for storing the startup icon into a display cache of the hardware resource;
and the display unit is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
15. A system for displaying a boot interface, comprising:
the starting module is used for starting the Linux kernel after receiving the starting instruction;
the obtaining module is used for obtaining hardware resources for displaying the startup icon based on the Linux kernel;
the setting module is used for setting the ranking value of the hardware resource to a numerical value which is larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing module is used for drawing the startup icon;
the storage module is used for storing the startup icon into a display cache of the hardware resource;
and the display module is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
16. A system for displaying a boot interface, comprising:
the starting module is used for starting the Linux kernel after receiving the starting instruction;
the starting module is also used for starting android hardware abstraction layer service based on the Linux kernel;
the acquisition module is used for acquiring hardware resources for displaying the startup icon based on the android hardware abstraction layer service;
the setting module is used for setting the ranking value of the hardware resource to a numerical value which is larger than 0, and the ranking value indicates the display sequence of the hardware resource in a display output interface;
the drawing module is used for drawing the startup icon;
the storage module is used for storing the startup icon into a display cache of the hardware resource;
and the display module is used for reading the startup icon in the display cache and displaying the startup interface containing the startup icon in the display output interface according to the sequencing value.
17. A computer device, comprising: a memory, a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform the method of any of claims 1-12.
18. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium; the computer program, when run on one or more processors, performs the method of any one of claims 1-12.
CN202011482383.2A 2020-12-15 2020-12-15 Method, system, equipment and storage medium for displaying startup interface Active CN114637559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011482383.2A CN114637559B (en) 2020-12-15 2020-12-15 Method, system, equipment and storage medium for displaying startup interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011482383.2A CN114637559B (en) 2020-12-15 2020-12-15 Method, system, equipment and storage medium for displaying startup interface

Publications (2)

Publication Number Publication Date
CN114637559A true CN114637559A (en) 2022-06-17
CN114637559B CN114637559B (en) 2023-11-24

Family

ID=81944568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011482383.2A Active CN114637559B (en) 2020-12-15 2020-12-15 Method, system, equipment and storage medium for displaying startup interface

Country Status (1)

Country Link
CN (1) CN114637559B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841799A (en) * 2011-03-31 2012-12-26 辉达公司 Method and apparatus to support a self-refreshing display device coupled to a graphic controller
CN102915563A (en) * 2012-09-07 2013-02-06 深圳市旭东数字医学影像技术有限公司 Method and system for transparently drawing three-dimensional grid model
CN103186385A (en) * 2011-12-27 2013-07-03 鸿富锦精密工业(深圳)有限公司 Electronic device capable of setting starting parameter and setting method
CN103617027A (en) * 2013-10-29 2014-03-05 合一网络技术(北京)有限公司 Android-based method and system for constructing image rendering engine
CN103729212A (en) * 2013-12-12 2014-04-16 乐视致新电子科技(天津)有限公司 Booting icon display method and booting icon display device
CN105260205A (en) * 2015-09-30 2016-01-20 中山市天启电子科技有限公司 Method for implementing startup of double operating systems on embedded board
WO2016104469A1 (en) * 2014-12-25 2016-06-30 アイシン・エィ・ダブリュ株式会社 Display control system, method, and program
CN106843652A (en) * 2017-01-22 2017-06-13 深圳市金立通信设备有限公司 icon display method and terminal device
CN106873932A (en) * 2017-02-17 2017-06-20 浙江大学 A kind of android system service end, remote desktop image reorientation method and system
CN107368343A (en) * 2017-08-21 2017-11-21 广州创维平面显示科技有限公司 A kind of starting up of terminal method, terminal and storage medium based on Android system
CN108269222A (en) * 2016-12-30 2018-07-10 华为技术有限公司 A kind of window rendering intent and terminal
CN108345438A (en) * 2018-02-06 2018-07-31 深圳市恒晨电器有限公司 Cell phone platform is applied to the physics transverse screen display method of vehicular platform
CN108762815A (en) * 2018-05-16 2018-11-06 北京麟卓信息科技有限公司 A kind of Android running environment implementation methods based on non-virtualized architectural framework
CN109521925A (en) * 2018-11-27 2019-03-26 努比亚技术有限公司 Icon arrangement method, mobile terminal and computer readable storage medium
CN109582425A (en) * 2018-12-04 2019-04-05 中山大学 A kind of GPU service redirection system and method merged based on cloud with terminal GPU
CN110618876A (en) * 2019-03-21 2019-12-27 天津麒麟信息技术有限公司 Linux and Android coexistence and interaction method based on Feiteng platform and shared kernel
CN112000382A (en) * 2020-08-26 2020-11-27 绿盟科技集团股份有限公司 Linux system starting method and device and readable storage medium
CN112040173A (en) * 2020-07-20 2020-12-04 南斗六星***集成有限公司 Method for rapidly displaying reversing video through Android car machine system

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841799A (en) * 2011-03-31 2012-12-26 辉达公司 Method and apparatus to support a self-refreshing display device coupled to a graphic controller
CN103186385A (en) * 2011-12-27 2013-07-03 鸿富锦精密工业(深圳)有限公司 Electronic device capable of setting starting parameter and setting method
CN102915563A (en) * 2012-09-07 2013-02-06 深圳市旭东数字医学影像技术有限公司 Method and system for transparently drawing three-dimensional grid model
CN103617027A (en) * 2013-10-29 2014-03-05 合一网络技术(北京)有限公司 Android-based method and system for constructing image rendering engine
CN103729212A (en) * 2013-12-12 2014-04-16 乐视致新电子科技(天津)有限公司 Booting icon display method and booting icon display device
WO2016104469A1 (en) * 2014-12-25 2016-06-30 アイシン・エィ・ダブリュ株式会社 Display control system, method, and program
CN105260205A (en) * 2015-09-30 2016-01-20 中山市天启电子科技有限公司 Method for implementing startup of double operating systems on embedded board
CN108269222A (en) * 2016-12-30 2018-07-10 华为技术有限公司 A kind of window rendering intent and terminal
CN106843652A (en) * 2017-01-22 2017-06-13 深圳市金立通信设备有限公司 icon display method and terminal device
CN106873932A (en) * 2017-02-17 2017-06-20 浙江大学 A kind of android system service end, remote desktop image reorientation method and system
CN107368343A (en) * 2017-08-21 2017-11-21 广州创维平面显示科技有限公司 A kind of starting up of terminal method, terminal and storage medium based on Android system
CN108345438A (en) * 2018-02-06 2018-07-31 深圳市恒晨电器有限公司 Cell phone platform is applied to the physics transverse screen display method of vehicular platform
CN108762815A (en) * 2018-05-16 2018-11-06 北京麟卓信息科技有限公司 A kind of Android running environment implementation methods based on non-virtualized architectural framework
CN109521925A (en) * 2018-11-27 2019-03-26 努比亚技术有限公司 Icon arrangement method, mobile terminal and computer readable storage medium
CN109582425A (en) * 2018-12-04 2019-04-05 中山大学 A kind of GPU service redirection system and method merged based on cloud with terminal GPU
CN110618876A (en) * 2019-03-21 2019-12-27 天津麒麟信息技术有限公司 Linux and Android coexistence and interaction method based on Feiteng platform and shared kernel
CN112040173A (en) * 2020-07-20 2020-12-04 南斗六星***集成有限公司 Method for rapidly displaying reversing video through Android car machine system
CN112000382A (en) * 2020-08-26 2020-11-27 绿盟科技集团股份有限公司 Linux system starting method and device and readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
KALB TOBIAS 等: "TULIPP: Towards ubiquitous low-power image processing platforms", 《2016 INTERNATIONAL CONFERENCE ON EMBEDDED COMPUTER SYSTEMS: ARCHITECTURES, MODELING AND SIMULATION (SAMOS)》, pages 306 - 311 *
KENZEL MICHAEL 等: "A high-performance software graphics pipeline architecture for the GPU", 《ACM TRANSACTIONS ON GRAPHICS (TOG)》, vol. 37, no. 4, pages 1 - 15, XP058686640, DOI: 10.1145/3197517.3201374 *
林春富: "基于DRM子***的汽车中控***显示控制解决方案的研究", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》, no. 05, pages 035 - 338 *
汪德宇: "电动物流车BMS的设计与实现", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》, no. 01, pages 035 - 1234 *

Also Published As

Publication number Publication date
CN114637559B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
US10579205B2 (en) Edge-based hooking gestures for invoking user interfaces
US9354900B2 (en) Method and apparatus for presenting a window in a system having two operating system environments
US10528210B2 (en) Foreground/background assortment of hidden windows
US9612732B2 (en) Content transfer to non-running targets
US7996787B2 (en) Plug-in architecture for window management and desktop compositing effects
US7506265B1 (en) System and method for displaying images of virtual machine environments
US9164646B2 (en) Method and apparatus for accommodating display migration among a plurality of physical displays
KR20160013162A (en) User interface elements for multiple displays
US20100115471A1 (en) Multidimensional widgets
EP2553561A2 (en) Interacting with remote applications displayed within a virtual desktop of a tablet computing device
US10957107B2 (en) Snapping, virtual inking, and accessibility in augmented reality
US20170052701A1 (en) Dynamic virtual keyboard graphical user interface
US20160188356A1 (en) Thin client computing device having touch screen interactive capability support
CN115756690A (en) Desktop window display method and device, terminal and storage medium
CN112799801B (en) Method, device, equipment and medium for drawing simulated mouse pointer
US11614845B2 (en) User interface for application interface manipulation
KR102213727B1 (en) Graphics processing using multiple primitives
US8212818B2 (en) Windowless shape drawing
US20230281135A1 (en) Method for configuring address translation relationship, and computer system
CN114637559A (en) Method, system, equipment and storage medium for displaying starting interface
US11809217B2 (en) Rules based user interface generation
KR100583238B1 (en) Controlling apparatus and method for 3D modeling icon displaying
Chen et al. MSA: A Novel App Development Framework for Transparent Multi-Screen Support on Android Apps
CN117369930A (en) Interface control method and device, electronic equipment and readable storage medium
CN111480143A (en) Electronic device and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 3701, No. 866 East Changzhi Road, Hongkou District, Shanghai, 200000

Patentee after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region after: China

Patentee after: Dongfeng Motor Corp.

Address before: 201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Patentee before: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region before: China

Patentee before: Dongfeng Motor Corp.