WO2017096771A1 - Method and device for storage control of application cache data - Google Patents

Method and device for storage control of application cache data Download PDF

Info

Publication number
WO2017096771A1
WO2017096771A1 PCT/CN2016/084773 CN2016084773W WO2017096771A1 WO 2017096771 A1 WO2017096771 A1 WO 2017096771A1 CN 2016084773 W CN2016084773 W CN 2016084773W WO 2017096771 A1 WO2017096771 A1 WO 2017096771A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
data
module
terminal
running
Prior art date
Application number
PCT/CN2016/084773
Other languages
French (fr)
Chinese (zh)
Inventor
黄孙明
王云华
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017096771A1 publication Critical patent/WO2017096771A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4432Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a storage control method and apparatus for applying cache data.
  • the smart TV is used as an example.
  • the media application develops most rapidly, such as cool dog music, QQ music or love. Qiyi video and so on.
  • song A is downloaded in QQ music
  • song B is downloaded in cool dog music
  • Song B needs to be re-downloaded in QQ music.
  • the main purpose of the present invention is to provide a storage control method and device for applying cache data, which aims to solve the problem that the existing downloading data cannot be downloaded in the application switching process, and the user needs to re-download the data that has been downloaded through other applications.
  • the problem of poor memory utilization of the terminal is made.
  • the present invention provides a storage control method for applying cache data, including the steps of:
  • the application switching operation is completed according to the application switching instruction, and the application running in the background of the terminal is acquired after the application switching operation is completed, and the application is the first application;
  • the method further includes:
  • the second application is a preset type application, reading a maximum value of memory occupied by each application of the terminal;
  • the memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
  • the data cached by the application occupying the most memory space is extracted and saved to the router storage module.
  • the step of extracting the data cached by the application that has the largest memory space and saving the data to the router storage module includes:
  • the cached data When the cached data reaches the storage space threshold, the data cached by the application larger than the storage space threshold is saved to the router storage module.
  • the method further includes: obtaining a name of the application by using a root package name query, and distinguishing whether the application is a preset type according to the read package name and the application name.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the present invention further provides a storage control apparatus for applying cache data, including:
  • An acquiring module configured to complete an application switching operation according to the application switching instruction when detecting a terminal-based application switching instruction, acquire an application running in the background of the terminal after marking the application switching operation, and mark the application as the first An application;
  • An extracting module configured to extract data cached by the first application when the first application is a preset type application
  • a saving module configured to save the cached data to a router storage module that is in communication with the terminal, to directly access the file data of the first application when the application running in the foreground requests the file data that is loaded by the first application
  • the file data is extracted from the storage module.
  • the storage control device for applying the cache data further includes: a reading module and an allocation module,
  • the acquiring module is further configured to acquire an application running in the foreground of the terminal after completing the application switching operation, and mark the application as a second application;
  • the reading module is configured to read, when the second application is a preset type application, a maximum value of memory occupied by each application of the terminal;
  • the allocating module is configured to evenly allocate, according to the read maximum value, the memory space of the terminal to a memory area corresponding to the number of applications, so that each application stores corresponding data.
  • the extracting module is configured to extract data cached by an application that has the largest memory space when there are multiple applications running in the background;
  • the save module is configured to save to a router storage module.
  • the saving module is further configured to save the data cached by the application larger than the storage space threshold to the router storage module when the cached data reaches the storage space threshold.
  • the name of the application is obtained by querying the root package name, and the application related to the preset type is determined according to the read package name and the application name.
  • the storage control device for the application cache data further includes:
  • a screening module for filtering cached data of an application running in the background for more than a preset time
  • a processing module configured to delete the cached data and close all applications running in the background.
  • the storage control device for applying the cache data further includes a display module.
  • the obtaining module is further configured to acquire identifier information of the closed application
  • the display module is configured to display the identifier information on an interface of the current foreground running application.
  • the storage control device for the application cache data further includes:
  • a determining module configured to determine a value of a storage space occupied by data saved to the router storage module
  • the display module is further configured to display the value of the occupied storage space on an interface of the current foreground running application.
  • the invention saves the data buffered by the application switched to the background to the router storage module communicatively connected with the terminal after the switching application operation is completed, for other applications to locally switch from the router to the background application cached data. Instead of going back to the application server or downloading on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
  • FIG. 1 is a schematic flowchart of a first embodiment of a storage control method for applying cache data according to the present invention
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a storage control method for applying cache data according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a storage control method for applying cache data according to the present invention.
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a storage control method for applying cache data according to the present invention.
  • FIG. 5 is a schematic flowchart of storage control of application cache data according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of a storage control device for applying cache data according to the present invention
  • FIG. 7 is a schematic diagram of functional modules of a second embodiment of a storage control device for applying cache data according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a third embodiment of a storage control device for applying cache data according to the present invention.
  • FIG. 9 is a functional block diagram showing a fourth embodiment of a storage control device for applying cache data according to the present invention. intention.
  • the main solution of the embodiment of the present invention is: when detecting the terminal-based application switching instruction, completing the application switching operation according to the application switching instruction, acquiring an application running in the background of the terminal after completing the application switching operation and The application is marked as a first application; when the first application is a preset type application, extracting data cached by the first application; saving the cached data to a router storage communicatively connected to the terminal In the module, when the file running in the foreground requests the file data loaded by the first application, the file data is directly extracted from the router storage module.
  • the data cached by the application switched to the background is saved to the router storage module communicatively connected with the terminal, for other applications to locally switch from the router to the data cached by the application in the background, and You don't have to go back to the application server or download it on the internet.
  • the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
  • the present invention provides a storage control method for applying cache data.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a storage control method for applying cache data according to the present invention.
  • the storage control method of the application cache data includes:
  • Step S10 when detecting a terminal-based application switching instruction, switching instructions according to the application Completing the application switching operation, acquiring an application running in the background of the terminal after marking the application switching operation, and marking the application as the first application;
  • the user can load the application based on the terminal, for example, the loaded application is exemplified by QQ music, cool dog music, and iQiyi video client.
  • the loaded application is exemplified by QQ music, cool dog music, and iQiyi video client.
  • QQ music exemplified by QQ music, cool dog music, and iQiyi video client.
  • users need to listen to music, they can open QQ music or cool dog music to select music downloads. After the download is completed, they can be played locally in the terminal or played directly online.
  • the user is not sure which application to play music, the user will open the music application one by one.
  • the application is used to complete the required function, and after the application switching operation is completed, the application running in the background of the terminal is obtained and the application is marked as the first application, that is, the application that is switched to the background after the application switching instruction is acquired,
  • the currently running application is QQ music
  • the application running in the background is cool dog music.
  • the QQ music is switched to run in the background, the cool dog music is run on the front end, and the cool dog music is run in the front end.
  • the preset time determines that the QQ music is the first application.
  • step S20 when the first application is a preset type application, extracting data cached by the first application;
  • the first application After the first application is obtained, it is determined whether the first application is a preset type application, and the preset type includes, but is not limited to, an application that can share the same cache data, such as a music type and a video type.
  • the first application is determined to be a preset type application, and the specific process is: obtaining the name of the application by using the root package name query table 1, and the terminal according to the read package name and the application. The name together identifies whether the application is a preset type related application.
  • the data cached by the first application is extracted, for example, the song A downloaded by the QQ application when the front end is running is extracted.
  • identifiers may be set for each application, the identifiers including portions for distinguishing different applications and portions for distinguishing different types, for example, the identifiers included include symbols and digital portions, The symbol portion is used to distinguish the application, and the data portion is used to distinguish the type.
  • the terminal may identify whether the application is a preset type of application based on an identifier of each application.
  • the manner of determining whether the application is a preset type application may also include other technical solutions known to those skilled in the art, and details are not described herein again.
  • Step S30 saving the cached data to a router storage module that is communicatively connected to the terminal, to directly access the file storage module of the first application when the application running in the foreground requests the file data that is loaded by the first application. Extracting the file data.
  • the router storage module After extracting the data buffered by the first application, sending the cached data to a router storage module communicatively connected to the terminal, the router storage module saves the cached data, and
  • the saved cache data sets identification information, and the identification information includes application information, data information, time information, and the like.
  • the data cached by the application that has the largest memory space is extracted and saved to the router storage module.
  • a storage space threshold stored in the storage module of the router may be set, and when the data cached by the application reaches the storage space threshold, the data cached by the application larger than the storage space threshold is saved to the router storage module.
  • the storage space threshold may be 2 MB or 1 MB, etc. according to user requirements and/or storage space settings of the router storage module.
  • data stored in the router storage module is managed to ensure that there is sufficient storage space to store the latest data, and the data storage time reaches a certain time (7 days or 10 days, etc.). Deleting data whose storage time reaches a certain time; or deleting data whose usage count is less than the preset number of thresholds when the number of times the data is used is less than a preset number of thresholds (for example, 2 or 3 times, etc.).
  • a preset number of thresholds for example, 2 or 3 times, etc.
  • the data cached by the application switched to the background is saved in the router storage module that is connected to the terminal for communication, and the other application is switched from the local download of the router to the background application cached. Data without having to go back to the application server or download it on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a storage control method for applying cache data according to the present invention.
  • Step S40 acquiring an application running in the foreground of the terminal after completing the application switching operation, and marking the application as the second application;
  • Step S50 when the second application is a preset type application, reading a maximum value of memory occupied by each application of the terminal;
  • Step S60 The memory space of the terminal is evenly allocated according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
  • an application running in the foreground of the terminal after completing the application switching operation is acquired and the application is marked as the second application.
  • Determining whether the second application is a preset type of application The determining process is the same as the process of determining whether the first application is a preset type application in the foregoing first embodiment, and details are not described herein again.
  • the second application is a preset type application
  • the maximum value of the memory occupied by each application of the terminal is read.
  • the memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
  • the memory storage space of the terminal is evenly distributed, and the running speed of the terminal is improved.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a storage control method for applying cache data according to the present invention.
  • the second embodiment of the storage control method based on the application cache data, after the step S30, further includes:
  • Step S70 filtering cached data of an application running in the background for more than a preset time
  • step S80 the cached data is deleted, and all applications running in the background are closed.
  • the application running in the background for more than the preset time is filtered, and the cached data loaded by the application exceeding the preset time is filtered. Delete the cached data and close all applications running in the background.
  • the preset time is preferably 5 minutes, or may be 10 minutes after 8 minutes, and the like.
  • the method further includes: step S90, acquiring identification information of the closed application, and displaying the identification information on an interface of the current foreground running application.
  • the terminal is displayed in the upper left corner of the foreground application according to the closed background application name, and the display application name in the background is in the upper right corner, and the displayed position is not limited to the upper left corner or the upper right corner according to the user setting, according to each user's Habits are different and set in different locations.
  • the value of the storage space occupied by the data stored in the storage module of the router may be determined; and the value of the occupied storage space is displayed on the interface of the current foreground running application.
  • FIG. 5 including:
  • Process 2 The TV system starts the media application name module, the system obtains the name of the media application through the root package name lookup table, and the TV system reads the package name and the media name to distinguish (determine whether each application is a media application) whether the two applications are Media related applications?
  • Process 4 In one case, the TV system finds that the application is currently in the front and back, which is two media applications.
  • Process 6 A situation: the TV system finds that the foreground application is a music application, and the TV system finds that the package name (QQ music) of the media application foreground identity module is a foreground application, and the system starts to apply the dynamic memory.
  • the detection module the system reads the maximum value of each application memory, and averages the memory according to multiple applications in the entire memory area of the TV system, for example, inputting two applications are QQ music, cool dog music, and the total memory of the TV system is 512MB, the average memory of the foreground application is 256MB;
  • the system obtains the size of the application's own memory space
  • QQ music memory needs up to 50MB.
  • Cool dog music memory needs up to 1000MB. If it is larger than the size required by the application, it will be wasted to be allocated to QQ and cool dog applications.
  • the system obtains the total size of the physical memory space, dynamically averages the number of video applications, and the system obtains the average allocated memory size, for example, multiple QQ music applications, a total of 10
  • the system compares the value of the physically allocated memory application with the memory size of the application itself.
  • the physical application space is larger than the application memory space, and the system sets the maximum memory size for the application. For example: QQ music memory needs up to 50MB, allocate 51MB in time, and finally, set QQ music physical memory 50MB.
  • Process 8 Another situation: The TV system finds that the foreground application is not a music application, the TV system finds the music (cool dog music) application as a background application, the system starts the memory transfer router module, and the system reads the value of the application dynamic memory detection module. After one-half of the download data is downloaded from the background application, the data downloaded from the background is transferred to the router storage area 33. The system is timed for 5 minutes, and the router memory space can only store the memory of the longest and largest saved data at the back end time.
  • the router For example: 512MB of routing storage control, 5 minutes to, the router saves 3 songs of cool dog music application, love you for 10,000 years, ice rain, heart only you, MP3 music data is temporarily stored in the router, router discovers TV system There are other media applications in the background. The router sends a memory data command to stop receiving applications, and does not receive data from other applications. The router also sends instructions to stop other applications to the TV.
  • the TV system opens the route to close the background application module, the routing system automatically closes the application whose background running time is greater than 5 minutes, the data stored in the TV terminal is cleared, the other background applications are stopped, and the TV system releases the data cached in the background. For example: the TV system receives the routing command, stops Stop running thousands of listening applications, emptying cached MP3 and other music data.
  • the TV system opens a reminder to the background media display module.
  • the TV system displays the name of the background application in the upper left corner of the foreground application according to the closed background application name, and displays the name of the application running in the background in the upper right corner, indicating the size of the cache to the router. For example: display off thousands of listening music, show cool dog music cache to the router 3 songs, love you for 10,000 years, ice rain, heart only you.
  • the execution subject of the storage control method of the application cache data of each of the above embodiments may be a terminal.
  • the storage control method of the purifier application cache data may be implemented by a storage control program of a client application cache data installed on the terminal, wherein the terminal includes but is not limited to a smart TV, a mobile phone, a pad, a notebook computer, etc. Preferably, it is a smart TV.
  • the present invention further provides a storage control device that applies cache data.
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of a storage control device for applying cache data according to the present invention.
  • the storage control device of the application cache data includes: an obtaining module 10, an extracting module 20, and a saving module 30.
  • the acquiring module 10 is configured to: after detecting the terminal-based application switching instruction, complete an application switching operation according to the application switching instruction, acquire an application running in the background of the terminal after completing the application switching operation, and acquire the application Mark as the first application;
  • the user can load the application based on the terminal, for example, the loaded application is exemplified by QQ music, cool dog music, and iQiyi video client.
  • the loaded application is exemplified by QQ music, cool dog music, and iQiyi video client.
  • QQ music exemplified by QQ music, cool dog music, and iQiyi video client.
  • users need to listen to music, they can open QQ music or cool dog music to select music downloads. After the download is completed, they can be played locally in the terminal or played directly online.
  • the user is not sure which application to play music, the user will open the music application one by one.
  • the extracting module 20 is configured to: when the first application is a preset type application, extract data buffered by the first application;
  • the first application After the first application is obtained, it is determined whether the first application is a preset type application, and the preset type includes, but is not limited to, an application that can share the same cache data, such as a music type and a video type.
  • the first application is determined to be a preset type application, and the specific process is: obtaining the name of the application by using the root package name query table 1, and the terminal according to the read package name and the application. The name together identifies whether the application is a preset type related application.
  • the data cached by the first application is extracted, for example, the song A downloaded by the QQ application when the front end is running is extracted.
  • identifiers may be set for each application, the identifiers including portions for distinguishing different applications and portions for distinguishing different types, for example, the identifiers included include symbols and digital portions, The symbol portion is used to distinguish the application, and the data portion is used to distinguish the type.
  • the terminal may identify whether the application is a preset type of application based on an identifier of each application. The manner of determining whether the application is a preset type application may also include other technical solutions known to those skilled in the art, and details are not described herein again.
  • the saving module 30 is configured to save the cached data to a router storage module that is communicatively connected to the terminal, to directly request, when the application running in the foreground requests the file data that is loaded by the first application Extracting the file data in the router storage module.
  • the router storage module After extracting the data buffered by the first application, sending the cached data to a router storage module communicatively connected to the terminal, the router storage module saves the cached data, and
  • the saved cache data sets identification information, and the identification information includes application information, data information, time information, and the like.
  • the data cached by the application that has the largest memory space is extracted and saved to the router storage module.
  • a storage space threshold stored in the storage module of the router may be set, and when the data cached by the application reaches the storage space threshold, the data cached by the application larger than the storage space threshold is saved to the router storage module.
  • the storage space threshold may be 2 MB or 1 MB, etc. according to user requirements and/or storage space settings of the router storage module.
  • data stored in the router storage module is managed to ensure that there is sufficient storage space to store the latest data, and the data storage time reaches a certain time (7 days or 10 days, etc.). Deleting data whose storage time reaches a certain time; or deleting data whose usage count is less than the preset number of thresholds when the number of times the data is used is less than a preset number of thresholds (for example, 2 or 3 times, etc.).
  • a preset number of thresholds for example, 2 or 3 times, etc.
  • the data cached by the application switched to the background is saved in the router storage module that is connected to the terminal for communication, and the other application is switched from the local download of the router to the background application cached. Data without having to go back to the application server or download it on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
  • FIG. 7 is a schematic diagram of functional modules of a second embodiment of a storage control device for applying cache data according to the present invention.
  • the storage control device that applies the cache data further includes a reading module 40 and an allocation module 50.
  • the obtaining module 10 is further configured to acquire an application running in the foreground of the terminal after completing the application switching operation, and mark the application as a second application;
  • the reading module 40 is configured to read a maximum value occupied by each application of the terminal when the second application is a preset type application;
  • the allocating module 50 is configured to allocate, according to the read maximum value, the memory space of the terminal to a memory area corresponding to the number of applications, so that each application stores corresponding data.
  • an application running in the foreground of the terminal after completing the application switching operation is acquired and the application is marked as the second application.
  • Determining whether the second application is a preset type of application The determining process is the same as the process of determining whether the first application is a preset type application in the foregoing first embodiment, and details are not described herein again.
  • the second application is a preset type application
  • the maximum value of the memory occupied by each application of the terminal is read.
  • the memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
  • the memory storage space of the terminal is evenly distributed, and the running speed of the terminal is improved.
  • FIG. 8 is a schematic diagram of functional modules of a third embodiment of a storage control device for applying cache data according to the present invention.
  • the storage control device for applying cache data further includes a screening module 60, a processing module 70, and a display module 80.
  • the filtering module 60 is configured to filter cached data of an application that runs in the background for more than a preset time
  • the processing module 70 is configured to delete the cached data and close all applications running in the background.
  • the application running in the background for more than the preset time is filtered, and the cached data loaded by the application exceeding the preset time is filtered. Delete the cached data and close all applications running in the background.
  • the preset time is preferably 5 minutes, or may be 10 minutes after 8 minutes, and the like.
  • the terminal is shut down, the application running in the background is longer than the preset time, the data cached by the application whose running time is greater than the preset time is automatically cleared, and other applications are stopped in the background, and the terminal releases the data cached in the background to reduce the occupation of the terminal.
  • the memory storage space provides more memory for the application running in the foreground, thereby avoiding the problem of running the application in the foreground, and improving the running speed and efficiency of the terminal.
  • the obtaining module 10 is further configured to acquire identifier information of the closed application.
  • the display module 80 is configured to display the identifier information on an interface of the current foreground running application.
  • the terminal is displayed in the upper left corner of the foreground application according to the closed background application name, and the display application name in the background is in the upper right corner, and the displayed position is not limited to the upper left corner or the upper right corner according to the user setting, according to each user's Habits are different and set in different locations.
  • the storage control device for applying cache data further includes a determining module 90 for The value of the storage space occupied by the data saved to the router storage module is determined; the display module 80 is further configured to display the value of the occupied storage space on the interface of the current foreground running application.
  • FIG. 5 including:
  • Process 2 The TV system starts the media application name module, the system obtains the name of the media application through the root package name lookup table, and the TV system reads the package name and the media name to distinguish (determine whether each application is a media application) whether the two applications are Media related applications?
  • Process 4 In one case, the TV system finds that the application is currently in the front and back, which is two media applications.
  • Process 6 A situation: the TV system finds that the foreground application is a music application, and the TV system finds that the package name (QQ music) of the media application foreground identity module is a foreground application, and the system starts to apply the dynamic memory detection module, and the system reads each application memory.
  • the system obtains the size of the application's own memory space
  • QQ music memory needs up to 50MB.
  • Cool dog music memory needs up to 1000MB. If it is larger than the size required by the application, it will be wasted to be allocated to QQ and cool dog applications.
  • the system obtains the total size of the physical memory space, dynamically averages the number of video applications, and the system obtains the average allocated memory size, for example, multiple QQ music applications, a total of 10
  • the system compares the value of the physically allocated memory application with the memory size of the application itself.
  • the physical application space is larger than the application memory space, and the system sets the maximum memory size for the application. For example: QQ music memory needs up to 50MB, allocate 51MB in time, and finally, set QQ music physical memory 50MB.
  • Process 8 Another situation: The TV system finds that the foreground application is not a music application, the TV system finds the music (cool dog music) application as a background application, the system starts the memory transfer router module, and the system reads the value of the application dynamic memory detection module. After one-half of the download data is downloaded from the background application, the data downloaded from the background is transferred to the router storage area 33. The system is timed for 5 minutes, and the router memory space can only store the memory of the longest and largest saved data at the back end time.
  • the router For example: 512MB of routing storage control, 5 minutes to, the router saves 3 songs of cool dog music application, love you for 10,000 years, ice rain, heart only you, MP3 music data is temporarily stored in the router, router discovers TV system There are other media applications in the background. The router sends a memory data command to stop receiving applications, and does not receive data from other applications. The router also sends instructions to stop other applications to the TV.
  • the TV system opens the route to close the background application module, and the routing system automatically forwards the background.
  • the application with the line time greater than 5 minutes is closed, the data stored in the TV terminal is cleared, and other background applications are stopped.
  • the TV system releases the data cached in the background. For example, the TV system receives the routing command and stops running the application of thousands of listeners. , clear the cached MP3 and other music data.
  • the TV system opens a reminder to the background media display module.
  • the TV system displays the name of the background application in the upper left corner of the foreground application according to the closed background application name, and displays the name of the application running in the background in the upper right corner, indicating the size of the cache to the router. For example: display off thousands of listening music, show cool dog music cache to the router 3 songs, love you for 10,000 years, ice rain, heart only you.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)

Abstract

Disclosed is a method for storage control of application cache data, comprising the steps of: completing, when an application switching instruction based on a terminal is detected, an application switching operation according to the application switching instruction, and obtaining an application running in the background of the terminal after the application switching operation is completed and marking the application as a first application; extracting data cached by the first application when the first application is an application of a preset type; storing the cached data to a router storage module communicationally connected to the terminal, in order to directly extract file data from the router storage module when the application running in the foreground requests the file data loaded by the first application. Also disclosed is a device for storage control of application cache data. The present invention provides an approach which is able to avoid re-downloading data that is downloaded by other applications before, thereby improving the utilization degree of memory space of a terminal.

Description

应用缓存数据的存储控制方法及装置Storage control method and device for applying cache data 技术领域Technical field
本发明涉及终端技术领域,尤其涉及应用缓存数据的存储控制方法及装置。The present invention relates to the field of terminal technologies, and in particular, to a storage control method and apparatus for applying cache data.
背景技术Background technique
随着终端技术的不断发展,越来越多的终端进入人们的日常生活和工作当中。所述终端以智能电视为例,在智能电视的应用商店用户可以下载几十款的应用,然而,在高速发展的应用技术中,以媒体应用发展最为迅速,比如酷狗音乐、QQ音乐或爱奇艺视频等。当用户在不同媒体应用切换时,例如,在QQ音乐和酷狗音乐之间切换,在QQ音乐下载了歌曲A,在酷狗音乐下载了歌曲B,在用户最终选择使用QQ音乐时,所下载的歌曲B需要重新在QQ音乐中下载。上述在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差。With the continuous development of terminal technology, more and more terminals have entered people's daily life and work. The smart TV is used as an example. In the application store of the smart TV, users can download dozens of applications. However, in the fast-developing application technology, the media application develops most rapidly, such as cool dog music, QQ music or love. Qiyi video and so on. When the user switches between different media applications, for example, switching between QQ music and cool dog music, song A is downloaded in QQ music, song B is downloaded in cool dog music, and downloaded when the user finally chooses to use QQ music. Song B needs to be re-downloaded in QQ music. The above-mentioned sharing of download data cannot be implemented in the application switching process, and the user needs to re-download data that has been downloaded through other applications, so that the memory usage of the terminal is poor.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种应用缓存数据的存储控制方法及装置,旨在解决现有的在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差的问题。The main purpose of the present invention is to provide a storage control method and device for applying cache data, which aims to solve the problem that the existing downloading data cannot be downloaded in the application switching process, and the user needs to re-download the data that has been downloaded through other applications. The problem of poor memory utilization of the terminal is made.
为实现上述目的,本发明提供的一种应用缓存数据的存储控制方法,包括步骤:To achieve the above objective, the present invention provides a storage control method for applying cache data, including the steps of:
在侦测到基于终端的应用切换指令时,根据所述应用切换指令完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用为第一应用;After detecting the terminal-based application switching instruction, the application switching operation is completed according to the application switching instruction, and the application running in the background of the terminal is acquired after the application switching operation is completed, and the application is the first application;
在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据; Extracting data cached by the first application when the first application is a preset type application;
将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。Saving the cached data to a router storage module communicatively connected to the terminal, to directly extract the file data from the router storage module when the application running in the foreground requests the file data loaded by the first application File data.
优选地,所述获取在所述终端后台运行的应用并将该应用标记为第一应用的步骤之后,还包括:Preferably, after the step of acquiring an application running in the background of the terminal and marking the application as the first application, the method further includes:
获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用;Obtaining an application running in the foreground of the terminal after completing the application switching operation, and marking the application as a second application;
在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值;When the second application is a preset type application, reading a maximum value of memory occupied by each application of the terminal;
根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。The memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
优选地,在存在多个应用在后台运行时,将所占内存空间最多的应用所缓存的数据提取出来,保存至路由器存储模块中。Preferably, when there are multiple applications running in the background, the data cached by the application occupying the most memory space is extracted and saved to the router storage module.
优选地,所述将所占内存空间最多的应用所缓存的数据提取出来,保存至路由器存储模块中的步骤包括:Preferably, the step of extracting the data cached by the application that has the largest memory space and saving the data to the router storage module includes:
在应用所缓存的数据达到所述存储空间阈值时,将大于存储空间阈值的应用所缓存的数据均保存至路由器存储模块中。When the cached data reaches the storage space threshold, the data cached by the application larger than the storage space threshold is saved to the router storage module.
优选地,所述提取所述第一应用所缓存的数据的步骤之前,还包括:通过根目包名查询得到应用的名称,根据读取的包名和应用名称一同分辨应用是否为预设类型相关的应用。Preferably, before the step of extracting the data cached by the first application, the method further includes: obtaining a name of the application by using a root package name query, and distinguishing whether the application is a preset type according to the read package name and the application name. Applications.
优选地,所述将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中的步骤之后,还包括:Preferably, after the step of saving the cached data to a router storage module that is in communication with the terminal, the method further includes:
筛选在后台运行超过预设时间的应用的缓存数据;Filter cached data for applications running in the background for more than the preset time;
将所述缓存数据删除,关闭所有在后台运行的应用。Delete the cached data and close all applications running in the background.
优选地,所述关闭所有在后台运行的应用的步骤之后,还包括:Preferably, after the step of closing all applications running in the background, the method further includes:
获取所述关闭应用的标识信息,将所述标识信息在当前前台运行应用的界面显示。Obtaining the identification information of the closed application, and displaying the identification information on an interface of the current foreground running application.
优选地,所述将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中的步骤之后,还包括:Preferably, after the step of saving the cached data to a router storage module that is in communication with the terminal, the method further includes:
确定保存至路由器存储模块的数据所占用的存储空间的值; Determine the value of the storage space occupied by the data saved to the router storage module;
将所占用的存储空间的值显示在当前前台运行应用的界面。Display the value of the occupied storage space in the interface where the application is running in the foreground.
此外,为实现上述目的,本发明还提供一种应用缓存数据的存储控制装置,包括:In addition, in order to achieve the above object, the present invention further provides a storage control apparatus for applying cache data, including:
获取模块,用于在侦测到基于终端的应用切换指令时,根据所述应用切换指令完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用;An acquiring module, configured to complete an application switching operation according to the application switching instruction when detecting a terminal-based application switching instruction, acquire an application running in the background of the terminal after marking the application switching operation, and mark the application as the first An application;
提取模块,用于在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据;An extracting module, configured to extract data cached by the first application when the first application is a preset type application;
保存模块,用于将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。a saving module, configured to save the cached data to a router storage module that is in communication with the terminal, to directly access the file data of the first application when the application running in the foreground requests the file data that is loaded by the first application The file data is extracted from the storage module.
优选地,所述应用缓存数据的存储控制装置还包括:读取模块和分配模块,Preferably, the storage control device for applying the cache data further includes: a reading module and an allocation module,
所述获取模块,还用于获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用;The acquiring module is further configured to acquire an application running in the foreground of the terminal after completing the application switching operation, and mark the application as a second application;
所述读取模块,用于在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值;The reading module is configured to read, when the second application is a preset type application, a maximum value of memory occupied by each application of the terminal;
所述分配模块,用于根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。The allocating module is configured to evenly allocate, according to the read maximum value, the memory space of the terminal to a memory area corresponding to the number of applications, so that each application stores corresponding data.
优选地,所述提取模块,用于在存在多个应用在后台运行时,将所占内存空间最多的应用所缓存的数据提取出来;Preferably, the extracting module is configured to extract data cached by an application that has the largest memory space when there are multiple applications running in the background;
所述保存模块,用于保存至路由器存储模块中。The save module is configured to save to a router storage module.
优选地,所述保存模块,还用于在应用所缓存的数据达到所述存储空间阈值时,将大于存储空间阈值的应用所缓存的数据均保存至路由器存储模块中。Preferably, the saving module is further configured to save the data cached by the application larger than the storage space threshold to the router storage module when the cached data reaches the storage space threshold.
优选地,通过根目包名查询得到应用的名称,根据读取的包名和应用名称一同分辨应用是否为预设类型相关的应用。Preferably, the name of the application is obtained by querying the root package name, and the application related to the preset type is determined according to the read package name and the application name.
优选地,所述应用缓存数据的存储控制装置还包括:Preferably, the storage control device for the application cache data further includes:
筛选模块,用于筛选在后台运行超过预设时间的应用的缓存数据; a screening module for filtering cached data of an application running in the background for more than a preset time;
处理模块,用于将所述缓存数据删除,关闭所有在后台运行的应用。A processing module, configured to delete the cached data and close all applications running in the background.
优选地,所述应用缓存数据的存储控制装置还包括显示模块,Preferably, the storage control device for applying the cache data further includes a display module.
所述获取模块,还用于获取所述关闭应用的标识信息;The obtaining module is further configured to acquire identifier information of the closed application;
所述显示模块,用于将所述标识信息在当前前台运行应用的界面显示。The display module is configured to display the identifier information on an interface of the current foreground running application.
优选地,所述应用缓存数据的存储控制装置还包括:Preferably, the storage control device for the application cache data further includes:
确定模块,用于确定保存至路由器存储模块的数据所占用的存储空间的值;a determining module, configured to determine a value of a storage space occupied by data saved to the router storage module;
所述显示模块,还用于将所占用的存储空间的值显示在当前前台运行应用的界面。The display module is further configured to display the value of the occupied storage space on an interface of the current foreground running application.
本发明通过在切换应用操作完成之后,将切换至后台的应用所缓存的数据保存到与终端通信连接的路由器存储模块中,供其他应用从所述路由器本地下载切换至后台的应用已缓存的数据,而不用重新再去应用服务器或者互联网络上下载。有效避免现有的在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差的问题。提供一种无需重新下载已经通过其他应用下载的数据的方式,提高了终端内存空间的利用度。The invention saves the data buffered by the application switched to the background to the router storage module communicatively connected with the terminal after the switching application operation is completed, for other applications to locally switch from the router to the background application cached data. Instead of going back to the application server or downloading on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
附图说明DRAWINGS
图1为本发明应用缓存数据的存储控制方法的第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a storage control method for applying cache data according to the present invention;
图2为本发明应用缓存数据的存储控制方法的第二实施例的流程示意图;2 is a schematic flowchart diagram of a second embodiment of a storage control method for applying cache data according to the present invention;
图3为本发明应用缓存数据的存储控制方法的第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a storage control method for applying cache data according to the present invention;
图4为本发明应用缓存数据的存储控制方法的第四实施例的流程示意图;4 is a schematic flowchart diagram of a fourth embodiment of a storage control method for applying cache data according to the present invention;
图5为本发明一实施例中应用缓存数据的存储控制的流程示意图;FIG. 5 is a schematic flowchart of storage control of application cache data according to an embodiment of the present invention; FIG.
图6为本发明应用缓存数据的存储控制装置的第一实施例的功能模块示意图;6 is a schematic diagram of functional modules of a first embodiment of a storage control device for applying cache data according to the present invention;
图7为本发明应用缓存数据的存储控制装置的第二实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of a second embodiment of a storage control device for applying cache data according to the present invention; FIG.
图8为本发明应用缓存数据的存储控制装置的第三实施例的功能模块示意图;8 is a schematic diagram of functional modules of a third embodiment of a storage control device for applying cache data according to the present invention;
图9为本发明应用缓存数据的存储控制装置的第四实施例的功能模块示 意图。FIG. 9 is a functional block diagram showing a fourth embodiment of a storage control device for applying cache data according to the present invention; intention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:在侦测到基于终端的应用切换指令时,根据所述应用切换指令完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用;在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据;将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。通过在切换应用操作完成之后,将切换至后台的应用所缓存的数据保存到与终端通信连接的路由器存储模块中,供其他应用从所述路由器本地下载切换至后台的应用已缓存的数据,而不用重新再去应用服务器或者互联网络上下载。有效避免现有的在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差的问题。提供一种无需重新下载已经通过其他应用下载的数据的方式,提高了终端内存空间的利用度。The main solution of the embodiment of the present invention is: when detecting the terminal-based application switching instruction, completing the application switching operation according to the application switching instruction, acquiring an application running in the background of the terminal after completing the application switching operation and The application is marked as a first application; when the first application is a preset type application, extracting data cached by the first application; saving the cached data to a router storage communicatively connected to the terminal In the module, when the file running in the foreground requests the file data loaded by the first application, the file data is directly extracted from the router storage module. After the switching application operation is completed, the data cached by the application switched to the background is saved to the router storage module communicatively connected with the terminal, for other applications to locally switch from the router to the data cached by the application in the background, and You don't have to go back to the application server or download it on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
由于现有的在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差的问题。Because the existing sharing of the download data cannot be realized in the application switching process, the user needs to re-download the data that has been downloaded through other applications, so that the utilization of the terminal memory space is poor.
基于上述问题,本发明提供一种应用缓存数据的存储控制方法。Based on the above problems, the present invention provides a storage control method for applying cache data.
参照图1,图1为本发明应用缓存数据的存储控制方法的第一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a storage control method for applying cache data according to the present invention.
在一实施例中,所述应用缓存数据的存储控制方法包括:In an embodiment, the storage control method of the application cache data includes:
步骤S10,在侦测到基于终端的应用切换指令时,根据所述应用切换指令 完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用;Step S10, when detecting a terminal-based application switching instruction, switching instructions according to the application Completing the application switching operation, acquiring an application running in the background of the terminal after marking the application switching operation, and marking the application as the first application;
在本实施例中,用户可以基于终端加载应用,例如,所加载的应用以QQ音乐、酷狗音乐和爱奇艺视频客户端为例。用户在需要听音乐时,可以开启QQ音乐或酷狗音乐选择音乐下载,在下载完毕后在终端本地播放或直接在线播放,在用户不确定通过哪个应用播放音乐时,用户会逐次打开音乐应用,例如,先打开QQ音乐应用再打开酷狗音乐,或先打开酷狗音乐再打开QQ音乐,在不同的音乐应用之间进行切换;在打开某个音乐应用后,基于该打开的音乐应用选择音乐进行播放,不管是选择在线播放还是选择下载后播放,均需要对选择的音乐进行缓冲加载后再播放,当然,可以边播放边缓冲。在用户通过不同的音乐应用选择不同的音乐进行播放后。在侦测到基于终端的应用切换指令时,在不同的应用之间进行切换,在前台运行某个应用达到预设时间(例如,5分钟或10分钟等)后,确定用户选择达到预设时间的应用来完成所需的功能,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用,即,获取到基于应用切换指令后切换至后台运行的应用,例如,当前运行的应用为QQ音乐,在后台运行的应用为酷狗音乐,基于切换指令后,将QQ音乐切换至后台运行,在前端运行所述酷狗音乐,且酷狗音乐在前端运行达到预设时间,确定所述QQ音乐为第一应用。In this embodiment, the user can load the application based on the terminal, for example, the loaded application is exemplified by QQ music, cool dog music, and iQiyi video client. When users need to listen to music, they can open QQ music or cool dog music to select music downloads. After the download is completed, they can be played locally in the terminal or played directly online. When the user is not sure which application to play music, the user will open the music application one by one. For example, first open the QQ music app and then open the cool dog music, or open the cool dog music and then open the QQ music, switch between different music applications; after opening a music application, select music based on the open music application Play, whether you choose to play online or select to play after downloading, you need to buffer the selected music and then play it. Of course, you can play while buffering. After the user selects different music for playing through different music applications. When detecting a terminal-based application switching instruction, switching between different applications, after running an application in the foreground to reach a preset time (for example, 5 minutes or 10 minutes, etc.), determining that the user selects the preset time The application is used to complete the required function, and after the application switching operation is completed, the application running in the background of the terminal is obtained and the application is marked as the first application, that is, the application that is switched to the background after the application switching instruction is acquired, For example, the currently running application is QQ music, and the application running in the background is cool dog music. After switching instructions, the QQ music is switched to run in the background, the cool dog music is run on the front end, and the cool dog music is run in the front end. The preset time determines that the QQ music is the first application.
步骤S20,在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据;In step S20, when the first application is a preset type application, extracting data cached by the first application;
在获取到所述第一应用后,判断所述第一应用是否为预设类型应用,所述预设类型包括但不限于音乐类型、视频类型等可以共用相同缓存数据的应用。例如,在所述第一应用为QQ音乐应用时,判断所述第一应用为预设类型应用,具体过程为:通过根目包名查询表1得到应用的名称,终端根据读取包名和应用名称一同分辨应用是否为预设类型相关的应用。在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据,例如,提取所述QQ应用在前端运行时下载的歌曲A。在本发明一实施例中,可以为每个应用设置不同的标识,所述标识包括用于区分不同应用的部分及包括区分不同类型的部分,例如,所设置的标识包括符号和数字部分,所述符号部分用于区分应用,数据部分用于区分类型,当然,在本领域技术人员的理解之下,其他 用于对应用进行标识的方式也包含在本发明保护的范围之内。所述终端可以基于每个应用的标识来识别应用是否为预设类型的应用。所述判断应用是否为预设类型应用的方式还可以包括其他本领域人员知晓的技术方案,在此不再一一赘述。After the first application is obtained, it is determined whether the first application is a preset type application, and the preset type includes, but is not limited to, an application that can share the same cache data, such as a music type and a video type. For example, when the first application is a QQ music application, the first application is determined to be a preset type application, and the specific process is: obtaining the name of the application by using the root package name query table 1, and the terminal according to the read package name and the application. The name together identifies whether the application is a preset type related application. When the first application is a preset type application, the data cached by the first application is extracted, for example, the song A downloaded by the QQ application when the front end is running is extracted. In an embodiment of the present invention, different identifiers may be set for each application, the identifiers including portions for distinguishing different applications and portions for distinguishing different types, for example, the identifiers included include symbols and digital portions, The symbol portion is used to distinguish the application, and the data portion is used to distinguish the type. Of course, under the understanding of those skilled in the art, other The manner in which the application is identified is also included within the scope of the present invention. The terminal may identify whether the application is a preset type of application based on an identifier of each application. The manner of determining whether the application is a preset type application may also include other technical solutions known to those skilled in the art, and details are not described herein again.
Figure PCTCN2016084773-appb-000001
Figure PCTCN2016084773-appb-000001
表1Table 1
步骤S30,将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。Step S30, saving the cached data to a router storage module that is communicatively connected to the terminal, to directly access the file storage module of the first application when the application running in the foreground requests the file data that is loaded by the first application. Extracting the file data.
在提取到所述第一应用所缓存的数据后,将所述所缓存的数据发送至与所述终端通信连接的路由器存储模块中,所述路由器存储模块保存所述所缓存的数据,并为所述保存的缓存数据设置标识信息,所述标识信息包括应用信息、数据信息、时间信息等。在路由器保存的缓存数据供在终端前台运行的应用请求相同的文件数据时,直接从所述路由器存储模块中提取所述文件数据,而不用重新去相应服务器或网页上下载,即,不会重复去下载已下载的文件数据,节省了终端的存储空间,进而提高了终端存储空间的利用度。 After extracting the data buffered by the first application, sending the cached data to a router storage module communicatively connected to the terminal, the router storage module saves the cached data, and The saved cache data sets identification information, and the identification information includes application information, data information, time information, and the like. When the cache data saved by the router is requested by the application running in the foreground of the terminal to request the same file data, the file data is directly extracted from the router storage module without being downloaded to the corresponding server or webpage, that is, it is not repeated. Downloading the downloaded file data saves the storage space of the terminal, thereby improving the utilization of the terminal storage space.
在本发明一实施例中,在存在多个应用在后台运行时,将所占内存空间最多的应用所缓存的数据提取出来,保存至路由器存储模块中。优选地,可以设置一个保存在路由器存储模块的存储空间阈值,在应用所缓存的数据达到所述存储空间阈值时,将大于存储空间阈值的应用所缓存的数据均保存至路由器存储模块中,所述存储空间阈值可以是2MB或1MB等根据用户需求及/或路由器存储模块的存储空间设置。In an embodiment of the present invention, when a plurality of applications are running in the background, the data cached by the application that has the largest memory space is extracted and saved to the router storage module. Preferably, a storage space threshold stored in the storage module of the router may be set, and when the data cached by the application reaches the storage space threshold, the data cached by the application larger than the storage space threshold is saved to the router storage module. The storage space threshold may be 2 MB or 1 MB, etc. according to user requirements and/or storage space settings of the router storage module.
在本发明其他实施例中,对所述路由器存储模块中所保存的数据进行管理,以保证有足够的存储空间存储最新的数据,在数据保存时间达到一定时间(7天或10天等),删除保存时间达到一定时间的数据;或在数据被使用次数小于预设次数阈值(例如,2次或3次等)时,删除使用次数小于预设次数阈值的数据。以上方式仅仅为举例性说明,并不局限于上述描述的方式,在本领域可知晓的范围内的技术方案均在本发明实施例保护的范围内,在此不再一一赘述。In other embodiments of the present invention, data stored in the router storage module is managed to ensure that there is sufficient storage space to store the latest data, and the data storage time reaches a certain time (7 days or 10 days, etc.). Deleting data whose storage time reaches a certain time; or deleting data whose usage count is less than the preset number of thresholds when the number of times the data is used is less than a preset number of thresholds (for example, 2 or 3 times, etc.). The above-mentioned manners are only for illustrative purposes, and are not limited to the above-described manners, and the technical solutions within the scope of the present invention are all within the scope of protection of the embodiments of the present invention, and will not be further described herein.
本实施例通过在切换应用操作完成之后,将切换至后台的应用所缓存的数据保存到与终端通信连接的路由器存储模块中,供其他应用从所述路由器本地下载切换至后台的应用已缓存的数据,而不用重新再去应用服务器或者互联网络上下载。有效避免现有的在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差的问题。提供一种无需重新下载已经通过其他应用下载的数据的方式,提高了终端内存空间的利用度。In this embodiment, after the switching application operation is completed, the data cached by the application switched to the background is saved in the router storage module that is connected to the terminal for communication, and the other application is switched from the local download of the router to the background application cached. Data without having to go back to the application server or download it on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
参照图2,图2为本发明应用缓存数据的存储控制方法的第二实施例的流程示意图。基于上述应用缓存数据的存储控制方法的第一实施例,所述步骤S10之后,还包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a second embodiment of a storage control method for applying cache data according to the present invention. The first embodiment of the storage control method based on the foregoing application cache data, after the step S10, further includes:
步骤S40,获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用;Step S40, acquiring an application running in the foreground of the terminal after completing the application switching operation, and marking the application as the second application;
步骤S50,在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值;Step S50, when the second application is a preset type application, reading a maximum value of memory occupied by each application of the terminal;
步骤S60,根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。 Step S60: The memory space of the terminal is evenly allocated according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
在本实施例中,在切换操作完成后,获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用。判断所述第二应用是否为预设类型的应用。所述判断过程与上述第一实施例中判断所述第一应用是否为预设类型应用的过程相同,在此不再赘述。在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值。根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。In this embodiment, after the handover operation is completed, an application running in the foreground of the terminal after completing the application switching operation is acquired and the application is marked as the second application. Determining whether the second application is a preset type of application. The determining process is the same as the process of determining whether the first application is a preset type application in the foregoing first embodiment, and details are not described herein again. When the second application is a preset type application, the maximum value of the memory occupied by each application of the terminal is read. The memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
本实施例通过在预设类型应用在终端前台运行时,平均分配终端的内存存储空间,提高终端的运行速度。In this embodiment, when the preset type is applied in the foreground of the terminal, the memory storage space of the terminal is evenly distributed, and the running speed of the terminal is improved.
参照图3,图3为本发明应用缓存数据的存储控制方法的第三实施例的流程示意图。基于上述应用缓存数据的存储控制方法的第二实施例,所述步骤S30之后,还包括:Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of a third embodiment of a storage control method for applying cache data according to the present invention. The second embodiment of the storage control method based on the application cache data, after the step S30, further includes:
步骤S70,筛选在后台运行超过预设时间的应用的缓存数据;Step S70, filtering cached data of an application running in the background for more than a preset time;
步骤S80,将所述缓存数据删除,关闭所有在后台运行的应用。In step S80, the cached data is deleted, and all applications running in the background are closed.
在本实施例中,在将在后台运行的应用所缓存的数据保存在路由器存储器中后,筛选在后台运行超过预设时间的应用,筛选所述超过预设时间的应用所加载的缓存数据,将所述缓存数据删除,关闭所有在后台运行的应用。所述预设时间优选为5分钟,也可以是8分钟后10分钟等。通过终端关闭在后台运行时间大于预设时间的应用,自动将运行时间大于预设时间的应用所缓存的数据清除,并将其他应用在后台停止运行,终端释放了后台缓存的数据,减少终端占用的内存存储空间,提供更多的内存供前台运行的应用,进而避免了前台运行应用卡顿的问题,提高了终端的运行速度和效率。在本发明一实施例中,参考图4,在步骤S80之后,还包括:步骤S90,获取所述关闭应用的标识信息,将所述标识信息在当前前台运行应用的界面显示。终端根据关闭的后台应用名称显示在前台应用的左上角,显示后台在运行的应用名称在右上角,所述显示的位置根据用户设置,并不局限于左上角或右上角,根据每个用户的习惯不同而设置在不同的位置。在本发明其他实施例中,也还可以是:确定保存至路由器存储模块的数据所占用的存储空间的值;将所占用的存储空间的值显示在当前前台运行应用的界面。 In this embodiment, after the data cached by the application running in the background is saved in the router memory, the application running in the background for more than the preset time is filtered, and the cached data loaded by the application exceeding the preset time is filtered. Delete the cached data and close all applications running in the background. The preset time is preferably 5 minutes, or may be 10 minutes after 8 minutes, and the like. After the terminal is shut down, the application running in the background is longer than the preset time, the data cached by the application whose running time is greater than the preset time is automatically cleared, and other applications are stopped in the background, and the terminal releases the data cached in the background to reduce the occupation of the terminal. The memory storage space provides more memory for the application running in the foreground, thereby avoiding the problem of running the application in the foreground, and improving the running speed and efficiency of the terminal. In an embodiment of the present invention, referring to FIG. 4, after step S80, the method further includes: step S90, acquiring identification information of the closed application, and displaying the identification information on an interface of the current foreground running application. The terminal is displayed in the upper left corner of the foreground application according to the closed background application name, and the display application name in the background is in the upper right corner, and the displayed position is not limited to the upper left corner or the upper right corner according to the user setting, according to each user's Habits are different and set in different locations. In other embodiments of the present invention, the value of the storage space occupied by the data stored in the storage module of the router may be determined; and the value of the occupied storage space is displayed on the interface of the current foreground running application.
为了更好的描述本发明实施例,参考图5,包括:For a better description of the embodiments of the present invention, referring to FIG. 5, including:
过程一:开始(系统TV接收两个媒体音乐应用之间切换的命令,比如:QQ音乐与酷狗音乐之间切换,系统发出中断字符命令,0x100代表命令切换。)Process 1: Start (System TV receives commands to switch between two media music applications, such as: switching between QQ music and cool dog music, the system issues an interrupt character command, 0x100 represents command switching.)
过程二:TV系统启动媒体应用名称模块,系统通过根目包名查表得到媒体应用的名称,TV系统读取包名和媒体名称一分辨(判断每个应用是否是媒体应用)两个应用是否是媒体相关的应用?比如:表一中媒体应用名称模块的包名就与媒体应用的名称对应,Media_Name(x1)=com.ttl.qqmusic(QQ音乐);Process 2: The TV system starts the media application name module, the system obtains the name of the media application through the root package name lookup table, and the TV system reads the package name and the media name to distinguish (determine whether each application is a media application) whether the two applications are Media related applications? For example, the package name of the media application name module in Table 1 corresponds to the name of the media application, Media_Name(x1)=com.ttl.qqmusic (QQ music);
Media_Name(x2)=com.kugo.music(酷狗音乐)Media_Name(x2)=com.kugo.music (cool dog music)
Media_Name(x2)=com.iqyi.music(奇异音乐)Media_Name(x2)=com.iqyi.music (singular music)
过程三:TV系统发现两个是音乐应用吗?比如:QQ音乐,酷狗音乐应用,两种情况:一种情况,TV系统发现当前处于前后台是两个媒体的应用,比如:Media_Name(x1)=com.ttl.qqmusic(QQ音乐)Process 3: Does the TV system find two music applications? For example: QQ music, cool dog music application, two cases: a situation, TV system found that the current front and back are two media applications, such as: Media_Name (x1) = com.ttl.qqmusic (QQ music)
Media_Name(x2)=com.kugo.music(酷狗音乐)Media_Name(x2)=com.kugo.music (cool dog music)
过程七:TV系统发现当前处于前后台不是两个媒体的应用,系统关闭媒体应用前后台身份模块。;比如:Media_Name(x1)=com.ttl.qqmusic(QQ音乐)Process 7: The TV system finds that the application is not in the front and back, not the two media, and the system closes the background identity module before the media application. For example: Media_Name(x1)=com.ttl.qqmusic(QQ Music)
Media_Name(x2)=com.kugo.TT(酷狗杂志);Media_Name(x2)=com.kugo.TT (Cool Dog Magazine);
过程四:一种情况,TV系统发现当前处于前后台是两个媒体的应用,Process 4: In one case, the TV system finds that the application is currently in the front and back, which is two media applications.
系统启动媒体应用前后台身份模块,系统通过媒体应接收按键事件方式判别当前应用处于前台还是后台,接收到按键事件的应用为前台应用,其他为后台应用,1,标识前台,0,标识后台比如:酷狗音乐:Media_Identity_Mode(x2)=0;The system starts the background application module before the media application, and the system determines whether the current application is in the foreground or the background through the media receiving the key event, the application receiving the key event is the foreground application, the other is the background application, 1, the foreground, 0, the logo background, for example. : Cool dog music: Media_Identity_Mode(x2)=0;
过程五:TV系统发现前台应用是音乐应用吗?比如:QQ音乐:Media_Identity_Mode(x1)=1,两种情况:一种情况:TV系统发现前台应用是音乐应用,比如:QQ音乐:Media_Identity_Mode(x1)=1,另一种情况:TV系统发现前台应用是不音乐应用,比如:Media_Name(x2)=com.kugo.TT(酷狗杂志),Media_Identity_Mode(x2)=0;Process 5: Does the TV system find that the foreground application is a music application? For example: QQ music: Media_Identity_Mode (x1) = 1, two cases: one case: TV system found that the foreground application is a music application, such as: QQ music: Media_Identity_Mode (x1) = 1, another case: TV system found the foreground The application is not a music application, such as: Media_Name(x2)=com.kugo.TT (Cool Dog Magazine), Media_Identity_Mode(x2)=0;
过程六:一种情况:TV系统发现前台应用是音乐应用,TV系统发现媒体应用前台身份模块的包名(QQ音乐)为前台应用,系统开启应用动态内存 侦测模块,系统读取各个应用内存的最大值,与TV系统的整个内存区域按照多个应用进行内存的平均,比如:输入2个应用分别是QQ音乐,酷狗音乐,TV系统总共内存为512MB,得到前台应用的平均内存为256MB;Process 6: A situation: the TV system finds that the foreground application is a music application, and the TV system finds that the package name (QQ music) of the media application foreground identity module is a foreground application, and the system starts to apply the dynamic memory. The detection module, the system reads the maximum value of each application memory, and averages the memory according to multiple applications in the entire memory area of the TV system, for example, inputting two applications are QQ music, cool dog music, and the total memory of the TV system is 512MB, the average memory of the foreground application is 256MB;
输入的应用个数:Input_num_ap(x1)=2Number of applications entered: Input_num_ap(x1)=2
TV系统的内存总数:TV_RAM(x1)=256MTotal memory of TV system: TV_RAM(x1)=256M
应用平均内存共计:Apply average memory total:
TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=256/2=256M.TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=256/2=256M.
具体的:specific:
1、系统获取应用本身内存空间大小,1, the system obtains the size of the application's own memory space,
比如:QQ音乐内存最大需要50MB,For example: QQ music memory needs up to 50MB.
酷狗音乐内存最大需要1000MB,如果大于应用需要的大小,多分配给QQ、酷狗应用造成浪费。Cool dog music memory needs up to 1000MB. If it is larger than the size required by the application, it will be wasted to be allocated to QQ and cool dog applications.
2、系统获取物理内存的空间总共大小,动态按照视频应用个数求平均,系统得到平均分配的应用的内存大小,比如:多个QQ音乐应用,共计10个,2. The system obtains the total size of the physical memory space, dynamically averages the number of video applications, and the system obtains the average allocated memory size, for example, multiple QQ music applications, a total of 10
TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=512/10=51MB。TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=512/10=51MB.
3、系统将物理分配的内存应用的值与应用本身内存大小做比较,物理应用空间大于应用内存空间,系统设定应用最大内存大小。比如:QQ音乐内存最大需要50MB,及时分配51MB,最终,设定QQ音乐物理内存50MB。3. The system compares the value of the physically allocated memory application with the memory size of the application itself. The physical application space is larger than the application memory space, and the system sets the maximum memory size for the application. For example: QQ music memory needs up to 50MB, allocate 51MB in time, and finally, set QQ music physical memory 50MB.
过程八:另一种情况:TV系统发现前台应用是不音乐应用,TV系统发现音乐(酷狗音乐)应用为后台应用,系统启动内存搬移路由器模块,系统读取应用动态内存侦测模块的值与后台应用下载数据的二分之一后,将后台下载的数据传送到路由器存储区33中,系统定时5分钟,路由器内存空间只能保存后端时间最长最大的保存数据的内存。比如:路由存储控件512MB,5分钟到,路由器保存酷狗音乐应用的3首歌曲,爱你一万年,冰雨,心只有你,此时的MP3音乐数据暂存到路由器,路由器发现TV系统后台还有其他媒体应用,路由器发送停止接收应用的内存数据命令,不接收其他应用的数据,路由器还发送停止其他应用的指令给TV。Process 8: Another situation: The TV system finds that the foreground application is not a music application, the TV system finds the music (cool dog music) application as a background application, the system starts the memory transfer router module, and the system reads the value of the application dynamic memory detection module. After one-half of the download data is downloaded from the background application, the data downloaded from the background is transferred to the router storage area 33. The system is timed for 5 minutes, and the router memory space can only store the memory of the longest and largest saved data at the back end time. For example: 512MB of routing storage control, 5 minutes to, the router saves 3 songs of cool dog music application, love you for 10,000 years, ice rain, heart only you, MP3 music data is temporarily stored in the router, router discovers TV system There are other media applications in the background. The router sends a memory data command to stop receiving applications, and does not receive data from other applications. The router also sends instructions to stop other applications to the TV.
过程九:TV系统开启路由关闭后台应用模块,路由系统自动的将后台运行时间大于5分钟的应用关闭,TV端存的数据清空,将其他后台应用停止运行,TV系统释放了后台缓存的数据,比如:TV系统接收到路由的命令,停 止运行千千静听的应用,清空缓存的MP3等音乐数据。Process 9: The TV system opens the route to close the background application module, the routing system automatically closes the application whose background running time is greater than 5 minutes, the data stored in the TV terminal is cleared, the other background applications are stopped, and the TV system releases the data cached in the background. For example: the TV system receives the routing command, stops Stop running thousands of listening applications, emptying cached MP3 and other music data.
过程十:TV系统开启提醒后台媒体显示模块,TV系统根据关闭的后台应用名称显示在前台应用的左上角,显示后台在运行的应用的名称在右上角,显示缓存到路由器的大小。比如:显示关闭千千静听音乐,显示酷狗音乐缓存到路由器3首歌曲,爱你一万年,冰雨,心只有你。Process 10: The TV system opens a reminder to the background media display module. The TV system displays the name of the background application in the upper left corner of the foreground application according to the closed background application name, and displays the name of the application running in the background in the upper right corner, indicating the size of the cache to the router. For example: display off thousands of listening music, show cool dog music cache to the router 3 songs, love you for 10,000 years, ice rain, heart only you.
上述各个实施例的应用缓存数据的存储控制方法的执行主体均可以为终端。更进一步地,该净化器应用缓存数据的存储控制方法可以由安装在终端上的客户端应用缓存数据的存储控制程序实现,其中,该终端包括但不限于智能电视、手机、pad、笔记本电脑等,优选为智能电视。The execution subject of the storage control method of the application cache data of each of the above embodiments may be a terminal. Further, the storage control method of the purifier application cache data may be implemented by a storage control program of a client application cache data installed on the terminal, wherein the terminal includes but is not limited to a smart TV, a mobile phone, a pad, a notebook computer, etc. Preferably, it is a smart TV.
本发明进一步提供一种应用缓存数据的存储控制装置。The present invention further provides a storage control device that applies cache data.
参照图6,图6为本发明应用缓存数据的存储控制装置的第一实施例的功能模块示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of functional modules of a first embodiment of a storage control device for applying cache data according to the present invention.
在一实施例中,所述应用缓存数据的存储控制装置包括:获取模块10、提取模块20及保存模块30。In an embodiment, the storage control device of the application cache data includes: an obtaining module 10, an extracting module 20, and a saving module 30.
所述获取模块10,用于在侦测到基于终端的应用切换指令时,根据所述应用切换指令完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用;The acquiring module 10 is configured to: after detecting the terminal-based application switching instruction, complete an application switching operation according to the application switching instruction, acquire an application running in the background of the terminal after completing the application switching operation, and acquire the application Mark as the first application;
在本实施例中,用户可以基于终端加载应用,例如,所加载的应用以QQ音乐、酷狗音乐和爱奇艺视频客户端为例。用户在需要听音乐时,可以开启QQ音乐或酷狗音乐选择音乐下载,在下载完毕后在终端本地播放或直接在线播放,在用户不确定通过哪个应用播放音乐时,用户会逐次打开音乐应用,例如,先打开QQ音乐应用再打开酷狗音乐,或先打开酷狗音乐再打开QQ音乐,在不同的音乐应用之间进行切换;在打开某个音乐应用后,基于该打开的音乐应用选择音乐进行播放,不管是选择在线播放还是选择下载后播放,均需要对选择的音乐进行缓冲加载后再播放,当然,可以边播放边缓冲。在用户通过不同的音乐应用选择不同的音乐进行播放后。在侦测到基于终端的应用切换指令时,在不同的应用之间进行切换,在前台运行某个应用达到预设时间(例如,5分钟或10分钟等)后,确定用户选择达到预设时间的应用来完成所需的功能,在完成应用切换操作后获取在所述终端后台运行的应用 并将该应用标记为第一应用,即,获取到基于应用切换指令后切换至后台运行的应用,例如,当前运行的应用为QQ音乐,在后台运行的应用为酷狗音乐,基于切换指令后,将QQ音乐切换至后台运行,在前端运行所述酷狗音乐,且酷狗音乐在前端运行达到预设时间,确定所述QQ音乐为第一应用。In this embodiment, the user can load the application based on the terminal, for example, the loaded application is exemplified by QQ music, cool dog music, and iQiyi video client. When users need to listen to music, they can open QQ music or cool dog music to select music downloads. After the download is completed, they can be played locally in the terminal or played directly online. When the user is not sure which application to play music, the user will open the music application one by one. For example, first open the QQ music app and then open the cool dog music, or open the cool dog music and then open the QQ music, switch between different music applications; after opening a music application, select music based on the open music application Play, whether you choose to play online or select to play after downloading, you need to buffer the selected music and then play it. Of course, you can play while buffering. After the user selects different music for playing through different music applications. When detecting a terminal-based application switching instruction, switching between different applications, after running an application in the foreground to reach a preset time (for example, 5 minutes or 10 minutes, etc.), determining that the user selects the preset time Application to complete the required functions, obtain the application running in the background of the terminal after completing the application switching operation Marking the application as the first application, that is, acquiring an application that switches to the background operation after the application switching instruction is performed, for example, the currently running application is QQ music, and the application running in the background is cool dog music, based on the switching instruction. The QQ music is switched to run in the background, the cool dog music is run on the front end, and the cool dog music runs in the front end to reach a preset time, and the QQ music is determined to be the first application.
所述提取模块20,用于在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据;The extracting module 20 is configured to: when the first application is a preset type application, extract data buffered by the first application;
在获取到所述第一应用后,判断所述第一应用是否为预设类型应用,所述预设类型包括但不限于音乐类型、视频类型等可以共用相同缓存数据的应用。例如,在所述第一应用为QQ音乐应用时,判断所述第一应用为预设类型应用,具体过程为:通过根目包名查询表1得到应用的名称,终端根据读取包名和应用名称一同分辨应用是否为预设类型相关的应用。在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据,例如,提取所述QQ应用在前端运行时下载的歌曲A。在本发明一实施例中,可以为每个应用设置不同的标识,所述标识包括用于区分不同应用的部分及包括区分不同类型的部分,例如,所设置的标识包括符号和数字部分,所述符号部分用于区分应用,数据部分用于区分类型,当然,在本领域技术人员的理解之下,其他用于对应用进行标识的方式也包含在本发明保护的范围之内。所述终端可以基于每个应用的标识来识别应用是否为预设类型的应用。所述判断应用是否为预设类型应用的方式还可以包括其他本领域人员知晓的技术方案,在此不再一一赘述。After the first application is obtained, it is determined whether the first application is a preset type application, and the preset type includes, but is not limited to, an application that can share the same cache data, such as a music type and a video type. For example, when the first application is a QQ music application, the first application is determined to be a preset type application, and the specific process is: obtaining the name of the application by using the root package name query table 1, and the terminal according to the read package name and the application. The name together identifies whether the application is a preset type related application. When the first application is a preset type application, the data cached by the first application is extracted, for example, the song A downloaded by the QQ application when the front end is running is extracted. In an embodiment of the present invention, different identifiers may be set for each application, the identifiers including portions for distinguishing different applications and portions for distinguishing different types, for example, the identifiers included include symbols and digital portions, The symbol portion is used to distinguish the application, and the data portion is used to distinguish the type. Of course, other means for identifying the application are also included in the scope of the present invention, as understood by those skilled in the art. The terminal may identify whether the application is a preset type of application based on an identifier of each application. The manner of determining whether the application is a preset type application may also include other technical solutions known to those skilled in the art, and details are not described herein again.
所述保存模块30,用于将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。The saving module 30 is configured to save the cached data to a router storage module that is communicatively connected to the terminal, to directly request, when the application running in the foreground requests the file data that is loaded by the first application Extracting the file data in the router storage module.
在提取到所述第一应用所缓存的数据后,将所述所缓存的数据发送至与所述终端通信连接的路由器存储模块中,所述路由器存储模块保存所述所缓存的数据,并为所述保存的缓存数据设置标识信息,所述标识信息包括应用信息、数据信息、时间信息等。在路由器保存的缓存数据供在终端前台运行的应用请求相同的文件数据时,直接从所述路由器存储模块中提取所述文件数据,而不用重新去相应服务器或网页上下载,即,不会重复去下载已下载的文件数据,节省了终端的存储空间,进而提高了终端存储空间的利用度。 After extracting the data buffered by the first application, sending the cached data to a router storage module communicatively connected to the terminal, the router storage module saves the cached data, and The saved cache data sets identification information, and the identification information includes application information, data information, time information, and the like. When the cache data saved by the router is requested by the application running in the foreground of the terminal to request the same file data, the file data is directly extracted from the router storage module without being downloaded to the corresponding server or webpage, that is, it is not repeated. Downloading the downloaded file data saves the storage space of the terminal, thereby improving the utilization of the terminal storage space.
在本发明一实施例中,在存在多个应用在后台运行时,将所占内存空间最多的应用所缓存的数据提取出来,保存至路由器存储模块中。优选地,可以设置一个保存在路由器存储模块的存储空间阈值,在应用所缓存的数据达到所述存储空间阈值时,将大于存储空间阈值的应用所缓存的数据均保存至路由器存储模块中,所述存储空间阈值可以是2MB或1MB等根据用户需求及/或路由器存储模块的存储空间设置。In an embodiment of the present invention, when a plurality of applications are running in the background, the data cached by the application that has the largest memory space is extracted and saved to the router storage module. Preferably, a storage space threshold stored in the storage module of the router may be set, and when the data cached by the application reaches the storage space threshold, the data cached by the application larger than the storage space threshold is saved to the router storage module. The storage space threshold may be 2 MB or 1 MB, etc. according to user requirements and/or storage space settings of the router storage module.
在本发明其他实施例中,对所述路由器存储模块中所保存的数据进行管理,以保证有足够的存储空间存储最新的数据,在数据保存时间达到一定时间(7天或10天等),删除保存时间达到一定时间的数据;或在数据被使用次数小于预设次数阈值(例如,2次或3次等)时,删除使用次数小于预设次数阈值的数据。以上方式仅仅为举例性说明,并不局限于上述描述的方式,在本领域可知晓的范围内的技术方案均在本发明实施例保护的范围内,在此不再一一赘述。In other embodiments of the present invention, data stored in the router storage module is managed to ensure that there is sufficient storage space to store the latest data, and the data storage time reaches a certain time (7 days or 10 days, etc.). Deleting data whose storage time reaches a certain time; or deleting data whose usage count is less than the preset number of thresholds when the number of times the data is used is less than a preset number of thresholds (for example, 2 or 3 times, etc.). The above-mentioned manners are only for illustrative purposes, and are not limited to the above-described manners, and the technical solutions within the scope of the present invention are all within the scope of protection of the embodiments of the present invention, and will not be further described herein.
本实施例通过在切换应用操作完成之后,将切换至后台的应用所缓存的数据保存到与终端通信连接的路由器存储模块中,供其他应用从所述路由器本地下载切换至后台的应用已缓存的数据,而不用重新再去应用服务器或者互联网络上下载。有效避免现有的在应用切换过程中由于无法实现下载数据的共享,导致用户需要重新下载已经通过其他应用下载的数据,使得终端内存空间利用度差的问题。提供一种无需重新下载已经通过其他应用下载的数据的方式,提高了终端内存空间的利用度。In this embodiment, after the switching application operation is completed, the data cached by the application switched to the background is saved in the router storage module that is connected to the terminal for communication, and the other application is switched from the local download of the router to the background application cached. Data without having to go back to the application server or download it on the internet. Effectively avoiding the existing sharing of download data in the application switching process, the user needs to re-download the data that has been downloaded by other applications, so that the utilization of the terminal memory space is poor. Provides a way to increase the utilization of the terminal memory space without re-downloading the data that has been downloaded by other applications.
参照图7,图7为本发明应用缓存数据的存储控制装置的第二实施例的功能模块示意图。所述应用缓存数据的存储控制装置还包括读取模块40和分配模块50。Referring to FIG. 7, FIG. 7 is a schematic diagram of functional modules of a second embodiment of a storage control device for applying cache data according to the present invention. The storage control device that applies the cache data further includes a reading module 40 and an allocation module 50.
所述获取模块10,还用于获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用;The obtaining module 10 is further configured to acquire an application running in the foreground of the terminal after completing the application switching operation, and mark the application as a second application;
所述读取模块40,用于在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值;The reading module 40 is configured to read a maximum value occupied by each application of the terminal when the second application is a preset type application;
所述分配模块50,用于根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。 The allocating module 50 is configured to allocate, according to the read maximum value, the memory space of the terminal to a memory area corresponding to the number of applications, so that each application stores corresponding data.
在本实施例中,在切换操作完成后,获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用。判断所述第二应用是否为预设类型的应用。所述判断过程与上述第一实施例中判断所述第一应用是否为预设类型应用的过程相同,在此不再赘述。在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值。根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。In this embodiment, after the handover operation is completed, an application running in the foreground of the terminal after completing the application switching operation is acquired and the application is marked as the second application. Determining whether the second application is a preset type of application. The determining process is the same as the process of determining whether the first application is a preset type application in the foregoing first embodiment, and details are not described herein again. When the second application is a preset type application, the maximum value of the memory occupied by each application of the terminal is read. The memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
本实施例通过在预设类型应用在终端前台运行时,平均分配终端的内存存储空间,提高终端的运行速度。In this embodiment, when the preset type is applied in the foreground of the terminal, the memory storage space of the terminal is evenly distributed, and the running speed of the terminal is improved.
参照图8,图8为本发明应用缓存数据的存储控制装置的第三实施例的功能模块示意图。所述应用缓存数据的存储控制装置还包括筛选模块60和处理模块70及显示模块80。Referring to FIG. 8, FIG. 8 is a schematic diagram of functional modules of a third embodiment of a storage control device for applying cache data according to the present invention. The storage control device for applying cache data further includes a screening module 60, a processing module 70, and a display module 80.
所述筛选模块60,用于筛选在后台运行超过预设时间的应用的缓存数据;The filtering module 60 is configured to filter cached data of an application that runs in the background for more than a preset time;
所述处理模块70,用于将所述缓存数据删除,关闭所有在后台运行的应用。The processing module 70 is configured to delete the cached data and close all applications running in the background.
在本实施例中,在将在后台运行的应用所缓存的数据保存在路由器存储器中后,筛选在后台运行超过预设时间的应用,筛选所述超过预设时间的应用所加载的缓存数据,将所述缓存数据删除,关闭所有在后台运行的应用。所述预设时间优选为5分钟,也可以是8分钟后10分钟等。通过终端关闭在后台运行时间大于预设时间的应用,自动将运行时间大于预设时间的应用所缓存的数据清除,并将其他应用在后台停止运行,终端释放了后台缓存的数据,减少终端占用的内存存储空间,提供更多的内存供前台运行的应用,进而避免了前台运行应用卡顿的问题,提高了终端的运行速度和效率。In this embodiment, after the data cached by the application running in the background is saved in the router memory, the application running in the background for more than the preset time is filtered, and the cached data loaded by the application exceeding the preset time is filtered. Delete the cached data and close all applications running in the background. The preset time is preferably 5 minutes, or may be 10 minutes after 8 minutes, and the like. After the terminal is shut down, the application running in the background is longer than the preset time, the data cached by the application whose running time is greater than the preset time is automatically cleared, and other applications are stopped in the background, and the terminal releases the data cached in the background to reduce the occupation of the terminal. The memory storage space provides more memory for the application running in the foreground, thereby avoiding the problem of running the application in the foreground, and improving the running speed and efficiency of the terminal.
所述获取模块10,还用于获取所述关闭应用的标识信息;The obtaining module 10 is further configured to acquire identifier information of the closed application.
所述显示模块80,用于将所述标识信息在当前前台运行应用的界面显示。终端根据关闭的后台应用名称显示在前台应用的左上角,显示后台在运行的应用名称在右上角,所述显示的位置根据用户设置,并不局限于左上角或右上角,根据每个用户的习惯不同而设置在不同的位置。The display module 80 is configured to display the identifier information on an interface of the current foreground running application. The terminal is displayed in the upper left corner of the foreground application according to the closed background application name, and the display application name in the background is in the upper right corner, and the displayed position is not limited to the upper left corner or the upper right corner according to the user setting, according to each user's Habits are different and set in different locations.
参考图9,所述应用缓存数据的存储控制装置还包括确定模块90,用于 确定保存至路由器存储模块的数据所占用的存储空间的值;所述显示模块80,还用于将所占用的存储空间的值显示在当前前台运行应用的界面。Referring to FIG. 9, the storage control device for applying cache data further includes a determining module 90 for The value of the storage space occupied by the data saved to the router storage module is determined; the display module 80 is further configured to display the value of the occupied storage space on the interface of the current foreground running application.
为了更好的描述本发明实施例,参考图5,包括:For a better description of the embodiments of the present invention, referring to FIG. 5, including:
过程一:开始(系统TV接收两个媒体音乐应用之间切换的命令,比如:QQ音乐与酷狗音乐之间切换,系统发出中断字符命令,0x100代表命令切换。)Process 1: Start (System TV receives commands to switch between two media music applications, such as: switching between QQ music and cool dog music, the system issues an interrupt character command, 0x100 represents command switching.)
过程二:TV系统启动媒体应用名称模块,系统通过根目包名查表得到媒体应用的名称,TV系统读取包名和媒体名称一分辨(判断每个应用是否是媒体应用)两个应用是否是媒体相关的应用?比如:表一中媒体应用名称模块的包名就与媒体应用的名称对应,Media_Name(x1)=com.ttl.qqmusic(QQ音乐);Process 2: The TV system starts the media application name module, the system obtains the name of the media application through the root package name lookup table, and the TV system reads the package name and the media name to distinguish (determine whether each application is a media application) whether the two applications are Media related applications? For example, the package name of the media application name module in Table 1 corresponds to the name of the media application, Media_Name(x1)=com.ttl.qqmusic (QQ music);
Media_Name(x2)=com.kugo.music(酷狗音乐)Media_Name(x2)=com.kugo.music (cool dog music)
Media_Name(x2)=com.iqyi.music(奇异音乐)Media_Name(x2)=com.iqyi.music (singular music)
过程三:TV系统发现两个是音乐应用吗?比如:QQ音乐,酷狗音乐应用,两种情况:一种情况,TV系统发现当前处于前后台是两个媒体的应用,比如:Media_Name(x1)=com.ttl.qqmusic(QQ音乐)Process 3: Does the TV system find two music applications? For example: QQ music, cool dog music application, two cases: a situation, TV system found that the current front and back are two media applications, such as: Media_Name (x1) = com.ttl.qqmusic (QQ music)
Media_Name(x2)=com.kugo.music(酷狗音乐)Media_Name(x2)=com.kugo.music (cool dog music)
过程七:另一种情况:TV系统发现当前处于前后台不是两个媒体的应用,系统关闭媒体应用前后台身份模块。;比如:Media_Name(x1)=com.ttl.qqmusic(QQ音乐)Process 7: Another situation: The TV system finds that the application is not in the front and back, not the two media, and the system closes the background identity module before the media application. For example: Media_Name(x1)=com.ttl.qqmusic(QQ Music)
Media_Name(x2)=com.kugo.TT(酷狗杂志);Media_Name(x2)=com.kugo.TT (Cool Dog Magazine);
过程四:一种情况,TV系统发现当前处于前后台是两个媒体的应用,Process 4: In one case, the TV system finds that the application is currently in the front and back, which is two media applications.
系统启动媒体应用前后台身份模块,系统通过媒体应接收按键事件方式判别当前应用处于前台还是后台,接收到按键事件的应用为前台应用,其他为后台应用,1,标识前台,0,标识后台比如:酷狗音乐:Media_Identity_Mode(x2)=0;The system starts the background application module before the media application, and the system determines whether the current application is in the foreground or the background through the media receiving the key event, the application receiving the key event is the foreground application, the other is the background application, 1, the foreground, 0, the logo background, for example. : Cool dog music: Media_Identity_Mode(x2)=0;
过程五:TV系统发现前台应用是音乐应用吗?比如:QQ音乐:Media_Identity_Mode(x1)=1,两种情况:一种情况:TV系统发现前台应用是音乐应用,比如:QQ音乐:Media_Identity_Mode(x1)=1,另一种情况:TV系统发现前台应用是不音乐应用,比如:Media_Name(x2)=com.kugo.TT(酷狗杂志),Media_Identity_Mode(x2)=0; Process 5: Does the TV system find that the foreground application is a music application? For example: QQ music: Media_Identity_Mode (x1) = 1, two cases: one case: TV system found that the foreground application is a music application, such as: QQ music: Media_Identity_Mode (x1) = 1, another case: TV system found the foreground The application is not a music application, such as: Media_Name(x2)=com.kugo.TT (Cool Dog Magazine), Media_Identity_Mode(x2)=0;
过程六:一种情况:TV系统发现前台应用是音乐应用,TV系统发现媒体应用前台身份模块的包名(QQ音乐)为前台应用,系统开启应用动态内存侦测模块,系统读取各个应用内存的最大值,与TV系统的整个内存区域按照多个应用进行内存的平均,比如:输入2个应用分别是QQ音乐,酷狗音乐,TV系统总共内存为512MB,得到前台应用的平均内存为256MB;Process 6: A situation: the TV system finds that the foreground application is a music application, and the TV system finds that the package name (QQ music) of the media application foreground identity module is a foreground application, and the system starts to apply the dynamic memory detection module, and the system reads each application memory. The maximum value, compared with the entire memory area of the TV system, the average of the memory according to multiple applications, for example: input 2 applications are QQ music, cool dog music, the total memory of the TV system is 512MB, and the average memory of the foreground application is 256MB. ;
输入的应用个数:Input_num_ap(x1)=2Number of applications entered: Input_num_ap(x1)=2
TV系统的内存总数:TV_RAM(x1)=256MTotal memory of TV system: TV_RAM(x1)=256M
应用平均内存共计:Apply average memory total:
TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=256/2=256M.TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=256/2=256M.
具体的:specific:
1、系统获取应用本身内存空间大小,1, the system obtains the size of the application's own memory space,
比如:QQ音乐内存最大需要50MB,For example: QQ music memory needs up to 50MB.
酷狗音乐内存最大需要1000MB,如果大于应用需要的大小,多分配给QQ、酷狗应用造成浪费。Cool dog music memory needs up to 1000MB. If it is larger than the size required by the application, it will be wasted to be allocated to QQ and cool dog applications.
2、系统获取物理内存的空间总共大小,动态按照视频应用个数求平均,系统得到平均分配的应用的内存大小,比如:多个QQ音乐应用,共计10个,2. The system obtains the total size of the physical memory space, dynamically averages the number of video applications, and the system obtains the average allocated memory size, for example, multiple QQ music applications, a total of 10
TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=512/10=51MB。TV_AVE_RAM=TV_RAM(x1)/Input_num_ap(x1)=512/10=51MB.
3、系统将物理分配的内存应用的值与应用本身内存大小做比较,物理应用空间大于应用内存空间,系统设定应用最大内存大小。比如:QQ音乐内存最大需要50MB,及时分配51MB,最终,设定QQ音乐物理内存50MB。3. The system compares the value of the physically allocated memory application with the memory size of the application itself. The physical application space is larger than the application memory space, and the system sets the maximum memory size for the application. For example: QQ music memory needs up to 50MB, allocate 51MB in time, and finally, set QQ music physical memory 50MB.
过程八:另一种情况:TV系统发现前台应用是不音乐应用,TV系统发现音乐(酷狗音乐)应用为后台应用,系统启动内存搬移路由器模块,系统读取应用动态内存侦测模块的值与后台应用下载数据的二分之一后,将后台下载的数据传送到路由器存储区33中,系统定时5分钟,路由器内存空间只能保存后端时间最长最大的保存数据的内存。比如:路由存储控件512MB,5分钟到,路由器保存酷狗音乐应用的3首歌曲,爱你一万年,冰雨,心只有你,此时的MP3音乐数据暂存到路由器,路由器发现TV系统后台还有其他媒体应用,路由器发送停止接收应用的内存数据命令,不接收其他应用的数据,路由器还发送停止其他应用的指令给TV。Process 8: Another situation: The TV system finds that the foreground application is not a music application, the TV system finds the music (cool dog music) application as a background application, the system starts the memory transfer router module, and the system reads the value of the application dynamic memory detection module. After one-half of the download data is downloaded from the background application, the data downloaded from the background is transferred to the router storage area 33. The system is timed for 5 minutes, and the router memory space can only store the memory of the longest and largest saved data at the back end time. For example: 512MB of routing storage control, 5 minutes to, the router saves 3 songs of cool dog music application, love you for 10,000 years, ice rain, heart only you, MP3 music data is temporarily stored in the router, router discovers TV system There are other media applications in the background. The router sends a memory data command to stop receiving applications, and does not receive data from other applications. The router also sends instructions to stop other applications to the TV.
过程九:TV系统开启路由关闭后台应用模块,路由系统自动的将后台运 行时间大于5分钟的应用关闭,TV端存的数据清空,将其他后台应用停止运行,TV系统释放了后台缓存的数据,比如:TV系统接收到路由的命令,停止运行千千静听的应用,清空缓存的MP3等音乐数据。Process nine: the TV system opens the route to close the background application module, and the routing system automatically forwards the background. The application with the line time greater than 5 minutes is closed, the data stored in the TV terminal is cleared, and other background applications are stopped. The TV system releases the data cached in the background. For example, the TV system receives the routing command and stops running the application of thousands of listeners. , clear the cached MP3 and other music data.
过程十:TV系统开启提醒后台媒体显示模块,TV系统根据关闭的后台应用名称显示在前台应用的左上角,显示后台在运行的应用的名称在右上角,显示缓存到路由器的大小。比如:显示关闭千千静听音乐,显示酷狗音乐缓存到路由器3首歌曲,爱你一万年,冰雨,心只有你。Process 10: The TV system opens a reminder to the background media display module. The TV system displays the name of the background application in the upper left corner of the foreground application according to the closed background application name, and displays the name of the application running in the background in the upper right corner, indicating the size of the cache to the router. For example: display off thousands of listening music, show cool dog music cache to the router 3 songs, love you for 10,000 years, ice rain, heart only you.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (16)

  1. 一种应用缓存数据的存储控制方法,其特征在于,包括步骤:A storage control method for applying cached data, comprising the steps of:
    在侦测到基于终端的应用切换指令时,根据所述应用切换指令完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用;After detecting the terminal-based application switching instruction, the application switching operation is completed according to the application switching instruction, and the application running in the background of the terminal is acquired after the application switching operation is completed, and the application is marked as the first application;
    在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据;Extracting data cached by the first application when the first application is a preset type application;
    将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。Saving the cached data to a router storage module communicatively connected to the terminal, to directly extract the file data from the router storage module when the application running in the foreground requests the file data loaded by the first application File data.
  2. 如权利要求1所述的应用缓存数据的存储控制方法,其特征在于,在所述获取在所述终端后台运行的应用并将该应用标记为第一应用的步骤之后,还包括:The storage control method of the application cache data according to claim 1, wherein after the step of acquiring the application running in the background of the terminal and marking the application as the first application, the method further includes:
    获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用;Obtaining an application running in the foreground of the terminal after completing the application switching operation, and marking the application as a second application;
    在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值;When the second application is a preset type application, reading a maximum value of memory occupied by each application of the terminal;
    根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。The memory space of the terminal is evenly distributed according to the read maximum value into a memory area corresponding to the number of applications, so that each application stores corresponding data.
  3. 如权利要求1所述的应用缓存数据的存储控制方法,其特征在于,所述方法,还包括:The storage control method of the application cache data according to claim 1, wherein the method further comprises:
    在存在多个应用在后台运行时,将所占内存空间最多的应用所缓存的数据提取出来,保存至路由器存储模块中。When multiple applications are running in the background, the data cached by the application that has the largest memory space is extracted and saved to the router storage module.
  4. 如权利要求3所述的应用缓存数据的存储控制方法,其特征在于,所述将所占内存空间最多的应用所缓存的数据提取出来,保存至路由器存储模块中的步骤包括:The method for controlling storage of application cache data according to claim 3, wherein the step of extracting data cached by an application that has the largest memory space and storing the data in the storage module of the router includes:
    在应用所缓存的数据达到所述存储空间阈值时,将大于存储空间阈值的 应用所缓存的数据均保存至路由器存储模块中。When the cached data reaches the storage space threshold, it will be greater than the storage space threshold. The data cached by the application is saved to the router storage module.
  5. 如权利要求1所述的应用缓存数据的存储控制方法,其特征在于,所述提取所述第一应用所缓存的数据的步骤之前,还包括:The storage control method of the application cache data according to claim 1, wherein the step of extracting the data cached by the first application further comprises:
    通过根目包名查询得到应用的名称,根据读取的包名和应用名称一同分辨应用是否为预设类型相关的应用。The name of the application is obtained by querying the root package name, and the application according to the read package name and the application name is used to distinguish whether the application is a preset type related application.
  6. 如权利要求1所述的应用缓存数据的存储控制方法,其特征在于,所述将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中的步骤之后,还包括:The storage control method of the application cache data according to claim 1, wherein after the step of saving the cached data to a router storage module that is in communication with the terminal, the method further includes:
    筛选在后台运行超过预设时间的应用的缓存数据;Filter cached data for applications running in the background for more than the preset time;
    将所述缓存数据删除,关闭所有在后台运行的应用。Delete the cached data and close all applications running in the background.
  7. 如权利要求1所述的应用缓存数据的存储控制方法,其特征在于,所述关闭所有在后台运行的应用的步骤之后,还包括:The storage control method of the application cache data according to claim 1, wherein after the step of closing all applications running in the background, the method further comprises:
    获取所述关闭应用的标识信息,将所述标识信息在当前前台运行应用的界面显示。Obtaining the identification information of the closed application, and displaying the identification information on an interface of the current foreground running application.
  8. 如权利要求1所述的应用缓存数据的存储控制方法,其特征在于,所述将所述所缓存的数据保存至与所述终端通信连接的路由器存储模块中的步骤之后,还包括:The storage control method of the application cache data according to claim 1, wherein after the step of saving the cached data to a router storage module that is in communication with the terminal, the method further includes:
    确定保存至路由器存储模块的数据所占用的存储空间的值;Determine the value of the storage space occupied by the data saved to the router storage module;
    将所占用的存储空间的值显示在当前前台运行应用的界面。Display the value of the occupied storage space in the interface where the application is running in the foreground.
  9. 一种应用缓存数据的存储控制装置,其特征在于,包括:A storage control device for applying cached data, comprising:
    获取模块,用于根据所述应用切换指令完成应用切换操作,在完成应用切换操作后获取在所述终端后台运行的应用并将该应用标记为第一应用;An acquiring module, configured to complete an application switching operation according to the application switching instruction, acquire an application running in the background of the terminal after marking the application switching operation, and mark the application as the first application;
    提取模块,用于在所述第一应用为预设类型应用时,提取所述第一应用所缓存的数据;An extracting module, configured to extract data cached by the first application when the first application is a preset type application;
    保存模块,用于将所述所缓存的数据保存至与所述终端通信连接的路由 器存储模块中,以在前台运行的应用请求所述第一应用已加载的文件数据时,直接从所述路由器存储模块中提取所述文件数据。a saving module, configured to save the cached data to a route that is in communication with the terminal In the storage module, when the application running in the foreground requests the file data that is loaded by the first application, the file data is directly extracted from the router storage module.
  10. 如权利要求9所述的应用缓存数据的存储控制装置,其特征在于,所述应用缓存数据的存储控制装置还包括:读取模块和分配模块,The storage control device for applying cache data according to claim 9, wherein the storage control device for the application cache data further comprises: a reading module and an allocation module,
    所述获取模块,还用于获取完成应用切换操作后在所述终端前台运行的应用并将该应用标记为第二应用;The acquiring module is further configured to acquire an application running in the foreground of the terminal after completing the application switching operation, and mark the application as a second application;
    所述读取模块,用于在所述第二应用为预设类型应用时,读取终端各个应用占用内存的最大值;The reading module is configured to read, when the second application is a preset type application, a maximum value of memory occupied by each application of the terminal;
    所述分配模块,用于根据所读取的最大值将所述终端的内存空间平均分配为与应用数量对应个数的内存区域,以供各个应用存储对应的数据。The allocating module is configured to evenly allocate, according to the read maximum value, the memory space of the terminal to a memory area corresponding to the number of applications, so that each application stores corresponding data.
  11. 如权利要求9所述的应用缓存数据的存储控制装置,其特征在于,A storage control device for applying cache data according to claim 9, wherein:
    所述提取模块,用于在存在多个应用在后台运行时,将所占内存空间最多的应用所缓存的数据提取出来;The extracting module is configured to extract data cached by an application that occupies the most memory space when there are multiple applications running in the background;
    所述保存模块,用于保存至路由器存储模块中。The save module is configured to save to a router storage module.
  12. 如权利要求11所述的应用缓存数据的存储控制装置,其特征在于,所述保存模块,还用于在应用所缓存的数据达到所述存储空间阈值时,将大于存储空间阈值的应用所缓存的数据均保存至路由器存储模块中。The storage control device of the application cache data according to claim 11, wherein the saving module is further configured to cache an application larger than a storage space threshold when the cached data reaches the storage space threshold. The data is saved to the router storage module.
  13. 如权利要求9所述的应用缓存数据的存储控制装置,其特征在于,所述提取模块还用于通过根目包名查询得到应用的名称,根据读取的包名和应用名称一同分辨应用是否为预设类型相关的应用。The storage control device for the application cache data according to claim 9, wherein the extraction module is further configured to obtain the name of the application by querying the root package name, and distinguish whether the application is based on the read package name and the application name. Preset type related apps.
  14. 如权利要求9所述的应用缓存数据的存储控制装置,其特征在于,所述应用缓存数据的存储控制装置还包括:The storage control device for the application cache data according to claim 9, wherein the storage control device for the application cache data further comprises:
    筛选模块,用于筛选在后台运行超过预设时间的应用的缓存数据;a screening module for filtering cached data of an application running in the background for more than a preset time;
    处理模块,用于将所述缓存数据删除,关闭所有在后台运行的应用。 A processing module, configured to delete the cached data and close all applications running in the background.
  15. 如权利要求14所述的应用缓存数据的存储控制装置,其特征在于,所述应用缓存数据的存储控制装置还包括显示模块,The storage control device for applying cache data according to claim 14, wherein the storage control device for the application cache data further comprises a display module.
    所述获取模块,还用于获取所述关闭应用的标识信息;The obtaining module is further configured to acquire identifier information of the closed application;
    所述显示模块,用于将所述标识信息在当前前台运行应用的界面显示。The display module is configured to display the identifier information on an interface of the current foreground running application.
  16. 如权利要求15所述的应用缓存数据的存储控制装置,其特征在于,所述应用缓存数据的存储控制装置还包括:The storage control device for the application cache data according to claim 15, wherein the storage control device for the application cache data further comprises:
    确定模块,用于确定保存至路由器存储模块的数据所占用的存储空间的值;a determining module, configured to determine a value of a storage space occupied by data saved to the router storage module;
    所述显示模块,还用于将所占用的存储空间的值显示在当前前台运行应用的界面。 The display module is further configured to display the value of the occupied storage space on an interface of the current foreground running application.
PCT/CN2016/084773 2015-12-09 2016-06-03 Method and device for storage control of application cache data WO2017096771A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510909773.6A CN105516787B (en) 2015-12-09 2015-12-09 The storage controlling method and device of application cache data
CN201510909773.6 2015-12-09

Publications (1)

Publication Number Publication Date
WO2017096771A1 true WO2017096771A1 (en) 2017-06-15

Family

ID=55724374

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084773 WO2017096771A1 (en) 2015-12-09 2016-06-03 Method and device for storage control of application cache data

Country Status (2)

Country Link
CN (1) CN105516787B (en)
WO (1) WO2017096771A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516787B (en) * 2015-12-09 2019-07-12 深圳Tcl数字技术有限公司 The storage controlling method and device of application cache data
CN106385430B (en) * 2016-08-23 2019-10-08 北京小米移动软件有限公司 The management method and device of communication message
CN106776378A (en) * 2016-12-05 2017-05-31 宇龙计算机通信科技(深圳)有限公司 It is a kind of to clear up data cached method and device
CN107148056B (en) * 2017-04-26 2020-06-05 上海斐讯数据通信技术有限公司 Data transmission method and system for synchronous server type wireless router
CN107315658A (en) * 2017-06-26 2017-11-03 珠海市魅族科技有限公司 A kind of data back up method and device, computer installation and readable storage medium storing program for executing
CN107395705B (en) * 2017-07-13 2021-03-26 迈普通信技术股份有限公司 APP downloading method and gateway equipment
CN111352633B (en) * 2020-02-24 2020-12-11 腾讯科技(深圳)有限公司 Resource downloading method and device of application program, terminal and storage medium
CN111488123B (en) * 2020-04-07 2022-11-04 Tcl移动通信科技(宁波)有限公司 Storage space management method and device, storage medium and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012149043A2 (en) * 2011-04-25 2012-11-01 Ikanos Communications, Inc. Method and apparatus for caching in a networked environment
CN103546532A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Method and system for shared data in application
CN104618503A (en) * 2015-02-15 2015-05-13 西安酷派软件科技有限公司 Inter-system data synchronization and sharing method and device as well as terminal
CN104615494A (en) * 2015-01-24 2015-05-13 陆俊 Mobile terminal and application switching method
CN104750465A (en) * 2013-12-27 2015-07-01 中国科学院沈阳自动化研究所 Android based intelligent router
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581267A (en) * 2012-08-02 2014-02-12 北京千橡网景科技发展有限公司 Method and device for directionally caching data of mobile terminal system
US10140118B2 (en) * 2014-03-19 2018-11-27 Huawei Device (Dongguan) Co., Ltd. Application data synchronization method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012149043A2 (en) * 2011-04-25 2012-11-01 Ikanos Communications, Inc. Method and apparatus for caching in a networked environment
CN103546532A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Method and system for shared data in application
CN104750465A (en) * 2013-12-27 2015-07-01 中国科学院沈阳自动化研究所 Android based intelligent router
CN104615494A (en) * 2015-01-24 2015-05-13 陆俊 Mobile terminal and application switching method
CN104618503A (en) * 2015-02-15 2015-05-13 西安酷派软件科技有限公司 Inter-system data synchronization and sharing method and device as well as terminal
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data

Also Published As

Publication number Publication date
CN105516787A (en) 2016-04-20
CN105516787B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
WO2017096771A1 (en) Method and device for storage control of application cache data
CN107547746B (en) Resource allocation method and related product
CN110505675B (en) Network connection method and device, storage medium and communication terminal
CN107547745B (en) Resource allocation method and related product
WO2014005328A1 (en) Method and device for allocating resource
CN107635078B (en) Game control method and device
CN107797868B (en) Resource adjusting method and device
US10862992B2 (en) Resource cache management method and system and apparatus
CN108495344B (en) Network switching method, device and terminal
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
CN104837179B (en) A kind of method and device showing hotspot equipment manufacturer information
US9596717B1 (en) MiFi control method and device
CN103617209B (en) A kind of file management method and device of mobile terminal
CN111124173B (en) Working state switching method and device of touch screen, mobile terminal and storage medium
US9654624B2 (en) Method, device and mobile terminal for automatic recording
CN108112010A (en) Access method, apparatus, terminal and the computer readable storage medium of network
CN110191045A (en) A kind of information sharing method, device, terminal and readable storage medium storing program for executing
WO2020220971A1 (en) File loading method and apparatus, electronic device, and storage medium
WO2021057622A1 (en) Garbage collection method, device, electronic apparatus, and storage medium
CN105101171A (en) Terminal network parameter configuration method, and terminal
US10877885B2 (en) Electronic device data operation method and electronic device for improved electronic device storage
CN110572365A (en) multi-protocol server management method, system, terminal device and storage medium
WO2014166230A1 (en) Automatic recording method, apparatus, and mobile terminal
EP4328705A1 (en) Storage space arrangement method and electronic device
CN108882325A (en) Method for switching network, network switching device and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16871976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.10.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16871976

Country of ref document: EP

Kind code of ref document: A1