IP Library Granted Patent US 9,965,188
Granted Patent B2
US 9,965,188 · App. 14/808,767 · Granted May 8, 2018

Memory cleaning method and apparatus, and terminal device

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,965,188
App. No.
14/808,767
Granted
May 8, 2018
Kind
B2
Abstract

A memory cleaning method and apparatus, and a terminal device are provided. The memory cleaning method includes: acquiring information about application processes that occupy memory of a terminal device; determining, according to behavior characteristic information of using an application by a user, that a first application process in the application processes is an application process for which cleaning is not performed; and performing memory cleaning processing on an application process, except the first application process, in the application processes, so that it may be implemented that memory cleaning is performed according to the behavior characteristic information of using an application by the user and operating performance of the terminal device is improved. Furthermore a response time required when the user starts the first application process again is reduced, and an experience effect of using the terminal device by the user is ensured.

Claims (44)

1. A terminal device, comprising:

a transmitter;

a processor connected to the transmitter; and

a non-transitory computer readable medium connected to the processor and having stored thereon instructions that, when executed, cause the processor to:

acquire information about application processes that occupy memory of the terminal device;

determine, according to at least one of a frequency of use of an application or a recency of use of the application, which is determined according to behavior characteristic information of using the application by a user, that a first application process in the application processes is an application process for which cleaning is not performed, wherein the behavior characteristic information comprises a usage time record of an application process and at least one of a quantity of cumulative times of using the application process, duration in which the application process is used each time, or cumulative duration in which the application process is used; and

perform memory cleaning processing on an application process, except the first application process, in the application processes.

2. The device of claim 1 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to receive a memory cleaning request input by the user before the determination of the first application process.

3. The device of claim 1 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to determine that available memory of the terminal device is less than a preset value of memory before the determination of the first application process.

4. The device of claim 1 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to acquire the behavior characteristic information of using an application by the user before the acquiring information about application processes that occupy memory of the terminal device.

5. The device of claim 4 , wherein the instructions that, when executed, cause the processor to determine the first application process in the application processes comprise instructions that, when executed, cause the processor to:

determine that the first application process is the application process for which cleaning is not performed in response to determining, according to a usage time record of the first application process, that a difference between a last suspension time of the first application process and the cumulative timed time of a timer is less than or equal to a second preset value.

6. The device of claim 4 , wherein the instructions that, when executed, cause the processor to determine the first application process in the application processes comprise instructions that, when executed, cause the processor to:

determine whether at least one of a quantity of cumulative times of using the first application process or cumulative duration in which the first application process is used exceeds a preset threshold in response to determining, according to a usage time record of the first application process, that a difference between a last suspension time of the first application process and the cumulative timed time of a timer is greater than a second preset value and less than or equal to a third preset value; and

determine that the first application process is the application process for which cleaning is not performed in response to the at least one of the quantity of cumulative times of using the first application process or cumulative duration in which the first application process is used exceeding the preset threshold.

7. The device of claim 4 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to receive a timing expiration indication message when a timing period expires before the acquiring the behavior characteristic information of using an application by the user.

8. The device of claim 7 , wherein the instructions that, when executed, cause the processor to acquire the behavior characteristic information of using an application by the user comprise instructions that, when executed, cause the processor to:

acquire event record information of the application process from an activity manager service AMS, wherein the event record information comprises at least one of an application process startup event or an application process suspension event;

update, according to an event comprised in the event record information, the usage time record of the application process; and

acquire, by means of counting according to the usage time record of the application process, at least one of the quantity of cumulative times of using the application process, the duration in which the application process is used each time, or the cumulative duration in which the application process is used.

9. The device of claim 8 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to:

determine, according to the application process startup event and in response to the event record information being the application process startup event, the quantity of cumulative times of using the application process.

10. The device of claim 8 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to:

determine, in response to the event record information being the application process suspension event, at least one of the duration in which the application process is used each time or the cumulative duration in which the application process is used according to the usage time record, the application process suspension event, and an application process startup event corresponding to the application process suspension event.

11. The device of claim 8 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to:

determine, according to the application process startup event and in response to the event record information being one of the application process startup event and the application process suspension event, the quantity of cumulative times of using the application process; and

determine, in response to the event record information being one of the application process startup event and the application process suspension event, at least one of the duration in which the application process is used each time or the cumulative duration in which the application process is used according to the usage time record, the application process suspension event, and an application process startup event corresponding to the application process suspension event.

12. The device of claim 8 , wherein the non-transitory computer readable medium further has stored thereon instructions that, when executed, cause the processor to:

determine an application process whose startup time or suspension time in a usage time record of an already suspended application process has a difference of greater than or equal to a first preset value with a cumulative time of a timer; and

delete behavior characteristic information corresponding to the startup time or the suspension time of the application process.

13. The device of claim 8 , wherein the event record information acquired from the AMS further comprises an application process association event.

14. The device of claim 13 , wherein the instructions that, when executed, cause the processor to perform memory cleaning processing on an application process, except the first application process, in the application processes, comprise instructions that, when executed, cause the processor to:

determine, according to the application process association event, whether an application process that has an association relationship with the first application process exists in application processes on which memory cleaning processing needs to be performed; and

perform memory cleaning processing on an application process, except the application process that has an association relationship with the first application process, in the application processes on which memory cleaning processing needs to be performed in response to the application process that has an association with the first application process existing.

15. A method, comprising:

acquiring, by a terminal device, information about application processes being executed by a processor of the terminal device and that occupy memory of the terminal device;

determining, according to at least one of a frequency of use of an application or a recency of use of the application, which is determined according to behavior characteristic information of using the application by a user, that a first application process in the application processes is an application process for which cleaning is not performed, wherein the behavior characteristic information comprises a usage time record of an application process and at least one of a quantity of cumulative times of using the application process, duration in which the application process is used each time, or cumulative duration in which the application process is used; and

performing memory cleaning processing on an application process, except the first application process, in the application processes.

16. A terminal device, comprising:

a transmitter;

a processor connected to the transmitter; and

a non-transitory computer readable medium connected to the processor and having stored thereon instructions that, when executed, cause the processor to:

determine a use parameter of each application of a set of applications in memory of a terminal device according to behavior characteristic information indicating usage by a user of the respective application, wherein the use parameter includes at least one of a frequency of use of an application or a recency of use of the application, wherein the behavior characteristic information comprises a usage time record of an application process and at least one of a quantity of cumulative times of using the application process, duration in which the application process is used each time, or cumulative duration in which the application process is used; and

perform memory cleaning processing one or more application in the set of applications according to the use parameter of the respective application.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI DEVICE CO.,LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 056413/0883 →
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 24, 2015
From: QIAO, YONGHONG; WU, ZHEN
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 036173/0807 →