WO2015010621A1 - 应用程序耗电信息的获取方法、装置和移动终端 - Google Patents

应用程序耗电信息的获取方法、装置和移动终端 Download PDF

Info

Publication number
WO2015010621A1
WO2015010621A1 PCT/CN2014/082834 CN2014082834W WO2015010621A1 WO 2015010621 A1 WO2015010621 A1 WO 2015010621A1 CN 2014082834 W CN2014082834 W CN 2014082834W WO 2015010621 A1 WO2015010621 A1 WO 2015010621A1
Authority
WO
WIPO (PCT)
Prior art keywords
power consumption
information
consumption information
application
mobile terminal
Prior art date
Application number
PCT/CN2014/082834
Other languages
English (en)
French (fr)
Inventor
林博
韦航
李丁盼
马健
Original Assignee
贝壳网际(北京)安全技术有限公司
北京金山网络科技有限公司
北京金山安全软件有限公司
珠海市君天电子科技有限公司
可牛网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 贝壳网际(北京)安全技术有限公司, 北京金山网络科技有限公司, 北京金山安全软件有限公司, 珠海市君天电子科技有限公司, 可牛网络技术(北京)有限公司 filed Critical 贝壳网际(北京)安全技术有限公司
Publication of WO2015010621A1 publication Critical patent/WO2015010621A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring 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/3062Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring 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 rapid development of mobile terminals has brought great convenience to people.
  • technical problems have arisen:
  • the development of small and sophisticated mobile terminals is limited to the battery capacity of batteries, for example, lithium batteries.
  • the reasons for the power consumption of mobile terminals mainly include large-screen highlighting, operating system operation, and application (APP) background running power consumption.
  • 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, third-generation mobile communication technology), Wi-Fi (wireless fidelity, radio high-fidelity), and so on.
  • 3G 3rd-generation, third-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. This method is accurate Know the currently running application, and display the current application's power consumption ranking in time, providing a reference for the user to properly use the mobile terminal's battery power to enhance 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.
  • a method for acquiring power consumption information of an application includes: receiving a power consumption information acquisition instruction of a user; and acquiring, according to the power consumption information acquisition instruction, a process information that is running in the mobile terminal. Determining an application running in the mobile terminal according to the running process information; and acquiring power consumption information of the running application and displaying.
  • the method for acquiring power consumption information of the application by matching the process information process name, the URL Scheme and the application program, accurately knows the currently running application, and displays the power consumption ranking of the current application in time.
  • it provides a reference for the user to properly use the battery power of the mobile terminal to improve the user experience.
  • the application and the corresponding power consumption information can be stored in the server to reduce the local storage pressure and the secondary response speed.
  • an apparatus for acquiring power consumption information of an application includes: an acquisition instruction acquisition module, configured to receive a power consumption information acquisition instruction of a user; and a process information acquisition module, according to the power consumption
  • the information acquisition instruction acquires the running process information in the mobile terminal;
  • the determining module is configured to determine, according to the running process information, an application that is running in the mobile terminal; and the power consumption information acquiring module, configured to acquire the The power consumption information of the running application is displayed.
  • the device for acquiring power consumption information of the application accurately learns the currently running application program by displaying the process information process name, the URL Scheme and the corresponding matching of the application program, and displays the current power consumption ranking of the current application program in time. In addition, it provides a reference for the user to properly use the battery power of the mobile terminal to improve the user experience.
  • the application and the corresponding power consumption information can be stored in the server to reduce the local storage pressure and the secondary response speed.
  • 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 Internally, the processor is disposed on the circuit board; the processor is configured to process data, specifically: receiving a power consumption information acquisition instruction of the user; acquiring, according to the power consumption information acquisition instruction, the mobile terminal is running Process information; determining an application running in the mobile terminal according to the running process information; and acquiring power consumption information of the running application and displaying.
  • the mobile terminal accurately learns the currently running application program by displaying the process information process name, the URL Scheme and the corresponding matching of the application program, and timely displays the power consumption ranking of the current application program, thereby making the user reasonable.
  • the application and corresponding power consumption information can be stored in the server to reduce the local storage pressure and secondary response speed.
  • a storage medium according to an embodiment of the present invention is 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. 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
  • FIG. 5 (b) FIG. 5(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; FIG. .
  • 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 block diagram showing a structure of an apparatus for acquiring power consumption information of an application according to 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.
  • the client of the mobile terminal provides the user with an application for power consumption information inquiry, and the user can send a power consumption information acquisition instruction by starting the application.
  • the process information includes the process name and resolution scheme URL Schema
  • an application can be determined according to the process information process name and the resolution scheme URL Scheme.
  • the client of the mobile terminal provides an application for the user to consume power information, and the user can access the server through the application, and the server stores the power consumption information of each application, thereby obtaining the power consumption information of the application.
  • the application that provides the user with the power consumption information inquiry mainly searches according to the process information to confirm the corresponding power consumption information.
  • the power consumption information described in the embodiments of the present invention may be information indicating the power consumption of the unit, the power consumption level of the application program, the power consumption ratio of the application program, and the like.
  • the method for acquiring power consumption information of the application by matching the process information process name, the URL Scheme and the application program, accurately knows the currently running application, and displays the power consumption ranking of the current application in time.
  • it provides a reference for the user to properly use the battery power of the mobile terminal to improve the user experience.
  • the application and the corresponding power consumption information can be stored in the server to reduce the local storage pressure and the secondary response speed.
  • 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.
  • a running application is determined, and the mobile terminal acquires corresponding power consumption information according to the process information.
  • the method for acquiring the power consumption information of the application includes the following steps.
  • 5202. Acquire, according to the power consumption information acquisition instruction, the process information that is running in the mobile terminal. 5203. Determine an application running in the mobile terminal according to the running process information.
  • the pre-stored process information database may be a database pushed by the server, where the process name and URL that can be searched in the server to obtain corresponding power consumption information are stored, and the Schema mobile terminal first processes the process information according to the running application.
  • the name and URL Scheme perform query matching to determine whether there is a corresponding process name and URL Scheme in the pre-stored process information base.
  • the mobile terminal can also periodically update the pre-stored process information base.
  • the server acquires related information, process information, and power consumption information of the application sent by the plurality of mobile terminals, and performs statistics to establish a power consumption information base.
  • the related information may include the name, icon, and the like of the application.
  • the process information inventory is stored locally, and the corresponding power consumption information is stored in the server, thereby reducing the local storage pressure.
  • FIG. 3 is a flow chart of a method for acquiring power consumption information of an application according to still another embodiment of the present invention.
  • the application may consume different power consumption information in different hardware environments, and it needs to be determined based on the resource consumption information of the running application.
  • the method for acquiring application power consumption information includes the following steps.
  • the resource consumption information includes one or more of a usage rate of the CPU, a memory usage, a buffer amount, an interface amount, and the like.
  • each application may consume different power consumption information at different running stages. For example, a chat application consumes less power during sleep, consumes a large amount of power when the user performs a chat, and needs to operate at different stages according to each application.
  • the resource consumption information is classified in detail, that is, each application can correspond to different power consumption information under different resource consumption information.
  • the application program performs detailed classification according to the corresponding resource consumption information, thereby further increasing accuracy.
  • the server acquires related information, process information, and power consumption information of the application sent by the plurality of mobile terminals, and further includes resource consumption information, and performs statistics to establish a power consumption information base.
  • the related information may include the name, icon, and the like of the application.
  • obtaining the power consumption information of the running application according to the resource consumption information and the process information specifically includes the following steps: performing matching in the pre-stored process information base according to the process information of the running application; if the matching is successful, The process information and the resource consumption information are sent to the server, and the corresponding power consumption information is obtained from the power consumption information database pre-stored by the server according to the process information and the resource consumption information.
  • each application may consume different power consumption information at different running stages.
  • a chat application consumes less power during sleep, consumes a large amount of power when the user performs a chat, and needs to operate at different stages according to each application.
  • the resource consumption information is classified in detail, that is, each application can correspond to different power consumption information under different resource consumption information, and the power consumption information of each application is classified according to different resource consumption information, and each can be obtained.
  • the application consumes power information under different resource consumption conditions to improve accuracy.
  • the method for acquiring application power consumption information includes the following steps.
  • S404 Perform matching in the pre-stored process information base according to the process information of the running application.
  • the corresponding power consumption information may also be obtained from the power consumption information database pre-stored by the server according to the process information and the resource consumption information.
  • 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 current remaining power is obtained and displayed according to the current remaining power and the power consumption information of the running application, which can make the user understand more intuitively. Improve the user experience by the current power status of the mobile terminal.
  • 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 of the application can be ranked.
  • the method for acquiring application power consumption information includes the following steps.
  • the corresponding power consumption information may also be obtained from the power consumption information database pre-stored by the server according to the process information and the resource consumption information.
  • S507 obtain the power consumption level of the running application according to the power consumption per unit time, and display the power consumption per unit time and/or the power consumption level.
  • FIG. 5(b) is a schematic diagram showing an example of power consumption per unit time and power consumption level according to an embodiment of the present invention, and shows the power consumption per unit time and power consumption of a running application as shown in FIG. 5(b). grade.
  • 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 prompted to turn off the application program 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 power consumption is obtained according to the unit time consumption.
  • the power consumption level of the application and display the power consumption per unit time and/or the power consumption level, which enables the user to more intuitively understand the power consumption level of the application currently running by the mobile terminal, and improve the user experience, in addition, 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 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 acquisition instruction acquisition module 10, a process information acquisition module 20, a determination module 30, and a power consumption information acquisition module 40.
  • the acquisition instruction acquisition module 10 is configured to receive the power consumption information acquisition instruction of the user, for example, the client of the mobile terminal provides the user with the power consumption information query application, and the user can send the power consumption information acquisition instruction by starting the application program, etc. .
  • the process information obtaining module 20 acquires process information that is running in the mobile terminal according to the power consumption information acquisition instruction, and The process information includes the process name and the resolution scheme URL Scheme.
  • the determining module 30 is configured to determine an application running in the mobile terminal according to the running process information, wherein an application can be determined according to the process information process name and the resolution scheme URL Scheme.
  • the power consumption information acquisition module 40 is configured to acquire power consumption information of the running application and display it.
  • the client of the mobile terminal provides an application for the user to consume power information, and the user can access the server through the application, and the server stores the power consumption information of each application, thereby obtaining the power consumption information of the application.
  • the application that provides the user with the power consumption information query mainly searches according to the process information to confirm the corresponding power consumption information.
  • the device for acquiring power consumption information of the application accurately learns the currently running application program by displaying the process information process name, the URL Scheme and the corresponding matching of the application program, and displays the current power consumption ranking of the current application program in time. In addition, it provides a reference for the user to properly use the battery power of the mobile terminal to improve the user experience.
  • the application and the corresponding power consumption information can be stored in the server to reduce the local storage pressure and the secondary response speed.
  • the power consumption information obtaining module 40 is further configured to: perform matching in the pre-stored process information database according to the process information of the running application, and send the process information to the success when the matching is successful.
  • the server obtains corresponding power consumption information from the power consumption information library pre-stored by the server according to the process information.
  • the pre-stored process information database may be a database pushed by the server, where the process name and URL Scheme that can be searched in the server to obtain corresponding power consumption information are stored.
  • the power consumption information obtaining module 40 first performs query matching according to the process information process name of the running application and the URL Scheme to determine whether a corresponding process name and URL Scheme exist in the pre-stored process information database.
  • the power consumption information acquisition module 40 can also periodically update the pre-stored process information base.
  • the server acquires related information, process information, and power consumption information of the application sent by the acquiring device of the plurality of application power consumption information, and performs statistics to establish a power consumption information base.
  • related information can include the name of the application, icons, and so on.
  • the power consumption information of the application may be different, and the power consumption information acquisition module 40 is further configured to obtain the resource consumption information of the running application.
  • the power consumption information of the running application is obtained and displayed according to the resource consumption information and the process information.
  • the resource consumption information includes one or more of a CPU usage, a memory usage, a cache amount, an interface amount, and the like.
  • each application may consume different power consumption information at different running stages. For example, a chat application consumes less power during sleep, consumes a large amount of power when the user performs a chat, and needs to operate at different stages according to each application. Resource elimination
  • the consumption information is classified in detail, that is, each application can correspond to different power consumption information under different resource consumption information. This increases the accuracy.
  • the server acquires related information, process information, and power consumption information of the application sent by the acquiring device of the plurality of application power consumption information, and further includes resource consumption information, and performs statistics to establish a power consumption information base.
  • the related information may include the name, icon, and the like of the application.
  • the power consumption information obtaining module 40 is further configured to perform matching in the pre-stored process information database according to the process information of the running application, and is running when the matching is successful.
  • the process information and the resource consumption information of the application are sent to the server, and the corresponding power consumption information is obtained from the power consumption information library pre-stored by the server according to the process information and the resource consumption information.
  • each application may consume different power consumption information at different running stages.
  • a chat application consumes less power during sleep, consumes a large amount of power when the user performs a chat, and needs to operate at different stages according to each application.
  • the resource consumption information is classified in detail, that is, each application can correspond to different power consumption information under different resource consumption information, and the power consumption information of each application is classified according to different resource consumption information, and each can be obtained.
  • the application consumes power information under different resource consumption conditions to improve accuracy.
  • 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.
  • the device for acquiring power consumption information includes an acquisition instruction acquisition module 10, a process information acquisition module 20, a determination module 30, a power consumption information acquisition module 40, and a usage time acquisition module 50.
  • the usage time acquisition module 50 is configured to acquire the current remaining power of the mobile terminal, and acquire and display the usage time under the current remaining power according to the current remaining power and the power consumption information of the running 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.
  • the user selectively closes some applications by using the time. In order to save electricity, the user can more intuitively understand the current power status of the mobile terminal and improve the user experience.
  • 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 includes an acquisition instruction acquisition module 10, a process information acquisition module 20, a determination module 30, a power consumption information acquisition module 40, a usage time acquisition module 50, and a power consumption level acquisition module 60. .
  • the power consumption level obtaining module 60 is configured to acquire the power consumption per unit time of the running application, and obtain the power consumption level of the running application according to the power consumption per unit time, and display the power consumption per unit time and / or power consumption level. Therefore, the user can more intuitively understand the power consumption level of the application currently running by the mobile terminal, improve the user experience, and can close the application with high power consumption level in an emergency situation, for example, when the power is low. , 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:
  • Sior receives the user's power consumption information acquisition instruction.
  • the client of the mobile terminal provides the user with an application for power consumption information inquiry, and the user can send a power consumption information acquisition instruction by starting the application.
  • the process information includes the process name and resolution scheme URL Schema
  • an application can be determined according to the process information process name and the resolution scheme URL Scheme.
  • the client of the mobile terminal provides an application for the user to consume power information, and the user can access the server through the application, and the server stores the power consumption information of each application, thereby obtaining the power consumption information of the application.
  • the application that provides the user with the power consumption information inquiry mainly searches according to the process information to confirm the corresponding power consumption information.
  • the mobile terminal accurately learns the currently running application program by displaying the process information process name, the URL Scheme and the corresponding matching of the application program, and timely displays the power consumption ranking of the current application program, thereby making the user reasonable.
  • the application and corresponding power consumption information can be stored in the server to reduce the local storage pressure and secondary response speed.
  • a running application can be determined according to the process information, and the mobile terminal acquires corresponding power consumption information according to the process information.
  • the processor obtains the power consumption information of the running application
  • the processor specifically uses: matching in the pre-stored process information base according to the process information of the running application; if the matching is successful, the running application will be The process information is sent to the server, and the corresponding power consumption information is obtained from the power consumption information library pre-stored by the server according to the process information.
  • the pre-stored process information database may be a database pushed by the server, where the process name and URL that can be searched in the server to obtain corresponding power consumption information are stored, and the Schema mobile terminal first processes the process information according to the running application.
  • the name and URL Scheme perform query matching to determine whether there is a corresponding process name and URL Scheme in the pre-stored process information base.
  • the mobile terminal can also periodically update the pre-stored process information base.
  • the server acquires related information, process information, and power consumption information of the application sent by the plurality of mobile terminals, and performs statistics to establish a power consumption information base.
  • the related information may include the name, icon, and the like of the application.
  • the mobile terminal stores the process information inventory locally, stores corresponding power consumption information in the server, and reduces local storage pressure.
  • the power consumption information of the application may be different in different hardware environments, and needs to be specifically determined according to the resource consumption information of the running application.
  • the processor is also specifically configured to: obtain resource consumption information of the running application, according to the resource. Consumption information and process information Get power consumption information of the running application and display it.
  • the resource consumption information includes one or more of a CPU usage, a memory usage, a cache amount, an interface amount, and the like.
  • each application may consume different power consumption information at different running stages. For example, a chat application consumes less power during sleep, consumes a large amount of power when the user performs a chat, and needs to operate at different stages according to each application.
  • the resource consumption information is classified in detail, that is, each application can correspond to different power consumption information under different resource consumption information.
  • the server acquires related information, process information, and power consumption information of the application sent by the plurality of mobile terminals, and further includes resource consumption information, and performs statistics to establish a power consumption information base.
  • the related information may include the name, icon, and the like of the application.
  • the processor specifically includes the following steps when acquiring the power consumption information of the running application according to the resource consumption information and the process information: performing matching in the pre-stored process information database according to the process information of the running application; If the matching is successful, the process information and the resource consumption information are sent to the server, and the corresponding power consumption information is obtained from the power consumption information database pre-stored by the server according to the process information and the resource consumption information.
  • each application may consume different power consumption information at different running stages.
  • a chat application consumes less power during sleep, consumes a large amount of power when the user performs a chat, and needs to operate at different stages according to each application.
  • the resource consumption information is classified in detail, that is, each application can correspond to different power consumption information under different resource consumption information, and the power consumption information of each application is classified according to different resource consumption information, and each can be obtained.
  • the application consumes power information under different resource consumption conditions to improve accuracy.
  • the usage time of the application may be obtained according to the current remaining power.
  • the processor is further configured to: obtain the current remaining power of the mobile terminal; and according to the current remaining power and the running The power consumption information of the application acquires the usage time under the current remaining power and displays it.
  • the application can be applied to The power consumption of the program is graded, and the processor is further configured to: obtain the power consumption per unit time of the running application; and obtain the power consumption level of the running application according to the power consumption per unit time, and display the unit time consumption Power and / or power consumption level.
  • 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.

Abstract

本发明实施例提供了一种应用程序耗电信息的获取方法、装置、移动终端和存储介质。所述方法包括:接收用户的耗电信息获取指令;根据耗电信息获取指令获取移动终端中正在运行的进程信息;根据正在运行的进程信息确定移动终端中正在运行的应用程序;以及获取正在运行的应用程序的耗电信息并显示。本发明实施例的方法,通过进程信息进程名、URL Scheme与应用程序的对应匹配,准确的获知当前正在运行的应用程序,并及时显示当前应用程序的耗电排行,为用户合理的使用移动终端的电池电量提供参考,提升用户体验。

Description

应用程序耗电信息的获取方法、 装置和移动终端
技术领域
本发明涉及移动终端技术领域, 特别是指一种应用程序耗电信息的获取方法、装置和移 动终端。 背景技术
随着网络技术的宽带化发展, 移动通信产业将走向真正的移动信息时代, 同时, 随着集 成电路技术的飞速发展, 移动终端已具有很强的处理能力, 移动终端正在从简单的通话工具 变为一个综合信息处理平台。 现代的移动终端已拥有极为强大的处理能力、 内存、 固化存 储介质以及像电脑一样的操作系统, 是一个完整的超小型计算机系统, 可以完成复杂的处理 任务, 不仅可以通话、 拍照、 听音乐、玩游戏, 而且可实现包括定位、 信息处理、 指纹扫描、 身份证扫描、 条码扫描、 RFID (Radio Frequency Identification, 电子标签、 无线射频识别) 扫描、 IC 卡扫描以及酒精含量检测等丰富的功能, 成为移动执法、 移动办公和移动商务的 重要工具。
移动终端的飞速发展给人们带来极大方便的同时, 也出现了技术问题: 小而精的移动终 端的发展局限于电池的电池容量而, 例如, 锂电池等。移动终端耗电的原因主要包括大屏幕 高亮显示、 操作系统运行以及应用程序 (Application, APP) 后台运行耗电等。 目前解决方 法如下: 针对大屏幕高亮显示高亮显示的问题, 用户可以通过操作调低大屏幕的亮度显示, 不用移动终端时及时锁屏; 针对操作系统运行时的耗电问题, 用户可以减少对相关系统功能 的使用时间,如尽量少使用 3G( 3rd-generation,第三代移动通信技术)、 Wi-Fi( wireless fidelity, 无线电高保真) 等等。
为了便于软件开发人员获取移动终端的系统参数值,移动终端的操作系统为软件开发人 员提供的应用程序编程接口 ( Application Programming Interface, API )。 目前存在的问题是, 多种移动终端的操作系统无法通过 API接口获取已经安装的应用程序的耗电情况,因此应用 程序的耗电问题用户无法准确获知, 用户难以清晰的获知哪些应用程序是 "耗电大户", 无 法合理的安排已安装应用程序的使用时间。 发明内容
本发明旨在至少解决上述技术问题之一。
为此, 本发明的第一个目的在于提出一种应用程序耗电信息的获取方法。 该方法可准确 的获知当前正在运行的应用程序, 并及时显示当前应用程序的耗电排行, 为用户合理的使用 移动终端的电池电量提供参考, 提升用户体验。
本发明的第二个目的在于提出一种应用程序耗电信息的获取装置。
本发明的第三个目的在于提出一种移动终端。
本发明的第四个目的在于提出一种存储介质。
为了实现上述目的, 本发明第一方面实施例的应用程序耗电信息的获取方法, 包括: 接 收用户的耗电信息获取指令;根据所述耗电信息获取指令获取移动终端中正在运行的进程信 息; 根据所述正在运行的进程信息确定所述移动终端中正在运行的应用程序; 以及获取所述 正在运行的应用程序的耗电信息并显示。
根据本发明实施例的应用程序耗电信息的获取方法,通过进程信息进程名、 URL Scheme 与应用程序的对应匹配, 准确的获知当前正在运行的应用程序, 并及时显示当前应用程序的 耗电排行, 进而为用户合理的使用移动终端的电池电量提供参考, 提升用户体验, 此外, 应 用程序和对应耗电信息可存储在服务器, 减小本地的存储压力和二次响应速度。
为了实现上述目的, 本发明第二方面实施例的应用程序耗电信息的获取装置, 包括: 获 取指令获取模块, 用于接收用户的耗电信息获取指令; 进程信息获取模块, 根据所述耗电信 息获取指令获取移动终端中正在运行的进程信息; 确定模块, 用于根据所述正在运行的进程 信息确定所述移动终端中正在运行的应用程序; 以及耗电信息获取模块, 用于获取所述正在 运行的应用程序的耗电信息并显示。
根据本发明实施例的应用程序耗电信息的获取装置,通过进程信息进程名、 URL Scheme 与应用程序的对应匹配, 准确的获知当前正在运行的应用程序, 并及时显示当前应用程序的 耗电排行, 进而为用户合理的使用移动终端的电池电量提供参考, 提升用户体验, 此外, 应 用程序和对应耗电信息可存储在服务器, 减小本地的存储压力和二次响应速度。
为了实现上述目的, 本发明第三方面实施例的移动终端, 包括: 外壳, 屏幕, 处理器和 电路板; 所述屏幕安置在所述外壳上, 所述电路板安置在所述外壳围成的空间内部, 所述处 理器设置在所述电路板上; 所述处理器用于处理数据, 具体用于: 接收用户的耗电信息获取 指令; 根据所述耗电信息获取指令获取移动终端中正在运行的进程信息; 根据所述正在运行 的进程信息确定所述移动终端中正在运行的应用程序; 以及获取所述正在运行的应用程序的 耗电信息并显示。
根据本发明实施例的移动终端, 通过进程信息进程名、 URL Scheme与应用程序的对应 匹配, 准确的获知当前正在运行的应用程序, 并及时显示当前应用程序的耗电排行, 进而为 用户合理的使用移动终端的电池电量提供参考, 提升用户体验, 此外, 应用程序和对应耗电 信息可存储在服务器, 减小本地的存储压力和二次响应速度。 为了实现上述目的, 本发明第四方面实施例的存储介质, 用于存储应用程序, 所述应用 程序用于执行本发明第一方面实施例所述的应用程序耗电信息的获取方法。
本发明附加的方面和优点将在下面的描述中部分给出, 部分将从下面的描述中变得明 显, 或通过本发明的实践了解到。 附图说明
本发明上述的和 /或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和 容易理解, 其中,
图 1是根据本发明一个实施例的应用程序耗电信息的获取方法的流程图;
图 2是根据本发明另一个实施例的应用程序耗电信息的获取方法的流程图; 图 3是根据本发明又一个实施例的应用程序耗电信息的获取方法的流程图; 图 4是根据本发明再一个实施例的应用程序耗电信息的获取方法的流程图; 图 5 ( a) 是根据本发明再一个实施例的应用程序耗电信息的获取方法的流程图; 图 5 (b ) 是根据本发明实施例的单位时间耗电量和耗电等级的一种示例示意图; 图 5 (c )是根据本发明实施例的提醒用户关闭耗电等级较高的应用程序的一种示例示意 图。
图 6是根据本发明一个实施例的应用程序耗电信息的获取装置的结构框图; 图 7是根据本发明另一个实施例的应用程序耗电信息的获取装置的结构框图; 图 8是根据本发明又一个实施例的应用程序耗电信息的获取装置的结构框图。 具体实施方式
下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至终相同或 类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的 实施例是示例性的, 仅用于解释本发明, 而不能理解为对本发明的限制。 相反, 本发明的实 施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、 修改和等同物。
在本发明的描述中, 需要理解的是, 术语 "第一"、 "第二"等仅用于描述目的, 而不能 理解为指示或暗示相对重要性。 在本发明的描述中, 需要说明的是, 除非另有明确的规定和 限定, 术语 "相连"、 "连接"应做广义理解, 例如, 可以是固定连接, 也可以是可拆卸连 接, 或一体地连接; 可以是机械连接, 也可以是电连接; 可以是直接相连, 也可以通过中间 媒介间接相连。对于本领域的普通技术人员而言, 可以具体情况理解上述术语在本发明中的 具体含义。 此外, 在本发明的描述中, 除非另有说明, "多个" 的含义是两个或两个以上。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或 更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分, 并且 本发明的优选实施方式的范围包括另外的实现, 其中可以不按所示出或讨论的顺序, 包括根 据所涉及的功能按基本同时的方式或按相反的顺序, 来执行功能, 这应被本发明的实施例所 属技术领域的技术人员所理解。
为了解决目前无法获取移动终端中已经安装的应用程序的耗电信息,本发明提出一种应 用程序耗电信息的获取方法、装置和移动终端。下面参考附图描述根据本发明实施例的应用 程序耗电信息的获取方法、 装置和移动终端。
图 1是根据本发明一个实施例的应用程序耗电信息的获取方法的流程图。 如图 1所示, 应用程序耗电信息的获取方法包括以下步骤。
5101 , 接收用户的耗电信息获取指令。
例如, 移动终端的客户端为用户提供耗电信息查询的应用程序, 用户通过启动应用程序 可发送耗电信息获取指令等。
5102, 根据耗电信息获取指令获取移动终端中正在运行的进程信息。
其中, 进程信息包括进程名和解析方案 URL Schema
5103, 根据正在运行的进程信息确定移动终端中正在运行的应用程序。
其中, 根据进程信息进程名和解析方案 URL Scheme可确定一个应用程序。
5104, 获取正在运行的应用程序的耗电信息并显示。
例如, 移动终端的客户端为用户提供耗电信息查询的应用程序, 用户通过该应用程序可 以访问服务器, 服务器中存储了每个应用程序的耗电信息, 由此可以获取应用程序的耗电信 息并显示。其中, 为用户提供耗电信息查询的应用程序主要根据进程信息进行查找以确认对 应的耗电信息。
应当理解, 本发明实施例所述的耗电信息可以是单位耗电量、 应用程序的耗电等级、 应 用程序耗电比例等表示任何耗电情况的信息。
根据本发明实施例的应用程序耗电信息的获取方法,通过进程信息进程名、 URL Scheme 与应用程序的对应匹配, 准确的获知当前正在运行的应用程序, 并及时显示当前应用程序的 耗电排行, 进而为用户合理的使用移动终端的电池电量提供参考, 提升用户体验, 此外, 应 用程序和对应耗电信息可存储在服务器, 减小本地的存储压力和二次响应速度。
图 2是根据本发明另一个实施例的应用程序耗电信息的获取方法的流程图。根据进程信 息可确定一个正在运行的应用程序,移动终端根据该进程信息获取对应的耗电信息,具体地, 如图 2所示, 应用程序耗电信息的获取方法包括以下步骤。
5201 , 接收用户的耗电信息获取指令。
5202, 根据耗电信息获取指令获取移动终端中正在运行的进程信息。 5203, 根据正在运行的进程信息确定移动终端中正在运行的应用程序。
5204, 根据正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配。
具体地, 预存储的进程信息库可以是服务器推送的数据库, 该数据库中存储了可以在服 务器中查找以获取对应耗电信息的进程名和 URL Schema 移动终端首先根据正在运行的应 用程序的进程信息进程名和 URL Scheme进行查询匹配以确定预存储的进程信息库中是否存 在对应的进程名和 URL Scheme。
其中, 为了使得获取的耗电信息更加准确, 还需要对预存储的进程信息库进行判断, 向 服务器发送查询命令以查询该预存储的进程信息库是否为最新版本, 如果为最新版本, 则进 行匹配,如果不为最新版本,则从服务器中获取最新版本的预存储的进程信息库再进行匹配。 移动终端还可以定时更新预存储的进程信息库。
5205, 如果匹配成功, 则将正在运行的应用程序的进程信息发送至服务器, 并根据进程 信息从服务器预存储的耗电信息库中获取对应的耗电信息。
在本发明的一个实施例中, 服务器获取多个移动终端发送的应用程序的相关信息、进程 信息和耗电信息, 并进行统计以建立耗电信息库。 其中, 相关信息可包括应用程序的名称、 图标等。通过对多个移动终端发送的信息进行统计,可以准确获取每个应用程序的耗电信息。
根据本发明实施例的应用程序耗电信息的获取方法, 将进程信息库存储在本地, 将对应 的耗电信息存储在服务器, 减少本地存储压力。
图 3是根据本发明又一个实施例的应用程序耗电信息的获取方法的流程图。应用程序在 不同的硬件环境中耗电信息可能不同,还需要根据正在运行的应用程序的资源消耗信息具体 确定。 具体地, 如图 3所示, 应用程序耗电信息的获取方法包括以下步骤。
5301 , 接收用户的耗电信息获取指令。
5302, 根据耗电信息获取指令获取移动终端中正在运行的进程信息。
5303, 根据正在运行的进程信息确定移动终端中正在运行的应用程序。
5304, 获取正在运行的应用程序的资源消耗信息。
5305, 根据资源消耗信息和进程信息获取正在运行的应用程序的耗电信息并显示。 在本发明的一个实施例中, 资源消耗信息包括中央处理器 CPU的使用率、 内存占用率、 缓存量、接口量等中的一种或多种。 具体地, 每个应用程序在不同的运行阶段耗电信息可能 不同, 例如, 聊天类应用程序在休眠时耗电小, 在用户进行聊天时耗电大, 需要根据每个应 用程序在不同运行阶段的资源消耗信息进行详细分类,即每个应用程序可在不同的资源消耗 信息下对应不同的耗电信息。
根据本发明实施例的应用程序耗电信息的获取方法,应用程序根据对应的资源消耗信息 进行详细的分类, 进一步增加准确性。 在本发明的一个实施例中, 服务器获取多个移动终端发送的应用程序的相关信息、进程 信息和耗电信息, 还包括资源消耗信息, 并进行统计以建立耗电信息库。 其中, 相关信息可 包括应用程序的名称、 图标等。 通过对多个移动终端发送的信息进行统计, 可以准确获取每 个应用程序的耗电信息, 并对每个应用程序的耗电信息根据不同的资源消耗信息进行分类。
由此,根据资源消耗信息和进程信息获取正在运行的应用程序的耗电信息具体包括以下 步骤: 根据正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成 功, 则将进程信息和资源消耗信息发送至服务器, 并根据进程信息和资源消耗信息从服务器 预存储的耗电信息库中获取对应的耗电信息。
具体地, 每个应用程序在不同的运行阶段耗电信息可能不同, 例如, 聊天类应用程序在 休眠时耗电小, 在用户进行聊天时耗电大, 需要根据每个应用程序在不同运行阶段的资源消 耗信息进行详细分类, 即每个应用程序可在不同的资源消耗信息下对应不同的耗电信息, 对 每个应用程序的耗电信息根据不同的资源消耗信息进行分类,可获取每个应用程序在不同的 资源消耗情况下的耗电信息, 提高准确度。
图 4是根据本发明再一个实施例的应用程序耗电信息的获取方法的流程图。为了使得用 户更加了解移动终端目前的电量消耗情况,可以根据目前的剩余电量获取应用程序的使用时 间。 具体地, 如图 4所示, 应用程序耗电信息的获取方法包括以下步骤。
5401 , 接收用户的耗电信息获取指令。
5402, 根据耗电信息获取指令获取移动终端中正在运行的进程信息。
5403 , 根据正在运行的进程信息确定移动终端中正在运行的应用程序。
S404, 根据正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配。
S405, 如果匹配成功, 则将正在运行的应用程序的进程信息发送至服务器, 并根据进程 信息从服务器预存储的耗电信息库中获取对应的耗电信息。
应当理解,还可以根据进程信息和资源消耗信息从服务器预存储的耗电信息库中获取对 应的耗电信息。
S406, 获取移动终端的当前剩余电量。
S407,根据当前剩余电量和正在运行的应用程序的耗电信息获取在当前剩余电量下的使 用时间并显示。
例如, 根据应用程序的耗电信息和当前剩余电量在理想情况下计算获取使用时间, 还可 对该使用时间进行校正以更适应实际的耗电环境,通过使用时间用户有选择地关闭部分应用 程序以节省电量。
根据本发明实施例的应用程序耗电信息的获取方法,根据当前剩余电量和正在运行的应 用程序的耗电信息获取在当前剩余电量下的使用时间并显示,可以使得用户更加直观的了解 到移动终端目前的电量情况, 提升用户体验。
图 5 ( a)是根据本发明再一个实施例的应用程序耗电信息的获取方法的流程图。 为了使 得用户更加了解移动终端目前正在运行的应用程序的电量消耗情况,可以对应用程序的耗电 进行分级。 具体地, 如图 5 ( a) 所示, 应用程序耗电信息的获取方法包括以下步骤。
5501 , 接收用户的耗电信息获取指令。
5502, 根据耗电信息获取指令获取移动终端中正在运行的进程信息。
5503 , 根据正在运行的进程信息确定移动终端中正在运行的应用程序。
5504, 根据正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配。
5505, 如果匹配成功, 则将正在运行的应用程序的进程信息发送至服务器, 并根据进程 信息从服务器预存储的耗电信息库中获取对应的耗电信息。
应当理解,还可以根据进程信息和资源消耗信息从服务器预存储的耗电信息库中获取对 应的耗电信息。
S506, 获取正在运行的应用程序的单位时间耗电量。
S507, 根据单位时间耗电量获取正在运行的应用程序的耗电等级, 并显示单位时间耗电 量和 /或耗电等级。
图 5 (b )是根据本发明实施例的单位时间耗电量和耗电等级的一种示例示意图, 如图 5 (b ) 所示显示正在运行的应用程序的单位时间耗电量和耗电等级。
其中, 处于较高级的应用程序, 提示用户在移动终端的电量较低时, 不运行或者关闭此 应用程序。 如图 5 (c ) 所示, 提醒用户关闭耗电等级较高的应用程序以节省移动终端的电 根据本发明实施例的应用程序耗电信息的获取方法,根据单位时间耗电量获取正在运行 的应用程序的耗电等级, 并显示单位时间耗电量和 /或耗电等级, 可以使得用户更加直观的 了解到移动终端目前正在运行的应用程序的耗电等级,提升用户体验,此外,在紧急情况下, 例如电量低的情况下可以关闭耗电等级高的应用程序, 进一步提升用户体验。
为了实现上述实施例, 本发明还提出一种应用程序耗电信息的获取装置。
图 6是根据本发明一个实施例的应用程序耗电信息的获取装置的结构框图。如图 6所示, 应用程序耗电信息的获取装置包括获取指令获取模块 10、 进程信息获取模块 20、 确定模块 30和耗电信息获取模块 40。
具体地, 获取指令获取模块 10用于接收用户的耗电信息获取指令, 例如, 移动终端的 客户端为用户提供耗电信息查询的应用程序,用户通过启动应用程序可发送耗电信息获取指 令等。
进程信息获取模块 20根据耗电信息获取指令获取移动终端中正在运行的进程信息, 其 中, 进程信息包括进程名和解析方案 URL Scheme。
确定模块 30用于根据正在运行的进程信息确定移动终端中正在运行的应用程序,其中, 根据进程信息进程名和解析方案 URL Scheme可确定一个应用程序。
耗电信息获取模块 40用于获取正在运行的应用程序的耗电信息并显示。 例如, 移动终 端的客户端为用户提供耗电信息查询的应用程序, 用户通过该应用程序可以访问服务器, 服 务器中存储了每个应用程序的耗电信息, 由此可以获取应用程序的耗电信息并显示。 其中, 为用户提供耗电信息查询的应用程序主要根据进程信息进行查找以确认对应的耗电信息。
根据本发明实施例的应用程序耗电信息的获取装置,通过进程信息进程名、 URL Scheme 与应用程序的对应匹配, 准确的获知当前正在运行的应用程序, 并及时显示当前应用程序的 耗电排行, 进而为用户合理的使用移动终端的电池电量提供参考, 提升用户体验, 此外, 应 用程序和对应耗电信息可存储在服务器, 减小本地的存储压力和二次响应速度。
在本发明的一个实施例中, 耗电信息获取模块 40还用于: 根据正在运行的应用程序的 进程信息在预存储的进程信息库中进行匹配, 并在匹配成功时, 将进程信息发送至服务器, 并根据进程信息从服务器预存储的耗电信息库中获取对应的耗电信息。
具体地, 预存储的进程信息库可以是服务器推送的数据库, 该数据库中存储了可以在服 务器中查找以获取对应耗电信息的进程名和 URL Scheme。耗电信息获取模块 40首先根据正 在运行的应用程序的进程信息进程名和 URL Scheme进行查询匹配以确定预存储的进程信息 库中是否存在对应的进程名和 URL Scheme。
其中, 为了使得获取的耗电信息更加准确, 还需要对预存储的进程信息库进行判断, 向 服务器发送查询命令以查询该预存储的进程信息库是否为最新版本, 如果为最新版本, 则进 行匹配,如果不为最新版本,则从服务器中获取最新版本的预存储的进程信息库再进行匹配。 耗电信息获取模块 40还可以定时更新预存储的进程信息库。
在本发明的一个实施例中,服务器获取多个应用程序耗电信息的获取装置发送的应用程 序的相关信息、 进程信息和耗电信息, 并进行统计以建立耗电信息库。 其中, 相关信息可包 括应用程序的名称、图标等。通过对多个应用程序耗电信息的获取装置发送的信息进行统计, 可以准确获取每个应用程序的耗电信息。
应用程序在不同的硬件环境中耗电信息可能不同,还需要根据正在运行的应用程序的资 源消耗信息具体确定, 耗电信息获取模块 40还用于获取正在运行的应用程序的资源消耗信 息, 以根据资源消耗信息和进程信息获取正在运行的应用程序的耗电信息并显示。其中, 资 源消耗信息包括中央处理器 CPU的使用率、 内存占用率、 缓存量、 接口量等中的一种或多 种。 具体地, 每个应用程序在不同的运行阶段耗电信息可能不同, 例如, 聊天类应用程序在 休眠时耗电小, 在用户进行聊天时耗电大, 需要根据每个应用程序在不同运行阶段的资源消 耗信息进行详细分类, 即每个应用程序可在不同的资源消耗信息下对应不同的耗电信息。 由 此增加准确性。
服务器获取多个应用程序耗电信息的获取装置发送的应用程序的相关信息、进程信息和 耗电信息, 还包括资源消耗信息, 并进行统计以建立耗电信息库。 其中, 相关信息可包括应 用程序的名称、 图标等。 通过对多个应用程序耗电信息的获取装置发送的信息进行统计, 可 以准确获取每个应用程序的耗电信息,并对每个应用程序的耗电信息根据不同的资源消耗信 息进行分类。
由此, 在本发明的一个实施例中, 耗电信息获取模块 40还用于根据正在运行的应用程 序的进程信息在预存储的进程信息库中进行匹配, 并在匹配成功时, 将正在运行的应用程序 的进程信息和资源消耗信息发送至服务器,并根据进程信息和资源消耗信息从服务器预存储 的耗电信息库中获取对应的耗电信息。
具体地, 每个应用程序在不同的运行阶段耗电信息可能不同, 例如, 聊天类应用程序在 休眠时耗电小, 在用户进行聊天时耗电大, 需要根据每个应用程序在不同运行阶段的资源消 耗信息进行详细分类, 即每个应用程序可在不同的资源消耗信息下对应不同的耗电信息, 对 每个应用程序的耗电信息根据不同的资源消耗信息进行分类,可获取每个应用程序在不同的 资源消耗情况下的耗电信息, 提高准确度。
图 7是根据本发明另一个实施例的应用程序耗电信息的获取装置的结构框图。如图 7所 示, 应用程序耗电信息的获取装置包括获取指令获取模块 10、 进程信息获取模块 20、 确定 模块 30、 耗电信息获取模块 40和使用时间获取模块 50。
具体地, 使用时间获取模块 50用于获取移动终端的当前剩余电量, 并根据当前剩余电 量和正在运行的应用程序的耗电信息获取在当前剩余电量下的使用时间并显示。例如, 根据 应用程序的耗电信息和当前剩余电量在理想情况下计算获取使用时间,还可对该使用时间进 行校正以更适应实际的耗电环境, 通过使用时间用户有选择地关闭部分应用程序以节省电 由此可以使得用户更加直观的了解到移动终端目前的电量情况, 提升用户体验。
图 8是根据本发明又一个实施例的应用程序耗电信息的获取装置的结构框图。如图 8所 示, 应用程序耗电信息的获取装置包括获取指令获取模块 10、 进程信息获取模块 20、 确定 模块 30、 耗电信息获取模块 40、 使用时间获取模块 50和耗电等级获取模块 60。
具体地, 耗电等级获取模块 60用于获取正在运行的应用程序的单位时间耗电量, 并根 据单位时间耗电量获取正在运行的应用程序的耗电等级, 并显示单位时间耗电量和 /或耗电 等级。由此,可以使得用户更加直观的了解到移动终端目前正在运行的应用程序的耗电等级, 提升用户体验,此外,在紧急情况下,例如电量低的情况下可以关闭耗电等级高的应用程序, 进一步提升用户体验。
为了实现上述实施例, 本发明还提出一种移动终端。
一种移动终端, 包括: 外壳, 屏幕, 处理器和电路板; 屏幕安置在外壳上, 电路板安置 在外壳围成的空间内部, 处理器设置在电路板上; 处理器用于处理数据, 具体用于执行以下 步骤:
sior , 接收用户的耗电信息获取指令。
例如, 移动终端的客户端为用户提供耗电信息查询的应用程序, 用户通过启动应用程序 可发送耗电信息获取指令等。
S102' , 根据耗电信息获取指令获取移动终端中正在运行的进程信息。
其中, 进程信息包括进程名和解析方案 URL Schema
S103 ' , 根据正在运行的进程信息确定移动终端中正在运行的应用程序。
其中, 根据进程信息进程名和解析方案 URL Scheme可确定一个应用程序。
S104' , 获取正在运行的应用程序的耗电信息并显示。
例如, 移动终端的客户端为用户提供耗电信息查询的应用程序, 用户通过该应用程序可 以访问服务器, 服务器中存储了每个应用程序的耗电信息, 由此可以获取应用程序的耗电信 息并显示。其中, 为用户提供耗电信息查询的应用程序主要根据进程信息进行查找以确认对 应的耗电信息。
根据本发明实施例的移动终端, 通过进程信息进程名、 URL Scheme与应用程序的对应 匹配, 准确的获知当前正在运行的应用程序, 并及时显示当前应用程序的耗电排行, 进而为 用户合理的使用移动终端的电池电量提供参考, 提升用户体验, 此外, 应用程序和对应耗电 信息可存储在服务器, 减小本地的存储压力和二次响应速度。
根据进程信息可确定一个正在运行的应用程序,移动终端根据该进程信息获取对应的耗 电信息。处理器在获取正在运行的应用程序的耗电信息时还具体用于: 根据正在运行的应用 程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成功, 则将正在运行的应用程 序的进程信息发送至服务器,并根据进程信息从服务器预存储的耗电信息库中获取对应的耗 电信息。
具体地, 预存储的进程信息库可以是服务器推送的数据库, 该数据库中存储了可以在服 务器中查找以获取对应耗电信息的进程名和 URL Schema 移动终端首先根据正在运行的应 用程序的进程信息进程名和 URL Scheme进行查询匹配以确定预存储的进程信息库中是否存 在对应的进程名和 URL Scheme。
其中, 为了使得获取的耗电信息更加准确, 还需要对预存储的进程信息库进行判断, 向 服务器发送查询命令以查询该预存储的进程信息库是否为最新版本, 如果为最新版本, 则进 行匹配,如果不为最新版本,则从服务器中获取最新版本的预存储的进程信息库再进行匹配。 移动终端还可以定时更新预存储的进程信息库。
在本发明的一个实施例中, 服务器获取多个移动终端发送的应用程序的相关信息、进程 信息和耗电信息, 并进行统计以建立耗电信息库。 其中, 相关信息可包括应用程序的名称、 图标等。通过对多个移动终端发送的信息进行统计,可以准确获取每个应用程序的耗电信息。
根据本发明实施例的移动终端, 将进程信息库存储在本地, 将对应的耗电信息存储在服 务器, 减少本地存储压力。
应用程序在不同的硬件环境中耗电信息可能不同,还需要根据正在运行的应用程序的资 源消耗信息具体确定, 处理器还具体用于: 获取正在运行的应用程序的资源消耗信息, 以根 据资源消耗信息和进程信息获取正在运行的应用程序的耗电信息并显示。在本发明的一个实 施例中, 资源消耗信息包括中央处理器 CPU的使用率、 内存占用率、 缓存量、 接口量等中 的一种或多种。 具体地, 每个应用程序在不同的运行阶段耗电信息可能不同, 例如, 聊天类 应用程序在休眠时耗电小, 在用户进行聊天时耗电大, 需要根据每个应用程序在不同运行阶 段的资源消耗信息进行详细分类,即每个应用程序可在不同的资源消耗信息下对应不同的耗 电信息。
在本发明的一个实施例中, 服务器获取多个移动终端发送的应用程序的相关信息、进程 信息和耗电信息, 还包括资源消耗信息, 并进行统计以建立耗电信息库。 其中, 相关信息可 包括应用程序的名称、 图标等。 通过对多个移动终端发送的信息进行统计, 可以准确获取每 个应用程序的耗电信息, 并对每个应用程序的耗电信息根据不同的资源消耗信息进行分类。
由此,处理器在根据资源消耗信息和进程信息获取正在运行的应用程序的耗电信息时具 体包括以下步骤: 根据正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成功, 则将进程信息和资源消耗信息发送至服务器, 并根据进程信息和资源消耗信 息从服务器预存储的耗电信息库中获取对应的耗电信息。
具体地, 每个应用程序在不同的运行阶段耗电信息可能不同, 例如, 聊天类应用程序在 休眠时耗电小, 在用户进行聊天时耗电大, 需要根据每个应用程序在不同运行阶段的资源消 耗信息进行详细分类, 即每个应用程序可在不同的资源消耗信息下对应不同的耗电信息, 对 每个应用程序的耗电信息根据不同的资源消耗信息进行分类,可获取每个应用程序在不同的 资源消耗情况下的耗电信息, 提高准确度。
为了使得用户更加了解移动终端目前的电量消耗情况,可以根据目前的剩余电量获取应 用程序的使用时间, 处理器还具体用于: 获取移动终端的当前剩余电量; 以及根据当前剩余 电量和正在运行的应用程序的耗电信息获取在当前剩余电量下的使用时间并显示。
为了使得用户更加了解移动终端目前正在运行的应用程序的电量消耗情况,可以对应用 程序的耗电进行分级, 处理器还具体用于: 获取正在运行的应用程序的单位时间耗电量; 以 及根据单位时间耗电量获取正在运行的应用程序的耗电等级, 并显示单位时间耗电量和 /或 耗电等级。
为了实现上述实施例, 本发明提出一种存储介质, 用于存储应用程序, 应用程序用于执 行本发明任一项实施例所述的应用程序耗电信息的获取方法。
应当理解, 本发明的各部分可以用硬件、 软件、 固件或它们的组合来实现。 在上述实施 方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件 来实现。 例如, 如果用硬件来实现, 和在另一实施方式中一样, 可用本领域公知的下列技术 中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻 辑电路, 具有合适的组合逻辑门电路的专用集成电路, 可编程门阵列 (PGA), 现场可编程 门阵列 (FPGA) 等。
在本说明书的描述中,参考术语"一个实施例"、 "一些实施例"、 "示例"、 "具体示例"、 或 "一些示例"等的描述意指结合该实施例或示例描述的具体特征、 结构、 材料或者特点包 含于本发明的至少一个实施例或示例中。在本说明书中, 对上述术语的示意性表述不一定指 的是相同的实施例或示例。 而且, 描述的具体特征、 结构、 材料或者特点可以在任何的一个 或多个实施例或示例中以合适的方式结合。
在本发明各方法实施例中, 所述各步骤的序号并不能用于限定各步骤的先后顺序, 对于 本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 对各步骤的先后变化也在本发明 的保护范围之内。
尽管已经示出和描述了本发明的实施例, 本领域的普通技术人员可以理解: 在不脱离本 发明的原理和宗旨的情况下可以对这些实施例进行多种变化、 修改、 替换和变型, 本发明的 范围由权利要求及其等同物限定。

Claims

权 利 要 求 书
1、 一种应用程序耗电信息的获取方法, 其特征在于, 包括:
接收用户的耗电信息获取指令;
根据所述耗电信息获取指令获取移动终端中正在运行的进程信息;
根据所述正在运行的进程信息确定所述移动终端中正在运行的应用程序; 以及 获取所述正在运行的应用程序的耗电信息并显示。
2、 如权利要求 1 所述的方法, 其特征在于, 所述获取所述正在运行的应用程序的 耗电信息具体包括:
根据所述正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成功, 则将所述进程信息发送至服务器, 并根据所述进程信息从所述服务 器预存储的耗电信息库中获取对应的所述耗电信息。
3、 如权利要求 1所述的方法, 其特征在于, 还包括:
获取所述正在运行的应用程序的资源消耗信息, 以根据所述资源消耗信息和所述进 程信息获取所述正在运行的应用程序的耗电信息并显示。
4、如权利要求 3所述的方法,其特征在于,所述资源消耗信息包括中央处理器 CPU 的使用率、 内存占用率、 缓存量、 接口量中的一种或多种。
5、 如权利要求 3所述的方法, 其特征在于, 所述根据所述资源消耗信息和所述进 程信息获取所述正在运行的应用程序的耗电信息并显示具体包括:
根据所述正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成功, 则将所述进程信息和所述资源消耗信息发送至服务器, 并根据所述 进程信息和所述资源消耗信息从所述服务器预存储的耗电信息库中获取对应的所述耗 电信息。
6、 如权利要求 1-5任一项所述的方法, 其特征在于, 还包括:
获取所述移动终端的当前剩余电量; 以及
根据所述当前剩余电量和所述正在运行的应用程序的耗电信息获取在所述当前剩 余电量下的使用时间并显示。
7、 如权利要求 1-5任一项所述的方法, 其特征在于, 还包括:
获取所述正在运行的应用程序的单位时间耗电量; 以及
根据所述单位时间耗电量获取所述正在运行的应用程序的耗电等级, 并显示所述单 位时间耗电量和 /或所述耗电等级。
8、 一种应用程序耗电信息的获取装置, 其特征在于, 包括: 获取指令获取模块, 用于接收用户的耗电信息获取指令;
进程信息获取模块, 根据所述耗电信息获取指令获取移动终端中正在运行的进程信 自E .;
确定模块, 用于根据所述正在运行的进程信息确定所述移动终端中正在运行的应用 程序; 以及
耗电信息获取模块, 用于获取所述正在运行的应用程序的耗电信息并显示。
9、 如权利要求 8所述的装置, 其特征在于, 所述耗电信息获取模块还用于: 根据 所述正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配, 并在匹配成功 时, 将所述进程信息发送至服务器, 并根据所述进程信息从所述服务器预存储的耗电信 息库中获取对应的所述耗电信息。
10、 如权利要求 8所述的装置, 其特征在于, 所述耗电信息获取模块还用于获取所 述正在运行的应用程序的资源消耗信息, 以根据所述资源消耗信息和所述进程信息获取 所述正在运行的应用程序的耗电信息并显示。
11、 如权利要求 10所述的装置, 其特征在于, 所述资源消耗信息包括中央处理器 CPU的使用率、 内存占用率、 缓存量、 接口量中的一种或多种。
12、 如权利要求 10所述的装置, 其特征在于, 所述耗电信息获取模块还用于: 根 据所述正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配, 并在匹配成 功时, 将所述进程信息和所述资源消耗信息发送至服务器, 并根据所述进程信息和所述 资源消耗信息从所述服务器预存储的耗电信息库中获取对应的所述耗电信息。
13、 如权利要求 8-12任一项所述的装置, 其特征在于, 还包括:
使用时间获取模块, 用于获取所述移动终端的当前剩余电量, 并根据所述当前剩余 电量和所述正在运行的应用程序的耗电信息获取在所述当前剩余电量下的使用时间并 显示。
14、 如权利要求 8-12任一项所述的装置, 其特征在于, 还包括:
耗电等级获取模块, 用于获取所述正在运行的应用程序的单位时间耗电量, 并根据 所述单位时间耗电量获取所述正在运行的应用程序的耗电等级, 并显示所述单位时间耗 电量和 /或所述耗电等级。
15、 一种移动终端, 其特征在于, 包括: 外壳, 屏幕, 处理器和电路板; 所述屏幕安置在所述外壳上, 所述电路板安置在所述外壳围成的空间内部, 所述处 理器设置在所述电路板上;
所述处理器用于处理数据, 具体用于:
接收用户的耗电信息获取指令; 根据所述耗电信息获取指令获取移动终端中正在运行的进程信息;
根据所述正在运行的进程信息确定所述移动终端中正在运行的应用程序; 以及 获取所述正在运行的应用程序的耗电信息并显示。
16、 如权利要求 15所述的移动终端, 其特征在于, 所述处理器还具体用户: 根据所述正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成功, 则将所述进程信息发送至服务器, 并根据所述进程信息从所述服务 器预存储的耗电信息库中获取对应的所述耗电信息。
17、 如权利要求 15所述的移动终端, 其特征在于, 所述处理器还具体用于: 获取所述正在运行的应用程序的资源消耗信息, 以根据所述资源消耗信息和所述进 程信息获取所述正在运行的应用程序的耗电信息并显示。
18、 如权利要求 17所述的移动终端, 其特征在于, 所述资源消耗信息包括中央处 理器 CPU的使用率、 内存占用率、 缓存量、 接口量中的一种或多种。
19、 如权利要求 17所述的移动终端, 其特征在于, 所述处理器还具体用于: 根据所述正在运行的应用程序的进程信息在预存储的进程信息库中进行匹配; 如果匹配成功, 则将所述进程信息和所述资源消耗信息发送至服务器, 并根据所述 进程信息和所述资源消耗信息从所述服务器预存储的耗电信息库中获取对应的所述耗 电信息。
20、 如权利要求 15-19任一项所述的移动终端, 其特征在于, 所述处理器还具体用 于:
获取所述移动终端的当前剩余电量; 以及
根据所述当前剩余电量和所述正在运行的应用程序的耗电信息获取在所述当前剩 余电量下的使用时间并显示。
21、 如权利要求 15-19任一项所述的移动终端, 其特征在于, 所述处理器还具体用 于:
获取所述正在运行的应用程序的单位时间耗电量; 以及
根据所述单位时间耗电量获取所述正在运行的应用程序的耗电等级, 并显示所述单 位时间耗电量和 /或所述耗电等级。
22、 一种存储介质, 其特征在于, 用于存储应用程序, 所述应用程序用于执行权利 要求 1至 7中任一项所述的应用程序耗电信息的获取方法。
PCT/CN2014/082834 2013-07-23 2014-07-23 应用程序耗电信息的获取方法、装置和移动终端 WO2015010621A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310311862.1 2013-07-23
CN201310311862.1A CN104346256B (zh) 2013-07-23 2013-07-23 应用程序耗电信息的获取方法、装置和移动终端

Publications (1)

Publication Number Publication Date
WO2015010621A1 true WO2015010621A1 (zh) 2015-01-29

Family

ID=52392740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082834 WO2015010621A1 (zh) 2013-07-23 2014-07-23 应用程序耗电信息的获取方法、装置和移动终端

Country Status (2)

Country Link
CN (1) CN104346256B (zh)
WO (1) WO2015010621A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592410A (zh) * 2017-08-25 2018-01-16 珠海市魅族科技有限公司 一种信息展示方法及装置、终端和可读存储介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731604B (zh) * 2015-04-07 2019-04-19 北京字节跳动网络技术有限公司 确定正在播放声音的应用程序的方法及系统
CN105100429B (zh) * 2015-06-08 2018-03-06 北京金山安全软件有限公司 确定移动终端剩余电量使用时间的方法和装置
CN105824740A (zh) * 2015-11-26 2016-08-03 维沃移动通信有限公司 确定应用耗电的方法和终端
CN105653009A (zh) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 一种夜间休眠模式的启动方法、装置及电子设备
WO2018032424A1 (zh) * 2016-08-17 2018-02-22 陈银芳 手机的省电提醒方法及系统
CN106569582A (zh) * 2016-10-26 2017-04-19 上海与德信息技术有限公司 终端剩余耗电时长的提示方法及装置
CN106774774B (zh) * 2016-11-30 2020-01-10 北京小米移动软件有限公司 终端电池的电量显示方法及装置
CN108279764A (zh) * 2017-01-04 2018-07-13 北京搜狗科技发展有限公司 一种应用程序控制方法、装置和移动终端
CN107451037A (zh) * 2017-08-08 2017-12-08 广东小天才科技有限公司 一种用于移动终端的剩余运行时间提示方法和装置
CN108762467A (zh) * 2018-05-10 2018-11-06 Oppo广东移动通信有限公司 应用处理方法、装置、电子设备和计算机可读存储介质
CN108960817B (zh) * 2018-07-11 2022-01-25 深圳市银联金融网络有限公司 基于电量检测的电子支付平台
CN109460337A (zh) * 2018-09-20 2019-03-12 艾普有限公司 耗电量监测方法、装置、设备及其存储介质
CN112073572A (zh) * 2020-06-16 2020-12-11 上海趣蕴网络科技有限公司 一种线上应用耗电量预估方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006134932A1 (ja) * 2005-06-13 2006-12-21 Matsushita Electric Industrial Co., Ltd. 端末装置
CN102369647A (zh) * 2011-09-14 2012-03-07 华为技术有限公司 移动终端电源管理方法和装置
CN102508761A (zh) * 2011-11-17 2012-06-20 宇龙计算机通信科技(深圳)有限公司 终端电量的管理方法和终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853166B (zh) * 2010-06-07 2013-04-10 北京大学 一种面向应用的智能手机电池使用时间指示方法及系统
CN102591766B (zh) * 2011-12-31 2015-12-09 惠州Tcl移动通信有限公司 移动设备及其程序耗电量提示处理方法、系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006134932A1 (ja) * 2005-06-13 2006-12-21 Matsushita Electric Industrial Co., Ltd. 端末装置
CN102369647A (zh) * 2011-09-14 2012-03-07 华为技术有限公司 移动终端电源管理方法和装置
CN102508761A (zh) * 2011-11-17 2012-06-20 宇龙计算机通信科技(深圳)有限公司 终端电量的管理方法和终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592410A (zh) * 2017-08-25 2018-01-16 珠海市魅族科技有限公司 一种信息展示方法及装置、终端和可读存储介质

Also Published As

Publication number Publication date
CN104346256B (zh) 2018-06-01
CN104346256A (zh) 2015-02-11

Similar Documents

Publication Publication Date Title
WO2015010621A1 (zh) 应用程序耗电信息的获取方法、装置和移动终端
US20170235435A1 (en) Electronic device and method of application data display therefor
US10015792B2 (en) Electronic device and method for avoiding interference between frequencies therefor
US10908920B2 (en) Method for preloading application, computer readable storage medium, and terminal device
US20150244185A1 (en) Method and apparatus for power sharing
EP3502879A1 (en) Method for preloading application, storage medium, and terminal device
CN105580394A (zh) 消息推送及消息显示的方法和装置
US11269488B2 (en) System for providing application list and method therefor
WO2018006841A1 (zh) 二维码信息传输方法、装置以及设备
CN111078556B (zh) 应用测试方法及装置
CN104281621A (zh) 网页浏览方法及装置
EP2869604A1 (en) Method, apparatus and device for processing a mobile terminal resource
WO2015010624A1 (zh) 应用程序耗电信息的获取方法、装置和移动终端
US10430236B2 (en) Electronic device and method for resuming process thereof
CN110555155A (zh) 物品信息推荐方法、设备和存储介质
CN104750500A (zh) 启动应用程序的方法和系统
CN107930126B (zh) 游戏预约数据处理方法、装置以及移动终端
WO2018219117A1 (zh) 组件显示方法及相关产品
CN107798008B (zh) 内容推送系统、方法及装置
CN112667868B (zh) 一种数据检测方法以及装置
WO2023123614A1 (zh) 数据处理方法、装置、终端和存储介质
CN106155733B (zh) 一种运行应用程序的方法和装置
CN114510417A (zh) 一种图像渲染效果测试方法、装置、电子设备和存储介质
WO2018219118A1 (zh) 界面显示方法及相关产品
CN106372186B (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: 14829060

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 1205 DATED 29/06/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14829060

Country of ref document: EP

Kind code of ref document: A1