Electricity amount detection method and device, terminal and storage medium
First Claim
1. An electricity amount detection method applied to a terminal, comprising:
- acquiring, according to identity (ID) information of an application in the terminal, ID information of each function device called by the application;
wherein, the application calls one or more than one function devices at the same time;
acquiring through an electricity amount acquisition device in the terminal, according to the ID information of each function device called by the application, a power consumption parameter generated when each function device is called;
wherein the power consumption parameter comprises;
a lowest current, a highest current or an average current;
calculating a total power consumption parameter according to all acquired power consumption parameters generated by the called function devices;
determining the calculated total power consumption parameter as a power consumption parameter generated when the application is running; and
outputting the power consumption parameter generated when the application is running as a power consumption index when the application is running.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed an electricity amount detection method and device, a terminal and a storage medium. The method includes that: Identity (ID) information of each function device called by an application is acquired according to ID information of the application; a power consumption parameter generated when each function device is called is correspondingly acquired according to the ID information of each function device called by the application; a power consumption parameter generated when the application is running is determined according to the power consumption parameter generated by each function device; and the power consumption parameter generated when the application is running is output as a power consumption index when the application is running.
11 Citations
20 Claims
-
1. An electricity amount detection method applied to a terminal, comprising:
-
acquiring, according to identity (ID) information of an application in the terminal, ID information of each function device called by the application;
wherein, the application calls one or more than one function devices at the same time;acquiring through an electricity amount acquisition device in the terminal, according to the ID information of each function device called by the application, a power consumption parameter generated when each function device is called;
wherein the power consumption parameter comprises;
a lowest current, a highest current or an average current;calculating a total power consumption parameter according to all acquired power consumption parameters generated by the called function devices; determining the calculated total power consumption parameter as a power consumption parameter generated when the application is running; and outputting the power consumption parameter generated when the application is running as a power consumption index when the application is running. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A terminal, comprising
a processor; - and
a memory for storing instructions executable by the processor, wherein the processor is arranged to; acquire Identity (ID) information of each function device called by an application in the terminal according to ID information of the application;
wherein, the application calls one or more than one function devices at the same time;acquire a power consumption parameter generated when each function device is called through an electricity amount acquisition device in the terminal, according to the ID information of each function device called by the application;
wherein the power consumption parameter comprises;
a lowest current, a highest current or an average current;calculate a total power consumption parameter according to all acquired power consumption parameters generated by the called function devices; determine the calculated total power consumption parameter as a power consumption parameter generated when the application is running; and output the power consumption parameter generated when the application is running as a power consumption index when the application is running. - View Dependent Claims (13, 14, 15, 16, 17, 18)
- and
-
19. A non-transitory computer storage medium, in which computer-executable instructions are stored, the computer-executable instructions are arranged to execute an electricity amount detection method applied to a terminal, comprising:
-
acquiring, according to identity (ID) information of an application in the terminal, ID information of each function device called by the application;
wherein, the application calls one or more than one function devices at the same time;acquiring through an electricity amount acquisition device in the terminal, according to the ID information of each function device called by the application, a power consumption parameter generated when each function device is called;
wherein the power consumption parameter comprises;
a lowest current, a highest current or an average current;calculating a total power consumption parameter according to all acquired power consumption parameters generated by the called function devices; determining the calculated total power consumption parameter as a power consumption parameter generated when the application is running; and outputting the power consumption parameter generated when the application is running as a power consumption index when the application is running. - View Dependent Claims (20)
-
Specification