CN113867948A - Memory cleaning method, device, equipment and storage medium - Google Patents

Memory cleaning method, device, equipment and storage medium Download PDF

Info

Publication number
CN113867948A
CN113867948A CN202111124554.9A CN202111124554A CN113867948A CN 113867948 A CN113867948 A CN 113867948A CN 202111124554 A CN202111124554 A CN 202111124554A CN 113867948 A CN113867948 A CN 113867948A
Authority
CN
China
Prior art keywords
application program
memory
application
target
icon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111124554.9A
Other languages
Chinese (zh)
Inventor
芮元乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111124554.9A priority Critical patent/CN113867948A/en
Publication of CN113867948A publication Critical patent/CN113867948A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a memory cleaning method, a memory cleaning device, memory cleaning equipment and a memory medium, and belongs to the technical field of communication. The memory cleaning method comprises the following steps: under the condition that the electronic equipment is in a target mode, displaying an application icon of at least one application program in the electronic equipment based on a preset display mode, wherein the preset display mode is related to memory occupation information of the application program; receiving a first input of an application icon of a target application program in at least one application program; and responding to the first input, and clearing the memory space occupied by the target application program.

Description

Memory cleaning method, device, equipment and storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for memory cleaning.
Background
With the rapid development of the mobile internet and the continuous popularization of the electronic devices, users have more demands on the mobile internet, and the electronic devices have more and more installed application programs. After the electronic device is used for a long time, in order to avoid that the electronic device cannot be normally used due to too high storage capacity occupancy rate, the occupied memory of the application program needs to be cleared in time.
In the related art, when a user clears an occupied memory of an application program, the user usually needs to enter a specific application program, and the user is guided to perform a memory space clearing operation through prompt information provided by the specific application program to complete the memory space clearing. Therefore, the memory space cleaning method in the related art needs to be completed through a specific application program, which affects the user experience.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a device, and a storage medium for clearing a memory, which can solve the problem that a memory space clearing manner in the related art needs to be completed by a specific application program.
In a first aspect, an embodiment of the present application provides a memory cleaning method, where the method includes: under the condition that the electronic equipment is in a target mode, displaying an application icon of at least one application program in the electronic equipment based on a preset display mode, wherein the preset display mode is related to memory occupation information of the application program; receiving a first input of an application icon of a target application program in at least one application program; and responding to the first input, and clearing the memory space occupied by the target application program.
In a second aspect, an embodiment of the present application provides a memory cleaning device, where the device includes: the display module is used for displaying an application icon of at least one application program in the electronic equipment based on a preset display mode under the condition that the electronic equipment is in a target mode, wherein the preset display mode is related to the memory occupation information of the application program; the receiving module is used for receiving first input of an application icon of a target application program in at least one application program; and the memory cleaning module is used for responding to the first input and cleaning the memory space occupied by the target application program.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a storage, and a program or an instruction stored on the storage and executable on the processor, where the program or the instruction, when executed by the processor, implements the steps of the memory cleaning method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the memory cleaning method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the memory cleaning method according to the first aspect.
In this embodiment of the application, when the electronic device is in the target mode, an application icon of at least one application program in the electronic device may be displayed based on a preset display manner. Based on this, when the electronic device receives a first input of an application icon of a target application program in at least one application program by a user, the electronic device may perform cleaning on a memory space occupied by the target application program in response to the first input. Therefore, when a user needs to clear the occupied memory space of the application program, the electronic device can be directly triggered to clear the occupied memory space of the application program by operating the application icon of the application program, the user does not need to enter a specific application program such as a mobile phone manager to operate, the complexity of user operation is reduced, the memory space clearing speed of the application program is increased, and the use experience of the user is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating a memory scrubbing method according to an embodiment of the present disclosure;
fig. 2 is a second flowchart illustrating a memory scrubbing method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a first example of a memory cleaning interface provided in the embodiment of the present application;
fig. 4 is a schematic diagram of a second example of a memory cleaning interface provided in the embodiment of the present application;
fig. 5 is a schematic diagram of a third example of a memory cleaning interface provided in the embodiment of the present application;
fig. 6 is a schematic diagram illustrating a fourth example of a memory cleaning interface according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a fifth example of a memory cleaning interface according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a memory scrub apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
As in the background art, when a user clears an occupied memory of an application program, the user usually needs to enter a specific application program, and the user is guided to perform a memory space clearing operation through a prompt message provided by the specific application program, so as to complete the memory space clearing. Therefore, the memory space cleaning method in the related art needs to be completed through a specific application program, which affects the user experience.
In view of the problems in the related art, embodiments of the present application provide a memory cleaning method, which can display an application icon of at least one application program in an electronic device based on a preset display mode when the electronic device is in a target mode. Based on this, when the electronic device receives a first input of an application icon of a target application program in at least one application program by a user, the electronic device may perform cleaning on a memory space occupied by the target application program in response to the first input. Therefore, when a user needs to clear the occupied memory space of the application program, the application icon of the application program is operated, the electronic device can be directly triggered to clear the occupied memory space of the application program, the user does not need to enter a specific application program such as a mobile phone manager to operate, the complexity of user operation is reduced, the memory space clearing speed of the application program is improved, the use experience of the user is improved, and the problem that the memory space clearing mode in the related technology needs to be finished through the specific application program is solved.
The memory cleaning method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a memory cleaning method according to an embodiment of the present disclosure, where an execution main body of the memory cleaning method may be an electronic device. The above-described execution body does not constitute a limitation of the present application.
As shown in fig. 1, the memory cleaning method provided in the embodiment of the present application may include steps 110 to 130.
And 110, displaying an application icon of at least one application program in the electronic equipment based on a preset display mode under the condition that the electronic equipment is in the target mode.
The target mode may be a memory cleaning mode of the electronic device, and in the target mode, the electronic device may clean a memory space occupied by the application program by receiving a first input of an application icon of the application program by a user.
The Memory usage information of the application program may be used to represent a Memory space occupied by the application program, where the Memory space may be a Read-Only Memory (ROM) that the application program occupies a body Memory of the electronic device. The preset display mode may be related to memory usage information of the application program, and may be specifically set according to an actual requirement, which is not specifically limited herein.
Step 120, a first input of an application icon of a target application program in at least one application program is received.
The first input may be a click input, a slide input, a long press input, a double click input, a gesture input, or a combination of at least two inputs, etc. of the user on the application icon of the target application program, which is not specifically limited herein.
Step 130, in response to the first input, cleaning up the memory space occupied by the target application program.
According to the memory cleaning method provided by the embodiment of the application, under the condition that the electronic equipment is in the target mode, the application icon of at least one application program in the electronic equipment can be displayed based on the preset display mode. Based on this, when the electronic device receives a first input of an application icon of a target application program in at least one application program by a user, the electronic device may perform cleaning on a memory space occupied by the target application program in response to the first input. Therefore, when a user needs to clear the occupied memory space of the application program, the electronic device can be directly triggered to clear the occupied memory space of the application program by operating the application icon of the application program, the user does not need to enter a specific application program such as a mobile phone manager to operate, the complexity of user operation is reduced, the memory space clearing speed of the application program is increased, and the use experience of the user is improved.
In the related art, when the memory space occupied by the application program is cleared through the specific application program, the specific application program needs to scan files of all the application programs to obtain a plurality of files which can be cleared, the scanning time is usually long, and a user needs to confirm and clear the files item by item, so that the memory space occupied by a single application program cannot be cleared quickly.
In some embodiments of the present application, in order to implement fast cleaning of the memory space of the application program, in step 110, before displaying the application icon of at least one application program based on the preset display mode associated with the memory usage information, the method may further include: and under the condition of exiting the application program, determining a Read Only Memory (ROM) occupied by the application program, and obtaining the size of the occupied memory space of the application program, namely memory occupation information.
As applications are running, the amount of memory space they occupy is constantly changing. Therefore, when the electronic device exits the application program, the path file corresponding to the application program is scanned, the ROM currently occupied by the application program in the electronic device is calculated, and the current and more accurate memory occupation information of the application program can be obtained.
In the embodiment of the application, the electronic device may determine the read-only memory occupied by the application in advance before the memory is cleared by the user, so as to obtain the memory occupation information. Based on this, when the user needs to clean the memory space occupied by the application program, the electronic device can directly acquire the memory occupied information of the application program, so that the user is prevented from waiting for the electronic device to scan the path file and determining the read-only memory, the waiting time of the user is shortened, the user does not need to confirm item by item, and the speed and the efficiency of cleaning the memory of the electronic device are improved.
In one embodiment, the electronic device may store the memory usage information of the application program into the attribute information corresponding to the application program.
In one embodiment, the electronic device records the size of the memory and storage file generated during the operation of the application.
It should be noted that, each time a user logs out of an interface of an application program, the electronic device may determine a ROM occupied by the application program once, and the ROM determined later may cover the ROM determined last time, so that the electronic device may store the ROM occupied by the application program when the user logs out of the interface of the application program last time, and use the ROM as the memory occupation information of the application program.
In some embodiments of the present application, to avoid that a user touches an application icon in an electronic device by mistake, which causes the electronic device to perform a false cleaning on a memory space of an application program, fig. 2 is a flowchart of another memory cleaning method provided in an embodiment of the present application, and step 110 may include steps 210 to 230 shown in fig. 2:
step 210, receiving a preset operation for the electronic device.
The preset operation may be a preset gesture operation, or a preset action performed by the user holding the electronic device.
In one example, the preset operation may be a gesture operation in which a user draws a character "Z" on a screen of the electronic device, or a gesture operation in which a user slides from a side screen area to a center screen area of the screen of the electronic device.
In another example, the preset operation may be a shaking motion made by the user holding the electronic device, or the hand-held electronic device tracing out the character "O".
Step 220, responding to the preset operation, entering a target mode, and acquiring memory occupation information of at least one application program.
The memory usage information may be a read only memory ROM that is used by the application program.
And step 230, displaying an application icon of at least one application program based on a preset display mode associated with the memory usage information.
In the embodiment of the application, when the electronic device receives a preset operation of a user, the electronic device can enter the target mode in response to the preset operation. And the electronic equipment can clear the occupied memory space of the application program corresponding to the icon only by receiving the first input of the user to the application icon in the target mode. Therefore, the situation that the user touches the application icon in the electronic equipment by mistake can be avoided, the electronic equipment can mistakenly clean the memory space of the application program, and the user use experience is improved. Meanwhile, in the target mode, the electronic device can display the application icon of at least one application program based on the preset display mode associated with the memory occupation information, so that the display mode of the application icon can be according to and adapted to the memory occupation information of the application program, and the diversity of the icon display mode in the target mode is improved.
In some embodiments of the present application, the memory usage information of the application program may be used to characterize a memory space occupied by the application program, and the preset display manner may include at least one of the following: displaying memory occupation information of the application program on an application icon of the application program; displaying an application icon of an application program according to a target size, wherein the target size is associated with the memory occupation information of the application program; displaying an application icon of the application program according to a target color or a target shape associated with the memory occupation information of the application program; and displaying the application icons of at least one application program according to the target sequence, wherein the target sequence is associated with the memory occupation information of the application program.
First, memory usage information of an application program is displayed on an application icon of the application program.
For example, as shown in fig. 3, the electronic device desktop 301 may include application icons corresponding to the application programs APP1-APP5, and a memory space occupied by the corresponding application program may be displayed on each application icon. For example, if the size of the memory space occupied by the APP1 is 300MB, a word "300 MB" may be displayed on the APP icon of the APP 1.
In the embodiment of the application, the memory occupation information is displayed on the application icon of the application program, so that the size of the memory space occupied by each application program can be visualized, a user can conveniently and quickly select the target application program to clean the memory space, and the memory space cleaning process is more efficient.
Optionally, in an embodiment, the word size of the memory usage information displayed on the application icon may be associated with the memory usage information of the application program, and the word size may be positively associated with the memory space occupied by the application program, that is, the larger the memory usage space occupied by the application program is, the larger the associated word size is.
For example, the memory occupied space represented by the memory occupied information is less than 500MB, and may correspond to the word size 12; the memory occupation space represented by the memory occupation information is [500MB, 1024MB ], and can correspond to the word size 15; the memory occupation space represented by the memory occupation information is more than 1024MB, and can correspond to the word size 18.
In one example, as shown in fig. 4, the electronic device desktop 401 may include application icons corresponding to the application programs APP1-APP5, and a memory space occupied by the corresponding application program may be displayed on each application icon. The larger the memory space occupied by the application program is, the larger the display typeface on the application icon of the application program is.
In the embodiment of the application, because the memory usage information is associated with the display font size, when the electronic device displays the memory usage information of the application program on the application icon of the application program, a user can intuitively feel and know the memory space size occupied by all the application programs based on the size of the display font size, the user is assisted to select the target application program from all the application programs for cleaning, and the use experience of the user is improved.
Second, it relates to displaying application icons of an application program in a target size.
The target size is associated with the memory occupation information of the application program, and the target size can be positively associated with the memory space occupied by the application program, namely, the larger the memory occupation space occupied by the application program is, the larger the target size is, the larger the display area corresponding to the application icon is.
In one embodiment, the target size may include at least two, and the at least two target sizes may be in a preset ratio.
Exemplary, the target sizes may include S1, S2, S3, S1: s2: s3 may be in a preset ratio of 1:2: 4. Specifically, the memory occupied space represented by the memory occupied information is less than 500MB, and the display area of the application icon may be S1; the memory occupied space represented by the memory occupied information is [500MB, 1024MB "), and the display area of the application icon may be S2; the memory occupied space represented by the memory occupied information is more than 1024MB, and the display area of the application icon may be S3.
In one example, memory occupation spaces corresponding to the APPs 1-5 are 300MB, 1200MB, 350MB, 800MB and 300MB respectively. Thus, with reference to example S1 above: s2: s3 may be 1:2:4, as shown in FIG. 5, the display area size of the five application icons is ordered as: APP2 > APP4 > APP3 ═ APP1 ═ APP 5.
In this application embodiment, electronic equipment can show application icon of application according to the target dimension, because can be preset proportion between the different target dimensions, consequently all application icons of application all can show based on preset proportion, guarantees that the demonstration size of application icon can accord with the law, avoids mixed and disorderly, promotes the regularity and the pleasing to the eye degree of icon display mode to promote display effect.
In another embodiment, the target size may be a ratio of a memory occupied by the application to a predetermined value.
Illustratively, the preset value may be 200. The size of the memory space occupied by the APP1 is 300MB, and the target size may be 300/200-1.5 cm2The display area of the application icon of the APP1 is 1.5cm2(ii) a The size of the memory space occupied by the APP2 is 1200MB, and the target size may be 1200/200-6 cm2The display area of the application icon of the APP2 is 6cm2
It should be noted that the above is only an example of the preset value, the preset value may be set according to specific requirements, and the preset value is not specifically limited in the present application.
In the embodiment of the application, the target size may be a ratio of a memory occupied space occupied by the application program to a preset value, and therefore, the display size of the application icon of the application program may be adaptive to the memory space occupied by the application program, so that the area of the application icon may be adapted to the size of the memory space occupied by the application program, so as to visually prompt a user about the current memory space occupied by each application program, and assist the user in quickly knowing the memory occupied information of the plurality of application programs.
Then, the method involves displaying an application icon of the application according to a target color or a target shape associated with the memory usage information of the application.
The number of colors contained in the target color is positively correlated with the memory space occupied by the application program; the number of edges of the target shape is positively correlated with the memory space occupied by the application program.
In one example, the larger the memory space occupied by the application program, the larger the number of colors included in the target color, i.e., the larger the number of colors corresponding to the application icon.
For example, the memory occupied space corresponding to APP1 is 300MB, and the memory occupied space corresponding to APP2 is 1200MB, then the display color of the application icon of APP1 may be blue, and the display color of the application icon of APP2 may include three colors of red, yellow and blue.
In another example, the larger the memory space occupied by the application program, the more the number of edges of the target shape, i.e., the more complex the display shape corresponding to the application icon.
For example, the memory occupied space corresponding to APP1 is 300MB, the memory occupied space corresponding to APP4 is 800MB, and the memory occupied space corresponding to APP2 is 1200MB, then the display shape of the application icon of APP1 may be a triangle, the display color of the application icon of APP4 may be a square, and the display color of the application icon of APP2 may be a pentagram.
In another example, the memory occupied space represented by the memory occupied information is less than 500MB, and the display color of the application icon may be green; the memory occupied space represented by the memory occupied information is [500MB, 1024MB ], and the display color of the application icon can be yellow; the memory occupied space represented by the memory occupied information is more than 1024MB, and the display color of the application icon can be red.
In another embodiment, the depth of the target color may be positively correlated to the memory space occupied by the application.
The larger the memory space occupied by the application program is, the darker the display color corresponding to the application icon is.
For example, the memory occupied space corresponding to APP1 is 300MB, and the memory occupied space corresponding to APP2 is 1200MB, then the display color of the application icon of APP1 may be light green, and the display color of the application icon of APP2 may be dark green.
In the embodiment of the application, the electronic device can display the application icons in different colors or different shapes based on the size of the memory space occupied by the application program, so as to intuitively prompt a user of the current memory space occupation condition of each application program, and the user can conveniently and quickly know the memory space occupation condition.
Finally, the application icons of the at least one application program are displayed in a target sequence.
The target sequence is associated with the memory occupation information of the application programs, and the target sequence can correspond to the arrangement sequence of the memory space occupied by at least one application program from large to small.
Exemplarily, the memory occupied spaces corresponding to the APPs 1-5 are 300MB, 1200MB, 350MB, 800MB, and 300MB, respectively, as shown in fig. 6, the application icons of the APPs 1-5 are arranged in the descending order of the memory occupied spaces, and the display position of the application icon is located at the front of the application program with the larger memory occupied space.
In an example, as shown in fig. 7, in a case that the APP icons of the APPs 1-5 are sorted based on the size of the occupied memory space, the size of the occupied memory space of the corresponding application program may also be displayed on the APP icons.
In the embodiment of the application, the target sequence can be associated with the memory occupation information of the application programs, the electronic device arranges the application icons of all the application programs according to the target sequence, so that a user can visually check the arrangement condition of the memory space occupied by each application program currently, the user can conveniently and timely clean the application program occupying a larger memory space, the user is assisted in quickly cleaning the memory, and the memory cleaning experience of the user is improved.
It should be noted that, the above are only some examples of the preset display manner, and the preset display manner may also be other implementation manners such as displaying, on an application icon of the application program, an identifier and an animation that are associated with the memory usage information of the application program, and details are not described here again.
In some embodiments of the present application, the first input may include a first sub-input and a second sub-input, and the step 120 of receiving the first input of the application icon of the target application program in the at least one application program may include: receiving a first sub-input of an application icon of a target application program; responding to the first sub-input, and displaying the moved preset control; a second sub-input to the preset control is received.
The first sub-input may be a click input, a double-click input, a long-press input, and the like of the application icon by the user. The preset control may be a virtual control such as a moving icon, a cursor, a cartoon character, and the second sub-input may be a sliding input, a clicking input, a long-press input, and the like of the user on the preset control, and the application is not limited specifically herein.
For example, the first sub-input may be a long-press input of an application icon of the target application program by a user, the preset control may be a pineapple-style icon, the second sub-input may be a sliding input of the moving pineapple-style icon by the user, and in response to the second sub-input, the electronic device cleans up a memory occupied space of the target application program.
In the embodiment of the application, in the target mode, when the electronic device receives user input of an application icon of a target application program, a mobile preset control can be displayed, the electronic device is triggered to clear a memory space occupied by the target application program through operation of the user on the mobile preset control, the electronic device is triggered to clear the memory space in a game interaction mode, and interestingness of the memory space clearing mode and user interaction experience are improved.
In some embodiments of the present application, after the step 130, in response to the first input, clearing the memory space occupied by the target application, the method may further include the following steps: determining memory occupation information of the cleaned target application program; and displaying the icon of the target application program based on a preset display mode associated with the cleared memory occupation information of the target application program.
After the electronic device cleans the memory space occupied by the target application program, the memory space occupied by the target application program after the memory cleaning can be determined again so as to update the memory occupation information of the target application program, and the icon of the target application program is displayed based on the preset display mode associated with the updated memory occupation information.
In an embodiment, the memory usage information of the cleaned target application may be target memory usage information, and the icon of the target application is displayed based on a preset display mode associated with the memory usage information of the cleaned target application, and may include at least one of the following: displaying the memory occupation information of the application program on an application icon of the application program according to the target word size associated with the target memory occupation information; displaying an application icon of an application program according to a target size associated with the target memory occupation information; and displaying the application icon of the application program according to the target color or the target shape associated with the target memory occupation information.
Illustratively, the target size may include S1, S2, S3, where the memory occupied space represented by the memory occupied information is less than 500MB, and the display area of the application icon may be S1; the memory occupied space represented by the memory occupied information is [500MB, 1024MB "), and the display area of the application icon may be S2; the memory occupied space represented by the memory occupied information is more than 1024MB, and the display area of the application icon may be S3. The target application program is APP4, before memory cleaning is performed on APP4, the memory space occupied by APP4 is 800MB, and the application icon display area of APP4 is S2; after the memory cleaning of the APP4, the memory space occupied by the APP4 is updated to 300MB, and the application icon display area of the APP4 is S1.
In the embodiment of the application, after the memory space occupied by the target application program is cleaned, the preset display mode corresponding to the target application program can be updated in time based on the cleaned memory occupation information of the target application program by determining the cleaned memory occupation information of the target application program, so that a user is assisted to continue cleaning the memory space, and the user experience is improved.
In other embodiments of the present application, after the step 130 of clearing the memory space occupied by the target application in response to the first input, the method may further include the following steps: updating the display state of the application icon of at least one application program based on the memory occupation information of the at least one application program; and receiving a second input to the preset area, and in response to the second input, the electronic equipment exits the target mode.
The preset area may be any blank area of the desktop of the electronic device, and the second input may be a click input, a double click input, a long press input, or a slide input of the user to the preset area, which is not specifically limited herein.
It should be noted that, in the memory cleaning method provided in the embodiment of the present application, the execution main body may be a memory cleaning device, or a control module in the memory cleaning device, which is used for executing the memory cleaning method. In the embodiment of the present application, a method for executing memory cleaning by using a memory cleaning device is taken as an example, and the memory cleaning device provided in the embodiment of the present application is described. The memory cleaning apparatus will be described in detail below.
Fig. 8 is a schematic structural diagram of a memory cleaning apparatus provided in the present application.
As shown in fig. 8, an embodiment of the present application provides a memory scrub apparatus 800, where the memory scrub apparatus 800 includes: the device comprises a display module 810, a receiving module 820 and a memory cleaning module 830.
The display module 810 is configured to display an application icon of at least one application program in the electronic device based on a preset display mode under the condition that the electronic device is in the target mode, where the preset display mode is related to memory usage information of the application program; a receiving module 820, configured to receive a first input of an application icon of a target application program in at least one application program; the memory cleaning module 830 is configured to respond to the first input, and clean a memory space occupied by the target application program.
The memory cleaning device provided by the embodiment of the application can display the application icon of at least one application program in the electronic equipment based on the preset display mode under the condition that the electronic equipment is in the target mode. Based on this, when the electronic device receives a first input of an application icon of a target application program in at least one application program by a user, the electronic device may perform cleaning on a memory space occupied by the target application program in response to the first input. Therefore, when a user needs to clear the occupied memory space of the application program, the electronic device can be directly triggered to clear the occupied memory space of the application program by operating the application icon of the application program, the user does not need to enter a specific application program such as a mobile phone manager to operate, the complexity of user operation is reduced, the memory space clearing speed of the application program is increased, and the use experience of the user is improved.
In some embodiments of the present application, the display module 810 includes: the receiving unit is used for receiving preset operation on the electronic equipment; the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for responding to preset operation, entering a target mode and acquiring the memory occupation information of at least one application program; and the display unit is used for displaying the application icon of at least one application program based on a preset display mode associated with the memory occupation information.
In the embodiment of the application, when the electronic device receives a preset operation of a user, the electronic device can enter the target mode in response to the preset operation. And the electronic equipment can clear the occupied memory space of the application program corresponding to the icon only by receiving the first input of the user to the application icon in the target mode. Therefore, the situation that the user touches the application icon in the electronic equipment by mistake can be avoided, the electronic equipment can mistakenly clean the memory space of the application program, and the user use experience is improved. Meanwhile, in the target mode, the electronic device can display the application icon of the at least one application program according to a preset display mode based on the memory occupation information of the at least one application program, so that the display mode of the application icon can be according to and adapted to the memory occupation information of the application program, and the diversity of the icon display mode in the target mode is improved.
In some embodiments of the present application, the preset display mode includes at least one of: displaying memory occupation information of the application program on an application icon of the application program; displaying an application icon of an application program according to a target size, wherein the target size is associated with the memory occupation information of the application program; displaying an application icon of the application program according to a target color or a target shape associated with the memory occupation information of the application program; and displaying the application icons of at least one application program according to the target sequence, wherein the target sequence is associated with the memory occupation information of the application program.
In some embodiments of the present application, the memory usage information of the application is used to characterize the memory space occupied by the application, and the apparatus further includes: the word size of the memory occupied information displayed on the application icon is positively correlated with the memory space occupied by the application program; the target size is positively correlated with the memory space occupied by the application program; the number of colors contained in the target color is positively correlated with the memory space occupied by the application program; the number of edges of the target shape is positively correlated with the memory space occupied by the application program; the target sequence corresponds to an arrangement sequence of memory space occupied by at least one application program from large to small.
In some embodiments of the present application, the apparatus further comprises: the determining module is used for determining a read-only memory ROM occupied by the application program to obtain the memory occupation information under the condition of exiting the application program before displaying the application icon of at least one application program based on the preset display mode associated with the memory occupation information.
In the embodiment of the application, the electronic device may determine the read-only memory occupied by the application in advance before the memory is cleared by the user, so as to obtain the memory occupation information. Based on this, when the user needs to clean the memory space occupied by the application program, the electronic device can directly acquire the memory occupied information of the application program, so that the user is prevented from waiting for the electronic device to scan the path file and determining the read-only memory, the waiting time of the user is shortened, the user does not need to confirm item by item, and the speed and the efficiency of cleaning the memory of the electronic device are improved.
In some embodiments of the present application, the apparatus further comprises: the determining module is used for determining the memory occupation information of the cleaned target application program after the memory space occupied by the target application program is cleaned in response to the first input; and the display module is also used for displaying the icon of the target application program based on a preset display mode associated with the cleared memory occupation information of the target application program.
In the embodiment of the application, after the memory space occupied by the target application program is cleaned, the preset display mode corresponding to the target application program can be updated in time based on the cleaned memory occupation information of the target application program by determining the cleaned memory occupation information of the target application program, so that a user is assisted to continue cleaning the memory space, and the user experience is improved.
The memory cleaning device provided in the embodiment of the present application can implement each process implemented by the electronic device in the method embodiments of fig. 1 to 7, and is not described here again to avoid repetition.
The memory cleaning device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The memory cleaning device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing memory cleaning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 10 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The display unit 1006 is configured to display an application icon of at least one application program in the electronic device based on a preset display mode when the electronic device is in the target mode, where the preset display mode is related to memory usage information of the application program; a user input unit 1007 for receiving a first input of an application icon of a target application among at least one application; the processor 1010 is configured to, in response to the first input, clean up a memory space occupied by the target application.
In this embodiment of the application, when the electronic device is in the target mode, an application icon of at least one application program in the electronic device may be displayed based on a preset display manner. Based on this, when the electronic device receives a first input of an application icon of a target application program in at least one application program by a user, the electronic device may perform cleaning on a memory space occupied by the target application program in response to the first input. Therefore, when a user needs to clear the occupied memory space of the application program, the electronic device can be directly triggered to clear the occupied memory space of the application program by operating the application icon of the application program, the user does not need to enter a specific application program such as a mobile phone manager to operate, the complexity of user operation is reduced, the memory space clearing speed of the application program is increased, and the use experience of the user is improved.
In some embodiments of the present application, the sensor 1005 or the user input unit 1007 is configured to receive a preset operation for the electronic device; the processor 1010 is further configured to enter a target mode in response to a preset operation, and acquire memory usage information of at least one application program; the display unit 1006 is further configured to display an application icon of at least one application program based on a preset display mode associated with the memory usage information.
In the embodiment of the application, when the electronic device receives a preset operation of a user, the electronic device can enter the target mode in response to the preset operation. And the electronic equipment can clear the occupied memory space of the application program corresponding to the icon only by receiving the first input of the user to the application icon in the target mode. Therefore, the situation that the user touches the application icon in the electronic equipment by mistake can be avoided, the electronic equipment can mistakenly clean the memory space of the application program, and the user use experience is improved. Meanwhile, in the target mode, the electronic device can display the application icon of the at least one application program according to a preset display mode based on the memory occupation information of the at least one application program, so that the display mode of the application icon can be according to and adapted to the memory occupation information of the application program, and the diversity of the icon display mode in the target mode is improved.
In some embodiments of the present application, the preset display mode includes at least one of: displaying memory occupation information of the application program on an application icon of the application program; displaying an application icon of an application program according to a target size, wherein the target size is associated with the memory occupation information of the application program; displaying an application icon of the application program according to a target color or a target shape associated with the memory occupation information of the application program; and displaying the application icons of at least one application program according to the target sequence, wherein the target sequence is associated with the memory occupation information of the application program.
In some embodiments of the present application, the memory usage information of the application is used to characterize the memory space occupied by the application, and the apparatus further includes: the word size of the memory occupied information displayed on the application icon is positively correlated with the memory space occupied by the application program; the target size is positively correlated with the memory space occupied by the application program; the number of colors contained in the target color is positively correlated with the memory space occupied by the application program; the number of edges of the target shape is positively correlated with the memory space occupied by the application program; the target sequence corresponds to an arrangement sequence of memory space occupied by at least one application program from large to small.
In some embodiments of the present application, the processor 1010 is further configured to determine a read-only memory ROM occupied by the application program to obtain the memory usage information, when the application program exits, before displaying the application icon of the at least one application program based on the preset display mode associated with the memory usage information.
In the embodiment of the application, the electronic device may determine the read-only memory occupied by the application in advance before the memory is cleared by the user, so as to obtain the memory occupation information. Based on this, when the user needs to clean the memory space occupied by the application program, the electronic device can directly acquire the memory occupied information of the application program, so that the user is prevented from waiting for the electronic device to scan the path file and determining the read-only memory, the waiting time of the user is shortened, the user does not need to confirm item by item, and the speed and the efficiency of cleaning the memory of the electronic device are improved.
In some embodiments of the present application, the processor 1010 is further configured to determine memory usage information of the cleaned target application after the memory space occupied by the target application is cleaned in response to the first input; the display unit 1006 is further configured to display an icon of the target application program based on a preset display manner associated with the cleared memory usage information of the target application program.
In the embodiment of the application, after the memory space occupied by the target application program is cleaned, the preset display mode corresponding to the target application program can be updated in time based on the cleaned memory occupation information of the target application program by determining the cleaned memory occupation information of the target application program, so that a user is assisted to continue cleaning the memory space, and the user experience is improved.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the memory cleaning method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, examples of which include non-transitory computer-readable storage media, such as computer-Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and so forth.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the memory cleaning method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A memory cleaning method is characterized by comprising the following steps:
under the condition that the electronic equipment is in a target mode, displaying an application icon of at least one application program in the electronic equipment based on a preset display mode, wherein the preset display mode is related to memory occupation information of the application program;
receiving a first input of an application icon of a target application program in the at least one application program;
and responding to the first input, and cleaning the memory space occupied by the target application program.
2. The method according to claim 1, wherein displaying an application icon of at least one application program in the electronic device based on a preset display mode when the electronic device is in the target mode comprises:
receiving a preset operation on the electronic equipment;
responding to the preset operation, entering the target mode, and acquiring the memory occupation information of the at least one application program;
and displaying the application icon of the at least one application program based on a preset display mode associated with the memory occupation information.
3. The method according to claim 1 or 2, wherein the preset display mode comprises at least one of:
displaying the memory occupation information of the application program on an application icon of the application program;
displaying an application icon of the application program according to a target size, wherein the target size is associated with the memory occupation information of the application program;
displaying an application icon of the application program according to a target color or a target shape associated with the memory occupation information of the application program;
and displaying the application icons of the at least one application program according to a target sequence, wherein the target sequence is associated with the memory occupation information of the application program.
4. The method according to claim 3, wherein the memory usage information of the application program is used for characterizing the memory space occupied by the application program, and the method comprises:
the word size of the memory occupied information displayed on the application icon is positively correlated with the memory space occupied by the application program;
the target size is positively correlated with the memory space occupied by the application program;
the number of colors contained in the target color is positively correlated with the memory space occupied by the application program;
the number of edges of the target shape is positively correlated with the memory space occupied by the application program;
the target sequence corresponds to a sequence of memory space occupied by the at least one application program from large to small.
5. The method according to claim 2, wherein before displaying the application icon of the at least one application program in the preset display mode based on the memory usage information association, the method further comprises:
and under the condition of exiting the application program, determining a read-only memory (ROM) occupied by the application program to obtain the memory occupation information.
6. The method of claim 1 or 5, wherein after said clearing the memory space occupied by the target application in response to the first input, the method further comprises:
determining memory occupation information of the cleaned target application program;
and displaying the icon of the target application program based on a preset display mode associated with the cleared memory occupation information of the target application program.
7. A memory cleaning apparatus, comprising:
the display module is used for displaying an application icon of at least one application program in the electronic equipment based on a preset display mode under the condition that the electronic equipment is in a target mode, wherein the preset display mode is related to the memory occupation information of the application program;
the receiving module is used for receiving a first input of an application icon of a target application program in the at least one application program;
and the memory cleaning module is used for responding to the first input and cleaning the memory space occupied by the target application program.
8. The apparatus of claim 7, wherein the display module comprises:
the receiving unit is used for receiving preset operation on the electronic equipment;
the acquisition unit is used for responding to the preset operation, entering the target mode and acquiring the memory occupation information of the at least one application program;
and the display unit is used for displaying the application icon of the at least one application program based on a preset display mode associated with the memory occupation information.
9. The apparatus according to claim 7 or 8, wherein the preset display mode comprises at least one of:
displaying the memory occupation information of the application program on an application icon of the application program;
displaying an application icon of the application program according to a target size, wherein the target size is associated with the memory occupation information of the application program;
displaying an application icon of the application program according to a target color or a target shape associated with the memory occupation information of the application program;
and displaying the application icons of the at least one application program according to a target sequence, wherein the target sequence is associated with the memory occupation information of the application program.
10. The apparatus according to claim 9, wherein the memory usage information of the application includes memory space occupied by the application, the apparatus comprising:
the word size of the memory occupied information displayed on the application icon is positively correlated with the memory space occupied by the application program;
the target size is positively correlated with the memory space occupied by the application program;
the depth of the target color or the number of colors contained in the target color is positively correlated with the memory space occupied by the application program;
the number of edges of the target shape is positively correlated with the memory space occupied by the application program;
the target sequence corresponds to a sequence of memory space occupied by the at least one application program from large to small.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the memory scrubbing method according to any one of claims 1-6.
12. A readable storage medium, on which a program or instructions are stored, which, when executed by a processor, carry out the steps of the memory scrubbing method according to any one of claims 1 to 6.
CN202111124554.9A 2021-09-24 2021-09-24 Memory cleaning method, device, equipment and storage medium Pending CN113867948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111124554.9A CN113867948A (en) 2021-09-24 2021-09-24 Memory cleaning method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111124554.9A CN113867948A (en) 2021-09-24 2021-09-24 Memory cleaning method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113867948A true CN113867948A (en) 2021-12-31

Family

ID=78994016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111124554.9A Pending CN113867948A (en) 2021-09-24 2021-09-24 Memory cleaning method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113867948A (en)

Similar Documents

Publication Publication Date Title
CN112181225A (en) Desktop element adjusting method and device and electronic equipment
CN111831182B (en) Application icon control method and device and electronic equipment
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
CN112099695B (en) Icon position adjusting method and device and electronic equipment
CN113794795B (en) Information sharing method and device, electronic equipment and readable storage medium
CN112433693B (en) Split screen display method and device and electronic equipment
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN113835580A (en) Application icon display method and device, electronic equipment and storage medium
WO2022199454A1 (en) Display method and electronic device
CN113467660A (en) Information sharing method and electronic equipment
CN112269501A (en) Icon moving method and device and electronic equipment
CN112286612A (en) Information display method and device and electronic equipment
CN114443203A (en) Information display method and device, electronic equipment and readable storage medium
CN113703634A (en) Interface display method and device
CN113407075A (en) Icon sorting method and device and electronic equipment
CN113268182A (en) Application icon management method and electronic equipment
CN112788178A (en) Message display method and device
CN111638828A (en) Interface display method and device
WO2023093719A1 (en) Application management method and apparatus, electronic device, and medium
CN111796736B (en) Application sharing method and device and electronic equipment
CN114416264A (en) Message display method and device
CN114089885A (en) Application icon management method and device, electronic equipment and readable storage medium
CN113867948A (en) Memory cleaning method, device, equipment and storage medium
CN113805756A (en) Interface display method and device, electronic equipment and storage medium
CN113885981A (en) Desktop editing method and device and electronic equipment

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