CN116048324B - Desktop management method, electronic equipment and storage media - Google Patents
Desktop management method, electronic equipment and storage media Download PDFInfo
- Publication number
- CN116048324B CN116048324B CN202210589302.1A CN202210589302A CN116048324B CN 116048324 B CN116048324 B CN 116048324B CN 202210589302 A CN202210589302 A CN 202210589302A CN 116048324 B CN116048324 B CN 116048324B
- Authority
- CN
- China
- Prior art keywords
- folder
- application
- desktop
- layout information
- basic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 42
- 238000000034 method Methods 0.000 claims abstract description 52
- 230000015654 memory Effects 0.000 claims description 28
- 230000008569 process Effects 0.000 claims description 14
- 238000004891 communication Methods 0.000 description 23
- 230000006854 communication Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 11
- 238000009434 installation Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 7
- 238000010295 mobile communication Methods 0.000 description 6
- 210000000988 bone and bone Anatomy 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical field
本申请涉及智能终端技术领域,尤其涉及一种桌面管理方法、电子设备及存储介质。The present application relates to the field of intelligent terminal technology, and in particular to a desktop management method, electronic equipment and storage media.
背景技术Background technique
手机、平板电脑等智能终端的桌面上可以显示应用程序对应的图标。智能终端厂商会在智能终端中配置桌面对应的基础布局文件和预装包,基础布局文件用于在智能终端首次开机时,生成智能终端的桌面。预装包用于在智能终端上安装应用程序。预装包包括一个或多个应用文件夹(如实用工具文件夹、热门应用文件夹),每个应用文件夹中包括一个或多个应用程序。基础布局文件中包括预装包中每个应用文件夹对应的文件夹,应用文件夹对应的文件夹用于确定应用文件夹在桌面上的显示位置。Icons corresponding to applications can be displayed on the desktop of smart terminals such as mobile phones and tablets. The smart terminal manufacturer will configure the basic layout file and pre-installed package corresponding to the desktop in the smart terminal. The basic layout file is used to generate the desktop of the smart terminal when the smart terminal is powered on for the first time. Preinstalled packages are used to install applications on smart terminals. The preinstalled package includes one or more application folders (such as utility folders, popular application folders), and each application folder includes one or more applications. The basic layout file includes the folder corresponding to each application folder in the pre-installed package. The folder corresponding to the application folder is used to determine the display position of the application folder on the desktop.
同一厂商的同一个系统版本的智能终端会配置相同的基础布局文件,该系统版本的智能终端应用于不同的定制场景时,由于不同定制场景的预装策略不同,会导致在不同定制场景中该系统版本的智能终端对应的预装包也不相同。所以在部分定制场景中,该系统版本的智能终端中可能存在“预装包中不存在一应用文件夹,但基础布局文件中存在该应用文件夹对应的文件夹”的情况,出现这种情况时,就会导致智能终端首次开机后,智能终端的桌面上为该应用文件夹预留的显示位置上出现空位。Smart terminals of the same system version from the same manufacturer will be configured with the same basic layout file. When the smart terminal of this system version is used in different customization scenarios, due to different pre-installation strategies in different customization scenarios, the same basic layout file will be configured. The preinstalled packages corresponding to the system versions of smart terminals are also different. Therefore, in some customization scenarios, there may be a situation in the smart terminal of this system version that "an application folder does not exist in the preinstalled package, but a folder corresponding to the application folder exists in the basic layout file." This situation occurs. When the smart terminal is turned on for the first time, there will be an empty space in the display position reserved for the application folder on the desktop of the smart terminal.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种桌面管理方法、电子设备及存储介质,以解决智能终端的桌面上出现布局空位的问题。In view of the above, it is necessary to provide a desktop management method, electronic device and storage medium to solve the problem of layout gaps on the desktop of smart terminals.
第一方面,本申请实施例提供一种桌面管理方法,应用于电子设备,所述方法包括:解析基础布局文件,得到至少一个基础对象的布局信息,所述基础布局文件用于指示所述电子设备的桌面包含的基础对象,所述基础对象为文件夹或应用;解析预装包的布局文件,得到至少一个预装对象的布局信息,所述预装包的布局文件用于指示所述电子设备的桌面包含的预装对象,所述预装对象为文件夹或应用,在所述至少一个基础对象和所述至少一个预装对象中,至少包含一个文件夹;在所述至少一个基础对象和所述至少一个预装对象中,如果目标文件夹为空文件夹,且所述目标文件夹的布局信息包含第一属性标识,删除所述目标文件夹的布局信息,并调整所述目标文件夹之后的对象在桌面的坐标。通过上述技术方案,可以在智能终端进入相应定制场景后的预装包的布局文件与预先设置的基础布局文件不对应的情况下进行坐标调整,使得生成的桌面上不会出现空位,提高了桌面管理的准确率。In a first aspect, embodiments of the present application provide a desktop management method applied to electronic devices. The method includes: parsing a basic layout file to obtain layout information of at least one basic object. The basic layout file is used to instruct the electronic device. The desktop of the device contains basic objects, and the basic objects are folders or applications; parse the layout file of the preinstalled package to obtain the layout information of at least one preinstalled object, and the layout file of the preinstalled package is used to indicate the electronic The desktop of the device contains pre-installed objects, the pre-installed objects are folders or applications, and the at least one basic object and the at least one pre-installed object include at least one folder; in the at least one basic object and the at least one preinstalled object, if the target folder is an empty folder, and the layout information of the target folder includes the first attribute identifier, delete the layout information of the target folder, and adjust the target file The coordinates of the object after clamping on the desktop. Through the above technical solution, the coordinates can be adjusted when the layout file of the pre-installed package after the smart terminal enters the corresponding customized scene does not correspond to the preset basic layout file, so that there will be no empty spaces on the generated desktop, improving the desktop quality. Management accuracy.
在一种实现方式中,所述方法还包括:将所述至少一个基础对象的布局信息和所述至少一个预装对象的布局信息存储到桌面应用的数据库。通过上述技术方案,将得到的基础对象的布局信息和预装对象的布局信息存储到桌面应用的数据库,方便后续可以根据数据库中存储的信息生成电子设备的桌面。In one implementation, the method further includes: storing the layout information of the at least one basic object and the layout information of the at least one preinstalled object in a database of the desktop application. Through the above technical solution, the obtained layout information of the basic objects and the layout information of the pre-installed objects are stored in the database of the desktop application, so that the desktop of the electronic device can be generated later based on the information stored in the database.
在一种实现方式中,在将所述至少一个预装对象的布局信息存储到桌面应用的数据库的过程中,如果第一文件夹和第二文件夹相同,将所述第二文件夹的布局信息存储在所述第一文件夹对应的目录下,所述第一文件夹属于所述基础对象,所述第二文件夹属于所述预装对象。通过上述技术方案,可以有效地合并基础对象与预装对象中相同的文件夹。In one implementation, during the process of storing the layout information of the at least one preinstalled object into the database of the desktop application, if the first folder and the second folder are the same, the layout information of the second folder is stored in the database of the desktop application. The information is stored in the directory corresponding to the first folder, the first folder belongs to the basic object, and the second folder belongs to the preinstalled object. Through the above technical solution, the same folders in the base object and the pre-installed object can be effectively merged.
在一种实现方式中,所述方法还包括:在解析所述基础布局文件的过程中,或者,在解析所述预装包的布局文件的过程中,若目标文件夹具有第一属性标识,在存储所述目标文件夹的布局信息时,将所述目标文件夹的第一属性标识作为布局信息的一部分进行存储。通过上述技术方案,在解析基础布局文件或预装包的布局文件时,可以在解析到具有第一属性标识的文件夹时,及时对第一属性标识进行存储,方便后续判断是否需要删除空文件夹。In one implementation, the method further includes: in the process of parsing the basic layout file, or in the process of parsing the layout file of the pre-installed package, if the target folder has a first attribute identifier, When storing the layout information of the target folder, the first attribute identifier of the target folder is stored as part of the layout information. Through the above technical solution, when parsing the basic layout file or the layout file of the pre-installed package, when the folder with the first attribute identification is parsed, the first attribute identification can be stored in time, so as to facilitate the subsequent judgment of whether the empty file needs to be deleted. folder.
在一种实现方式中,所述方法还包括:若所述目标文件夹为空文件夹且所述目标文件夹的布局信息不包含第一属性标识,不删除所述目标文件夹。通过上述技术方案,可以保证不该删除的空文件夹不被删除,从而提高了桌面管理的准确率。In one implementation, the method further includes: not deleting the target folder if the target folder is an empty folder and the layout information of the target folder does not include the first attribute identifier. Through the above technical solution, it can be ensured that empty folders that should not be deleted are not deleted, thereby improving the accuracy of desktop management.
在一种实现方式中,所述方法还包括:在显示桌面时,根据所述目标文件夹的布局信息,在所述目标文件夹对应的位置,显示所述目标文件夹的图标,所述目标文件的布局信息包含的坐标用于指示所述目标文件夹对应的位置。通过上述技术方案,可以保证应该要显示的图标能正常地在电子设备的桌面上进行显示,从而提高了桌面管理的准确率。In one implementation, the method further includes: when displaying the desktop, displaying an icon of the target folder at a position corresponding to the target folder according to the layout information of the target folder. The coordinates contained in the layout information of the file are used to indicate the corresponding location of the target folder. Through the above technical solution, it can be ensured that the icons that should be displayed can be displayed normally on the desktop of the electronic device, thereby improving the accuracy of desktop management.
在一种实现方式中,在所述目标文件夹的图标的显示区域内,显示至少一个待下载应用的图标,以及下载控件。上述技术方案,可以在显示目标文件夹的图标时,显示待下载应用的图标和辅助用户下载应用的下载控件,方便了用户下载应用。In one implementation, at least one icon of an application to be downloaded and a download control are displayed in the display area of the icon of the target folder. The above technical solution can display the icon of the application to be downloaded and the download control that assists the user in downloading the application when the icon of the target folder is displayed, which facilitates the user to download the application.
第二方面,本申请实施例提供一种桌面管理方法,应用于电子设备,所述方法应用于电子设备,所述方法包括:解析基础布局文件,得到至少一个基础对象的布局信息,所述基础布局文件用于指示所述电子设备的桌面包含的基础对象,所述基础对象为文件夹或应用;解析预装包的布局文件,得到至少一个预装对象的布局信息,所述预装包的布局文件用于指示所述电子设备的桌面包含的预装对象,所述预装对象为文件夹或应用,在所述至少一个基础对象和所述至少一个预装对象中,至少包含一个文件夹;在所述至少一个基础对象和所述至少一个预装对象中,如果目标文件夹为空文件夹,且所述目标文件夹的布局信息不包含第二属性标识,删除所述目标文件夹的布局信息,并调整所述目标文件夹之后的对象在桌面的坐标。通过上述技术方案,可以在智能终端进入相应定制场景后的预装包的布局文件与预先设置的基础布局文件不对应的情况下进行坐标调整,使得生成的桌面上不会出现空位,提高了桌面管理的准确率。In a second aspect, embodiments of the present application provide a desktop management method applied to electronic devices. The method is applied to electronic devices. The method includes: parsing a basic layout file to obtain layout information of at least one basic object. The basic The layout file is used to indicate the basic objects contained in the desktop of the electronic device, and the basic objects are folders or applications; parse the layout file of the pre-installed package to obtain the layout information of at least one pre-installed object. The layout file is used to indicate pre-installed objects contained on the desktop of the electronic device. The pre-installed objects are folders or applications. Among the at least one basic object and the at least one pre-installed object, at least one folder is included. ; In the at least one basic object and the at least one pre-installed object, if the target folder is an empty folder, and the layout information of the target folder does not include the second attribute identifier, delete the target folder's Layout information and adjust the coordinates of the object on the desktop after adjusting the target folder. Through the above technical solution, the coordinates can be adjusted when the layout file of the pre-installed package after the smart terminal enters the corresponding customized scene does not correspond to the preset basic layout file, so that there will be no empty spaces on the generated desktop, improving the desktop quality. Management accuracy.
第三方面,本申请实施例提供一种电子设备,该电子设备包括存储器和处理器;该存储器,用于存储程序指令;该处理器于读取存储器中存储的程序指令,以实现如上述的桌面管理方法。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a memory and a processor. The memory is used to store program instructions. The processor reads the program instructions stored in the memory to implement the above. Desktop management methods.
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机可读指令,该计算机可读指令被处理器执行时实现如上述的桌面管理方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the above-mentioned desktop management method is implemented.
另外,第三方面和第四方面所带来的技术效果可参见上述方法部分各设计的方法相关的描述,此处不再赘述。In addition, the technical effects brought about by the third and fourth aspects can be found in the descriptions related to the various designed methods in the above method section, and will not be described again here.
附图说明Description of the drawings
图1为本申请实施例提供的一种电子设备显示界面的场景示意图。FIG. 1 is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application.
图2为本申请实施例提供的一种电子设备显示界面的场景示意图。FIG. 2 is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application.
图3为本申请实施例提供的一种桌面管理方法的流程示意图。Figure 3 is a schematic flowchart of a desktop management method provided by an embodiment of the present application.
图4为本申请实施例提供的一种电子设备显示屏幕的示意图。FIG. 4 is a schematic diagram of a display screen of an electronic device provided by an embodiment of the present application.
图5为本申请实施例提供的一种图标显示的场景示意图。Figure 5 is a schematic diagram of an icon display scene provided by an embodiment of the present application.
图6为本申请实施例提供的一种图标显示的场景示意图。Figure 6 is a schematic diagram of an icon display scene provided by an embodiment of the present application.
图7为本申请实施例提供的一种电子设备显示界面的场景示意图。FIG. 7 is a schematic diagram of a scene of an electronic device display interface provided by an embodiment of the present application.
图8为本申请实施例提供的一种电子设备显示界面的场景示意图。FIG. 8 is a schematic diagram of a scene of an electronic device display interface provided by an embodiment of the present application.
图9为本申请实施例提供的一种电子设备显示界面的场景示意图。FIG. 9 is a schematic diagram of a scene of an electronic device display interface provided by an embodiment of the present application.
图10为本申请实施例提供的一种桌面管理方法的流程示意图。Figure 10 is a schematic flowchart of a desktop management method provided by an embodiment of the present application.
图11为本申请实施例提供的一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,“示例性”、“或者”、“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性”、“或者”、“例如”等词旨在以具体方式呈现相关概念。Hereinafter, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of this application, words such as "exemplary", "or", "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "or," "for example," etc., are intended to present the relevant concepts in a concrete manner.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“/”表示或的意思。例如,A/B可以表示A或B。本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B三种情况。“至少一个”是指一个或者多个。“多个”是指两个或多于两个。例如,a、b或c中的至少一个,可以表示:a,b,c,a和b,a和c,b和c,a、b和c七种情况。应当理解的是,本文的流程图中所示步骤的顺序可以改变,某些也可以省略。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms used in the description of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that in this application, "/" means or unless otherwise stated. For example, A/B can mean A or B. "And/or" in this application is just an association relationship describing associated objects, indicating that three relationships can exist. For example, A and/or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. "At least one" means one or more. "Plural" means two or more than two. For example, at least one of a, b or c can represent seven situations: a, b, c, a and b, a and c, b and c, a, b and c. It should be understood that the order of the steps shown in the flowcharts herein may be changed and some may be omitted.
手机、平板电脑等智能终端的桌面上可以显示应用程序对应的图标。智能终端厂商会在智能终端中配置桌面对应的基础布局文件和预装包,基础布局文件用于在智能终端首次开机时,生成智能终端的桌面。基础布局文件中包括应用在桌面上对应的布局位置,以及文件夹在桌面上对应的布局位置。预装包用于在智能终端上安装应用程序。预装包包括布局文件,预装包的布局文件中可以包括一个或多个应用文件夹(如文件夹“实用工具”、文件夹“热门应用”、文件夹“游戏”),每个应用文件夹中包括一个或多个应用。基础布局文件中包括预装包中每个应用文件夹对应的文件夹,文件夹用于确定应用文件夹在桌面上的显示位置。Icons corresponding to applications can be displayed on the desktop of smart terminals such as mobile phones and tablets. The smart terminal manufacturer will configure the basic layout file and pre-installed package corresponding to the desktop in the smart terminal. The basic layout file is used to generate the desktop of the smart terminal when the smart terminal is powered on for the first time. The basic layout file includes the corresponding layout position of the application on the desktop and the corresponding layout position of the folder on the desktop. Preinstalled packages are used to install applications on smart terminals. The pre-installed package includes a layout file. The layout file of the pre-installed package can include one or more application folders (such as the folder "Utilities", the folder "Popular Applications", the folder "Games"). Each application file A folder contains one or more applications. The basic layout file includes the folder corresponding to each application folder in the pre-installed package. The folder is used to determine the display position of the application folder on the desktop.
同一厂商的同一个系统版本的智能终端会配置相同的基础布局文件,该系统版本的智能终端应用于不同的定制场景时,由于不同定制场景的预装策略不同,会导致在不同定制场景中该系统版本的智能终端对应的预装包也不相同。所以在部分定制场景中,该系统版本的智能终端中可能存在“预装包的布局文件中不存在一应用文件夹,但基础布局文件中存在该应用文件夹对应的文件夹”的情况,出现这种情况时,就会导致智能终端首次开机后,智能终端的桌面上为该应用文件夹预留的显示位置会出现空位。Smart terminals of the same system version from the same manufacturer will be configured with the same basic layout file. When the smart terminal of this system version is used in different customization scenarios, due to different pre-installation strategies in different customization scenarios, the same basic layout file will be configured. The preinstalled packages corresponding to the system versions of smart terminals are also different. Therefore, in some customization scenarios, there may be a situation in the smart terminal of this system version that "an application folder does not exist in the layout file of the pre-installed package, but the folder corresponding to the application folder exists in the basic layout file". In this case, after the smart terminal is powered on for the first time, there will be an empty space in the display position reserved for the application folder on the desktop of the smart terminal.
举例而言,厂商A家的一系统版本(如系统版本A)的智能终端(可以是同一系统版本同一型号的智能终端,也可以是同一系统版本但不同型号的智能终端)配置了相同的基础布局文件(如基础布局文件A)。基础布局文件A中包括初始预装包(指未进入定制场景的预装包)中每个应用文件夹对应的文件夹。例如,初始预装包的布局文件中包括应用文件夹A、应用文件夹B、应用文件夹C,基础布局文件A中包括应用文件夹A、应用文件夹B、应用文件夹C各自对应的文件夹。该智能终端进入不同的定制场景时,需要根据定制场景的预装策略调整初始预装包,得到每个定制场景对应的预装包。由于不同定制场景的预装策略不同,所以不同定制场景对应的预装包也有所差异。For example, the smart terminals of a system version (such as system version A) of manufacturer A (which can be smart terminals of the same system version and the same model, or smart terminals of the same system version but different models) are configured with the same basic Layout file (such as basic layout file A). Basic layout file A includes folders corresponding to each application folder in the initial preinstalled package (referring to the preinstalled package that has not entered the customization scenario). For example, the layout file of the initial preinstalled package includes application folder A, application folder B, and application folder C. The basic layout file A includes the corresponding files of application folder A, application folder B, and application folder C. folder. When the smart terminal enters different customized scenarios, it needs to adjust the initial preinstalled package according to the preinstalled strategy of the customized scenario to obtain the preinstalled package corresponding to each customized scenario. Since the pre-installation strategies for different customization scenarios are different, the pre-installation packages corresponding to different customization scenarios are also different.
该智能终端进入定制场景后的预装包的布局文件中的应用文件夹,与初始预装包的布局文件中的应用文件夹相比可能相同,也可能有所减少。例如,如表1所示,基于定制方A定制场景的预装策略,不允许预装应用文件夹C对应的应用程序,所以该智能终端在定制方A定制场景对应的预装包的布局文件中包括应用文件夹A和应用文件夹B;基于定制方B定制场景的预装策略,不允许预装应用文件夹A对应的应用程序,所以该智能终端在定制方B定制场景对应的预装包的布局文件中包括应用文件夹B和应用文件夹C;基于定制方C定制场景的预装策略,允许预装应用文件夹A、应用文件夹B和应用文件夹C对应的全部应用程序,所以该智能终端在定制方C定制场景对应的预装包的布局文件中包括应用文件夹A、应用文件夹B和应用文件夹C。The application folder in the layout file of the pre-installed package after the smart terminal enters the customized scene may be the same as the application folder in the layout file of the initial pre-installed package, or may be reduced. For example, as shown in Table 1, the pre-installation policy based on the customization scenario of customizer A does not allow the pre-installation of applications corresponding to application folder C. Therefore, the smart terminal uses the layout file of the pre-installed package corresponding to the customization scenario of customizer A. includes application folder A and application folder B; based on the pre-installation policy of customizer B’s customized scenario, the application corresponding to application folder A is not allowed to be pre-installed, so the smart terminal is pre-installed in the customized scenario of customizer B. The layout file of the package includes application folder B and application folder C; the pre-installation policy based on the customization scenario of customizer C allows pre-installation of all applications corresponding to application folder A, application folder B and application folder C. Therefore, the smart terminal includes application folder A, application folder B, and application folder C in the layout file of the preinstalled package corresponding to the customization scenario of customizer C.
表1Table 1
该智能终端进入定制方A定制场景后,首次开机根据基础布局文件生成智能终端的桌面时,桌面上为应用文件夹C预留的显示位置会出现空位,如图1所示,两个应用(应用一和应用二)的图标之间(桌面上为应用文件夹C预留的显示位置)产生空位。该智能终端进入定制方B定制场景后,首次开机根据基础布局文件生成智能终端的桌面时,桌面上为应用文件夹A预留的显示位置会出现空位。该智能终端进入定制方C定制场景后,不会产生空位,如图2所示,两个应用(应用一和应用二)的图标之间,显示应用文件夹C对应的图标。After the smart terminal enters the customization scenario of customizer A, when it is powered on for the first time to generate the desktop of the smart terminal based on the basic layout file, there will be a vacancy in the display position reserved for application folder C on the desktop. As shown in Figure 1, two applications ( There is a gap between the icons of application one and application two (the display position reserved for application folder C on the desktop). After the smart terminal enters the customization scenario of customizer B, when it is powered on for the first time to generate the desktop of the smart terminal based on the basic layout file, there will be a vacancy in the display position reserved for application folder A on the desktop. After the smart terminal enters the customization scene of customizer C, there will be no vacancies. As shown in Figure 2, the icon corresponding to application folder C is displayed between the icons of the two applications (application one and application two).
为了解决智能终端进入定制场景后预装包的布局文件与预先设置的基础布局文件不对应,导致智能终端桌面上出现布局空位的问题,本申请实施例提供一种桌面管理方法。所述方法可以解决智能终端进入定制场景后预装包与预先设置的基础布局文件不对应,导致智能终端桌面上出现布局空位的问题,提高桌面图标管理的准确率,避免不当的空位。下面结合附图,对桌面管理方法进行详细介绍。In order to solve the problem that the layout file of the pre-installed package does not correspond to the preset basic layout file after the smart terminal enters the customized scene, resulting in layout gaps on the desktop of the smart terminal, embodiments of the present application provide a desktop management method. The method can solve the problem that the pre-installed package does not correspond to the preset basic layout file after the smart terminal enters the customized scene, causing layout gaps to appear on the desktop of the smart terminal, improves the accuracy of desktop icon management, and avoids inappropriate gaps. The following is a detailed introduction to the desktop management method with reference to the attached figure.
图3为本申请实施例提供的一种桌面管理方法的流程示意图,所述方法应用于电子设备,所述电子设备包括桌面应用,桌面应用用于生成电子设备的桌面。可以理解的是,本申请中的电子设备可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、人工智能(artificialintelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备等电子设备。本申请实施例对该电子设备的具体形态不作特殊限制。Figure 3 is a schematic flowchart of a desktop management method provided by an embodiment of the present application. The method is applied to an electronic device. The electronic device includes a desktop application, and the desktop application is used to generate a desktop of the electronic device. It can be understood that the electronic device in this application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and Electronic devices such as cellular phones, personal digital assistants (PDAs), artificial intelligence (AI) devices, wearable devices, vehicle-mounted devices, smart home devices and/or smart city devices. The embodiments of the present application do not place any special restrictions on the specific form of the electronic device.
如图3所示,所述方法包括:As shown in Figure 3, the method includes:
101,解析基础布局文件,在所述桌面应用的数据库中存储所述基础布局文件中文件夹对应的布局信息。101. Parse the basic layout file, and store the layout information corresponding to the folder in the basic layout file in the database of the desktop application.
在本申请的一些实施例中,当电子设备第一次开启,运行桌面应用时,解析基础布局文件。电子设备首次开机时,运行桌面应用并在电子设备的数据库中读取存储的基础布局文件,并对该基础布局文件进行解析。In some embodiments of the present application, when the electronic device is turned on for the first time and a desktop application is run, the basic layout file is parsed. When the electronic device is powered on for the first time, the desktop application is run, the basic layout file stored in the database of the electronic device is read, and the basic layout file is parsed.
基础布局文件用于指示电子设备的桌面包含的基础对象,根据基础布局文件可以确定电子设备的桌面上会显示的内容。基础对象可以包含应用、桌面工具(如桌面卡片)和文件夹,文件夹可以分为大文件夹和小文件夹。基础布局文件中可以包含多个基础对象的布局信息。一个电子设备的基础布局文件中包含至少一个文件夹的布局信息。基础布局文件可以通过可拓展标记语言(Extensible Markup Language,XML)格式存储在电子设备的数据库中,如电子设备的操作系统对应的数据库中。The basic layout file is used to indicate the basic objects included in the desktop of the electronic device, and the content that will be displayed on the desktop of the electronic device can be determined based on the basic layout file. Basic objects can include applications, desktop tools (such as desktop cards) and folders. Folders can be divided into large folders and small folders. A basic layout file can contain layout information for multiple basic objects. A basic layout file of an electronic device contains layout information of at least one folder. The basic layout file can be stored in the database of the electronic device through Extensible Markup Language (XML) format, such as the database corresponding to the operating system of the electronic device.
可以理解的是,电子设备解析基础布局文件时,会将解析得到的应用对应的布局信息、桌面工具对应的布局信息和文件夹对应的布局信息,都存储至桌面应用对应的数据库中,以使后续可以根据桌面应用对应的数据库,生成电子设备的桌面。电子设备可以按照对基础布局文件的解析顺序,依次将解析到的布局信息存储至桌面应用对应的数据库中。电子设备可以边解析基础布局文件,边存储解析到的布局信息。例如,电子设备可以解析到基础布局文件中一条布局信息后,立即将该布局信息进行存储,并在存储该条布局信息后继续对未解析的基础布局文件进行解析。It can be understood that when the electronic device parses the basic layout file, it will store the parsed layout information corresponding to the application, the layout information corresponding to the desktop tool, and the layout information corresponding to the folder into the database corresponding to the desktop application, so that Subsequently, the desktop of the electronic device can be generated based on the database corresponding to the desktop application. The electronic device can sequentially store the parsed layout information into the database corresponding to the desktop application according to the parsing order of the basic layout file. The electronic device can parse the basic layout file and store the parsed layout information. For example, the electronic device can parse a piece of layout information in the basic layout file, immediately store the layout information, and continue to parse the unresolved basic layout file after storing the piece of layout information.
在本申请的一些实施例中,在解析布局文件时,可以根据对基础布局文件中布局信息进行标注的标识,确定当前布局信息对应的类型。在基础布局文件中会使用不同的标识对文件夹、应用和桌面工具进行标注,例如,可以使用标识“folder”标注文件夹,可以使用标识“favorite”标注应用,可以使用标识“appwidget”标注桌面工具。当解析到基础布局文件中一布局信息的标识为“folder”时,确定该布局信息的类型为文件夹;当解析到基础布局文件中一布局信息的标识为“favorite”时,确定该布局信息的类型为应用;当解析到基础布局文件中一布局信息的标识为“appwidget”时,确定该布局信息的类型为桌面工具。In some embodiments of the present application, when parsing the layout file, the type corresponding to the current layout information can be determined based on the identifier marking the layout information in the basic layout file. Different identifiers are used in the basic layout file to label folders, applications, and desktop tools. For example, you can use the identifier "folder" to label folders, you can use the identifier "favorite" to label applications, and you can use the identifier "appwidget" to label the desktop. tool. When it is parsed that the identifier of a piece of layout information in the basic layout file is "folder", it is determined that the type of the layout information is a folder; when it is parsed that the identifier of a piece of layout information in the basic layout file is "favorite", it is determined that the layout information The type is application; when the identifier of the layout information in the basic layout file is "appwidget", it is determined that the type of the layout information is desktop tool.
在本申请的一些实施例中,电子设备将布局信息存储至桌面应用对应的数据库时,会同时存储布局信息对应的类型。可以将基础布局文件中的布局信息和布局信息的类型对应的类型标识对应存储至桌面应用对应的数据库。电子设备可以直接将基础布局文件中对布局信息类型进行标注的标识,确定为布局信息对应的类型标识;也可以预先设置每个布局信息类型对应的类型标识,将类型标识“0”设置为应用对应的类型标识;将类型标识“1”设置为文件夹对应的类型标识;将类型标识“2”设置为桌面工具对应的类型标识。In some embodiments of the present application, when the electronic device stores the layout information in the database corresponding to the desktop application, it also stores the corresponding type of the layout information. The layout information in the basic layout file and the type identifier corresponding to the type of the layout information can be correspondingly stored in a database corresponding to the desktop application. The electronic device can directly determine the identifier that marks the layout information type in the basic layout file as the type identifier corresponding to the layout information; it can also set the type identifier corresponding to each layout information type in advance, and set the type identifier "0" to application The corresponding type identifier; set the type identifier "1" to the type identifier corresponding to the folder; set the type identifier "2" to the type identifier corresponding to the desktop tool.
例如,存储一文件夹对应的布局信息时,会同时存储文件夹的类型标识,可以将该文件夹的布局信息和文件夹的类型标识作为一条记录在桌面应用的数据库中存储;存储一应用对应的布局信息时,会同时存储应用的类型标识,可以将该应用的布局信息和应用的类型标识作为一条记录在桌面应用的数据库中存储;存储一桌面工具对应的布局信息时,会同时存储桌面工具的类型标识,可以将该桌面工具的布局信息和桌面工具的类型标识作为一条记录在桌面应用的数据库中存储。For example, when storing the layout information corresponding to a folder, the folder's type identifier will also be stored. The folder's layout information and the folder's type identifier can be stored as a record in the database of the desktop application; storing an application's corresponding When the layout information of a desktop tool is stored, the type identifier of the application will be stored at the same time. The layout information and the type identifier of the application can be stored as a record in the database of the desktop application; when the layout information corresponding to a desktop tool is stored, the desktop tool will be stored at the same time. As for the type identifier of the tool, the layout information of the desktop tool and the type identifier of the desktop tool can be stored as a record in the database of the desktop application.
可以以电子设备显示屏幕的左上角为原点构建平面坐标系,并将电子设备的显示屏幕划分成M×N个格子,每个格子的大小相等,每个格子在X方向上所占的长度为一个单位长度,在Y方向上所占的长度为一个单位长度。M和N的值可以根据实际情况进行设定,在此不做任何限定,M和N可以为相同的值,也可以为不同的值,如可以设置为3×4、4×6等。每个格子在X方向上和在Y方向上所占的长度也可以根据实际情况进行设置,可以相同也可以不同,在此不做任何限定。通过划分格子,可以确定应用(文件夹或桌面工具)的图标显示的位置。M×N个格子对应的显示屏幕区域为可以显示应用(文件夹或桌面工具)的图标的屏幕区域。可以理解的是,由于电子设备的显示屏幕上有部分区域是不能用于显示应用(文件夹或桌面工具)的图标,如信号栏区域,所以M×N个格子对应的显示屏幕区域可以是电子设备的显示屏幕上的部分显示屏幕区域。A plane coordinate system can be constructed with the upper left corner of the display screen of the electronic device as the origin, and the display screen of the electronic device can be divided into M×N grids. Each grid is equal in size and the length of each grid in the X direction is One unit length, the length occupied in the Y direction is one unit length. The values of M and N can be set according to the actual situation, and there are no restrictions here. M and N can be the same value or different values, such as 3×4, 4×6, etc. The length of each grid in the X direction and the Y direction can also be set according to the actual situation, and can be the same or different, without any limitation here. By dividing the grid, you can determine the location where the icon of the application (folder or desktop tool) is displayed. The display screen area corresponding to the M×N grids is a screen area that can display icons of applications (folders or desktop tools). It can be understood that since some areas on the display screen of the electronic device cannot be used to display icons of applications (folders or desktop tools), such as the signal bar area, the display screen area corresponding to the M×N grids can be electronic The portion of the display screen area on a device's display screen.
显示屏幕上划分的格子用于显示应用(文件夹或桌面工具)的图标。在本申请的一些实施例中,一个应用(或文件夹)的图标可以在电子设备显示屏幕上的一个格子上进行显示,也就是说,一个应用(文件夹)的图标可以占一个格子。一个桌面工具的图标可以在电子设备显示屏幕上的一个或多个格子上进行显示,也就是说,一个桌面工具的图标可以占一个或多个格子。应用、文件夹和桌面工具各自的图标在电子设备显示屏幕上占格子的数量可以根据用户的需求进行设置,在此仅做举例说明,不构成任何限制。The grid divided on the display screen is used to display icons of applications (folders or desktop tools). In some embodiments of the present application, an application (or folder) icon can be displayed on a grid on the display screen of the electronic device. That is to say, an application (folder) icon can occupy a grid. An icon of a desktop tool can be displayed on one or more grids on the display screen of the electronic device. That is to say, an icon of a desktop tool can occupy one or more grids. The number of grids occupied by the respective icons of applications, folders and desktop tools on the display screen of the electronic device can be set according to the user's needs. This is only an example and does not constitute any limitation.
图4为本申请实施例提供的一种电子设备显示屏幕的示意图。如图4所示,以电子设备显示屏幕的左上角为原点构建平面坐标系,并将电子设备显示屏幕被划分出3×4个格子。可以将格子左上角在构建的平面坐标系中的坐标,确定为该格子的坐标,例如,如图4所示,确定左上角第一个格子的左上角在构建的平面坐标系中的坐标为X=0,Y=0,将坐标X=0,Y=0,确定为左上角第一个格子的坐标。在本申请的一些实施例中,也可以将格子右上角(左下角或右下角)在构建的平面坐标系中的坐标,确定为该格子的坐标。FIG. 4 is a schematic diagram of a display screen of an electronic device provided by an embodiment of the present application. As shown in Figure 4, a plane coordinate system is constructed with the upper left corner of the electronic device display screen as the origin, and the electronic device display screen is divided into 3×4 grids. The coordinates of the upper left corner of the grid in the constructed plane coordinate system can be determined as the coordinates of the grid. For example, as shown in Figure 4, the coordinates of the upper left corner of the first grid in the upper left corner in the constructed plane coordinate system are determined as X=0, Y=0, determine the coordinates X=0, Y=0 as the coordinates of the first grid in the upper left corner. In some embodiments of the present application, the coordinates of the upper right corner (lower left corner or lower right corner) of the grid in the constructed plane coordinate system can also be determined as the coordinates of the grid.
基础布局文件中每个对象的布局信息中包括显示页面、显示坐标和显示大小。根据显示页面、显示坐标和显示大小可以确定文件夹(应用或桌面工具)在桌面上的显示位置。The layout information of each object in the basic layout file includes display page, display coordinates and display size. The display position of the folder (application or desktop tool) on the desktop can be determined based on the display page, display coordinates and display size.
例如,一应用在基础布局文件中的布局信息可以为:screen="0"x="1"y="4"spanX="1"span Y="1",其中,screen="0"表示在主屏桌面显示,x="1"y="4"表示该应用的图标在电子设备显示屏幕上坐标为X=1,Y=4的格子上进行显示。spanX="1"与spanY="1"用于确定该应用的图标在电子设备显示屏幕上的显示大小,如用于确定该应用的图标在电子设备显示屏幕上所占格子的数量。spanX="1"表示文件夹在X方向上占了一个单位长度,spanY="1"表示文件夹在Y方向上占了一个单位长度,1×1=1,因此,可确定该应用的图标在电子设备显示屏幕上占一个格子(该应用在电子设备显示屏幕上坐标为X=1,Y=4的格子上进行显示)。For example, the layout information of an application in the basic layout file can be: screen="0"x="1"y="4" spanX="1" span Y="1", where screen="0" means When displayed on the home screen desktop, x="1" y="4" indicates that the icon of the application is displayed on the grid with coordinates of X=1 and Y=4 on the display screen of the electronic device. spanX="1" and spanY="1" are used to determine the display size of the application's icon on the electronic device's display screen, for example, they are used to determine the number of grids that the application's icon occupies on the electronic device's display screen. spanX="1" indicates that the folder occupies one unit length in the X direction, spanY="1" indicates that the folder occupies one unit length in the Y direction, 1×1=1, therefore, the icon of the application can be determined Occupy a grid on the display screen of the electronic device (the application is displayed on the grid with coordinates X=1 and Y=4 on the display screen of the electronic device).
又例如,一桌面工具在基础布局文件中的布局信息可以为:screen="1"x="3"y="0"spanX="1"spanY="2",其中,screen="1"表示在第一屏桌面显示,x="3"y="0"表示该桌面工具的图标在电子设备显示屏幕上坐标为X=3,Y=0的格子上进行显示,可以理解的是,若该桌面工具对应的图标占多个格子,x="3"y="0"表示该桌面工具的图标的一部分在电子设备显示屏幕上坐标为X=3,Y=0的格子上进行显示,如表示该桌面工具的图标的左上角部分在电子设备显示屏幕上坐标为X=3,Y=0的格子上进行显示。,spanX="1"与spanY="2"表示在X方向上占了一个单位长度,在Y方向上占了两个单位长度,1×2=2,因此,可确定该桌面工具的图标在电子设备显示屏幕上占两个格子(该桌面工具的图标在电子设备显示屏幕上坐标为X=3,Y=0和坐标为X=3,Y=1的两个格子上进行显示)。For another example, the layout information of a desktop tool in the basic layout file can be: screen="1"x="3"y="0" spanX="1" spanY="2", where screen="1" It means that it is displayed on the first screen desktop, x="3" y="0" means that the icon of the desktop tool is displayed on the grid with coordinates of X=3 and Y=0 on the display screen of the electronic device. It can be understood that, If the icon corresponding to the desktop tool occupies multiple grids, x="3"y="0" indicates that part of the icon of the desktop tool is displayed on the grid with coordinates X=3 and Y=0 on the display screen of the electronic device. , for example, the upper left corner part of the icon representing the desktop tool is displayed on a grid with coordinates of X=3 and Y=0 on the display screen of the electronic device. , spanX="1" and spanY="2" indicate that it occupies one unit length in the X direction and two unit lengths in the Y direction, 1×2=2. Therefore, it can be determined that the icon of the desktop tool is in There are two grids on the display screen of the electronic device (the icon of the desktop tool is displayed on the two grids with coordinates X=3, Y=0 and coordinates X=3, Y=1 on the display screen of the electronic device).
在本申请的一些实施例中,基础布局文件中一应用(文件夹/桌面工具)的布局信息内没有spanX和spanY消息时,可以依据预设布局原则,确定应用的显示大小。预设布局规则中包括应用的默认显示大小、文件夹的默认显示大小和桌面工具的默认显示大小。应用的默认显示大小可以设置为一个格子的大小,即spanX="1",spanY="1"。上述应用的默认显示大小仅为示例性说明,可根据实际情况进行设置应用(文件夹或桌面工具)的默认显示大小,不局限于此处的举例。In some embodiments of the present application, when there are no spanX and spanY messages in the layout information of an application (folder/desktop tool) in the basic layout file, the display size of the application can be determined based on the preset layout principles. Preset layout rules include the default display size of applications, the default display size of folders, and the default display size of desktop tools. The default display size of the application can be set to the size of a grid, that is, spanX="1", spanY="1". The default display size of the above application is only an example. The default display size of the application (folder or desktop tool) can be set according to the actual situation, and is not limited to the example here.
例如,如表2所示的方式,在所述桌面应用对应的数据库中存储所述基础布局文件中文件夹、应用和桌面工具各自对应的布局信息。For example, as shown in Table 2, the layout information corresponding to the folders, applications and desktop tools in the basic layout file is stored in the database corresponding to the desktop application.
表2Table 2
如表2所示,Screen表示显示页面,可以为桌面的页面编号或屏编号。桌面可以有多个页面或多个屏,如Screen 0表示该图标显示在桌面的第0页或第0屏(例如,主桌面)。例如,主桌面向左划为负一屏(第-1屏),主桌面向右划为第1屏。X表示在电子设备显示屏幕的坐标系中X方向上的显示位置,Y表示在电子设备显示屏幕的坐标系中Y方向上的显示位置。X和Y共同表示在电子设备显示屏幕的坐标系中的显示坐标,可以用于确定在显示屏幕上进行显示的格子,如桌面工具1:X="1"Y="3"表示桌面工具1在电子设备显示屏幕的主屏对应的坐标系中坐标为X=1,Y=3的格子上进行显示。spanX表示在X方向上所占的单位长度,spanY表示在Y方向上所占的单位长度,如spanX="3",spanY="1"表示在X方向上占了三个单位长度,在Y方向上占了一个单位长度,3×1=3,占三个格子。根据桌面应用一上述的布局信息可知,桌面工具一的图标在电子设备显示屏幕的主屏上占三个格子,在电子设备显示屏幕上坐标为X=1,Y=3、坐标为X=2,Y=3和坐标为X=3,Y=3的三个格子上进行显示。As shown in Table 2, Screen represents the display page, which can be the page number or screen number of the desktop. The desktop can have multiple pages or screens. For example, Screen 0 means that the icon is displayed on page 0 or screen 0 of the desktop (for example, the main desktop). For example, swipe the main desktop to the left to be negative one screen (screen -1), and swipe the main desktop to the right to be the 1st screen. X represents the display position in the X direction in the coordinate system of the electronic device display screen, and Y represents the display position in the Y direction in the coordinate system of the electronic device display screen. X and Y jointly represent the display coordinates in the coordinate system of the electronic device display screen, and can be used to determine the grid to be displayed on the display screen, such as desktop tool 1: X="1" Y="3" represents desktop tool 1 The display is performed on a grid with coordinates X=1 and Y=3 in the coordinate system corresponding to the main screen of the electronic device display screen. spanX represents the unit length occupied in the X direction, spanY represents the unit length occupied in the Y direction, such as spanX="3", spanY="1" represents three unit lengths occupied in the X direction, in the Y It occupies one unit length in the direction, 3×1=3, and occupies three grids. According to the above layout information of desktop application one, it can be seen that the icon of desktop tool one occupies three grids on the main screen of the electronic device display screen. The coordinates on the electronic device display screen are X=1, Y=3, and the coordinates are X=2. Display on the three grids with Y=3 and coordinates X=3 and Y=3.
又例如,根据文件夹一的布局信息中Screen 0,X="0"Y="4",确定文件夹一在电子设备显示屏幕的主屏对应的坐标系中坐标为X=0,Y=4的格子上进行显示,根据文件夹一的布局信息中spanX="1",spanY="1",可知文件夹一的图标在X方向上占了一个单位长度,在Y方向上占了一个单位长度,1×1=1,占一个格子。根据文件夹一上述的布局信息可知,文件夹一的图标在电子设备显示屏幕的主屏上占一个格子,在电子设备显示屏幕的主屏上坐标为X=0,Y=4的格子上进行显示。“类型”表示布局信息对应的类型,类型0表示应用,类型1表示文件夹,类型2表示桌面工具。For another example, according to Screen 0, X="0" Y="4" in the layout information of folder one, it is determined that the coordinates of folder one in the coordinate system corresponding to the main screen of the electronic device display screen are It is displayed on the grid. According to spanX="1" and spanY="1" in the layout information of folder one, it can be seen that the icon of folder one occupies one unit length in the X direction and one unit length in the Y direction. The length, 1×1=1, occupies one grid. According to the above layout information of folder one, the icon of folder one occupies a grid on the main screen of the electronic device display screen, and is displayed on the grid with coordinates X=0 and Y=4 on the main screen of the electronic device display screen. "Type" indicates the type corresponding to the layout information. Type 0 indicates application, type 1 indicates folder, and type 2 indicates desktop tool.
可以理解的是,表2仅做举例说明,不构成任何限制。可以使用其他的形式在所述桌面应用对应的数据库中存储所述基础布局文件中文件夹、应用和桌面工具各自对应的布局信息。It can be understood that Table 2 is only for illustration and does not constitute any limitation. Other forms may be used to store layout information corresponding to folders, applications and desktop tools in the basic layout file in the database corresponding to the desktop application.
需要说明的是,可选地,在解析基础布局文件的过程中,若基础布局文件中一文件夹具有第一属性标识,在存储所述文件夹的布局信息时,将所述文件夹的第一属性标识作为布局信息的一部分,在所述桌面应用对应的数据库中进行存储。在本申请的一些实施例中,如果一文件夹具有第一属性标识,表示该文件夹为空时,可以删除该文件夹,无需在桌面上显示该文件夹对应的图标。It should be noted that, optionally, during the process of parsing the basic layout file, if a folder in the basic layout file has a first attribute identifier, when storing the layout information of the folder, the third attribute of the folder is An attribute identifier is stored in the database corresponding to the desktop application as part of the layout information. In some embodiments of the present application, if a folder has a first attribute identifier, indicating that the folder is empty, the folder can be deleted without displaying the icon corresponding to the folder on the desktop.
例如,第一属性标识包含参数app-id的参数值,电子设备在解析基础布局文件时,识别文件夹中参数app-id是否具有对应的参数值,若一文件夹中参数app-id具有对应的参数值(如A),确定该文件夹具有第一属性标识;若一文件夹中参数app-id对应的参数值为空(参数app-id不存在对应的参数值)时,确定该文件夹不具有第一属性标识。或者,在另一种实现中,app-id为1,是具有第一属性标识,app-id为0,是不具有第一属性标识。以上第一属性标识的具体表现形式,仅为举例说明,不构成任何限制。For example, the first attribute identifier includes the parameter value of the parameter app-id. When parsing the basic layout file, the electronic device identifies whether the parameter app-id in the folder has a corresponding parameter value. If the parameter app-id in a folder has a corresponding parameter value, parameter value (such as A), determine that the folder has the first attribute identifier; if the parameter value corresponding to the parameter app-id in a folder is empty (the parameter app-id does not have a corresponding parameter value), determine that the file The clip does not have a first attribute identifier. Or, in another implementation, the app-id is 1, which means it has the first attribute identifier, and the app-id is 0, which means it does not have the first attribute identifier. The specific expression forms of the above first attribute identifier are only examples and do not constitute any limitation.
在本申请实施例中,基础布局文件中文件夹的第一属性标识可以是电子设备出厂前就标注完成的。在本申请的另一些实施例中,可以基于电子设备的厂商预先设置的显示规则,在解析基础布局文件时,为符合第一属性标识要求的文件夹添加预设显示表示,从而得到带有第一属性标识的文件夹。In this embodiment of the present application, the first attribute identifier of the folder in the basic layout file may be marked before the electronic device leaves the factory. In other embodiments of the present application, based on the display rules preset by the manufacturer of the electronic device, when parsing the basic layout file, a preset display representation can be added to the folder that meets the first attribute identification requirement, thereby obtaining the An attribute identifying the folder.
本申请实施例中不对参数值的具体形式进行限制,可以为数值、字母或特殊符号,不同文件夹第一属性标识可以相同,也可以不同。In the embodiment of this application, the specific form of the parameter value is not limited. It can be a numerical value, a letter or a special symbol. The first attribute identifiers of different folders can be the same or different.
在所述桌面应用对应的数据库中存储第一属性标识的位置与存储布局信息的位置一致。示例性的,文件夹的第一属性标识可以存储至在所述桌面应用对应的数据库中该文件夹的布局信息中。在本申请的一些实施例中,电子设备可以在解析基础布局文件中的布局信息之前,解析基础布局文件中的第一属性标识。本申请实施例中,对解析基础布局文件中的第一属性标识的时机不做任何限制。在本申请的一些实施例中,可以将同一文件夹的布局信息、类型标识和第一属性标识作为一条记录在桌面应用的数据库中存储。The location where the first attribute identifier is stored in the database corresponding to the desktop application is consistent with the location where layout information is stored. For example, the first attribute identifier of the folder may be stored in the layout information of the folder in the database corresponding to the desktop application. In some embodiments of the present application, the electronic device may parse the first attribute identifier in the basic layout file before parsing the layout information in the basic layout file. In the embodiment of the present application, there is no restriction on the timing of parsing the first attribute identifier in the basic layout file. In some embodiments of the present application, the layout information, type identifier and first attribute identifier of the same folder can be stored as a record in the database of the desktop application.
例如,如表3所述,在解析基础布局文件的过程中,若电子设备确定基础布局文件中文件夹一和文件夹二具有第一属性标识时,在所述桌面应用对应的数据库中文件夹一和文件夹二各自对应的存储区域存储第一属性标识(A),使得文件夹一和文件夹二的布局信息、类型标识和第一属性标识作为一条记录在桌面应用的数据库中存储。For example, as described in Table 3, during the process of parsing the basic layout file, if the electronic device determines that folder one and folder two in the basic layout file have the first attribute identifier, the folder in the database corresponding to the desktop application The corresponding storage areas of folder one and folder two store the first attribute identifier (A), so that the layout information, type identifier and first attribute identifier of folder one and folder two are stored as one record in the database of the desktop application.
表3table 3
102、解析预装包中的布局文件。在本申请的一些实施例中,电子设备可以在解析完基础布局文件后,解析预装包的布局文件。可以理解的是,预装包中包括预装对象和布局文件。预装对象可以包括应用和应用文件夹,应用文件夹可以包含大应用文件夹和小应用文件夹。102. Parse the layout file in the pre-installed package. In some embodiments of the present application, the electronic device may parse the layout file of the pre-installed package after parsing the basic layout file. It can be understood that the pre-installed package includes pre-installed objects and layout files. Preinstalled objects can include applications and application folders, and application folders can include large application folders and small application folders.
预装包的布局文件与预装对象存在对应关系。预装包的布局文件用于指示所述电子设备的桌面包含的预装对象,可以用于对预装包中预装对象的布局进行说明。布局文件中可以包含多个预装对象对应的布局信息。一个电子设备的预装包的布局文件中包括至少一个应用文件夹对应的布局信息。每个应用文件夹对应一个或多个应用,包括所述一个或多个应用对应的布局信息。一个应用文件夹对应的多个应用在电子设备显示屏幕上进行显示时,是在同一个文件夹中进行显示。可以理解的是,若一应用在预装包对应的布局文件中是直接显示该应用对应的布局信息时,可以确定该应用是直接以应用图标的形式在电子设备显示屏幕上进行显示也就是说,该应用是直接用一个格子在电子设备显示屏幕上进行显示;若一应用在预装包对应的布局文件中不是直接显示该应用对应的布局信息,为一应用文件夹对应的应用时,可以确定该应用不是直接以应用图标的形式在电子设备显示屏幕上进行显示,是在电子设备显示屏幕上的所述应用文件夹对应的显示区域内进行显示,也就是说,该应用不是直接用一个格子在电子设备显示屏幕上进行显示。There is a corresponding relationship between the layout file of the preinstalled package and the preinstalled object. The layout file of the preinstalled package is used to indicate the preinstalled objects contained in the desktop of the electronic device, and can be used to describe the layout of the preinstalled objects in the preinstalled package. The layout file can contain layout information corresponding to multiple pre-installed objects. The layout file of a preinstalled package of an electronic device includes layout information corresponding to at least one application folder. Each application folder corresponds to one or more applications, including layout information corresponding to the one or more applications. When multiple applications corresponding to one application folder are displayed on the display screen of the electronic device, they are displayed in the same folder. It can be understood that if an application directly displays the layout information corresponding to the application in the layout file corresponding to the pre-installed package, it can be determined that the application is directly displayed on the display screen of the electronic device in the form of an application icon. That is to say , the application is directly displayed on the display screen of the electronic device using a grid; if an application does not directly display the layout information corresponding to the application in the layout file corresponding to the pre-installed package, but it is an application corresponding to an application folder, you can It is determined that the application is not directly displayed on the display screen of the electronic device in the form of an application icon, but is displayed in the display area corresponding to the application folder on the display screen of the electronic device. That is to say, the application is not directly displayed using an application icon. The grid is displayed on the display screen of the electronic device.
例如,预装包的布局文件中包含应用文件夹(如文件夹四)对应的布局信息,文件夹四中对应应用七、应用八,文件夹四中包括应用七、应用八各自对应的布局信息。图5为本申请实施例提供的一种图标显示的场景示意图。如图5所示,应用七和应用八不是直接以应用图标的形式在电子设备显示屏幕上进行显示,是在文件夹四对应的显示区域内进行显示。For example, the layout file of the preinstalled package contains the layout information corresponding to the application folder (such as folder four). Folder four corresponds to application seven and application eight. Folder four includes the layout information corresponding to application seven and application eight. . Figure 5 is a schematic diagram of an icon display scene provided by an embodiment of the present application. As shown in Figure 5, applications seven and eight are not directly displayed on the display screen of the electronic device in the form of application icons, but are displayed in the display area corresponding to folder four.
在本申请的一些实施例中,电子设备解析进入定制场景后的预装包中的布局文件时,若识别到布局文件中的应用,在所述桌面应用对应的数据库中存储所述应用对应的布局信息。可以将所述应用对应的布局信息存储在所述桌面应用对应的数据库中,如存储在基础布局文件中布局信息之后的位置。In some embodiments of the present application, when the electronic device parses the layout file in the pre-installed package after entering the customized scene, if an application in the layout file is identified, the application corresponding to the desktop application is stored in the database. layout information. The layout information corresponding to the application may be stored in a database corresponding to the desktop application, for example, in a position after the layout information in the basic layout file.
例如,桌面应用解析电子设备进入定制场景后的预装包中的布局文件时,若识别到布局文件中的应用6,如表4所示(表4所示的实施例以表3所示的实施例为基础),在所述桌面应用对应的数据库中存储基础布局文件中布局信息之后的位置,存储所述应用对应的布局信息。For example, when the desktop application parses the layout file in the pre-installed package after the electronic device enters the customized scene, if application 6 in the layout file is identified, as shown in Table 4 (the embodiment shown in Table 4 is shown in Table 3 Based on the embodiment), the location after the layout information in the basic layout file is stored in the database corresponding to the desktop application, and the layout information corresponding to the application is stored.
表4Table 4
需要说明的是,预装包的布局文件中应用(应用文件夹)对应的布局信息不包含显示页面、显示坐标和显示大小。将预装包的布局文件中应用(应用文件夹)对应的布局信息存储至桌面应用对应的数据库之前,可以根据桌面应用对应的数据库中当前存储的布局信息,确定应用(应用文件夹)对应的显示页面和显示坐标。例如,根据桌面应用对应的数据库中当前存储的布局信息,确定存储的布局信息中最后一个对象对应的显示页面和显示坐标。根据最后一个对象的显示页面和显示坐标,确定应用(应用文件夹)对应的显示页面和显示坐标。例如,如表4所示,最后一个对象为应用五,应用五的显示页面为screen="1",显示坐标为X=2,Y=1,显示大小为一个格子,确定应用6的显示页面为screen="1",显示坐标为X=0,Y=2。根据预设布局规则,确定应用6对应的显示大小。应用的默认显示大小为一个格子,所以确定应用6对应的显示大小为“spanX=1,spanY=1”。可以理解的是,若存储的布局信息中最后一个对象对应的显示位置为当前显示页面(当前显示屏)最后一个格子,确定应用(应用文件夹)在下一显示页面(下一显示屏)第一个格子上进行显示。It should be noted that the layout information corresponding to the application (application folder) in the layout file of the pre-installed package does not include the display page, display coordinates and display size. Before storing the layout information corresponding to the application (application folder) in the layout file of the pre-installed package to the database corresponding to the desktop application, the layout information corresponding to the application (application folder) can be determined based on the layout information currently stored in the database corresponding to the desktop application. Display page and display coordinates. For example, based on the layout information currently stored in the database corresponding to the desktop application, the display page and display coordinates corresponding to the last object in the stored layout information are determined. Based on the display page and display coordinates of the last object, determine the display page and display coordinates corresponding to the application (application folder). For example, as shown in Table 4, the last object is application five, the display page of application five is screen="1", the display coordinates are X=2, Y=1, the display size is one grid, determine the display page of application 6 For screen="1", the display coordinates are X=0, Y=2. Determine the display size corresponding to application 6 according to the preset layout rules. The default display size of an application is one grid, so the display size corresponding to application 6 is determined to be "spanX=1, spanY=1". It can be understood that if the display position corresponding to the last object in the stored layout information is the last grid of the current display page (current display screen), it is determined that the application (application folder) is the first on the next display page (next display screen) displayed on the grid.
在解析预装包的布局文件的过程中,若布局文件中一应用文件夹具有第一属性标识,在存储所述应用文件夹的布局信息时,将所述应用文件夹的第一属性标识作为布局信息的一部分,在桌面应用对应的数据库中进行存储。关于应用文件夹的第一属性标识的一些具体说明可以参见上文中对基础布局文件中文件夹的第一属性标识的相关说明,在此不再赘述。During the process of parsing the layout file of the pre-installed package, if an application folder in the layout file has a first attribute identifier, when storing the layout information of the application folder, the first attribute identifier of the application folder is used as Part of the layout information is stored in the database corresponding to the desktop application. For some specific descriptions about the first attribute identifier of the application folder, please refer to the above related description of the first attribute identifier of the folder in the basic layout file, which will not be described again here.
预装包的布局文件中布局信息类型的确认方法可以参见上文中对基础布局文件中布局信息的类型确认方法,在此不做任何赘述。确认布局信息的类型之后,会将布局信息的类型对应的类型标识存储至桌面应用对应的数据库。存储布局信息的类型对应的类型标识的方法可参见上文中对基础布局文件中存储布局信息的类型对应的类型标识方法,在此不做赘述。For the method of confirming the type of layout information in the layout file of the pre-installed package, please refer to the method of confirming the type of layout information in the basic layout file mentioned above, and will not be described in detail here. After confirming the type of layout information, the type identifier corresponding to the type of layout information will be stored in the database corresponding to the desktop application. For the method of type identification corresponding to the type of layout information stored, please refer to the type identification method corresponding to the type of layout information stored in the basic layout file mentioned above, and will not be described in detail here.
可以理解的是步骤102与步骤101的具体实施方式类似,只是预装包中布局文件中没有包含基础布局文件中包括的一些信息(如显示页面、显示坐标和显示大小),对预装包中布局文件进行解析的过程与对基础布局文件进行解析的过程基本一致,所以步骤102的一些具体实施方式可以参见对步骤101的相关描述,在此不再赘述。It can be understood that the specific implementation of step 102 is similar to step 101, except that the layout file in the pre-installed package does not contain some information included in the basic layout file (such as display page, display coordinates and display size). The process of parsing the layout file is basically the same as the process of parsing the basic layout file. Therefore, for some specific implementation methods of step 102, please refer to the relevant description of step 101, which will not be described again here.
103,确定预装包的布局文件中是否存在与存储的布局信息对应的文件夹相同的应用文件夹。103. Determine whether the same application folder as the folder corresponding to the stored layout information exists in the layout file of the preinstalled package.
示例性地,解析预装包的布局文件中的对象时,确定解析到的对象是否为应用文件夹。如果是应用文件夹,确定基础布局文件中是否包含该文件夹。例如,确定存储的布局信息中是否一文件夹与当前解析到的应用文件夹相同。For example, when parsing the object in the layout file of the preinstalled package, determine whether the parsed object is an application folder. If it is an application folder, determine whether the folder is included in the base layout file. For example, it is determined whether a folder in the stored layout information is the same as the currently parsed application folder.
可以根据文件名,确定预装包的布局文件中是否存在与基础布局文件中一文件夹相同的应用文件夹。若布局文件中一应用文件夹与存储的基础布局文件一文件夹的文件名相同,确定该应用文件夹与基础布局文件中的这一文件夹相同,即确定安装包的布局文件中存在与基础布局文件中一文件夹相同的应用文件夹。You can determine whether the layout file of the preinstalled package contains the same application folder as a folder in the basic layout file based on the file name. If the file name of an application folder in the layout file is the same as the folder of the stored basic layout file, make sure that the application folder is the same as the folder in the basic layout file, that is, make sure that the layout file of the installation package contains the same file name as the basic layout file. Layout files in a folder identical to the application folder.
若存储的基础布局文件的文件夹中没有与所述应用文件夹相同的文件夹,将所述应用文件夹直接存储至所述桌面应用对应的数据库中。例如,如表5所示(表5所示的实施例是以表3所示的实施例为基础),若存储的基础布局文件的文件夹中没有文件夹与解析到的应用文件夹(如文件夹四,文件夹四包括应用七和应用八)相同,将文件夹四对应的布局文件和文件夹四中应用对应的布局文件(应用七和应用八各自对应的布局文件)直接存储在所述桌面应用对应的数据库中、存储基础布局文件中布局信息之后的位置,其中文件夹四与应用七、应用八相关联,电子设备开机后会在文件夹四对应的显示区域中显示应用七和应用八。If the folder of the stored basic layout file does not have the same folder as the application folder, the application folder is directly stored in the database corresponding to the desktop application. For example, as shown in Table 5 (the embodiment shown in Table 5 is based on the embodiment shown in Table 3), if there is no folder in the folder of the stored basic layout file that matches the parsed application folder (such as Folder four (folder four includes application seven and application eight) is the same. The layout file corresponding to folder four and the layout file corresponding to the application in folder four (the layout files corresponding to application seven and application eight) are directly stored in the In the database corresponding to the desktop application, the location after the layout information in the basic layout file is stored, in which folder four is associated with application seven and application eight. After the electronic device is turned on, applications seven and eight will be displayed in the display area corresponding to folder four. Application eight.
表5table 5
若预装包的布局文件中存在与存储的基础布局文件中一文件夹相同的应用文件夹,执行104,将所述应用文件夹的布局信息存储至所述文件夹对应的存储区域。可以将所述应用文件夹中的应用对应的布局信息存储至所述文件夹对应的目录下。例如,若存储的基础布局文件的文件夹中文件夹三与所述应用文件夹相同,将所述应用文件夹三中的应用(应用九和应用十)对应的布局信息存储至文件夹三对应的存储区域,如表6所示(表6所示的实施例是以表3所示的实施例为基础)。其中文件夹三与应用九、应用十相关联,电子设备开机后会在文件夹三对应的显示区域中显示应用九和应用十。图6为本申请实施例提供的一种图标显示的场景示意图,如图6所示,应用九和应用十不是直接以应用图标的形式在电子设备显示屏幕上进行显示,是在文件夹三对应的显示区域内进行显示应用九和应用十。If the layout file of the pre-installed package contains an application folder that is the same as a folder in the stored basic layout file, execution 104 is performed to store the layout information of the application folder in a storage area corresponding to the folder. Layout information corresponding to the applications in the application folder may be stored in a directory corresponding to the folder. For example, if folder three in the folder of the stored basic layout file is the same as the application folder, store the layout information corresponding to the applications (application nine and application ten) in the application folder three to the corresponding folder three. The storage area is as shown in Table 6 (the embodiment shown in Table 6 is based on the embodiment shown in Table 3). Folder three is associated with application nine and application ten. After the electronic device is turned on, application nine and application ten will be displayed in the display area corresponding to folder three. Figure 6 is a schematic diagram of an icon display scene provided by an embodiment of the present application. As shown in Figure 6, application nine and application ten are not directly displayed on the display screen of the electronic device in the form of application icons, but are displayed in folder three corresponding to Application nine and application ten are displayed in the display area.
表6Table 6
也就是说,当解析到预装包的布局文件中一为应用的对象时,直接将应用对应的布局信息存储至桌面应用对应的数据库。当解析到预装包的布局文件中一为应用文件夹的对象时,确定存储的布局信息中是否包含与所述应用文件夹相同的文件夹。如果有,将所述应用文件夹的布局信息(包括应用文件夹中应用对应的布局信息)直接存储至数据库中所述文件夹对应的存储区域,无需另外在数据库中确定一存储区域存储应用文件夹对应的布局信息;否则,直接将所述应用文件夹对应的布局信息(应用文件夹对应的布局信息、应用文件夹中应用对应的布局信息)存储在所述桌面应用对应的数据库中,如存储基础布局文件中布局信息之后的位置。That is to say, when an application object is parsed in the layout file of the pre-installed package, the layout information corresponding to the application is directly stored in the database corresponding to the desktop application. When an object that is an application folder is parsed in the layout file of the preinstalled package, it is determined whether the stored layout information contains the same folder as the application folder. If so, the layout information of the application folder (including the layout information corresponding to the application in the application folder) is directly stored in the storage area corresponding to the folder in the database, without the need to additionally determine a storage area in the database to store application files. The layout information corresponding to the folder; otherwise, the layout information corresponding to the application folder (the layout information corresponding to the application folder, the layout information corresponding to the application in the application folder) is directly stored in the database corresponding to the desktop application, such as The location after which layout information in the base layout file is stored.
105,桌面应用解析完所述预装包后,确定在所述桌面应用对应的数据库中存储的文件夹中是否有不包含应用的空文件夹。105. After the desktop application parses the pre-installed package, determine whether there is an empty folder that does not contain an application in the folder stored in the database corresponding to the desktop application.
桌面应用对应的数据库中存储的文件夹为用于构建电子设备的桌面的目标文件夹,下面简称为目标文件夹。也就是说,所述目标文件夹为基础布局文件和预装包中需要存储至桌面应用对应的数据库的文件夹。所述目标文件夹可以在电子设备的桌面上进行显示。目标文件夹是根据基础布局文件中的文件夹和预装包的布局文件中的应用文件夹确定的,也就是根据基础对象中的文件夹和预装对象中的文件夹确定的,可以是基础对象中的文件夹,也可以是预装对象中的文件夹。如上文所述,若基础对象中的一文件夹与预装对象中的一应用文件夹相同,将所述应用文件夹的布局信息,存储至所述文件夹对应的目录下,并将存储所述布局信息后的文件夹确定为目标文件夹。或者,若基础对象中的一文件夹与预装对象中的应用文件夹都不相同,将所述文件夹确定为目标文件夹。或者,若预装对象中的一应用文件夹与基础对象中的文件夹都不相同,将所述应用文件夹确定为目标文件夹。The folder stored in the database corresponding to the desktop application is the target folder used to build the desktop of the electronic device, hereinafter referred to as the target folder. That is to say, the target folder is a folder in the basic layout file and the pre-installed package that needs to be stored in the database corresponding to the desktop application. The target folder may be displayed on the desktop of the electronic device. The target folder is determined based on the folder in the basic layout file and the application folder in the layout file of the pre-installed package, that is, based on the folder in the basic object and the folder in the pre-installed object. It can be the basic A folder in an object, or a folder in a preinstalled object. As mentioned above, if a folder in the basic object is the same as an application folder in the pre-installed object, the layout information of the application folder is stored in the directory corresponding to the folder, and all stored The folder after the above layout information is determined as the target folder. Or, if a folder in the base object is different from the application folder in the pre-installed object, the folder is determined as the target folder. Or, if an application folder in the pre-installed object is different from the folder in the base object, the application folder is determined as the target folder.
若一目标文件夹不包含应用,说明初始预装包中该目标文件夹对应的应用,不被进入的定制场景的预装策略允许,所以电子设备进入定制场景后的预装包中,不包含该目标文件夹,也不包含该目标文件夹对应的应用。由于初始预装包中存在该目标文件夹,在基础布局文件存在该目标文件夹对应的文件夹,而进入定制场景的预装包中不包含该目标文件夹,所以导致在桌面应用对应的数据库中存储的文件夹中出现不包含应用的空文件夹。If a target folder does not contain an application, it means that the application corresponding to the target folder in the initial pre-installed package is not allowed by the pre-installation policy of the customized scene entered, so the pre-installed package after the electronic device enters the customized scene does not include The target folder also does not contain the application corresponding to the target folder. Since the target folder exists in the initial pre-installed package, the folder corresponding to the target folder exists in the basic layout file, and the pre-installed package entering the customized scenario does not contain the target folder, so the database corresponding to the desktop application is not included. An empty folder containing no apps appears in the folder stored in .
在本申请的一些实施方式中,可以通过判断目标文件夹中是否包含应用对应的布局信息,确定所述目标文件夹是否为不包含应用的空文件夹。若一目标文件夹中不包含应用对应的布局信息,确定所述目标文件夹是不包含应用的空文件夹;若一目标文件夹中包含应用对应的布局信息,确定所述目标文件夹不是不包含应用的空文件夹。In some implementations of the present application, it can be determined whether the target folder is an empty folder that does not contain an application by determining whether the target folder contains layout information corresponding to the application. If a target folder does not contain layout information corresponding to an application, it is determined that the target folder is an empty folder that does not contain an application; if a target folder contains layout information corresponding to an application, it is determined that the target folder is not empty. An empty folder containing the application.
若桌面应用对应的数据库中存储的文件夹中没有不包含应用的空文件夹,直接基于桌面应用对应的数据库生成电子设备的桌面。If there is no empty folder that does not contain an application in the folder stored in the database corresponding to the desktop application, the desktop of the electronic device is directly generated based on the database corresponding to the desktop application.
若在所述桌面应用对应的数据库中存储的文件夹中有不包含应用的空文件夹,执行106,确定不包含应用的空文件夹是否具有第一属性标识。If there is an empty folder that does not contain the application in the folder stored in the database corresponding to the desktop application, execute 106 to determine whether the empty folder that does not contain the application has the first attribute identifier.
若一不包含应用的空文件夹具有第一属性标识,执行106,删除所述空文件夹,并调整所述空文件夹后记录的布局信息中的坐标。通过调整,使得所述空文件夹之后的对象(应用或文件夹)在桌面显示的位置依次前移,前移的距离为所述空文件夹对应的显示大小。所述空文件夹之后的对象为在桌面应用的数据库中,存储在所述空文件夹之后的文件夹或应用。若所述空文件夹对应的显示大小为一个格子,调整所述空文件夹后记录的对象的布局信息中的坐标,使得所述空文件夹后记录的对象在桌面上的显示位置依次前移一个格子对应的距离。可以基于调整后的数据库中的布局信息,生成电子设备的桌面。If an empty folder that does not contain an application has the first attribute identifier, execute 106 to delete the empty folder and adjust the coordinates in the layout information recorded after the empty folder. Through the adjustment, the objects (applications or folders) after the empty folder are sequentially moved forward in the desktop display position, and the distance moved forward is the display size corresponding to the empty folder. The objects after the empty folder are folders or applications stored after the empty folder in the database of the desktop application. If the display size corresponding to the empty folder is one grid, adjust the coordinates in the layout information of the objects recorded behind the empty folder so that the display positions of the objects recorded behind the empty folder on the desktop move forward in sequence. The distance corresponding to one grid. The desktop of the electronic device can be generated based on the adjusted layout information in the database.
删除所述空文件夹包括删除所述空文件夹对应的布局信息。桌面应用的数据库是按照电子设备的桌面排列顺序存储对象的布局信息,删除所述空文件夹对应的布局信息之后,所述空文件夹之前的对象(应用或文件夹)和所述空文件夹之后的对象(应用或文件夹)的显示位置之间就存在所述空文件夹的显示大小对应的空位。所以在删除所述空文件夹的布局信息之后,调整桌面应用的数据库中所述空文件夹对应的布局信息之后记载的布局信息中的显示坐标,使得所述空文件夹之后的对象(应用或文件夹)在桌面上的显示位置依次前移,前移的距离为所述空文件夹对应的显示大小。Deleting the empty folder includes deleting layout information corresponding to the empty folder. The database of the desktop application stores the layout information of objects according to the desktop arrangement order of the electronic device. After deleting the layout information corresponding to the empty folder, the objects (applications or folders) before the empty folder and the empty folder There is a gap corresponding to the display size of the empty folder between the display positions of subsequent objects (applications or folders). Therefore, after deleting the layout information of the empty folder, adjust the display coordinates in the layout information recorded after the layout information corresponding to the empty folder in the database of the desktop application, so that the object (application or application) after the empty folder The display position of the folder) on the desktop is sequentially moved forward, and the distance moved forward is the display size corresponding to the empty folder.
在本申请的一些实施例中,文件夹“游戏”具有第一属性标识,当文件夹“游戏”为空(文件夹“游戏”中不包含应用)时,可以在数据库中删除文件夹“游戏”,并调整文件夹“游戏”后记录的布局信息中的坐标,使得文件夹“游戏”之后的对象(应用或文件夹)在桌面显示的位置依次前移,前移的距离为所述空文件夹对应的显示大小。In some embodiments of the present application, the folder "Game" has a first attribute identifier. When the folder "Game" is empty (the folder "Game" does not contain applications), the folder "Game" can be deleted from the database. ", and adjust the coordinates in the layout information recorded after the folder "Game", so that the objects (applications or folders) after the folder "Game" are moved forward in sequence on the desktop display by a distance of the space The display size corresponding to the folder.
例如,如表6所示,确定文件夹二为不包含应用的空文件夹且具有第一属性标识,删除表6中的文件夹二,并调整文件夹二后记录的布局信息中的坐标,使得文件夹二之后的对象在桌面显示的位置依次前移文件夹二的显示大小对应的距离、文件夹二的显示大小为一个格子,移动后的数据库如表7所示。如表7所示,删除文件夹二后,应用三前移了一个格子,坐标由(2,0)变为了(1,0);应用四前移了一个格子,坐标由(0,1)变为了(2,0);文件夹三前移了一个格子,坐标由(1,1)变为了(0,1),由于应用九和应用十的显示区域在文件3对应的显示区域内,所以文件夹二的删除对应用九和应用十的影响较少,所以应用九和应用十的位置可以不变;应用五前移了一个格子,坐标由(2,1)变为了(1,1)。For example, as shown in Table 6, determine that folder two is an empty folder that does not contain applications and has the first attribute identifier, delete folder two in Table 6, and adjust the coordinates in the layout information recorded after folder two, The objects after folder two are moved forward on the desktop by a distance corresponding to the display size of folder two, and the display size of folder two is one grid. The moved database is shown in Table 7. As shown in Table 7, after deleting folder two, application three moved one grid forward, and the coordinates changed from (2, 0) to (1, 0); application four moved one grid forward, and the coordinates changed from (0, 1) changed to (2, 0); folder three moved forward by one grid, and the coordinates changed from (1, 1) to (0, 1). Since the display area of application nine and application ten is within the display area corresponding to file 3, Therefore, the deletion of folder two has less impact on application nine and application ten, so the positions of application nine and application ten can remain unchanged; application five is moved forward by one grid, and the coordinates change from (2, 1) to (1, 1 ).
表7Table 7
根据移动后的数据库生成电子设备的桌面。例如,图7为本申请实施例提供的一种电子设备显示界面的场景示意图,根据表7生成图6所示的桌面,图7仅示出第一屏的桌面,其他屏的桌面未示出。为了体现根据移动后的布局信息生成电子设备的桌面带来的效果,可以比对如图8所示的未将文件夹二后记录的布局信息依次前移、仅根据数据库生成电子设备的桌面的示意图,图8仅示出第一屏的桌面,其他屏的桌面未示出。通过调整文件夹二后记录的布局信息中的坐标,使得文件夹二之后的对象(应用或文件夹)在桌面显示的位置依次前移文件夹二的显示大小对应的距离,使得在文件夹二对应的显示位置上不会出现空位。The desktop of the electronic device is generated according to the moved database. For example, Figure 7 is a schematic diagram of a scene of an electronic device display interface provided by an embodiment of the present application. The desktop shown in Figure 6 is generated according to Table 7. Figure 7 only shows the desktop of the first screen, and the desktops of other screens are not shown. . In order to reflect the effect of generating the desktop of the electronic device based on the moved layout information, you can compare the results of generating the desktop of the electronic device based on the database only without moving the layout information recorded after folder 2 as shown in Figure 8. Schematic diagram, Figure 8 only shows the desktop of the first screen, and the desktops of other screens are not shown. By adjusting the coordinates in the layout information recorded after folder two, the objects (applications or folders) after folder two are moved forward on the desktop by a distance corresponding to the display size of folder two. There will be no empty space in the corresponding display position.
若一不包含应用的空文件夹不具有第一属性标识,不对所述空文件夹进行处理,直接基于桌面应用对应的数据库生成电子设备的桌面。在本申请的一些实施例中,若一不包含应用的空文件夹不具有第一属性标识,基于桌面应用对应的数据库生成电子设备的桌面时,按照预设规则在所述空文件夹对应的显示位置上,显示所述空文件夹对应的图标。例如,如图9所示,若文件夹二不具有第一属性标识,基于桌面应用对应的数据库生成电子设备的桌面时,按照预设规则在文件夹二对应的显示位置上,显示文件夹二对应的图标。If an empty folder that does not contain an application does not have the first attribute identifier, the empty folder is not processed, and the desktop of the electronic device is directly generated based on the database corresponding to the desktop application. In some embodiments of the present application, if an empty folder that does not contain an application does not have the first attribute identifier, when generating the desktop of the electronic device based on the database corresponding to the desktop application, according to the preset rules, the empty folder corresponding to the In the display position, the icon corresponding to the empty folder is displayed. For example, as shown in Figure 9, if folder two does not have the first attribute identifier, when generating the desktop of the electronic device based on the database corresponding to the desktop application, the folder two is displayed at the display position corresponding to folder two according to the preset rules. corresponding icon.
在本申请的一些实施例中,文件夹“热门推荐”(文件夹“实用工具”)不具有第一属性标识,当文件夹“热门推荐”(文件夹“实用工具”)为空时,不删除文件夹“热门推荐”(文件夹“实用工具”),直接基于桌面应用对应的数据库生成电子设备的桌面。可以按照预设规则,在文件夹“热门推荐”(文件夹“实用工具”)对应的显示位置上,显示文件夹“热门推荐”(文件夹“实用工具”)对应的图标。在本申请的一些实施例中,可以按照预设推荐规则,在文件夹“热门推荐”(文件夹“实用工具”)对应的图标的显示区域内显示至少一个推荐应用控件,所述推荐应用控件用于辅助用户下载待推荐应用,所述推荐应用控件包括待下载应用的图标。例如,文件夹“热门推荐”的显示区域内可以显示推荐应用控件“控件A和控件B”,控件A用于辅助用户下载应用A,控件A包括应用A的图标,例如,当用户点击控件A时,可以跳转至应用A的下载界面;控件B用于辅助用户下载应用B,控件B包括应用B的图标,例如,当用户点击控件B时,可以跳转至应用B的下载界面。In some embodiments of the present application, the folder "Popular Recommendations" (folder "Utilities") does not have the first attribute identifier. When the folder "Popular Recommendations" (folder "Utilities") is empty, it does not Delete the folder "Popular Recommendations" (the folder "Utilities") and directly generate the desktop of the electronic device based on the database corresponding to the desktop application. According to the preset rules, the icon corresponding to the folder "Popular Recommendations" (the folder "Utilities") can be displayed at the display position corresponding to the folder "Popular Recommendations" (the folder "Utilities"). In some embodiments of the present application, at least one recommended application control can be displayed in the display area of the icon corresponding to the folder "Popular Recommendations" (the folder "Utilities") according to the preset recommendation rules. The recommended application control Used to assist users in downloading applications to be recommended, the recommended application control includes icons of applications to be downloaded. For example, the display area of the folder "Popular Recommendations" can display the recommended application controls "Control A and Control B". Control A is used to assist the user in downloading application A. Control A includes the icon of application A. For example, when the user clicks control A When you click on Control B, you can jump to the download interface of Application A; Control B is used to assist the user in downloading Application B. Control B includes the icon of Application B. For example, when the user clicks on Control B, you can jump to the download interface of Application B.
需要说明的是,本申请实施例的步骤101和步骤102的执行顺序不受任何限定,可以先执行步骤102在执行步骤101。It should be noted that the execution order of step 101 and step 102 in the embodiment of the present application is not subject to any limitation. Step 102 may be executed first and then step 101.
上述实施例,可以在智能终端进入相应定制场景后的预装包的布局文件与预先设置的基础布局文件不对应的情况下进行调整,使得生成的桌面上不会出现空位,提高了桌面管理的准确率。The above embodiment can be adjusted when the layout file of the pre-installed package after the smart terminal enters the corresponding customized scene does not correspond to the preset basic layout file, so that there will be no empty space on the generated desktop, and the efficiency of desktop management will be improved. Accuracy.
图10为本申请实施例提供的另一种桌面管理方法的流程示意图。所述方法应用于电子设备。如10图所示,所述方法包括:Figure 10 is a schematic flowchart of another desktop management method provided by an embodiment of the present application. The method is applied to electronic equipment. As shown in Figure 10, the method includes:
201,解析基础布局文件,在所述桌面应用对应的数据库中存储所述基础布局文件中文件夹对应的布局信息。201. Parse the basic layout file, and store the layout information corresponding to the folder in the basic layout file in the database corresponding to the desktop application.
在本申请的一些实施例中,在解析基础布局文件的过程中,若确定基础布局文件中一文件夹具有第二属性标识,在所述桌面应用对应的数据库中存储所述第二属性标识。In some embodiments of the present application, during the process of parsing the basic layout file, if it is determined that a folder in the basic layout file has a second attribute identifier, the second attribute identifier is stored in the database corresponding to the desktop application.
第二属性标识表示该文件夹需要在桌面上进行显示,即使该文件夹中不包含任何应用。在本申请实施例中,基础布局文件中文件夹的第二属性标识可以是从电子设备的厂商出厂前就标注完成的。在本申请的另一些实施例中,桌面应用可以基于电子设备的厂商预先设置的显示规则,在解析基础布局文件时,对符合第二属性标识的文件夹进行标注,从而得到带有第二属性标识的文件夹。The second attribute identifier indicates that the folder needs to be displayed on the desktop, even if the folder does not contain any applications. In this embodiment of the present application, the second attribute identifier of the folder in the basic layout file may be marked by the manufacturer of the electronic device before it leaves the factory. In other embodiments of the present application, the desktop application can mark the folders that match the second attribute identifier when parsing the basic layout file based on the display rules preset by the manufacturer of the electronic device, thereby obtaining the file with the second attribute. Identified folder.
202,解析预装包中的布局文件。202. Parse the layout file in the preinstalled package.
203,确定预装包的布局文件中是否存在与存储的布局信息对应的文件夹相同的应用文件夹。203. Determine whether the same application folder as the folder corresponding to the stored layout information exists in the layout file of the preinstalled package.
若预装包的布局文件中存在与存储的基础布局文件中一文件夹相同的应用文件夹,执行204,将所述应用文件夹的布局信息存储至所述文件夹对应的存储区域。可以将所述应用文件夹中的应用对应的布局信息存储至所述文件夹对应的目录下。If the layout file of the preinstalled package contains an application folder that is the same as a folder in the stored basic layout file, execute 204 to store the layout information of the application folder in a storage area corresponding to the folder. Layout information corresponding to the applications in the application folder may be stored in a directory corresponding to the folder.
205,桌面应用解析完所述预装包后,确定在所述桌面应用对应的数据库中存储的文件夹中是否有不包含应用的空文件夹。205. After the desktop application parses the pre-installed package, determine whether there is an empty folder that does not contain an application in the folder stored in the database corresponding to the desktop application.
若桌面应用对应的数据库中存储的文件夹中没有不包含应用的空文件夹,直接基于桌面应用对应的数据库生成电子设备的桌面。If there is no empty folder that does not contain an application in the folder stored in the database corresponding to the desktop application, the desktop of the electronic device is directly generated based on the database corresponding to the desktop application.
若在所述桌面应用对应的数据库中存储的文件夹中有不包含应用的空文件夹,执行206,确定不包含应用的空文件夹是否具有第二属性标识。若一不包含应用的空文件夹不具有第二属性标识,执行207,删除所述空文件夹,并将调整所述空文件夹后记录的布局信息中的坐标。通过调整,使得所述空文件夹之后的对象(应用或文件夹)在桌面显示的位置依次前移,前移的距离为所述空文件夹对应的显示大小。If there is an empty folder that does not contain the application in the folder stored in the database corresponding to the desktop application, execute 206 to determine whether the empty folder that does not contain the application has the second attribute identifier. If an empty folder that does not contain an application does not have the second attribute identifier, execute 207 to delete the empty folder, and adjust the coordinates in the layout information recorded after the empty folder. Through the adjustment, the objects (applications or folders) after the empty folder are sequentially moved forward in the desktop display position, and the distance moved forward is the display size corresponding to the empty folder.
若一不包含应用的空文件夹具有第二属性标识,不对所述空文件夹进行处理,直接基于桌面应用对应的数据库生成电子设备的桌面。在本申请的一些实施例中,若一不包含应用的空文件夹具有第二属性标识,基于桌面应用对应的数据库生成电子设备的桌面时,按照预设规则在所述空文件夹对应的显示位置上,显示所述空文件夹对应的图标。生成所述空文件夹对应的图标的一些具体实施方式,可以参见上文中对图3的相关描述,在此不再赘述。If an empty folder that does not contain an application has a second attribute identifier, the empty folder is not processed, and the desktop of the electronic device is directly generated based on the database corresponding to the desktop application. In some embodiments of the present application, if an empty folder that does not contain an application has a second attribute identifier, when generating the desktop of the electronic device based on the database corresponding to the desktop application, the display corresponding to the empty folder is performed according to preset rules. In the location, the icon corresponding to the empty folder is displayed. For some specific implementation methods of generating icons corresponding to the empty folder, please refer to the relevant description of Figure 3 above, and will not be described again here.
图10所示的201-208的一些具体实施方式,可以参见对图3所示实施例的相关描述,在此不再赘述。For some specific implementations of 201-208 shown in Figure 10, please refer to the relevant description of the embodiment shown in Figure 3, and will not be described again here.
上述实施例,可以在智能终端进入定制场景后预装包与预先设置的基础布局文件不对应的情况下进行调整,使得生成的桌面上不会出现空位,提高了桌面管理的准确率。图11为本申请实施例提供的一种电子设备100的结构示意图。参考图11,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serialbus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The above embodiment can be adjusted when the pre-installed package does not correspond to the preset basic layout file after the smart terminal enters the customized scene, so that there will be no empty spaces on the generated desktop, and the accuracy of desktop management is improved. FIG. 11 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. Referring to FIG. 11 , the electronic device 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , a battery 142 , and an antenna 1 , Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processing unit (NPU), etc.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I1C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I1C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.
I1C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。I2S接口可以用于音频通信。The I1C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (displayserial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 . The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。The charging management module 140 is used to receive charging input from the charger.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN),蓝牙(bluetooth,BT),全球导航卫星系统(globalnavigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide information for use on the electronic device 100 including wireless local area networks (WLAN), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), and frequency modulation (frequency modulation, FM). , near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为服务异常提醒的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor that serves exception reminders and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。在本申请实施例中,内部存储器121也可以称为内存。The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). In this embodiment of the present application, the internal memory 121 may also be called memory.
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。The external memory interface 120 can be used to connect an external non-volatile memory to expand the storage capacity of the electronic device 100 . The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备100平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of theUSA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以陀螺仪传感器180B的定位,更新显示界面上显示的桌面卡片。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . In some embodiments, the desktop card displayed on the display interface can be updated based on the positioning of the gyroscope sensor 180B.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备100姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100 and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
温度传感器180J用于检测温度。Temperature sensor 180J is used to detect temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多帧卡。所述多帧卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple frame cards can be inserted into the same SIM card interface 195 at the same time. The types of the multi-frame cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备100上运行时,使得电子设备100执行上述相关方法步骤实现上述实施例中的桌面管理方法。This embodiment also provides a computer storage medium that stores computer instructions. When the computer instructions are run on the electronic device 100, the electronic device 100 causes the electronic device 100 to execute the above related method steps to implement the desktop management in the above embodiment. method.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的桌面管理方法。This embodiment also provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the desktop management method in the above embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的桌面管理方法。In addition, embodiments of the present application also provide a device. This device may be a chip, a component or a module. The device may include a connected processor and a memory. The memory is used to store computer execution instructions. When the device is running, The processor can execute computer execution instructions stored in the memory, so that the chip executes the desktop management method in each of the above method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic equipment, computer storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the corresponding methods provided above. The beneficial effects of the method will not be repeated here.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the above description of the embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined. Either it can be integrated into another device, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separate. The component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium , including several instructions to cause a device (which can be a microcontroller, a chip, etc.) or a processor to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified. Modifications or equivalent substitutions may be made without departing from the spirit and scope of the technical solution of the present application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210589302.1A CN116048324B (en) | 2022-05-26 | 2022-05-26 | Desktop management method, electronic equipment and storage media |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210589302.1A CN116048324B (en) | 2022-05-26 | 2022-05-26 | Desktop management method, electronic equipment and storage media |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116048324A CN116048324A (en) | 2023-05-02 |
CN116048324B true CN116048324B (en) | 2023-10-20 |
Family
ID=86118667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210589302.1A Active CN116048324B (en) | 2022-05-26 | 2022-05-26 | Desktop management method, electronic equipment and storage media |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116048324B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118642795A (en) * | 2024-05-16 | 2024-09-13 | 荣耀终端有限公司 | Layout adjustment method, device and storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011012704A1 (en) * | 2009-07-30 | 2011-02-03 | Xaga Network | Application management system |
CN103995696A (en) * | 2014-04-21 | 2014-08-20 | 深圳天珑无线科技有限公司 | Custom-built system and method of software package of mobile terminal |
CN104915268A (en) * | 2015-06-24 | 2015-09-16 | 上海海漾软件技术有限公司 | Desktop layout storage and recovery method and device thereof, terminal equipment and system |
CN105354022A (en) * | 2015-10-16 | 2016-02-24 | 华为技术有限公司 | Generation method and device of page layout file |
CN106021473A (en) * | 2016-05-18 | 2016-10-12 | 惠州Tcl移动通信有限公司 | Method and system for displaying size of folder of mobile terminal, and mobile terminal |
CN106126040A (en) * | 2016-06-30 | 2016-11-16 | 北京奇虎科技有限公司 | The batch processing method of a kind of icon, device and mobile terminal |
CN107071180A (en) * | 2017-04-26 | 2017-08-18 | 努比亚技术有限公司 | Desktop customization layout method, mobile terminal and computer-readable recording medium |
CN110187925A (en) * | 2019-05-30 | 2019-08-30 | 努比亚技术有限公司 | A kind of desktop pretrigger control method, equipment and computer readable storage medium |
CN110347455A (en) * | 2019-05-24 | 2019-10-18 | 华为技术有限公司 | A kind of quick interface arrangement method and terminal |
CN110427240A (en) * | 2019-07-30 | 2019-11-08 | 努比亚技术有限公司 | Intelligence desktop management method, wearable device and computer readable storage medium |
CN113727333A (en) * | 2021-07-31 | 2021-11-30 | 荣耀终端有限公司 | Downloading method and system of customized application |
CN113986076A (en) * | 2021-10-26 | 2022-01-28 | 维沃移动通信有限公司 | Icon display control method and device, electronic equipment and storage medium |
CN114327701A (en) * | 2020-09-29 | 2022-04-12 | 华为技术有限公司 | Layout method of application interface and electronic equipment |
CN114444000A (en) * | 2020-10-30 | 2022-05-06 | 华为技术有限公司 | Page layout file generation method and device, electronic equipment and readable storage medium |
-
2022
- 2022-05-26 CN CN202210589302.1A patent/CN116048324B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011012704A1 (en) * | 2009-07-30 | 2011-02-03 | Xaga Network | Application management system |
CN103995696A (en) * | 2014-04-21 | 2014-08-20 | 深圳天珑无线科技有限公司 | Custom-built system and method of software package of mobile terminal |
CN104915268A (en) * | 2015-06-24 | 2015-09-16 | 上海海漾软件技术有限公司 | Desktop layout storage and recovery method and device thereof, terminal equipment and system |
CN105354022A (en) * | 2015-10-16 | 2016-02-24 | 华为技术有限公司 | Generation method and device of page layout file |
CN106021473A (en) * | 2016-05-18 | 2016-10-12 | 惠州Tcl移动通信有限公司 | Method and system for displaying size of folder of mobile terminal, and mobile terminal |
CN106126040A (en) * | 2016-06-30 | 2016-11-16 | 北京奇虎科技有限公司 | The batch processing method of a kind of icon, device and mobile terminal |
CN107071180A (en) * | 2017-04-26 | 2017-08-18 | 努比亚技术有限公司 | Desktop customization layout method, mobile terminal and computer-readable recording medium |
CN110347455A (en) * | 2019-05-24 | 2019-10-18 | 华为技术有限公司 | A kind of quick interface arrangement method and terminal |
CN110187925A (en) * | 2019-05-30 | 2019-08-30 | 努比亚技术有限公司 | A kind of desktop pretrigger control method, equipment and computer readable storage medium |
CN110427240A (en) * | 2019-07-30 | 2019-11-08 | 努比亚技术有限公司 | Intelligence desktop management method, wearable device and computer readable storage medium |
CN114327701A (en) * | 2020-09-29 | 2022-04-12 | 华为技术有限公司 | Layout method of application interface and electronic equipment |
CN114444000A (en) * | 2020-10-30 | 2022-05-06 | 华为技术有限公司 | Page layout file generation method and device, electronic equipment and readable storage medium |
CN113727333A (en) * | 2021-07-31 | 2021-11-30 | 荣耀终端有限公司 | Downloading method and system of customized application |
CN113986076A (en) * | 2021-10-26 | 2022-01-28 | 维沃移动通信有限公司 | Icon display control method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
智能终端定制之捷径――定制桌面;董智明;;移动通信(第15期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN116048324A (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110134316B (en) | Model training method, emotion recognition method, and related device and equipment | |
CN111078091A (en) | Split screen display processing method and device and electronic equipment | |
WO2021013132A1 (en) | Input method and electronic device | |
WO2021218429A1 (en) | Method for managing application window, and terminal device and computer-readable storage medium | |
CN113961157A (en) | Display interaction system, display method and equipment | |
CN113254409A (en) | File sharing method, system and related equipment | |
CN114115770A (en) | Display control method and related device | |
CN116048358B (en) | Control methods and related devices for suspended balls | |
CN114089932A (en) | Multi-screen display method and device, terminal equipment and storage medium | |
CN115129410B (en) | Desktop wallpaper configuration method and device, electronic equipment and readable storage medium | |
WO2023179123A1 (en) | Bluetooth audio playback method, electronic device, and storage medium | |
CN113380240B (en) | Voice interaction method and electronic device | |
CN116048324B (en) | Desktop management method, electronic equipment and storage media | |
WO2023029916A1 (en) | Annotation display method and apparatus, terminal device, and readable storage medium | |
CN113407300B (en) | Applied manslaughter assessment methods and related equipment | |
CN114945176A (en) | Clipboard access control method, electronic device and storage medium | |
WO2021129453A1 (en) | Screenshot method and related device | |
CN115633114A (en) | Address book letter display method, device and terminal equipment | |
CN114003241A (en) | Interface adaptation display method and system of application program, electronic device and medium | |
CN113867851A (en) | Electronic equipment operation guide information recording method, electronic equipment operation guide information acquisition method and terminal equipment | |
CN116450026B (en) | Method and system for identifying touch operation | |
CN116048681B (en) | Icon display method, electronic device and computer-readable storage medium | |
WO2022166550A1 (en) | Data transmission method and electronic device | |
CN116743921B (en) | Method for displaying number-carrying network number, electronic equipment and storage medium | |
CN116382728B (en) | Propagation name display method and terminal equipment |
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: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |