CN108762467A - Application processing method and device, electronic equipment and computer readable storage medium - Google Patents
Application processing method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108762467A CN108762467A CN201810444034.8A CN201810444034A CN108762467A CN 108762467 A CN108762467 A CN 108762467A CN 201810444034 A CN201810444034 A CN 201810444034A CN 108762467 A CN108762467 A CN 108762467A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- application
- electronic device
- consumption data
- applications
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
Description
技术领域technical field
本申请涉及电子设备应用领域,特别是涉及一种应用处理方法、装置、电子设备和计算机可读存储介质。The present application relates to the application field of electronic equipment, in particular to an application processing method, device, electronic equipment and computer-readable storage medium.
背景技术Background technique
随着电子设备,如手机、个人数码助理(Personal Digital Assistant,PDA)等设备的广泛应用,电子设备中可以开发安装的应用也日渐增多。电子设备被使用后电量不足,需要进行充电,然而电子设备被使用后进行充电的速度比较慢。With the widespread application of electronic devices, such as mobile phones and personal digital assistants (Personal Digital Assistant, PDA), the number of applications that can be developed and installed in electronic devices is also increasing. After the electronic device is used, the power is insufficient and needs to be charged. However, the charging speed of the electronic device after being used is relatively slow.
发明内容Contents of the invention
本申请实施例提供一种应用处理方法、装置、电子设备和计算机可读存储介质,可以提高充电速度。Embodiments of the present application provide an application processing method, device, electronic device, and computer-readable storage medium, which can increase the charging speed.
一种应用处理方法,包括:A method of application processing, comprising:
当检测到电子设备处于充电状态,则获取所述电子设备上运行的各个应用对应的耗电数据;When it is detected that the electronic device is in a charging state, the power consumption data corresponding to each application running on the electronic device is obtained;
根据所述耗电数据展示所述各个应用;displaying the respective applications according to the power consumption data;
响应作用于从所述各个应用中所选中的目标应用的关闭操作,关闭所述目标应用。The target application is closed in response to a close operation applied to the target application selected from the respective applications.
一种应用处理装置,包括:An application processing device, comprising:
获取模块,用于当检测到电子设备处于充电状态,则获取所述电子设备上运行的各个应用对应的耗电数据;An acquisition module, configured to acquire power consumption data corresponding to each application running on the electronic device when it is detected that the electronic device is in a charging state;
展示模块,用于根据所述耗电数据展示所述各个应用;a display module, configured to display the applications according to the power consumption data;
响应模块,用于响应作用于从所述各个应用中所选中的目标应用的关闭操作,关闭所述目标应用。A response module, configured to close the target application in response to a close operation acting on the target application selected from the various applications.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的应用处理方法。An electronic device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned application processing method.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的应用处理方法。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned application processing method is implemented.
本申请实施例中的应用处理方法、装置、电子设备和计算机可读存储介质,可以在电子设备处于充电状态时,自动对正在运行的各个应用进行直观的展示,并可以通过响应作用于目标应用的关闭操作对目标应用进行关闭,减少电子设备充电时应用运行所带来的电量损耗,提高了电子设备的充电速度。The application processing method, device, electronic device, and computer-readable storage medium in the embodiments of the present application can automatically display each running application intuitively when the electronic device is in a charging state, and can act on the target application through a response The closing operation closes the target application, reduces the power loss caused by running the application when the electronic device is charging, and improves the charging speed of the electronic device.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为一个实施例中电子设备的内部结构示意图;Fig. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment;
图2为一个实施例中应用处理方法的流程图;Fig. 2 is a flowchart of an application processing method in an embodiment;
图3a为一个实施例中电子设备显示界面示意图;Fig. 3a is a schematic diagram of a display interface of an electronic device in an embodiment;
图3b为另一个实施例中电子设备显示界面示意图;Fig. 3b is a schematic diagram of a display interface of an electronic device in another embodiment;
图4a为又一个实施例中电子设备显示界面示意图;Fig. 4a is a schematic diagram of a display interface of an electronic device in yet another embodiment;
图4b为又一个实施例中电子设备显示界面示意图;Fig. 4b is a schematic diagram of a display interface of an electronic device in another embodiment;
图5为一个实施例中应用处理装置的结构框图;Fig. 5 is a structural block diagram of an application processing device in an embodiment;
图6为一个实施例中的手机的部分结构的框图。Fig. 6 is a block diagram of a partial structure of a mobile phone in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
图1为一个实施例中应用处理方法的应用环境示意图。如图1所示,应用处理方法应用于电子设备中,该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的应用处理方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种应用处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。Fig. 1 is a schematic diagram of an application environment of an application processing method in an embodiment. As shown in FIG. 1 , the application processing method is applied to an electronic device, and the electronic device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used to store data, programs, etc., and at least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the application processing method suitable for electronic devices provided in the embodiments of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random-access-memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes non-volatile storage media and internal memory. Nonvolatile storage media store operating systems and computer programs. The computer program can be executed by a processor, so as to implement an application processing method provided in each of the following embodiments. The internal memory provides a high-speed running environment for the operating system computer program in the non-volatile storage medium. The network interface can be an Ethernet card or a wireless network card, etc., and is used for communicating with external electronic devices. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant, or a wearable device.
图2为一个实施例中应用处理方法的流程图。应用处理方法包括步骤202至步骤206。Figure 2 is a flowchart of an application processing method in one embodiment. The application processing method includes step 202 to step 206 .
步骤202,当检测到电子设备处于充电状态,则获取电子设备上运行的各个应用对应的耗电数据。In step 202, when it is detected that the electronic device is in a charging state, the power consumption data corresponding to each application running on the electronic device is acquired.
具体地,可以由电子设备检测本机的充电状态,充电状态可以是电子设备检测到本机连接电源进行充电操作,也可以是电子设备检测到本机处于充电一段时间。充电状态还可以包括有线充电状态和无线充电状态,其中,有线充电是传统的通过电子设备自身的通用串行总线(Universal Serial Bus,USB)端口连接进行充电操作;无线充电是通过电磁感应实现充电,其工作原理为在充电器内的初级线圈中通有一定频率的交流电,该交流电通过电池感应在电子设备的次级线圈中产生一定的电流,从而将能量从充电器转移到电子设备。Specifically, the electronic device may detect the charging state of the machine. The charging state may be that the electronic device detects that the machine is connected to a power source for charging operation, or that the electronic device detects that the machine is being charged for a period of time. The charging state may also include a wired charging state and a wireless charging state, wherein, the wired charging is a traditional charging operation through the connection of the Universal Serial Bus (USB) port of the electronic device itself; the wireless charging is to realize charging through electromagnetic induction. , its working principle is that an alternating current of a certain frequency is passed through the primary coil in the charger, and the alternating current generates a certain current in the secondary coil of the electronic device through battery induction, thereby transferring energy from the charger to the electronic device.
耗电数据可以是电子设备自带的耗电检测数据,记录的是各个应用的实时耗电量占电子设备电池总电量的比例。可以通过电子设备内部的功耗检测软件对各个应用的耗电情况进行检测,得到各个应用对应的耗电数据。功耗检测软件可以通过电子设备操作系统内部的应用程序接口(Application Programming Interface,API)获取电子设备上的电池电量状态(Battery Stats),再根据特定的算法从电池电量状态中提取各个应用在使用过程中的耗电数据。为了进一步提高各个应用耗电数据测量的精确度,还可以通过外接硬件的方法实现对各个应用耗电数据的检测。例如,可以将电子设备本机电池卸掉,使用外部电源供电,在外部电源与本机之间连接功耗仪,通过功耗仪测量电子设备中各个应用在运行过程中的耗电数据。The power consumption data may be the power consumption detection data of the electronic device, which records the ratio of the real-time power consumption of each application to the total battery power of the electronic device. The power consumption of each application can be detected through the power consumption detection software inside the electronic device, and the power consumption data corresponding to each application can be obtained. The power consumption detection software can obtain the battery status (Battery Stats) on the electronic device through the application programming interface (Application Programming Interface, API) inside the operating system of the electronic device, and then extract the status of each application from the battery status according to a specific algorithm. Power consumption data during the process. In order to further improve the accuracy of measuring the power consumption data of each application, the detection of the power consumption data of each application can also be realized by means of external hardware. For example, the battery of the electronic device can be removed, powered by an external power supply, a power consumption meter is connected between the external power supply and the device, and the power consumption data of each application in the electronic device during operation can be measured by the power consumption meter.
步骤204,根据耗电数据展示各个应用。Step 204, each application is displayed according to the power consumption data.
在本步骤中,可以根据耗电数据在电子设备上展示各个耗电的应用,也可以在展示各个应用的同时展示各个应用对应的耗电数据。电子设备可以在本机的通知栏或指定区域上对各个应用及对应的耗电数据进行展示,也可以以弹窗的形式对各个应用及对应的耗电数据进行展示。In this step, each power consumption application may be displayed on the electronic device according to the power consumption data, or the power consumption data corresponding to each application may be displayed while displaying each application. The electronic device can display various applications and corresponding power consumption data on the notification bar or designated area of the device, or can display various applications and corresponding power consumption data in the form of pop-up windows.
步骤206,响应作用于从各个应用中所选中的目标应用的关闭操作,关闭目标应用。Step 206, closing the target application in response to a closing operation acting on the target application selected from the various applications.
上述实施例中,可以在电子设备处于充电状态时,自动对正在运行的各个应用进行直观的展示,并可以通过响应作用于目标应用的关闭操作对目标应用进行关闭,减少电子设备充电时应用程序运行所带来的电量损耗,提高了电子设备的充电速度。In the above-mentioned embodiment, when the electronic device is in the charging state, each running application can be automatically and visually displayed, and the target application can be closed in response to the closing operation acting on the target application, reducing the number of application programs when the electronic device is charging. The power loss caused by operation increases the charging speed of electronic devices.
在一个实施例中,对于步骤206,可包括:获取各个应用中处于选中状态的至少一个目标应用;响应作用于该至少一个目标应用的一键关闭操作;根据该一键关闭操作关闭该至少一个目标应用。In one embodiment, step 206 may include: acquiring at least one target application in the selected state among various applications; responding to a one-key close operation acting on the at least one target application; closing the at least one target application according to the one-key close operation target application.
可以一次性选中单个、多个或全部应用,电子设备可以通过清理内存的方式关闭选中的目标应用。Single, multiple or all applications can be selected at one time, and the electronic device can close the selected target applications by cleaning up the memory.
上述实施例,可以在电子设备处于充电状态时,自动在显示界面上对正在运行的各个应用及对应的耗电数据进行直观的展示,并可以通过响应作用于目标应用的关闭操作对目标应用进行关闭,减少了电子设备的界面切换次数。当一次性选中全部应用时,可以通过响应作用于目标应用的关闭操作对目标应用进行一键关闭,减少了电子设备系统响应次数,并通过关闭耗电的应用,加快了电子设备的充电速度。In the above-mentioned embodiment, when the electronic device is in the charging state, various running applications and corresponding power consumption data can be automatically and intuitively displayed on the display interface, and the target application can be closed by responding to the shutdown operation acting on the target application. Closed, reducing the number of interface switching of electronic equipment. When all applications are selected at one time, the target application can be closed with one click by responding to the close operation acting on the target application, which reduces the number of system responses of the electronic device, and accelerates the charging speed of the electronic device by closing power-consuming applications.
在一个实施例中,步骤202可以包括:当检测到电子设备处于充电状态,检测电子设备的剩余电量是否小于电量阈值;当电子设备的剩余电量小于电量阈值时,获取电子设备上运行的各个应用对应的耗电数据。In one embodiment, step 202 may include: when it is detected that the electronic device is in a charging state, detecting whether the remaining power of the electronic device is less than the power threshold; Corresponding power consumption data.
在上述实施例中,电子设备可以检测本机的剩余电量,当本机的剩余电量低于电量阈值,例如,总电量的30%时,可以对正在运行的各个应用及对应的耗电数据以列表的形式进行展示。若电子设备的剩余电量较充足,则可以不对正在运行的各个应用及对应的耗电数据进行展示。In the above embodiment, the electronic device can detect the remaining power of the device, and when the remaining power of the device is lower than the power threshold, for example, 30% of the total power, the running applications and corresponding power consumption data can be displayed in list form. If the remaining power of the electronic device is relatively sufficient, each running application and corresponding power consumption data may not be displayed.
在电子设备展示本机运行的各个应用以及对应的耗电数据之前,进行剩余电量与电量阈值的比较,使电子设备在充电且剩余电量不足时,自动展示各个应用及对应的耗电数据,选择性地对不需要运行的应用进行关闭,避免该应用对电子设备的充电速度和其它应用的正常运行造成影响。Before the electronic device displays each application running on the machine and the corresponding power consumption data, compare the remaining power with the power threshold, so that when the electronic device is charging and the remaining power is insufficient, it will automatically display each application and the corresponding power consumption data. Select Permanently shut down applications that do not need to run, so as to prevent the application from affecting the charging speed of the electronic device and the normal operation of other applications.
在一个实施例中,步骤202可以包括:当检测到电子设备处于充电状态,获取电子设备的充电时长;当充电时长到达指定时长,则获取电子设备上运行的各个应用对应的耗电数据。In one embodiment, step 202 may include: when it is detected that the electronic device is in a charging state, acquiring the charging duration of the electronic device; when the charging duration reaches a specified duration, acquiring power consumption data corresponding to each application running on the electronic device.
可以预先设定指定时长,在检测到电子设备的充电操作时,启动电子设备内部计时器,在计时器的计时达到指定时长时,可以判断在指定时长的计时时间内电子设备是否持续进行充电,如果是,则可以通过调用操作系统内部的应用程序接口获取电子设备上运行的各个应用对应的耗电数据。The specified duration can be set in advance. When the charging operation of the electronic device is detected, the internal timer of the electronic device will be started. When the timer reaches the specified duration, it can be judged whether the electronic device continues to charge within the specified duration. If so, the power consumption data corresponding to each application running on the electronic device may be obtained by calling an application program interface inside the operating system.
上述实施例,当充电持续时间超过指定时长时,可以判定电子设备检测到本机处于充电状态,可以有效避免日常生活中对电子设备的误充电操作或者充电操作的误判断。In the above embodiment, when the charging duration exceeds the specified time, it can be determined that the electronic device detects that the device is in the charging state, which can effectively avoid misjudgment or misjudgment of the charging operation of the electronic device in daily life.
在一个实施例中,在根据所述耗电数据展示所述各个应用时,可以根据耗电数据获取各个应用的耗电量,按照耗电量从高到低依次展示各个应用及对应的耗电数据。In one embodiment, when displaying the applications according to the power consumption data, the power consumption of each application can be obtained according to the power consumption data, and the applications and the corresponding power consumption can be displayed in order according to the power consumption from high to low data.
在展示各个应用对应的耗电数据时,可以只展示耗电量超过一定阈值的应用及对应的耗电数据,耗电数据可以以百分比的形式进行展示,例如,可以只展示耗电5%以上的应用及对应的耗电数据。When displaying the power consumption data corresponding to each application, you can only display the applications with power consumption exceeding a certain threshold and the corresponding power consumption data. The power consumption data can be displayed in the form of a percentage. For example, you can only display power consumption above 5%. applications and corresponding power consumption data.
上述实施例,可以直观地对耗电的应用以及对应的耗电数据进行展示,方便用户获知正在耗电的应用以及对应的耗电量,可以提高用户体验。The above embodiments can intuitively display power-consuming applications and corresponding power consumption data, so that users can easily know power-consuming applications and corresponding power consumption, and user experience can be improved.
在一个实施例中,在根据耗电数据展示所述各个应用时,可以按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, when displaying the various applications according to the power consumption data, a specified number of applications and corresponding power consumption data may be displayed in sequence from high power consumption to low power consumption.
在根据耗电数据展示所述各个应用时,可以以图标的形式对各个应用进行展示,可以根据展示界面以及各个应用图标的大小来确定应用展示的数量。例如,可以根据耗电量对各个应用进行降序排列,在展示区域可以展示排名前十的应用及对应的耗电数据。When displaying the various applications according to the power consumption data, the various applications may be displayed in the form of icons, and the number of displayed applications may be determined according to the display interface and the size of the respective application icons. For example, various applications may be sorted in descending order according to power consumption, and the top ten applications and corresponding power consumption data may be displayed in the display area.
在展示区域展示高耗电量的主要耗电应用,不浪费展示区域面积,方便用户快速获知正在耗电的高耗电应用以及对应的耗电量,可以提高用户体验。Displaying the main power-consuming applications with high power consumption in the display area does not waste the area of the display area, so that users can quickly know the high power-consuming applications that are consuming power and the corresponding power consumption, which can improve user experience.
在一个实施例中,还可以通过以下步骤展示耗电数据:当电子设备处于息屏状态时,根据耗电数据获取各个应用的耗电量,并在展示充电状态时,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, the power consumption data can also be displayed through the following steps: when the electronic device is in the off-screen state, obtain the power consumption of each application according to the power consumption data, and when displaying the charging state, according to the power consumption from high to high Display the specified number of applications and corresponding power consumption data in order from low to low.
电子设备在息屏状态下进行充电时,若检测到充电操作,会在显示界面上亮屏进行充电状态的展示。例如,电子设备会亮屏展示充电图标,或亮屏在主界面顶部的电池标识处展示充电状态。在展示充电状态的同时,可以在界面上展示耗电量较高的应用,以及应用对应的耗电数据。用户在查看到电子设备处于充电状态的同时,可以查看到在电子设备的前台或后台运行的耗电应用。若电子设备设置了屏幕锁,在亮屏后可以不用对电子设备进行解锁,直接对耗电应用进行关闭。When the electronic device is charging with the screen off, if a charging operation is detected, the display interface will light up to display the charging status. For example, the electronic device will turn on the screen to display a charging icon, or turn on the screen to display the charging status at the battery logo at the top of the main interface. While displaying the charging status, applications with high power consumption and the corresponding power consumption data of the applications can be displayed on the interface. When the user checks that the electronic device is in a charging state, he can also check the power-consuming applications running in the foreground or background of the electronic device. If the electronic device is set with a screen lock, the power-consuming application may be directly closed without unlocking the electronic device after the screen is turned on.
上述实施例,电子设备在息屏状态下检测到充电操作,自动在展示充电状态时,按照耗电量从高到低自动在显示界面上展示指定数量的应用及对应的耗电数据,可以方便用户查看耗电数据,并根据耗电数据对应用进行关闭操作。在电子设备设置了屏幕锁时,不需要对对电子设备进行解锁,即可对耗电应用进行关闭,方便用户操作。In the above embodiment, the electronic device detects the charging operation in the off-screen state, and automatically displays the specified number of applications and corresponding power consumption data on the display interface according to the power consumption from high to low when displaying the charging state, which can be convenient The user checks the power consumption data, and closes the application according to the power consumption data. When the screen lock is set on the electronic device, the power-consuming application can be closed without unlocking the electronic device, which is convenient for the user to operate.
在一个实施例中,可以通过以下步骤展示耗电数据:当电子设备处于亮屏状态时,根据所述耗电数据获取各个应用的耗电量,以悬浮窗的形式,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, the power consumption data can be displayed through the following steps: when the electronic device is in the bright screen state, the power consumption of each application is obtained according to the power consumption data, in the form of a floating window, according to the power consumption from high to high Display the specified number of applications and corresponding power consumption data in order from low to low.
有时用户需要电子设备在亮屏状态下进行充电,例如,在电子设备正在播放视频时电量不足,需要对电子设备进行充电操作。若此时检测到充电操作,电子设备可以边运行应用边在显示界面上以悬浮窗的形式对耗电应用及对应的耗电数据进行展示。例如,电子设备可以在视频播放界面上以悬浮窗的形式同时展示耗电应用及对应的耗电数据,也可以先对正在播放的视频进行暂停操作,再在响应耗电应用的关闭操作之后,将悬浮窗自动进行关闭,并继续视频的正常播放。Sometimes the user needs to charge the electronic device when the screen is on. For example, when the electronic device is playing a video, the battery is low and the electronic device needs to be charged. If a charging operation is detected at this time, the electronic device may display the power consumption application and the corresponding power consumption data in the form of a floating window on the display interface while running the application. For example, the electronic device can simultaneously display the power-consuming application and the corresponding power-consuming data in the form of a floating window on the video playback interface, or can first pause the video being played, and then respond to the closing operation of the power-consuming application. The floating window is automatically closed, and the normal playback of the video continues.
在电子设备亮屏状态下,以悬浮窗的形式在运用运行界面上对耗电应用及对应的耗电数据进行展示,可以不用再手动退出运行界面并调出耗电应用及对应的耗电数据,方便用户操作,另外,在响应耗电应用的关闭操作之后,将悬浮窗自动进行关闭,方便用户继续使用当前运行的应用,提高用户体验。When the screen of the electronic device is on, power-consuming applications and corresponding power-consumption data are displayed on the operating interface in the form of a floating window, so that it is no longer necessary to manually exit the operating interface and call out power-consuming applications and corresponding power-consumption data , which is convenient for the user to operate. In addition, after responding to the closing operation of the power-consuming application, the floating window is automatically closed, so that the user can continue to use the currently running application and improve user experience.
在一个实施例中,可以通过以下步骤对目标应用进行关闭:响应作用于所述各个应用中的至少一个目标应用的所述关闭操作,关闭所述目标应用。In one embodiment, the target application may be closed by the following steps: closing the target application in response to the closing operation acting on at least one target application among the various applications.
上述实施例,可以获取各个应用中处于选中状态的至少一个目标应用;响应作用于至少一个目标应用的关闭操作,关闭目标应用。如图3a所示,可以在展示区域通过响应用户的全选或个别选中操作使目标应用处于选中状态,并通过响应关闭按钮选项对选中的目标应用进行关闭。展示区域可以展示预设数量的应用及对应的耗电数据,也可以通过如图3b,在展示区域添加滚动条的形式,将耗电量超过一定阈值的应用及对应的耗电数据全部进行展示。In the above embodiment, at least one target application in a selected state among various applications may be obtained; and in response to a closing operation acting on at least one target application, the target application is closed. As shown in FIG. 3a, the target application can be selected in the display area by responding to the user's selection all or individually, and the selected target application can be closed by responding to the close button option. The display area can display a preset number of applications and corresponding power consumption data, or add a scroll bar to the display area as shown in Figure 3b to display all applications with power consumption exceeding a certain threshold and the corresponding power consumption data .
通过上述方式对目标应用进行关闭,可以在电子设备处于充电状态时,通过响应作用于目标应用的关闭操作对目标应用进行一键关闭,减少了电子设备系统响应次数,也减少电子设备充电时应用运行所带来的电量损耗,提高了电子设备的充电速度。By closing the target application in the above way, when the electronic device is in the charging state, the target application can be closed with one click by responding to the closing operation acting on the target application, which reduces the number of system responses of the electronic device, and also reduces the number of applications when the electronic device is charging. The power loss caused by operation increases the charging speed of electronic devices.
在一个实施例中,还可以通过以下步骤对目标应用进行关闭:响应作用于各个应用中的一个目标应用的关闭操作,关闭目标应用。In an embodiment, the target application may also be closed through the following steps: closing the target application in response to a closing operation acting on a target application among the various applications.
如图4a所示,在电子设备检测到本机处于充电状态时,可以直接在显示界面的展示区域上按耗电量排序显示预设数量的应用以及对应的耗电数据,可以在应用图标的右上角显示关闭快捷按钮,可以通过直接响应一个目标应用的关闭操作对目标应用进行一键关闭。同时,如图4b所示,也可以在展示区域的右上角显示关闭快捷按钮,通过响应展示区域的右上角的关闭快捷按钮的关闭操作,可以将展示区域内展示的所有耗电应用进行一键关闭。As shown in Figure 4a, when the electronic device detects that the machine is in the charging state, it can directly display a preset number of applications and the corresponding power consumption data in the display area of the display interface in order of power consumption. The close shortcut button is displayed in the upper right corner, and the target application can be closed with one click by directly responding to the close operation of a target application. At the same time, as shown in Figure 4b, a close shortcut button can also be displayed in the upper right corner of the display area. By responding to the closing operation of the close shortcut button in the upper right corner of the display area, all power-consuming applications displayed in the display area can be one-clicked. closure.
上述实施例,通过上述方式对目标应用进行关闭,可以在电子设备处于充电状态时,通过响应作用于目标应用的关闭操作对目标应用进行一键关闭,减少了电子设备系统响应次数,减少电子设备充电时应用运行所带来的电量损耗,提高了电子设备的充电速度。In the above embodiment, by closing the target application in the above manner, when the electronic device is in the charging state, the target application can be closed with one key in response to the closing operation acting on the target application, which reduces the number of system responses of the electronic device and reduces the number of electronic devices. The power loss caused by running applications during charging improves the charging speed of electronic devices.
在一个实施例中,电子设备在统计各个应用耗电数据的同时可以对各个应用的运行时长进行统计。运行时长较长的应用可以认为是用户经常使用的应用,运行时长较短的应用可以认为是用户不经常使用的应用。可以将运行时长小于预设的运行时长阈值且耗电量大于预设的耗电量阈值的应用认为是耗电量大并且不经常使用的应用,可以提示优先关闭该类应用。In one embodiment, the electronic device may collect statistics on the running time of each application while counting the power consumption data of each application. An application with a long running time may be considered as an application frequently used by the user, and an application with a short running time may be considered as an application not frequently used by the user. An application whose running time is less than a preset running time threshold and whose power consumption is greater than the preset power consumption threshold may be considered as an application that consumes a lot of power and is not frequently used, and a prompt may be prompted to close such applications first.
通过提示优先关闭该运行时长小于预设的运行时长阈值且耗电量大于预设的耗电量阈值的应用可以帮助用户合理地做出应用关闭选择,也可以更好地加快电子设备的充电速度。By prompting to preferentially close the application whose running time is less than the preset running time threshold and whose power consumption is greater than the preset power consumption threshold, the user can make a reasonable choice to close the application, and it can also better speed up the charging speed of the electronic device. .
在一个实施例中,可以统计用户关闭的后台应用,并将该应用保存到数据库。当下次充电时,若检测到数据库中的应用在后台运行,可以不对数据库中这些应用的耗电数据进行统计,直接将数据库中的应用进行关闭。In one embodiment, the background applications closed by the user can be counted, and the applications can be saved to the database. When charging next time, if it is detected that the applications in the database are running in the background, the applications in the database may be directly closed without counting the power consumption data of these applications in the database.
通过自动关闭保存在数据库中的应用可以减少统计该类应用耗电数据所占用的内存资源,并可以减少用户的重复操作。By automatically closing the applications stored in the database, the memory resources occupied by the statistics of power consumption data of such applications can be reduced, and repeated operations of the user can be reduced.
在一个实施例中,可以在电子设备上设置应用白名单,用户可以对白名单内的应用进行添加或删除,用户可以将高频率使用的程序添加到应用白名单中。例如,用户可以将邮件应用添加到应用白名单中,用户可以在工作过程中需要充电的情况下,依然可以使用邮件应用,且可以实时检测是否有新的邮件被接收,因此,可以允许该应用经常在后台运行。In one embodiment, an application whitelist can be set on the electronic device, and the user can add or delete applications in the whitelist, and the user can add frequently used programs to the application whitelist. For example, the user can add the mail application to the application whitelist, the user can still use the mail application when the user needs to charge during work, and can detect in real time whether a new mail is received, so the application can be allowed Often run in the background.
在电子设备上设置应用白名单,可以保证在电子设备充电过程中,不影响用户正常使用应用白名单内的应用。Setting the application whitelist on the electronic device can ensure that the user's normal use of applications in the application whitelist will not be affected during the charging process of the electronic device.
在一个实施例中,当检测到电子设备处于充电状态时,可以检测电子设备的剩余电量,也可以获取电子设备的充电时长,当电子设备的剩余电量小于电量阈值且充电时长到达指定时长时,获取电子设备上运行的各个应用对应的耗电数据。可以在电子设备的显示界面上按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。响应作用于各个应用中的一个或多个目标应用的关闭操作,关闭目标应用。例如,在剩余电量超过30%,充电时长超过5秒(S)时,在电子设备的显示界面上展示耗电量排名前十的应用及应用对应的耗电数据,响应用户对排名第二和第五的目标应用的关闭操作,关闭目标应用。In one embodiment, when it is detected that the electronic device is in the charging state, the remaining power of the electronic device can be detected, and the charging time of the electronic device can also be obtained. When the remaining power of the electronic device is less than the power threshold and the charging time reaches a specified time, The power consumption data corresponding to each application running on the electronic device is acquired. A specified number of applications and corresponding power consumption data may be displayed on the display interface of the electronic device in descending order of power consumption. In response to a close operation acting on one or more of the respective applications, the target application is closed. For example, when the remaining power exceeds 30% and the charging time exceeds 5 seconds (S), display the top ten power consumption applications and the power consumption data corresponding to the applications on the display interface of the electronic device, and respond to the user's concerns about the second and second rankings. The fifth closing operation of the target application is to close the target application.
上述实施例,可以在电子设备处于充电状态时,自动对正在运行的应用及对应的耗电数据进行直观的展示,并可以通过响应作用于目标应用的关闭操作对目标应用进行一键关闭,减少了电子设备系统响应次数,减少电子设备充电时应用运行所带来的电量损耗,提高了电子设备的充电速度。In the above-mentioned embodiment, when the electronic device is in the charging state, the running applications and the corresponding power consumption data can be automatically and visually displayed, and the target application can be closed with one key in response to the closing operation acting on the target application, reducing It improves the response times of the electronic device system, reduces the power loss caused by the application running when the electronic device is charging, and improves the charging speed of the electronic device.
应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart of FIG. 2 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in FIG. 2 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The order is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
图5为一个实施例的应用处理装置的结构框图。如图5所示,该应用处理装置包括:Fig. 5 is a structural block diagram of an application processing device according to an embodiment. As shown in Figure 5, the application processing device includes:
获取模块502,用于当检测到电子设备处于充电状态,则获取电子设备上运行的各个应用对应的耗电数据;An acquisition module 502, configured to acquire power consumption data corresponding to each application running on the electronic device when it is detected that the electronic device is in a charging state;
展示模块504,用于根据耗电数据展示各个应用;A display module 504, configured to display various applications according to power consumption data;
响应模块506,用于响应作用于从各个应用中所选中的目标应用的关闭操作,关闭目标应用。The response module 506 is configured to close the target application in response to a close operation acting on the target application selected from various applications.
上述应用处理装置,可以在电子设备处于充电状态时,自动对正在运行的各个应用进行直观的展示,并可以通过响应作用于目标应用的关闭操作对目标应用进行关闭,减少电子设备充电时应用程序运行所带来的电量损耗,提高了电子设备的充电速度。The above-mentioned application processing device can automatically and intuitively display various running applications when the electronic device is in the charging state, and can close the target application by responding to the closing operation acting on the target application, thereby reducing the number of application programs when the electronic device is charging. The power loss caused by operation increases the charging speed of electronic devices.
在一个实施例中,获取模块502可以包括剩余电量检测模块和第一比较模块。其中,剩余电量检测模块用于当检测到电子设备处于充电状态,检测电子设备的剩余电量是否小于电量阈值;第一比较模块用于当电子设备的剩余电量小于电量阈值时,获取电子设备上运行的各个应用对应的耗电数据。In one embodiment, the obtaining module 502 may include a remaining power detection module and a first comparison module. Among them, the remaining power detection module is used to detect whether the remaining power of the electronic device is less than the power threshold when it is detected that the electronic device is in a charging state; Power consumption data corresponding to each application.
在一个实施例中,获取模块502可以包括充电时长获取模块和第二比较模块,其中,充电时长获取模块用于当检测到电子设备处于充电状态,获取电子设备的充电时长;第二比较模块用于当充电时长到达指定时长,则获取电子设备上运行的各个应用对应的耗电数据。In one embodiment, the obtaining module 502 may include a charging duration obtaining module and a second comparison module, wherein the charging duration obtaining module is used to obtain the charging duration of the electronic device when it is detected that the electronic device is in a charging state; the second comparing module uses When the charging duration reaches the specified duration, the power consumption data corresponding to each application running on the electronic device is acquired.
在一个实施例中,展示模块504还用于根据所述耗电数据获取各个应用的耗电量,按照耗电量从高到低依次展示所述各个应用及对应的耗电数据。In one embodiment, the display module 504 is further configured to obtain the power consumption of each application according to the power consumption data, and display the applications and the corresponding power consumption data in sequence from high power consumption to low power consumption.
在一个实施例中,展示模块504还用于当电子设备处于息屏状态时,根据所述耗电数据获取各个应用的耗电量,在展示充电状态时,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, the display module 504 is also used to obtain the power consumption of each application according to the power consumption data when the electronic device is in the off-screen state, and when displaying the charging state, order the power consumption from high to low Display the specified number of applications and the corresponding power consumption data.
在一个实施例中,展示模块504还用于当电子设备处于亮屏状态时,根据所述耗电数据获取各个应用的耗电量,以悬浮窗的形式,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, the display module 504 is also used to obtain the power consumption of each application according to the power consumption data when the electronic device is in the bright screen state, in the form of a floating window, in order of power consumption from high to low Display the specified number of applications and the corresponding power consumption data.
在一个实施例中,响应模块506还用于响应作用于所述各个应用中的至少一个目标应用的所述关闭操作,关闭所述目标应用。In one embodiment, the response module 506 is further configured to close the target application in response to the closing operation acting on at least one target application among the applications.
上述应用处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将应用处理装置按照需要划分为不同的模块,以完成上述应用处理装置的全部或部分功能。The division of each module in the above application processing device is only for illustration. In other embodiments, the application processing device may be divided into different modules according to needs, so as to complete all or part of the functions of the above application processing device.
关于应用处理装置的具体限定可以参见上文中对于应用处理方法的限定,在此不再赘述。上述应用处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the application processing apparatus, refer to the above-mentioned limitations on the application processing method, which will not be repeated here. Each module in the above-mentioned application processing device may be fully or partially implemented by software, hardware or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
本申请实施例中提供的应用处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the application processing device provided in the embodiment of the present application may be in the form of a computer program. The computer program can run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are realized.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行以下步骤:The embodiment of the present application also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to:
当检测到电子设备处于充电状态,则获取电子设备上运行的各个应用对应的耗电数据;When it is detected that the electronic device is in a charging state, the power consumption data corresponding to each application running on the electronic device is obtained;
根据耗电数据展示各个应用;Display each application according to the power consumption data;
响应作用于从各个应用中所选中的目标应用的关闭操作,关闭目标应用。In response to a close operation applied to the target application selected from among the applications, the target application is closed.
在一个实施例中,当计算机可执行指令被一个或多个处理器执行时,还使得处理器执行以下步骤:当检测到电子设备处于充电状态,检测电子设备的剩余电量是否小于电量阈值;当电子设备的剩余电量小于电量阈值时,获取电子设备上运行的各个应用对应的耗电数据。In one embodiment, when the computer-executable instructions are executed by one or more processors, the processors are further made to perform the following steps: when detecting that the electronic device is in a charging state, detecting whether the remaining power of the electronic device is less than the power threshold; When the remaining power of the electronic device is less than the power threshold, the power consumption data corresponding to each application running on the electronic device is acquired.
在一个实施例中,当计算机可执行指令被一个或多个处理器执行时,还使得处理器执行以下步骤:当检测到电子设备处于充电状态,获取电子设备的充电时长;当充电时长到达指定时长,则获取电子设备上运行的各个应用对应的耗电数据。In one embodiment, when the computer-executable instructions are executed by one or more processors, the processors are also made to perform the following steps: when it is detected that the electronic device is in the charging state, obtain the charging duration of the electronic device; when the charging duration reaches the specified duration, the power consumption data corresponding to each application running on the electronic device is obtained.
在一个实施例中,当计算机可执行指令被一个或多个处理器执行时,还使得处理器执行以下步骤:根据所述耗电数据获取各个应用的耗电量,按照耗电量从高到低依次展示所述各个应用及对应的耗电数据。In one embodiment, when the computer-executable instructions are executed by one or more processors, the processors are further made to perform the following steps: acquire the power consumption of each application according to the power consumption data, in order of power consumption from high to The various applications and corresponding power consumption data are displayed in sequence.
在一个实施例中,当计算机可执行指令被一个或多个处理器执行时,还使得处理器执行以下步骤:当电子设备处于息屏状态时,根据所述耗电数据获取各个应用的耗电量,在展示充电状态时,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, when the computer-executable instructions are executed by one or more processors, the processors are further made to perform the following steps: when the electronic device is in the off-screen state, obtain the power consumption of each application according to the power consumption data When displaying the charging status, the specified number of applications and corresponding power consumption data are displayed in order of power consumption from high to low.
在一个实施例中,当计算机可执行指令被一个或多个处理器执行时,还使得处理器执行以下步骤:当电子设备处于亮屏状态时,根据所述耗电数据获取各个应用的耗电量,以悬浮窗的形式,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, when the computer-executable instructions are executed by one or more processors, the processors are further made to perform the following steps: when the electronic device is in the screen-on state, obtain the power consumption of each application according to the power consumption data Amount, in the form of a floating window, displays the specified number of applications and the corresponding power consumption data in order of power consumption from high to low.
在一个实施例中,当计算机可执行指令被一个或多个处理器执行时,还使得处理器执行以下步骤:响应作用于所述各个应用中的至少一个目标应用的所述关闭操作,关闭所述目标应用。In one embodiment, when the computer-executable instructions are executed by one or more processors, the processors are further caused to perform the following step: in response to the closing operation acting on at least one target application among the applications, closing all target application.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以下步骤:A computer program product containing instructions which, when run on a computer, cause the computer to perform the following steps:
当检测到电子设备处于充电状态,则获取电子设备上运行的各个应用对应的耗电数据;When it is detected that the electronic device is in a charging state, the power consumption data corresponding to each application running on the electronic device is obtained;
根据耗电数据展示各个应用;Display each application according to the power consumption data;
响应作用于从各个应用中所选中的目标应用的关闭操作,关闭目标应用。In response to a close operation applied to the target application selected from among the applications, the target application is closed.
本申请实施例还提供了一种电子设备。如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:The embodiment of the present application also provides an electronic device. As shown in FIG. 6 , for the convenience of description, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The electronic device can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc., taking the electronic device as a mobile phone as an example :
图6为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图6,手机包括:存储器610、输入单元620、显示单元630、处理器640、检测单元650、以及电源660等部件。本领域技术人员可以理解,图6所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 6 is a block diagram of a partial structure of a mobile phone related to the electronic device provided by the embodiment of the present application. Referring to FIG. 6 , the mobile phone includes: a memory 610 , an input unit 620 , a display unit 630 , a processor 640 , a detection unit 650 , and a power supply 660 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
其中,存储器610可用于存储软件程序以及模块,处理器640通过运行存储在存储器610的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器610可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器610可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Wherein, the memory 610 can be used to store software programs and modules, and the processor 640 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 610 . The memory 610 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.); The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.) and the like. In addition, the memory 610 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元620可用于接收输入的数字或字符信息,以及产生与手机600的用户设置以及功能控制有关的键信号输入。具体地,输入单元620可包括触控面板621以及其他输入设备622。触控面板621,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板621上或在触控面板621附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板621可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器640,并能接收处理器640发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板621。除了触控面板621,输入单元620还可以包括其他输入设备622。具体地,其他输入设备622可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 620 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 600 . Specifically, the input unit 620 may include a touch panel 621 and other input devices 622 . The touch panel 621, which can also be referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 621 or near the touch panel 621 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 621 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 640, and can receive and execute commands sent by the processor 640. In addition, the touch panel 621 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 621 , the input unit 620 may also include other input devices 622 . Specifically, other input devices 622 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元630可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元630可包括显示面板631。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板631。在一个实施例中,触控面板621可覆盖显示面板631,当触控面板621检测到在其上或附近的触摸操作后,传送给处理器640以确定触摸事件的类型,随后处理器640根据触摸事件的类型在显示面板631上提供相应的视觉输出。虽然在图6中,触控面板621与显示面板631是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板621与显示面板631集成而实现手机的输入和输出功能。The display unit 630 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 630 may include a display panel 631 . In one embodiment, the display panel 631 may be configured in the form of a Liquid Crystal Display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 621 can cover the display panel 631, and when the touch panel 621 detects a touch operation on or near it, it is sent to the processor 640 to determine the type of the touch event, and then the processor 640 according to the The type of touch event provides a corresponding visual output on the display panel 631 . Although in FIG. 6 , the touch panel 621 and the display panel 631 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 621 and the display panel 631 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
处理器640是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器610内的软件程序和/或模块,以及调用存储在存储器610内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器640可包括一个或多个处理单元。在一个实施例中,处理器640可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器640中。The processor 640 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 610, and calling data stored in the memory 610, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 640 may include one or more processing units. In one embodiment, the processor 640 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc.; the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 640 .
手机600还包括给各个部件供电的电源690(比如电池),优选的,电源660可以通过电源管理系统与处理器640逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源660也可以通过检测单元与处理器640相连接,检测单元用于检测电源是否处于充电状态,并在检测到电源处于充电状态时,处理器640调用存储在存储器610中的各个应用对应的耗电数据,并输出至显示单元630的显示面板631上进行展示,输入单元620可以接收用户在触控面板621上的关闭目标应用操作,并由处理器640进行响应关闭目标应用的操作指令,将目标应用进行关闭。The mobile phone 600 also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply 660 can be logically connected to the processor 640 through a power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system. . The power supply 660 may also be connected to the processor 640 through a detection unit, the detection unit is used to detect whether the power supply is in the charging state, and when detecting that the power supply is in the charging state, the processor 640 calls the power consumption corresponding to each application stored in the memory 610. The electrical data is output to the display panel 631 of the display unit 630 for display. The input unit 620 can receive the user's operation on the touch panel 621 to close the target application, and the processor 640 responds to the operation command to close the target application, and the The target application is closed.
在一个实施例中,手机600还可以包括摄像头、蓝牙模块等。In an embodiment, the mobile phone 600 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该电子设备所包括的处理器640执行存储在存储器上的计算机程序时实现以下步骤:In the embodiment of the present application, the processor 640 included in the electronic device implements the following steps when executing the computer program stored in the memory:
当检测到电子设备处于充电状态,则获取电子设备上运行的各个应用对应的耗电数据;When it is detected that the electronic device is in a charging state, the power consumption data corresponding to each application running on the electronic device is obtained;
展示各个应用及对应的耗电数据;Display each application and the corresponding power consumption data;
响应作用于从各个应用中所选中的目标应用的关闭操作,关闭目标应用。In response to a close operation applied to the target application selected from among the applications, the target application is closed.
在一个实施例中,还实现以下步骤:当检测到电子设备处于充电状态,检测所述电子设备的剩余电量是否小于电量阈值;当所述电子设备的剩余电量小于电量阈值时,获取所述电子设备上运行的各个应用对应的耗电数据。In one embodiment, the following steps are further implemented: when it is detected that the electronic device is in a charging state, detect whether the remaining power of the electronic device is less than the power threshold; when the remaining power of the electronic device is less than the power threshold, obtain the electronic Power consumption data corresponding to each application running on the device.
在一个实施例中,还实现以下步骤:In one embodiment, the following steps are also implemented:
当检测到电子设备处于充电状态,获取所述电子设备的充电时长;当所述充电时长到达指定时长,则获取所述电子设备上运行的各个应用对应的耗电数据。When it is detected that the electronic device is in the charging state, the charging duration of the electronic device is obtained; when the charging duration reaches a specified duration, the power consumption data corresponding to each application running on the electronic device is obtained.
在一个实施例中,还实现以下步骤:根据所述耗电数据获取各个应用的耗电量,按照耗电量从高到低依次展示所述各个应用及对应的耗电数据。In one embodiment, the following steps are further implemented: acquiring the power consumption of each application according to the power consumption data, and displaying the applications and the corresponding power consumption data in order according to the power consumption from high to low.
在一个实施例中,还实现以下步骤:当电子设备处于息屏状态时,根据所述耗电数据获取各个应用的耗电量,在展示充电状态时,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, the following steps are further implemented: when the electronic device is in the off-screen state, obtain the power consumption of each application according to the power consumption data, and display the power consumption in order from high to low when displaying the charging state A specified number of applications and corresponding power consumption data.
在一个实施例中,还实现以下步骤:当电子设备处于亮屏状态时,根据所述耗电数据获取各个应用的耗电量,以悬浮窗的形式,按照耗电量从高到低依次展示指定数量的应用及对应的耗电数据。In one embodiment, the following steps are further implemented: when the electronic device is in the bright screen state, obtain the power consumption of each application according to the power consumption data, and display them sequentially in the form of a floating window according to power consumption from high to low A specified number of applications and corresponding power consumption data.
在一个实施例中,还实现以下步骤:响应作用于所述各个应用中的至少一个目标应用的所述关闭操作,关闭所述目标应用。In one embodiment, the following step is further implemented: closing the target application in response to the closing operation acting on at least one target application among the applications.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810444034.8A CN108762467A (en) | 2018-05-10 | 2018-05-10 | Application processing method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810444034.8A CN108762467A (en) | 2018-05-10 | 2018-05-10 | Application processing method and device, electronic equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108762467A true CN108762467A (en) | 2018-11-06 |
Family
ID=64009521
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810444034.8A Pending CN108762467A (en) | 2018-05-10 | 2018-05-10 | Application processing method and device, electronic equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108762467A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109587558A (en) * | 2018-11-27 | 2019-04-05 | Oppo广东移动通信有限公司 | Video processing method, video processing device, electronic equipment and storage medium |
| CN111338452A (en) * | 2020-02-05 | 2020-06-26 | Tcl移动通信科技(宁波)有限公司 | Method and system for simulating accelerated charging of USB flash disk, storage medium and mobile terminal |
| CN112634808A (en) * | 2020-12-23 | 2021-04-09 | 广州三星通信技术研究有限公司 | Screen brightness adjusting method and device |
| CN113889680A (en) * | 2020-07-03 | 2022-01-04 | 北京小米移动软件有限公司 | Battery charging method and device, and storage medium |
| CN114048112A (en) * | 2021-11-22 | 2022-02-15 | 维沃移动通信有限公司 | Display method and device and electronic equipment |
| CN114461050A (en) * | 2020-11-09 | 2022-05-10 | Oppo广东移动通信有限公司 | Device operating method, apparatus, electronic device, and computer-readable storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110208911A1 (en) * | 2009-08-04 | 2011-08-25 | Hitachi, Ltd. | Storage system, control method thereof, and program |
| CN104346256A (en) * | 2013-07-23 | 2015-02-11 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring power consumption information of application program and mobile terminal |
| CN104991634A (en) * | 2015-07-20 | 2015-10-21 | 小米科技有限责任公司 | Terminal control method and device |
| CN107168615A (en) * | 2017-06-20 | 2017-09-15 | 北京金山安全软件有限公司 | Charging optimization method and device, electronic equipment and storage medium |
| CN107577522A (en) * | 2017-09-30 | 2018-01-12 | 广东欧珀移动通信有限公司 | Application control method, apparatus, storage medium and electronic equipment |
| CN107889203A (en) * | 2017-11-27 | 2018-04-06 | 珠海市魅族科技有限公司 | A kind of electricity saving method, device, computer installation and computer-readable recording medium |
-
2018
- 2018-05-10 CN CN201810444034.8A patent/CN108762467A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110208911A1 (en) * | 2009-08-04 | 2011-08-25 | Hitachi, Ltd. | Storage system, control method thereof, and program |
| CN104346256A (en) * | 2013-07-23 | 2015-02-11 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring power consumption information of application program and mobile terminal |
| CN104991634A (en) * | 2015-07-20 | 2015-10-21 | 小米科技有限责任公司 | Terminal control method and device |
| CN107168615A (en) * | 2017-06-20 | 2017-09-15 | 北京金山安全软件有限公司 | Charging optimization method and device, electronic equipment and storage medium |
| CN107577522A (en) * | 2017-09-30 | 2018-01-12 | 广东欧珀移动通信有限公司 | Application control method, apparatus, storage medium and electronic equipment |
| CN107889203A (en) * | 2017-11-27 | 2018-04-06 | 珠海市魅族科技有限公司 | A kind of electricity saving method, device, computer installation and computer-readable recording medium |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109587558A (en) * | 2018-11-27 | 2019-04-05 | Oppo广东移动通信有限公司 | Video processing method, video processing device, electronic equipment and storage medium |
| CN111338452A (en) * | 2020-02-05 | 2020-06-26 | Tcl移动通信科技(宁波)有限公司 | Method and system for simulating accelerated charging of USB flash disk, storage medium and mobile terminal |
| CN111338452B (en) * | 2020-02-05 | 2023-08-18 | 深圳盛科威电子有限公司 | Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk |
| CN113889680A (en) * | 2020-07-03 | 2022-01-04 | 北京小米移动软件有限公司 | Battery charging method and device, and storage medium |
| CN114461050A (en) * | 2020-11-09 | 2022-05-10 | Oppo广东移动通信有限公司 | Device operating method, apparatus, electronic device, and computer-readable storage medium |
| CN112634808A (en) * | 2020-12-23 | 2021-04-09 | 广州三星通信技术研究有限公司 | Screen brightness adjusting method and device |
| CN112634808B (en) * | 2020-12-23 | 2023-11-21 | 广州三星通信技术研究有限公司 | Screen brightness adjustment method and device |
| CN114048112A (en) * | 2021-11-22 | 2022-02-15 | 维沃移动通信有限公司 | Display method and device and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108762467A (en) | Application processing method and device, electronic equipment and computer readable storage medium | |
| US9230507B2 (en) | System and method for transitioning an electronic device from a first power mode to a second power mode | |
| CA2762681C (en) | System and method for reducing power consumption in an electronic device having a touch-sensitive display | |
| CN104156171A (en) | Method and device for preventing touch key misoperations in landscape screen state of mobile terminal | |
| CN108733298B (en) | Touch information processing method and device, storage medium and electronic equipment | |
| CN106919824B (en) | Fingerprint unlocking control method and device and computer equipment | |
| US11460971B2 (en) | Control method and electronic device | |
| CA2884202A1 (en) | Activation of an electronic device with a capacitive keyboard | |
| CN105720644A (en) | Charging control method and device and terminal device | |
| CN105549811A (en) | Terminal interface display method and device based on protective cover window | |
| CN107302633A (en) | application control method, device, storage medium and electronic equipment | |
| CN101616217A (en) | A method and device for displaying key information | |
| CN107132949A (en) | anti-interference method, device, terminal and storage medium | |
| CN110377414A (en) | Method and device for adjusting capacitive touch screen, terminal and storage medium | |
| CN107562356B (en) | Fingerprint identification positioning method and device, storage medium and electronic equipment | |
| CN106791170B (en) | Network processing method, device and terminal | |
| CN106933576B (en) | Terminal unlocking method and device and computer equipment | |
| CN106775296B (en) | A terminal control method and device | |
| CN107277906B (en) | Mode selection method, device, terminal and computer readable storage medium | |
| CN102915179B (en) | A kind of mobile terminal opens the quick method of running background program | |
| CN108021416A (en) | A kind of method and terminal of media resource loading | |
| CN107291213B (en) | Mode selection method, apparatus, terminal, and computer-readable storage medium | |
| CN106451670B (en) | A charging control method, device and terminal equipment | |
| CN107039689B (en) | Electronic device including battery and method of controlling electronic device to charge battery | |
| CN106791089B (en) | Method and device for indicating battery power |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |
|
| RJ01 | Rejection of invention patent application after publication |