CN114637559B - Method, system, equipment and storage medium for displaying startup interface - Google Patents

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

Info

Publication number
CN114637559B
CN114637559B CN202011482383.2A CN202011482383A CN114637559B CN 114637559 B CN114637559 B CN 114637559B CN 202011482383 A CN202011482383 A CN 202011482383A CN 114637559 B CN114637559 B CN 114637559B
Authority
CN
China
Prior art keywords
display
startup
icon
hardware
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011482383.2A
Other languages
Chinese (zh)
Other versions
CN114637559A (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

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 startup interface, which comprises 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 ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in a display output interface; drawing the startup icon; storing the startup icon into a display cache of the hardware resource; and reading the start-up icon in the display buffer, and outputting a start-up interface containing the start-up icon in the display output interface according to the sorting value. The method has the advantages that the hardware resources for displaying the startup icons are obtained based on the Linux kernel, the startup icons are displayed independently of android display services, the icons can be drawn by using an open graphic library in an application layer, and the startup icons are displayed quickly and are not limited to static icons.

Description

Method, system, equipment and storage medium for displaying startup interface
Technical Field
The present application relates to the field of display control, and in particular, to a method, a system, an apparatus, and a storage medium for displaying a startup interface.
Background
For embedded products with user interface interaction capability, it is often necessary to display a specific icon on the display screen during the power-on phase, and the display requirement for this icon is that it is faster and better after power-on. For example, a dual screen or a triple screen which is popular in the automobile industry at present can achieve the effect of multi-screen interaction if the central control screen can rapidly display icons after being started, and the icons are displayed continuously with the digital liquid crystal instrument.
At present, the display mode of the startup icon is two modes, namely, the startup icon is displayed based on the android display service, the display mode of the startup icon depends on the android display service, and the startup of the android display service is slower, so that the startup icon is displayed slower; therefore, another mode of enabling the display of the boot icons to be independent of the android display service and accelerating the display of the boot icons is adopted, namely, the Linux kernel icons are used for replacing the android icons, the boot icons are integrated into the Linux kernel, and the open graphic library (open graphics library, openGL) can only be used in an application layer and can not be used in the Linux kernel layer, and only static icons can be displayed and can not meet the requirements of most situations.
Therefore, how to provide a display mode of a boot interface that can display a boot icon quickly, and the boot icon is not limited to a static icon is an important research subject in the field.
Disclosure of Invention
The application aims to provide a method, a system, equipment and a storage medium for displaying a startup interface, wherein after the startup of a Linux kernel is completed, hardware resources for displaying a startup icon are acquired based on the Linux kernel; the method has the advantages that the display of the startup interface containing the startup icon does not depend on android display service, the startup interface can be displayed quickly, the startup icon is not drawn in the kernel layer, hardware resources are acquired based on the kernel layer, the startup icon is drawn in the application layer, and an open graphic library can be used, so that the startup icon is not limited to static icons, but also can be dynamic icons.
The application further aims to provide a method, a system, equipment and a storage medium for displaying a startup interface, wherein after the android hardware abstraction layer service is successfully started, hardware resources for displaying startup icons are acquired 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 unified management is realized by the android hardware abstraction layer service; and the display of the startup icon is not dependent on android display service, an open graphic library can be used at an application layer, and the startup icon is quickly displayed and is not limited to a static icon.
Still another object of the present application is to provide a method, a system, an apparatus, and a storage medium for displaying a startup interface, wherein the startup icon is drawn by using an open graphic library, and the startup icon is stored in a display buffer after being drawn, so as to ensure that the startup 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 achieved, the drawing of the startup icon can be completed rapidly, and the startup interface containing the startup icon can be displayed quickly.
Still another object of the present application is to provide a method, a system, an apparatus, and a storage medium for displaying a boot interface, where display parameters of a display output interface are obtained by accessing hardware display information of a Linux kernel, and the display parameters of hardware resources for displaying a boot icon are set as the display parameters of the display output interface, so that the boot icon is displayed completely without loss; the method has the advantages that the display parameters of the display output interface are obtained from the Linux kernel, android hardware service is not relied on, independence of a startup icon display function module is enhanced, and the coupling of the module is reduced.
Still another object of the present application is to provide a method, a system, an apparatus, and a storage medium for displaying a boot interface, by calling an interface of the android hardware abstraction layer service, to obtain a display parameter of the display output interface, and setting the display parameter of a hardware resource for displaying a boot icon as the display parameter 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, the data access to the Linux kernel is reduced, the data security is enhanced, and the kernel performance is optimized.
In order to achieve the above object, in a first aspect, the present application provides a method for displaying a startup 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 ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in a display output interface; drawing the startup icon; storing the startup icon into a display cache of the hardware resource; and reading the start-up icon in the display buffer, and outputting a start-up interface containing the start-up icon in the display output interface according to the sorting value. Acquiring hardware resources for displaying the boot icons based on a Linux kernel, setting the ordering value of the hardware resources to be a numerical value larger than 0, and placing the hardware resources for displaying the boot icons on an android display layer so as to display a boot interface containing the boot icons on the display output interface; the display of the startup icon is independent of android display service, and an open graphic library can be used at an application layer, so that the startup icon can be rapidly displayed without being limited to a static icon.
With reference to the first aspect, in some embodiments, the drawing the boot icon includes: loading image resources; 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 two-dimensional texture rendering or three-dimensional texture rendering. And creating a canvas draft memory by using the open graphic library, drawing the startup icon in the canvas draft memory, and storing the startup icon in the display buffer after finishing drawing the startup icon so as to ensure that the startup icon can be displayed completely and smoothly. 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 millisecond-level performance, and can rapidly complete 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 boot 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 include display resolution, video 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 acquiring the display parameters of the display output interface includes: and acquiring the hardware display information of the Linux kernel to obtain the display parameters of the display output interface. And the display parameters of the display output interface are acquired from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, and the coupling of the module is reduced.
With reference to the first aspect, in some embodiments, before the acquiring the display parameters of the display output interface, the method further includes: starting android hardware abstraction layer service; the obtaining the display parameters of the display output interface includes: and calling the interface of the android hardware abstraction layer service to acquire the display parameters of the display output interface. And acquiring display parameters of the display output interface through the android hardware service, reducing data access to the Linux kernel, enhancing data security and optimizing kernel performance.
With reference to the first aspect, in some embodiments, before the outputting, in the display output interface, a boot interface including the boot icon according to the ranking value, the method further includes: the display transparency of the hardware resource is set to opaque. The startup icon display layer realizes full coverage on the android display layer, and ensures that startup icons are displayed completely without insertion and overlapping barriers.
With reference to the first aspect, in some embodiments, before the outputting, in the display output interface, a boot interface including the boot icon according to the ranking value, the method further includes: and setting the display transparency of the part of the hardware resources occupied by the startup icon to be opaque, and setting the display transparency of the part of the hardware resources except for the startup icon to be transparent. The startup icon display layer is opaque to the display position occupied by the startup icon, other parts are transparent to realize partial coverage of the android display layer, so that the interface display of the android display layer is not affected while the complete, insertion-free and overlapping-barrier-free display of the startup icon is ensured.
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 setting the sorting value of the android display layer to be 0, and setting the sorting value of the hardware resources to be greater than 0 so that the hardware resources are displayed on the android display layer.
With reference to the first aspect, in some embodiments, the displaying of the boot interface including the boot icon does not end the displaying task until the following condition is satisfied: finishing the playing of the startup icon; and (5) completing the startup of the android system.
In a second aspect, the present application provides a method for displaying a boot interface, which is characterized in that the method includes: after receiving a starting instruction, starting a Linux kernel; starting android hardware abstraction layer service based on the Linux kernel; acquiring a hardware resource for displaying a startup icon based on the android hardware abstraction layer service; setting the ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in a display output interface; drawing the startup icon; storing the startup icon into a display cache of the hardware resource; and reading the startup icon in the display buffer, and displaying a startup interface containing the startup icon in the display output interface according to the sequencing value. And acquiring the hardware resource for displaying the startup icon from the android hardware abstraction layer service, and acquiring the hardware resource 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 realized by the android hardware abstraction layer service.
With reference to the second aspect, in some embodiments, the drawing the boot icon includes: loading image resources; 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 two-dimensional texture rendering or three-dimensional texture rendering. And creating a canvas draft memory by using the open graphic library, drawing the startup icon in the canvas draft memory, and storing the startup icon in the display buffer after finishing drawing the startup icon so as to ensure that the startup icon can be displayed completely and smoothly. 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 millisecond-level performance, and can rapidly complete 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 boot 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 include display resolution, video 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 acquiring the display parameters of the display output interface includes: and acquiring the hardware display information of the Linux kernel to obtain the display parameters of the display output interface. And the display parameters of the display output interface are acquired from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, and the coupling of the module is reduced.
With reference to the second aspect, in some embodiments, the acquiring the display parameters of the display output interface includes: and calling the interface of the android hardware abstraction layer service to acquire the display parameters of the display output interface. And acquiring display parameters of the display output interface through the android hardware service, reducing data access to the Linux kernel, enhancing data security and optimizing kernel performance.
With reference to the second aspect, in some embodiments, before the outputting, in the display output interface, a boot interface including the boot icon according to the ranking value, the method further includes: the display transparency of the hardware resource is set to opaque. The startup icon display layer realizes full coverage on the android display layer, and ensures that startup icons are displayed completely without insertion and overlapping barriers.
With reference to the second aspect, in some embodiments, before the outputting, in the display output interface, a boot interface including the boot icon according to the ranking value, the method further includes: and setting the display transparency of the part of the hardware resources occupied by the startup icon to be opaque, and setting the display transparency of the part of the hardware resources except for the startup icon to be transparent. The startup icon display layer is opaque to the display position occupied by the startup icon, other parts are transparent to realize partial coverage of the android display layer, so that the interface display of the android display layer is not affected while the complete, insertion-free and overlapping-barrier-free display of the startup icon is ensured.
With reference to the second aspect, in some embodiments, the ranking value of the hardware resources is preferably set to a value of 1, a value of 2, or a value of 3; and setting the sorting value of the android display layer to be 0, and setting the sorting value of the hardware resources to be greater than 0 so that the hardware resources are displayed on the android display layer.
With reference to the second aspect, in some embodiments, the displaying of the boot interface including the boot icon does not end the displaying task until the following condition is satisfied: finishing the playing of the startup icon; and (5) completing the startup of the android system.
In a third aspect, the present application provides a device for displaying a startup interface, including:
the starting unit is used for starting the Linux kernel after receiving the starting instruction;
the acquisition unit is used for acquiring hardware resources for displaying the startup icon based on the Linux kernel;
a setting unit, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources 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 the display cache of the hardware resource;
and the display unit is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
In a fourth aspect, the present application provides a device for displaying a startup 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 abstraction layer service based on the Linux kernel;
the acquisition unit is used for acquiring hardware resources for displaying the startup icon based on the android hardware abstraction layer service;
a setting unit, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources 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 the display cache of the hardware resource;
and the display unit is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
In a fifth aspect, the present application provides a system for displaying a boot interface, including:
the starting module is used for starting the Linux kernel after receiving the starting instruction;
the acquisition module is used for acquiring hardware resources for displaying the startup icon based on the Linux kernel;
the setting module is used for setting the ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in the display output interface;
The drawing module is used for drawing the startup icon;
the storage module is used for storing the startup icon into the display cache of the hardware resource;
and the display module is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
In a sixth aspect, the present application provides a system for displaying a boot 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 ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in the display output interface;
the drawing module is used for drawing the startup icon;
the storage module is used for storing the startup icon into the display cache of the hardware resource;
and the display module is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
In a seventh aspect, the present application provides an electronic 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 as described in any one of the possible implementations of the first aspect and the first aspect or to perform the method as described in any one of the possible implementations of the second aspect and the second aspect.
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 the method as described in any one of the possible implementations of the first aspect and the second aspect or to perform the method as described in any one of the possible implementations of the second aspect and the second aspect.
In a ninth aspect, the application provides a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method as described in any one of the possible implementations of the first aspect and the first aspect or to perform the method as described in any one of the possible implementations of the second aspect and the second aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are 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 application;
FIG. 2 is a flowchart of a method for displaying a boot interface according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for displaying a boot interface according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for drawing a boot icon according to an embodiment of the present application;
FIG. 5A is a flowchart of a method for obtaining display output interface parameters according to an embodiment of the present application;
FIG. 5B is a flowchart of a method for obtaining display output interface parameters according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an apparatus for displaying a boot interface according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a system for displaying a boot interface according to an embodiment of the present application;
FIG. 8 is a flowchart of a method for displaying a boot interface according to an embodiment of the present application;
fig. 9 is a flowchart of a method for displaying a startup interface according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the accompanying drawings.
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present 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 to the contrary.
In the present application, "at least one (item)" means one or more, "a plurality" means two or more, "at least two (items)" means two or three and more, "and/or" for describing an association relationship of an association object, and three kinds of relationships may exist, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of (a) or a similar expression thereof means 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".
The embodiment of the application provides a method, a system, equipment and a storage medium for displaying a startup interface, and in order to more clearly describe the scheme of the application, the following describes some knowledge related to the scheme.
Linux kernel: linux is an open source computer operating system kernel. The operating system is low-level supporting software that interfaces with the hardware and provides a limited set of services for the user program. A computer system is a symbiont of hardware and software that is interdependent and indivisible. The hardware of the computer comprises peripheral devices, a processor, a memory, a hard disk and other electronic devices which form the engine of the computer. But without software to operate and control it, is not working on its own. The software that performs this control work is called the operating system, which in Linux terminology is called the "kernel" and may also be called the "core". The main modules of the Linux kernel are divided into the following parts: storage management, CPU and process management, file system, device management and driving, network communication, initialization of the system, system call, etc.
Hardware resources: the most dominant of the hardware resources are computing resources and storage resources, and the operating system manages other resources through input/output (IO) in addition to the management of computing resources and memory resources. The display output interface belongs to output equipment, and obtains hardware resources with display function to be managed by IO. And the hardware resources with the display function are used for adjusting 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 the content in the display cache of the hardware resource is output 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.
Texture rendering: the texture rendering comprises two-dimensional texture rendering and three-dimensional texture rendering, and the texture rendering process comprises the following steps of: creating a corresponding two-dimensional texture class or three-dimensional texture class according to an image resource, and obtaining the surface of the texture of the image resource; rendering the scene to the textured surface; rendering the texture itself, adding a 2D effect or a 3D effect. For example, a sphere is rotated, and a two-dimensional texture rendering mode or a three-dimensional texture rendering mode can be adopted; the steps of adopting two-dimensional texture rendering are as follows: firstly, creating a two-dimensional texture class, and loading two-dimensional image resources of a plurality of spheres into the two-dimensional texture class to obtain the surface of the texture of the two-dimensional image resources; second, rendering the scene to the textured surface, e.g., shading, display parameter settings; and thirdly, rendering the textures, and sequentially playing the two-dimensional texture images to obtain the 3D effect of the rotary sphere. The three-dimensional texture rendering method comprises the following steps: firstly, creating a three-dimensional texture class, and loading a three-dimensional image resource into the three-dimensional texture class to obtain the surface of the texture of the three-dimensional image resource; second, rendering the scene to the textured surface, e.g., shading, display parameter settings; and thirdly, rendering the texture, controlling the rotation of the three-dimensional texture image, and obtaining 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 the respective constituent elements 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 may execute various functional applications and data processing of the electronic device by executing 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 for at least one function, such as a sound playing function, an image playing function, etc.; the storage data area may store data created from the use of the electronic device. Further, the memory 110 may include a high-speed random access memory, which may be volatile or nonvolatile. 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, and 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, the processor 120 may include one or more processing units; preferably, the processor 120 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily 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 to generate key signal inputs related to user settings and function controls of the electronic device. In particular, 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 thereon or thereabout by a user (e.g., operations of the user on the touch panel 131 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 131 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 120, and can receive and execute commands sent from the processor 120. In addition, the touch panel 131 may be implemented in various types such as resistive, capacitive, infrared, and 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 (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
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 alternatively, the display panel 141 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 may cover the display panel 141, and when the touch panel 131 detects a touch operation thereon or thereabout, the touch panel is transferred 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 implement input and output functions of the electronic device as two independent components, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement 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, and 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, the processor 120 may include one or more processing units; preferably, the processor 120 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily 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 be logically connected to the processor 120 via a power management system, such as a power management system that performs functions such as managing charge, discharge, and power consumption.
The present application is further described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flowchart of a method for displaying a startup interface according to an embodiment of the application. As shown in fig. 2, step 201, after receiving a boot instruction, starting a Linux kernel; step 202, acquiring a hardware resource for displaying a startup icon based on the Linux kernel; namely, after the Linux is started, acquiring hardware resources for displaying a startup icon from the Linux kernel; the hardware resource has a display function, the hardware resource provides a hardware channel for the cache content, the cache content in the display cache of the hardware resource is output 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 is not dependent on android display service, and an open graphic library can be used at an application layer, so that the startup icon is rapidly displayed and is not limited to a static icon; step 203, setting the sorting value of the hardware resources to be a numerical value greater than 0, wherein the sorting value indicates the display sequence of the hardware resources in the display output interface; the display sequence of the hardware resources in the display output interface is adjusted by setting the display sequence value of the hardware resources, so that a startup icon display layer is displayed on an android display layer; preferably, the ranking value of the hardware resources is set to be a value of 1, a value of 2 or a value of 3; and setting the sorting value of the android display layer to be 0, and setting the sorting value of the hardware resources to be greater than 0 so that the hardware resources are displayed on the android display layer. Step 204, drawing the startup icon; executing a drawing task at 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 into a display cache of the hardware resource; writing the startup icon into a display cache; step 206, reading the boot icon in the display buffer, and displaying a boot interface containing the boot icon in the display output interface according to the sorting value. And the display of the startup interface containing the startup icon does not finish the display task until the following conditions are met: one condition is that the start icon is played; another condition is that the android system is started up to completion.
Referring to fig. 3, fig. 3 is a flowchart of a method for displaying a startup interface according to an embodiment of the application.
As shown in fig. 3, step 301, after receiving a boot instruction, starts a Linux kernel; step 302, starting android hardware abstraction layer service based on the Linux kernel; step 303, acquiring a hardware resource for displaying a startup icon based on the android hardware abstraction layer service; after the android hardware abstraction layer service is started, acquiring a hardware resource for displaying a startup icon from the android hardware abstraction layer service, and acquiring the hardware resource 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 realized by the android hardware abstraction layer service. Step 304, setting the sorting value of the hardware resources to be a numerical value larger than 0, wherein the sorting value indicates the display sequence of the hardware resources in the display output interface; the display sequence of the hardware resources in the display output interface is adjusted by setting the display sequence value of the hardware resources, so that a startup icon display layer is displayed on an android display layer; preferably, the ranking value of the hardware resources is set to be a value of 1, a value of 2 or a value of 3; and setting the sorting value of the android display layer to be 0, and setting the sorting value of the hardware resources to be greater than 0 so that the hardware resources are displayed on the android display layer. Step 305, drawing the boot icon; executing a drawing task at 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 into a display cache of the hardware resource; writing the startup icon into a display cache; step 307, reading the boot icon in the display buffer, and displaying a boot interface containing the boot icon in the display output interface according to the sorting value. And the display of the startup interface containing the startup icon does not finish the display task until the following conditions are met: one condition is that the start icon is played; another condition is that the android system is started up to completion.
Referring to fig. 4, fig. 4 is a flowchart of a method for drawing a boot icon according to an embodiment of the application. In step 203 of fig. 2 or step 305 of fig. 3, the drawing the boot icon includes: loading image resources; 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 two-dimensional texture rendering or three-dimensional texture rendering. That is, as shown in fig. 4, the drawing of the boot icon includes the following steps: step 401, creating a canvas memory for storing drawing results; creating a canvas draft memory by using an open graphic library, wherein the startup icon can be drawn in the canvas draft memory and then stored in the display cache after the startup icon is drawn, so that the startup icon can be completely and smoothly displayed; step 402, creating a texture class, wherein the texture class comprises one or more of a two-dimensional texture class or a three-dimensional texture class; creating a two-dimensional texture class under the condition that the image resource is a two-dimensional image resource; creating a three-dimensional texture class under the condition that the image resource is a three-dimensional image resource; creating a two-dimensional texture class and a three-dimensional texture class for loading the image resource into a corresponding texture class in the case that the image resource comprises both a two-dimensional image resource and a three-dimensional image resource; preferably, a programming interface of OpenGL is called, and a texture class is created by initializing the OpenGL; step 403, loading image resources into the texture class; loading the image resources into the corresponding texture classes, specifically loading the two-dimensional image resources into the two-dimensional texture classes, and loading the three-dimensional image resources into the three-dimensional texture classes; step 404, performing texture rendering to obtain a drawing result as the start 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 parameters of a display output interface according to an embodiment of the application. Before storing the boot 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 resource as the display parameters of the display output interface; the display parameters include display resolution, video memory format and display refresh rate. As shown in fig. 5A, two methods for obtaining the display parameters of the display output interface are provided herein:
(1) Step 503 of fig. 5A is executed to obtain the hardware display information of the Linux kernel, so as to obtain the display parameters of the display output interface; the Linux kernel is successfully started before acquiring the hardware resources for displaying the startup icon, and the Linux kernel comprehensively manages system information and can check display parameters of the display output interface by accessing the Linux kernel. And the display parameters of the display output interface are acquired from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, and the coupling of the module is reduced.
(2) Starting an android hardware abstraction layer service, as shown in step 504 of fig. 5A; and 505, calling an interface of the android hardware abstraction layer service, and acquiring display parameters of the display output interface. And acquiring display parameters of the display output interface through the android hardware service, reducing data access to the Linux kernel, enhancing data security and optimizing kernel performance.
Referring to fig. 5B, fig. 5B is a flowchart of a method for obtaining parameters of a display output interface according to an embodiment of the application. Before storing the boot icon in the display cache of the hardware resource in step 306 of fig. 3, the method further includes: as shown in fig. 5B, step 506, obtaining display parameters of the display output interface; step 507, setting the display parameters of the hardware resource as the display parameters of the display output interface; the display parameters include display resolution, video memory format and display refresh rate. As shown in fig. 5B, two methods for obtaining the display parameters of the display output interface are provided herein:
(1) Step 508 in fig. 5B is performed to obtain the hardware display information of the Linux kernel, so as to obtain the display parameters of the display output interface; the Linux kernel is successfully started before acquiring the hardware resources for displaying the startup icon, and the Linux kernel comprehensively manages system information and can check display parameters of the display output interface by accessing the Linux kernel. And the display parameters of the display output interface are acquired from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, and the coupling of the module is reduced.
(2) In step 509 of fig. 5B, an interface of the android hardware abstraction layer service is called, and display parameters of the display output interface are obtained. And acquiring display parameters of the display output interface through the android hardware service, reducing data access to the Linux kernel, enhancing data security and optimizing kernel performance.
Referring to fig. 6, fig. 6 is a schematic diagram of an apparatus for displaying a startup interface according to an embodiment of the application. As shown in fig. 6, the device for displaying a startup interface includes: the starting unit 601 is configured to start the Linux kernel after receiving a startup instruction; an obtaining unit 602, configured to obtain a hardware resource for displaying a boot icon based on the Linux kernel; a setting unit 603, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources 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; and the display unit 606 is configured to read the boot icon in the display buffer, and display a boot interface including the boot icon in the display output interface according to the ranking value.
In some other embodiments, the device for displaying a startup interface includes: the starting unit 601 is configured to start the Linux kernel after receiving a startup instruction; the starting unit 601 also starts android hardware abstraction layer service based on the Linux kernel; an obtaining unit 602, configured to obtain a hardware resource for displaying a boot icon based on the android hardware abstraction layer service; a setting unit 603, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources 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; and the display unit 606 is configured to read the boot icon in the display buffer, and display a boot interface including the boot icon in the display output interface according to the ranking value.
Referring to fig. 7, fig. 7 is a schematic diagram of a system for displaying a startup interface according to an embodiment of the application. As shown in fig. 7, the system for displaying a startup interface includes: the starting module 701 is configured to start the Linux kernel after receiving a startup instruction; an obtaining module 702, configured to obtain a hardware resource for displaying a boot icon based on the Linux kernel; a setting module 703, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources in the display output interface; a drawing module 704, configured to draw the boot icon; a storage module 705, configured to store the boot icon into a display cache of the hardware resource; and the display module 706 is configured to read the boot icon in the display buffer, and display a boot interface including the boot icon in the display output interface according to the ranking value.
In some other embodiments, the system for displaying a boot interface includes: the starting module 701 is configured to start the Linux kernel after receiving a startup instruction; the starting module 701 also starts android hardware abstraction layer service based on the Linux kernel; an obtaining module 702, configured to obtain a hardware resource for displaying a boot icon based on the android hardware abstraction layer service; a setting module 703, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources in the display output interface; a drawing module 704, configured to draw the boot icon; a storage module 705, configured to store the boot icon into a display cache of the hardware resource; and the display module 706 is configured to read the boot icon in the display buffer, and display a boot interface including the boot icon in the display output interface according to the ranking value.
The specific processing flow for realizing the display of the startup interface by using the method for displaying the startup interface provided by the application is described below in combination with the use of the scene.
Use scenario one: as shown in fig. 8, in this embodiment, the application program for displaying a boot interface based on the execution of the Linux kernel includes the following steps:
Step 801, after receiving a startup instruction, starting a Linux kernel;
step 802, determining whether the Linux kernel is successfully started;
step 803, starting a display application program under the condition that the Linux kernel is determined to be successfully started; in some embodiments, the display application is a Linux kernel-based application designed for displaying a boot icon;
step 804, obtaining a hardware resource for displaying a startup icon from the Linux kernel; the hardware resource has a display function, the hardware resource provides a hardware channel for the cache content, the cache content in the display cache of the hardware resource is output 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, initializing a DRM framework interface, acquiring the hardware resource, enabling a video Overlay function (Overlay) of the DRM framework, and giving the Overlay a setting authority of the hardware resource.
Step 805, setting the ranking value of the hardware resource to a value greater than 0; the ranking value indicates a display order of the hardware resources in the display output interface; the display sequence of the hardware resources in the display output interface is adjusted by setting the display sequence value of the hardware resources, so that a startup icon display layer is displayed on an android display layer; preferably, the ranking value of the hardware resources is set to be a value of 1, a value of 2 or a value of 3; the sorting value of the android display layer is 0, and the sorting value of the hardware resources is set to be larger than 0, so that the hardware resources are displayed on the android display layer; specifically, the hardware resources of the hardware composition (hardware composer) are configured to display the ranking value (e.g., Z-axis order) such that the Overlay of the hardware resources is drawn above the Overlay of the Android.
Step 806, obtaining the hardware display information of the Linux kernel, and obtaining the display parameters of the display output interface; the display parameters of the display output interface are obtained from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, and the coupling of the module is reduced;
step 807, setting the display parameters of the hardware resource as the display parameters of the display output interface; the display parameters comprise one or more of display resolution, a video memory format and a 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 method further includes setting the display transparency of the hardware resource to be opaque, or setting the display transparency of a part of the hardware resource occupied by the power-on icon to be opaque, and setting the display transparency of a part of the hardware resource except for the power-on icon to be transparent.
Step 808, enabling the display application to draw the boot icon; specifically, an OpenGL application programming interface is called, openGL is initialized, and a canvas memory for storing drawing results is created; creating a texture class comprising one or more of a two-dimensional texture class (2D textrue) or a three-dimensional texture class (3D textrue); loading image resources to the texture class, executing texture rendering, configuring a corresponding 3D effect, and obtaining a drawing result as the start icon; in some embodiments, the image resources include one or more of still images or moving images.
Step 809, storing the boot icon in a display buffer (frame buffer) of the hardware resource;
step 810, reading the boot icon in the display buffer, and displaying a boot interface containing the boot icon in the display output interface according to the sorting value; and finishing the display task when the display of the startup interface containing the startup icon meets the following conditions: finishing the playing of the startup icon; and (5) completing the startup of the android system.
After the Linux successful kernel is started, the display task of the boot icon can be executed at the application layer, the hardware resource for displaying the boot icon is obtained, the boot icon display is independent of the android display service, an open graphic library can be used at the application layer, and the boot icon is rapidly displayed and is not limited to a static icon. The open graphic library has short time consumption for executing texture rendering, has millisecond-level performance, and can rapidly complete the drawing of the startup icon so as to accelerate the display of the startup interface containing the startup icon. And the display parameters of the display output interface are acquired from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, and the coupling of the module is reduced.
(II) use scenario two: executing an application program for displaying a startup interface based on the android hardware abstraction layer service:
as shown in fig. 9, in the present embodiment, an application program for displaying a boot interface based on execution of an android hardware abstraction layer service includes the following steps:
step 901, starting a Linux kernel after receiving a starting instruction;
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 successfully started;
step 904, starting a display application program; in some embodiments, the display application is a Linux kernel-based application designed for displaying a boot icon;
step 905, obtaining a hardware resource for displaying a startup icon from the android hardware abstraction layer; the hardware resource has a display function, the hardware resource provides a hardware channel for the cache content, the cache content in the display cache of the hardware resource is output 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 a hardware resource for displaying a startup icon from the android hardware abstraction layer service, and acquiring the hardware resource 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 realized by the android hardware abstraction layer service; specifically, a socket is used for connecting 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 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 value greater than 0; the ranking value indicates a display order of the hardware resources in the display output interface; the display sequence of the hardware resources in the display output interface is adjusted by setting the display sequence value of the hardware resources, so that a startup icon display layer is displayed on an android display layer; preferably, the ranking value of the hardware resources is set to be a value of 1, a value of 2 or a value of 3; the sorting value of the android display layer is 0, and the sorting value of the hardware resources is set to be larger than 0, so that the hardware resources are displayed on the android display layer; the specific implementation method is described in detail in step 805 of fig. 8, and will not be described here again.
Step 907, calling an interface of the android hardware abstraction layer service, and obtaining display parameters of the display output interface; the display parameters of the display output interface are obtained through the android hardware service, so that data access to a Linux kernel is reduced, the data security is enhanced, and the kernel performance is optimized;
step 908, setting the display parameters of the hardware resource as the display parameters of the display output interface; the display parameters comprise one or more of display resolution, a video memory format and a display refresh rate; the specific setting method is described in detail in step 807 of fig. 8, and is not described in detail herein.
Step 909, enabling said display application to draw said boot icon; the 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 repeated here.
Step 910, storing the boot icon in a display buffer (frame buffer) of the hardware resource;
step 911, reading the boot icon in the display buffer, and displaying a boot interface containing the boot icon in the display output interface according to the sorting value; and finishing the display task when the display of the startup interface containing the startup icon meets the following conditions: finishing the playing of the startup icon; and (5) completing the startup of the android system.
After the Linux successful kernel is started, the display task of the boot icon can be executed at the application layer, the hardware resource for displaying the boot icon is obtained, the boot icon display is independent of the android display service, an open graphic library can be used at the application layer, and the boot icon is rapidly displayed and is not limited to a static icon. The open graphic library has short time consumption for executing texture rendering, has millisecond-level performance, and can rapidly complete the drawing of the startup icon so as to accelerate the display of the startup interface containing the startup icon. And the display parameters of the display output interface are acquired from the Linux kernel, the android hardware service is not relied on, the independence of the startup icon display function module is enhanced, 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, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part 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. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, 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 a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (16)

1. A method for displaying a boot interface, comprising:
after receiving a starting instruction, starting a Linux kernel;
starting a display application program based on a Linux kernel, wherein the display application program is an application program based on a Linux kernel and used for displaying a startup icon;
acquiring a hardware resource for displaying a startup icon based on the Linux kernel;
setting the ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in a display output interface;
enabling the display application program to load an image resource, and executing texture rendering on the image resource to obtain the start icon, wherein the image resource comprises one or more of a static image or a dynamic image, and the texture rendering comprises one or more of two-dimensional texture rendering or three-dimensional texture rendering;
Storing the startup icon into a display cache of the hardware resource;
and reading the start-up icon in the display buffer, and outputting a start-up interface containing the start-up icon in the display output interface according to the sorting value.
2. The method of claim 1, prior to said storing the boot icon in the 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 include display resolution, video memory format and display refresh rate.
3. The method of claim 2, the obtaining the display parameters of the display output interface comprising:
and acquiring the hardware display information of the Linux kernel to obtain the display parameters of the display output interface.
4. The method of claim 2, prior to the obtaining the display parameters of the display output interface, the method further comprising:
starting android hardware abstraction layer service;
the obtaining the display parameters of the display output interface includes: and calling the interface of the android hardware abstraction layer service to acquire the display parameters of the display output interface.
5. The method according to claim 1 or 2, said method further comprising, before outputting a boot interface containing said boot icon in said display output interface according to said ranking value: the display transparency of the hardware resource is set to opaque.
6. A method for displaying a boot interface, comprising:
after receiving a starting instruction, starting a Linux kernel;
starting android hardware abstraction layer service based on the Linux kernel;
starting a display application program based on a Linux kernel, wherein the display application program is an application program based on a Linux kernel and used for displaying a startup icon;
acquiring a hardware resource for displaying a startup icon from a Linux kernel based on the android hardware abstraction layer service;
setting the ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in a display output interface;
enabling the display application program, loading an image resource, and executing texture rendering on the image resource to obtain the boot icon, wherein the image resource comprises one or more of a static image or a dynamic image, and the texture rendering comprises one or more of two-dimensional texture rendering or three-dimensional texture rendering;
Storing the startup icon into a display cache of the hardware resource;
and reading the startup icon in the display buffer, and displaying a startup interface containing the startup icon in the display output interface according to the sequencing value.
7. The method of claim 6, prior to said storing said boot icon in a display cache of said hardware resource, said 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 include display resolution, video memory format and display refresh rate.
8. The method of claim 7, wherein the obtaining the display parameters of the display output interface comprises:
and acquiring the hardware display information of the Linux kernel to obtain the display parameters of the display output interface.
9. The method of claim 7, wherein the obtaining the display parameters of the display output interface comprises: and calling the interface of the android hardware abstraction layer service to acquire the display parameters of the display output interface.
10. The method of claim 6 or 7, the method further comprising, prior to outputting a boot interface including the boot icon in the display output interface according to the ranking value: the display transparency of the hardware resource is set to opaque.
11. 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 further used for starting a display application program based on the Linux kernel, wherein the display application program is an application program based on the Linux kernel and used for displaying a startup icon;
the acquisition unit is used for acquiring hardware resources for displaying the startup icon based on the Linux kernel;
a setting unit, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources in a display output interface;
the drawing unit is used for enabling the display application program to load an image resource and performing texture rendering on the image resource to obtain the boot icon, wherein the image resource comprises one or more of a static image or a dynamic image, and the texture rendering comprises one or more of two-dimensional texture rendering or three-dimensional texture rendering;
the storage unit is used for storing the startup icon into the display cache of the hardware resource;
and the display unit is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
12. 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 abstraction layer service based on the Linux kernel;
the starting unit is further used for starting a display application program based on the Linux kernel, wherein the display application program is an application program based on the Linux kernel and used for displaying a startup icon;
the acquisition unit is used for acquiring hardware resources for displaying the startup icon from the Linux kernel based on the android hardware abstraction layer service;
a setting unit, configured to set an ordering value of the hardware resources to a numerical value greater than 0, where the ordering value indicates a display order of the hardware resources in a display output interface;
the drawing unit is used for enabling the display application program, loading an image resource and executing texture rendering on the image resource to obtain the boot icon, wherein the image resource comprises one or more of a static image and a dynamic image, and the texture rendering comprises one or more of two-dimensional texture rendering and three-dimensional texture rendering;
the storage unit is used for storing the startup icon into the display cache of the hardware resource;
And the display unit is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
13. 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 a display application program based on the Linux kernel, wherein the display application program is an application program based on the Linux kernel and used for displaying a startup icon;
the acquisition module is used for acquiring hardware resources for displaying the startup icon based on the Linux kernel;
the setting module is used for setting the ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in the display output interface;
the drawing module is used for enabling the display application program to load an image resource and performing texture rendering on the image resource to obtain the startup icon, the image resource comprises one or more of a static image and a dynamic image, and the texture rendering comprises one or more of two-dimensional texture rendering and three-dimensional texture rendering;
The storage module is used for storing the startup icon into the display cache of the hardware resource;
and the display module is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
14. 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 starting module is also used for starting a display application program based on the Linux kernel, wherein the display application program is an application program based on the Linux kernel and used for displaying a startup icon;
the acquisition module is used for acquiring hardware resources for displaying the startup icon from the Linux kernel based on the android hardware abstraction layer service;
the setting module is used for setting the ordering value of the hardware resources to be a numerical value larger than 0, wherein the ordering value indicates the display sequence of the hardware resources in the display output interface;
the drawing module is used for enabling the display application program, loading an image resource and executing texture rendering on the image resource to obtain the startup icon, wherein the image resource comprises one or more of a static image or a dynamic image, and the texture rendering comprises one or more of two-dimensional texture rendering or three-dimensional texture rendering;
The storage module is used for storing the startup icon into the display cache of the hardware resource;
and the display module is used for reading the startup icons in the display cache, and displaying startup interfaces containing the startup icons in the display output interfaces according to the sorting values.
15. 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-10.
16. A computer-readable storage medium, wherein the computer-readable storage medium has a computer program stored therein; the method of any of claims 1-10, when the computer program is run on one or more processors.
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 CN114637559A (en) 2022-06-17
CN114637559B true 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
A high-performance software graphics pipeline architecture for the GPU;Kenzel Michael 等;《ACM Transactions on Graphics (TOG)》;第37卷(第4期);1-15 *
TULIPP: Towards ubiquitous low-power image processing platforms;Kalb Tobias 等;《2016 International Conference on Embedded Computer Systems: Architectures, Modeling and Simulation (SAMOS)》;306-311 *
基于DRM子系统的汽车中控系统显示控制解决方案的研究;林春富;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》(第05期);C035-338 *
电动物流车BMS的设计与实现;汪德宇;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》(第01期);C035-1234 *

Also Published As

Publication number Publication date
CN114637559A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
US10528210B2 (en) Foreground/background assortment of hidden windows
EP3111318B1 (en) Cross-platform rendering engine
CN104536802B (en) Method for realizing application calling and virtual machine
EP2756481B1 (en) System and method for layering using tile-based renderers
US9354900B2 (en) Method and apparatus for presenting a window in a system having two operating system environments
US9164646B2 (en) Method and apparatus for accommodating display migration among a plurality of physical displays
US7996787B2 (en) Plug-in architecture for window management and desktop compositing effects
EP2245598B1 (en) Multi-buffer support for off-screen surfaces in a graphics processing system
US7876328B2 (en) Managing multiple contexts in a decentralized graphics processing unit
KR20160013162A (en) User interface elements for multiple displays
CN103530018A (en) Establishment method of widget interfaces in android operating system and mobile terminal
EP3418934A1 (en) Data input method, device and user equipment
CN116821040B (en) Display acceleration method, device and medium based on GPU direct memory access
CN103268620A (en) Graphic processing method, graphic processing device and terminal device
KR102213727B1 (en) Graphics processing using multiple primitives
CN114637559B (en) Method, system, equipment and storage medium for displaying startup interface
US20230281135A1 (en) Method for configuring address translation relationship, and computer system
US20180039381A1 (en) User interface for application interface manipulation
WO2020231569A1 (en) Text editing system for 3d environment
CN115756690A (en) Desktop window display method and device, terminal and storage medium
KR101430729B1 (en) Server and method for supporting software
CN111243069B (en) Scene switching method and system of Unity3D engine
TWI556167B (en) System and method for multiple native software applications user interface composition
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

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.