[go: up one dir, main page]

CN116700866A - Window rendering method, device, and electronic device - Google Patents

Window rendering method, device, and electronic device Download PDF

Info

Publication number
CN116700866A
CN116700866A CN202310622932.9A CN202310622932A CN116700866A CN 116700866 A CN116700866 A CN 116700866A CN 202310622932 A CN202310622932 A CN 202310622932A CN 116700866 A CN116700866 A CN 116700866A
Authority
CN
China
Prior art keywords
application program
attribute information
window
memory
style attribute
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.)
Pending
Application number
CN202310622932.9A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310622932.9A priority Critical patent/CN116700866A/en
Publication of CN116700866A publication Critical patent/CN116700866A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Stored Programmes (AREA)

Abstract

The application discloses a window drawing method, a window drawing device and electronic equipment, and belongs to the technical field of communication. The window drawing method comprises the following steps: style attribute information of a starting window of each application program is stored in a memory; receiving input for starting a target application program; responding to the input, and reading style attribute information of a starting window of the target application program from the memory; and drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.

Description

窗口绘制方法、装置、电子设备Window rendering method, device, and electronic device

技术领域technical field

本申请属于通信技术领域,具体涉及一种窗口绘制方法、装置、电子设备。The present application belongs to the technical field of communications, and in particular relates to a window drawing method, device, and electronic equipment.

背景技术Background technique

在Android系统中,通常将一些最近使用的应用程序的所有资源缓存在内存中。当用户通过点击桌面图标启动应用程序时,系统根据应用程序的资源获取一些属性信息例如主题,设置启动窗口的样式和风格。如果该应用程序的资源数据缓存在内存中,可以直接从内存中读取,而不需要从磁盘中加载,从而提高应用程序的启动速度和响应速度。然而,内存的空间有限,应用程序的所有资源占用的内存比较大,因此使得内存能够缓存的应用程序的个数有限,通常只有几个,在启动应用程序时命中缓存的概率比较低,如果没有命中缓存,则需要从磁盘中加载,效率低下。In the Android system, all resources of some recently used applications are usually cached in memory. When the user starts the application by clicking the desktop icon, the system obtains some attribute information such as the theme according to the resources of the application, and sets the style and style of the startup window. If the resource data of the application is cached in the memory, it can be directly read from the memory without loading from the disk, thereby improving the startup speed and response speed of the application. However, the memory space is limited, and the memory occupied by all the resources of the application is relatively large, so the number of applications that can be cached in the memory is limited, usually only a few, and the probability of hitting the cache when starting the application is relatively low. If there is no If it hits the cache, it needs to be loaded from the disk, which is inefficient.

发明内容Contents of the invention

本申请实施例的目的是提供一种窗口绘制方法、装置、电子设备,提高了缓存命中率,提高了绘制应用程序的启动窗口的效率。The purpose of the embodiments of the present application is to provide a window drawing method, device, and electronic device, which improve the cache hit rate and improve the efficiency of drawing the startup window of the application program.

第一方面,本申请实施例提供了一种窗口绘制方法,该方法包括:In the first aspect, the embodiment of the present application provides a window drawing method, the method comprising:

将各应用程序的启动窗口的样式属性信息存储至内存中;Store the style attribute information of the startup window of each application program into the memory;

接收启动目标应用程序的输入;receiving input to launch the target application;

响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息;In response to the input, read the style attribute information of the startup window of the target application program from the memory;

根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。Draw the start window of the target application program according to the style attribute information of the start window of the target application program.

第二方面,本申请实施例提供了一种窗口绘制装置,包括:In the second aspect, the embodiment of the present application provides a window drawing device, including:

存储模块,用于将各应用程序的启动窗口的样式属性信息存储至内存中;The storage module is used to store the style attribute information of the startup window of each application program into the memory;

接收模块,用于接收启动目标应用程序的输入;A receiving module, configured to receive an input for starting a target application program;

读取模块,用于响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息;A reading module, configured to read the style attribute information of the startup window of the target application program from the memory in response to the input;

绘制模块,用于根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。A drawing module, configured to draw the start window of the target application program according to the style attribute information of the start window of the target application program.

第三方面,本申请实施例提供了一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, the embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor The steps of the method described in the first aspect are realized.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.

在本申请实施例中,将各应用程序的启动窗口的样式属性信息存储至内存中,接收启动目标应用程序的输入,响应于该输入,从所述内存中读取目标应用程序的启动窗口的样式属性信息,根据该目标应用程序的启动窗口的样式属性信息,绘制目标应用程序的启动窗口。该技术方案,将各应用程序的启动窗口样式属性信息存储至内存中,在接收到启动目标应用程序的输入的情况下,能够快速地从内存中读取目标应用程序的启动窗口的样式属性信息,并基于该样式属性信息绘制该目标应用程序的启动窗口,提高了绘制应用程序的启动窗口的效率;由于应用程序的样式属性信息占用的内存远小于应用程序的资源数据,因此降低了内存的占用量,在有限的缓存中存储较多的应用程序的样式属性信息,提高了缓存的命中率。In the embodiment of the present application, the style attribute information of the start-up window of each application is stored in the memory, the input of starting the target application is received, and in response to the input, the style attribute information of the start-up window of the target application is read from the memory. The style attribute information is used to draw the startup window of the target application according to the style attribute information of the startup window of the target application. In this technical solution, the style attribute information of the startup window of each application is stored in the memory, and when the input of starting the target application is received, the style attribute information of the startup window of the target application can be quickly read from the memory , and draw the startup window of the target application based on the style attribute information, which improves the efficiency of drawing the startup window of the application; since the memory occupied by the style attribute information of the application is much smaller than the resource data of the application, the memory usage is reduced Occupancy, storing more style attribute information of the application in the limited cache, improving the hit rate of the cache.

附图说明Description of drawings

图1是本申请一实施例提供的窗口绘制方法的流程示意图;FIG. 1 is a schematic flowchart of a window drawing method provided by an embodiment of the present application;

图2是应用本申请实施例的窗口绘制方法与未应用本申请实施例的窗口绘制方法的窗口启动效果对比图;Fig. 2 is a window starting effect comparison diagram between the window drawing method applying the embodiment of the present application and the window drawing method not applying the embodiment of the present application;

图3是本申请实施例提供的窗口绘制装置的结构示意图;Fig. 3 is a schematic structural diagram of a window drawing device provided by an embodiment of the present application;

图4是本申请实施例提供的电子设备的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图5是本申请实施例提供的电子设备的硬件示意图。FIG. 5 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的窗口启动方法进行详细地说明。The window activation method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

本申请实施例提供的窗口绘制方法的执行主体可以为电子设备,或者电子设备中能够实现该窗口绘制方法的功能模块或功能实体。其中,本申请实施例所述的电子设备包括但不限于:智能手机、平板电脑、电脑、膝上便携计算机(笔记本电脑)、智能可穿戴设备等。下面以电子设备作为执行主体为例对本申请实施例提供的窗口绘制方法进行说明。The execution subject of the window drawing method provided in the embodiment of the present application may be an electronic device, or a functional module or a functional entity in the electronic device capable of implementing the window drawing method. Wherein, the electronic devices described in the embodiments of the present application include, but are not limited to: smart phones, tablet computers, computers, laptop computers (notebook computers), smart wearable devices, and the like. The window drawing method provided by the embodiment of the present application will be described below by taking an electronic device as an execution subject as an example.

图1示出了本申请一实施例的窗口绘制方法的流程示意图。图1所示,该方法可以包括步骤S101-步骤S105。Fig. 1 shows a schematic flowchart of a window drawing method according to an embodiment of the present application. As shown in FIG. 1, the method may include step S101-step S105.

步骤S101,将各应用程序的启动窗口的样式属性信息存储至内存中。Step S101, storing the style attribute information of the startup window of each application program into the memory.

其中,样式属性信息用于指示启动窗口(startingWindow)的样式和风格。可选地,应用程序的样式属性信息可以从应用程序的资源数据(资源文件)中确定。样式属性信息可以包括一个或多个属性字段,例如可以包括但不限于:窗口的样式,窗口的背景,窗口的透明度等。由于样式属性信息中包括一个或多个属性字段,所以其占用的内存较小(例如在几十到几百个字节),远小于应用程序的资源数据所占用的内存,即使保存100-200个应用程序的样式属性信息,内存占用也不会超过1MB。因此,内存中可以存储较多的应用程序的样式属性信息,即以较小的存储成本存储较多的样式属性信息,缓存利用率高且缓存命中率高。在内存中,可以以应用程序的标识(例如包名)为关键字缓存其样式属性信息。Wherein, the style attribute information is used to indicate the style and style of the starting window (startingWindow). Optionally, the style attribute information of the application program can be determined from the resource data (resource file) of the application program. The style attribute information may include one or more attribute fields, such as but not limited to: window style, window background, window transparency, and so on. Since the style attribute information includes one or more attribute fields, the memory occupied by it is small (for example, tens to hundreds of bytes), which is much smaller than the memory occupied by the resource data of the application, even if it saves 100-200 The style attribute information of an application, and the memory usage will not exceed 1MB. Therefore, more style attribute information of the application program can be stored in the memory, that is, more style attribute information can be stored at a lower storage cost, and the cache utilization rate is high and the cache hit rate is high. In the memory, the style attribute information of the application program can be cached with the identifier (such as the package name) as the key.

启动窗口(startingWindow)是应用程序从桌面图标变化为应用界面的动画放大窗口,是一个在应用程序进程创建并初始化成功前显示的临时窗口。当用户点击应用图标启动应用程序时,创建starting Window,并将创建的starting Window返回给桌面,桌面利用启动窗口进行动画,当动画开始后,用户感知到系统已响应当前的启动操作(即产生了触控响应),当应用程序加载完第一帧页面后starting Window随之消失,显示应用主界面。若从用户启动操作结束到动画开始的间隔时间比较小,用户感知到的触控响应好,跟手性好。设置Starting Window可以减少点击响应时延,减少用户等待时间。在可选的实施场景中,应用程序的开发者可以自定义配置应用程序的资源数据,即自定义配置应用的样式属性信息,从而可以实现定制启动窗口的样式和风格。用户点击了应用图标启动应用,电子设备弹出应用定制的startingWindow。The starting window (startingWindow) is an animation enlarged window where the application changes from a desktop icon to an application interface, and is a temporary window displayed before the application process is created and initialized successfully. When the user clicks the application icon to start the application, a starting Window is created, and the created starting Window is returned to the desktop, and the desktop uses the startup window for animation. When the animation starts, the user perceives that the system has responded to the current startup operation (that is, generated Touch response), when the application loads the first frame of the page, the starting Window disappears and the main interface of the application is displayed. If the interval between the end of the user-initiated operation and the start of the animation is relatively small, the touch response and chirality perceived by the user will be good. Setting the Starting Window can reduce the click response delay and reduce the user's waiting time. In an optional implementation scenario, the developer of the application program can customize the resource data of the configuration application program, that is, customize the style attribute information of the configuration application, so as to realize the customization of the style and style of the startup window. The user clicks the application icon to start the application, and the electronic device pops up a startingWindow customized for the application.

在可选的实施例中,该窗口绘制方法可以在检测到开机操作的情况下,将各应用程序的启动窗口的样式属性信息存储至内存中。例如,可以从磁盘中读取各应用程序的启动窗口的样式属性信息并存储至内存中。其中,可以将电子设备上安装的所有应用程序的启动窗口的样式属性信息存储至内存中,也可以将部分应用程序的启动窗口的样式属性信息存储至内存中,本申请在此不做限制。可选的,电子设备可以在检测到开机操作的情况下,根据预设的缓存策略,确定待缓存的应用程序,从内存或磁盘中读取待缓存的应用程序的资源数据,从所述资源数据中确定待缓存的应用程序的样式属性信息;将待缓存的应用程序的启动窗口的样式属性信息存储至内存中。预设的缓存策略用于从电子设备上的所有应用程序中确定需要缓存样式属性信息的待缓存的应用程序,可以理解的是待缓存的应用程序可以是电子设备上的部分应用程序,也可以是全部应用程序。预设的缓存策略可以根据需求灵活设置,本申请在此不做限制。作为示例,预设的缓存策略可以包括将常用的应用程序作为待缓存的应用程序,常用的应用程序可以包括在第一时间段内使用次数大于或等于第一阈值的应用程序,也可以包括在第二时间段内使用时长大于或等于第二阈值的应用程序,还可以包括指定的若干个应用程序。若目标应用程序属于上述待缓存的应用程序,则目标应用程序的启动窗口的样式属性信息已存储在内存中,启动目标应用程序时能够命中内存。若目标应用程序不属于上述待缓存的应用程序,则目标应用程序的样式属性信息不在内存中,启动目标应用程序时不能命中内存。In an optional embodiment, the window drawing method may store the style attribute information of the startup windows of each application program in the memory when a boot operation is detected. For example, the style attribute information of the startup window of each application program may be read from the disk and stored in the memory. Wherein, the style attribute information of the startup windows of all applications installed on the electronic device can be stored in the memory, and the style attribute information of the startup windows of some application programs can also be stored in the memory, which is not limited in this application. Optionally, the electronic device may determine the application program to be cached according to a preset cache policy when the power-on operation is detected, read the resource data of the application program to be cached from the memory or the disk, and retrieve the resource data from the resource The style attribute information of the application program to be cached is determined in the data; the style attribute information of the startup window of the application program to be cached is stored in the memory. The preset caching strategy is used to determine the application program to be cached that needs to cache the style attribute information from all the application programs on the electronic device. It can be understood that the application program to be cached can be part of the application program on the electronic device, or it can be is all applications. The preset caching policy can be flexibly set according to requirements, which is not limited in this application. As an example, the preset caching policy may include frequently used applications as applications to be cached. Frequently used applications may include applications whose use times are greater than or equal to a first threshold within a first time period, or may be included in the The application programs whose usage duration in the second time period is greater than or equal to the second threshold may also include several specified application programs. If the target application program belongs to the above-mentioned application program to be cached, the style attribute information of the start window of the target application program has been stored in the memory, and the memory can be hit when the target application program is started. If the target application program does not belong to the above-mentioned application programs to be cached, the style attribute information of the target application program is not in the memory, and the memory cannot be hit when the target application program is started.

步骤S102,接收启动目标应用程序的输入。Step S102, receiving an input to start the target application.

其中,目标应用程序可以是已安装到电子设备上的任意一个应用程序。若检测到用户启动电子设备上的某一个应用程序,则用户启动的应用程序即为目标应用程序。可选地,用户启动电子设备上的应用程序的输入可以是用户点击应用程序的桌面图标的操作,也可以是用户通过语音指令启动应用程序的操作。Wherein, the target application program may be any application program already installed on the electronic device. If it is detected that the user starts an application program on the electronic device, the application program started by the user is the target application program. Optionally, the user's input for starting the application program on the electronic device may be an operation of the user clicking a desktop icon of the application program, or an operation of the user starting the application program through a voice command.

步骤S103,响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息。Step S103, in response to the input, read the style attribute information of the startup window of the target application program from the memory.

其中,可以以应用程序的标识(例如包名)为关键字将其启动窗口的样式属性信息存储在内存中。在接收到启动目标应用程序的输入的情况下,根据目标应用程序的标识从内存中读取其启动窗口的样式属性信息。Wherein, the style attribute information of the startup window may be stored in the memory by using the identifier of the application program (such as the package name) as a key. In the case of receiving the input to start the target application program, read the style attribute information of the target application program's startup window from the memory according to the identifier of the target application program.

步骤S104,根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。Step S104, draw the start window of the target application program according to the style attribute information of the start window of the target application program.

在读取到目标应用程序的启动窗口的样式属性信息后可以根据该样式属性信息,绘制该目标应用程序的启动窗口,即根据该样式属性信息指示的样式和风格,绘制该目标应用程序的启动窗口。After the style attribute information of the startup window of the target application is read, the startup window of the target application can be drawn according to the style attribute information, that is, the startup window of the target application can be drawn according to the style and style indicated by the style attribute information. window.

本申请实施例的窗口绘制方法,将各应用程序的启动窗口的样式属性信息存储至内存中,接收启动目标应用程序的输入,响应于该输入,从所述内存中读取目标应用程序的启动窗口的样式属性信息,根据该目标应用程序的启动窗口的样式属性信息,绘制目标应用程序的启动窗口。该技术方案,将各应用程序的启动窗口样式属性信息存储至内存中,在接收到启动目标应用程序的输入的情况下,能够快速地从内存中读取目标应用程序的启动窗口的样式属性信息,并基于该样式属性信息绘制该目标应用程序的启动窗口,提高了绘制应用程序的启动窗口的效率;由于应用程序的样式属性信息占用的内存远小于应用程序的资源数据,因此降低了内存的占用量,在有限的缓存中存储较多的应用程序的样式属性信息,提高了缓存的命中率。In the window drawing method of the embodiment of the present application, the style attribute information of the startup window of each application is stored in the memory, and the input of starting the target application is received, and in response to the input, the startup window of the target application is read from the memory. The style attribute information of the window is used to draw the startup window of the target application according to the style attribute information of the startup window of the target application. In this technical solution, the style attribute information of the startup window of each application is stored in the memory, and when the input of starting the target application is received, the style attribute information of the startup window of the target application can be quickly read from the memory , and draw the startup window of the target application based on the style attribute information, which improves the efficiency of drawing the startup window of the application; since the memory occupied by the style attribute information of the application is much smaller than the resource data of the application, the memory usage is reduced Occupancy, storing more style attribute information of the application in the limited cache, improving the hit rate of the cache.

作为具体的示例,图2示出了应用本申请实施例的窗口绘制方法前后多个应用程序的启动效果的对比图。由图2可以看出,应用了本申请实施例的窗口绘制方法之后,应用程序的触控响应速度有了较大的提高,启动时间有明显地缩短。As a specific example, FIG. 2 shows a comparison diagram of the startup effects of multiple application programs before and after applying the window drawing method of the embodiment of the present application. It can be seen from FIG. 2 that after applying the window drawing method of the embodiment of the present application, the touch response speed of the application program is greatly improved, and the startup time is significantly shortened.

在本申请实施例中,若内存中不存在目标应用程序的启动窗口的样式属性信息,则可以从电子设备的磁盘中读取该目标应用程序的资源数据,基于该资源数据,确定目标应用程序的启动窗口的样式属性信息,根据该样式属性信息绘制目标应用程序的启动窗口,并将该样式属性信息保存至内存中,以便于之后启动该目标应用程序时可以命中该缓存空间,提高触控响应速度,减少启动时间。In the embodiment of the present application, if the style attribute information of the startup window of the target application program does not exist in the memory, the resource data of the target application program can be read from the disk of the electronic device, and based on the resource data, the target application program can be determined The style attribute information of the startup window, draw the startup window of the target application according to the style attribute information, and save the style attribute information in the memory, so that the cache space can be hit when the target application is started later, and the touch control can be improved. Responsive speed, reducing startup time.

在可选的实施例中,该窗口绘制方法还包括:在检测到安装第一应用程序操作的情况下,读取第一应用程序的资源数据,并根据资源数据,确定第一应用程序的启动窗口的样式属性信息;将第一应用程序的启动窗口的样式属性信息添加至内存。In an optional embodiment, the window drawing method further includes: in the case of detecting the operation of installing the first application program, reading the resource data of the first application program, and determining the start of the first application program according to the resource data The style attribute information of the window; adding the style attribute information of the startup window of the first application program to the memory.

当用户在电子设备上安装新的应用程序时,可以读取用户新安装的应用程序的资源数据,并从资源数据中获取该应用程序的启动窗口的样式属性信息,将该样式属性信息添加到内存中,以便于启动该应用程序时可以命中内存,提高触控响应速度,减少启动时间。在可选的实施例中,在将新安装的应用程序的启动窗口的样式属性信息添加至内存之前,判断内存是否还能缓存该新安装的应用程序的样式属性信息。其中,可以判断内存的剩余可用空间的大小是否大于或等于新安装的应用程序的启动窗口的样式属性信息的大小,若是,则可以确定内存还能缓存新安装的应用程序的启动窗口的样式属性信息,若否,则需要先删除内存中存储的一个或多个应用程序的启动窗口的样式属性信息,再写入新安装的应用程序的启动窗口的样式属性信息。作为可选的示例,可以根据预设的置换策略,确定内存中待置换的应用程序(即待删除的应用程序)。预设的置换策略可以是最近很少使用算法(Least Recently Used,LRUCache)。根据该算法,可以在内存中存储的样式属性信息的数目一定的情况下,每次都淘汰许久未使用的样式属性信息。例如在内存内维护有缓存队列,若缓存队列有空闲时,向内存写入样式属性信息时,将新写入的样式属性信息插入到缓存队列的队首,当缓存队列满时,若插入新的样式属性信息,则将缓存队列尾部的样式属性信息删除。When the user installs a new application program on the electronic device, the resource data of the application program newly installed by the user can be read, and the style attribute information of the startup window of the application program is obtained from the resource data, and the style attribute information is added to the In the memory, so that the memory can be hit when the application is started, the touch response speed is improved, and the startup time is reduced. In an optional embodiment, before adding the style attribute information of the startup window of the newly installed application to the memory, it is judged whether the memory can cache the style attribute information of the newly installed application. Wherein, it can be determined whether the size of the remaining available space of the memory is greater than or equal to the size of the style attribute information of the startup window of the newly installed application program, if so, it can be determined that the memory can also cache the style attribute of the startup window of the newly installed application program information, if not, you need to delete the style attribute information of the startup window of one or more application programs stored in the memory first, and then write the style attribute information of the startup window of the newly installed application program. As an optional example, the application program to be replaced (that is, the application program to be deleted) in the memory may be determined according to a preset replacement policy. The preset replacement policy may be an algorithm (Least Recently Used, LRUCache). According to the algorithm, under the condition that the number of style attribute information stored in the memory is constant, the style attribute information that has not been used for a long time can be eliminated each time. For example, a cache queue is maintained in the memory. If the cache queue is free, when writing style attribute information to the memory, the newly written style attribute information will be inserted into the head of the cache queue. When the cache queue is full, if a new style attribute information, delete the style attribute information at the end of the cache queue.

在可选的实施例中,该窗口启动方法还包括:In an optional embodiment, the window startup method also includes:

在检测到第二应用程序的资源数据发生更新的情况下,读取更新后的资源数据;When it is detected that the resource data of the second application program is updated, read the updated resource data;

根据更新后的资源数据,更新内存中存储的第二应用程序的启动窗口的样式属性信息。According to the updated resource data, the style attribute information of the startup window of the second application program stored in the memory is updated.

其中,应用程序的资源数据发生更新的情况包括应用程序包发生更新或用户更新了应用程序的主题。因此,若检测到应用程序包更新操作或检测到主题更新操作,则可以确定应用程序包更新操作或主题更新操作对应的第二应用程序,根据第二应用程序更新后的资源数据,确定第二应用程序更新后的样式属性信息,从而更新内存中存储的第二应用程序的启动窗口的样式属性信息。Wherein, the resource data of the application program is updated including the application program package is updated or the user updates the theme of the application program. Therefore, if an application package update operation or a theme update operation is detected, the second application program corresponding to the application program package update operation or theme update operation can be determined, and the second application program can be determined according to the updated resource data of the second application program. The updated style attribute information of the application program, thereby updating the style attribute information of the startup window of the second application program stored in the memory.

本申请实施例提供的窗口绘制方法,执行主体可以为本申请实施例的窗口绘制装置。本申请实施例中以窗口绘制装置执行窗口绘制方法为例,说明本申请实施例提供的窗口绘制装置。The window rendering method provided in the embodiment of the present application may be executed by the window rendering device in the embodiment of the present application. In the embodiment of the present application, the window drawing device executed by the window drawing device is taken as an example to describe the window drawing device provided in the embodiment of the present application.

图3示出了本申请实施例的窗口绘制装置的结构示意图。如图3所示,该窗口绘制装置300包括:FIG. 3 shows a schematic structural diagram of a window drawing device according to an embodiment of the present application. As shown in Figure 3, the window drawing device 300 includes:

存储模块301,用于将各应用程序的启动窗口的样式属性信息存储至内存中;The storage module 301 is used to store the style attribute information of the startup window of each application program into the memory;

接收模块302,用于接收启动目标应用程序的输入;A receiving module 302, configured to receive an input for starting a target application;

读取模块303,用于响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息;A reading module 303, configured to read the style attribute information of the startup window of the target application program from the memory in response to the input;

绘制模块304,用于根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。The drawing module 304 is configured to draw the start window of the target application program according to the style attribute information of the start window of the target application program.

在可选的实施例中,所述存储模块用于:在检测到开机操作的情况下,将各应用程序的启动窗口的样式属性信息存储至内存中。In an optional embodiment, the storage module is configured to: store the style attribute information of the startup window of each application program in the memory when a boot operation is detected.

在可选的实施例中,所述存储模块用于:在检测到开机操作的情况下,从磁盘中读取各应用程序的启动窗口的样式属性信息;将所述各应用程序的启动窗口的样式属性信息存储至内存中。In an optional embodiment, the storage module is configured to: read the style attribute information of the startup window of each application program from the disk when a boot operation is detected; Style attribute information is stored in memory.

在可选的实施例中,所述存储模块还用于:在检测到安装第一应用程序操作的情况下,读取所述第一应用程序的资源数据,并根据所述资源数据,确定所述第一应用程序的启动窗口的样式属性信息;将所述第一应用程序的启动窗口的样式属性信息添加至所述内存。In an optional embodiment, the storage module is further configured to: read resource data of the first application program when an operation of installing the first application program is detected, and determine the resource data of the first application program according to the resource data. The style attribute information of the startup window of the first application program; adding the style attribute information of the startup window of the first application program to the memory.

在可选的实施例中,所述装置还包括更新模块,用于:在检测到第二应用程序的资源数据发生更新的情况下,读取更新后的资源数据;根据更新后的资源数据,更新内存中存储的所述第二应用程序的启动窗口的样式属性信息。In an optional embodiment, the device further includes an update module, configured to: read the updated resource data when it is detected that the resource data of the second application program is updated; according to the updated resource data, Updating the style attribute information of the startup window of the second application program stored in the memory.

在可选的实施例中,所述更新模块用于:在检测到针对第二应用程序的程序包更新操作或检测到针对第二应用程序的主题更新操作的情况下,读取更新后的资源数据。In an optional embodiment, the update module is configured to: read the updated resource when a package update operation for the second application or a theme update operation for the second application is detected data.

本申请实施例的窗口绘制装置,在检测到用户启动目标应用程序的操作,响应于该目标应用程序启动操作,从用于存储多个应用程序的样式属性信息的存储空间中读取目标应用程序的样式属性信息,若读取到目标应用程序的样式属性信息,则根据该样式属性信息,创建并显示该目标应用程序的启动窗口。在该技术方案,由于应用程序的样式属性信息占用的内存远小于应用程序的资源数据,因此可以在有限的缓存中存储较多的应用程序的样式属性信息,提高缓存的命中率,有效地减少点击启动应用到动画开始的时间,既能保证触控响应速度和启动时间的同时减少内存的占用量,提高用户的跟手性,改善用户体验。In the window drawing device of the embodiment of the present application, after detecting the operation of starting the target application program by the user, in response to the start operation of the target application program, read the target application program from the storage space for storing the style attribute information of multiple application programs If the style attribute information of the target application program is read, a startup window of the target application program is created and displayed according to the style attribute information. In this technical scheme, since the memory occupied by the style attribute information of the application program is much smaller than the resource data of the application program, more style attribute information of the application program can be stored in a limited cache to improve the hit rate of the cache and effectively reduce the The time from clicking to start the application to the start of the animation can not only ensure the touch response speed and startup time, but also reduce the memory usage, improve the user's chirality, and improve the user experience.

本申请实施例中的窗口绘制装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The window drawing apparatus in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, robot, wearable device, ultra-mobile personal computer (ultra-mobile personalcomputer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, network attached storage (Network Attached Storage, NAS) , a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in this embodiment of the present application.

本申请实施例中的窗口绘制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The window drawing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

本申请实施例提供的窗口绘制装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The window drawing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 3 , and details are not repeated here to avoid repetition.

可选地,如图4所示,本申请实施例还提供一种电子设备400,包括处理器401和存储器402,存储器402上存储有可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述窗口绘制方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 4 , the embodiment of the present application also provides an electronic device 400, including a processor 401 and a memory 402, and the memory 402 stores programs or instructions that can run on the processor 401. The When the programs or instructions are executed by the processor 401, the steps of the above-mentioned window drawing method embodiments can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图5为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.

本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 500 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 510 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 5 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .

其中,处理器510,用于将各应用程序的启动窗口的样式属性信息存储至内存中;接收启动目标应用程序的输入;响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息;根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。Wherein, the processor 510 is configured to store the style attribute information of the startup window of each application in the memory; receive an input for starting the target application; and read the target application from the memory in response to the input The style attribute information of the startup window of the target application program; draw the startup window of the target application program according to the style attribute information of the startup window of the target application program.

在本申请提供的电子设备中,将各应用程序的启动窗口的样式属性信息存储至内存中,接收启动目标应用程序的输入,响应于该输入,从所述内存中读取目标应用程序的启动窗口的样式属性信息,根据该目标应用程序的启动窗口的样式属性信息,绘制目标应用程序的启动窗口。该技术方案,将各应用程序的启动窗口样式属性信息存储至内存中,在接收到启动目标应用程序的输入的情况下,能够快速地从内存中读取目标应用程序的启动窗口的样式属性信息,并基于该样式属性信息绘制该目标应用程序的启动窗口,提高了绘制应用程序的启动窗口的效率;由于应用程序的样式属性信息占用的内存远小于应用程序的资源数据,因此降低了内存的占用量,在有限的缓存中存储较多的应用程序的样式属性信息,提高了缓存的命中率。可选地,处理器510,还用于在检测到开机操作的情况下,将各应用程序的启动窗口的样式属性信息存储至内存中。In the electronic device provided by the present application, the style attribute information of the startup window of each application is stored in the memory, the input of starting the target application is received, and in response to the input, the startup window of the target application is read from the memory. The style attribute information of the window is used to draw the startup window of the target application according to the style attribute information of the startup window of the target application. In this technical solution, the style attribute information of the startup window of each application is stored in the memory, and when the input of starting the target application is received, the style attribute information of the startup window of the target application can be quickly read from the memory , and draw the startup window of the target application based on the style attribute information, which improves the efficiency of drawing the startup window of the application; since the memory occupied by the style attribute information of the application is much smaller than the resource data of the application, the memory usage is reduced Occupancy, storing more style attribute information of the application in the limited cache, improving the hit rate of the cache. Optionally, the processor 510 is further configured to store the style attribute information of the startup window of each application program in the memory when a startup operation is detected.

可选地,处理器510,还用于在检测到开机操作的情况下,从磁盘中读取各应用程序的启动窗口的样式属性信息;将所述各应用程序的启动窗口的样式属性信息存储至内存中。Optionally, the processor 510 is further configured to read, from the disk, the style attribute information of the startup window of each application program when a boot operation is detected; and store the style attribute information of the startup window of each application program to memory.

可选地,处理器510,还用于在检测到安装第一应用程序操作的情况下,读取所述第一应用程序的资源数据,并根据所述资源数据,确定所述第一应用程序的启动窗口的样式属性信息;将所述第一应用程序的启动窗口的样式属性信息添加至所述内存。Optionally, the processor 510 is further configured to read resource data of the first application program when an operation of installing the first application program is detected, and determine the resource data of the first application program according to the resource data. The style attribute information of the startup window of the first application program; adding the style attribute information of the startup window of the first application program to the memory.

可选地,处理器510,还用于在检测到第二应用程序的资源数据发生更新的情况下,读取更新后的资源数据;根据更新后的资源数据,更新内存中存储的所述第二应用程序的启动窗口的样式属性信息。Optionally, the processor 510 is further configured to read updated resource data when it is detected that the resource data of the second application program is updated; and update the first resource data stored in the memory according to the updated resource data. Second, the style attribute information of the startup window of the application.

可选地,处理器510,还用于在检测到针对第二应用程序的程序包更新操作或检测到针对第二应用程序的主题更新操作的情况下,读取更新后的资源数据。Optionally, the processor 510 is further configured to read updated resource data when a package update operation for the second application program or a theme update operation for the second application program is detected.

应理解的是,本申请实施例中,输入单元504可以包括图形处理器(GraphicsProcessing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is compatible with the image capture device (such as Camera) to process the image data of still pictures or videos. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072 . The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。The memory 509 can be used to store software programs as well as various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 509 may include volatile memory or nonvolatile memory, or, memory 509 may include both volatile and nonvolatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

处理器510可包括一个或多个处理单元;可选的,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述窗口启动方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium. The readable storage medium stores programs or instructions. When the program or instructions are executed by the processor, the various processes of the above-mentioned window activation method embodiments can be achieved, and the same To avoid repetition, the technical effects will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述窗口启动方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above window activation method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述窗口启动方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned window activation method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (13)

1.一种窗口绘制方法,其特征在于,包括:1. A window drawing method, characterized in that, comprising: 将各应用程序的启动窗口的样式属性信息存储至内存中;Store the style attribute information of the startup window of each application program into the memory; 接收启动目标应用程序的输入;receiving input to launch the target application; 响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息;In response to the input, read the style attribute information of the startup window of the target application program from the memory; 根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。Draw the start window of the target application program according to the style attribute information of the start window of the target application program. 2.根据权利要求1所述的方法,其特征在于,所述将各应用程序的启动窗口的样式属性信息存储至内存中包括:2. The method according to claim 1, wherein storing the style attribute information of the startup window of each application program in the memory comprises: 在检测到开机操作的情况下,将各应用程序的启动窗口的样式属性信息存储至内存中。When the boot operation is detected, the style attribute information of the startup window of each application program is stored in the memory. 3.根据权利要求2所述的方法,其特征在于,所述在检测到开机操作的情况下,将各应用程序的启动窗口的样式属性信息存储至内存中,包括:3. The method according to claim 2, wherein, in the case of detecting a power-on operation, storing the style attribute information of the startup window of each application program in the memory includes: 在检测到开机操作的情况下,从磁盘中读取各应用程序的启动窗口的样式属性信息;When the boot operation is detected, the style attribute information of the startup window of each application program is read from the disk; 将所述各应用程序的启动窗口的样式属性信息存储至内存中。Storing the style attribute information of the startup windows of the various application programs in the memory. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 在检测到安装第一应用程序操作的情况下,读取所述第一应用程序的资源数据,并根据所述资源数据,确定所述第一应用程序的启动窗口的样式属性信息;When the operation of installing the first application program is detected, the resource data of the first application program is read, and the style attribute information of the startup window of the first application program is determined according to the resource data; 将所述第一应用程序的启动窗口的样式属性信息添加至所述内存。Adding style attribute information of the startup window of the first application program to the memory. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 在检测到第二应用程序的资源数据发生更新的情况下,读取更新后的资源数据;When it is detected that the resource data of the second application program is updated, read the updated resource data; 根据更新后的资源数据,更新内存中存储的所述第二应用程序的启动窗口的样式属性信息。The style attribute information of the startup window of the second application program stored in the memory is updated according to the updated resource data. 6.根据权利要求5所述的方法,其特征在于,所述在检测到第二应用程序的资源数据发生更新的情况下,读取更新后的资源数据包括:6. The method according to claim 5, wherein when it is detected that the resource data of the second application program is updated, reading the updated resource data comprises: 在检测到针对第二应用程序的程序包更新操作或检测到针对第二应用程序的主题更新操作的情况下,读取更新后的资源数据。In case a package update operation for the second application program or a theme update operation for the second application program is detected, the updated resource data is read. 7.一种窗口绘制装置,其特征在于,包括:7. A window drawing device, characterized in that it comprises: 存储模块,用于将各应用程序的启动窗口的样式属性信息存储至内存中;The storage module is used to store the style attribute information of the startup window of each application program into the memory; 接收模块,用于接收启动目标应用程序的输入;A receiving module, configured to receive an input for starting a target application program; 读取模块,用于响应于所述输入,从所述内存中读取所述目标应用程序的启动窗口的样式属性信息;A reading module, configured to read the style attribute information of the startup window of the target application program from the memory in response to the input; 绘制模块,用于根据所述目标应用程序的启动窗口的样式属性信息,绘制所述目标应用程序的启动窗口。A drawing module, configured to draw the start window of the target application program according to the style attribute information of the start window of the target application program. 8.根据权利要求7所述的装置,其特征在于,所述存储模块用于:在检测到开机操作的情况下,将各应用程序的启动窗口的样式属性信息存储至内存中。8 . The device according to claim 7 , wherein the storage module is configured to: store the style attribute information of the startup window of each application program in the memory when a boot operation is detected. 9.根据权利要求8所述的装置,其特征在于,所述存储模块用于:在检测到开机操作的情况下,从磁盘中读取各应用程序的启动窗口的样式属性信息;将所述各应用程序的启动窗口的样式属性信息存储至内存中。9. The device according to claim 8, wherein the storage module is configured to: when a boot operation is detected, read the style attribute information of the startup window of each application program from a disk; The style attribute information of the startup window of each application program is stored in the memory. 10.根据权利要求7所述的装置,其特征在于,所述存储模块还用于:10. The device according to claim 7, wherein the storage module is also used for: 在检测到安装第一应用程序操作的情况下,读取所述第一应用程序的资源数据,并根据所述资源数据,确定所述第一应用程序的启动窗口的样式属性信息;When the operation of installing the first application program is detected, the resource data of the first application program is read, and the style attribute information of the startup window of the first application program is determined according to the resource data; 将所述第一应用程序的启动窗口的样式属性信息添加至所述内存。Adding style attribute information of the startup window of the first application program to the memory. 11.根据权利要求7所述的装置,其特征在于,所述装置还包括更新模块,用于:11. The device according to claim 7, further comprising an update module, configured to: 在检测到第二应用程序的资源数据发生更新的情况下,读取更新后的资源数据;When it is detected that the resource data of the second application program is updated, read the updated resource data; 根据更新后的资源数据,更新内存中存储的所述第二应用程序的启动窗口的样式属性信息。The style attribute information of the startup window of the second application program stored in the memory is updated according to the updated resource data. 12.根据权利要求11所述的装置,其特征在于,所述更新模块用于:12. The device according to claim 11, wherein the update module is used for: 在检测到针对第二应用程序的程序包更新操作或检测到针对第二应用程序的主题更新操作的情况下,读取更新后的资源数据。In case a package update operation for the second application program or a theme update operation for the second application program is detected, the updated resource data is read. 13.一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的窗口绘制方法的步骤。13. An electronic device, characterized in that it includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the implementation of the claims The steps of the window drawing method described in any one of 1-6.
CN202310622932.9A 2023-05-29 2023-05-29 Window rendering method, device, and electronic device Pending CN116700866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310622932.9A CN116700866A (en) 2023-05-29 2023-05-29 Window rendering method, device, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310622932.9A CN116700866A (en) 2023-05-29 2023-05-29 Window rendering method, device, and electronic device

Publications (1)

Publication Number Publication Date
CN116700866A true CN116700866A (en) 2023-09-05

Family

ID=87835079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310622932.9A Pending CN116700866A (en) 2023-05-29 2023-05-29 Window rendering method, device, and electronic device

Country Status (1)

Country Link
CN (1) CN116700866A (en)

Similar Documents

Publication Publication Date Title
CN108984225B (en) Method and device for quickly starting a hosted application
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
CN108391009A (en) Application page display method, device, storage medium and electronic device
CN108228305A (en) Application page display method, device, storage medium and electronic device
CN109933760A (en) Form generation method, apparatus, computer device, and computer-readable storage medium
CN106339405A (en) Method For Displaying Web Content And Electronic Device Supporting The Same
CN108549568A (en) Application entry processing method and device, storage medium and electronic equipment
US20180181999A1 (en) Electronic device and method for displaying web page using the same
CN115357389A (en) Memory management method and device and electronic equipment
CN106776908B (en) Data cleaning method and device and terminal
WO2024245117A1 (en) Thread scheduling method and apparatus, and electronic device and medium
CN108334330B (en) Application uninstallation method, device, storage medium and electronic device
CN116627566A (en) Subject Application Method, Device, Electronic Device, and Readable Storage Medium
CN113032290B (en) Flash memory configuration method, device, electronic device and storage medium
CN108563476B (en) Application running method, device, storage medium and electronic device
CN115729412A (en) Interface display method and device
CN113568748B (en) Application process processing method, device, storage medium and electronic device
CN115328355A (en) Application function starting method and device
WO2024245175A1 (en) Memory reclamation method and apparatus, electronic device, and storage medium
CN116700866A (en) Window rendering method, device, and electronic device
US20160196030A1 (en) Method and electronic device for displaying electronic document
CN111880701A (en) Page switching method and device and electronic equipment
WO2024153027A1 (en) Application display method and application display apparatus
WO2024067348A2 (en) Memory allocator determination method and apparatus, and electronic device and storage medium
CN116560837A (en) Cache resource adjustment method, device, electronic device 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