IP Library Granted Patent US 10,552,216
Granted Patent B2
US 10,552,216 · App. 15/366,897 · Granted Feb 4, 2020

Application heartbeat period adjusting method and apparatus, and terminal

Inventors: Junwei Gou (Shanghai, CN); Wei Li (Wuhan, CN); Shizheng Yang (Shenzhen, CN)
Assignee: HUAWEI DEVICE CO., LTD.
G06F9/4893G06F1/329
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 10,552,216
App. No.
15/366,897
Granted
Feb 4, 2020
Kind
B2
Abstract

Embodiments of the present invention disclose an application heartbeat period adjusting method and apparatus, and a terminal, and in the embodiments, it is determined, according to an identifier of an application, that the application is in a heartbeat adjustment blacklist. A first heartbeat period of the application is adjusted to a second heartbeat period according to a preset trigger heartbeat period. The heartbeat adjustment blacklist includes an identifier of an application on which a heartbeat period adjustment needs to be performed, the first heartbeat period of the application is an original heartbeat period of the application, the second heartbeat period is a heartbeat period, which is adjusted according to the preset trigger heartbeat period, of the application, and the preset trigger heartbeat period is an adjustment period according to which the first heartbeat period is adjusted.

Claims (44)

1. An application heartbeat period adjusting method, comprising:

acquiring a heartbeat type and a first heartbeat period of a first application in response to determining that the first application is not in an application whitelist;

determining, in response to the heartbeat type of the first application being a heartbeat type that needs an adjustment, and further in response to determining, according to the first heartbeat period of the first application, that a number of times the first application wakes up a system within a preset period is greater than a preset times threshold, that the first heartbeat period of the first application needs to be adjusted;

obtaining, according to an identifier of the first application, the first heartbeat period of the first application, wherein the acquiring the heartbeat type and the first heartbeat period and the determining that the first heartbeat period needs to be adjusted are performed before the obtaining the first heartbeat period of the first application;

adjusting the first heartbeat period of the first application to a second heartbeat period according to a preset trigger heartbeat period, wherein the first heartbeat period is an original heartbeat period of the first application, the second heartbeat period is a heartbeat period, which is adjusted according to the preset trigger heartbeat period, of the first application;

obtaining, according to an identifier of a second application, a third heartbeat period of the second application; and

adjusting the third heartbeat period of the second application to a fourth heartbeat period according to the preset trigger heartbeat period, wherein the third heartbeat period is an original heartbeat period of the second application, the fourth heartbeat period is a heartbeat period, which is adjusted according to the preset trigger heartbeat period, of the second application, the preset trigger heartbeat period is an adjustment period according to which the first or third heartbeat period is adjusted, and the fourth heartbeat period is a multiple of the second heartbeat period.

2. The method according to claim 1 , wherein adjusting the first heartbeat period of the first application to the second heartbeat period comprises:

adjusting the first heartbeat period of the first application to the second heartbeat period according to the preset trigger heartbeat period by using an alarm adjustment algorithm, wherein

the alarm adjustment algorithm includes:

the second heartbeat period of the first application=((the first heartbeat period of the first application+the preset trigger heartbeat period−1)/the preset trigger heartbeat period)*the preset trigger heartbeat period.

3. The method according to claim 1 , wherein adjusting the first heartbeat period of the first application to the second heartbeat period comprises:

adjusting the first heartbeat period of the first application to the second heartbeat period according to the preset trigger heartbeat period by using an alarm adjustment algorithm, wherein

the alarm adjustment algorithm includes:

the second heartbeat period of the first application=((the first heartbeat period of the first application+the preset trigger heartbeat period−1)/the preset trigger heartbeat period)*the preset trigger heartbeat period.

4. The method according to claim 1 , wherein before it is determined that the first application is not in the application whitelist, the method comprises presetting the application whitelist, wherein the application whitelist comprises an identifier of an application on which it is determined, according to an application attribute, that the heartbeat period adjustment does not need to be performed.

5. The method according to claim 1 , wherein acquiring the heartbeat type and the first heartbeat period of the first application comprises acquiring the heartbeat type and the first heartbeat period of the first application according to an alarm configuration file of the first application.

6. The method according to claim 5 , wherein adjusting the first heartbeat period of the first application to the second heartbeat period comprises:

adjusting the first heartbeat period of the first application to the second heartbeat period according to the preset trigger heartbeat period by using an alarm adjustment algorithm, wherein

the alarm adjustment algorithm includes:

the second heartbeat period of the first application=((the first heartbeat period of the first application+the preset trigger heartbeat period−1)/the preset trigger heartbeat period)*the preset trigger heartbeat period.

7. A terminal, comprising:

a processor; and

a computer-readable storage medium storing a program to be executed by the processor, the program including instructions for:

acquiring a heartbeat type and a first heartbeat period of a first application in response to determining that the first application is not in an application whitelist;

determining, in response to the heartbeat type of the first application being a heartbeat type that needs an adjustment, and further in response to determining, according to the first heartbeat period of the first application, that a number of times the first application wakes up a system within a preset period is greater than a preset times threshold, that the first heartbeat period of the first application needs to be adjusted;

obtaining, according to an identifier of the first application, the first heartbeat period of the first application, wherein the instructions for acquiring the heartbeat type and the first heartbeat period and instructions for determining that the first heartbeat period needs to be adjusted are executed before the instructions for obtaining the first heartbeat period of the first application;

adjusting the first heartbeat period of the first application to a second heartbeat period according to a preset trigger heartbeat period, wherein the first heartbeat period is an original heartbeat period of the first application, the second heartbeat period is a heartbeat period, which is adjusted according to the preset trigger heartbeat period, of the first application;

obtaining, according to an identifier of a second application, a third heartbeat period of the second application; and

adjusting the third heartbeat period of the second application to a fourth heartbeat period according to the preset trigger heartbeat period, wherein the third heartbeat period is an original heartbeat period of the second application, the fourth heartbeat period is a heartbeat period, which is adjusted according to the preset trigger heartbeat period, of the second application, the preset trigger heartbeat period is an adjustment period according to which the first or third heartbeat period is adjusted, and the fourth heartbeat period is a multiple of the second heartbeat period.

8. The terminal according to claim 7 , wherein the program further includes instructions for:

adjusting the first heartbeat period of the first application to the second heartbeat period according to the preset trigger heartbeat period by using an alarm adjustment algorithm, wherein

the alarm adjustment algorithm includes:

the second heartbeat period of the first application=((the first heartbeat period of the first application+the preset trigger heartbeat period−1)/the preset trigger heartbeat period)*the preset trigger heartbeat period.

9. The terminal according to claim 7 , wherein the program further includes instructions for:

adjusting the first heartbeat period of the first application to the second heartbeat period according to the preset trigger heartbeat period by using an alarm adjustment algorithm, wherein

the alarm adjustment algorithm includes:

the second heartbeat period of the first application=((the first heartbeat period of the first application+the preset trigger heartbeat period−1)/the preset trigger heartbeat period)*the preset trigger heartbeat period.

10. The terminal according to claim 7 , wherein before it is determined that the first application is not in the application whitelist, the program further includes instructions for: presetting the application whitelist, wherein the application whitelist comprises an identifier of an application on which it is determined, according to an application attribute, that the heartbeat period adjustment does not need to be performed.

11. The terminal according to claim 7 , wherein the program further includes instructions for: acquiring the heartbeat type and the first heartbeat period of the first application according to an alarm configuration file of the first application.

12. The terminal according to claim 11 , wherein the program further includes instructions for:

adjusting the first heartbeat period of the first application to the second heartbeat period according to the preset trigger heartbeat period by using an alarm adjustment algorithm, wherein

the alarm adjustment algorithm includes:

the second heartbeat period of the first application=((the first heartbeat period of the first application+the preset trigger heartbeat period−1)/the preset trigger heartbeat period)*the preset trigger heartbeat period.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 19, 2018
From: HUAWEI DEVICE (SHENZHEN) CO., LTD.
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 047603/0039 →
CHANGE OF NAME Recorded Jun 12, 2018
From: HUAWEI DEVICE CO.,LTD.
To: HUAWEI DEVICE (SHENZHEN) CO., LTD.
Reel/Frame 046340/0590 →
Priority Claims (1)
CN 2013 1 0028340 · Jan 25, 2013 · national
Continuity (3)
Continuation 14582910 · Dec 24, 2014
Continuation PCTCN2014070396 · Jan 9, 2014
Related Publication 20170083366A1 · Mar 23, 2017