CN106991130A - A kind of document handling method, device and intelligent terminal - Google Patents
A kind of document handling method, device and intelligent terminal Download PDFInfo
- Publication number
- CN106991130A CN106991130A CN201710132670.2A CN201710132670A CN106991130A CN 106991130 A CN106991130 A CN 106991130A CN 201710132670 A CN201710132670 A CN 201710132670A CN 106991130 A CN106991130 A CN 106991130A
- Authority
- CN
- China
- Prior art keywords
- file
- folder
- application
- indicated
- application identities
- 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; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1727—Details of free space management performed by the file system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/62—Uninstallation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Library & Information Science (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a kind of document handling method, device and intelligent terminal, wherein, method includes:When detecting data creation event, the object identity for the data object that the data creation event is created is obtained;Obtain the application identities for the application for creating the data object;And by the object identity and application identities associated storage to file record information;The object identity associated by the application identities is searched in the file record information;According to each object identity found, scanning obtains the storage information with each data object of the association indicated by the application identities.Using the embodiment of the present invention, storage information scanning can quickly be completed, using the processing such as unloading, the statistics of the storage information of multimedia file can also rapidly be carried out, the management to various files and file in intelligent terminal is preferably realized, the performance of intelligent terminal is preferably ensure that to a certain extent.
Description
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of document handling method, device and intelligent terminal.
Background technology
With continuing to develop for computer technology and electronic technology, various types of intelligent terminals have become people's work
Indispensable part in work, studying and living.In intelligent terminal, by running the application of various functions, Yong Huke
Easily to realize the functions such as instant messaging, web page browsing, network social intercourse.Meet the demand of user job, studying and living.
Can typically there are substantial amounts of user data, such as multi-medium data in intelligent terminal, the installation of application and use
During the various data that produce, how preferably these data be treated as with the hot issue of research.
The content of the invention
The embodiment of the present invention provides a kind of document handling method, device and intelligent terminal, can be preferable to a certain extent
Ground completes the management of file and file.
In a first aspect, the embodiments of the invention provide a kind of document handling method, including:
When detecting data creation event, the object identity for the data object that the data creation event is created is obtained;
Obtain the application identities for the application for creating the data object;And by the object identity and application identities associated storage to file
Record information;
When detecting the file scan instruction to application, the application identities of the application are obtained;From file record letter
The object identity associated by the application identities is searched in breath;According to each object identity found, scanning is obtained and the application
The storage information of each data object of the indicated association of mark, to obtain depositing for the application to application identities instruction
Store up information scanning result.
Wherein, the object identity associated with application identities recorded in the file record information at least includes:It is described to answer
Using the file of generation indicated by the folder identifier and/or the application identities of the file created with the indicated application of mark
File identification.
Second aspect, the embodiments of the invention provide another document handling method, including:
When detecting data creation event, the object identity for the data object that the data creation event is created is obtained;
Obtain the application identities for the application for creating the data object;And by the object identity and application identities associated storage to file
Record information;
When detecting the unloading command to application, the application identities of the application are obtained;From the file record information
Determine the object identity associated by the application identities;According to the object identity of determination, delete with indicated by the application identities
The data storage of association, to complete the processing of the unloading to the application;
Wherein, the object identity associated with application identities recorded in the file record information at least includes:It is described to answer
Using the file of generation indicated by the folder identifier and/or the application identities of the file created with the indicated application of mark
File identification.
The third aspect, the embodiment of the present invention additionally provides another document handling method, including:
When detecting the newly-built processing that there is file in terminal, determine that triggering creates the application of this document folder, and
Obtain the application identities of the application;
If the file level where the file is N grades, by the folder identifier of the file and the application
Associated record is identified into file record information;
If the file level where the file is less than N grades, by the file of the file stored in the file
Mark is with the application identities associated record into file record information;
The N is default positive integer, wherein, if the file level where the file is N grades, the file note
The first parameter also is have recorded for the folder identifier in record information, and/or, if the file level where the file is small
In N grades, also the second parameter is have recorded for the folder identifier in the file record information.
Correspondingly, at the 5th aspect, the embodiment of the present invention additionally provides a kind of document handling apparatus, including:
Logging modle, for when detecting data creation event, obtaining the data pair that the data creation event is created
The object identity of elephant;Obtain the application identities for the application for creating the data object;And by the object identity and application identities
Associated storage is to file record information;
Processing module, for when detecting the file scan instruction to application, obtaining the application identities of the application;From institute
State and object identity associated by the application identities is searched in file record information;According to each object identity found, scanning is obtained
The storage information with each data object of the association indicated by the application identities is taken, to obtain referring to the application identities
The storage information scanning result for the application shown.
Wherein, the object identity associated with application identities recorded in the file record information at least includes:It is described to answer
Using the file of generation indicated by the folder identifier and/or the application identities of the file created with the indicated application of mark
File identification.
Correspondingly, at the 6th aspect, the embodiment of the present invention additionally provides a kind of document handling apparatus, including:
Logging modle, for when detecting data creation event, obtaining the data pair that the data creation event is created
The object identity of elephant;Obtain the application identities for the application for creating the data object;And by the object identity and application identities
Associated storage is to file record information;
Processing module, for when detecting the unloading command to application, obtaining the application identities of the application;From the text
The object identity associated by the application identities is determined in part record information;According to the object identity of determination, delete and the application
The data storage of the indicated association of mark, to complete the unloading to the application.
Wherein, the object identity associated with application identities recorded in the file record information at least includes:It is described to answer
Using the file of generation indicated by the folder identifier and/or the application identities of the file created with the indicated application of mark
File identification.
Correspondingly, at the 7th aspect, the embodiment of the present invention additionally provides a kind of document handling apparatus, including:
Acquisition module, for when detecting the newly-built processing that there is file in terminal, determining that triggering creates this article
The application of part folder, and obtain the application identities of the application;
Processing module, if being N grades for the file level where the file, by the file mark of the file
Know and the application identities associated record is into file record information;If the file level where the file is less than N grades,
Then by the file identification of the file stored in the file and the application identities associated record into file record information;
The N is default positive integer, wherein, if the file level where the file is N grades, the file note
The first parameter also is have recorded for the folder identifier in record information, and/or, if the file level where the file is small
In N grades, also the second parameter is have recorded for the folder identifier in the file record information.
Correspondingly, in eighth aspect, the embodiment of the present invention additionally provides a kind of intelligent terminal, including memory and processing
Device,
The memory, for storing the file record information that the processor processing is obtained;
The processor, for performing each document handling method described above.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The storage information scanning to user is completed promptly, is handled using unloading etc., additionally it is possible to rapidly carry out the storage of multimedia file
The statistics of information, preferably realizes the management to various files and file in intelligent terminal, to a certain extent preferably
Ground ensure that the performance of intelligent terminal.
Brief description of the drawings
Fig. 1 is the schematic diagram at the first scanning interface of the embodiment of the present invention;
Fig. 2 is the schematic diagram at second of scanning interface of the embodiment of the present invention;
Fig. 3 is the schematic diagram at the third scanning interface of the embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of list collection method of the embodiment of the present invention;
Fig. 5 is the storage schematic diagram on Intelligent terminal data for the embodiment of the present invention;
Fig. 6 be the embodiment of the present invention a kind of list in specific data statistical method schematic flow sheet;
Fig. 7 is a kind of schematic flow sheet of application data scan method of the embodiment of the present invention;
Fig. 8 is the schematic diagram at the 4th kind of scanning interface of the embodiment of the present invention;
Fig. 9 is the schematic diagram at the 5th kind of scanning interface of the embodiment of the present invention;
Figure 10 is the schematic diagram at the 6th kind of scanning interface of the embodiment of the present invention;
Figure 11 is the schematic diagram at the 7th kind of scanning interface of the embodiment of the present invention;
Figure 12 is a kind of first embodiment schematic flow sheet of document handling method of the present invention;
Figure 13 is a kind of second embodiment schematic flow sheet of document handling method of the present invention;
Figure 14 is a kind of 3rd embodiment schematic flow sheet of document handling method of the present invention;
Figure 15 is a kind of fourth embodiment schematic flow sheet of document handling method of the present invention;
Figure 16 is a kind of the 5th embodiment schematic flow sheet of document handling method of the present invention;
Figure 17 is a kind of structural representation of the first embodiment of document handling apparatus of the present invention;
Figure 18 is a kind of structural representation of the second embodiment of document handling apparatus of the present invention;
Figure 19 is a kind of structural representation of the 3rd embodiment of document handling apparatus of the present invention;
Figure 20 is a kind of structural representation of the fourth embodiment of document handling apparatus of the present invention;
Figure 21 is a kind of structural representation of intelligent terminal of the embodiment of the present invention.
Embodiment
During the use of intelligent terminal, storage resource that can be periodically or in real time to intelligent terminal is carried out
Statistics, obtains the associated storage information of memory space in intelligent terminal, to complete the management to intelligent terminal memory space.Storage
The associated storage information in space for example can be taken storage size information, residual memory space size information, should
With the occupied information with memory space shared by multimedia file etc..Also, intelligent terminal can also enter to mounted application
Row scanning, determines that this applies shared memory space, convenient to using delete processing when carrying out storage management and unloading.
Specifically, in the embodiment of the present invention, the intelligent terminal can be wearable for smart mobile phone, tablet personal computer, intelligence
Equipment, vehicle intelligent equipment etc. possess memory with store apply, the terminal of the file data such as multimedia file.These intelligence
Energy terminal can include system system memory spaces and storage card memory space mostly, and be also possible that the shared of network
Memory space, when obtaining the associated storage information of memory space of intelligent terminal, can obtain one or more as needed
The storage information of data in memory space.
In embodiments of the present invention, the content stored in intelligent terminal can be divided into:Multimedia file, application program with
And alternative document three major types.Generally, can be according to multimedia database when the storage information to media file is counted
To count the occupied information of the memory space shared by the multimedia file of the types such as picture, video, music, document.In correspondence
When storage information is counted, statistics system memory spaces and storage card memory space can be selected related to the application
File and file shared by memory space occupied information.
The relevant folder of application and the storage location of file are generally divided into system system catalogues and user data
Counted under userdata catalogues, system catalogues according to application identities, and the data under userdata catalogues can be divided into four
Class, including:The folder data or text of generation are copied by media transmission protocol (Media Transfer Protocol, MTP)
Number of packages evidence;Bluetooth or other be wirelessly transferred the folder data or file data of generation;Using the folder data or text of generation
Number of packages evidence;Other application or system call the folder data or file data that the application interface is generated.In the storage to application
During the statistics of space hold information, the four classes data under userdata catalogues can be based on and counted.The text that residue is not counted
Part is pressed from both sides or file can directly be classified as other classifications, and the file of these other classes can include the text of the self-built special format of user
Part, such as some suffix are a kind of PSD (image procossing application PhotoShop file format) file.
In embodiments of the present invention, a scanning interface can be configured, multimedia text can be shown on the scanning interface
Storage information, the storage information of application of part, the storage information shown on scanning interface are specially the occupancy letter of memory space
Breath.It is a kind of schematic diagram at scanning interface of the embodiment of the present invention, in scan statistics process as shown in Figure 1, Figure 2 and shown in Fig. 3
In, for various types of multimedia files, many matchmakers can be shown in the multimedia interface region at scanning interface as shown in Figure 1
Body file type mark 101 and scanning result 102, the printed words such as type identification in interface shown in Fig. 1 101 includes " picture ",
Scanning result 102 is the printed words of " calculating ".And for application, then due to needing to answer mounted in itself in intelligent terminal
With and its occupied information of shared memory space counted, therefore, it can only show an instruction in application interface region
Scanning the renewal icon 103 of renewal.
After the completion of scanning, the memory space of correspondence media file is then shown in multimedia interface region respectively in fig. 2
Occupied information, for example, show picture and 4.35GB printed words in interface shown in Fig. 2.Application interface region shows various applications
Application identities 201 and scanning result 202, for example, show in fig. 2 application identities 201 be " wechat " printed words and scanning tie
Really 202 be " 1.62GB " printed words.
The mark 301 and scanning result of the file of other classes on being stored in intelligent terminal are shown in Fig. 3 interface
302, the mark 301 of the file of such as other classes is " it is " 4.36GB " to cut icon note .psd " and its scanning result 302.
When the storage information to multimedia file is scanned, for the storage information of specific media file, Ke Yitong
Cross existing mode and count acquisition, for example, the storage that each media file takes directly is obtained by the statistical result of media database
The occupied information in space.In embodiments of the present invention, in order to quickly obtain multimedia file storage information and save it is many
Shared software and hardware resources during media file storage acquisition of information, the embodiment of the present invention can be true according to multimedia database first
The data storage information of fixed all multimedia files, and the historical storage information of all multimedia files of record is obtained, this is gone through
History storage information can be the data storage information of the last all multimedia files determined.Then according to the number of determination
Storage change amount is obtained according to storage information and the historical storage information.If the storage change amount is less than a data volume threshold
Value, such as 1M data-quantity threshold then shows not being updated the multimedia file in multimedia database and (deletes text
Part, increase file or modification file etc.), then by historical storage information directly as scanning result, i.e., directly using last
Scan obtained data storage information.If greater than default data-quantity threshold, just again to many matchmakers in multimedia database
Body file is counted, and obtains new scanning result.It can so ensure when user is not updated to multimedia file,
Excessive software and hardware resources need not be called to scan the storage information to media file.
Above-mentioned data storage information can refer to the occupancy size information for the memory space that all multimedia files take.
, can based on the change of the relatively more whole memory space or unappropriated memory space taken for storing multimedia data storehouse
To determine whether there is the renewal of multimedia file, when changing smaller, when being, for example, less than 1M, no multimedia file is determined more
Newly, the data storage information of the multimedia file of last statistics is directly continued to use, display last time is stored in local all kinds
Multimedia file data storage information.When changing greatly, 1M is greater than, then needs to reacquire many of each type
The storage information of media file.
The size of multimedia file can directly be obtained by multimedia database, if current multimedia data storehouse due to
Various reasons are not updated, and the storage information that can have some newly-built multimedia files is not comprised in wherein.It can send
Corresponding triggered multimedia database carries out the instruction of whole multimedia file scannings, in one embodiment, can be to intelligence
The multimedia database of terminal sends a triggering command, for example, can be OppoIntent.ACTION_MEDIA_SCANNER_
SCAN_ALL, in order to which triggered multimedia statistics of database obtains the size of the various types of multimedia files of terminal.
For the statistics for the storage information that application has been installed in intelligent terminal, application data can not be obtained in the distribution of storage card
Take, take maintenance documentation record information to realize, for example, realized by safeguarding a list.List keyword includes two ginsengs
Number:Application identities (application bag name packageName can be used in application identities), the lists of documents FileList managed therewith should
FileList includes all files or the mark of file with the association in intelligent terminal, wherein, it is described
Each file in FileList be able to can be for example named as comprising a flag parameters
IsNeedToScanChildFiles, the flag parameters show whether this document folder needs to scan its sub-folder.
In embodiments of the present invention, comprising collection list and use name single stage.The process for collecting list includes:Wound
It is that application is created that this document catalogue is recorded when building file directory;File default under the catalogue, which belongs to, creates the catalogue
Using;Exclude public directory;The deposit position of the list beyond the clouds in database, can also be stored in local data base
In, it can be used for statistics application and produce directory path, artificial screening can be carried out.Included using the process of list:Pass through high in the clouds
List is updated, local using acquiescence list, the acquiescence list can update from high in the clouds to be obtained, for solving to pass by MTP
The affiliated problem for the application catalogue file folder that the mode such as defeated is generated.
During list information needed is collected, it is understood that there may be the problem of file or folder is too many, therefore, only record
Establishment file folder is that application, and specific file is not considered to be created by whom.Simultaneously, it is contemplated that there is application to create of the same name
The related data of file, such as Tenc application (application of an Internet firm) is stored under entitled Tenc files.
Therefore, when collecting the storage information of the file of list and file, the storage level of file can recorded N grades, for example
Tertiary storage level.So during record information, when there is new file to create, it is necessary to detect that it stores whether level is more than three
Level.
Specifically, during information in list, corresponding Collection Rules schematic diagram is as shown in figure 4, in S401, sentence
Whether the disconnected file created is more than 3 grades of catalogues;If more than 3 grades catalogues, S402 is performed without any processing;If being not more than
3 grades of catalogues, then perform S403, determines whether whether file is equal to 3 grades of catalogues;If equal to 3 grades catalogues, performing S404 will
This document folder indicates the data that all the elements under this document folder are belonged in this document folder, this document folder labeled as 3 grades of catalogues
It is the data for the application for creating this document folder;If less than 3 grades catalogues, perform S405 and this document folder is labeled as non-3 grades of mesh
Record, showing subordinate's file of this document folder needs the sub-folder in subdivision, i.e. this document folder and to be not belonging to create this article
The application of part folder.
Rule based on Fig. 4, when collecting the list of application, 3 grades of catalogues then travel through full content and counted shared by it
The storage information of memory space.Non- 3 grades of catalogues only count the occupied information of the lower memory space shared by file of this document folder, disregard
Calculate the occupied information of the lower memory space shared by sub-folder of this document folder.Such as Fig. 5, carry out illustrating by taking Tenc files as an example
It is bright.
File Tenc root RootHome for built-in storage storage emulated 0 or external TF cards
storage\extSdCard.YX (a kind of instant messaging application) is first installed, newly-built Tenc files, therefore, Tenc in itself with
And wherein all file File1, File2, no matter created by that application later, it is automatically record as literary belonging to YX
Part.And YXMusic files, the MicroMsg files created later in the Tenc files is recorded as it and each created
The file for the application built.
In one embodiment, RootHome Tenc MicroMsg Updata are level Four catalogues, and storage level is four,
More than three-level, do not handle directly, not record data.RootHome Tenc MicroMsg are three-level catalogues, and storage level is three,
File can continue subdivision, be that the flag parameters isDrictlyDeleted of this document folder configuration is assigned true, show this
All the elements under MicroMsg files belong to MicroMsg, and this document can be directly deleted when respective application is unloaded
Folder.RootHome Tenc be second-level directory, less than three-level, then the content in the Tenc files needs to continue to segment, Tenc texts
The isDrictlyDeleted of part folder is assigned false, is not directly deleted when respective application is unloaded.Plan use side
Case:The file File under Tenc files is first subordinate to the data using YX.If unloading YX applications, Tenc files are judged
In whether there is alternative document to press from both sides and be not belonging to apply YX, if (at least there is MicroMsg files in this example), then not
Delete Tenc files in File1, File2 file, and by File1, File2 file and Tenc files in list
Unified update recorded under the application identities for creating the corresponding application of MicroMsg files.
Some may be belonged to the file data for the application being unloaded when in embodiments of the present invention, due to application unloading
Belong in another application, therefore cause the data storage amount increase of another application.For example, in above-mentioned example
In, the occupied information that YX takes memory space is 150M, and MicroMsg occupied information is 300M, because YX is unloaded, list
In originally belong to YX File1 and File2 and be transferred to MicroMsg under one's name, therefore, MicroMsg amounts to the occupancy of occupancy
File1 and File2 numerical value can be increased in information.Although the data storage amount increase that another may be caused to apply, when logical
Crossing this mode can better ensure that file must be deleted by mistake, it is ensured that the unloading of an application does not interfere with making for other application
With.
When identifying folder identifier and the file identification of association to file record information record respective application, it can add
Certain filtering policy, some public folders are filtered out, and any application identities are not recorded under one's name, these public folders
Other classes, or media class can be belonged to.For example, registration includes the DownLoad (files that one kind of multiple files can be used
Folder), the mark of the file such as BlueTooth (file that can be produced during a kind of Bluetooth transmission) so that detecting some
Using even if these files are directly created, the file mark that will not be also filtered these in the file record information
Knowledge is associated with application identities.
In embodiments of the present invention, file record information is that the statistic record of list may be referred to shown in Fig. 6, first,
In S601, some is applied in installation process or during use, is called and is created new on the function File () of document creation
Content-data.In one embodiment, using can call successively corresponding function New File ()-mkdir ()-
MkdirErrno ()-go to bottom mkdir, to be finally completed the establishment of the contents such as file or file, file or folder
Establishment can realize that used function can also be existing function during establishment using prior art.Wherein, New
File():Newly-built one any file or folder;mkdir():If new File () are a newly-built files, will
Perform mkdir () and remove a newly-built file path, i.e. new folder;mkdirErrno():File associative operation is performed, most
MkdirErrno methods can be gone to inside code eventually, as long as monitoring in this method, it is possible to monitor all applications
File operation.In S602, the success of Libcore.mkdir () directory creating.Libcore.mkdir () is equivalent to above-mentioned mkdir
().Typically when application needs to write data, a newly-built document, it is document path to have individual parameter during this document creation:
Path, form is probably:Storage/sdcard/Temp/log.txt, calls new File (path) this whens;If being
There is this file path of storage/sdcard/Temp in system.Then direct written document, it is not necessary to call mkdir () such as
Also mkdir () then can be first called to go to newly-built path in layer, first mkdir () is newly-built without this path in fruit system
Sdcard, then by the newly-built sdcard/Temp of mkdir ()., can be with newly-built in S603 after file or document creation success
One processing thread HandlerThread obtains the mark uid of application, i.e., obtain current by newly-built HandlerThread
The result that Process.getUid () is obtained, wherein, Process.getUid () is uniquely marked for obtaining process in mobile phone
Know ID.In S604, the service of file opening information record, the application of the corresponding carry out file process of the embodiment of the present invention is held
After row, start the service of this document information record, the uid of acquisition, this document folder mark or file identification are transmitted as parameter
Service to the startup.In S605, bag name (application identities) packageName is got based on uid by the service of startup,
And bag name, folder name or filename FileName are stored in DCS (Data Collect System, data gathering system)
In.In S606, data are uploaded by DCS timings, can be according to the rule of formulation by the bag of storage name, folder name or file
Name is uploaded, and finally statistics obtains list, for example, can collect neat 10 data in dcs and upload once, or upload one daily
It is secondary.Some server specified can be uploaded to, list is obtained according to the data statistics largely uploaded by server.
In embodiments of the present invention, it be able to will be collected into using RomUpdate (a kind of cell phone system online updating mechanism)
List be pushed to the user of intelligent terminal.Because the RomUpdate memory sizes for having maximum 1M are limited, therefore, using list
Utilization rate or the higher application of download rate are concerned only with, 5000 application before ranking is downloaded in application shop for example, only collecting
(list that specific 1M can deposit many big data quantities can be counted list, and the embodiment of the present invention does not limit to be counted
Application quantity).Again since it is desired that counting on the storage level of three-level even more high so that before download rate ranking 5000 should
May be larger with the data volume of corresponding list, therefore, the embodiment of the present invention first can count some applications more, then in intelligence
It can be simplified in the local list of terminal.
In one embodiment of the invention, list, which is included, downloads 5000 application before ranking in complete application shop
File record information is have recorded under list, the list to be used to record the application identities of preceding 5000 application and its filename of association
And/or folder name.Intelligent terminal has locally been installed gone using inventory packageNameList when in use, by intelligent terminal
List complete in server is inquired about, is obtained only comprising the local simplification list for having installed application.
In the embodiment of the present invention, the push mode of list can include following three kinds of modes.
First method, when intelligent terminal is initialized, built-in portion, which is given tacit consent to, includes system application in list, the acquiescence list
And some commonly use the corresponding file record information of application., can the service of further arriving subsequently if application is by user installation
New install using corresponding file record information relative recording is obtained in device.
Second method, the application of single intelligent terminal can be being collected by DCS in the intelligent terminal with server interaction
And its folder identifier and/or file identification created.The data being collected into are sent to after server, can be based on server plan
Slightly, new added data item is carried out, the data item righted the wrong forms new complete list, is then pushed to intelligent terminal.
Whether Third Way, user's daily set time, detecting system complete list has renewal, if updating, then weighs
Inquiry newly is gone using local packageName packets, newest simplification list is obtained.In one embodiment, use
PackageList goes to inquire about list complete in server, therefrom acquires newest simplification list
PackageFileList, on the simplification list, includes the object identity (text of locally applied application identities and its association
Part folder mark and/or file identification).Wherein, the simplified list can be an expandable mark language XML file, intelligence
The XML file of the simplification list is then saved in locally by terminal, in order to parse and use at any time.
Get after simplified list XML, the storage information that application has been installed in intelligent terminal is united if desired
Meter, for example, need to obtain the occupied information of the memory space shared by each application, can be with every in the traverse scanning simplification list
Each folder name and/or filename, pass through corresponding file in the corresponding FileList of individual packageName (application identities)
The size of folder and/or file, calculates the occupied information using shared memory space.In one embodiment, such as Fig. 7 institutes
Show, to scan the size of each application, multithreading scanning can be opened in S701, time started t0 is recorded.In S702, scanning
NUM application, the scanning for completing an application then records the scanning result of an application, and NUM is Current Scan quantity, Ke Yi
Writing scan result in default scanning interface, can be scanned using 1, using 2, using 3 or even using 4 etc. respectively by multithreading
More applications.In scanning process, judge whether to meet list display condition, that is, judge whether to remember in results such as configuration interfaces
Writing scan result in interface is recorded, wherein specifically, in one embodiment, in S703, judging whether sweep time is more than
Default threshold value T1-T0>1s, if so, then judge whether NUM is more than 0 in S704, if no more than 0, continue executing with described
S703, if more than 0, performing S705 and scanning result is ranked up and shown is used for writing scan result after current sequence
List.In S706, determine whether whether the ratio shared by completed NUM is more than shared by default first threshold, i.e. NUM
Intelligent terminal in mounted application sum (or simplifying the sum of application recorded on list) ratio, if more than the
One threshold value (such as 80%), then resequence in S707 to all scanning results, and shows the list of rearrangement, if
No more than first threshold, then continue executing with S706.In S708, determine whether whether the ratio shared by completed NUM is big
In default Second Threshold (such as 90%), if so, then being resequenced in S709 to all scanning results, and weight is shown
The list of new sort, if no more than default Second Threshold, continues executing with S708.Further determined whether in S710 complete
Into the scanning of all applications, if so, then being resequenced in S711 to all scanning results, and complete list is shown.
In addition, in one embodiment of the invention, it is contemplated that big application potentially includes substantial amounts of file and file, example
A kind of such as wechat (instant messaging application) includes more than 20 ten thousand files and files, and scanning is time-consuming, and such application can be carried out
Mark.The size that this applies shared occupied information when the record last time is to the application storage information end of scan, sweeps at this
The scanning result of last time is shown when retouching in advance.And size is counted again on backstage, refresh statistics again after statistics is completed
The information of list.For example, the occupied information of the memory space shared by last statistics wechat is 1.5G, record wechat and
1.5G information, this is based on above-mentioned simplification list, when the application identities scanned are the application of wechat, first by last time system
Meter 1.5G recorded in list (scanning shows the list in interface) as scanning result, then according to wechat pair on simplified list
The folder name and filename answered, obtain the occupied information shared by each file of wechat and file during present scan, then
The occupied information that present scan is obtained updates original 1.5G as the final result of present scan.
Statistics strategy can be set to obtain complete list in server end.Data are uploaded by DCS (to apply and its associate
The data of folder name or filename), after server is collected into data, carry out data statistics processing, designated statistics strategy, row
Except the information that reports of mistake, list is updated.Meanwhile, list reserves treatment on special problems method, can carry out artificially disposing special case
Situation, by being wirelessly transferred the data of acquisition such as the data removal of home of intelligent terminal.
In embodiments of the present invention, the data that DCS is collected into, processing strategy includes:By on all intelligent terminals received
In the data of report, the letter of the object identity (folder name or filename) of bag name PackageName (application identities) and association
Breath, identical accounting exceedes certain threshold value, and such as 90%, then it is considered that the application identities and its corresponding folder name or text
Part name is accurate, and the application identities and folder name and/or file name association of the application recorded into list, and (file record is believed
Breath) in.Processing strategy also includes:Whether bag name PackageName belongs to the application specified, for example whether under to apply in shop
5000 application before load ranking, if it is, the application identities and folder name or file name association recorded into list (file
Record information) in.Reserved addition artificial filter's list interface method, the specific information in part is refused to record (such as known mistake
False information).The specific information in part is refused to delete modification (newly-increased customized information).When it is implemented, the processing plan of server
One or more combinations in aforesaid way can slightly be included.
For the storage information of the data of other classes, occupied information and the application of multi-medium data can be obtained in statistics
After occupied information, calculated and obtained based on following calculation:
Occupied information=disk space-free space-multimedia data of memory space shared by the data of other classes
Occupied information-application data occupied information.Disk space and free space can be acquired using existing mode.Separately
Outside, the size of other specific class data can be counted, in one embodiment, the data of other classes are shown on scanning interface
Display mode as shown in figure 8, showing other class Data Identifications and the obtained shared memory space of statistics on scanning interface
Occupied information.In addition, if user wants to delete other class data, except deleting behaviour to initiation at corresponding storage location
Make outer, in embodiments of the present invention, can also be operated on the scanning interface by the user such as sliding to the left, in the scanning
Button 802 is deleted in the triggering display of other corresponding positions of class Data Identification 801 on interface, if user clicks on the deletion button
802, then the deletion action to other corresponding class data is performed, for example, in fig. 8, if user clicks deletion button 802,
Intelligent terminal performs the delete processing for all data of .ai files corresponding to 801 to file.
In intelligent terminal, there is the unloading demand to application, in embodiments of the present invention, as shown in figure 9, passing through Fig. 9
Initiate the data delete processing to application in shown interface.After the application 901 during inventory is applied in clicking on Fig. 9, into next
Menu hierarchy, user can click on the button 902 of unloading application, initiate the unloading to application, applied while deleting this
Data and file under userdata catalogues, now can without delete user multimedia file.When deleting, traversal is browsed
File and file indicated by each folder identifier of the application identities association of the application in list (file record information)
The indicated file of mark.If file contains noMedia mark, this document folder is directly deleted, otherwise, then one by one many
This document folder is inquired about in media library, if inquiring some multimedia file of this document folder in multimedia gallery, this is not deleted
Multimedia file.Otherwise, directly delete., can be by first checking that the suffix name of filename is more to filter out in uninstall process
Media file, does not carry out delete processing to multimedia file, accelerates to delete speed.
It should be noted that depositing situation about mutually calling between applications in intelligent terminal.For example, may be called using A
Using B interface, the establishment file folder C under application B catalogue.In embodiments of the present invention, for such file, Ke Yi
The folder name of such file recorded in file record information under the corresponding application identities of the application currently created, example
Such as by above-mentioned file C and application B associated records into file record information.Later stage is if it find that there is mistake, then to text
Part record information is updated, and pushes renewal by RomUpdata.In addition, existing in intelligent terminal, user is readable to be commonly used
Type file, such as TXT files, in embodiments of the present invention, this class file is configured as not deleting.
Scanning interface in, can by multiple pages come display data different memory spaces occupied information, this
In one embodiment of invention, as shown in Figure 10, the free memory of intelligent terminal can be subdivided into internal storage, that is, scheme
Mobile phone 1001 is shown as in 10 scanning interface;SD card 1002 is shown as in the scanning interface of carry memory, i.e. Figure 10;
UDiskA items 1003 are shown as in the scanning interface of shared memory, i.e. Figure 10.In one embodiment, due to application generally
The normal operation of application is just can guarantee that in the internal storage of intelligent terminal, therefore, the SD card in scanning interface
On the 1002 scanning result display page 1004, the corresponding data content only including multimedia file, in the carry memory
The occupancy of the memory spaces of carry memory such as the Data Identification and shared SD card of multimedia file is shown on the display page
Information., can be with the option of display format SD card, such as in addition, the scanning result in SD card 1002 is shown on the page 1004
Fruit user clicks on the option, then directly initiates the processing of the formatting to the carry memory such as SD card, is grasped in order to avoid the mistake of user
Make, user's prompting can be sent being formatted before processing, to prompt the user whether to confirm to be formatted SD card etc.,
Receive after confirmation instruction, then processing is formatted to the carry memory such as SD card.
Further, as shown in figure 11, include in the scanning interface:Mobile phone 1101, SD card 1102, UDiskA
1103.If user, which clicks on, have selected UDiskA items 1103, enter the scanning result corresponding to shared memory and show the page
1104, in one embodiment, shown in the scanning result of the shared memory and multimedia text is equally only shown on the page 1104
The occupied information of the Data Identification of part and the memory space of shared shared memory.In addition, in the scanning of UDiskA items 1003
As a result show on the page 1104, the option of unloading shared storage device can also be shown, if user clicks on the option, directly
Start the unloading to shared memory to handle, can be at the unloading for carrying out shared memory in order to avoid the maloperation of user
User's prompting is sent before reason, to prompt the user whether to confirm to be unloaded, after confirmation instruction is received, then intelligent terminal is unloaded
Corresponding shared memory.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The storage information scanning to user is completed promptly, is handled using unloading etc., additionally it is possible to rapidly carry out the storage of multimedia file
The statistics of information, preferably realizes the management to various files and file in intelligent terminal, to a certain extent preferably
Ground ensure that the performance of intelligent terminal.
Each document handling method of the embodiment of the present invention is described below.
Figure 12 is referred to again, is a kind of first embodiment schematic flow sheet of document handling method of the present invention, the present invention
The methods described of embodiment can be performed in intelligent terminal, and intelligent terminal can include smart mobile phone, tablet personal computer, intelligence can
Wearable device, vehicle intelligent equipment etc. are provided with the terminal of memory, the embodiment of the present invention, and methods described includes following step
Suddenly.
S1201:When detecting data creation event, the object for the data object that the data creation event is created is obtained
Mark.In the embodiment of the present invention, the data object created is pressed from both sides including establishment file, generation new file etc., and object identity is then
Including the mark such as folder name or filename.In the installation process of some application, meeting trigger data creates event, for example, trigger
The establishment of the data such as file, now by determining and obtaining the title for the object that these establishment events are created, to obtain pair
As mark.
S1202:Obtain the application identities for the application for creating the data object.Obtain the triggering data creation event
The mark such as the Apply Names of application.In the specific implementation, detection create new file or newly-generated file application and
Its title can use prior art to determine.
S1203:By the object identity and application identities associated storage to file record information.A data can be passed through
The form that the list mentioned in embodiment is stated in storehouse or more carrys out the object identity that associated record application identities are associated with each.Specifically
, above-mentioned S1201 to S1203 acquisition process refers to the description of related content in previous embodiment.
S1204:When detecting the file scan instruction to application, the application identities of the application are obtained.To the text of application
Part scan instruction can be that one or more application that user installs in operation during certain needs to terminal carries out file scan
Scanning application and send.The scanning application can carry out data statistics and management for the data to intelligent terminal
Application.The scanning application can be system application, the corresponding button can be clicked in the control centre of terminal, to trigger text
Part scans and checks scanning result on scanning interface.The application for needing to perform file scan instruction refers in intelligent terminal
Any application, scanning to any one application is performed both by identical processing.The application identities of application can be the name of the application
Claim.
S1205:The object identity associated by the application identities is searched from the file record information.The file record
Information can have recorded application identities, the list of the object identity associated with application identities for one.Wherein, the file record
The object identity associated with application identities recorded in information at least includes:The file that the indicated application of the application identities is created
The file identification of the folder identifier of folder and/or the file of the indicated application generation of the application identities.The file record letter
Cease for a list, the list from server can download obtained simplification list for one, only remember on the simplification list
The object identity of the application identities that application has been installed in this intelligent terminal and its association is recorded.Be stored with server one it is larger
More complete list, intelligent terminal can send a list download request, include in the list download request all
The mounted application of this intelligent terminal application identities, server based on each application identities in the list download request,
Corresponding list list item data are found from complete list, and the list list item data found are sent to the initiation name
The intelligent terminal of single download request, it is preset to obtain file record information in order to which the intelligent terminal generates a simplified list.
The list list item data include corresponding application identities and the folder name and/or filename that are associated with application identities.
S1206:According to each object identity found, scanning is obtained and the association indicated by the application identities
The storage information of each data object, to obtain the storage information scanning result for the application that the application identities are indicated.In the present invention
In embodiment, the storage information includes the occupied information of the memory space shared by data storage, or is the tool of data storage
Volume data amount information.Depositing for each application can be shown in the form of a list at the scanning interface for showing scanning result
Store up information.
The implementing for content such as the step of each in the embodiment of the present invention, the record of the file record information refer to
The description in embodiment is stated, be will not be described here.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The storage information scan process to user is completed promptly, is preferably realized follow-up to various files and file in intelligent terminal
Management, the performance of intelligent terminal is preferably ensure that to a certain extent.
Figure 13 is referred to again, is a kind of second embodiment schematic flow sheet of document handling method of the present invention, the present invention
The methods described of embodiment can be performed in intelligent terminal, and intelligent terminal can include smart mobile phone, tablet personal computer, intelligence can
Wearable device, vehicle intelligent equipment etc. are provided with the terminal of memory, the embodiment of the present invention, and methods described includes following step
Suddenly.
S1301:When detecting the file scan instruction to application, the application identities of the application are obtained.
S1302:The object identity associated by the application identities is searched from file record information.Wherein, the file note
The object identity associated with application identities recorded in record information at least includes:The text that the indicated application of the application identities is created
The file identification of the file of the indicated application generation of folder identifier and/or the application identities of part folder.
When object identity is including indicated by the application identities using the folder identifier of the file created, the text
Part record information is also recorded for being provided that the no flag parameters for needing to scan subfile for each folder identifier.At this
In inventive embodiments, also include flag parameters in the file record information, the flag parameters are to mention in above-described embodiment
IsNeedToScanChildFiles parameters, when the parameter, which is assigned, to scan subfile, it is considered as being non-sweep
Parameter is retouched, when the parameter, which is assigned, needs scanning subfile, it is considered as sweep parameter.
Wherein, when the file level indicated by the application identities using the file created is N grades, then file record
The flag parameters of this document folder mark recorded in information are Non-scanning mode parameter;The Non-scanning mode parameter is used to represent corresponding text
The data stored in file indicated by part folder mark are the data for the application for creating this document folder, and folder identifier is set
Put and shown the file indicated by this document folder mark after Non-scanning mode parameter to scan the file of subfile;It is described
N is default positive integer.
Wherein, when the file level indicated by the application identities using the file created is less than N grades, then file is remembered
The flag parameters of this document folder mark recorded in record information are sweep parameter;The sweep parameter is used to represent corresponding file
The data for the application for being not belonging to create this document folder that is stored with the file indicated by mark are pressed from both sides, folder identifier is provided with
It is the file for needing to scan subfile to show the file indicated by this document folder mark after sweep parameter;The N is default
Positive integer.
S1303:When the object identity found is that the file that folder identifier and this document are pressed from both sides indicated by mark is not
When needing to scan the file of subfile, the occupancy letter for the memory space that the indicated file of this document folder mark takes is calculated
Breath.According to the lookup result to file record information in S1303, judge whether the object identity found is file mark
Know and judge whether the file indicated by this document folder mark is registered as that Ziwen need not be scanned in file record information
The file of part.In one embodiment, it can work as in file record information, the mark of the folder identifier correspondence registration of lookup
When parameter is Non-scanning mode parameter, determine the file indicated by this document folder mark to scan the file of subfile.
The data stored in file indicated by this document folder mark are the data for the application for creating this document folder, can be by its institute
There are data to count for the corresponding data applied.
If on the contrary, in file record information, the flag parameters of the folder identifier corresponding grade of lookup are sweep parameter,
Then include the data (file for example created by other application of other application in the file indicated by this document folder mark
Folder), it is impossible to the data volume that this document is pressed from both sides into the file indicated by mark is counted in corresponding application, for including scanning
The folder identifier of parameter, the embodiment of the present invention does not carry out the statistics of occupied information to it.
S1304:The occupied information that calculating is obtained is defined as the storage number with association indicated by the application identities
According to storage information.
S1305:If the object identity found is file identification, calculate what the indicated file of this document mark took
The occupied information of memory space.In S1305, according to the lookup result to file record information, the object mark found is judged
Whether knowledge is file identification, wherein, determine whether that file identification can be according in file record information, the suffix name of mark is come
Judged, for example, when suffix name includes the suffix names such as " .xml ", " .dll ", it may be determined that these corresponding marks are files
Mark.
S1306:The occupied information that calculating is obtained is defined as the storage number with association indicated by the application identities
According to storage information.For the file of application generation, the size of these files is directly calculated, it is not necessary to be made whether into one
Walk the judgement of scanning.
The occupied information (or being also referred to as the data volume of the application in embodiments of the present invention) of application includes answering
With the occupied information and the occupied information sum of the file generated of the file of establishment.If it should be noted that some is applied
Only generate corresponding file and non-establishment file is pressed from both sides, then only performed when for the applied statistics occupied information S1305 and
S1306, does not perform S1303 and S1304.And if some application only creates N grades of (three-level) files, specific file
It is stored under the N grades of file, therefore, only performs S1303 and S1304 during for the applied statistics occupied information, do not perform
S1305 and S1306.In the specific implementation, intelligent terminal is selectively held according to the object identity in file record information (list)
Row S1303, S1304 combination and/or S1305, S1306 combination.
S1307:Scanning result is shown on preset scanning interface.Wherein, the S1307 can specifically include:Obtain
The quantity of the application identities of storage information scanning is completed;If the quantity got meets default first condition, according to
Interface is scanned described in first renewal policy update;If the quantity got meets default second condition, according to second more
New strategy updates the scanning interface;Wherein, the renewal of the scanning result in the described second more new strategy on storage information is fast
Degree be less than the described first more new strategy on storage information scanning result renewal speed.Specifically, with reference to above-mentioned implementation
The corresponding descriptions of Fig. 7 in example, can meet first condition when more than 80%, be updated according to the first renewal speed, big
Second condition is met when 90%, is updated according to the second renewal speed.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The storage information scanning to user is completed promptly, preferably realizes the follow-up pipe to various files and file in intelligent terminal
Reason, preferably ensure that the performance of intelligent terminal to a certain extent.
Figure 14 is referred to again, is a kind of 3rd embodiment schematic flow sheet of document handling method of the present invention, the present invention
The methods described of embodiment can be performed in intelligent terminal, and intelligent terminal can include smart mobile phone, tablet personal computer, intelligence can
In the terminal of the carries such as wearable device, vehicle intelligent equipment storage, the embodiment of the present invention, methods described comprises the following steps.
S1401:When detecting data creation event, the object for the data object that the data creation event is created is obtained
Mark.In the embodiment of the present invention, the data object created is pressed from both sides including establishment file, generation new file etc., and object identity is then
Including the mark such as folder name or filename.In the installation process of some application, meeting trigger data creates event, for example, trigger
The establishment of the data such as file, now by determining and obtaining the title for the object that these establishment events are created, to obtain pair
As mark.
S1402:Obtain the application identities for the application for creating the data object.In the specific implementation, detection is created newly
The application of file or newly-generated file and its title can use prior art to determine.
S1403:By the object identity and application identities associated storage to file record information.A data can be passed through
The form that the list mentioned in embodiment is stated in storehouse or more carrys out the object identity that associated record application identities are associated with each.Specifically
, above-mentioned S1401 to S1403 acquisition process refers to the description of related content in previous embodiment.
S1405:When detecting the unloading command to application, the application identities of the application are obtained.The pin in intelligent terminal
Some application is sent by unloading command refers to existing mode and sends.The embodiment of the present invention is obtained when detecting unloading command
The application identities of the application of the indicated unloading of the unloading command are taken, the application identities can be the application name for the application being unloaded.
S1406:The object identity associated by the application identities is determined from the file record information;Wherein, the text
The object identity associated with application identities recorded in part record information at least includes:The indicated application of the application identities is created
File folder identifier and/or the indicated application generation of the application identities file file identification.The file
Record information is a list, and the list can be a simplification list obtained from server download, in the simplification list
On only have recorded the object identity of the application identities that application has been installed in this intelligent terminal and its association.It is stored with one in server
Individual larger more complete list, intelligent terminal can send a list download request, and the list download request includes
The application identities of the mounted application of this all intelligent terminals, server is based on each application in the list download request
Mark, finds corresponding list list item data, and the list list item data found are sent into initiation from complete list
The intelligent terminal of the list download request, it is preset to obtain file note in order to which the intelligent terminal generates a simplified list
Record information.The list list item data include corresponding application identities and the folder name and/or file that are associated with application identities
Name.
S1403:According to the object identity of determination, the storage number with the association indicated by the application identities is deleted
According to complete the processing of the unloading to the application.The application is unloaded, it is necessary to be found based on the file record information with being somebody's turn to do
The All Files folder mark and All Files mark of the application identities association of application, and according to these folder identifiers and files-designated
Know, finding can be with deleted file folder and file, the data storage of the association with indicated by the application identities
Refer in the file indicated by all folder identifiers found and the file indicated by file identification, can be deleted
File.
In one embodiment, when object identity includes the file indicated by the application identities using the file created
During folder mark, the file record information is also recorded for being provided that no direct Delete Folder for each folder identifier
Flag parameters.
In a possible embodiment, when the file level that the file created is applied indicated by the application identities is
At N grades, then the flag parameters of this document folder mark recorded in file record information are deletion parameter;Folder identifier is set
Delete and show that the file indicated by this document folder mark is the file that can directly delete after parameter;The N is default
Positive integer.
In one embodiment, the S1403 can specifically include:According to the lookup result to file record information, sentence
Whether the disconnected object identity found is folder identifier and judges whether the file indicated by this document folder mark can be straight
Connect deletion.When the object identity found is folder identifier and file indicated by this document folder mark for can be direct
During the file of deletion, this document folder is deleted.
In one embodiment, the S1403 can specifically include:According to the lookup result to file record information, sentence
Whether the file where whether the disconnected object identity found is file identification and judges the file that this document mark is indicated can
It is enough directly to delete, if can be judged for file identification by suffix name;If the object identity found be file identification,
And this document mark indicate file where file be can not directly delete file when, determine whether this document
Whether the file where identifying the file indicated also includes target sub-folder;If so, then should in file record information
The application identities that file identification is updated to the application with creating the target sub-folder are associated.
The implementing for content such as the step of each in the embodiment of the present invention, the record of the file record information refer to
The description in embodiment is stated, be will not be described here.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The application unloading processing to user is completed promptly, preferably realizes the unloading to various files and file in intelligent terminal
Management, preferably ensure that the performance of intelligent terminal to a certain extent.
Figure 15 is referred to again, is a kind of fourth embodiment schematic flow sheet of document handling method of the present invention, the present invention
The methods described of embodiment can be performed in intelligent terminal, and intelligent terminal can include smart mobile phone, tablet personal computer, intelligence can
In the terminal of the carries such as wearable device, vehicle intelligent equipment storage, the embodiment of the present invention, methods described comprises the following steps.
S1501:When detecting the newly-built processing that there is file in terminal, determine that triggering creates answering for this document folder
With, and obtain the application identities of the application.
S1502:If the file level where the file is N grades, by the folder identifier of the file and institute
Application identities associated record is stated into file record information.
S1503:If the file level where the file is less than N grades, the file that will be stored in the file
File identification and the application identities associated record into file record information;
The N is default positive integer, wherein, if the file level where the file is N grades, the file note
The first parameter also is have recorded for the folder identifier in record information, and/or, if the file level where the file is small
In N grades, also the second parameter is have recorded for the folder identifier in the file record information.
In one embodiment, first parameter is Non-scanning mode parameter, and folder identifier is provided with Non-scanning mode parameter
Show the file indicated by this document folder mark afterwards to scan the file of subfile;Second parameter is scanning
Parameter, folder identifier is provided with showing the file indicated by this document folder mark after sweep parameter needing to scan Ziwen
The file of part.
In one embodiment, first parameter is deletes parameter, and folder identifier is provided with deleting table after parameter
File indicated by bright this document folder mark is the file that can directly delete;Second parameter is non-delete parameter,
Folder identifier, which is provided with deleting, shows that the file indicated by this document folder mark can not be deleted directly after parameter
File.
In embodiments of the present invention, the realization of each above-mentioned step refers to the description of corresponding contents in above-described embodiment,
It is corresponding interior that the specific collection such as document creation and application identities, folder identifier and file identification refers to Fig. 6 with record
The description of appearance.
In one embodiment, the methods described of the embodiment of the present invention can also include:In the uninstall process to application,
The folder identifier associated with the application identities of the application is determined from file record information;Judge this document folder identify whether as
Destination folder is identified, wherein, the indicated file of destination folder mark is the file that can not directly delete;If
Whether destination folder is identified, it is determined that include closing with the application identities under the indicated file of destination folder mark
The file identification of connection;If including, identified from the destination folder and determine a sub-folder under indicated file, and
Obtain the application identities of the application for the sub-folder for creating the determination;The file record information is updated, by the destination folder
The file identification associated with the application identities included under the indicated file of mark and the establishment of the acquisition determination
Sub-folder application application identities association.That is, being applied at some during unloading, for less than N grades
Folder identifier under file, in order to ensure that file will not be deleted by mistake, can will originally recorded the file for being unloaded application
It recorded under another application name.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
Complete follow-up to the storage information scanning of user, using the processing such as unloading promptly, preferably realize to various in intelligent terminal
The management of file and file, preferably ensure that the performance of intelligent terminal to a certain extent.
Figure 16 is referred to again, is a kind of fourth embodiment schematic flow sheet of document handling method of the present invention, the present invention
The methods described of embodiment can be performed in intelligent terminal, and intelligent terminal can include smart mobile phone, tablet personal computer, intelligence can
In the terminal of the carries such as wearable device, vehicle intelligent equipment storage, the embodiment of the present invention, methods described comprises the following steps.
S1601:When scanning multimedia file, the data storage of all multimedia files is determined according to multimedia database
Information.Multimedia file is typically stored in multimedia database, is managed by multimedia database, passes through multi-medium data
Storehouse can directly obtain the data storage information of all multimedia files.The data storage information can be all multimedia files
Total data volume.
S1602:The historical storage information of the target storage space is obtained, and according to the data storage information of determination
The storage change amount of the target storage space is obtained with the historical storage information.The historical storage information refers to the last time
The storage information for all multimedia files for obtaining and recording, equally, historical storage information are counted by multimedia database
Can count obtained all multimedia files total data volume the last time.The data determined in the S1601 can be deposited
The historical storage data that storage information and S1602 are determined make difference, and the difference is storage change amount.If storage change amount is more than
Default threshold value, then meet the default condition of scanning.If no more than described default threshold value, show that storage change amount is discontented with
The default condition of scanning of foot.
S1603:If the storage change amount meets the default condition of scanning, scanning respectively determines the target storage
The data volume of each multimedia file of space, obtains scanning result.When meeting the condition of scanning, show that storage change amount is larger, deposit
In the renewal to multi-medium data, there is deletion multimedia file, increase multimedia file or the situation for changing multimedia file,
It therefore, it can retrieve the data volume of multimedia file based on multimedia database, can be with sub-category to multimedia file
Data volume is scanned, and specific classification includes:Picture, video, music etc., scanning obtain total storage of intelligent terminal picture
Information, the storage information of video, the storage information of the multimedia file such as the storage information of music obtains total multimedia file
Data volume.And record is used as the history of the multimedia file scanned in the data volume of the obtained multimedia files of S1603 next time
Storage information.
S1604:By each multimedia recorded text if the storage change amount is unsatisfactory for the default condition of scanning
The data volume of part is used as scanning result.If being unsatisfactory for the condition of scanning, show storage change amount less, the model allowed in error
In enclosing, it therefore, it can directly using the data volume of the last all kinds of multimedia files for scanning and obtaining and recording as scanning result,
The data volume of all kinds of multimedia files is obtained without being scanned again by multi-medium data.
Using the embodiment of the present invention, the statistics of the storage information of multimedia file can be rapidly carried out, is preferably realized
Management to various files and file in intelligent terminal, preferably ensure that the property of intelligent terminal to a certain extent
Energy.
The document handling method and intelligent terminal of the embodiment of the present invention are described in detail below.
As shown in figure 17, be the present invention a kind of document handling apparatus first embodiment structural representation, the present invention
The described device of embodiment can be arranged in all types of intelligent terminals, specifically, described device includes following module.
Logging modle 1701, for when detecting data creation event, obtaining the number that the data creation event is created
According to the object identity of object;Obtain the application identities for the application for creating the data object;And by the object identity and application
Associated storage is identified to file record information.
Processing module 1702, for when detecting the file scan instruction to application, obtaining the application identities of the application;
The object identity associated by the application identities is searched from the file record information;According to each object identity found, sweep
The storage information obtained with each data object of the association indicated by the application identities is retouched, to obtain to the application mark
Know the storage information scanning result of the application indicated.
In one embodiment, the object identity associated with application identities recorded in the file record information is at least wrapped
Include:The folder identifier for the file that the indicated application of the application identities is created and/or the indicated application of the application identities
The file identification of the file of generation.
In a possible embodiment, the processing module 1702, for according to each object identity found, sweeping
When retouching acquisition and the storage information of each data object of the association indicated by the application identities, specifically for according to text
The lookup result of part record information, judges whether the object identity found is folder identifier and judges this document folder mark
Whether indicated file is registered as that the file of subfile need not be scanned in file record information;When what is found
Object identity is folder identifier and this document presss from both sides the file indicated by mark to scan the file of subfile
When, calculate the occupied information for the memory space that the indicated file of this document folder mark takes;Obtained occupied information will be calculated
It is defined as the storage information with the data object of association indicated by the application identities.
In a possible embodiment, the processing module 1702, for according to each object identity found, sweeping
When retouching acquisition and the storage information of each data object of the association indicated by the application identities, specifically for for basis
To the lookup result of file record information, judge whether the object identity found is file identification;If the object found
File identification is designated, then calculates the occupied information for the memory space that the indicated file of this document mark takes;Calculating is obtained
Occupied information be defined as storage information with the data object of association indicated by the application identities.
In a possible embodiment, when object identity is included indicated by the application identities using the file created
Folder identifier when, the file record information be also recorded for for each folder identifier be provided that it is no need scanning
The flag parameters of subfile.
In a possible embodiment, when the file level that the file created is applied indicated by the application identities is
At N grades, then the flag parameters of this document folder mark recorded in file record information are Non-scanning mode parameter;The Non-scanning mode parameter
Data for representing to store in the file indicated by corresponding folder identifier are the number for the application for creating this document folder
According to folder identifier is provided with showing the file indicated by this document folder mark after Non-scanning mode parameter that son need not be scanned
The file of file;The N is default positive integer.
In a possible embodiment, when the file level indicated by the application identities using the file created is small
When N grades, then the flag parameters of this document folder mark recorded in file record information are sweep parameter;The sweep parameter is used
The data for creating the application that this document is pressed from both sides, text are not belonging in representing to be stored with the file indicated by corresponding folder identifier
Part folder mark is provided with showing after sweep parameter that the file indicated by this document folder mark is the text for needing to scan subfile
Part is pressed from both sides;The N is default positive integer.
In a possible embodiment, multiple application identities, configuration scanning circle are have recorded in the file record information
Face is used for the scanning result for recording application identities and storage information, and the processing module 1702 is additionally operable to acquisition and has completed storage
The quantity of the application identities of information scanning;If the quantity got meets default first condition, plan is updated according to first
Slightly update the scanning interface;If the quantity got meets default second condition, policy update is updated according to second
The scanning interface;Wherein, in the described second more new strategy on the scanning result of storage information renewal speed be less than it is described
In first more new strategy on storage information scanning result renewal speed.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The storage information scan process to user is completed promptly, is preferably realized follow-up to various files and file in intelligent terminal
Management, the performance of intelligent terminal is preferably ensure that to a certain extent.
As shown in figure 18, be the present invention a kind of document handling apparatus second embodiment structural representation, the present invention
The described device of embodiment can be arranged in all types of intelligent terminals, specifically, described device includes following module.
Logging modle 1801, for when detecting data creation event, obtaining the number that the data creation event is created
According to the object identity of object;Obtain the application identities for the application for creating the data object;And by the object identity and application
Associated storage is identified to file record information;
Processing module 1802, for when detecting the unloading command to application, obtaining the application identities of the application;From institute
State and object identity associated by the application identities is determined in file record information;According to the object identity of determination, delete with it is described
The data storage of association indicated by application identities, to complete the unloading to the application.
In one embodiment, the object identity associated with application identities recorded in the file record information is at least wrapped
Include:The folder identifier for the file that the indicated application of the application identities is created and/or the indicated application of the application identities
The file identification of the file of generation.
In a possible embodiment, when object identity is included indicated by the application identities using the file created
Folder identifier when, the file record information be also recorded for for each folder identifier be provided that it is no it is direct delete
The flag parameters of file.
In a possible embodiment, when the file level that the file created is applied indicated by the application identities is
At N grades, then the flag parameters of this document folder mark recorded in file record information are deletion parameter;Folder identifier is set
Delete and show that the file indicated by this document folder mark is the file that can directly delete after parameter;The N is default
Positive integer.
In a possible embodiment, the processing module 1802, for the object identity according to determination, delete with
During the data storage of the association indicated by the application identities, specifically for according to the lookup knot to file record information
Really, judge whether the object identity found is folder identifier and whether judges the file indicated by this document folder mark
Can directly it delete;When the object identity found is that the file that folder identifier and this document are pressed from both sides indicated by mark can
When directly deleting, this document folder is deleted.
In a possible embodiment, the processing module 1802, for the object identity according to determination, delete with
During the data storage of the association indicated by the application identities, specifically for according to the lookup knot to file record information
Really, judge whether the object identity found is file identification and judges the file where the file that this document mark is indicated
Whether can directly delete;If the object identity found is the text where the file that file identification and this document mark are indicated
Part folder can not be deleted directly, and whether the file where determining whether the file that this document mark is indicated also includes target
File;If so, this document then to be identified to the application being updated to creating the target sub-folder in file record information
Application identities association.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The application unloading processing to user is completed promptly, preferably realizes the unloading to various files and file in intelligent terminal
Management, preferably ensure that the performance of intelligent terminal to a certain extent.
As shown in figure 19, be the present invention a kind of document handling apparatus 3rd embodiment structural representation, the present invention
The described device of embodiment can be arranged in all types of intelligent terminals, specifically, described device includes following module.
Acquisition module 1901, for when detecting the newly-built processing that there is file in terminal, determining that triggering is created
The application of this document folder, and obtain the application identities of the application;Processing module 1902, if for the file where the file
Level is N grades, then by the folder identifier of the file and the application identities associated record into file record information;If
File level where the file is less than N grades, then by the file identification of the file stored in the file with it is described
Application identities associated record is into file record information;The N is default positive integer.
In one embodiment, if file level where the file is N grade, in the file record information and also
The first parameter is have recorded for the folder identifier, and/or, it is described if the file level where the file is less than N grades
Also the second parameter is have recorded in file record information for the folder identifier.
In a possible embodiment, first parameter is Non-scanning mode parameter, and folder identifier is provided with non-sweep
Retouch and show the file indicated by this document folder mark after parameter to scan the file of subfile;Second parameter
For sweep parameter, folder identifier is provided with showing that the file indicated by this document folder mark is swept for needs after sweep parameter
Retouch the file of subfile.
In a possible embodiment, first parameter is deletes parameter, and folder identifier is provided with deleting ginseng
Show that the file indicated by this document folder mark is the file that can directly delete after number;Second parameter is non-delete
Parameter, folder identifier, which is provided with deleting, to be shown the file indicated by this document folder mark can not directly delete after parameter
The file removed.
In a possible embodiment, the processing module 1902, is additionally operable to judge that this document folder is identified whether as mesh
Folder identifier is marked, wherein, the indicated file of destination folder mark is the file that can not directly delete;If mesh
Mark folder identifier, it is determined that whether include associating with the application identities under the indicated file of destination folder mark
File identification;If including being identified from the destination folder and determining a sub-folder under indicated file, and obtained
Take the application identities of the application for the sub-folder for creating the determination;The file record information is updated, by the destination folder mark
Know the determination that creates of file identification associate with the application identities that includes under indicated file and the acquisition
The application identities association of the application of sub-folder.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
Complete follow-up to the storage information scanning of user, using the processing such as unloading promptly, preferably realize to various in intelligent terminal
The management of file and file, preferably ensure that the performance of intelligent terminal to a certain extent.
As shown in figure 20, be the present invention a kind of document handling apparatus fourth embodiment structural representation, the present invention
The described device of embodiment can be arranged in all types of intelligent terminals, specifically, described device includes following module.
Determining module 2001, for when scanning multimedia file, all multimedia texts to be determined according to multimedia database
The data storage information of part;Acquisition module 2002, the historical storage information for obtaining all multimedia files, and according to determination
The data storage information and the historical storage information obtain storage change amount;Processing module 2003, if for described
Storage change amount meets the default condition of scanning, then scanning determines each multimedia file of target storage space respectively
Data volume, obtains scanning result.
In a possible embodiment, the processing module 2003, is unsatisfactory for if being additionally operable to the storage change amount
The default condition of scanning, then regard the data volume of each multimedia file recorded as scanning result.
It should be noted that in above-mentioned device corresponding to from Figure 17 to Figure 20 embodiment, the tool of each functional module
Body realizes the description for referring to related content in embodiment corresponding to Fig. 1 to Figure 16, will not be repeated here.
Using the embodiment of the present invention, the statistics of the storage information of multimedia file can be rapidly carried out, is preferably realized
Management to various files and file in intelligent terminal, preferably ensure that the property of intelligent terminal to a certain extent
Energy.
Figure 21 is referred to again, is a kind of structural representation of intelligent terminal of the embodiment of the present invention, the embodiment of the present invention
The intelligent terminal necessary module such as including power supply, in addition to:User interface 2101, network interface 2102, processor 2103 with
And memory 2104.Data phase between the user interface 2101, network interface 2102, processor 2103 and memory 2104
Even.
The user interface 2101 is used to realize interacting between intelligent terminal and user, and the user interface 2101 includes touching
Touch the modules such as screen, keyboard.The network interface 2102 is mainly used in and external equipment, and such as webserver is interacted, can
For obtaining the data such as file record information, and upload related data.
The memory 2104 can include volatile memory (volatile memory), such as random access memory
Device (random-access memory, RAM);Memory 2104 can also include nonvolatile memory (non-volatile
Memory), such as flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state hard disc
(solid-state drive, SSD);Memory 2104 can also include the combination of the memory of mentioned kind.
The processor 2103 can be central processing unit (central processing unit, CPU).The processing
Device 2103 can further include hardware chip.Above-mentioned hardware chip can be application specific integrated circuit (application-
Specific integrated circuit, ASIC), PLD (programmable logic device,
PLD) or its combination.Above-mentioned PLD can be CPLD (complex programmable logic
Device, CPLD), field programmable gate array (field-programmable gate array, FPGA), general battle array
Row logic (generic array logic, GAL) or its any combination.
In one embodiment, the memory 2104 is additionally operable to storage program instruction.The processor 2103 can be adjusted
With the programmed instruction stored in the memory 2104, the text corresponding to the application Figure 12 and Figure 13 as shown in embodiment is realized
Part processing method;Or, the processor 2103 calls the programmed instruction stored in the memory 2104, realizes such as the application
The document handling method of embodiment corresponding to Figure 14;The processor 2103 calls the program stored in the memory 2104 to refer to
Order, realizes the document handling method of the embodiment as corresponding to the application Figure 15;The processor 2103 calls the memory
The programmed instruction stored in 2104, realizes the document handling method of the embodiment as corresponding to the application Figure 16.
Using the embodiment of the present invention, special file record information can be generated, can be fast based on this document record information
The storage information scanning to user is completed promptly, is handled using unloading etc., additionally it is possible to rapidly carry out the storage of multimedia file
The statistics of information, preferably realizes the management to various files and file in intelligent terminal, to a certain extent preferably
Ground ensure that the performance of intelligent terminal.
Above disclosed is only a part of embodiment of the invention, can not limit the right of the present invention with this certainly
Scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to right of the present invention
It is required that the equivalent variations made, still fall within and invent covered scope.
Claims (35)
1. a kind of document handling method, it is characterised in that including:
When detecting data creation event, the object identity for the data object that the data creation event is created is obtained;Obtain
Create the application identities of the application of the data object;And by the object identity and application identities associated storage to file record
Information;
When detecting the file scan instruction to application, the application identities of the application are obtained;From the file record information
Search the object identity associated by the application identities;According to each object identity found, scanning is obtained and the application identities
The storage information of each data object of indicated association, to obtain the storage information for the application that the application identities are indicated
Scanning result.
2. the method as described in claim 1, it is characterised in that each object identity that the basis is found, scanning obtain with
The storage information of each data object of association indicated by the application identities, including:
Whether according to the lookup result to file record information, it is folder identifier and judgement to judge the object identity found
Whether the file indicated by this document folder mark is registered as that the file of subfile need not be scanned in file record information
Folder;
When the object identity found is that the file that folder identifier and this document are pressed from both sides indicated by mark is that need not scan son
During the file of file, the occupied information for the memory space that the indicated file of this document folder mark takes is calculated;
The occupied information that calculating is obtained is defined as the storage letter with the data object of association indicated by the application identities
Breath.
3. the method as described in claim 1, it is characterised in that each object identity that the basis is found, scanning obtain with
The storage information of each data object of association indicated by the application identities, including:
According to the lookup result to file record information, judge whether the object identity found is file identification;
If the object identity found is file identification, the memory space that the indicated file of this document mark takes is calculated
Occupied information;
The occupied information that calculating is obtained is defined as the storage letter with the data object of association indicated by the application identities
Breath.
4. the method as described in claim any one of 1-3, it is characterised in that when object identity is indicated by the application identities
Using the file of establishment folder identifier when, the file record information is also recorded for setting for each folder identifier
Whether that puts needs the flag parameters of scanning subfile.
5. method as claimed in claim 4, it is characterised in that when the file that establishment is applied indicated by the application identities
When file level is N grades, then the flag parameters of this document folder mark recorded in file record information are Non-scanning mode parameter;
The Non-scanning mode parameter is used to represent that the data stored in the file indicated by corresponding folder identifier are to create
The data of the application of this document folder, folder identifier is provided with showing the text indicated by this document folder mark after Non-scanning mode parameter
Part folder is that need not scan the file of subfile;
The N is default positive integer.
6. method as claimed in claim 4, it is characterised in that when the file that establishment is applied indicated by the application identities
When file level is less than N grades, then the flag parameters of this document folder mark recorded in file record information are sweep parameter;
The sweep parameter is used to represent to be stored with the file indicated by corresponding folder identifier to be not belonging to create this article
The data of the application of part folder, folder identifier is provided with showing that the file indicated by this document folder mark is after sweep parameter
Need the file of scanning subfile;
The N is default positive integer.
7. the method as described in claim 1, it is characterised in that have recorded multiple application identities in the file record information,
Configuration scanning interface is used for the scanning result for recording application identities and storage information, and methods described also includes:
Obtain the quantity for the application identities for having completed storage information scanning;
If the quantity got meets default first condition, interface is scanned according to described in the first renewal policy update;
If the quantity got meets default second condition, interface is scanned according to described in the second renewal policy update;
Wherein, the renewal speed in the described second more new strategy on the scanning result of storage information is less than the described first renewal plan
In slightly on storage information scanning result renewal speed.
8. a kind of document handling method, it is characterised in that including:
When detecting data creation event, the object identity for the data object that the data creation event is created is obtained;Obtain
Create the application identities of the application of the data object;And by the object identity and application identities associated storage to file record
Information;
When detecting the unloading command to application, the application identities of the application are obtained;Determined from the file record information
Object identity associated by the application identities;According to the object identity of determination, delete and the application indicated by the application identities
The data storage of association, to complete the processing of the unloading to the application.
9. method as claimed in claim 8, it is characterised in that when object identity is included indicated by the application identities using wound
During the folder identifier for the file built, the file record information is also recorded for being provided that for each folder identifier
The flag parameters of no direct Delete Folder.
10. method as claimed in claim 9, it is characterised in that when the file indicated by the application identities using establishment
File level be N grade when, then recorded in file record information this document folder mark flag parameters for deletion parameter;File
Folder mark, which is provided with deleting, shows that the file indicated by this document folder mark is the file that can directly delete after parameter;
The N is default positive integer.
11. the method as described in claim any one of 8-10, it is characterised in that the object identity according to determination, is deleted
With the data storage of the association indicated by the application identities, including:
According to the lookup result to file record information, judge whether the object identity found is folder identifier and judges
Whether the file indicated by this document folder mark can directly be deleted;
When the object identity found is that the file that folder identifier and this document are pressed from both sides indicated by mark can be deleted directly
When, delete this document folder.
12. the method as described in claim any one of 8-10, it is characterised in that the object identity according to determination, is deleted
With the data storage of the association indicated by the application identities, including:
According to the lookup result to file record information, judge whether the object identity found is file identification and judges to be somebody's turn to do
Whether the file where the file that file identification is indicated can directly be deleted;
If the object identity found is that the file where the file that file identification and this document mark are indicated can not be direct
Delete, whether the file where determining whether the file that this document mark is indicated also includes target sub-folder;
If so, this document then to be identified to answering for the application for being updated to and creating the target sub-folder in file record information
With mark association.
13. a kind of document handling method, it is characterised in that including:
When detecting the newly-built processing that there is file in terminal, determine that triggering creates the application of this document folder, and obtain
The application identities of the application;
If the file level where the file is N grades, by the folder identifier of the file and the application identities
Associated record is into file record information;
If the file level where the file is less than N grades, by the file identification of the file stored in the file
With the application identities associated record into file record information;
The N is default positive integer.
14. method as claimed in claim 13, it is characterised in that if the file level where the file is N grades, institute
State in file record information and also have recorded the first parameter for the folder identifier, and/or, if the text where the file
Part level is less than in N grades, the file record information also have recorded the second parameter for the folder identifier.
15. method as claimed in claim 14, it is characterised in that
First parameter is Non-scanning mode parameter, and folder identifier is provided with showing this document folder mark institute after Non-scanning mode parameter
The file of instruction is that need not scan the file of subfile;
Second parameter is sweep parameter, and folder identifier is provided with showing that this document folder mark is indicated after sweep parameter
File be need scan subfile file.
16. method as claimed in claim 14, it is characterised in that
First parameter is deletes parameter, and folder identifier, which is provided with deleting, shows that this document folder mark is indicated after parameter
File be the file that can directly delete;
Second parameter is non-delete parameter, and folder identifier, which is provided with deleting, shows that this document folder mark is signified after parameter
The file shown is the file that can not directly delete.
17. method as claimed in claim 13, it is characterised in that also include:
Judge that this document folder identifies whether to identify for destination folder, wherein, the indicated file of destination folder mark is
The file that can not directly delete;
If destination folder is identified, it is determined that whether include answering with described under the indicated file of destination folder mark
With the file identification of mark association;
If including being identified from the destination folder and determining a sub-folder under indicated file, and obtain establishment
The application identities of the application of the sub-folder of the determination;
The file record information is updated, it is including with the application mark under indicated file that the destination folder is identified
The application identities of the application of the sub-folder of the file identification with the establishment of the acquisition of knowledge the association determination are associated.
18. a kind of document handling apparatus, it is characterised in that including:
Logging modle, for when detecting data creation event, obtaining the data object that the data creation event is created
Object identity;Obtain the application identities for the application for creating the data object;And associate the object identity with application identities
Store file record information;
Processing module, for when detecting the file scan instruction to application, obtaining the application identities of the application;From the text
The object identity associated by the application identities is searched in part record information;According to each object identity found, scanning obtain with
The storage information of each data object of association indicated by the application identities, to obtain what is indicated the application identities
The storage information scanning result of application.
19. device as claimed in claim 18, it is characterised in that
The processing module, specifically for according to the lookup result to file record information, judging that the object identity found is
It is no to be folder identifier and judge whether the file indicated by this document folder mark is registered as not in file record information
Need the file of scanning subfile;When the object identity found is indicated by folder identifier and this document folder mark
File is when need not scan the file of subfile, to calculate the memory space that the indicated file of this document folder mark takes
Occupied information;The occupied information that calculating is obtained is defined as and the data object of association indicated by the application identities
Storage information.
20. device as claimed in claim 18, it is characterised in that
The processing module, specifically for according to the lookup result to file record information, judging that the object identity found is
No is file identification;If the object identity found is file identification, calculate what the indicated file of this document mark took
The occupied information of memory space;The occupied information that calculating is obtained is defined as the number with association indicated by the application identities
According to the storage information of object.
21. the device as described in claim any one of 18-20, it is characterised in that when object identity is the application identities institute
When indicating the folder identifier for the file that application is created, the file record information is also recorded for being directed to each file mark
Know and be provided that the no flag parameters for needing to scan subfile.
22. device as claimed in claim 21, it is characterised in that when the file indicated by the application identities using establishment
File level be N grade when, then recorded in file record information this document folder mark flag parameters be Non-scanning mode parameter;
The Non-scanning mode parameter is used to represent that the data stored in the file indicated by corresponding folder identifier are to create
The data of the application of this document folder, folder identifier is provided with showing the text indicated by this document folder mark after Non-scanning mode parameter
Part folder is that need not scan the file of subfile;
The N is default positive integer.
23. device as claimed in claim 21, it is characterised in that when the file indicated by the application identities using establishment
File level be less than N grade when, then recorded in file record information this document folder mark flag parameters be sweep parameter;
The sweep parameter is used to represent to be stored with the file indicated by corresponding folder identifier to be not belonging to create this article
The data of the application of part folder, folder identifier is provided with showing that the file indicated by this document folder mark is after sweep parameter
Need the file of scanning subfile;
The N is default positive integer.
24. device as claimed in claim 18, it is characterised in that multiple application marks are have recorded in the file record information
Know, configuration scanning interface is used for the scanning result for recording application identities and storage information,
The processing module, is additionally operable to obtain the quantity for the application identities for having completed storage information scanning;If the number got
Amount meets default first condition, then scans interface according to described in the first renewal policy update;If the quantity got is met
Default second condition, then scan interface according to described in the second renewal policy update;Wherein, in the described second more new strategy on
The renewal speed of the scanning result of storage information be less than the described first more new strategy on storage information scanning result more
New speed.
25. a kind of document handling apparatus, it is characterised in that including:
Logging modle, for when detecting data creation event, obtaining the data object that the data creation event is created
Object identity;Obtain the application identities for the application for creating the data object;And associate the object identity with application identities
Store file record information;
Processing module, for when detecting the unloading command to application, obtaining the application identities of the application;From file note
The object identity associated by the application identities is determined in record information;According to the object identity of determination, delete and the application identities
The data storage of indicated association, to complete the unloading to the application.
26. device as claimed in claim 25, it is characterised in that when object identity includes applying indicated by the application identities
During the folder identifier of the file of establishment, the file record information is also recorded for what is set for each folder identifier
Whether the flag parameters of direct Delete Folder.
27. device as claimed in claim 26, it is characterised in that when the file indicated by the application identities using establishment
File level be N grade when, then recorded in file record information this document folder mark flag parameters for deletion parameter;File
Folder mark, which is provided with deleting, shows that the file indicated by this document folder mark is the file that can directly delete after parameter;
The N is default positive integer.
28. the device as described in claim any one of 25-27, it is characterised in that
The processing module, specifically for according to the lookup result to file record information, judging that the object identity found is
It is no to be folder identifier and judge whether the file indicated by this document folder mark directly be deleted;When pair found
As be designated folder identifier and this document folder mark indicated by file can directly delete when, delete this document folder.
29. the device as described in claim any one of 25-27, it is characterised in that
The processing module, specifically for according to the lookup result to file record information, judging that the object identity found is
Whether the file where the no file for being file identification and judging this document mark instruction can directly be deleted;If finding
Object identity for file identification and this document mark indicate file where file can not directly delete, further
Whether the file where judging the file that this document mark is indicated also includes target sub-folder;If so, then in file record
This document is identified in information and is updated to associate with the application identities of the application of the establishment target sub-folder.
30. a kind of document handling apparatus, it is characterised in that including:
Acquisition module, for when detecting the newly-built processing that there is file in terminal, determining that triggering creates this document folder
Application, and obtain the application identities of the application;
Processing module, if for the file level where the file be N grade, by the folder identifier of the file with
The application identities associated record is into file record information;, will if the file level where the file is less than N grades
The file identification of the file stored in the file is with the application identities associated record into file record information;
The N is default positive integer.
31. device as claimed in claim 30, it is characterised in that if the file level where the file is N grades, institute
State in file record information and also have recorded the first parameter for the folder identifier, and/or, if the text where the file
Part level is less than in N grades, the file record information also have recorded the second parameter for the folder identifier.
32. device as claimed in claim 31, it is characterised in that
First parameter is Non-scanning mode parameter, and folder identifier is provided with showing this document folder mark institute after Non-scanning mode parameter
The file of instruction is that need not scan the file of subfile;
Second parameter is sweep parameter, and folder identifier is provided with showing that this document folder mark is indicated after sweep parameter
File be need scan subfile file.
33. device as claimed in claim 31, it is characterised in that
First parameter is deletes parameter, and folder identifier, which is provided with deleting, shows that this document folder mark is indicated after parameter
File be the file that can directly delete;
Second parameter is non-delete parameter, and folder identifier, which is provided with deleting, shows that this document folder mark is signified after parameter
The file shown is the file that can not directly delete.
34. device as claimed in claim 31, it is characterised in that
The processing module, is additionally operable to judge that this document folder identifies whether to identify for destination folder, wherein, destination folder mark
It is the file that can not directly delete to know indicated file;If destination folder is identified, it is determined that the file destination
Press from both sides the file identification for whether including associating with the application identities under the file indicated by mark;If including from the target
A sub-folder is determined under file indicated by folder identifier, and obtains the application for the sub-folder for creating the determination
Application identities;The file record information is updated, will be included under the indicated file of destination folder mark and institute
The application identities for stating the application of the sub-folder of file identification with the establishment of the acquisition determination of application identities association are associated.
35. a kind of intelligent terminal, it is characterised in that including memory and processor,
The memory, for storing the file record information that the processor processing is obtained;
The processor, for performing the document handling method as described in any one of claim 1 to 7, or for performing as weighed
Profit requires the document handling method described in 8 to 12 any one, or for performing the text as described in any one of claim 13 to 17
Part processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710132670.2A CN106991130A (en) | 2017-03-07 | 2017-03-07 | A kind of document handling method, device and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710132670.2A CN106991130A (en) | 2017-03-07 | 2017-03-07 | A kind of document handling method, device and intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106991130A true CN106991130A (en) | 2017-07-28 |
Family
ID=59411526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710132670.2A Pending CN106991130A (en) | 2017-03-07 | 2017-03-07 | A kind of document handling method, device and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106991130A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089823A (en) * | 2017-12-29 | 2018-05-29 | 北京百度网讯科技有限公司 | For the information output method and device of storage system |
CN108228770A (en) * | 2017-12-27 | 2018-06-29 | 青岛海信移动通信技术股份有限公司 | A kind of method and device of application file source inquiry |
CN108563754A (en) * | 2018-04-16 | 2018-09-21 | Oppo广东移动通信有限公司 | Document handling method, device, mobile terminal and computer readable storage medium |
CN109039786A (en) * | 2018-09-28 | 2018-12-18 | 山东中创软件商用中间件股份有限公司 | A kind of topology drawing generating method, device, equipment and readable storage medium storing program for executing |
CN109189413A (en) * | 2018-08-24 | 2019-01-11 | 广州优视网络科技有限公司 | Using the monitor method, device and electronic equipment of unloading |
CN109359091A (en) * | 2018-09-26 | 2019-02-19 | Oppo广东移动通信有限公司 | File management method, device, terminal and computer readable storage medium |
CN110019040A (en) * | 2018-09-26 | 2019-07-16 | Oppo广东移动通信有限公司 | A kind of file processing method, mobile terminal and storage medium |
CN110333906A (en) * | 2019-05-16 | 2019-10-15 | 广州明珞汽车装备有限公司 | Method, system, device and the storage medium of equipment are reserved in a kind of quick processing |
CN111522780A (en) * | 2019-02-01 | 2020-08-11 | 华为技术有限公司 | Method and terminal for recording file creator information |
CN112654974A (en) * | 2018-10-31 | 2021-04-13 | 深圳市欢太科技有限公司 | File scanning method, file scanning device and terminal equipment |
CN113392070A (en) * | 2021-07-07 | 2021-09-14 | 百果园技术(新加坡)有限公司 | Online document management method, device, system, equipment and storage medium |
CN113641834A (en) * | 2021-06-30 | 2021-11-12 | 荣耀终端有限公司 | File processing method and electronic equipment |
CN113722279A (en) * | 2021-08-19 | 2021-11-30 | 北京达佳互联信息技术有限公司 | Method, device and equipment for determining size of folder and storage medium |
CN115033910A (en) * | 2021-11-12 | 2022-09-09 | 荣耀终端有限公司 | Access record display method and electronic equipment |
CN116894007A (en) * | 2023-09-04 | 2023-10-17 | 统信软件技术有限公司 | Catalog information display method, device, computing equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744692A (en) * | 2013-12-13 | 2014-04-23 | 贝壳网际(北京)安全技术有限公司 | Method and system for determining size of mobile terminal storage space occupied by application software |
CN103838843A (en) * | 2014-03-03 | 2014-06-04 | 联想(北京)有限公司 | File processing method and electronic equipment |
CN103886059A (en) * | 2014-03-17 | 2014-06-25 | 可牛网络技术(北京)有限公司 | Method and device for cleaning up files |
CN105302832A (en) * | 2014-07-24 | 2016-02-03 | 中兴通讯股份有限公司 | File management method and apparatus |
CN105488217A (en) * | 2015-12-17 | 2016-04-13 | 广州三星通信技术研究有限公司 | Device and method for executing correlated operation in terminal |
-
2017
- 2017-03-07 CN CN201710132670.2A patent/CN106991130A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744692A (en) * | 2013-12-13 | 2014-04-23 | 贝壳网际(北京)安全技术有限公司 | Method and system for determining size of mobile terminal storage space occupied by application software |
CN103838843A (en) * | 2014-03-03 | 2014-06-04 | 联想(北京)有限公司 | File processing method and electronic equipment |
CN103886059A (en) * | 2014-03-17 | 2014-06-25 | 可牛网络技术(北京)有限公司 | Method and device for cleaning up files |
CN105302832A (en) * | 2014-07-24 | 2016-02-03 | 中兴通讯股份有限公司 | File management method and apparatus |
CN105488217A (en) * | 2015-12-17 | 2016-04-13 | 广州三星通信技术研究有限公司 | Device and method for executing correlated operation in terminal |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228770A (en) * | 2017-12-27 | 2018-06-29 | 青岛海信移动通信技术股份有限公司 | A kind of method and device of application file source inquiry |
CN108089823B (en) * | 2017-12-29 | 2020-12-25 | 北京百度网讯科技有限公司 | Information output method and device for storage system |
CN108089823A (en) * | 2017-12-29 | 2018-05-29 | 北京百度网讯科技有限公司 | For the information output method and device of storage system |
CN108563754A (en) * | 2018-04-16 | 2018-09-21 | Oppo广东移动通信有限公司 | Document handling method, device, mobile terminal and computer readable storage medium |
CN108563754B (en) * | 2018-04-16 | 2021-09-28 | Oppo广东移动通信有限公司 | File processing method and device, mobile terminal and computer readable storage medium |
CN109189413A (en) * | 2018-08-24 | 2019-01-11 | 广州优视网络科技有限公司 | Using the monitor method, device and electronic equipment of unloading |
CN109359091A (en) * | 2018-09-26 | 2019-02-19 | Oppo广东移动通信有限公司 | File management method, device, terminal and computer readable storage medium |
CN110019040A (en) * | 2018-09-26 | 2019-07-16 | Oppo广东移动通信有限公司 | A kind of file processing method, mobile terminal and storage medium |
CN109039786A (en) * | 2018-09-28 | 2018-12-18 | 山东中创软件商用中间件股份有限公司 | A kind of topology drawing generating method, device, equipment and readable storage medium storing program for executing |
CN112654974A (en) * | 2018-10-31 | 2021-04-13 | 深圳市欢太科技有限公司 | File scanning method, file scanning device and terminal equipment |
CN111522780B (en) * | 2019-02-01 | 2024-01-30 | 华为技术有限公司 | Method and terminal for recording information of file creator |
CN111522780A (en) * | 2019-02-01 | 2020-08-11 | 华为技术有限公司 | Method and terminal for recording file creator information |
CN110333906A (en) * | 2019-05-16 | 2019-10-15 | 广州明珞汽车装备有限公司 | Method, system, device and the storage medium of equipment are reserved in a kind of quick processing |
CN110333906B (en) * | 2019-05-16 | 2023-06-16 | 广州明珞装备股份有限公司 | Method, system, device and storage medium for rapidly processing reserved equipment |
CN113641834A (en) * | 2021-06-30 | 2021-11-12 | 荣耀终端有限公司 | File processing method and electronic equipment |
CN113392070A (en) * | 2021-07-07 | 2021-09-14 | 百果园技术(新加坡)有限公司 | Online document management method, device, system, equipment and storage medium |
CN113392070B (en) * | 2021-07-07 | 2024-05-14 | 百果园技术(新加坡)有限公司 | Online document management method, device, system, equipment and storage medium |
CN113722279A (en) * | 2021-08-19 | 2021-11-30 | 北京达佳互联信息技术有限公司 | Method, device and equipment for determining size of folder and storage medium |
CN113722279B (en) * | 2021-08-19 | 2024-03-01 | 北京达佳互联信息技术有限公司 | Method, device, equipment and storage medium for determining size of folder |
CN115033910B (en) * | 2021-11-12 | 2023-04-07 | 荣耀终端有限公司 | Access record display method and electronic equipment |
CN115033910A (en) * | 2021-11-12 | 2022-09-09 | 荣耀终端有限公司 | Access record display method and electronic equipment |
CN116894007B (en) * | 2023-09-04 | 2023-12-15 | 统信软件技术有限公司 | Catalog information display method, device, computing equipment and storage medium |
CN116894007A (en) * | 2023-09-04 | 2023-10-17 | 统信软件技术有限公司 | Catalog information display method, device, computing equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106991130A (en) | A kind of document handling method, device and intelligent terminal | |
JP6303023B2 (en) | Temporary eventing system and method | |
US9575770B2 (en) | Method of graphical display of hierarchical hardlinks to files in a file system | |
CN103838683B (en) | The method and apparatus of data transfer | |
CN109213754A (en) | A kind of data processing system and data processing method | |
CN110291518A (en) | Merge tree garbage index | |
CN110268399A (en) | Merging tree for attended operation is modified | |
CN108197270B (en) | Distributed file system data recovery method | |
CN107025269A (en) | A kind of document handling method, device and intelligent terminal | |
US20110302113A1 (en) | Monitoring relationships between digital items on a computing apparatus | |
CN106682186A (en) | File access control list (ACL) management method and related device and system | |
CN102970358A (en) | Method and device for controlling local cache of mobile client in network disc | |
CN106294810A (en) | A kind of system and method for enterprise product data filing | |
CN107765945A (en) | A kind of file management method, device, terminal and computer-readable recording medium | |
CN107729483A (en) | A kind of classifying indication method, device, terminal and computer-readable recording medium | |
EP3752926A1 (en) | Integrated disposition for file retention management | |
CN106599292A (en) | Method and system for storing real-time video data and image data | |
CN104781793A (en) | Systems and methods for integrating storage usage information | |
US10984444B2 (en) | Systems and methods for generating intelligent account reconfiguration offers | |
CN107729485A (en) | A kind of data managing method, device, terminal and computer-readable recording medium | |
CN108574718A (en) | A kind of cloud host creation method and device | |
JP2006114033A (en) | System for smoothly organizing data | |
KR100858157B1 (en) | System and merhod for map uapdate, storage medium recording that method program, user termianl | |
CN106815232A (en) | Catalog management method, apparatus and system | |
US11200205B2 (en) | Displaying an alert and options when deleting a file that is associated with a sequence of files |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |