WO2015010624A1 - 应用程序耗电信息的获取方法、装置和移动终端 - Google Patents
应用程序耗电信息的获取方法、装置和移动终端 Download PDFInfo
- Publication number
- WO2015010624A1 WO2015010624A1 PCT/CN2014/082839 CN2014082839W WO2015010624A1 WO 2015010624 A1 WO2015010624 A1 WO 2015010624A1 CN 2014082839 W CN2014082839 W CN 2014082839W WO 2015010624 A1 WO2015010624 A1 WO 2015010624A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- power consumption
- application
- mobile terminal
- consumption information
- average power
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000005259 measurement Methods 0.000 claims abstract description 70
- 230000008569 process Effects 0.000 claims description 11
- 230000002708 enhancing effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 13
- 238000012935 Averaging Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- LFQSCWFLJHTTHZ-UHFFFAOYSA-N Ethanol Chemical compound CCO LFQSCWFLJHTTHZ-UHFFFAOYSA-N 0.000 description 1
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 229910052744 lithium Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
- G06F11/3062—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3013—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Definitions
- the present invention relates to the field of mobile terminal technologies, and in particular, to a method, an apparatus, and a mobile terminal for acquiring power consumption information of an application. Background technique
- mobile terminals have a strong processing power, and mobile terminals are changing from simple call tools. It is an integrated information processing platform.
- Modern mobile terminals have extremely powerful processing power, memory, solidified storage media and computer-like operating systems. They are a complete ultra-small computer system that can perform complex processing tasks, not only to talk, take pictures, listen to music, Play games, and can realize a wide range of functions including positioning, information processing, fingerprint scanning, ID card scanning, barcode scanning, RFID (Radio Frequency Identification) scanning, IC card scanning, and alcohol content detection.
- RFID Radio Frequency Identification
- the current solution is as follows: For the big screen highlighting highlighting problem, the user can lower the brightness display of the large screen by operation, and lock the screen when the mobile terminal is not needed; for the power consumption problem during operation of the operating system, the user can reduce Use time for related system functions, such as using 3G (3rd-generation, 3rd generation mobile communication technology), Wi-Fi (wireless fidelity, radio high fidelity), and so on.
- 3G 3rd-generation, 3rd generation mobile communication technology
- Wi-Fi wireless fidelity, radio high fidelity
- the operating system of the mobile terminal is an Application Programming Interface (API) provided by the software developer.
- API Application Programming Interface
- the current problem is that the operating system of a plurality of mobile terminals cannot obtain the power consumption of the installed application through the API interface, so the power consumption problem of the application cannot be accurately known by the user, and it is difficult for the user to clearly know which applications are "”. "Power-hungry users", can not reasonably arrange the use time of the installed application. Summary of the invention
- the present invention aims to solve at least one of the above technical problems.
- a first object of the present invention is to provide a method for acquiring power consumption information of an application.
- the method is for the user Reasonable use of the battery power of the mobile terminal provides a reference, which improves the user experience.
- a second object of the present invention is to provide an apparatus for acquiring power consumption information of an application.
- a third object of the present invention is to provide a mobile terminal.
- a fourth object of the present invention is to provide a storage medium.
- the method for acquiring power consumption information of an application includes: acquiring an application running in a mobile terminal; and determining that the pre-compliance is determined according to a state of the mobile terminal and the application When the measurement condition is set, the first time and the first power amount of the mobile terminal are recorded; when the preset measurement condition is not met according to the state of the mobile terminal and the application, the second time of the mobile terminal is recorded And a second power amount; and acquiring first average power consumption information of the application according to the first time, the first power amount, the second time, and the second power amount.
- the current time and the current power of the mobile terminal are obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the current time and the current power amount are obtained according to the current time of the mobile terminal.
- the application's unit time power consumption information provides a reference for the user to properly use the battery power of the mobile terminal.
- an apparatus for acquiring power consumption information of an application of a second aspect of the present invention includes: an application acquiring module, configured to acquire an application running in a mobile terminal; and a first time and a first power recording module And for recording, when the preset measurement condition is met according to the state of the mobile terminal and the application, recording the first time and the first power of the mobile terminal; the second time and the second power recording module, Recording, according to the state of the mobile terminal and the application, that the preset measurement condition is not met, recording the second time and the second power of the mobile terminal; and the first average power consumption information acquiring module, configured to The first time, the first power, the second time, and the second power acquire the first average power consumption information of the application.
- the device for acquiring power consumption information of the application acquires the current time and current power of the mobile terminal according to whether the state of the mobile terminal and the application meets the preset measurement condition, and obtains according to the current time and current power of the mobile terminal.
- the application's unit time power consumption information provides a reference for the user to properly use the battery power of the mobile terminal, thereby improving the user experience.
- a mobile terminal includes: a casing, a screen, a processor, and a circuit board; the screen is disposed on the casing, and the circuit board is disposed in the casing Inside the space, the processor is disposed on the circuit board; the processor is configured to process data, specifically: acquiring an application running in the mobile terminal; when according to the status of the mobile terminal and the application Determining, when the preset measurement condition is met, recording the first time and the first power amount of the mobile terminal; when determining that the preset measurement condition is not met according to the state of the mobile terminal and the application, recording the mobile terminal a second time and a second power amount; and acquiring first average power consumption information of the application according to the first time, the first power quantity, the second time, and the second power quantity.
- the mobile terminal acquires the current time and current power of the mobile terminal according to whether the state of the mobile terminal and the application meets the preset measurement condition, and acquires the unit time consumption of the application according to the current time of the mobile terminal and the current power consumption.
- the electrical information provides a reference for the user to properly use the battery power of the mobile terminal, thereby improving the user experience.
- a storage medium configured to store an application, and the application is used to execute the method for acquiring power consumption information of the application according to the first aspect of the present invention.
- FIG. 1 is a flowchart of a method for acquiring power consumption information of an application according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for acquiring power consumption information of an application according to another embodiment of the present invention.
- FIG. 3 is a flowchart of a method for acquiring power consumption information of an application according to still another embodiment of the present invention.
- FIG. 4(a) is a flowchart of a method for acquiring power consumption information of an application according to still another embodiment of the present invention
- FIG. 4(b) is a second average power consumption information and a power consumption level according to an embodiment of the present invention.
- FIG. 4(c) is a schematic diagram showing an example of reminding a user to turn off an application with a higher power consumption level according to an embodiment of the present invention;
- Figure 5 (a) is a flowchart of a method for acquiring power consumption information of an application according to still another embodiment of the present invention
- Figures 5 (b), (c), (d) and (e) are diagrams according to an embodiment of the present invention
- FIG. 6 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to an embodiment of the present invention
- FIG. 7 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to another embodiment of the present invention
- FIG. 8 is a block diagram showing a structure of an apparatus for acquiring power consumption information of an application according to still another embodiment of the present invention
- FIG. 10 is a block diagram showing a structure of an apparatus for acquiring power consumption information of an application according to still another embodiment of the present invention.
- the present invention provides a method, an apparatus, and a mobile terminal for acquiring power consumption information of an application program.
- a method, an apparatus, and a mobile terminal for acquiring power consumption information of an application according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
- FIG. 1 is a flow chart of a method for acquiring power consumption information of an application according to an embodiment of the present invention. As shown in FIG. 1, the method for acquiring power consumption information of an application includes the following steps.
- a corresponding running application is obtained according to a running process in the mobile terminal, wherein an application can be determined according to the process.
- the state of the mobile terminal may include a charging state, a plug-in state, and the like.
- the state of the application may include a foreground operation, a background operation, and the like.
- the preset measurement condition may be that the mobile terminal is not in a charging state and the application is running in the foreground.
- determining, according to the state of the mobile terminal and the application, that the preset measurement condition is met specifically includes: determining, when the application is running in the foreground, whether the mobile terminal is in a charging state; An electrical signal; and if not in a state of charge, or waiting for a pullout signal, determining that the preset measurement condition is met.
- determining, according to the state of the mobile terminal and the application, that the preset measurement condition is not met specifically includes: monitoring the mobile terminal, determining that the preset is not satisfied when the mobile terminal is in the plugged state or the application enters the background Measurement conditions.
- the following manner can be implemented, firstly, whether the mobile terminal is monitored If it is not in the plugged state, it is further determined whether the application enters the background; and if it enters the background or is in the plugged state, it determines that the preset measurement condition is not met, and it should be understood that it may first determine whether to enter the background. Then, the plug-in state is judged. Thereby, the current time and the current power of the mobile terminal can be obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the accuracy is improved.
- the second time and the second power amount of the mobile terminal are recorded.
- the unit time power consumption information of the application is obtained according to the first time, the first power amount, the second time, and the second power amount, for example, according to the formula (second power amount - first power amount) I (second time - The first time) calculates the unit time power consumption information, thereby obtaining the first average power consumption information of the application.
- the current time and the current power of the mobile terminal are obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the current time and the current power amount are obtained according to the current time of the mobile terminal.
- the application's unit time power consumption information provides a reference for the user to properly use the battery power of the mobile terminal, thereby improving the user experience.
- FIG. 2 is a flow chart of a method for acquiring power consumption information of an application according to another embodiment of the present invention. Get the application's power consumption information closest to the true value by averaging multiple times. Specifically, as shown in FIG. 2, the method for acquiring the application power consumption includes the following steps.
- the first average power consumption information is sent to the server, where the server determines the second average power consumption information of the application according to the first average power consumption information sent by the multiple mobile terminals for other mobile terminals to query.
- the server obtains the power consumption information of the application that is closest to the real value by using a method of averaging multiple times according to the first average power consumption information sent by the multiple mobile terminals and the second average power consumption information of the stored application. And updating the stored second average power consumption information of the application for other mobile terminals to query.
- the first average power consumption information is sent to a server, so that the server obtains the second average power consumption of the application that is closest to the real value by the method of multiple averaging
- the accuracy and accuracy of the application, and the corresponding second average power consumption information can be stored in the server, reducing the local storage pressure and secondary response speed.
- the method for acquiring application power consumption information includes the following steps.
- the first average power consumption information is sent to the server, where the server determines the second average power consumption information of the application according to the first average power consumption information sent by the multiple mobile terminals for the other mobile terminal to query.
- the client of the mobile terminal provides the user with a second average power consumption information query application, and the user can access the server through the application, and the server stores the second average power consumption information of each application, thereby obtaining The second average power consumption information of the application.
- the usage time is calculated ideally according to the power consumption information of the application and the current remaining power, and the usage time can be corrected to better adapt to the actual power consumption environment, and the user selectively turns off some applications by using the time. To save power.
- the usage time of the application under the current remaining power is obtained and displayed according to the current remaining power consumption and the second average power consumption information of the application, which can make the user more intuitive Understand the current power situation of mobile terminals and enhance the user experience.
- FIG. 4(a) is a flowchart of a method of acquiring power consumption information of an application according to still another embodiment of the present invention.
- the power consumption of the application can be graded.
- the method for acquiring application power consumption information includes the following steps.
- S405 Send the first average power consumption information to the server, where the server determines the second average power consumption information of the application according to the first average power consumption information sent by the multiple mobile terminals for the other mobile terminal to query.
- FIG. 4(b) is a schematic diagram showing an example of the second average power consumption information and the power consumption level according to the embodiment of the present invention, and the second average power consumption information and the power consumption level of the application are displayed as shown in FIG. 4(b). .
- the higher-level application prompts the user not to run or close the application when the mobile terminal's power is low.
- the user is reminded to turn off the application with a higher power consumption level to save the power consumption of the application program according to the embodiment of the present invention, and the second average power consumption according to the application program.
- the information acquisition power consumption level of the application, and displaying the second average power consumption information and/or the power consumption level can enable the user to more intuitively understand the power consumption level of the application in the mobile terminal, improve the user experience, and In an emergency, for example, when the power is low, the application with high power consumption level can be turned off to further improve the user experience.
- the application, the corresponding second average power consumption information, and the power consumption level may be stored in the server, and the user inputs the application information to be installed, for example, the application name, according to the application input by the user.
- the program information acquires the second average power consumption information and the power consumption level of the application from the server and displays it on the display screen of the mobile terminal for the user to refer to whether to download and install. This improves the user experience.
- FIG. 5(a) is a flowchart of a method for acquiring power consumption information of an application according to still another embodiment of the present invention.
- the power consumption information of the application can be displayed on the display screen.
- the method for acquiring the application power consumption information includes the following steps.
- S503 Record, when the preset measurement condition is not met according to the state of the mobile terminal and the application, record the second time and the second power of the mobile terminal.
- S504 Obtain a first average power consumption white of the application according to the first time, the first power, the second time, and the second power
- S505 The first average power consumption information is sent to the server, where the server determines the second average power consumption information of the application according to the first average power consumption information sent by the multiple mobile terminals for the other mobile terminal to query.
- the client of the mobile terminal provides the user with a second average power consumption information query application, and the user can send a power consumption display instruction or the like by starting the application.
- the power consumption display instruction is the first power consumption display instruction, displaying the second average power consumption information of the system-level installed running application and/or the installed non-running application.
- the user obtains the second average power consumption information of the system-level application by sending the first power consumption display instruction, as shown in FIG. 5(b), displaying the system-level installed running application in the mobile terminal and/or Or the second average power consumption information of the application that has not been installed, such as the second average power consumption information showing positioning, network, phone, SMS, settings, mail, etc.
- the power consumption display instruction is the second power consumption display instruction, displaying the second average power consumption information of the application level installed installed application and/or the installed non-running application.
- the user obtains the second average power consumption information of the application-level application by sending the second power consumption display instruction, as shown in FIG. 5(c), displaying the application-level installed application in the mobile terminal.
- the second average power consumption information such as the second average power consumption information of the game Fruit Ninja, QQ2012, etc., as shown in FIG. 5(d), shows the second average of the application-level installed unused applications in the mobile terminal. Power consumption information.
- the power consumption display instruction is the third power consumption display instruction, displaying the second average power consumption information of the installed running application and/or the installed non-running application at the system level and the application level.
- the user obtains the second average power consumption information of the application at the system level and the application level by sending a third power consumption display instruction, as shown in FIG. 5 (e), displaying the installed application running at the system level and the application level.
- the second average power consumption information for the program and/or installed applications that are not running.
- the method for acquiring power consumption information of an application receives a power consumption display instruction of a user, and displays a system level, an application level, or a system level and an application level application according to the power consumption display instruction.
- the average power consumption information can make the user more intuitively understand the power consumption of each application and further enhance the user experience.
- the present invention also provides an apparatus for acquiring power consumption information of an application.
- FIG. 6 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to an embodiment of the present invention.
- the device for acquiring power consumption information of the application includes an application acquiring module 10, a first time and first power recording module 20, a second time and second power recording module 30, and a first average power consumption information acquisition.
- Module 40 the application obtaining module 10 is configured to acquire an application that is running in the mobile terminal. For example, a corresponding running application is obtained according to a running process in the mobile terminal, wherein an application can be determined according to the process.
- the first time and first power recording module 20 is configured to record the first time and the first power amount of the mobile terminal when it is determined that the preset measurement condition is satisfied according to the state of the mobile terminal and the application.
- the state of the mobile terminal may include a charging state, a plug-in state, and the like.
- the state of the application may include a foreground operation, a background operation, and the like.
- the preset measurement condition may be that the mobile terminal is not in a charging state and the application is running in the foreground.
- the first time and the first power recording module 20 are further configured to: when the application is running in the foreground, determine whether the mobile terminal is charging State, and when in the charging state, waiting for the power-off signal, and when not in the charging state, or waiting for the power-off signal, it is determined that the preset measurement condition is satisfied. Thereby, the current time and the current power of the mobile terminal can be obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the accuracy is improved.
- the second time and second power recording module 30 is configured to record the second time and the second amount of power of the mobile terminal when it is determined that the preset measurement condition is not satisfied according to the state of the mobile terminal and the application.
- the second time and the second power recording module 30 are further configured to: monitor the mobile terminal, when the mobile terminal is in the plug-in state or the application When entering the background, it is determined that the preset measurement conditions are not met.
- the following manner can be implemented, firstly, whether the mobile terminal is in the plugged state, and when not in the plugged state, further determining whether the application enters the background, entering the background, or inserting In the electrical state, it is determined that the preset measurement condition is not met, and it should be understood that it is also possible to first determine whether to enter the background, and then perform the plug-in state judgment.
- the current time and the current power of the mobile terminal can be obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the accuracy is improved.
- the second time and the second power amount of the mobile terminal are recorded. Thereby, the acquisition result is more accurate.
- the first average power consumption information obtaining module 40 is configured to obtain first average power consumption information of the application according to the first time, the first power amount, the second time, and the second power quantity. More specifically, the first average power consumption information obtaining module 40 obtains the unit time power consumption information of the application according to the first time, the first power amount, the second time, and the second power amount, for example, according to the formula (the second power amount) - First power) I (second time - first time) calculates unit time power consumption information, thereby obtaining first average power consumption information of the application.
- the device for acquiring power consumption information of the application acquires the current time and current power of the mobile terminal according to whether the state of the mobile terminal and the application meets the preset measurement condition, and obtains according to the current time and current power of the mobile terminal.
- the application's unit time power consumption information provides a reference for the user to properly use the battery power of the mobile terminal, thereby improving the user experience.
- FIG. 7 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to another embodiment of the present invention. As shown in FIG. 7, the device for acquiring power consumption information of the application includes an application acquiring module 10, a first time and first power recording module 20, a second time and a second power recording module 30, and a first average power consumption information acquisition. Module 40 and transmitting module 50.
- the sending module 50 is configured to send the first average power consumption information to the server, where the server determines the second average power consumption information of the application according to the first average power consumption information sent by the multiple mobile terminals, for other mobile terminals. Inquire. More specifically, the server obtains the power consumption of the application that is closest to the real value by the method of averaging multiple times according to the first average power consumption information sent by the plurality of mobile terminals and the second average power consumption information of the stored application. Information, and update the stored second average power consumption information of the application for other mobile terminals to query.
- the device for acquiring power consumption information of the application sends the first average power consumption information to the server through the sending module, so that the server obtains the second application that is closest to the real value by the method of averaging multiple times.
- the average power consumption information improves the accuracy.
- the application and the corresponding second average power consumption information can be stored in the server, reducing the local storage pressure and the secondary response speed.
- FIG. 8 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to still another embodiment of the present invention.
- the device for acquiring power consumption information of the application includes an application acquiring module 10, a first time and first power recording module 20, a second time and a second power recording module 30, and a first average power consumption information acquisition.
- the second average power consumption information obtaining module 60 is configured to acquire a second average power consumption information of the application from the server.
- the client of the mobile terminal provides the user with a second average power consumption information query application, and the user can access the server through the application, and the server stores the second average power consumption information of each application, thereby obtaining The second average power consumption information of the application.
- the remaining power acquisition module 70 is configured to acquire the current remaining power of the mobile terminal.
- the usage time acquisition module 80 is configured to acquire and display the usage time of the application under the current remaining power according to the current remaining power consumption and the second average power consumption information of the application. For example, the usage time is calculated ideally according to the power consumption information of the application and the current remaining power, and the usage time can be corrected to be more suitable for the actual power consumption environment. The user selectively turns off some applications by using the time. To save power.
- the device for acquiring power consumption information of the application acquires the usage time of the application under the current remaining power according to the current remaining power and the second average power consumption information of the application, and displays the same, which can make the user more intuitive Understand the current power situation of mobile terminals and enhance the user experience.
- FIG. 9 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to still another embodiment of the present invention.
- the device for acquiring power consumption information of the application includes an application acquiring module 10, a first time and first power recording module 20, a second time and a second power recording module 30, and a first average power consumption information acquisition.
- the power consumption level obtaining module 90 is configured to acquire the power consumption level of the application according to the second average power consumption information of the application, and display the second average power consumption information and/or the power consumption level. Therefore, the user can more intuitively understand the power consumption level of the application in the mobile terminal, and improve the user experience. In addition, in an emergency situation, for example, when the power is low, the application with high power consumption level can be turned off, and further Improve the user experience.
- the application, the corresponding second average power consumption information, and the power consumption level may be stored in the server, and the user inputs the application information to be installed, for example, the application name, according to the application input by the user.
- the program information acquires the second average power consumption information and the power consumption level of the application from the server and displays it on the display screen of the mobile terminal for the user to refer to whether to download and install. This improves the user experience.
- FIG. 10 is a structural block diagram of an apparatus for acquiring power consumption information of an application according to still another embodiment of the present invention.
- the device for acquiring power consumption information includes an application acquiring module 10, a first time and first power recording module 20, a second time and a second power recording module 30, and a first average power consumption information acquisition.
- the receiving module 100 is configured to receive a power consumption display instruction of the user.
- the client of the mobile terminal provides the user with a second average power consumption information query application, and the user can send a power consumption display instruction or the like by starting the application.
- the display module 110 is configured to display, when the power consumption display instruction is the first power consumption display instruction, the second average power consumption information of the system-level installed running application and/or the installed non-running application, and When the power consumption display instruction is the second power consumption display instruction, the second average power consumption information of the application running installed application and/or the installed non-running application is displayed, and the power consumption display instruction is When the three power consumption display instructions, the second average power consumption information of the installed system application and/or the installed non-run application is displayed at the system level and the application level.
- the device for acquiring power consumption information of the application receives the power consumption display instruction of the user, and displays the system level, application level or system level and application level application program on the display screen according to the power consumption display instruction.
- the average power consumption information can make the user more intuitively understand the power consumption of each application and further enhance the user experience.
- the present invention also proposes a mobile terminal.
- a mobile terminal includes: a casing, a screen, a processor and a circuit board; the screen is disposed on the casing, the circuit board is disposed inside the space enclosed by the casing, and the processor is disposed on the circuit board; the processor is configured to process data, specifically Perform the following steps:
- a corresponding running application is obtained according to a running process in the mobile terminal, wherein an application can be determined according to the process.
- the state of the mobile terminal may include a charging state, a plug-in state, and the like.
- the state of the application may include a foreground operation, a background operation, and the like.
- the preset measurement condition may be that the mobile terminal is not in a charging state and the application is running in the foreground.
- the processor is further configured to: when the application is running in the foreground, determine whether the mobile terminal is in a charging state, and is in a charging state. When waiting for the power-off signal, and when not in the charging state, or waiting for the power-off signal, it is determined that the preset measurement condition is satisfied. Thereby, the current time and the current power of the mobile terminal can be obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the accuracy is improved.
- the processor is further configured to: monitor the mobile terminal, and determine that the mobile terminal is not plugged in when the mobile terminal is plugged in or the application enters the background.
- Preset measurement conditions According to the above logic, in the specific programming, the following manner can be implemented, firstly, whether the mobile terminal is in the plugged state, and when not in the plugged state, further determining whether the application enters the background, entering the background, or inserting In the electrical state, it is determined that the preset measurement condition is not met, and it should be understood that it is also possible to first determine whether to enter the background, and then perform the plug-in state judgment. Thereby, the current time and the current power of the mobile terminal can be obtained according to whether the state of the mobile terminal and the application meet the preset measurement condition, and the accuracy is improved.
- S104' Acquire, according to the first time, the first power, the second time, and the second power, the first average power consumption information of the application.
- the unit time power consumption information of the application is obtained according to the first time, the first power amount, the second time, and the second power amount, for example, according to the formula (second power amount - first power amount) I (second time - The first time) calculates the unit time power consumption information, thereby obtaining the first average power consumption information of the application.
- the mobile terminal acquires the current time and current power of the mobile terminal according to whether the state of the mobile terminal and the application meets the preset measurement condition, and acquires the unit time consumption of the application according to the current time of the mobile terminal and the current power consumption.
- the electrical information provides a reference for the user to properly use the battery power of the mobile terminal, thereby improving the user experience.
- the processor is further configured to: send the first average power consumption information to the server, where the server sends the first average according to the multiple mobile terminals
- the power consumption information determines the second average power consumption information of the application for other mobile terminals to query.
- the server obtains the power consumption information of the application that is closest to the real value by using a method of averaging multiple times according to the first average power consumption information sent by the multiple mobile terminals and the second average power consumption information of the stored application. And updating the stored second average power consumption information of the application for other mobile terminals to query. Thereby, the accuracy is improved, and in addition, the application and the corresponding second average power consumption information can be stored in the server, reducing the local storage pressure and the secondary response. Speed.
- the usage time of the application may be obtained according to the current remaining power.
- the processor is further configured to: obtain the second average power consumption information of the application from the server, and obtain the mobile terminal.
- the current remaining power, and the usage time of the application under the current remaining power is obtained and displayed according to the current remaining power and the second average power consumption information of the application.
- the power consumption of the application may be classified, and the processor is further configured to: obtain the power consumption level of the application according to the second average power consumption information of the application, and display the first 2. Average power consumption information and/or power consumption level.
- the application, the corresponding second average power consumption information, and the power consumption level may be stored in the server, and the user inputs the application information to be installed, for example, the application name, according to the application input by the user.
- the program information acquires the second average power consumption information and the power consumption level of the application from the server and displays it on the display screen of the mobile terminal for the user to refer to whether to download and install. As a result, the user can more intuitively understand the power consumption of the application to be installed, and improve the user experience.
- the power consumption information of the application may be displayed on the display screen, and the processor is further specifically configured to: receive the power consumption display of the user The instruction, and when the power consumption display instruction is the first power consumption display instruction, displaying the system-level installed running application and/or the second average power consumption information of the installed non-running application, in the power consumption display
- the instruction is the second power consumption display instruction, displaying the second average power consumption information of the application running installed application and/or the installed non-running application, and the third power consumption in the power consumption display instruction
- the second average power consumption information of installed running applications and/or installed non-running applications at the system level and the application level is displayed.
- the present invention provides a storage medium for storing an application for executing an acquisition method of the application power consumption information according to any one of the embodiments of the present invention.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- sequence numbers of the steps are not used to limit the sequence of the steps.
- the steps of the steps are changed without any creative work. It is also within the scope of the invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例提供了一种应用程序耗电信息的获取方法、装置和移动终端。所述方法包括:获取移动终端中正在运行的应用程序;当根据移动终端和应用程序的状态确定满足预设测量条件时,记录移动终端的第一时间和第一电量;当根据移动终端和应用程序的状态确定不满足预设测量条件时,记录移动终端的第二时间和第二电量;以及根据第一时间、第一电量、第二时间和第二电量获取应用程序的第一平均耗电信息。本发明实施例的方法,根据移动终端和应用程序的状态是否满足预设测量条件获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当前电量获取应用程序的单位时间耗电信息,为用户合理的使用移动终端的电池电量提供参考,提升用户体验。
Description
应用程序耗电信息的获取方法、 装置和移动终端
技术领域
本发明涉及移动终端技术领域, 特别是指一种应用程序耗电信息的获取方法、装置和移 动终端。 背景技术
随着网络技术的宽带化发展, 移动通信产业将走向真正的移动信息时代, 同时, 随着集 成电路技术的飞速发展, 移动终端已具有很强的处理能力, 移动终端正在从简单的通话工具 变为一个综合信息处理平台。 现代的移动终端已拥有极为强大的处理能力、 内存、 固化存 储介质以及像电脑一样的操作系统, 是一个完整的超小型计算机系统, 可以完成复杂的处理 任务, 不仅可以通话、 拍照、 听音乐、玩游戏, 而且可实现包括定位、 信息处理、 指纹扫描、 身份证扫描、 条码扫描、 RFID (Radio Frequency Identification, 电子标签、 无线射频识别) 扫描、 IC 卡扫描以及酒精含量检测等丰富的功能, 成为移动执法、 移动办公和移动商务的 重要工具。
移动终端的飞速发展给人们带来极大方便的同时, 也出现了技术问题: 小而精的移动终 端的发展局限于电池的电池容量, 例如, 锂电池等。移动终端耗电的原因主要包括大屏幕高 亮显示、 操作系统运行以及应用程序 (Application, APP) 后台运行耗电等。 目前解决方法 如下: 针对大屏幕高亮显示高亮显示的问题, 用户可以通过操作调低大屏幕的亮度显示, 不 用移动终端时及时锁屏; 针对操作系统运行时的耗电问题, 用户可以减少对相关系统功能的 使用时间,如尽量少使用 3G ( 3rd-generation,第三代移动通信技术)、 Wi-Fi (wireless fidelity, 无线电高保真) 等等。
为了便于软件开发人员获取移动终端的系统参数值,移动终端的操作系统为软件开发人 员提供的应用程序编程接口 ( Application Programming Interface, API )。 目前存在的问题是, 多种移动终端的操作系统无法通过 API接口获取已经安装的应用程序的耗电情况,因此应用 程序的耗电问题用户无法准确获知, 用户难以清晰的获知哪些应用程序是 "耗电大户", 无 法合理的安排已安装应用程序的使用时间。 发明内容
本发明旨在至少解决上述技术问题之一。
为此, 本发明的第一个目的在于提出一种应用程序耗电信息的获取方法。 该方法为用户
合理的使用移动终端的电池电量提供参考, 提升了用户体验。
本发明的第二个目的在于提出一种应用程序耗电信息的获取装置。
本发明的第三个目的在于提出一种移动终端。
本发明的第四个目的在于提出一种存储介质。
为了实现上述目的, 本发明第一方面实施例的应用程序耗电信息的获取方法, 包括: 获 取移动终端中正在运行的应用程序;当根据所述移动终端和所述应用程序的状态确定满足预 设测量条件时, 记录所述移动终端的第一时间和第一电量; 当根据所述移动终端和所述应用 程序的状态确定不满足预设测量条件时, 记录所述移动终端的第二时间和第二电量; 以及根 据所述第一时间、所述第一电量、所述第二时间和所述第二电量获取所述应用程序的第一平 均耗电信息。
根据本发明实施例的应用程序耗电信息的获取方法,根据移动终端和应用程序的状态是 否满足预设测量条件获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当 前电量获取应用程序的单位时间耗电信息, 为用户合理的使用移动终端的电池电量提供参 考。
为了实现上述目的, 本发明第二方面实施例的应用程序耗电信息的获取装置, 包括: 应 用程序获取模块,用于获取移动终端中正在运行的应用程序;第一时间和第一电量记录模块, 用于当根据所述移动终端和所述应用程序的状态确定满足预设测量条件时,记录所述移动终 端的第一时间和第一电量; 第二时间和第二电量记录模块, 用于当根据所述移动终端和所述 应用程序的状态确定不满足预设测量条件时, 记录所述移动终端的第二时间和第二电量; 以 及第一平均耗电信息获取模块, 用于根据所述第一时间、 所述第一电量、所述第二时间和所 述第二电量获取所述应用程序的第一平均耗电信息。
根据本发明实施例的应用程序耗电信息的获取装置,根据移动终端和应用程序的状态是 否满足预设测量条件获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当 前电量获取应用程序的单位时间耗电信息, 为用户合理的使用移动终端的电池电量提供参 考, 提升了用户体验。
为了实现上述目的, 本发明第三方面实施例的移动终端, 包括: 外壳, 屏幕, 处理器和 电路板; 所述屏幕安置在所述外壳上, 所述电路板安置在所述外壳围成的空间内部, 所述处 理器设置在所述电路板上; 所述处理器用于处理数据, 具体用于: 获取移动终端中正在运行 的应用程序; 当根据所述移动终端和所述应用程序的状态确定满足预设测量条件时, 记录所 述移动终端的第一时间和第一电量;当根据所述移动终端和所述应用程序的状态确定不满足 预设测量条件时, 记录所述移动终端的第二时间和第二电量; 以及根据所述第一时间、 所述 第一电量、 所述第二时间和所述第二电量获取所述应用程序的第一平均耗电信息。
根据本发明实施例的移动终端,根据移动终端和应用程序的状态是否满足预设测量条件 获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当前电量获取应用程序 的单位时间耗电信息, 为用户合理的使用移动终端的电池电量提供参考, 提升了用户体验。
为了实现上述目的, 本发明第四方面实施例的存储介质, 用于存储应用程序, 所述应用 程序用于执行本发明第一方面实施例所述的应用程序耗电信息的获取方法。
本发明附加的方面和优点将在下面的描述中部分给出, 部分将从下面的描述中变得明 显, 或通过本发明的实践了解到。 附图说明
本发明上述的和 /或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和 容易理解, 其中,
图 1是根据本发明一个实施例的应用程序耗电信息的获取方法的流程图;
图 2是根据本发明另一个实施例的应用程序耗电信息的获取方法的流程图;
图 3是根据本发明又一个实施例的应用程序耗电信息的获取方法的流程图;
图 4 ( a) 是根据本发明再一个实施例的应用程序耗电信息的获取方法的流程图; 图 4 (b ) 是根据本发明实施例的第二平均耗电信息和耗电等级的一种示例示意图; 图 4 (c )是根据本发明实施例的提醒用户关闭耗电等级较高的应用程序的一种示例示意 图;
图 5 ( a) 是根据本发明又再一个实施例的应用程序耗电信息的获取方法的流程图; 图 5 (b)、 (c)、 ( d) 和 (e) 是根据本发明实施例的第二平均耗电信息的示例示意图; 图 6是根据本发明一个实施例的应用程序耗电信息的获取装置的结构框图;
图 7是根据本发明另一个实施例的应用程序耗电信息的获取装置的结构框图; 图 8是根据本发明又一个实施例的应用程序耗电信息的获取装置的结构框图; 图 9是根据本发明再一个实施例的应用程序耗电信息的获取装置的结构框图; 图 10是根据本发明又再一个实施例的应用程序耗电信息的获取装置的结构框图。 具体实施方式
下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至终相同或 类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的 实施例是示例性的, 仅用于解释本发明, 而不能理解为对本发明的限制。 相反, 本发明的实 施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、 修改和等同物。
在本发明的描述中, 需要理解的是, 术语 "第一"、 "第二"等仅用于描述目的, 而不能
理解为指示或暗示相对重要性。 在本发明的描述中, 需要说明的是, 除非另有明确的规定和 限定, 术语 "相连"、 "连接"应做广义理解, 例如, 可以是固定连接, 也可以是可拆卸连 接, 或一体地连接; 可以是机械连接, 也可以是电连接; 可以是直接相连, 也可以通过中间 媒介间接相连。对于本领域的普通技术人员而言, 可以具体情况理解上述术语在本发明中的 具体含义。 此外, 在本发明的描述中, 除非另有说明, "多个" 的含义是两个或两个以上。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或 更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分, 并且 本发明的优选实施方式的范围包括另外的实现, 其中可以不按所示出或讨论的顺序, 包括根 据所涉及的功能按基本同时的方式或按相反的顺序, 来执行功能, 这应被本发明的实施例所 属技术领域的技术人员所理解。
为了解决目前无法获取移动终端中已经安装的应用程序的耗电信息,本发明提出一种应 用程序耗电信息的获取方法、装置和移动终端。下面参考附图描述根据本发明实施例的应用 程序耗电信息的获取方法、 装置和移动终端。
图 1是根据本发明一个实施例的应用程序耗电信息的获取方法的流程图。 如图 1所示, 应用程序耗电信息的获取方法包括以下步骤。
5101 , 获取移动终端中正在运行的应用程序。
例如, 根据移动终端中正在运行的进程获取对应的正在运行的应用程序, 其中, 根据进 程可确定一个应用程序。
5102, 当根据移动终端和应用程序的状态确定满足预设测量条件时, 记录移动终端的第 一时间和第一电量。
其中,移动终端的状态可包括充电状态、插电状态等,应用程序的状态可包括前台运行、 后台运行等, 预设测量条件可为移动终端未处于充电状态且应用程序在前台运行。
在本发明的一个实施例中,根据移动终端和应用程序的状态确定满足预设测量条件具体 包括: 当应用程序在前台运行时, 判断移动终端是否处于充电状态; 如果处于充电状态, 则 等待拔电信号; 以及如果未处于充电状态, 或等待到拔电信号, 则确定满足预设测量条件。 由此,可根据移动终端和应用程序的状态是否满足预设测量条件获取移动终端的当前时间和 当前电量, 提高了准确性。
5103, 当根据移动终端和应用程序的状态确定不满足预设测量条件时, 记录移动终端的 第二时间和第二电量。
在本发明的一个实施例中,根据移动终端和应用程序的状态确定不满足预设测量条件具 体包括: 监听移动终端, 当移动终端处于插电状态或应用程序进入后台时, 确定不满足预设 测量条件。 根据上述逻辑, 在具体编程时, 可以采用以下方式实现, 首先监听移动终端是否
处于插电状态; 如果未处于插电状态, 则进一步判断应用程序是否进入后台; 以及如果进入 后台,或处于插电状态,则确定不满足预设测量条件,应当理解还可以先判断是否进入后台, 之后再进行插电状态判断。 由此, 可根据移动终端和应用程序的状态是否满足预设测量条件 获取移动终端的当前时间和当前电量, 提高了准确性。
具体地, 当应用程序进入后台运行, 或者移动终端处于插电状态时, 记录移动终端的第 二时间和第二电量。
S104, 根据第一时间、 第一电量、 第二时间和第二电量获取应用程序的第一平均耗电信 白
具体地, 根据第一时间、 第一电量、 第二时间和第二电量求平均值获得应用程序的单位 时间耗电信息, 例如, 根据公式 (第二电量 -第一电量) I (第二时间 -第一时间)计算单位时 间耗电信息, 从而获得应用程序的第一平均耗电信息。
根据本发明实施例的应用程序耗电信息的获取方法,根据移动终端和应用程序的状态是 否满足预设测量条件获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当 前电量获取应用程序的单位时间耗电信息, 为用户合理的使用移动终端的电池电量提供参 考, 提升了用户体验。
图 2是根据本发明另一个实施例的应用程序耗电信息的获取方法的流程图。通过多次求 平均的方法获取最接近真实值的应用程序耗电信息。 具体地, 如图 2所示, 应用程序耗电信 息的获取方法包括以下步骤。
5201 , 获取移动终端中正在运行的应用程序。
5202, 当根据移动终端和应用程序的状态确定满足预设测量条件时, 记录移动终端的第 一时间和第一电量。
5203, 当根据移动终端和应用程序的状态确定不满足预设测量条件时, 记录移动终端的 第二时间和第二电量。
5204, 根据第一时间、 第一电量、 第二时间和第二电量获取应用程序的第一平均耗电信 白
5205, 将第一平均耗电信息发送至服务器, 其中, 服务器根据多个移动终端发送的第一 平均耗电信息确定应用程序的第二平均耗电信息以供其他移动终端查询。
具体地,服务器根据多个移动终端发送的第一平均耗电信息以及已存储的应用程序的第 二平均耗电信息, 通过多次求平均的方法获取最接近真实值的该应用程序耗电信息, 并更新 已存储的该应用程序的第二平均耗电信息以供其他移动终端查询。
根据本发明实施例的应用程序耗电信息的获取方法, 将第一平均耗电信息发送至服务 器, 以使得服务器通过多次求平均的方法获取最接近真实值的应用程序的第二平均耗电信
息, 提高了精确率, 此外, 应用程序和对应的第二平均耗电信息可存储在服务器, 减小本地 的存储压力和二次响应速度。
图 3是根据本发明又一个实施例的应用程序耗电信息的获取方法的流程图。为了使得用 户更加了解移动终端目前的电量消耗情况,可以根据目前的剩余电量获取应用程序的使用时 间。 具体地, 如图 3所示, 应用程序耗电信息的获取方法包括以下步骤。
5301 , 获取移动终端中正在运行的应用程序。
5302, 当根据移动终端和应用程序的状态确定满足预设测量条件时, 记录移动终端的第 一时间和第一电量。
5303 , 当根据移动终端和应用程序的状态确定不满足预设测量条件时, 记录移动终端的 第二时间和第二电量。
5304, 根据第一时间、 第一电量、 第二时间和第二电量获取应用程序的第一平均耗电信 白
5305, 将第一平均耗电信息发送至服务器, 其中, 服务器根据多个移动终端发送的第一 平均耗电信息确定应用程序的第二平均耗电信息以供其他移动终端查询。
5306, 从服务器获取应用程序的第二平均耗电信息。
例如, 移动终端的客户端为用户提供第二平均耗电信息查询的应用程序, 用户通过该应 用程序可以访问服务器, 服务器中存储了每个应用程序的第二平均耗电信息, 由此可以获取 应用程序的第二平均耗电信息。
5307, 获取移动终端的当前剩余电量。
5308,根据当前剩余电量和应用程序的第二平均耗电信息获取在当前剩余电量下的应用 程序的使用时间并显示。
例如, 根据应用程序的耗电信息和当前剩余电量在理想情况下计算获取使用时间, 还可 对该使用时间进行校正以更适应实际的耗电环境,通过使用时间用户有选择地关闭部分应用 程序以节省电量。
根据本发明实施例的应用程序耗电信息的获取方法,根据当前剩余电量和应用程序的第 二平均耗电信息获取在当前剩余电量下的应用程序的使用时间并显示,可以使得用户更加直 观地了解到移动终端目前的电量情况, 提升用户体验。
图 4 ( a)是根据本发明再一个实施例的应用程序耗电信息的获取方法的流程图。 为了使 得用户更加了解应用程序的电量消耗情况, 可以对应用程序的耗电进行分级。 具体地, 如图 4 ( a) 所示, 应用程序耗电信息的获取方法包括以下步骤。
5401 , 获取移动终端中正在运行的应用程序。
5402, 当根据移动终端和应用程序的状态确定满足预设测量条件时, 记录移动终端的第
一时间和第一电量。
5403 , 当根据移动终端和应用程序的状态确定不满足预设测量条件时, 记录移动终端的 第二时间和第二电量。
5404, 根据第一时间、 第一电量、 第二时间和第二电量获取应用程序的第一平均耗电信 白
5405, 将第一平均耗电信息发送至服务器, 其中, 服务器根据多个移动终端发送的第一 平均耗电信息确定应用程序的第二平均耗电信息以供其他移动终端查询。
5406, 从服务器获取应用程序的第二平均耗电信息。
5407, 根据应用程序的第二平均耗电信息获取应用程序的耗电等级, 并显示第二平均耗 电信息和 /或耗电等级。
图 4 (b )是根据本发明实施例的第二平均耗电信息和耗电等级的一种示例示意图, 如图 4 (b ) 所示显示应用程序的第二平均耗电信息和耗电等级。
其中, 处于较高级的应用程序, 提示用户在移动终端的电量较低时, 不运行或者关闭此 应用程序。 如图 4 (c ) 所示, 提醒用户关闭耗电等级较高的应用程序以节省移动终端的电 根据本发明实施例的应用程序耗电信息的获取方法,根据应用程序的第二平均耗电信息 获取应用程序的耗电等级, 并显示第二平均耗电信息和 /或耗电等级, 可以使得用户更加直 观地了解到移动终端中的应用程序的耗电等级, 提升用户体验, 此外, 在紧急情况下, 例如 电量低的情况下可以关闭耗电等级高的应用程序, 进一步提升用户体验。
在本发明的一个实施例中, 应用程序、对应的第二平均耗电信息和耗电等级可存储在服 务器中, 用户输入欲安装的应用程序信息, 例如, 应用程序名称, 根据用户输入的应用程序 信息从服务器获取该应用程序的第二平均耗电信息和耗电等级并显示在移动终端的显示屏 幕上, 以供用户参考是否下载安装。 由此, 提升了用户体验。
图 5 ( a)是根据本发明又再一个实施例的应用程序耗电信息的获取方法的流程图。 为了 使得用户更加直观地了解到系统级和 /或应用级的应用程序的耗电情况, 可以在显示屏幕上 显示出应用程序的耗电信息。 具体地, 如图 5 ( a) 所示, 应用程序耗电信息的获取方法包 括以下步骤。
5501 , 获取移动终端中正在运行的应用程序。
5502, 当根据移动终端和应用程序的状态确定满足预设测量条件时, 记录移动终端的第 一时间和第一电量。
5503 , 当根据移动终端和应用程序的状态确定不满足预设测量条件时, 记录移动终端的 第二时间和第二电量。
5504, 根据第一时间、 第一电量、 第二时间和第二电量获取应用程序的第一平均耗电信 白
5505, 将第一平均耗电信息发送至服务器, 其中, 服务器根据多个移动终端发送的第一 平均耗电信息确定应用程序的第二平均耗电信息以供其他移动终端查询。
5506, 从服务器获取应用程序的第二平均耗电信息。
5507, 接收用户的耗电显示指令。
例如, 移动终端的客户端为用户提供第二平均耗电信息查询的应用程序, 用户通过启动 该应用程序可发送耗电显示指令等。
5508, 如果耗电显示指令为第一耗电显示指令, 则显示系统级的已安装正在运行的应用 程序和 /或已安装未运行的应用程序的第二平均耗电信息。
例如, 用户通过发送第一耗电显示指令获取系统级的应用程序的第二平均耗电信息, 如 图 5 (b) 所示, 显示移动终端中系统级的已安装正在运行的应用程序和 /或已安装未运行的 应用程序的第二平均耗电信息, 如显示了定位、 网络、 电话、 短信、 设置、 邮件 (Mail) 等 的第二平均耗电信息。
5509, 如果耗电显示指令为第二耗电显示指令, 则显示应用级的已安装正在运行的应用 程序和 /或已安装未运行的应用程序的第二平均耗电信息。
例如, 用户通过发送第二耗电显示指令获取应用级的应用程序的第二平均耗电信息, 如 图 5 (c) 所示, 显示移动终端中应用级的已安装正在使用的应用程序的第二平均耗电信息, 如显示了游戏 Fruit Ninja、 QQ2012等的第二平均耗电信息, 图 5 (d) 所示, 显示移动终端 中应用级的已安装暂未使用的应用程序的第二平均耗电信息。
5510, 如果耗电显示指令为第三耗电显示指令, 则显示系统级和应用级的已安装正在运 行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息。
例如,用户通过发送第三耗电显示指令获取系统级和应用级的应用程序的第二平均耗电 信息, 如图 5 (e) 所示, 显示系统级和应用级的已安装正在运行的应用程序和 /或已安装未 运行的应用程序的第二平均耗电信息。
根据本发明实施例的应用程序耗电信息的获取方法, 接收用户的耗电显示指令, 根据耗 电显示指令在显示屏幕上显示出系统级、应用级或系统级和应用级的应用程序的第二平均耗 电信息,可以使得用户更加直观地了解到每个应用程序的耗电情况,进一步提升了用户体验。
为了实现上述实施例, 本发明还提出一种应用程序耗电信息的获取装置。
图 6是根据本发明一个实施例的应用程序耗电信息的获取装置的结构框图。如图 6所示, 应用程序耗电信息的获取装置包括应用程序获取模块 10、第一时间和第一电量记录模块 20、 第二时间和第二电量记录模块 30和第一平均耗电信息获取模块 40。
具体地, 应用程序获取模块 10用于获取移动终端中正在运行的应用程序。 例如, 根据 移动终端中正在运行的进程获取对应的正在运行的应用程序, 其中, 根据进程可确定一个应 用程序。
第一时间和第一电量记录模块 20用于当根据移动终端和应用程序的状态确定满足预设 测量条件时,记录移动终端的第一时间和第一电量。其中,移动终端的状态可包括充电状态、 插电状态等, 应用程序的状态可包括前台运行、 后台运行等, 预设测量条件可为移动终端未 处于充电状态且应用程序在前台运行。
为了提高准确性, 需根据移动终端和应用程序的状态确定是否满足预设测量条件, 第一 时间和第一电量记录模块 20还用于: 当应用程序在前台运行时, 判断移动终端是否处于充 电状态, 并在处于充电状态时, 等待拔电信号, 以及在未处于充电状态, 或者等待到拔电信 号时, 确定满足预设测量条件。 由此, 可根据移动终端和应用程序的状态是否满足预设测量 条件获取移动终端的当前时间和当前电量, 提高了准确性。
第二时间和第二电量记录模块 30用于当根据移动终端和应用程序的状态确定不满足预 设测量条件时, 记录移动终端的第二时间和第二电量。
为了提高准确性, 需根据移动终端和应用程序的状态确定是否满足预设测量条件, 第二 时间和第二电量记录模块 30还用于: 监听移动终端, 当移动终端处于插电状态或应用程序 进入后台时, 确定不满足预设测量条件。 根据上述逻辑, 在具体编程时, 可以采用以下方式 实现, 首先监听移动终端是否处于插电状态, 并在未处于插电状态时, 进一步判断应用程序 是否进入后台, 以及在进入后台, 或处于插电状态时, 确定不满足预设测量条件, 应当理解 还可以先判断是否进入后台, 之后再进行插电状态判断。 由此, 可根据移动终端和应用程序 的状态是否满足预设测量条件获取移动终端的当前时间和当前电量, 提高了准确性。
更具体地, 当应用程序进入后台运行, 或者移动终端处于插电状态时, 记录移动终端第 二时间和第二电量。 由此, 使得获取结果更加准确。
第一平均耗电信息获取模块 40用于根据第一时间、 第一电量、 第二时间和第二电量获 取应用程序的第一平均耗电信息。更具体地, 第一平均耗电信息获取模块 40根据第一时间、 第一电量、第二时间和第二电量求平均值获得应用程序的单位时间耗电信息, 例如, 根据公 式 (第二电量 -第一电量) I (第二时间 -第一时间)计算单位时间耗电信息, 从而获得应用程 序的第一平均耗电信息。
根据本发明实施例的应用程序耗电信息的获取装置,根据移动终端和应用程序的状态是 否满足预设测量条件获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当 前电量获取应用程序的单位时间耗电信息, 为用户合理的使用移动终端的电池电量提供参 考, 提升了用户体验。
图 7是根据本发明另一个实施例的应用程序耗电信息的获取装置的结构框图。如图 7所 示, 应用程序耗电信息的获取装置包括应用程序获取模块 10、 第一时间和第一电量记录模 块 20、 第二时间和第二电量记录模块 30、 第一平均耗电信息获取模块 40和发送模块 50。
具体地, 发送模块 50用于将第一平均耗电信息发送至服务器, 其中, 服务器根据多个 移动终端发送的第一平均耗电信息确定应用程序的第二平均耗电信息以供其他移动终端查 询。更具体地, 服务器根据多个移动终端发送的第一平均耗电信息以及已存储的应用程序的 第二平均耗电信息, 通过多次求平均的方法获取最接近真实值的该应用程序耗电信息, 并更 新已存储的该应用程序的第二平均耗电信息以供其他移动终端查询。
根据本发明实施例的应用程序耗电信息的获取装置,通过发送模块将第一平均耗电信息 发送至服务器,以使得服务器通过多次求平均的方法获取最接近真实值的应用程序的第二平 均耗电信息, 提高了精确率, 此外, 应用程序和对应第二平均耗电信息可存储在服务器, 减 小本地的存储压力和二次响应速度。
图 8是根据本发明又一个实施例的应用程序耗电信息的获取装置的结构框图。如图 8所 示, 应用程序耗电信息的获取装置包括应用程序获取模块 10、 第一时间和第一电量记录模 块 20、 第二时间和第二电量记录模块 30、 第一平均耗电信息获取模块 40、 发送模块 50、 第 二平均耗电信息获取模块 60、 剩余电量获取模块 70和使用时间获取模块 80。
具体地, 第二平均耗电信息获取模块 60用于从服务器获取应用程序的第二平均耗电信 息。例如, 移动终端的客户端为用户提供第二平均耗电信息查询的应用程序, 用户通过该应 用程序可以访问服务器, 服务器中存储了每个应用程序的第二平均耗电信息, 由此可以获取 应用程序的第二平均耗电信息。
剩余电量获取模块 70用于获取移动终端的当前剩余电量。
使用时间获取模块 80用于根据当前剩余电量和应用程序的第二平均耗电信息获取在当 前剩余电量下的应用程序的使用时间并显示。例如, 根据应用程序的耗电信息和当前剩余电 量在理想情况下计算获取使用时间, 还可对该使用时间进行校正以更适应实际的耗电环境, 通过使用时间用户有选择地关闭部分应用程序以节省电量。
根据本发明实施例的应用程序耗电信息的获取装置,根据当前剩余电量和应用程序的第 二平均耗电信息获取在当前剩余电量下的应用程序的使用时间并显示,可以使得用户更加直 观地了解到移动终端目前的电量情况, 提升用户体验。
图 9是根据本发明再一个实施例的应用程序耗电信息的获取装置的结构框图。如图 9所 示, 应用程序耗电信息的获取装置包括应用程序获取模块 10、 第一时间和第一电量记录模 块 20、 第二时间和第二电量记录模块 30、 第一平均耗电信息获取模块 40、 发送模块 50、 第 二平均耗电信息获取模块 60、剩余电量获取模块 70、使用时间获取模块 80和耗电等级获取
模块 90。
具体地, 耗电等级获取模块 90用于根据应用程序的第二平均耗电信息获取应用程序的 耗电等级, 并显示第二平均耗电信息和 /或耗电等级。 由此, 可以使得用户更加直观地了解 到移动终端中的应用程序的耗电等级, 提升用户体验, 此外, 在紧急情况下, 例如电量低的 情况下可以关闭耗电等级高的应用程序, 进一步提升用户体验。
在本发明的一个实施例中, 应用程序、对应的第二平均耗电信息和耗电等级可存储在服 务器中, 用户输入欲安装的应用程序信息, 例如, 应用程序名称, 根据用户输入的应用程序 信息从服务器获取该应用程序的第二平均耗电信息和耗电等级并显示在移动终端的显示屏 幕上, 以供用户参考是否下载安装。 由此, 提升了用户体验。
图 10是根据本发明又再一个实施例的应用程序耗电信息的获取装置的结构框图。 如图 10所示, 应用程序耗电信息的获取装置包括应用程序获取模块 10、 第一时间和第一电量记 录模块 20、第二时间和第二电量记录模块 30、第一平均耗电信息获取模块 40、发送模块 50、 第二平均耗电信息获取模块 60、 剩余电量获取模块 70、 使用时间获取模块 80、 耗电等级获 取模块 90、 接收模块 100和显示模块 110。
具体地, 接收模块 100用于接收用户的耗电显示指令。 例如, 移动终端的客户端为用户 提供第二平均耗电信息查询的应用程序, 用户通过启动该应用程序可发送耗电显示指令等。
显示模块 110用于在耗电显示指令为第一耗电显示指令时, 显示系统级的已安装正在运 行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息, 并在耗电显示指令为第 二耗电显示指令时, 显示应用级的已安装正在运行的应用程序和 /或已安装未运行的应用程 序的第二平均耗电信息, 以及在耗电显示指令为第三耗电显示指令时, 显示系统级和应用级 的已安装正在运行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息。
根据本发明实施例的应用程序耗电信息的获取装置, 接收用户的耗电显示指令, 根据耗 电显示指令在显示屏幕上显示出系统级、应用级或系统级和应用级的应用程序的第二平均耗 电信息,可以使得用户更加直观地了解到每个应用程序的耗电情况,进一步提升了用户体验。
为了实现上述实施例, 本发明还提出一种移动终端。
一种移动终端, 包括: 外壳, 屏幕, 处理器和电路板; 屏幕安置在外壳上, 电路板安置 在外壳围成的空间内部, 处理器设置在电路板上; 处理器用于处理数据, 具体用于执行以下 步骤:
S101 ' , 获取移动终端中正在运行的应用程序。
例如, 根据移动终端中正在运行的进程获取对应的正在运行的应用程序, 其中, 根据进 程可确定一个应用程序。
S102' , 当根据移动终端和应用程序的状态确定满足预设测量条件时, 记录移动终端
的第一时间和第一电量。
其中,移动终端的状态可包括充电状态、插电状态等,应用程序的状态可包括前台运行、 后台运行等, 预设测量条件可为移动终端未处于充电状态且应用程序在前台运行。
为了提高准确性, 需根据移动终端和应用程序的状态确定是否满足预设测量条件, 处理 器还具体用于: 当应用程序在前台运行时, 判断移动终端是否处于充电状态, 并在处于充电 状态时, 等待拔电信号, 以及在未处于充电状态, 或等待到拔电信号时, 确定满足预设测量 条件。 由此, 可根据移动终端和应用程序的状态是否满足预设测量条件获取移动终端的当前 时间和当前电量, 提高了准确性。
S103 ' , 当根据移动终端和应用程序的状态确定不满足预设测量条件时, 记录移动终 端的第二时间和第二电量。
为了提高准确性, 需根据移动终端和应用程序的状态确定是否满足预设测量条件, 处理 器还具体用于: 监听移动终端, 当移动终端处于插电状态或应用程序进入后台时, 确定不满 足预设测量条件。 根据上述逻辑, 在具体编程时, 可以采用以下方式实现, 首先监听移动终 端是否处于插电状态, 并在未处于插电状态时, 进一步判断应用程序是否进入后台, 以及在 进入后台, 或处于插电状态时, 确定不满足预设测量条件, 应当理解还可以先判断是否进入 后台, 之后再进行插电状态判断。 由此, 可根据移动终端和应用程序的状态是否满足预设测 量条件获取移动终端的当前时间和当前电量, 提高了准确性。
S104' , 根据第一时间、 第一电量、 第二时间和第二电量获取应用程序的第一平均耗 电信息。
具体地, 根据第一时间、 第一电量、 第二时间和第二电量求平均值获得应用程序的单位 时间耗电信息, 例如, 根据公式 (第二电量 -第一电量) I (第二时间 -第一时间)计算单位时 间耗电信息, 从而获得应用程序的第一平均耗电信息。
根据本发明实施例的移动终端,根据移动终端和应用程序的状态是否满足预设测量条件 获取移动终端的当前时间和当前电量,并根据移动终端的当前时间和当前电量获取应用程序 的单位时间耗电信息, 为用户合理的使用移动终端的电池电量提供参考, 提升了用户体验。
通过多次求平均的方法获取最接近真实值的应用程序耗电信息, 处理器还具体用于: 将 第一平均耗电信息发送至服务器, 其中, 服务器根据多个移动终端发送的第一平均耗电信息 确定应用程序的第二平均耗电信息以供其他移动终端查询。
具体地,服务器根据多个移动终端发送的第一平均耗电信息以及已存储的应用程序的第 二平均耗电信息, 通过多次求平均的方法获取最接近真实值的该应用程序耗电信息, 并更新 已存储的该应用程序的第二平均耗电信息以供其他移动终端查询。 由此, 提高了精确率, 此 外, 应用程序和对应的第二平均耗电信息可存储在服务器, 减小本地的存储压力和二次响应
速度。
为了使得用户更加了解移动终端目前的电量消耗情况,可以根据目前的剩余电量获取应 用程序的使用时间, 处理器还具体用于: 从服务器获取应用程序的第二平均耗电信息, 并获 取移动终端的当前剩余电量, 以及根据当前剩余电量和应用程序的第二平均耗电信息获取在 当前剩余电量下的应用程序的使用时间并显示。
为了使得用户更加了解应用程序的电量消耗情况, 可以对应用程序的耗电进行分级, 处 理器还具体用于: 根据应用程序的第二平均耗电信息获取应用程序的耗电等级, 并显示第二 平均耗电信息和 /或耗电等级。
在本发明的一个实施例中, 应用程序、对应的第二平均耗电信息和耗电等级可存储在服 务器中, 用户输入欲安装的应用程序信息, 例如, 应用程序名称, 根据用户输入的应用程序 信息从服务器获取该应用程序的第二平均耗电信息和耗电等级并显示在移动终端的显示屏 幕上, 以供用户参考是否下载安装。 由此, 可以使得用户更加直观地了解到欲安装的应用程 序的耗电情况, 提升了用户体验。
为了使得用户更加直观地了解到系统级和 /或应用级的应用程序的耗电情况, 可以在显 示屏幕上显示出应用程序的耗电信息, 处理器还具体用于: 接收用户的耗电显示指令, 并在 耗电显示指令为第一耗电显示指令时, 显示系统级的已安装正在运行的应用程序和 /或已安 装未运行的应用程序的第二平均耗电信息, 在耗电显示指令为第二耗电显示指令时, 显示应 用级的已安装正在运行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息, 以 及在耗电显示指令为第三耗电显示指令时,显示系统级和应用级的已安装正在运行的应用程 序和 /或已安装未运行的应用程序的第二平均耗电信息。
为了实现上述实施例, 本发明提出一种存储介质, 用于存储应用程序, 应用程序用于执 行本发明任一项实施例所述的应用程序耗电信息的获取方法。
应当理解, 本发明的各部分可以用硬件、 软件、 固件或它们的组合来实现。 在上述实施 方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件 来实现。 例如, 如果用硬件来实现, 和在另一实施方式中一样, 可用本领域公知的下列技术 中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻 辑电路, 具有合适的组合逻辑门电路的专用集成电路, 可编程门阵列 (PGA), 现场可编程 门阵列 (FPGA) 等。
在本说明书的描述中,参考术语"一个实施例"、 "一些实施例"、 "示例"、 "具体示例"、 或 "一些示例"等的描述意指结合该实施例或示例描述的具体特征、 结构、 材料或者特点包 含于本发明的至少一个实施例或示例中。在本说明书中, 对上述术语的示意性表述不一定指 的是相同的实施例或示例。 而且, 描述的具体特征、 结构、 材料或者特点可以在任何的一个
或多个实施例或示例中以合适的方式结合。
在本发明各方法实施例中, 所述各步骤的序号并不能用于限定各步骤的先后顺序, 对于 本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 对各步骤的先后变化也在本发明 的保护范围之内。
尽管已经示出和描述了本发明的实施例, 本领域的普通技术人员可以理解: 在不脱离本 发明的原理和宗旨的情况下可以对这些实施例进行多种变化、 修改、 替换和变型, 本发明的 范围由权利要求及其等同物限定。
Claims
1、 一种应用程序耗电信息的获取方法, 其特征在于, 包括:
获取移动终端中正在运行的应用程序;
当根据所述移动终端和所述应用程序的状态确定满足预设测量条件时, 记录所述移 动终端的第一时间和第一电量;
当根据所述移动终端和所述应用程序的状态确定不满足预设测量条件时, 记录所述 移动终端的第二时间和第二电量; 以及
根据所述第一时间、 所述第一电量、 所述第二时间和所述第二电量获取所述应用程 序的第一平均耗电信息。
2、 如权利要求 1 所述的方法, 其特征在于, 所述预设测量条件为所述移动终端未 处于充电状态且所述应用程序在前台运行。
3、 如权利要求 2所述的方法, 其特征在于, 所述根据所述移动终端和所述应用程 序的状态确定满足预设测量条件具体包括:
当所述应用程序在前台运行时, 判断所述移动终端是否处于所述充电状态; 如果处于所述充电状态, 则等待拔电信号; 以及
如果未处于所述充电状态,或等待到所述拔电信号,则确定满足所述预设测量条件。
4、 如权利要求 2所述的方法, 其特征在于, 所述根据所述移动终端和所述应用程 序的状态确定不满足预设测量条件具体包括:
监听所述移动终端, 当所述移动终端处于插电状态或所述应用程序进入后台时, 确 定不满足所述预设测量条件。
5、 如权利要求 1-4任一项所述的方法, 其特征在于, 还包括:
将所述第一平均耗电信息发送至服务器, 其中, 所述服务器根据多个所述移动终端 发送的所述第一平均耗电信息确定所述应用程序的第二平均耗电信息以供其他移动终 端查询。
6、 如权利要求 5所述的方法, 其特征在于, 还包括:
从所述服务器获取所述应用程序的第二平均耗电信息;
获取所述移动终端的当前剩余电量; 以及
根据所述当前剩余电量和所述应用程序的第二平均耗电信息获取在所述当前剩余 电量下的所述应用程序的使用时间并显示。
7、 如权利要求 5所述的方法, 其特征在于, 还包括:
从所述服务器获取所述应用程序的第二平均耗电信息; 以及
根据所述应用程序的第二平均耗电信息获取所述应用程序的耗电等级, 并显示所述 第二平均耗电信息和 /或所述耗电等级。
8、 如权利要求 5所述的方法, 其特征在于, 还包括:
从所述服务器获取所述应用程序的第二平均耗电信息;
接收用户的耗电显示指令;
如果所述耗电显示指令为第一耗电显示指令, 则显示系统级的已安装正在运行的应 用程序和 /或已安装未运行的应用程序的第二平均耗电信息;
如果所述耗电显示指令为第二耗电显示指令, 则显示应用级的已安装正在运行的应 用程序和 /或已安装未运行的应用程序的第二平均耗电信息; 以及
如果所述耗电显示指令为第三耗电显示指令, 则显示系统级和应用级的已安装正在 运行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息。
9、 一种应用程序耗电信息的获取装置, 其特征在于, 包括:
应用程序获取模块, 用于获取移动终端中正在运行的应用程序;
第一时间和第一电量记录模块, 用于当根据所述移动终端和所述应用程序的状态确 定满足预设测量条件时, 记录所述移动终端的第一时间和第一电量;
第二时间和第二电量记录模块, 用于当根据所述移动终端和所述应用程序的状态确 定不满足预设测量条件时, 记录所述移动终端的第二时间和第二电量; 以及
第一平均耗电信息获取模块, 用于根据所述第一时间、 所述第一电量、 所述第二时 间和所述第二电量获取所述应用程序的第一平均耗电信息。
10、 如权利要求 9所述的装置, 其特征在于, 所述预设测量条件为所述移动终端未 处于充电状态且所述应用程序在前台运行。
11、 如权利要求 10所述的装置, 其特征在于, 所述第一时间和第一电量记录模块 还用于: 当所述应用程序在前台运行时, 判断所述移动终端是否处于所述充电状态, 并 在处于所述充电状态时, 等待拔电信号, 以及在未处于所述充电状态, 或者等待到所述 拔电信号时, 确定满足所述预设测量条件。
12、 如权利要求 10所述的装置, 其特征在于, 所述第二时间和第二电量记录模块 还用于:监听所述移动终端,当所述移动终端处于插电状态或所述应用程序进入后台时, 确定不满足所述预设测量条件。
13、 如权利要求 9-12任一项所述的装置, 其特征在于, 还包括:
发送模块, 用于将所述第一平均耗电信息发送至服务器, 其中, 所述服务器根据多 个所述移动终端发送的所述第一平均耗电信息确定所述应用程序的第二平均耗电信息 以供其他移动终端查询。
14、 如权利要求 13所述的装置, 其特征在于, 还包括:
第二平均耗电信息获取模块, 用于从所述服务器获取所述应用程序的第二平均耗电 自 .
I ; 、;
剩余电量获取模块, 用于获取所述移动终端的当前剩余电量; 以及
使用时间获取模块, 用于根据所述当前剩余电量和所述应用程序的第二平均耗电信 息获取在所述当前剩余电量下的所述应用程序的使用时间并显示。
15、 如权利要求 13所述的装置, 其特征在于, 还包括:
耗电等级获取模块, 用于根据所述应用程序的第二平均耗电信息获取所述应用程序 的耗电等级, 并显示所述第二平均耗电信息和 /或所述耗电等级。
16、 如权利要求 13所述的装置, 其特征在于, 还包括:
接收模块, 用于接收用户的耗电显示指令;
显示模块, 用于在所述耗电显示指令为第一耗电显示指令时, 显示系统级的已安装 正在运行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息,并在所述耗电 显示指令为第二耗电显示指令时,显示应用级的已安装正在运行的应用程序和 /或已安装 未运行的应用程序的第二平均耗电信息, 以及在所述耗电显示指令为第三耗电显示指令 时,显示系统级和应用级的已安装正在运行的应用程序和 /或已安装未运行的应用程序的 第二平均耗电信息。
17、 一种移动终端, 其特征在于, 包括: 外壳, 屏幕, 处理器和电路板; 所述屏幕安置在所述外壳上, 所述电路板安置在所述外壳围成的空间内部, 所述处 理器设置在所述电路板上;
所述处理器用于处理数据, 具体用于:
获取移动终端中正在运行的应用程序;
当根据所述移动终端和所述应用程序的状态确定满足预设测量条件时, 记录所述移 动终端的第一时间和第一电量;
当根据所述移动终端和所述应用程序的状态确定不满足预设测量条件时, 记录所述 移动终端的第二时间和第二电量; 以及
根据所述第一时间、 所述第一电量、 所述第二时间和所述第二电量获取所述应用程 序的第一平均耗电信息。
18、 如权利要求 17所述的移动终端, 其特征在于, 所述预设测量条件为所述移动 终端未处于充电状态且所述应用程序在前台运行。
19、 如权利要求 18所述的移动终端, 其特征在于, 所述处理器还具体用于: 当所 述应用程序在前台运行时, 判断所述移动终端是否处于所述充电状态, 并在处于所述充
电状态时, 等待拔电信号, 以及在未处于所述充电状态, 或等待到所述拔电信号时, 确 定满足所述预设测量条件。
20、 如权利要求 18所述的移动终端, 其特征在于, 所述处理器还具体用于: 监听 所述移动终端, 当所述移动终端处于插电状态或所述应用程序进入后台时, 确定不满足 所述预设测量条件。
21、 如权利要求 17-20任一项所述的移动终端, 其特征在于, 所述处理器还具体用 于: 将所述第一平均耗电信息发送至服务器, 其中, 所述服务器根据多个所述移动终端 发送的所述第一平均耗电信息确定所述应用程序的第二平均耗电信息以供其他移动终 端查询。
22、 如权利要求 21 所述的移动终端, 其特征在于, 所述处理器还具体用于: 从所 述服务器获取所述应用程序的第二平均耗电信息, 并获取所述移动终端的当前剩余电 量, 以及根据所述当前剩余电量和所述应用程序的第二平均耗电信息获取在所述当前剩 余电量下的所述应用程序的使用时间并显示。
23、 如权利要求 21 所述的移动终端, 其特征在于, 所述处理器还具体用于: 根据 所述应用程序的第二平均耗电信息获取所述应用程序的耗电等级, 并显示所述第二平均 耗电信息和 /或所述耗电等级。
24、 如权利要求 21 所述的移动终端, 其特征在于, 所述处理器还具体用于: 接收 用户的耗电显示指令, 并在所述耗电显示指令为第一耗电显示指令时, 显示系统级的已 安装正在运行的应用程序和 /或已安装未运行的应用程序的第二平均耗电信息,在所述耗 电显示指令为第二耗电显示指令时,显示应用级的已安装正在运行的应用程序和 /或已安 装未运行的应用程序的第二平均耗电信息, 以及在所述耗电显示指令为第三耗电显示指 令时,显示系统级和应用级的已安装正在运行的应用程序和 /或已安装未运行的应用程序 的第二平均耗电信息。
25、 一种存储介质, 其特征在于, 用于存储应用程序, 所述应用程序用于执行权利 要求 1至 8中任一项所述的应用程序耗电信息的获取方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310311853.2A CN104346262B (zh) | 2013-07-23 | 2013-07-23 | 应用程序耗电信息的获取方法、装置和移动终端 |
CN201310311853.2 | 2013-07-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015010624A1 true WO2015010624A1 (zh) | 2015-01-29 |
Family
ID=52392742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/082839 WO2015010624A1 (zh) | 2013-07-23 | 2014-07-23 | 应用程序耗电信息的获取方法、装置和移动终端 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104346262B (zh) |
WO (1) | WO2015010624A1 (zh) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105467329B (zh) * | 2016-01-25 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | 一种终端续航测试系统和方法 |
JP6440643B2 (ja) * | 2016-01-26 | 2018-12-19 | 株式会社日立製作所 | ソフトウェア更新システム、サーバ |
GB201812240D0 (en) | 2018-07-27 | 2018-09-12 | Ibm | Device, system and method for detection of compromise through automated power analysis |
US11277120B2 (en) | 2019-03-12 | 2022-03-15 | International Business Machines Corporation | Dynamic signal processing |
CN110134219B (zh) * | 2019-05-13 | 2024-03-19 | 深圳传音通讯有限公司 | 应用程序后台耗电处理方法及装置 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102369647A (zh) * | 2011-09-14 | 2012-03-07 | 华为技术有限公司 | 移动终端电源管理方法和装置 |
CN102918473A (zh) * | 2010-06-07 | 2013-02-06 | 松下电器产业株式会社 | 便携式信息处理终端 |
CN103177086A (zh) * | 2013-03-08 | 2013-06-26 | 百度在线网络技术(北京)有限公司 | 一种对应用搜索结果进行排序的方法及装置 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508761B (zh) * | 2011-11-17 | 2015-11-25 | 宇龙计算机通信科技(深圳)有限公司 | 终端电量的管理方法和终端 |
CN102591766B (zh) * | 2011-12-31 | 2015-12-09 | 惠州Tcl移动通信有限公司 | 移动设备及其程序耗电量提示处理方法、系统 |
-
2013
- 2013-07-23 CN CN201310311853.2A patent/CN104346262B/zh active Active
-
2014
- 2014-07-23 WO PCT/CN2014/082839 patent/WO2015010624A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102918473A (zh) * | 2010-06-07 | 2013-02-06 | 松下电器产业株式会社 | 便携式信息处理终端 |
CN102369647A (zh) * | 2011-09-14 | 2012-03-07 | 华为技术有限公司 | 移动终端电源管理方法和装置 |
CN103177086A (zh) * | 2013-03-08 | 2013-06-26 | 百度在线网络技术(北京)有限公司 | 一种对应用搜索结果进行排序的方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN104346262B (zh) | 2018-04-27 |
CN104346262A (zh) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959000B (zh) | 一种服务器压力测试方法、系统及终端 | |
WO2015010621A1 (zh) | 应用程序耗电信息的获取方法、装置和移动终端 | |
US10908920B2 (en) | Method for preloading application, computer readable storage medium, and terminal device | |
WO2015010624A1 (zh) | 应用程序耗电信息的获取方法、装置和移动终端 | |
JP6487044B2 (ja) | ユーザ機器のための電力管理方法および電力管理装置 | |
CN111239617B (zh) | 充放电测试的控制方法、装置、存储介质及系统 | |
CN103455330A (zh) | 应用程序管理方法、终端、设备及系统 | |
WO2018219119A1 (zh) | 应用功能的控制方法及相关产品 | |
CN106294168B (zh) | 一种进行应用程序测试的方法和系统 | |
CN110191215B (zh) | 终端及处理方法 | |
CN106294108B (zh) | 应用程序测试方法及装置 | |
US20190257887A1 (en) | Method and device for ascertaining required charging time | |
WO2015043403A1 (en) | Method, apparatus, and terminal for obtaining video data | |
CN108810057B (zh) | 用户行为数据的采集方法、装置及存储介质 | |
WO2015081880A1 (zh) | 集群业务属性处理的方法、装置和系统 | |
CN106776301B (zh) | 子元素测试方法及装置 | |
CN107122036B (zh) | 中央处理器频率调节方法及装置 | |
Burgstahler et al. | Switching push and pull: An energy efficient notification approach | |
CN106302101B (zh) | 消息提醒方法、终端及服务器 | |
CN107832131B (zh) | 应用程序关闭方法、装置、存储介质和电子设备 | |
CN106330875B (zh) | 消息显示方法及装置 | |
CN108269223B (zh) | 一种网页图形绘制方法及终端 | |
CN106341436B (zh) | 加速效果的检测方法及装置 | |
WO2018219118A1 (zh) | 界面显示方法及相关产品 | |
CN107930126B (zh) | 游戏预约数据处理方法、装置以及移动终端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14829147 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.06.2016) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14829147 Country of ref document: EP Kind code of ref document: A1 |