CN105574011A - Method and device for scanning storage space - Google Patents

Method and device for scanning storage space Download PDF

Info

Publication number
CN105574011A
CN105574011A CN201410537728.8A CN201410537728A CN105574011A CN 105574011 A CN105574011 A CN 105574011A CN 201410537728 A CN201410537728 A CN 201410537728A CN 105574011 A CN105574011 A CN 105574011A
Authority
CN
China
Prior art keywords
information
storage space
file
scanning
buffer memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410537728.8A
Other languages
Chinese (zh)
Inventor
杨朗
魏文俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410537728.8A priority Critical patent/CN105574011A/en
Publication of CN105574011A publication Critical patent/CN105574011A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method and a device for scanning a storage space, and belongs to the field of communication. The method comprises the following steps of scanning the storage space to obtain file information when a specific condition is met; storing the information into a cache; and when an instruction of scanning the storage space is received, reading the information from the cache, and displaying the information to a user. The device comprises a scanning module, a cache module, a reading module and a display module. The method and the device have the advantages that the scanning efficiency is greatly improved; the scanning speed is accelerated; the waiting time and the anxiety of the user are reduced; and the electricity quantity is also saved.

Description

The method and apparatus of scanning storage space
Technical field
The present invention relates to the communications field, particularly a kind of method and apparatus scanning storage space.
Background technology
In the terminal, often there will be memory space inadequate or the full situation of storage space, cause user cannot continue normal use.At present, common method is the storage space of scanning mobile terminal, the file scanned is shown to user check, select some seldom to use as required by user or perform deletion action without the need to the file that re-uses, clear up storage space with this, thus discharge corresponding space for user.
But, in said method, be scan full hard disk to the scanning of storage space, and at every turn scan full hard disk is carried out to storage space can very big elapsed time and electricity, cause efficiency lower, power consumption is large.
Summary of the invention
In view of this, embodiments provide a kind of method and apparatus scanning storage space, to solve the problem that existing scan method efficiency is low, power consumption is large.Described technical scheme is as follows:
On the one hand, provide a kind of method scanning storage space, described method comprises:
When meeting specified requirements, storage space is scanned to the information obtaining file;
Described information is saved in buffer memory;
When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user.
On the other hand, provide a kind of device scanning storage space, described device comprises:
Scan module, for scanning the information obtaining file to storage space when meeting specified requirements;
Cache module, is saved in buffer memory for the described information obtained by described scan module;
Read module, for when receiving the instruction scanning described storage space, reads described information from described buffer memory;
Display module, for showing the described information of described read module reading to user.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by scanning the information obtaining file to storage space when meeting specified requirements; Described information is saved in buffer memory; When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the scanning storage space that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the scanning storage space that another embodiment of the present invention provides;
Fig. 3 is the method flow diagram of the scanning storage space that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram of the scanning storage space that another embodiment of the present invention provides;
Fig. 5 is the structure drawing of device of the scanning storage space that another embodiment of the present invention provides;
Fig. 6 is the terminal structure figure that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 1, one embodiment of the invention provides a kind of method scanning storage space, comprising:
101: when meeting specified requirements, storage space is scanned to the information obtaining file.
In the present embodiment, described storage space includes but not limited to: (SecureDigitalMemoryCard, abbreviation: SD), or the storage space that terminal carries, the present embodiment is not specifically limited this safe digital card in terminal.SD inserts the storage card in terminal, can be used for storing data.
Wherein, scanning storage space refers to the file preserved in scanning storage space, the information of file can be obtained, this information at least comprises: the path of file and the size of file, can also comprise the last visit time of file, the access frequency of file etc. further, the present embodiment is not specifically limited this.
102: this information is saved in buffer memory.
Buffer memory is the temporary file exchange area in terminal, is generally used for interim storing documents.Usually, the speed of access cache is more faster than the speed of access storer, therefore, information is preserved visit information when being used for follow up scan in the buffer, can improve sweep velocity, save time.
103: when receiving the instruction of this storage space of scanning, from this buffer memory, read this information.
Wherein, the instruction receiving this storage space of scanning can be triggered by user, clicks the storage space management module in software house keeper as user, then correspondingly can the instruction of trigger sweep storage space, and the present embodiment is not specifically limited this.
104: show this information to user.
The capacity of above-mentioned storage space is normally fixing, when the data stored in storage space reach this capacity, then cannot store data again, user can storage space completely time carry out file clean-up, or also can carry out file clean-up at any time as required.
The information of display file, to user, can facilitate user to check the situation of each file in storage space, thus clear up file as required.Such as, after scanning, certain video file of display is too large, then can select to delete this file, thus discharge corresponding storage space.
In the present embodiment, optionally, describedly when meeting specified requirements, storage space being scanned to the information obtaining file, can comprise:
When the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, described storage space is scanned to the information obtaining file.
In the present embodiment, optionally, described described information is saved in buffer memory, can comprises:
Described information is screened, obtains the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after screening is saved in buffer memory.
In the present embodiment, optionally, describedly from described buffer memory, read described information, and show described information to user, can comprise:
From this buffer memory, read this information, screen this information, obtain the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after display screening is to user.
Further, the information obtained after described display screening, to user, can comprise:
File path according to comprising in this information obtained after screening verifies whether corresponding file exists;
Display has verified that the information of the file of existence is to user.
In the present embodiment, optionally, described method can also comprise:
In the process that this storage space is scanned, if there is allocate event, stop scanning; Wherein, this allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
The said method that the present embodiment provides, by scanning the information obtaining file to storage space when meeting specified requirements; Described information is saved in buffer memory; When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
See Fig. 2, another embodiment of the present invention provides a kind of method scanning storage space, comprising:
201: when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, storage space is scanned to the information obtaining file.
Wherein, the first duration and the second duration can preset as required, and concrete numerical value does not limit, and if the first duration is 10 minutes or 20 minutes etc., the second duration is 24 hours or 48 hours etc.
In addition, in order to more meet the use habit of user, avoid using terminal to impact to user, regularly or aperiodically can also come the first duration described in configuration change and the second duration by the server in high in the clouds, particularly, can send instructions to terminal by under the server in high in the clouds, terminal performs amendment according to instruction.The configurable mode applying flexible in this high in the clouds, can upgrade in time, achieve the effect of intelligent management.
202: the information obtained is saved in buffer memory.
Wherein, this step can specifically comprise:
Judge that whether Current Scan is successful;
If success, then preserve information in the buffer when replacing last scanning by the information obtained;
If failure, then preserve information in the buffer when retaining last scanning.
In addition, if there is no last scanning, then can directly by direct for the result that obtains after present scan success this in the buffer.
203: when receiving the instruction of this storage space of scanning, from this buffer memory, read this information.
204: verify whether corresponding file exists according to the file path comprised in this information.
Wherein, this information at least comprises file path and file size, because current time and buffer memory moment may be separated by a period of time, file in storage space may change, therefore, in order to ensure to show the accuracy of result, first whether can exist file and verifying, with to avoid under file non-existent situation also by the information displaying of this file to user.
205: display has verified that the information of the file of existence is to user.
After checking, the result of display is all the information of the file that checking exists, and user can check the size of each file, thus determines whether carry out file clean-up, as performed operation of the file deleting more than 10MB etc.
In the present embodiment, optionally, described method can also comprise:
In the process that this storage space is scanned, if there is allocate event, stop scanning; Wherein, this allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
Wherein, described first threshold can be arranged as required, and as being set to 15 minutes or 20 minutes etc., the present embodiment is not specifically limited this.
The said method that the present embodiment provides, by when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, scans the information obtaining file to described storage space; The information obtained is saved in buffer memory; When receiving the instruction of this storage space of scanning, from described buffer memory, read described information; Verify whether corresponding file exists according to the file path comprised in this information; Display has verified that the information of the file of existence is to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
See Fig. 3, another embodiment of the present invention provides a kind of method scanning storage space, comprising:
301: when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, storage space is scanned, obtain the information of file.
302: the information obtained is screened, obtain the information of the file of specified type and/or exceed the information of the file of specifying size.
When carrying out the cleaning of storage space, usually wishing to discharge larger storage space, therefore, can consider that filtering out the file taking larger storage space clears up, less file is not then in the scope of cleaning.
Described specified type can be audio file or video file etc., and the storage space that this class file takies usually is larger.Described appointment size can set as required, and as 10MB or 20MB etc., the present embodiment is not specifically limited this.
In actual applications, only can filter out the file of specified type, or only filter out the file exceeding and specify size, or filter out specified type and exceed the file of specifying size, the present embodiment is not specifically limited this.
In addition, can also comprise before this step:
Judge that whether Current Scan is successful; If success, then perform the operation of screening; If failure, then preserve information in the buffer when retaining last scanning.
303: the information obtained after screening is saved in buffer memory.
Particularly, information is in the buffer preserved when can replace last scanning by the information obtained after screening.This mode can ensure that the fileinfo in buffer memory can upgrade in time.
In addition, after screening, information being preserved in the buffer, compared to not screening direct buffer memory, the space of buffer memory can be saved.
304: when receiving the instruction of this storage space of scanning, from this buffer memory, read this information.
305: verify whether corresponding file exists according to the file path comprised in this information.
306: display has verified that the information of the file of existence is to user.
In the present embodiment, optionally, described method can also comprise:
In the process that this storage space is scanned, if there is allocate event, stop scanning; Wherein, this allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
The said method that the present embodiment provides, by when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, scans this storage space, obtains the information of file; The information obtained is screened, obtains the information of the file of specified type and/or exceed the information of the file of specifying size; The information obtained after screening is saved in buffer memory; When receiving the instruction of this storage space of scanning, from this buffer memory, read this information; Verify whether corresponding file exists according to the file path comprised in this information; Display has verified that the information of the file of existence is to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
See Fig. 4, another embodiment of the present invention provides a kind of method scanning storage space, comprising:
401: when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, storage space is scanned, obtain the information of file.
402: the information obtained is saved in buffer memory.
This step can specifically comprise:
Judge that whether Current Scan is successful;
If success, then preserve information in the buffer when replacing last scanning by the information obtained;
If failure, then preserve information in the buffer when retaining last scanning.
403: when receiving the instruction of this storage space of scanning, from this buffer memory, read this information.
404: this information read is screened, obtain the information of the file of specified type and/or exceed the information of the file of specifying size.
In the present embodiment, at the laggard row filter of the information that reads from buffer memory, then the result of screening is shown to user, provides another kind of implementation.
405: the file path according to comprising in this information obtained after screening verifies whether corresponding file exists.
406: display has verified that the information of the file of existence is to user.
In the present embodiment, optionally, described method can also comprise:
In the process that this storage space is scanned, if there is allocate event, stop scanning; Wherein, this allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
The said method that the present embodiment provides, by when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, scans this storage space, obtains the information of file; The information obtained is saved in buffer memory; When receiving the instruction of this storage space of scanning, from this buffer memory, read this information; This information read is screened, obtains the information of the file of specified type and/or exceed the information of the file of specifying size; File path according to comprising in this information obtained after screening verifies whether corresponding file exists; Display has verified that the information of the file of existence is to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
See Fig. 5, another embodiment of the present invention provides a kind of device scanning storage space, comprising:
Scan module 501, for scanning the information obtaining file to storage space when meeting specified requirements;
Cache module 502, is saved in buffer memory for this information obtained by scan module 501;
Read module 503, for when receiving the instruction of this storage space of scanning, reads this information from this buffer memory;
Display module 504, for showing this information of read module 503 reading to user.
In the present embodiment, optionally, described scan module 501 can comprise:
Scanning element, for when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, scans the information obtaining file to this storage space.
In the present embodiment, optionally, described cache module 502 can comprise:
Screening unit, screens for this information obtained this scan module 501, obtains the information of the file of specified type and/or exceedes the information of the file of specifying size;
Buffer unit, for being saved to the information obtained after this screening in buffer memory.
In the present embodiment, optionally, described display module 504 can comprise:
Screening unit, screens for this information read this read module 503, obtains the information of the file of specified type and/or exceedes the information of the file of specifying size;
Display unit, for the information that obtains after showing the screening of this screening unit to user.
Further, described display unit comprises:
Checking subelement, for according to the file path comprised in the information obtained after this screening, verifies whether corresponding file exists;
Display subelement, for showing the information of the file verifying existence to user.
In the present embodiment, optionally, described scan module 501 also for:
In the process that this storage space is scanned, if there is allocate event, stop scanning; Wherein, this allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
The said apparatus that the present embodiment provides, by scanning the information obtaining file to storage space when meeting specified requirements; Described information is saved in buffer memory; When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
See Fig. 6, another embodiment of the present invention provides a kind of terminal 600, communication unit 610 can be comprised, include the storer 620 of one or more non-volatile readable storage mediums, input block 630, display unit 640, sensor 650, voicefrequency circuit 660, WiFi (wirelessfidelity, Wireless Fidelity) module 670, include the parts such as processor 680 and power supply 690 that more than or processes core.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 6, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Communication unit 610 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication unit 610 can be RF (RadioFrequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, when communication unit 610 is RF circuit, after being received by the downlink information of base station, more than one or one processor 680 is transferred to process; In addition, base station is sent to by relating to up data.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, communication unit 610 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.Storer 620 can be used for storing software program and module, and processor 680 is stored in software program and the module of storer 620 by running, thus performs the application of various function and data processing.Storer 620 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 600.In addition, storer 620 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 620 can also comprise Memory Controller, to provide the access of processor 680 and input block 630 pairs of storeies 620.
Input block 630 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Alternatively, input block 630 can comprise Touch sensitive surface 630a and other input equipments 630b.Touch sensitive surface 630a, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 630a or near Touch sensitive surface 630a such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 630a can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 680, and the order that energy receiving processor 680 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 630a.Except Touch sensitive surface 630a, input block 630 can also comprise other input equipments 630b.Alternatively, other input equipments 630b can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 640 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 600 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 640 can comprise display panel 640a, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 640a.Further, Touch sensitive surface 630a can cover display panel 640a, when Touch sensitive surface 630a detects thereon or after neighbouring touch operation, send processor 680 to determine the type of touch event, on display panel 640a, provide corresponding vision to export with preprocessor 680 according to the type of touch event.Although in figure 6, Touch sensitive surface 630a and display panel 640a be as two independently parts realize inputting and input function, in certain embodiments, can by integrated for Touch sensitive surface 630a and display panel 640a and realize input and output function.
Terminal 600 also can comprise at least one sensor 650, such as optical sensor, motion sensor and other sensors.Alternatively, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 640a, proximity transducer when terminal 600 moves in one's ear, can cut out display panel 640a and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 600 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 660, loudspeaker 660a, microphone 660b can provide the audio interface between user and terminal 600.Voicefrequency circuit 660 can by receive voice data conversion after electric signal, be transferred to loudspeaker 660a, by loudspeaker 660a be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 660b, voice data is converted to after being received by voicefrequency circuit 660, after again voice data output processor 680 being processed, through RF circuit 610 to send to such as another terminal, or export voice data to storer 620 to process further.Voicefrequency circuit 660 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 600.
In order to realize radio communication, this terminal can be configured with wireless communication unit 670, this wireless communication unit 670 can be WiFi module.WiFi belongs to short range wireless transmission technology, and terminal 600 can help user to send and receive e-mail by wireless communication unit 670, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows wireless communication unit 670, be understandable that, it does not belong to must forming of terminal 600, can omit in the scope of essence not changing invention as required completely.
Processor 680 is control centers of terminal 600, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 620 and/or module is stored in by running or performing, and call the data be stored in storer 620, perform various function and the process data of terminal 600, thus integral monitoring is carried out to mobile phone.Optionally, processor 680 can comprise one or more process core; Preferably, processor 680 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 680.
Terminal 600 also comprises the power supply 690 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 680 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 690 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 600 can also comprise camera, bluetooth module etc., does not repeat them here.
Above composition graphs 6 gives the alternate configurations of terminal 600, and wherein one or more module stores are in described storer and be configured to be performed by described one or more processor, and described one or more module has following function:
When meeting specified requirements, storage space is scanned to the information obtaining file;
Described information is saved in buffer memory;
When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user.
Wherein, describedly when meeting specified requirements, storage space being scanned to the information obtaining file, comprising:
When the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, described storage space is scanned to the information obtaining file.
Wherein, described described information is saved in buffer memory, comprises:
Described information is screened, obtains the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after screening is saved in buffer memory.
Wherein, describedly from described buffer memory, read described information, and show described information to user, comprising:
From described buffer memory, read described information, screen described information, obtain the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after display screening is to user.
Wherein, the information obtained after described display screening, to user, comprising:
File path according to comprising in the information obtained after screening verifies whether corresponding file exists;
Display has verified that the information of the file of existence is to user.
Wherein, described one or more module also has following function:
In the process that described storage space is scanned, if there is allocate event, stop scanning; Wherein, described allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
The above-mentioned terminal that the present embodiment provides, by scanning the information obtaining file to storage space when meeting specified requirements; Described information is saved in buffer memory; When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
Another embodiment of the present invention provides a kind of non-volatile readable storage medium, one or more module (programs) is stored in this storage medium, when this one or more module is employed in a device, this equipment can be made to perform the instruction (instructions) of following steps:
When meeting specified requirements, storage space is scanned to the information obtaining file;
Described information is saved in buffer memory;
When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user.
Wherein, describedly when meeting specified requirements, storage space being scanned to the information obtaining file, comprising:
When the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, described storage space is scanned to the information obtaining file.
Wherein, described described information is saved in buffer memory, comprises:
Described information is screened, obtains the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after screening is saved in buffer memory.
Wherein, describedly from described buffer memory, read described information, and show described information to user, comprising:
From described buffer memory, read described information, screen described information, obtain the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after display screening is to user.
Wherein, the information obtained after described display screening, to user, comprising:
File path according to comprising in the information obtained after screening verifies whether corresponding file exists;
Display has verified that the information of the file of existence is to user.
Wherein, this equipment can also perform the instruction of following steps:
In the process that described storage space is scanned, if there is allocate event, stop scanning; Wherein, described allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or SD and is pulled out.
The above-mentioned non-volatile readable storage medium that the present embodiment provides, by scanning the information obtaining file to storage space when meeting specified requirements; Described information is saved in buffer memory; When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user; Due to without the need to all scanning storage space at every turn, from buffer memory, directly can obtain scanning result, therefore, drastically increase scan efficiency, accelerate sweep velocity, decrease stand-by period and the Anxiety of user, and also save electricity.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of non-volatile readable storage medium, described non-volatile readable storage medium can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. scan a method for storage space, it is characterized in that, described method comprises:
When meeting specified requirements, storage space is scanned to the information obtaining file;
Described information is saved in buffer memory;
When receiving the instruction scanning described storage space, from described buffer memory, read described information, and show described information to user.
2. method according to claim 1, is characterized in that, describedly when meeting specified requirements, storage space is scanned to the information obtaining file, comprising:
When the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, described storage space is scanned to the information obtaining file.
3. method according to claim 1, is characterized in that, is describedly saved in buffer memory by described information, comprising:
Described information is screened, obtains the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after screening is saved in buffer memory.
4. method according to claim 1, is characterized in that, describedly from described buffer memory, reads described information, and shows described information to user, comprising:
From described buffer memory, read described information, screen described information, obtain the information of the file of specified type and/or exceed the information of the file of specifying size, the information obtained after display screening is to user.
5. method according to claim 1, is characterized in that, described method also comprises:
In the process that described storage space is scanned, if there is allocate event, stop scanning; Wherein, described allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or safe digital card SD and is pulled out.
6. scan a device for storage space, it is characterized in that, described device comprises:
Scan module, for scanning the information obtaining file to storage space when meeting specified requirements;
Cache module, is saved in buffer memory for the described information obtained by described scan module;
Read module, for when receiving the instruction scanning described storage space, reads described information from described buffer memory;
Display module, for showing the described information of described read module reading to user.
7. device according to claim 6, is characterized in that, described scan module comprises:
Scanning element, for when the duration of screen locking reaches the first duration, or when timing reaches the second duration but also do not perform scan operation, scans the information obtaining file to described storage space.
8. device according to claim 6, is characterized in that, described cache module comprises:
Screening unit, screens for the described information obtained described scan module, obtains the information of the file of specified type and/or exceedes the information of the file of specifying size;
Buffer unit, for being saved to the information obtained after described screening in buffer memory.
9. device according to claim 6, is characterized in that, described display module comprises:
Screening unit, screens for the described information read described read module, obtains the information of the file of specified type and/or exceedes the information of the file of specifying size;
Display unit, for the information that obtains after showing the screening of described screening unit to user.
10. device according to claim 6, is characterized in that, described scan module also for:
In the process that described storage space is scanned, if there is allocate event, stop scanning; Wherein, described allocate event comprise following any one: screen locking is removed, have calling incoming call, scanning duration exceedes first threshold, shutdown or safe digital card SD and is pulled out.
CN201410537728.8A 2014-10-13 2014-10-13 Method and device for scanning storage space Pending CN105574011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410537728.8A CN105574011A (en) 2014-10-13 2014-10-13 Method and device for scanning storage space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410537728.8A CN105574011A (en) 2014-10-13 2014-10-13 Method and device for scanning storage space

Publications (1)

Publication Number Publication Date
CN105574011A true CN105574011A (en) 2016-05-11

Family

ID=55884158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410537728.8A Pending CN105574011A (en) 2014-10-13 2014-10-13 Method and device for scanning storage space

Country Status (1)

Country Link
CN (1) CN105574011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874754A (en) * 2017-01-13 2017-06-20 北京奇虎科技有限公司 A kind of system file scan method, device and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651864A (en) * 2008-08-14 2010-02-17 比亚迪股份有限公司 Method for managing file in mobile terminal and mobile terminal
CN102663059A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and system for automatically cleaning redundant items in computer terminal
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103886059A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for cleaning up files
CN103995843A (en) * 2014-05-05 2014-08-20 安一恒通(北京)科技有限公司 System garbage cleaning method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651864A (en) * 2008-08-14 2010-02-17 比亚迪股份有限公司 Method for managing file in mobile terminal and mobile terminal
CN102663059A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and system for automatically cleaning redundant items in computer terminal
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103886059A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for cleaning up files
CN103995843A (en) * 2014-05-05 2014-08-20 安一恒通(北京)科技有限公司 System garbage cleaning method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874754A (en) * 2017-01-13 2017-06-20 北京奇虎科技有限公司 A kind of system file scan method, device and mobile terminal
CN106874754B (en) * 2017-01-13 2020-05-05 北京安云世纪科技有限公司 System file scanning method and device and mobile terminal

Similar Documents

Publication Publication Date Title
CN103500002B (en) The method of application program management, device and terminal unit
CN105005909A (en) Method and device for predicting lost users
CN104780164A (en) Method and device for operating game client
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN104518953A (en) Message deleting method, instant messaging terminal and system
CN103455256A (en) Method and terminal for rotating display picture of screen
CN103458016A (en) Method and device for picture management and terminal device
CN104301504A (en) Message viewing method and device and mobile terminal
CN105490919A (en) Message withdrawal method and device
CN104519197A (en) User login method, user login device and terminal devices
CN105278937A (en) Method and device for displaying pop-up box messages
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN103368828B (en) A kind of message temporary storage and system
CN104717341A (en) Message prompting method and terminal
CN104572819A (en) Clearing method and system for junk data
CN104142868A (en) Connection establishment method and device
CN104657666A (en) Method and device for optimizing terminal operation environment
CN103312597B (en) A kind of speech message generation method and device
CN104618873A (en) Method and device for sharing access point information
CN104915091A (en) Method and device for displaying status bar prompt message
CN104618223A (en) Information recommendation management method, device and system
CN103677633A (en) Screen unlocking method and device and terminal
CN104253870A (en) Method and device for controlling data access period
CN103561155B (en) Send the method for note, device and terminal
CN103533139B (en) Data management method and device of multi-card user and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication