CN110532231B - File query method, file query device and terminal equipment - Google Patents

File query method, file query device and terminal equipment Download PDF

Info

Publication number
CN110532231B
CN110532231B CN201910824325.4A CN201910824325A CN110532231B CN 110532231 B CN110532231 B CN 110532231B CN 201910824325 A CN201910824325 A CN 201910824325A CN 110532231 B CN110532231 B CN 110532231B
Authority
CN
China
Prior art keywords
file
query
specified
file type
multimedia database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910824325.4A
Other languages
Chinese (zh)
Other versions
CN110532231A (en
Inventor
李军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910824325.4A priority Critical patent/CN110532231B/en
Publication of CN110532231A publication Critical patent/CN110532231A/en
Application granted granted Critical
Publication of CN110532231B publication Critical patent/CN110532231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Abstract

The application is applicable to the technical field of file query, and provides a file query method, a file query device, a terminal device and a computer readable storage medium, wherein the file query method comprises the following steps: when detecting that a first query statement for querying a multimedia database by a specified application program contains a preset statement, determining a specified file type corresponding to the query; inquiring a preset label corresponding to the specified file type in the multimedia database; acquiring a folder directory of a file with a file type of the specified file type in the multimedia database; merging the preset label and the folder directory to obtain a target directory; returning the target directory to the specified application. By the method, the problem that when some application programs inquire the files of specific types, the classification mode of the inquired files is single can be solved.

Description

File query method, file query device and terminal equipment
Technical Field
The present application relates to the field of file query technologies, and in particular, to a file query method, a file query apparatus, a terminal device, and a computer-readable storage medium.
Background
In some applications, information of a specific type of file (e.g., a picture, a video, a document, etc.) stored in the terminal device may be obtained by querying a multimedia database in the terminal device, so that the information of the specific type of file may be subsequently presented to the user in a form such as a list.
After querying the specific type of file, the application program often queries and classifies the file according to the folder storing the file, so that the user can know the distribution of each file in the folder. The classification mode is single and difficult to expand, and in some application scenes, a more personalized presentation mode cannot be provided for users.
Disclosure of Invention
The embodiment of the application provides a file query method, a file query device, a terminal device and a computer readable storage medium, which can solve the problem that when some application programs query files of specific types, the classification modes of the queried files are single (for example, classification is performed based on folders).
In a first aspect, an embodiment of the present application provides a file query method, including:
when detecting that a first query statement for querying a multimedia database by a specified application program contains a preset statement, determining a specified file type corresponding to the query;
inquiring a preset label corresponding to the specified file type in the multimedia database;
acquiring a folder directory of a file with a file type of the specified file type in the multimedia database;
merging the preset label and the folder directory to obtain a target directory;
returning the target directory to the specified application.
In a second aspect, an embodiment of the present application provides a file querying device, including:
the determining module is used for determining a specified file type corresponding to the query when detecting that a first query statement for querying the multimedia database by a specified application program contains a preset statement;
the query module is used for querying a preset label corresponding to the specified file type in the multimedia database;
the first acquisition module is used for acquiring a folder directory of a file with a file type being the specified file type in the multimedia database;
the second acquisition module is used for combining the preset label and the folder directory to obtain a target directory;
and the processing module is used for returning the target directory to the specified application program.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, a display, and a computer program stored in the memory and executable on the processor, where the processor implements the file query method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the file query method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the file query method described in the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, when a first query statement for a specified application program to query a multimedia database is detected to contain a preset statement, a specified file type corresponding to the query is determined, and the multimedia database is queried, wherein the preset label corresponding to the specified file type can determine the file type which the specified application program wants to query when the specified application program is detected to query the multimedia database for specific content, so as to further execute the operation of querying the multimedia database, wherein the preset label corresponding to the specified file type is operated, and therefore, some labels which are preset for the type of files by a user and other personnel are known; and by combining the preset tag and the folder directory containing the file with the file type of the specified file type to obtain the target directory and returning the target directory to the specified application program, the tag and the folder directory information set by the user can be integrated, and the directory information obtained by the query operation of the application program on the specific file type is expanded, so that the specified application program can provide a more personalized presentation mode for the user in subsequent application, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a file query method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of step S102 according to an embodiment of the present application;
fig. 3 is a schematic diagram of a display interface of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a file query apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile phone to which a file query method according to an embodiment of the present application is applied.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The file query method provided by the embodiment of the application can be applied to terminal devices such as a mobile phone, a tablet personal computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the application does not limit the specific type of the terminal device at all.
Specifically, fig. 1 shows a flowchart of a file query method provided in an embodiment of the present application, where the file query method is applied to a terminal device, and includes:
step S101, when detecting that a first query statement of a specified application program for querying a multimedia database contains a preset statement, determining a specified file type corresponding to the query.
In the embodiment of the present application, the specific application may be set according to an actual application scenario, for example, the specific application may be a social type application, an album, an entertainment type application, and the like.
In some embodiments, the preset statement may indicate a partial query condition of the specified application, for example, the specified application may query folders existing in the multimedia database first and then query files of a specific type in each folder; then, the preset statement may instruct the specified application to query folders existing in the multimedia database, that is, when it is detected that the first query statement for querying the multimedia database by the specified application contains the preset statement, the specified application may be considered to start to perform an operation of querying the multimedia database for a specific type of file.
In the embodiment of the present application, the specified file type may include a document, a picture, a video, an audio, and the like. The specified file type can be determined by the extension of the file, wherein one or more extensions can be used as a specified file type.
Specifically, the determining of the specified file type corresponding to the query may be implemented by specifying a query statement for querying the multimedia database by an application, where the query statement may be a first query statement or another query statement; further, this may be accomplished based on operations performed by a given application prior to querying the multimedia database. For example, a specified file type corresponding to the query may be determined based on a user operation at the specified application.
In some embodiments, the terminal device may monitor in real time whether the first query statement for querying the multimedia database by the specified application contains a preset statement. Of course, in some embodiments, the terminal device may also listen at a certain period.
In some embodiments, the determining, when it is detected that a first query statement for a specific application to query a multimedia database contains a preset statement, a specific file type corresponding to the query includes:
when detecting that a first query statement of a specified application program for querying a multimedia database contains bucket _ id and/or bucket _ display _ name, determining a specified file type corresponding to the query.
The bucket _ id and/or the bucket _ display _ name may be used to determine that the specified application starts to perform an operation of querying a multimedia database for a file of a specific type. The bucket _ id and/or the bucket _ display _ name may be used to identify a folder in the multimedia database, that is, when it is detected that a first query statement for querying the multimedia database by a specific application includes the bucket _ id and/or the bucket _ display _ name, the specific application may be considered to query the folder existing in the multimedia database. At this time, based on the specified file type corresponding to the query, the subsequent further query may be performed, for example, user-defined information of the file of the specified file type is queried by the user, so as to provide a richer and more comprehensive query result for the specified application program.
And step S102, inquiring a preset label corresponding to the specified file type in the multimedia database.
In this embodiment of the application, the preset tag corresponding to the specified file type may be a tag corresponding to a file of which the file type is the specified file type. The preset tag may be pre-identified by a user. Specifically, the user may identify the file of which the file type is the specified file type through the specified application program, or may identify the file through another application program other than the specified application program.
In some embodiments, the execution of step S102 may be performed by the system of the terminal device, rather than by specifying the application itself. At this time, the specific implementation manner of the step may be defined by the system, and is not affected by the designated application program itself, that is, the embodiment may be applied to different designated application programs. Of course, in other embodiments, step S102 may be performed by the designated application itself.
In some embodiments, the preset tag may be saved in the multimedia database in a preset manner, for example, a part of the tag representing the file may be added to the storage structure of the file. In addition, the labels corresponding to the files can be stored in a multimedia database in a list or the like.
As shown in fig. 2, in some embodiments, the step S102 may specifically include:
step S201, replacing the query condition of the first query statement with a query first attribute to a query second attribute to obtain a second query statement, wherein the first attribute identifies a folder in the multimedia database, and the second attribute identifies a preset tag corresponding to the specified file type;
step S202, according to the second query statement, querying a preset label corresponding to the specified file type in the multimedia database.
In this embodiment of the application, the first attribute may be used to identify a folder in the multimedia database, and for example, the first attribute may be a bucket _ id bucket, a display _ name, and/or a number of the folder. And the second attribute may be determined according to a storage manner of the preset tag.
For example, in some embodiments, if the bucket _ id and the bucket _ display _ name may be used to identify a folder in the multimedia database, and the storage structure of the preset tag is predefined as a label number, the second attribute may include a label, the first attribute includes the bucket _ id and the bucket _ display _ name, the query condition in the first query statement may include a SELECT bucket _ id and a bucket _ display _ name, and the query condition in the second query statement may include a SELECT label.
Through step S201 and step S202, the inquiry of the preset label can be realized through simple replacement, the expansibility is better, and the usability is stronger. Moreover, the query mode of the preset label is unified with the query mode of the folder directory, so that the preset label and the folder directory can be conveniently combined in a follow-up mode.
Step S103, acquiring a folder directory of the file with the file type being the specified file type in the multimedia database.
In the embodiment of the present application, the folder directory including the file with the file type as the specified file type may be queried in various ways, for example, the folders included in the multimedia database may be queried, and then it is detected whether each folder includes the file with the file type as the specified file type. Of course, it is also possible to detect a file in the multimedia database whose file type is the specified file type, and determine a folder directory containing files whose file types are the specified file type according to the storage path.
In some embodiments, the obtaining a folder directory of a file in the multimedia database, the file type of which is the specified file type, includes:
inquiring folders contained in the multimedia database according to the first inquiry statement;
and detecting whether each folder contains files with the file types as the specified file types or not so as to obtain a folder directory of the files with the file types as the specified file types in the multimedia database.
The detecting whether each folder contains a file of which the file type is the specified file type may include:
and detecting whether each folder contains a file with the file type as the specified file type, and acquiring the file with the file type as the specified file type in each folder.
In some embodiments, after obtaining the file with the file type of the specified file type in each folder, the information of the queried files with all file types of the specified file type can be returned to the specified application program; and if an instruction for displaying the file with the file type as the specified file type is detected, displaying the inquired files with all file types as the specified file type according to the specified display mode.
And step S104, combining the preset label and the folder directory to obtain a target directory.
In some embodiments of the present application, a storage manner and a form of the preset tag may be preset, and a manner of querying the preset tag may be preset, so that the form of the preset tag obtained by querying and the form of the folder directory are unified, for example, so that the preset tag and the folder directory may be more conveniently merged.
In some embodiments, the merging the preset tag and the folder directory to obtain the target directory includes:
and merging the preset label and the folder directory through MergeCursor to obtain a target directory.
The merge of the target directory and the target directory may be performed by merging the preset tag and the folder directory with the merger, where the merge may be referred to as cursor merge. It can be considered that, in the target directory, the preset tag can be considered as a virtual folder directory.
Step S105, returning the target directory to the specified application program.
It should be noted that, after the specified application program obtains the target directory, whether the target directory is presented or not may depend on the setting of the specified application program, the operation of the user, and other factors.
For example, in some embodiments, it may be that upon detecting that a user clicks a particular virtual key (e.g., a virtual key indicating the addition of a picture, video, document, etc.) in a specified application, the specified application queries the multimedia database for a file of a specified file type; when the specified application program obtains the target directory, the target directory of the file with the file type being the specified file type can be displayed on a display screen of the terminal equipment, and the user further searches the desired file according to the target directory. In addition, when the specified application program obtains the target directory, a file with a file type of the specified file type may also be obtained at the same time, at this time, an overall list of files with a file type of the specified file type may be presented to a user according to a specific display manner, and since there are many files in the terminal device, at this time, a virtual key for switching to the target directory displaying the file with a file type of the specified file type may also be provided to the user, so that the user may switch the interface of the specified application program to the interface presenting the target directory.
It should be noted that, in the embodiment of the present application, the folder directory that includes the file with the file type being the specified file type generally includes all the files with the file type being the specified file type obtained through query, and the file corresponding to the preset tag generally exists in some folder directories. That is, the file corresponding to the preset tag is generally a repeated representation of at least a part of files of which the file types under the folder directory are the specified file types. Through the repeated presentation, the user can quickly find some information marked by self definition, namely preset label information, so that the user-defined label is fully utilized, and the user can conveniently and quickly find some files marked with the label information in a designated application program.
As an illustrative example, as shown in fig. 3, the display interface of the terminal device provided in an embodiment of the present application is a schematic diagram.
The target directory of the file with the picture type can be displayed on a display screen of the terminal device, and a user can further search a desired file according to the target directory. The "school" and the "home" may be preset tags, and the folders 1, 2, and 3 may be folder directories of files in the multimedia database, which include files of which the file types are pictures. The number of files of which the file types are the specified file types, which are contained in the folder directory containing the files of which the file types are the specified file types, and each preset tag can be marked.
In some embodiments, after returning the target directory to the specified application, the file query method may further include:
and if an instruction for displaying the directory list interface of the specified file type is detected, displaying the directory list interface according to the target directory.
The instruction for displaying the directory list interface of the specified file type may be determined based on an operation of a user, and it should be noted that the instruction for displaying the directory list interface of the specified file type may be issued when the user clicks a specific virtual key (such as a virtual key for instructing to add a picture, a video, a document, or the like) in a specified application program, or may be issued according to a subsequent operation of the user after the target directory is obtained, and the issuing timing is not limited herein.
The directory list interface may include information of the target directory, and in addition, the target list interface may display the number of files in which the file types respectively included in each preset tag and each preset folder in the target directory are the designated file types.
In some embodiments, in the target list interface, the arrangement order of each preset tag and each folder directory may be determined according to the sequence of the latest usage time of each preset tag and each folder directory.
In some embodiments, after querying the preset tag corresponding to the specified file type in the multimedia database, the method further includes:
inquiring a file corresponding to the preset label;
and if an instruction for displaying the file corresponding to the preset label is detected, displaying the file corresponding to the preset label according to a preset display mode.
In the embodiment of the present application, it should be noted that the time sequence of querying the file corresponding to the preset tag and detecting the instruction for displaying the file corresponding to the preset tag is not limited herein. In some embodiments, after an instruction to display a file corresponding to the preset tag is detected, the file corresponding to the preset tag may be queried; in other embodiments, the file corresponding to the preset tag may be queried first, and if an instruction to display the file corresponding to the preset tag is detected subsequently, the file corresponding to the preset tag may be displayed according to a preset display manner and the file corresponding to the preset tag that is queried in advance.
In the embodiment of the application, when a first query statement for a specified application program to query a multimedia database is detected to contain a preset statement, a specified file type corresponding to the query is determined, and the multimedia database is queried, wherein the preset label corresponding to the specified file type can determine the file type which the specified application program wants to query when the specified application program is detected to query the multimedia database for specific content, so as to further execute the operation of querying the multimedia database, wherein the preset label corresponding to the specified file type is operated, and therefore, some labels which are preset for the type of files by a user and other personnel are known; and by combining the preset tag and the folder directory containing the file with the file type of the specified file type to obtain the target directory and returning the target directory to the specified application program, the tag and the folder directory information set by the user can be integrated, and the directory information obtained by the query operation of the application program on the specific file type is expanded, so that the specified application program can provide a more personalized presentation mode for the user in subsequent application, and the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 shows a block diagram of a file querying device provided in the embodiment of the present application, which corresponds to the file querying method described in the foregoing embodiment, and for convenience of description, only the relevant parts of the embodiment of the present application are shown.
Referring to fig. 4, the file inquiry apparatus 4 includes:
a determining module 401, configured to determine, when it is detected that a first query statement for querying a multimedia database by a specified application includes a preset statement, a specified file type corresponding to the query;
a query module 402, configured to query a preset tag corresponding to the specified file type in the multimedia database;
a first obtaining module 403, configured to obtain a folder directory of a file in the multimedia database, where the file type of the file is the specified file type;
a second obtaining module 404, configured to combine the preset tag and the folder directory to obtain a target directory;
a processing module 405, configured to return the target directory to the specified application program.
Optionally, the file querying device 4 further includes:
and the first display module is used for displaying the directory list interface of the specified file type according to the target directory if an instruction for displaying the directory list interface of the specified file type is detected.
Optionally, the first obtaining module 403 specifically includes:
the first query unit is used for querying folders contained in the multimedia database according to the first query statement;
and the detection unit is used for detecting whether each folder contains the file with the file type as the specified file type or not so as to obtain the folder directory of the file with the file type as the specified file type in the multimedia database.
Optionally, the query module 402 specifically includes:
a second query unit, configured to replace a query condition of the first query statement with a query first attribute from the query first attribute to a query second attribute to obtain a second query statement, where the first attribute identifies a folder in the multimedia database, and the second attribute identifies a preset tag corresponding to the specified file type;
and the third query unit is used for querying a preset label corresponding to the specified file type in the multimedia database according to the second query statement.
Optionally, the determining module 401 is specifically configured to:
when detecting that a first query statement of a specified application program for querying a multimedia database contains bucket _ id and/or bucket _ display _ name, determining a specified file type corresponding to the query.
Optionally, the second obtaining module 404 is specifically configured to:
and merging the preset label and the folder directory through MergeCursor to obtain a target directory.
In the embodiment of the application, when a first query statement for a specified application program to query a multimedia database is detected to contain a preset statement, a specified file type corresponding to the query is determined, and the multimedia database is queried, wherein the preset label corresponding to the specified file type can determine the file type which the specified application program wants to query when the specified application program is detected to query the multimedia database for specific content, so as to further execute the operation of querying the multimedia database, wherein the preset label corresponding to the specified file type is operated, and therefore, some labels which are preset for the type of files by a user and other personnel are known; and by combining the preset tag and the folder directory containing the file with the file type of the specified file type to obtain the target directory and returning the target directory to the specified application program, the tag and the folder directory information set by the user can be integrated, and the directory information obtained by the query operation of the application program on the specific file type is expanded, so that the specified application program can provide a more personalized presentation mode for the user in subsequent application, and the user experience is improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device 5 of this embodiment includes: at least one processor 50 (only one shown in fig. 5), a memory 51, and a computer program 52 stored in the memory 51 and operable on the at least one processor 50, wherein the processor 50 executes the computer program 52 to implement the steps in any of the various file query method embodiments described above.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is only an example of the terminal device 5, and does not constitute a limitation to the terminal device 5, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 50 may be a Central Processing Unit (CPU), and the Processor 50 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may in some embodiments be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
Take the terminal device as a mobile phone as an example. Fig. 6 is a block diagram illustrating a partial structure of a mobile phone according to an embodiment of the present disclosure. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 600. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset 600 may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset 600, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the handset 600 may also include a camera. Optionally, the position of the camera on the mobile phone 600 may be front-located or rear-located, which is not limited in this embodiment of the application.
Optionally, the mobile phone 600 may include a single camera, a dual camera, or a triple camera, which is not limited in this embodiment.
For example, the cell phone 600 may include three cameras, one being a main camera, one being a wide camera, and one being a tele camera.
Optionally, when the mobile phone 600 includes a plurality of cameras, all of the plurality of cameras may be arranged in front of the mobile phone, or all of the plurality of cameras may be arranged in back of the mobile phone, or a part of the plurality of cameras may be arranged in front of the mobile phone, and another part of the plurality of cameras may be arranged in back of the mobile phone, which is not limited in this embodiment of the application.
In addition, although not shown, the mobile phone 600 may further include a bluetooth module, etc., which will not be described herein.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A file query method is characterized by comprising the following steps:
when detecting that a first query statement for querying a multimedia database by a specified application program contains a preset statement, determining a specified file type corresponding to the query;
inquiring a preset label corresponding to the specified file type in the multimedia database;
acquiring a folder directory of a file with a file type of the specified file type in the multimedia database;
merging the preset label and the folder directory to obtain a target directory;
returning the target directory to the specified application.
2. The file query method of claim 1, after returning the target directory to the specified application, further comprising:
and if an instruction for displaying the directory list interface of the specified file type is detected, displaying the directory list interface according to the target directory.
3. The method for querying files according to claim 1, wherein said obtaining a folder directory in the multimedia database containing files of which the file types are the specified file types comprises:
inquiring folders contained in the multimedia database according to the first inquiry statement;
and detecting whether each folder contains files with the file types as the specified file types or not so as to obtain a folder directory of the files with the file types as the specified file types in the multimedia database.
4. The method for querying files according to claim 1, further comprising, after querying the multimedia database for the preset tag corresponding to the specified file type:
inquiring a file corresponding to the preset label;
and if an instruction for displaying the file corresponding to the preset label is detected, displaying the file corresponding to the preset label according to a preset display mode.
5. The method for querying documents according to claim 1, wherein said querying the predetermined tags corresponding to the specified document types in the multimedia database comprises:
replacing the query condition of the first query statement with a query second attribute from a query first attribute to obtain a second query statement, wherein the first attribute identifies a folder in the multimedia database, and the second attribute identifies a preset tag corresponding to the specified file type;
and querying a preset label corresponding to the specified file type in the multimedia database according to the second query statement.
6. The file query method of claim 1, wherein when it is detected that a first query statement for querying a multimedia database by a specific application program contains a preset statement, determining a specific file type corresponding to the query comprises:
when detecting that a first query statement of a specified application program for querying a multimedia database contains bucket _ id and/or bucket _ display _ name, determining a specified file type corresponding to the query.
7. The file query method according to any one of claims 1 to 6, wherein the merging the preset tag and the folder directory to obtain a target directory comprises:
and merging the preset label and the folder directory through MergeCursor to obtain a target directory.
8. A file inquiry apparatus, comprising:
the determining module is used for determining a specified file type corresponding to the query when detecting that a first query statement for querying the multimedia database by a specified application program contains a preset statement;
the query module is used for querying a preset label corresponding to the specified file type in the multimedia database;
the first acquisition module is used for acquiring a folder directory of a file with a file type being the specified file type in the multimedia database;
the second acquisition module is used for combining the preset label and the folder directory to obtain a target directory;
and the processing module is used for returning the target directory to the specified application program.
9. A terminal device comprising a memory, a processor, a display and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the file query method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the file query method according to any one of claims 1 to 7.
CN201910824325.4A 2019-09-02 2019-09-02 File query method, file query device and terminal equipment Active CN110532231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910824325.4A CN110532231B (en) 2019-09-02 2019-09-02 File query method, file query device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910824325.4A CN110532231B (en) 2019-09-02 2019-09-02 File query method, file query device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110532231A CN110532231A (en) 2019-12-03
CN110532231B true CN110532231B (en) 2021-12-17

Family

ID=68666326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910824325.4A Active CN110532231B (en) 2019-09-02 2019-09-02 File query method, file query device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110532231B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094384A (en) * 2019-12-23 2021-07-09 深圳云天励飞技术有限公司 SQL (structured query language) file configuration method and device and terminal equipment
CN111382124A (en) * 2020-03-13 2020-07-07 维沃移动通信有限公司 File management method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1820451A (en) * 2003-10-23 2006-08-16 微软公司 System and method for virtual folder and item sharing
EP2463784A1 (en) * 2010-12-10 2012-06-13 Giga-Byte Technology Co., Ltd. Method and human-to-machine interface apparatus for searching files
CN104077385A (en) * 2014-06-27 2014-10-01 北京海泰方圆科技有限公司 Classification and retrieval method of files
CN107209767A (en) * 2015-12-29 2017-09-26 华为技术有限公司 A kind of management method of multimedia file, electronic equipment and graphic user interface
CN107704766A (en) * 2017-08-29 2018-02-16 努比亚技术有限公司 Multimedia file access control method, terminal and computer-readable recording medium
CN108021631A (en) * 2017-11-22 2018-05-11 努比亚技术有限公司 File polling method, system and computer-readable recording medium
CN108121816A (en) * 2017-12-28 2018-06-05 广东欧珀移动通信有限公司 Picture classification method, device, storage medium and electronic equipment
CN109189728A (en) * 2018-07-18 2019-01-11 深圳市网心科技有限公司 Intelligent hardware devices, data in magnetic disk processing method and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751604B2 (en) * 1999-01-06 2004-06-15 Hewlett-Packard Development Company, L.P. Method of displaying temporal and storage media relationships of file names protected on removable storage media

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1820451A (en) * 2003-10-23 2006-08-16 微软公司 System and method for virtual folder and item sharing
EP2463784A1 (en) * 2010-12-10 2012-06-13 Giga-Byte Technology Co., Ltd. Method and human-to-machine interface apparatus for searching files
CN104077385A (en) * 2014-06-27 2014-10-01 北京海泰方圆科技有限公司 Classification and retrieval method of files
CN107209767A (en) * 2015-12-29 2017-09-26 华为技术有限公司 A kind of management method of multimedia file, electronic equipment and graphic user interface
CN107704766A (en) * 2017-08-29 2018-02-16 努比亚技术有限公司 Multimedia file access control method, terminal and computer-readable recording medium
CN108021631A (en) * 2017-11-22 2018-05-11 努比亚技术有限公司 File polling method, system and computer-readable recording medium
CN108121816A (en) * 2017-12-28 2018-06-05 广东欧珀移动通信有限公司 Picture classification method, device, storage medium and electronic equipment
CN109189728A (en) * 2018-07-18 2019-01-11 深圳市网心科技有限公司 Intelligent hardware devices, data in magnetic disk processing method and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于维基关联数据的Web搜索主题分类研究";王兰成等;《计算机应用与软件》;20130916;第30卷(第8期);197-200 *

Also Published As

Publication number Publication date
CN110532231A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN107562835B (en) File searching method and device, mobile terminal and computer readable storage medium
CN104518953B (en) Method for deleting message, instant communication terminal and system
CN107368518B (en) Notification message management method, terminal and computer readable storage medium
JP2021523510A (en) Background application display method and mobile terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN108255372B (en) Desktop application icon sorting method and mobile terminal
CN110442297B (en) Split screen display method, split screen display device and terminal equipment
CN107436948B (en) File searching method and device and terminal
CN106856543B (en) Picture display method and device and mobile terminal
CN107783709B (en) Image viewing method and mobile terminal
CN107766548B (en) Information display method and device, mobile terminal and readable storage medium
US20170064352A1 (en) Method and system for collecting statistics on streaming media data, and related apparatus
CN106951492B (en) File searching method and device and electronic equipment
CN110688347A (en) File storage method, file storage device and terminal equipment
CN106506771B (en) Contact object classification display method and device and mobile terminal
CN108984066B (en) Application icon display method and mobile terminal
CN110532231B (en) File query method, file query device and terminal equipment
CN106202422B (en) The treating method and apparatus of Web page icon
CN110599158A (en) Virtual card combination method, virtual card combination device and terminal equipment
CN108804434B (en) Message query method, server and terminal equipment
CN111274463A (en) Information display method and device based on IM contact person grouping setting and storage medium
CN109739409B (en) Batch processing method and device and terminal equipment
CN106777383B (en) File sorting method and intelligent terminal
CN112445967A (en) Information push method and device, readable storage medium and information push system
CN115065609A (en) B-end SaaS system hybrid deployment method and system

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