CN111488123B - Storage space management method and device, storage medium and mobile terminal - Google Patents

Storage space management method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111488123B
CN111488123B CN202010264145.8A CN202010264145A CN111488123B CN 111488123 B CN111488123 B CN 111488123B CN 202010264145 A CN202010264145 A CN 202010264145A CN 111488123 B CN111488123 B CN 111488123B
Authority
CN
China
Prior art keywords
storage
application program
storage space
storage capacity
residual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010264145.8A
Other languages
Chinese (zh)
Other versions
CN111488123A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jinyong Data Technology Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010264145.8A priority Critical patent/CN111488123B/en
Publication of CN111488123A publication Critical patent/CN111488123A/en
Application granted granted Critical
Publication of CN111488123B publication Critical patent/CN111488123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Abstract

The application relates to a storage space management method, a device, a storage medium and a mobile terminal, wherein the storage space management method comprises the following steps: when the storage capacity of the residual storage space in the storage card is detected to meet a preset condition, determining the storage capacity occupied by each currently running application program in the storage card; grouping the application programs according to the occupied storage capacity to obtain at least one application program group; determining a storage area corresponding to each application program group from the residual storage space; the storage areas are used for providing the running memory for each application program in the corresponding application program group, so that when the number of the application programs running in the mobile terminal is large, each application program can be ensured to correspond to one storage area for storing running data, and the problem that the running of the running application programs is blocked due to the fact that the remaining running memory is small is avoided.

Description

Storage space management method and device, storage medium and mobile terminal
Technical Field
The application relates to the technical field of terminals, in particular to a storage space management method, a storage space management device, a storage medium and a mobile terminal.
Background
At present, with the development of mobile terminal technology and the popularization of mobile terminal devices, the mobile terminal application market is getting larger and larger, and people install a large number of application programs in the mobile terminal, and the application programs occupy the running memory of the mobile terminal when running.
However, since the total operating memory provided by the memory card in the mobile terminal is fixed, when there are many applications running in the mobile terminal, the running applications will occupy more operating memory, which results in less remaining operating memory, and further results in unsmooth running, which results in poor use experience.
Disclosure of Invention
The application aims to provide a storage space management method, a storage space management device, a storage medium and a mobile terminal, so as to avoid the problem that an application program running in the mobile terminal runs in a stuck state when the residual running memory is less.
In order to solve the foregoing problem, an embodiment of the present application provides a storage space management method, where the storage space management method includes: when the storage capacity of the residual storage space in the storage card is detected to meet a preset condition, determining the storage capacity occupied by each currently running application program in the storage card; grouping the application programs according to the occupied storage capacity to obtain at least one application program group; determining a storage area corresponding to each application program group from the residual storage space; and providing a running memory for each application program in the corresponding application program group by using the storage area.
The method for detecting whether the storage capacity of the remaining storage space in the storage card meets a preset condition specifically comprises the following steps: when the time length of the preset interval is reached, detecting the storage capacity of the current residual storage space in the storage card, and acquiring the storage capacity of the residual storage space detected by the latest preset times; calculating the average value of the storage capacity of the residual storage space obtained by the latest preset times of detection to obtain the average residual storage capacity; determining a difference between the average remaining storage capacity and a storage capacity of the current remaining storage space; and when the difference is smaller than the preset value, judging that the storage capacity of the residual storage space in the storage card meets the preset condition.
Determining a storage area corresponding to each application program group from the remaining storage space specifically includes: taking a storage space with a preset proportion in the residual storage space as a storage space to be managed; determining a first number of application groups; and dividing the storage space to be managed into at least one storage area which has the same number as the first number and corresponds to the application program group.
The method includes grouping application programs according to occupied storage capacity to obtain at least one application program group, and specifically includes: sequencing the application programs according to the size of the occupied storage capacity; and grouping two adjacent application programs in the sequenced application programs into a group to obtain at least one application program group.
After the operating memory is provided for each application program in the corresponding application program group by using the storage area, the method further comprises the following steps: when first to-be-stored running data of one application program in the application program group is received, storing the first to-be-stored running data by using the corresponding storage areas according to the sequence of addresses from front to back; and when receiving second to-be-stored operation data of another application program in the same application program group, storing the second to-be-stored operation data by using the corresponding storage areas according to the sequence of addresses from back to front.
In order to solve the above problem, an embodiment of the present application further provides a storage space management apparatus, including: the first determining module is used for determining the storage capacity occupied by each currently running application program in the memory card when the storage capacity of the residual storage space in the memory card is detected to meet the preset condition; the grouping module is used for grouping the application programs according to the occupied storage capacity to obtain at least one application program group; the second determining module is used for determining a storage area corresponding to each application program group from the residual storage space; and the providing module is used for providing the running memory for each application program in the corresponding application program group by using the storage area.
The first determining module specifically includes: the detection unit is used for detecting the storage capacity of the current residual storage space in the memory card when the preset interval duration is reached, and acquiring the storage capacity of the residual storage space detected by the latest preset times; the calculating unit is used for calculating the average value of the storage capacity of the residual storage space obtained by the last detection of the preset times to obtain the average residual storage capacity; a first determining unit for determining a difference between the average remaining storage capacity and a storage capacity of the current remaining storage space; and the judging unit is used for judging that the storage capacity of the residual storage space in the storage card meets the preset condition when the difference value is smaller than the preset value.
Wherein, the second determining module specifically comprises: the second determining unit is used for taking the storage space with the preset proportion in the residual storage space as the storage space to be managed; a third determining unit configured to determine a first number of application groups; and the dividing unit is used for dividing the storage space to be managed into at least one storage area which has the same quantity as the first quantity and corresponds to the application program group.
Wherein, the grouping module specifically comprises: the sequencing unit is used for sequencing the application programs according to the size of the occupied storage capacity; and the grouping unit is used for grouping two adjacent application programs in the sequenced application programs into a group to obtain at least one application program group.
The storage space management device further comprises a receiving module, wherein the receiving module is used for: when first to-be-stored running data of one application program in the application program group is received, storing the first to-be-stored running data by using the corresponding storage areas according to the sequence of addresses from front to back; and when receiving second to-be-stored operation data of another application program in the same application program group, storing the second to-be-stored operation data by using the corresponding storage areas according to the sequence of addresses from back to front.
In order to solve the above problem, an embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored, where the instructions are adapted to be loaded by a processor to execute the storage space management method of any one of the above.
In order to solve the above problem, an embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute any of the steps in the memory space management method.
The beneficial effect of this application is: different from the prior art, the storage space management method provided by the application determines the storage capacity occupied by each currently-running application program in the memory card when the storage capacity of the remaining storage space in the memory card is detected to meet the preset condition, groups the application programs according to the occupied storage capacity to obtain at least one application program group, then determines the storage area corresponding to each application program group from the remaining storage space, and provides the running memory for each application program in the corresponding application program group by using the storage areas, so that when the number of the application programs running in the mobile terminal is large, each application program can be ensured to correspond to one storage area for storing running data, and the problem that the running application programs are blocked due to the fact that the number of the remaining running memories is small is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a storage space management method according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a storage space management method provided in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a storage area provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a storage space management apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
fig. 6 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and technical effect of the present application clearer and clearer, the following further describes the present application in detail, and it should be understood that the specific implementation examples described herein are only used for explaining the present application and are not used for limiting the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a storage space management method according to an embodiment of the present application, where a specific flow of the storage space management method may be as follows:
s101: and when the storage capacity of the residual storage space in the storage card is detected to meet the preset condition, determining the storage capacity occupied by each currently-operated application program in the storage card.
In this embodiment, the Memory Card may refer to an operating Memory Card in the mobile terminal, and is used to store operating data generated when the mobile terminal operates an application program, and the Memory Card may specifically be an SD Card (Secure Digital Memory Card), a TF Card (Trans Flash), an MS Card (Memory Stick), an M2 Card (Memory Stick Micro), or the like, where a storage capacity occupied by the application program in the Memory Card may refer to a storage capacity of a storage space occupied by the operating data generated by the application program in an operating process, where the storage space is occupied by the storage space.
Specifically, in the case of the same processor, the larger the storage capacity of the remaining storage space in the memory card as the operating memory card is, the smoother the operation of the application installed in the corresponding mobile terminal is. The storage capacity of the remaining storage space in the memory card meeting the preset condition may refer to that a variation of the storage capacity of the remaining storage space in the memory card in a preset time period (e.g., 2 minutes) is smaller than a preset value (e.g., 50M), and when the storage capacity of the remaining storage space in the memory card meets the preset condition, it may be considered that the variation of the storage capacity of the remaining storage space in the memory card in a next preset time period from the current time is also smaller than the preset value, that is, a problem that an application program in the mobile terminal cannot normally operate due to a substantial reduction of the remaining storage space in the memory card in the next preset time period from the current time will not occur.
In a specific embodiment, as shown in fig. 2, the S101 may specifically include:
s1011: and when the time length of the preset interval is reached, detecting the storage capacity of the current residual storage space in the storage card, and acquiring the storage capacity of the residual storage space detected by the latest preset times.
The preset interval duration may be 100 seconds, the last preset number of times may refer to the last 10 times, and in specific implementation, the storage capacity of the current remaining storage space in the memory card may be detected through an operation interface specified in the mobile terminal every 100 seconds, and the storage capacity of the remaining storage space in the memory card detected by the last preset 10 times is obtained.
S1012: and calculating the average value of the storage capacity of the residual storage space obtained by the last detection of the preset times to obtain the average residual storage capacity.
Specifically, the average value may be obtained by summing the obtained storage capacities of the remaining storage spaces detected by the last preset number of times, and the obtained average value is used as the average remaining storage capacity.
S1013: a difference between the average remaining storage capacity and the storage capacity of the current remaining storage space is determined.
If the difference is greater than zero, the remaining storage space in the memory card may be considered to have decreased over a period of time in the past, and if the difference is less than zero, the remaining storage space in the memory card may be considered to have increased over a period of time in the past.
S1014: and when the difference value is smaller than the preset value, judging that the storage capacity of the residual storage space in the storage card meets the preset condition, and determining the storage capacity occupied by each currently-operated application program in the storage card.
With the increase of the running time, the running data generated by the application program running in the mobile terminal generally increases, that is, the storage capacity occupied by the application program in the memory card increases, which further causes the storage capacity of the remaining storage space in the memory card to decrease, that is, the difference is greater than zero. In this embodiment, the preset value is generally greater than zero, for example, 50M, and specifically, when the difference is smaller than the preset value, it may be considered that a variation of the storage capacity of the remaining storage space in the memory card in a preset time period is smaller than the preset value, that is, it may be determined that the storage capacity of the remaining storage space in the memory card satisfies the preset condition. In addition, when the difference is not less than the preset value, it may be determined that the storage capacity of the remaining storage space in the memory card does not satisfy the preset condition, and the above S1011 may be returned to be executed again.
S102: and grouping the application programs according to the occupied storage capacity to obtain at least one application program group.
In an embodiment, with continuing reference to fig. 2, the step S102 may specifically include:
s1021: and sorting the application programs according to the size of the occupied storage capacity.
Specifically, the running applications may be sorted in the order from large to small or from small to large according to the storage capacity occupied by each application in the memory card.
S1022: and grouping two adjacent application programs in the sequenced application programs into a group to obtain at least one application program group.
For example, if the sequenced applications are application 1, application 2, application 3, application 4, and application 19, and application 20 in sequence, application 1 and application 2 may be grouped into one group to obtain application group 101, application 3 and application 4 may be grouped into one group to obtain application group 102, and application 19 and application 20 may be grouped into one group to obtain application group 110, that is, 20 sequenced applications are divided into 10 application groups. In addition, it should be noted that if the number of the applications to be grouped is an odd number, after pairwise grouping is performed on the odd number of applications, the remaining one application may be individually used as an application group, and in some alternative embodiments, when the sorted applications are grouped, the method is not limited to grouping two adjacent applications in the sorted applications into one group, and S1022 may also be: and grouping three adjacent application programs in the sorted application programs into a group, or grouping four adjacent application programs in the sorted application programs into a group.
Therefore, the application programs are sorted according to the occupied storage capacity and grouped, so that the multiple application programs in the same application program group can be ensured to be the application programs with almost the same requirement on the storage space, and the problem of storage area overflow when the multiple subsequent application programs use the same storage area to store the running data is avoided.
S103: and determining a storage area corresponding to each application program group from the residual storage space.
Wherein, the S103 may specifically include:
s1031: and taking the storage space with the preset proportion in the residual storage space as the storage space to be managed.
In this embodiment, in order to avoid the problem that the memory card overflows subsequently due to the fact that the mobile terminal newly opens an application program running thread or performs other operations that require more running memory, only a part of the current remaining memory space (for example, half of the memory space) in the memory card is used as the memory space to be managed, and the remaining memory space is used to prevent the problem that the memory card overflows subsequently due to the fact that the mobile terminal performs the operations that require more running memory.
S1032: a first number of application groups is determined.
For example, the first number of application groups obtained in the preceding step may be 10.
S1033: and dividing the storage space to be managed into at least one storage area which has the same number as the first number and corresponds to the application program group.
In this embodiment, the application group and the storage areas have a one-to-one correspondence, and in specific implementation, the storage space to be managed may be divided into a plurality of storage areas, the number of which is the same as the first number of the application group. In addition, in some alternative embodiments, the storage space to be managed may be divided into a plurality of storage areas with the same number as the first number in a differentiated manner according to the size of the storage capacity occupied by the application programs in the application program group in the memory card, wherein the larger the storage capacity occupied in the memory card is, the larger the storage area corresponding to the application program group in which the application program is located is, so that different requirements of different application programs on the running memory can be better met, and further, the running smoothness of each application program in the mobile terminal can be more effectively ensured.
S104: and providing a running memory for each application program in the corresponding application program group by using the storage area.
In this embodiment, the operation data generated in the subsequent operation of the application programs in the application program group is stored in the corresponding storage area, and the available operation memory obtained by each application program in the same application program group is a whole storage area corresponding to the application program group, for example, if the storage capacity of the storage area corresponding to one application program group is 20M, each application program in the application program group can obtain an operation memory of 20M. Therefore, compared with the scheme that all application programs use the residual storage space in the memory card together in the prior art, the method and the device have the advantages that under the condition that the storage capacity of the residual storage space in the memory card is the same, the application programs running in the mobile terminal can obtain more available running memories, so that the running efficiency of the application programs is improved, and the user experience is improved.
In a specific embodiment, as shown in fig. 2, after the step S104, the method may further include:
s105: when first to-be-stored operating data of one application program in the application program group is received, the corresponding storage areas are used for storing the first to-be-stored operating data from the front to the back according to the addresses.
S106: and when receiving second to-be-stored operation data of another application program in the same application program group, storing the second to-be-stored operation data by using the corresponding storage areas according to the sequence of addresses from back to front.
Specifically, a storage area corresponding to one application group may be as shown in fig. 3, and the storage area may include a plurality of (e.g., 28) storage blocks a, a storage capacity of each storage block a may be a fixed value (e.g., 1M), and each storage card a corresponds to one address 1, 2,.. And 28, where the 28 storage blocks a are ordered from front to back, the storage blocks a having addresses 1, 2,.. And 28 may be sequentially obtained, and the 28 storage blocks a may be ordered from back to front, and the storage blocks a having addresses 28, 27,.. And 1 may be sequentially obtained. Therefore, by controlling each application program in the same application program group to use the same storage area from different directions, each application program in the application program group can consider the available operation memory as the whole storage area, namely, the residual storage space of the memory card is increased, and the operation efficiency of the application programs is improved.
Different from the prior art, in the storage space management method in this embodiment, when it is detected that the storage capacity of the remaining storage space in the memory card meets the preset condition, the storage capacity occupied by each currently-running application program in the memory card is determined, the application programs are grouped according to the occupied storage capacity to obtain at least one application program group, then a storage area corresponding to each application program group is determined from the remaining storage space, and an operating memory is provided for each application program in the corresponding application program group by using the storage area, so that when the number of the application programs running in the mobile terminal is large, it can be ensured that each application program corresponds to a storage area for storing operating data, and further, the problem of unsmooth operation of the running application programs due to the small number of the remaining operating memories is avoided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a storage space management apparatus according to an embodiment of the present application. As shown in fig. 4, the storage space management apparatus 50 includes:
(1) First determination module 51
The first determining module 51 is configured to determine, when it is detected that the storage capacity of the remaining storage space in the memory card satisfies a preset condition, a storage capacity occupied by each currently running application program in the memory card.
In a specific embodiment, the first determining module 51 may specifically include:
the detection unit is used for detecting the storage capacity of the current residual storage space in the memory card when the preset interval duration is reached, and acquiring the storage capacity of the residual storage space detected by the latest preset times;
the calculating unit is used for calculating the average value of the storage capacity of the residual storage space obtained by the last detection of the preset times to obtain the average residual storage capacity;
a first determining unit for determining a difference between the average remaining storage capacity and a storage capacity of the current remaining storage space;
and the judging unit is used for judging that the storage capacity of the residual storage space in the storage card meets the preset condition when the difference value is smaller than the preset value.
(2) Grouping module 52
And the grouping module 52 is configured to group the applications according to the occupied storage capacity to obtain at least one application group.
In one embodiment, the grouping module 52 may specifically include:
the sequencing unit is used for sequencing the application programs according to the size of the occupied storage capacity;
and the grouping unit is used for grouping two adjacent application programs in the sequenced application programs into a group to obtain at least one application program group.
(3) Second determination module 53
And a second determining module 53, configured to determine, from the remaining storage space, a storage area corresponding to each application group.
The second determining module 53 may specifically include:
the second determining unit is used for taking the storage space with the preset proportion in the residual storage space as the storage space to be managed;
a third determining unit for determining the first number of application groups;
and the dividing unit is used for dividing the storage space to be managed into at least one storage area which has the same number as the first number and corresponds to the application program group.
(4) Providing module 54
A module 54 is provided for providing operating memory to each application in the corresponding application group using the storage area.
In a specific embodiment, the storage space management apparatus 50 may further include:
(5) Receiving module
The receiving module is used for storing the first to-be-stored operating data by using the corresponding storage areas according to the sequence of addresses from front to back when the first to-be-stored operating data of one application program in the application program group is received; and when receiving second to-be-stored operation data of another application program in the same application program group, storing the second to-be-stored operation data by using the corresponding storage areas according to the sequence of addresses from back to front.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of each module may refer to the foregoing method embodiment, which is not described herein again.
Different from the prior art, the storage space management apparatus in this embodiment determines, when it is detected that the storage capacity of the remaining storage space in the memory card satisfies the preset condition, the storage capacity occupied by each currently-operating application program in the memory card, and groups the application programs according to the occupied storage capacity to obtain at least one application program group, then determines a storage area corresponding to each application program group from the remaining storage space, and provides an operating memory for each application program in the corresponding application program group using the storage area, so that, when there are many application programs operating in the mobile terminal, it can be ensured that each application program corresponds to a storage area for storing operating data, and further, the problem that the operating application program runs with a small number of remaining operating memories and runs unsmooth operation is avoided.
Correspondingly, the embodiment of the application further provides the mobile terminal which can be a smart phone, a tablet computer and the like. As shown in fig. 5, the mobile terminal 800 includes a processor 801, a memory 802. The processor 801 is electrically connected to the memory 802.
The processor 801 is a control center of the mobile terminal 800, connects various parts of the entire mobile terminal using various interfaces and lines, performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 802 and calling data stored in the memory 802, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 801 in the mobile terminal 800 loads instructions corresponding to processes of one or more application programs into the memory 802, and the processor 801 executes the application programs stored in the memory 802 according to the following steps, so as to implement various functions:
when the storage capacity of the residual storage space in the storage card is detected to meet a preset condition, determining the storage capacity occupied by each currently running application program in the storage card;
grouping the application programs according to the occupied storage capacity to obtain at least one application program group;
determining a storage area corresponding to each application program group from the residual storage space;
and providing a running memory for each application program in the corresponding application program group by using the storage area.
The mobile terminal may implement the steps in any embodiment of the storage space management method provided in the embodiment of the present application, and therefore, the beneficial effects that can be achieved by any storage space management method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Fig. 6 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the storage space management method provided in the foregoing embodiment. This mobile terminal 900 may be an AR glasses, an AR helmet, an AR head-up display (HUD), a smartphone, or a laptop, among other devices.
The RF circuit 910 is used for receiving and transmitting electromagnetic waves, and interconverting the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuit 910 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 910 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Data GSM Environment (EDGE), wideband Code Division Multiple Access (WCDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.11 n), internet telephony (VoIP), world Interoperability for Microwave, and other suitable protocols for instant messaging, including any other protocols not currently developed.
The memory 920 may be used to store software programs and modules, such as program instructions/modules corresponding to the storage space management method in the above embodiments, and the processor 980 executes various functional applications and data processing by running the software programs and modules stored in the memory 920, that is, functions of charging a backup battery, charging a battery, and the like. The memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 920 may further include memory located remotely from the processor 980, which may be connected to the mobile terminal 900 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 930 may include a touch-sensitive surface 931 as well as other input devices 932. The touch-sensitive surface 931, also referred to as a touch screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 931 (e.g., operations by a user on or near the touch-sensitive surface 931 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connecting device according to a predetermined program. Alternatively, the touch sensitive surface 931 may include both a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch sensitive surface 931 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 930 may also include other input devices 932 in addition to the touch-sensitive surface 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 931 can overlay display panel 941, and when touch operation is detected on or near touch-sensitive surface 931, processor 680 can determine the type of touch event, and processor 980 can then provide a corresponding visual output on display panel 941 according to the type of touch event. Although the touch-sensitive surface 931 and the display panel 941 are shown as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 931 and the display panel 941 may be integrated to implement input and output functions.
The mobile terminal 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 900, further description is omitted here.
The audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and the mobile terminal 900. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to another terminal via the RF circuit 910, or outputs the audio data to the memory 920 for further processing. The audio circuit 960 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 900.
The mobile terminal 900, which can assist the user in receiving requests, sending messages, etc., through a transmission module 970 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 970 is shown in the drawing, it is understood that it does not necessarily belong to the essential constitution of the mobile terminal 900 and may be omitted entirely as needed within a scope not changing the essence of the invention.
The processor 980 is a control center of the mobile terminal 900, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 900 and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile terminal. Optionally, processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The mobile terminal 900 also includes a power supply 990 (e.g., a battery backup or battery) that provides power to the various components and, in some embodiments, may be logically connected to the processor 980 via a power management system that provides management of charging, discharging, and power consumption. Power supply 990 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 900 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described in detail herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the storage capacity of the residual storage space in the storage card is detected to meet a preset condition, determining the storage capacity occupied by each currently running application program in the storage card;
grouping the application programs according to the occupied storage capacity to obtain at least one application program group;
determining a storage area corresponding to each application program group from the residual storage space;
and providing a running memory for each application program in the corresponding application program group by using the storage area.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of any embodiment of the storage space management method provided in the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any embodiment of the storage space management method provided in the embodiment of the present application, beneficial effects that can be achieved by any storage space management method provided in the embodiment of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing describes in detail a storage space management method, apparatus, storage medium, and mobile terminal provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A method for memory space management, comprising:
when the storage capacity of the residual storage space in the storage card is detected to meet a preset condition, determining the storage capacity occupied by each currently-operated application program in the storage card;
grouping the application programs according to the occupied storage capacity to obtain at least one application program group;
determining a storage area corresponding to each application program group from the residual storage space;
providing an operating memory for each application program in the corresponding application program group by using the storage area;
the detecting that the storage capacity of the remaining storage space in the storage card meets the preset condition specifically includes:
when the time length of the preset interval is reached, detecting the storage capacity of the current residual storage space in the storage card, and acquiring the storage capacity of the residual storage space detected by the latest preset times;
calculating the average value of the storage capacity of the residual storage space obtained by the detection of the latest preset times to obtain the average residual storage capacity;
determining a difference between the average remaining storage capacity and a current storage capacity of the remaining storage space;
and when the difference value is smaller than a preset value, judging that the storage capacity of the residual storage space in the storage card meets a preset condition.
2. The method according to claim 1, wherein the determining the storage area corresponding to each application program group from the remaining storage space specifically includes:
taking a storage space with a preset proportion in the residual storage space as a storage space to be managed;
determining a first number of the application program groups;
and dividing the storage space to be managed into at least one storage area which has the same number as the first number and corresponds to the application program group.
3. The method according to claim 1, wherein grouping the application programs according to the occupied storage capacity to obtain at least one application program group specifically comprises:
sequencing the application programs according to the size of the occupied storage capacity;
and grouping two adjacent application programs in the sequenced application programs into a group to obtain at least one application program group.
4. The method according to claim 3, further comprising, after said providing a running memory to each of the applications in the corresponding application group by using the storage area, the steps of:
when first to-be-stored running data of one application program in the application program group is received, storing the first to-be-stored running data by using the corresponding storage areas according to the sequence of addresses from front to back;
and when receiving second to-be-stored operation data of another application program in the same application program group, storing the second to-be-stored operation data by using the corresponding storage areas according to the sequence of addresses from back to front.
5. A storage space management apparatus, comprising:
the first determining module is used for determining the storage capacity occupied by each currently running application program in the memory card when the storage capacity of the residual storage space in the memory card is detected to meet a preset condition;
the grouping module is used for grouping the application programs according to the occupied storage capacity to obtain at least one application program group;
the second determining module is used for determining a storage area corresponding to each application program group from the residual storage space;
the providing module is used for providing an operating memory for each application program in the corresponding application program group by using the storage area;
wherein the first determining module specifically includes:
the detection unit is used for detecting the storage capacity of the current residual storage space in the memory card when the preset interval duration is reached, and acquiring the storage capacity of the residual storage space detected by the latest preset times;
the calculation unit is used for calculating the average value of the storage capacity of the residual storage space obtained by the detection of the latest preset times to obtain the average residual storage capacity;
a first determining unit, configured to determine a difference between the average remaining storage capacity and a current storage capacity of the remaining storage space;
and the judging unit is used for judging that the storage capacity of the residual storage space in the storage card meets a preset condition when the difference value is smaller than a preset value.
6. The storage space management device according to claim 5, wherein the second determining module specifically includes:
the second determining unit is used for taking the storage space with the preset proportion in the residual storage space as the storage space to be managed;
a third determining unit configured to determine the first number of the application groups;
and the dividing unit is used for dividing the storage space to be managed into at least one storage area which has the same quantity as the first quantity and corresponds to the application program group.
7. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the storage space management method of any of claims 1 to 4.
8. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the memory space management method according to any one of claims 1 to 4.
CN202010264145.8A 2020-04-07 2020-04-07 Storage space management method and device, storage medium and mobile terminal Active CN111488123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010264145.8A CN111488123B (en) 2020-04-07 2020-04-07 Storage space management method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010264145.8A CN111488123B (en) 2020-04-07 2020-04-07 Storage space management method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111488123A CN111488123A (en) 2020-08-04
CN111488123B true CN111488123B (en) 2022-11-04

Family

ID=71812627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010264145.8A Active CN111488123B (en) 2020-04-07 2020-04-07 Storage space management method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111488123B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970556A (en) * 2013-02-01 2014-08-06 京信通信系统(中国)有限公司 Updating method and system for power amplification software in radio remote equipment
CN104346298A (en) * 2013-08-06 2015-02-11 北京数码视讯软件技术发展有限公司 Device and method for data processing based on smart card and smart card
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data
CN106407010A (en) * 2016-09-06 2017-02-15 北京珠穆朗玛移动通信有限公司 Internal memory management method and mobile terminal
CN106528216A (en) * 2016-10-26 2017-03-22 深圳市金立通信设备有限公司 Method for starting application and terminal
CN107145399A (en) * 2017-04-22 2017-09-08 华为技术有限公司 A kind of shared-memory management method and shared-memory management equipment
CN110858162A (en) * 2018-08-24 2020-03-03 华为技术有限公司 Memory management method and device and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10430080B2 (en) * 2015-06-29 2019-10-01 Apple Inc. Subsystem storage space manager

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970556A (en) * 2013-02-01 2014-08-06 京信通信系统(中国)有限公司 Updating method and system for power amplification software in radio remote equipment
CN104346298A (en) * 2013-08-06 2015-02-11 北京数码视讯软件技术发展有限公司 Device and method for data processing based on smart card and smart card
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data
CN106407010A (en) * 2016-09-06 2017-02-15 北京珠穆朗玛移动通信有限公司 Internal memory management method and mobile terminal
CN106528216A (en) * 2016-10-26 2017-03-22 深圳市金立通信设备有限公司 Method for starting application and terminal
CN107145399A (en) * 2017-04-22 2017-09-08 华为技术有限公司 A kind of shared-memory management method and shared-memory management equipment
CN110858162A (en) * 2018-08-24 2020-03-03 华为技术有限公司 Memory management method and device and server

Also Published As

Publication number Publication date
CN111488123A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN107391259B (en) Resource processing method and device, computer readable storage medium and mobile terminal
CN108984064B (en) Split screen display method and device, storage medium and electronic equipment
CN109067981B (en) Split screen application switching method and device, storage medium and electronic equipment
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
US11262911B2 (en) Integrated home key and virtual key area for a smart terminal
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
WO2020007144A1 (en) Switching method and device for split screen application, storage medium and electronic device
CN111338745B (en) Deployment method and device of virtual machine and intelligent device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN111488123B (en) Storage space management method and device, storage medium and mobile terminal
CN106547400B (en) Method, device and terminal for reporting information
CN114338770A (en) Cross-block-chain data processing method and device, storage medium and terminal equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN110061813B (en) Data encoding method, data decoding method and related devices
CN112380520A (en) Screen unlocking method and device, storage medium and mobile terminal
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111245911B (en) Network transmission method and system, storage medium and terminal equipment
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN111954317B (en) Network connection method, device, storage medium and mobile terminal
CN111277642B (en) Method and device for enhancing information transmission speed, storage medium and mobile terminal
CN109561481B (en) Data sending method, terminal and storage medium
CN112243269B (en) Method and device for downloading data and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240110

Address after: Room 312, 3rd Floor, Building 1, No. 500 Zixu Road, Minhang District, Shanghai, 2011

Patentee after: Shanghai Jinyong Data Technology Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.

TR01 Transfer of patent right