CN106168966A - A kind of file search method and mobile terminal - Google Patents
A kind of file search method and mobile terminal Download PDFInfo
- Publication number
- CN106168966A CN106168966A CN201610513625.7A CN201610513625A CN106168966A CN 106168966 A CN106168966 A CN 106168966A CN 201610513625 A CN201610513625 A CN 201610513625A CN 106168966 A CN106168966 A CN 106168966A
- Authority
- CN
- China
- Prior art keywords
- file
- search
- file destination
- preset
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例提供了一种文件搜索方法及移动终端。该方法包括:基于移动终端用户对移动终端的文件管理目录中的目标文件项的预设操作,获取目标文件项的属性信息;根据属性信息在文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;当接收到移动终端用户触发的包含目标文件名称的预设搜索操作时,在文件搜索范围中查找符合目标文件名称的一个或多个目标文件项;将一个或多个目标文件项作为搜索结果,提供给移动终端用户。本发明可以较快的确定搜索范围、减少文件搜索时间、并降低文件的搜索步骤和时间以及保证搜索结果的准确度。
Embodiments of the present invention provide a file search method and a mobile terminal. The method includes: obtaining the attribute information of the target file item based on the preset operation of the mobile terminal user on the target file item in the file management directory of the mobile terminal; searching for multiple files that meet the preset search conditions in the file management directory according to the attribute information file items to obtain the file search range; when receiving a preset search operation triggered by a mobile terminal user that includes the target file name, search for one or more target file items that match the target file name in the file search range; set one or more target file items in the file search range; Multiple target file items are provided to the mobile terminal user as search results. The invention can quickly determine the search range, reduce file search time, reduce file search steps and time, and ensure the accuracy of search results.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种文件搜索方法及移动终端。The invention relates to the communication field, in particular to a file search method and a mobile terminal.
背景技术Background technique
目前,随着科技的发展,在越来越多的场景中人们需要使用移动终端来满足各种生活需求。那么随着移动终端内应用程序数量的增加以及使用时间的增长,移动终端内存储的文件也越来越多。为了满足用户对存储文件的查看需求,在现有技术中,会将移动终端(例如手机)内的所有文件以文件目录的方式展现在用户面前,并给用户提供文件名称或是文件大小的两种搜索方式来从文件目录中搜索用户想要查看的目标文件。At present, with the development of science and technology, people need to use mobile terminals to meet various life needs in more and more scenarios. Then, with the increase of the number of application programs in the mobile terminal and the growth of the usage time, more and more files are stored in the mobile terminal. In order to meet the user's viewing requirements for stored files, in the prior art, all files in the mobile terminal (such as a mobile phone) will be displayed in front of the user in the form of a file directory, and the user will be provided with two types of file name or file size. A search method to search for the target file that the user wants to view from the file directory.
其中,对于通过文件名称来查找目标文件的方案来说,由于在搜索时对文件名称并不会完全匹配,这样会使搜索出来的结果很多。因此,用户还需要从这些搜索结果中再进一步搜索,来得到自己想要的文件。此外,在大多数情况中,用户所输入的文件名称与该文件在文件目录中存储的名称(例如,有些网上下载或者生成的文件名都是乱的)并不一致,这样就文件搜索带来了巨大阻碍,造成无法搜索。而且,在通过文件名称进行搜索时,需要对目录中所有的文件进行遍历查找。显然,这种搜索方案不仅搜索时间长、搜索准确度低,而且还会存在无法搜索的问题。Wherein, for the solution of finding the target file through the file name, since the file name will not be completely matched during the search, many search results will be obtained. Therefore, the user also needs to search further from these search results to obtain the file he wants. In addition, in most cases, the file name entered by the user is not consistent with the name stored in the file directory (for example, some online downloads or generated file names are all messed up), so the file search brings Huge hindrance, making it impossible to search. Moreover, when searching by file name, it is necessary to search through all files in the directory. Obviously, this search scheme not only takes a long time to search and has low search accuracy, but also has the problem of being unable to search.
而对于通过文件大小来查找目标文件的方案来说,在应用时需要为用户提供几个文件大小范围进行选择,例如1M~10M、11M~50M等范围选项。用户需要通过手动选择文件大小范围(例如11M~50M),这样可以搜索到11M~50M范围内的所有文件;然后再人工的从这个范围内的文件中选择自己需要查看的文件。而且,用户在查找之前必须要知道所要查找的文件属于那个文件大小范围内,但是大多情况下,用户并不了解所要查看的文件的大小。显然,这种搜索方案存在着操作步骤繁琐、查找准确性低的问题。As for the solution of finding the target file by file size, it is necessary to provide the user with several file size ranges to choose from during application, such as 1M-10M, 11M-50M and other range options. The user needs to manually select the file size range (for example, 11M to 50M), so that all files in the range of 11M to 50M can be searched; and then manually select the file to be viewed from the files in this range. Moreover, the user must know that the file to be searched belongs to the file size range before searching, but in most cases, the user does not know the size of the file to be viewed. Obviously, this search scheme has the problems of cumbersome operation steps and low search accuracy.
针对现有技术中的文件搜索方案所存在的搜索时间长、搜索准确度低以及搜索步骤繁琐的问题,目前尚未提出有效的解决方案。Aiming at the problems of long search time, low search accuracy and cumbersome search steps existing in the file search scheme in the prior art, no effective solution has been proposed so far.
发明内容Contents of the invention
本发明实施例提供一种文件搜索方法及移动终端,以解决现有技术中的文件搜索方案所存在的搜索时间长、搜索准确度低以及搜索步骤繁琐的问题。Embodiments of the present invention provide a file search method and a mobile terminal to solve the problems of long search time, low search accuracy and cumbersome search steps in file search solutions in the prior art.
第一方面,本发明实施例提供了一种文件搜索方法,应用于移动终端,所述方法包括:In a first aspect, an embodiment of the present invention provides a file search method applied to a mobile terminal, the method comprising:
基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,获取所述目标文件项的属性信息;Acquiring attribute information of the target file item based on a preset operation performed by the mobile terminal user on the target file item in the file management directory of the mobile terminal;
根据所述属性信息在所述文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;Searching for a plurality of file items meeting preset search conditions in the file management directory according to the attribute information to obtain a file search range;
当接收到所述移动终端用户触发的包含目标文件名称的预设搜索操作时,在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项;When a preset search operation including a target file name triggered by the mobile terminal user is received, search for one or more target file items matching the target file name in the file search scope;
将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。The one or more target file items are provided to the mobile terminal user as a search result.
第二方面,本发明实施例还提供了一种移动终端,所述移动终端包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, the mobile terminal includes:
获取模块,用于基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,获取所述目标文件项的属性信息;An acquisition module, configured to acquire attribute information of the target file item based on a preset operation performed by the mobile terminal user on the target file item in the file management directory of the mobile terminal;
第一查找模块,用于根据所述属性信息在所述文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;A first search module, configured to search for a plurality of file items meeting preset search conditions in the file management directory according to the attribute information, and obtain a file search range;
第二查找模块,用于当接收到所述移动终端用户触发的包含目标文件名称的预设搜索操作时,在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项;The second search module is configured to search for one or more target file items matching the target file name in the file search scope when receiving a preset search operation triggered by the mobile terminal user and including the target file name ;
第一提供模块,用于将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。The first providing module is configured to provide the one or more target file items as search results to the mobile terminal user.
这样,本发明实施例通过借助于用户所选择的文件项的属性信息来按照预设搜索条件对目录中的文件进行查找,这样可以较快的确定搜索范围,减少文件搜索时间;然后,在接收到基于目标文件名称的搜索操作时,再在确定的搜索范围中进行目标文件名称的文件项的搜索查找,大大降低了文件的搜索步骤和时间;而且,会基于目标文件项的属性信息来确定搜索范围,这样可以进一步保证搜索结果的准确度。In this way, the embodiment of the present invention searches the files in the directory according to the preset search conditions by means of the attribute information of the file item selected by the user, so that the search range can be determined quickly and the file search time can be reduced; then, when receiving When it comes to the search operation based on the target file name, search for the file item of the target file name in the determined search range, which greatly reduces the search steps and time of the file; moreover, it will be determined based on the attribute information of the target file item Search range, which can further ensure the accuracy of the search results.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1是本发明一种实施例的文件搜索方法的流程图;Fig. 1 is the flowchart of the file search method of an embodiment of the present invention;
图2是本发明另一种实施例的文件搜索方法的流程图;Fig. 2 is the flowchart of the file search method of another embodiment of the present invention;
图3是本发明一种实施例的移动终端的框图;Fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
图4是本发明另一种实施例的移动终端的框图;Fig. 4 is a block diagram of a mobile terminal according to another embodiment of the present invention;
图5是本发明又一种实施例的移动终端的框图;Fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention;
图6是本发明一种实施例的移动终端的结构示意图。Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参照图1,示出了本发明一个实施例的文件搜索方法的流程图,应用于移动终端,所述方法具体可以包括如下步骤:Referring to FIG. 1, it shows a flow chart of a file search method according to an embodiment of the present invention, which is applied to a mobile terminal. The method may specifically include the following steps:
步骤101,基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,获取所述目标文件项的属性信息;Step 101, based on the preset operation of the mobile terminal user on the target file item in the file management directory of the mobile terminal, acquire the attribute information of the target file item;
其中,当用户需要对移动终端(例如手机)的文件管理目录中的目标文件进行查看时,为了从众多的文件和文件夹中搜索到想要查看的目标文件,用户可以对文件管理目录中与目标文件的修改时间相近的文件项进行预设操作(例如向右滑动该文件项),其中,在文件管理目录中不仅会显示文件和文件夹的名称还会显示它们的最后修改时间。那么在接收到该预设操作后,就可以对该目标文件项的属性信息进行获取。Wherein, when the user needs to check the target file in the file management directory of the mobile terminal (such as a mobile phone), in order to search for the target file to be viewed from numerous files and folders, the user can search the file management directory with the A file item whose modification time is close to the target file performs a preset operation (for example, sliding the file item to the right), wherein, in the file management directory, not only the names of the files and folders but also their last modification time will be displayed. Then, after receiving the preset operation, the attribute information of the target file item can be acquired.
需要注意的是,这里的预设操作虽然示意为向右滑动操作,但是本发明对于该预设操作的具体形式并不作具体限定,它可以是任意方向的滑动操作,也可以是点击操作。也就是说,该预设操作的具体操作形式可以根据具体实例中的具体应用场景和应用需求进行灵活调整和配置。It should be noted that although the preset operation here is illustrated as a right sliding operation, the present invention does not specifically limit the specific form of the preset operation, which may be a sliding operation in any direction or a click operation. That is to say, the specific operation form of the preset operation can be flexibly adjusted and configured according to specific application scenarios and application requirements in specific instances.
步骤102,根据所述属性信息在所述文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;Step 102, searching for a plurality of file items meeting the preset search conditions in the file management directory according to the attribute information to obtain a file search range;
其中,可以根据该目标文件项的属性信息来在文件管理目录中众多的文件中查找符合预设搜索条件的多个文件项,这里的文件项的类型既包括文件也包括文件夹,从而确定文件搜索范围。其中,该预设搜索条件与目录中文件项的属性信息相关联。Among them, according to the attribute information of the target file item, a plurality of file items meeting preset search conditions can be searched among numerous files in the file management directory, where the types of file items include both files and folders, thereby determining the file search range. Wherein, the preset search condition is associated with the attribute information of the file item in the directory.
步骤103,当接收到所述移动终端用户触发的包含目标文件名称的预设搜索操作时,在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项;Step 103, when receiving the preset search operation triggered by the mobile terminal user and including the target file name, search for one or more target file items matching the target file name in the file search scope;
在确定了文件搜索范围后,如果用户发出了对某一个文件名称的文件或文件夹的搜索请求,那么就可以在该文件搜索范围中查找符合该文件名称的一个或多个目标文件项。After the file search range is determined, if the user sends a search request for a file or folder with a certain file name, then one or more target file items matching the file name can be found in the file search range.
步骤104,将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。Step 104, providing the one or more target file items as search results to the mobile terminal user.
其中,符合该文件名称的文件项可以是多个(这里在查找时会进行文件名称的近似匹配,例如匹配度在70%~100%之间的文件项为符合文件名称的目标文件项)。所以,最后就可以将一个或多个目标文件项作为搜索结果提供给移动终端用户,例如显示在移动终端的当前界面内。Wherein, there may be multiple file items matching the file name (here, an approximate match of the file name will be performed during the search, for example, a file item with a matching degree between 70% and 100% is a target file item matching the file name). Therefore, finally, one or more target file items can be provided to the mobile terminal user as search results, for example, displayed in the current interface of the mobile terminal.
这样,本发明实施例通过用户所选择的文件项的属性信息来按照预设搜索条件对目录中的文件进行查找,这样可以较快的确定搜索范围,减少文件搜索时间;然后,在接收到基于目标文件名称的搜索操作时,再在确定的搜索范围中进行目标文件名称的文件项的搜索查找,大大降低了文件的搜索步骤和时间;而且,会基于目标文件项的属性信息来确定搜索范围,这样可以进一步保证搜索结果的准确度。In this way, the embodiment of the present invention uses the attribute information of the file item selected by the user to search the files in the directory according to the preset search conditions, so that the search range can be determined quickly and the file search time is reduced; When searching for the target file name, search for the file item of the target file name in the determined search range, which greatly reduces the search steps and time of the file; moreover, the search range will be determined based on the attribute information of the target file item , which can further guarantee the accuracy of the search results.
参照图2,示出了本发明另一个实施例的文件搜索方法的流程图,应用于移动终端,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flowchart of a file search method according to another embodiment of the present invention, which is applied to a mobile terminal and may specifically include the following steps:
步骤201,基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,判断所述目标文件项的类型为文件夹类型还是文件类型。Step 201, based on the mobile terminal user's preset operation on the target file item in the file management directory of the mobile terminal, determine whether the type of the target file item is a folder type or a file type.
其中,例如用户对文件管理目录中的某个文件项进行了点击操作(即预设操作),那么就可以判断被点击的文件项的类型为文件还是文件夹。Wherein, for example, if the user clicks on a certain file item in the file management directory (ie, preset operation), then it can be determined whether the type of the clicked file item is a file or a folder.
步骤202,当所述目标文件项为文件夹类型时,获取所述目标文件项的最后修改时间信息。Step 202, when the target file item is a folder type, acquire last modification time information of the target file item.
其中,这里可以确定下面再进行搜索时,锁定的范围为文件夹类型。Among them, it can be determined here that when searching next, the locked range is the folder type.
步骤203,计算所述文件管理目录中,各个文件夹的最后修改时间与所述目标文件项的最后修改时间的第一时间差值;将所述第一时间差值小于第一预设时间阈值的多个目标文件夹,确定为所述文件搜索范围。Step 203, calculating a first time difference between the last modification time of each folder in the file management directory and the last modification time of the target file item; making the first time difference less than a first preset time threshold The multiple target folders that determine the scope of the file search.
其中,可以查询该被点击的文件夹的最后修改时间,然后从文件管理目录中,查找文件夹的最后修改时间与被点击的文件夹的最后修改时间之间的时间差值小于第一预设时间阈值(例如30天)的多个目标文件夹,最后将这些目标文件夹确定为文件搜索范围。Among them, the last modification time of the clicked folder can be queried, and then from the file management directory, the time difference between the last modification time of the folder and the last modification time of the clicked folder is less than the first preset Multiple target folders with a time threshold (for example, 30 days), and finally determine these target folders as the file search scope.
步骤204,将文件名称搜索界面显示在所述移动终端的主界面上,接收所述移动终端用户在所述文件名称搜索界面触发的预设搜索操作;Step 204, displaying the file name search interface on the main interface of the mobile terminal, and receiving a preset search operation triggered by the user of the mobile terminal on the file name search interface;
其中,可以将精度搜索界面显示在手机的主界面上,在精度搜索界面中设置有搜索框、键盘和搜索按钮。用户通过键盘在搜索框中输入想要搜索的文件夹的名称(如果用户大概知道目标文件夹的名称),而如果用户不知道目标文件夹的名称,则可以不输入。然后,就可以点击精度搜索界面中的搜索按钮来触发预设搜索操作。Wherein, the precision search interface can be displayed on the main interface of the mobile phone, and a search box, a keyboard and a search button are set in the precision search interface. The user enters the name of the folder to be searched in the search box through the keyboard (if the user probably knows the name of the target folder), and if the user does not know the name of the target folder, it does not need to input. Then, you can click the search button in the precise search interface to trigger the preset search operation.
步骤205,在接收到所述预设搜索操作时,检测所述文件名称搜索界面是否存在用户输入的目标文件名称。Step 205, upon receiving the preset search operation, detect whether there is a target file name input by the user in the file name search interface.
其中,在用户点击搜索按钮后,就可以在接收到所述预设搜索操作时,检测所述文件名称搜索界面的输入框中是否有用户输入的内容。Wherein, after the user clicks the search button, when the preset search operation is received, it may be detected whether there is content input by the user in the input box of the file name search interface.
步骤206,若检测到所述文件名称搜索界面中存在用户输入的目标文件名称,则在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项,并将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。Step 206, if it is detected that there is a target file name input by the user in the file name search interface, then search for one or more target file items that match the target file name in the file search range, and save the one or more target file items One or more target file items are provided to the mobile terminal user as search results.
其中,如果用户在精度搜索界面输入了所要搜索的目标文件夹的名称,那么就可以从文件搜索范围中查找文件夹的名称与目标文件夹的名称匹配度在例如70%以上的文件夹,并作为搜索结果展示在手机的界面上。Wherein, if the user enters the name of the target folder to be searched in the precision search interface, then it is possible to search for folders whose name matches the name of the target folder at, for example, more than 70% of folders from the file search scope, and Displayed on the interface of the mobile phone as search results.
借助于本发明上述实施例的技术方案,本发明实施例能够在用户选择文件夹类型的文件项进行搜索时,基于文件夹的最后修改时间快速确定文件搜索范围,减少搜索时间;并且,还提供了文件名称输入的精度搜索途径,从而能够进一步提高搜索结果的准确度,用户体验感好。With the help of the technical solutions of the above-mentioned embodiments of the present invention, the embodiments of the present invention can quickly determine the file search range based on the last modification time of the folder when the user selects a file item of the folder type to search, reducing the search time; and also provides The precision search method for file name input is improved, so that the accuracy of search results can be further improved, and the user experience is good.
此外,在另一个实施例中,在上述图2所示的实施例中,如果在步骤201之后,用户所点击的目标文件项的类型为文件,那么在获取目标文件项的属性时,就需要获取被点击文件的文件种类、最后修改时间信息以及文件大小。In addition, in another embodiment, in the above-mentioned embodiment shown in FIG. 2, if after step 201, the type of the target file item clicked by the user is a file, then when obtaining the attribute of the target file item, it is necessary to Obtain the file type, last modification time information and file size of the clicked file.
然后,在文件管理目录中,基于目标文件的上述属性信息中的任意一种或几种来确定文件搜索范围,文件搜索范围的具体确定方式可以包括以下至少之一:Then, in the file management directory, the file search scope is determined based on any one or several of the above-mentioned attribute information of the target file, and the specific manner of determining the file search scope may include at least one of the following:
方式一:查找文件种类与所述目标文件项的文件种类相同的多个目标文件,得到所述文件搜索范围。其中,文件种类可以包括图片、音乐、视频、文档、压缩包、安装包以及其他种类,这里的其他种类为列举的上述种类之外的所有文件种类。例如用户在目录中点击或滑动的是一首音乐格式的文件,那么所确定的文件搜索范围即由所有音乐格式的文件构成。Way 1: Search for multiple target files whose file type is the same as that of the target file item, and obtain the file search range. Wherein, the file types may include pictures, music, videos, documents, compressed packages, installation packages, and other types, and the other types here refer to all file types other than the above-mentioned types listed. For example, what the user clicks or slides in the directory is a file in music format, then the determined file search range consists of files in all music formats.
方式二:在所述文件管理目录中,计算各个文件的最后修改时间与所述目标文件项的最后修改时间的第二时间差值;将所述第二时间差值小于第二预设时间阈值的多个目标文件,确定为所述文件搜索范围。Mode 2: In the file management directory, calculate a second time difference between the last modification time of each file and the last modification time of the target file item; make the second time difference less than a second preset time threshold of multiple target files, determine the scope of the file search.
方式三:在所述文件管理目录中,计算各个文件的文件大小与所述目标文件项的文件大小的文件大小差值;将所述文件大小差值小于预设文件大小阈值(例如50M或者是一个阈值范围20M~50M)的多个目标文件,确定为所述文件搜索范围。Mode three: in the file management directory, calculate the file size difference between the file size of each file and the file size of the target file item; make the file size difference less than a preset file size threshold (such as 50M or Multiple target files within a threshold range of 20M-50M) are determined as the file search range.
也就是说,在不同的实施例中,当用户所选择的目标文件项为文件类型时,在确定文件搜索范围时,可以以上述方式中的一种来确定,也可以任意选择上述两种方式来确定,这同时满足所选择的两种方式的文件构成文件搜索范围,还可以选择上述三种方式来确定,这时目录中同时满足上述三种方式的文件构成文件搜索范围。That is to say, in different embodiments, when the target file item selected by the user is a file type, when determining the file search range, it can be determined in one of the above-mentioned ways, and the above-mentioned two ways can also be selected arbitrarily. The files satisfying the two selected methods constitute the file search range, and the above three methods can also be selected to determine. At this time, the files in the directory satisfying the above three methods simultaneously constitute the file search range.
那么在确定了文件搜索范围后,就可以将文件名称搜索界面显示在手机的主界面上,接收所述移动终端用户在所述文件名称搜索界面触发的预设搜索操作;在接收到所述预设搜索操作时,检测所述文件名称搜索界面是否存在用户输入的目标文件名称;若检测到所述文件名称搜索界面中不存在用户输入的目标文件名称,则将所述文件搜索范围中的一个或多个文件项作为所述搜索结果,提供给所述移动终端用户。Then, after the file search range is determined, the file name search interface can be displayed on the main interface of the mobile phone, and the preset search operation triggered by the mobile terminal user on the file name search interface can be received; When setting the search operation, detect whether there is a target file name input by the user in the file name search interface; if it is detected that there is no target file name input by the user in the file name search interface, then one of the file search ranges One or more file items are provided to the mobile terminal user as the search result.
也就是说,如果用户不清楚所要索索的文件的名称,那么在精度搜索界面未在输入框输入任何内容而直接点击搜索按钮,那么本发明实施例的方法就可以将上述确定的文件搜索范围内的一个或多个文件作为搜索结果提供给用户。That is to say, if the user does not know the name of the file to be searched, and directly clicks the search button without inputting any content in the input box on the precision search interface, then the method in the embodiment of the present invention can search the files determined above. One or more files of , are provided to the user as search results.
借助于本发明上述实施例的技术方案,本发明实施例能够在用户选择文件类型的文件项时,通过文件种类、文件最后修改时间以及文件大小中的任意一种或几种来确定文件搜索范围,提供了文件搜索范围的多种确定方式,从而能够使得应用的搜索场景更加多样和灵活;此外,在精度搜索时,如果用户未输入文件名称,则会直接将文件搜索范围中的文件确定为搜索结果,大大简化了搜索步骤,减少了搜索时间,用户体验感好。With the help of the technical solutions of the above-mentioned embodiments of the present invention, the embodiments of the present invention can determine the file search range by any one or several of the file type, the last modification time of the file, and the file size when the user selects a file item of the file type , providing multiple ways to determine the file search range, which can make the search scenarios of the application more diverse and flexible; in addition, in the precision search, if the user does not enter a file name, the file in the file search range will be directly determined as The search results greatly simplifies the search steps, reduces the search time, and provides a good user experience.
参照图3,示出了本发明一个实施例的移动终端的框图。图3所示移动终端300包括:Referring to FIG. 3, a block diagram of a mobile terminal according to an embodiment of the present invention is shown. The mobile terminal 300 shown in Figure 3 includes:
获取模块301,用于基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,获取所述目标文件项的属性信息;An acquisition module 301, configured to acquire the attribute information of the target file item based on the preset operation of the mobile terminal user on the target file item in the file management directory of the mobile terminal;
第一查找模块302,用于根据所述属性信息在所述文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;The first search module 302 is configured to search for a plurality of file items meeting preset search conditions in the file management directory according to the attribute information, and obtain a file search range;
第二查找模块303,用于当接收到所述移动终端用户触发的包含目标文件名称的预设搜索操作时,在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项;The second search module 303 is configured to search for one or more target files matching the target file name in the file search range when receiving a preset search operation triggered by the user of the mobile terminal and including the target file name item;
第一提供模块304,用于将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。The first providing module 304 is configured to provide the one or more target file items as search results to the mobile terminal user.
借助于本发明实施例的上述技术方案,本发明实施例通过用户所选择的文件项的属性信息来按照预设搜索条件对目录中的文件进行查找,这样可以较快的确定搜索范围,减少文件搜索时间;然后,在接收到基于目标文件名称的搜索操作时,再在确定的搜索范围中进行目标文件名称的文件项的搜索查找,大大降低了文件的搜索步骤和时间;而且,会基于目标文件项的属性信息来确定搜索范围,这样可以进一步保证搜索结果的准确度。With the help of the above-mentioned technical solution of the embodiment of the present invention, the embodiment of the present invention uses the attribute information of the file item selected by the user to search the files in the directory according to the preset search conditions, so that the search range can be determined quickly and the number of files can be reduced. Search time; then, when receiving a search operation based on the target file name, search for the file item of the target file name in the determined search range, greatly reducing the search steps and time for the file; moreover, based on the target The attribute information of the file item is used to determine the search scope, which can further ensure the accuracy of the search results.
此外,在另一个实施例中,参照图4,所述移动终端还包括:In addition, in another embodiment, referring to FIG. 4, the mobile terminal further includes:
判断模块305,用于判断所述目标文件项的类型为文件夹类型还是文件类型。A judging module 305, configured to judge whether the type of the target file item is a folder type or a file type.
所述获取模块301包括:第一获取子模块3011,用于当所述目标文件项为文件夹类型时,获取所述目标文件项的最后修改时间信息。The acquiring module 301 includes: a first acquiring submodule 3011, configured to acquire the last modification time information of the target file item when the target file item is of folder type.
所述第一查找模块302包括:The first search module 302 includes:
第一计算时间差子模块3021,用于计算所述文件管理目录中,各个文件夹的最后修改时间与所述目标文件项的最后修改时间的第一时间差值;The first calculation time difference sub-module 3021 is used to calculate the first time difference between the last modification time of each folder and the last modification time of the target file item in the file management directory;
第一确定子模块3022,用于将所述第一时间差值小于第一预设时间阈值的多个目标文件夹,确定为所述文件搜索范围。The first determination sub-module 3022 is configured to determine a plurality of target folders whose first time difference is smaller than a first preset time threshold as the file search range.
所述获取模块301还包括:The acquisition module 301 also includes:
第二获取子模块3012,用于当所述目标文件项为文件类型时,获取所述目标文件项的文件种类、最后修改时间信息以及文件大小。The second obtaining sub-module 3012 is configured to obtain the file type, last modification time information and file size of the target file item when the target file item is a file type.
所述第一查找模块302包括:The first search module 302 includes:
第一查找子模块3023,用于在所述文件管理目录中,查找文件种类与所述目标文件项的文件种类相同的多个目标文件,得到所述文件搜索范围。The first search sub-module 3023 is configured to search for multiple target files with the same file type as the target file item in the file management directory to obtain the file search range.
第二计算时间差子模块3024,用于在所述文件管理目录中,计算各个文件的最后修改时间与所述目标文件项的最后修改时间的第二时间差值;The second calculation time difference sub-module 3024 is used to calculate the second time difference between the last modification time of each file and the last modification time of the target file item in the file management directory;
第二确定子模块3025,还用于将所述第二时间差值小于第二预设时间阈值的多个目标文件,确定为所述文件搜索范围。The second determination sub-module 3025 is further configured to determine a plurality of target files whose second time difference is smaller than a second preset time threshold as the file search range.
计算文件差值子模块3026,用于在所述文件管理目录中,计算各个文件的文件大小与所述目标文件项的文件大小的文件大小差值;The file difference calculation sub-module 3026 is used to calculate the file size difference between the file size of each file and the file size of the target file item in the file management directory;
第三确定子模块3027,用于将所述文件大小差值小于预设文件大小阈值的多个目标文件,确定为所述文件搜索范围。The third determination sub-module 3027 is configured to determine a plurality of target files whose file size difference is smaller than a preset file size threshold as the file search range.
显示模块306,用于将文件名称搜索界面显示在所述移动终端的主界面上;A display module 306, configured to display the file name search interface on the main interface of the mobile terminal;
接收模块307,用于接收所述移动终端用户在所述文件名称搜索界面触发的预设搜索操作;A receiving module 307, configured to receive a preset search operation triggered by the mobile terminal user on the file name search interface;
检测模块308,用于在接收到所述预设搜索操作时,检测所述文件名称搜索界面是否存在用户输入的目标文件名称。The detection module 308 is configured to detect whether the target file name input by the user exists in the file name search interface when the preset search operation is received.
所述第二查找模块303,还用于在接收到所述预设搜索操作时,若检测到所述文件名称搜索界面中存在用户输入的目标文件名称,则在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项。The second search module 303 is further configured to, when receiving the preset search operation, if it is detected that there is a target file name input by the user in the file name search interface, then search for a matching file in the file search range. One or more object file entries for the object file name.
第一提供模块304,用于将所述第二查找模块303得到的所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。The first providing module 304 is configured to provide the one or more target file items obtained by the second searching module 303 as search results to the mobile terminal user.
第二提供模块309,用于在接收到所述预设搜索操作时,若检测到所述文件名称搜索界面中不存在用户输入的目标文件名称,则将所述文件搜索范围中的一个或多个文件项作为所述搜索结果,提供给所述移动终端用户。The second providing module 309 is configured to, when receiving the preset search operation, if it is detected that the target file name input by the user does not exist in the file name search interface, one or more of the file search range File items are provided to the mobile terminal user as the search results.
借助于本发明实施例的上述技术方案,本发明实施例能够针对用户选择的目标文件项为文件还是文件夹提供不同的文件搜索范围的确定方案,从而能够在不同的场景实现对不同类型的文件项的多种方式的搜索,提高文件搜索的成功率,减少文件搜索时间。并且,在确定文件搜索范围后,提供文件名称搜索界面来为用户提供文件名称的输入选择,不论用户是否在文件名称搜索界面输入文件名称,本发明实施例的方法都能够给出与之相匹配的搜索结果,不仅简化了搜索步骤,还减少了搜索时间,提高了用户体验。By means of the above-mentioned technical solution of the embodiment of the present invention, the embodiment of the present invention can provide different solutions for determining the scope of file search for the target file item selected by the user, whether it is a file or a folder, so that different types of files can be searched in different scenarios. Items can be searched in multiple ways to improve the success rate of file search and reduce the time of file search. And, after the file search range is determined, a file name search interface is provided to provide the user with an input option for the file name, no matter whether the user enters the file name on the file name search interface, the method in the embodiment of the present invention can provide a matching file name. The search results not only simplify the search steps, but also reduce the search time and improve the user experience.
图5是本发明又一个实施例的移动终端的框图。图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。Fig. 5 is a block diagram of a mobile terminal according to yet another embodiment of the present invention. The mobile terminal 500 shown in FIG. 5 includes: at least one processor 501 , a memory 502 , at least one network interface 504 and a user interface 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 .
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (Direct Rambus RAM, DRRAM). The memory 502 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,获取所述目标文件项的属性信息;根据所述属性信息在所述文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;当接收到所述移动终端用户触发的包含目标文件名称的预设搜索操作时,在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项;将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is configured to manage the directory based on the file management of the mobile terminal by the mobile terminal user. According to the preset operation of the target file item in the target file item, the attribute information of the target file item is obtained; according to the attribute information, in the file management directory, a plurality of file items that meet the preset search conditions are searched to obtain the file search range; When receiving the preset search operation triggered by the user of the mobile terminal and including the name of the target file, search for one or more target file items that match the name of the target file in the file search scope; Target file items are provided to the mobile terminal user as search results.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecific IntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.
对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选地,处理器501还用于:当所述目标文件项为文件夹类型时,获取所述目标文件项的最后修改时间信息。Optionally, the processor 501 is further configured to: when the target file item is a folder type, acquire last modification time information of the target file item.
移动终端500能够实现前述实施例中移动终端实现的借助于用户所选择的文件项的属性信息来按照预设搜索条件对目录中的文件进行查找,这样可以较快的确定搜索范围,减少文件搜索时间;然后,在接收到基于目标文件名称的搜索操作时,再在确定的搜索范围中进行目标文件名称的文件项的搜索查找,大大降低了文件的搜索步骤和时间;而且,会基于目标文件项的属性信息来确定搜索范围,这样可以进一步保证搜索结果的准确度,为避免重复,这里不再赘述。The mobile terminal 500 can realize the search for files in the directory according to the preset search conditions by means of the attribute information of the file item selected by the user in the aforementioned embodiments, so that the search range can be determined quickly and the file search time can be reduced. ; Then, when a search operation based on the target file name is received, the search for the file item of the target file name is carried out in the determined search range, which greatly reduces the search steps and time of the file; moreover, based on the target file item Attribute information to determine the search range, which can further ensure the accuracy of the search results. To avoid repetition, details will not be repeated here.
图6是本发明另一个实施例的移动终端的结构示意图。具体地,图6中的移动终端600可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。Fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in FIG. 6 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端600包括射频(RadioFrequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(WirelessFidelity)模块680和电源690。Mobile terminal 600 in FIG.
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 600 . The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the processor 660 is the control center of the mobile terminal 600, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 621, and calling the software programs and/or modules stored in the second memory 621. The data in the memory 622 executes various functions of the mobile terminal 600 and processes data, so as to monitor the mobile terminal 600 as a whole. Optionally, the processor 660 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于基于移动终端用户对所述移动终端的文件管理目录中的目标文件项的预设操作,获取所述目标文件项的属性信息;根据所述属性信息在所述文件管理目录中,查找符合预设搜索条件的多个文件项,得到文件搜索范围;当接收到所述移动终端用户触发的包含目标文件名称的预设搜索操作时,在所述文件搜索范围中查找符合所述目标文件名称的一个或多个目标文件项;将所述一个或多个目标文件项作为搜索结果,提供给所述移动终端用户。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 621 and/or the data in the second memory 622, the processor 660 is configured to The preset operation of the target file item in the file management directory obtains the attribute information of the target file item; according to the attribute information in the file management directory, search for multiple file items that meet the preset search conditions to obtain the file Search range; when receiving the preset search operation triggered by the mobile terminal user and including the name of the target file, search for one or more target file items that match the name of the target file in the file search range; set the One or more target file items are provided to the mobile terminal user as search results.
可选地,处理器660用于当所述目标文件项为文件夹类型时,获取所述目标文件项的最后修改时间信息。Optionally, the processor 660 is configured to acquire last modification time information of the target file item when the target file item is of a folder type.
可见,本发明实施例能够较快的确定搜索范围,减少文件搜索时间;并再在确定的搜索范围中进行目标文件名称的文件项的搜索查找,大大降低文件的搜索步骤和时间;而且,会基于目标文件项的属性信息来确定搜索范围,这样可以进一步保证搜索结果的准确度,为避免重复,这里不再赘述。It can be seen that the embodiment of the present invention can quickly determine the search range and reduce the file search time; and then search and search for the file item of the target file name in the determined search range, greatly reducing the search steps and time of the file; moreover, it will The search range is determined based on the attribute information of the target file item, which can further ensure the accuracy of the search result. To avoid repetition, details are not repeated here.
本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part 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 invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (22)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610513625.7A CN106168966A (en) | 2016-06-30 | 2016-06-30 | A kind of file search method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610513625.7A CN106168966A (en) | 2016-06-30 | 2016-06-30 | A kind of file search method and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106168966A true CN106168966A (en) | 2016-11-30 |
Family
ID=58065986
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610513625.7A Pending CN106168966A (en) | 2016-06-30 | 2016-06-30 | A kind of file search method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106168966A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109063207A (en) * | 2018-09-17 | 2018-12-21 | 广东电网有限责任公司 | Operation file query method, device and electronic equipment |
| CN110297806A (en) * | 2019-05-15 | 2019-10-01 | 惠州Tcl移动通信有限公司 | Method, intelligent terminal and the storage device of search file |
| CN112328081A (en) * | 2020-11-10 | 2021-02-05 | 珠海格力电器股份有限公司 | File searching method and device, electronic equipment and readable storage medium |
| CN112612754A (en) * | 2020-12-31 | 2021-04-06 | 深圳市大富网络技术有限公司 | File searching method, system, device and computer storage medium |
| CN113468109A (en) * | 2021-06-10 | 2021-10-01 | 北京达佳互联信息技术有限公司 | File management method and device, electronic equipment and storage medium |
| CN113792012A (en) * | 2021-09-17 | 2021-12-14 | 联想(北京)有限公司 | File processing method and device and electronic equipment |
| CN115017105A (en) * | 2022-05-30 | 2022-09-06 | 统信软件技术有限公司 | Searching method, computing device and readable storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105022819A (en) * | 2015-07-15 | 2015-11-04 | 魅族科技(中国)有限公司 | File storage method and apparatus |
| CN105354318A (en) * | 2015-11-13 | 2016-02-24 | 北京金山安全软件有限公司 | File searching method and device |
-
2016
- 2016-06-30 CN CN201610513625.7A patent/CN106168966A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105022819A (en) * | 2015-07-15 | 2015-11-04 | 魅族科技(中国)有限公司 | File storage method and apparatus |
| CN105354318A (en) * | 2015-11-13 | 2016-02-24 | 北京金山安全软件有限公司 | File searching method and device |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109063207A (en) * | 2018-09-17 | 2018-12-21 | 广东电网有限责任公司 | Operation file query method, device and electronic equipment |
| CN110297806A (en) * | 2019-05-15 | 2019-10-01 | 惠州Tcl移动通信有限公司 | Method, intelligent terminal and the storage device of search file |
| CN112328081A (en) * | 2020-11-10 | 2021-02-05 | 珠海格力电器股份有限公司 | File searching method and device, electronic equipment and readable storage medium |
| CN112612754A (en) * | 2020-12-31 | 2021-04-06 | 深圳市大富网络技术有限公司 | File searching method, system, device and computer storage medium |
| CN113468109A (en) * | 2021-06-10 | 2021-10-01 | 北京达佳互联信息技术有限公司 | File management method and device, electronic equipment and storage medium |
| CN113468109B (en) * | 2021-06-10 | 2024-06-11 | 北京达佳互联信息技术有限公司 | File management method and device, electronic equipment and storage medium |
| CN113792012A (en) * | 2021-09-17 | 2021-12-14 | 联想(北京)有限公司 | File processing method and device and electronic equipment |
| CN115017105A (en) * | 2022-05-30 | 2022-09-06 | 统信软件技术有限公司 | Searching method, computing device and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106168966A (en) | A kind of file search method and mobile terminal | |
| EP3598285B1 (en) | Icon processing method and mobile terminal | |
| CN107145348A (en) | A kind of application program split screen processing method and mobile terminal | |
| CN106446048B (en) | A song recommendation method and mobile terminal | |
| CN107562473B (en) | Application display method and mobile terminal | |
| CN107084736A (en) | A kind of air navigation aid and mobile terminal | |
| CN106293705A (en) | A kind of collecting method and mobile terminal | |
| CN107203624A (en) | The single generation method of one kind song and mobile terminal | |
| CN107491278A (en) | A kind of split screen processing method and terminal | |
| CN106776821A (en) | A kind of album creating method and terminal | |
| CN107404577A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
| CN106503179A (en) | A kind of loading method of Webpage and mobile terminal | |
| CN106851001A (en) | A kind of information processing method and mobile terminal | |
| CN106446108B (en) | A method for sharing pictures, mobile terminal and server | |
| CN106886350A (en) | A kind of communication information display method and mobile terminal based on image | |
| CN106372252A (en) | Picture display method and mobile terminal | |
| CN106527937B (en) | Method for adding mobile terminal widget and mobile terminal | |
| CN107632854A (en) | A kind of screenshotss processing method and mobile terminal | |
| CN110532231A (en) | File polling method, file polling device and terminal device | |
| CN106095128A (en) | The character input method of a kind of mobile terminal and mobile terminal | |
| CN106934052B (en) | Media text processing method and mobile terminal | |
| CN106027786B (en) | A search method for record list and mobile terminal | |
| CN107632748A (en) | A kind of information processing method and mobile terminal | |
| CN107179838A (en) | The display methods and mobile terminal of a kind of candidate word | |
| CN106774985A (en) | A kind of literal processing method and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161130 |