WO2020206703A1 - Terminal control method and apparatus, storage medium, and electronic device - Google Patents

Terminal control method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2020206703A1
WO2020206703A1 PCT/CN2019/082572 CN2019082572W WO2020206703A1 WO 2020206703 A1 WO2020206703 A1 WO 2020206703A1 CN 2019082572 W CN2019082572 W CN 2019082572W WO 2020206703 A1 WO2020206703 A1 WO 2020206703A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
group
electronic device
power consumption
application
Prior art date
Application number
PCT/CN2019/082572
Other languages
French (fr)
Chinese (zh)
Inventor
陆天洋
张寅祥
帅朝春
吴建文
戴堃
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/082572 priority Critical patent/WO2020206703A1/en
Priority to CN201980092359.7A priority patent/CN113439252B/en
Publication of WO2020206703A1 publication Critical patent/WO2020206703A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Definitions

  • This application belongs to the technical field of electronic equipment, and in particular relates to a terminal control method, device, storage medium and electronic equipment.
  • the Android system includes an application standby grouping function.
  • the application standby grouping function is a power management function.
  • the application standby group includes the following five groups: Active, Working Set, Frequent, Rare, and App is not frequently used.
  • the system divides each application into one of the above groups according to its usage, and each group has different restrictions on the scheduling of device resources.
  • the embodiments of the present application provide a terminal control method, device, storage medium, and electronic equipment, which can improve the flexibility of the electronic equipment to adjust application standby grouping.
  • this embodiment provides a terminal control method applied to an electronic device, the operating system of the electronic device includes an application standby group, and the method includes:
  • the application standby group is adjusted.
  • this embodiment provides a terminal control device applied to an electronic device, the operating system of the electronic device includes an application standby group, and the device includes:
  • a statistics module configured to count the power consumption rate of the electronic device
  • the detection module is used to detect whether the power consumption speed is greater than a preset speed threshold
  • the adjustment module is configured to adjust the application standby group if it is detected that the power consumption speed is greater than a preset speed threshold.
  • this embodiment provides a storage medium on which a computer program is stored, wherein when the computer program is executed on a computer, the computer is caused to execute the process in the terminal control method provided in this embodiment.
  • this embodiment provides an electronic device including a memory and a processor, the operating system of the electronic device includes an application standby group, and the processor is configured to execute: by calling a computer program stored in the memory:
  • the application standby group is adjusted.
  • Fig. 1 is a schematic flowchart of a terminal control method provided by an embodiment of the present application.
  • FIG. 2 is another schematic flowchart of a terminal control method provided by an embodiment of the present application.
  • 3 to 4 are schematic diagrams of scenarios of the terminal control method provided by the embodiments of the present application.
  • Fig. 5 is a schematic structural diagram of a terminal control device provided by an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
  • the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
  • FIG. 1 is a schematic flowchart of a terminal control method provided by an embodiment of the present application.
  • the terminal control method can be applied to an electronic device, and the operating system of the electronic device can include an application standby grouping function.
  • the process of the terminal control method may include:
  • the power consumption rate is counted.
  • the Android operating system provides multiple power management functions for electronic devices.
  • Application standby grouping is one of the power management functions.
  • the application standby group includes the following five groups: active (applications are being used), work (applications are used frequently), frequently used (applications are frequently used but not every day), rarely (applications are rarely used), Occasionally (applications are used occasionally).
  • the system divides each application into one of the above groups according to its usage, and each group has different restrictions on the scheduling of device resources. Among them, in terms of the ability to schedule device resources, active groups, working groups, frequently used groups, very few groups, and occasional groups decrease in order. For example, the scheduling capability of the device resource of the application in the active group is configured to be stronger than that of the working group. The scheduling capability of the device resources of the applications that are divided into the work group is configured to be stronger than that of the common group.
  • the electronic device divides applications A and B into work groups, application C into common groups, application D into very few groups, and application E into occasional groups.
  • the electronic device can adjust the application standby grouping according to the latest usage of applications A, B, C, D, and E.
  • application B is rarely used, so the electronic device can adjust application B from the original work group to frequently-used groups or very few groups or occasional groups.
  • Which group application B will be adjusted to is not specifically limited here. Take the adjustment of application B from work grouping to common grouping as an example. After the adjustment, the scheduling ability of application B for device resources such as CPU and network becomes weaker, that is, the electronic device will place more restrictions on application B's calling of device resources.
  • application D is rarely used during this period of time, so the electronic device can adjust application D from the original minimal grouping to occasional grouping.
  • the device of the Android system divides an application into a certain group of the above five groups according to the usage behavior of the application, that is, the flexibility of the device to adjust the standby group of the application is poor.
  • the electronic device may first count its power consumption rate.
  • the electronic device can detect whether the power consumption rate is greater than a preset speed threshold.
  • the electronic device can perform other operations.
  • the power consumption rate of the electronic device is greater than the preset speed threshold, it can be considered that the power consumption rate of the electronic device is faster. In this case, you can enter 103.
  • the application standby group is adjusted.
  • the electronic device can be triggered to adjust the application standby grouping at this time.
  • the current power consumption rate of the electronic device reaches a rate that consumes 1% of the total battery capacity per minute, and the preset speed threshold is a rate that consumes 1% of the total battery capacity every two minutes.
  • the electronic device can readjust its application standby grouping.
  • the electronic device may reclassify some applications that were originally divided into working groups (Working Set) into frequently used groups (Frequent).
  • the embodiment of the present application can adjust the application standby grouping when the power consumption rate of the electronic device is greater than the preset speed threshold, thereby improving the flexibility of the electronic device to adjust the application standby grouping.
  • FIG. 2 is a schematic flowchart of another terminal control method according to an embodiment of the application.
  • the terminal control method can be applied to an electronic device, and the operating system of the electronic device can include an application standby grouping function.
  • the process of the terminal control method may include:
  • the electronic device obtains the remaining power value.
  • the electronic device can first obtain its remaining power value.
  • the current remaining power value acquired by the electronic device is 50% of the total battery capacity.
  • the electronic device may obtain the remaining power value once every predetermined period of time. For example, the electronic device may obtain the remaining power value every 20 minutes.
  • the electronic device After obtaining the remaining power value, the electronic device can detect whether the remaining power value is lower than a preset power threshold.
  • the electronic device can perform other operations.
  • the electronic device counts the power consumption rate.
  • the preset power threshold is 60% of the total battery capacity, and the current remaining power of the electronic device is 50% of the total battery capacity, the remaining power value is lower than the preset power threshold. In this case, it can be considered that the remaining power of the electronic device is low, and the electronic device can count the power consumption rate at this time.
  • the electronic device detects whether the power consumption speed is greater than a preset speed threshold.
  • the electronic device can detect whether the power consumption rate is greater than a preset speed threshold.
  • the electronic device can perform other operations.
  • the electronic device determines the target quantity according to the power consumption speed, where the faster the power consumption speed, the larger the value of the target quantity.
  • the electronic device detects that its current power consumption rate is greater than the preset speed threshold, it can be considered that the power consumption of the electronic device is relatively fast. Since the current remaining power is already low, when the power consumption rate is fast, the electronic device can determine a quantity, that is, the target quantity, according to the power consumption rate. Among them, the faster the power consumption, the larger the value of the target quantity.
  • the electronic device counts that its current power consumption rate has reached 1% of the total battery capacity per minute, and the preset speed threshold is 1% of the total battery capacity consumed every two minutes, that is, the current power consumption The speed exceeds the preset speed threshold.
  • the electronic device can first determine a target number according to the current power consumption rate.
  • the electronic device adjusts one or more preset first group applications into a preset second group, wherein the preset first group and the preset second group are both application standby groups And the scheduling capability of the application of the preset first group to the resources of the electronic device is configured to be stronger than the preset second group.
  • the electronic device may adjust the applications originally divided into the preset first group into the preset second group according to the target quantity.
  • the preset first group and the preset second group are both application standby groups, and the scheduling ability of the application of the preset first group to electronic device resources is configured to be stronger than the application pair of the preset second group The ability to dispatch electronic equipment resources.
  • the foregoing preset first group may be one or more groups.
  • the preset first group may only be a working group.
  • the preset first group may include a work group and a common group.
  • the preset first group may include a working group, a frequently used group, and a very rare group.
  • the preset first group may include frequently used groups and rare groups, and so on. This embodiment does not specifically limit the number of groups included in the preset first group, and does not specifically limit which group the preset first group is.
  • the preset first group may be a working group (Working Set) in the application standby group
  • the preset second group may be a frequent group (Frequent) or a rare group (Rare).
  • the target number determined by the electronic device is 8. Then, the electronic device can re-divide certain 8 applications that were originally divided into work groups into common groups.
  • applications A, B, C, D, E, F, G, and H were originally divided into work groups in the application standby group.
  • the electronic device can adjust the applications A, B, C, D, E, F, G, and H from the work group to the common group. It is understandable that because the working group in the application standby group has a stronger ability to schedule device resources than the commonly used group, by adjusting the application from the working group to the commonly used group, more applications can be restricted from scheduling device resources. Save power consumption when the power of the electronic device is insufficient.
  • the preset first group includes a working group and a common group
  • the preset second group is a rare group.
  • the working group includes applications O, P, and Q
  • the common group includes applications R, S, and T.
  • the electronic device can adjust both the application O in the working group and the applications R and S in the common group into very few groups. It is understandable that because the working group and common group in the application standby group have a stronger ability to schedule device resources than the minimal group, by adjusting the application from the working group and some applications in the common group to the minimal group, you can limit More applications are used to schedule device resources, thereby saving power consumption when the power of electronic devices is insufficient.
  • each group in the application standby grouping function of the electronic device has different levels according to its ability to schedule resources of the electronic device. For example, since the active group (Active) has the strongest scheduling capability for electronic device resources, the active group has the highest level of scheduling capability for electronic device resources. Since the scheduling capability of the working set for electronic device resources is second only to the active group, the working set ranks second in the scheduling capability of the electronic device resources. In the same way, the Frequent group (Frequent) ranks at the third level in terms of the ability to schedule electronic device resources, and the Rare group ranks the fourth level in terms of the ability to dispatch electronic device resources. Occasionally grouping (App is not frequently used) ranks fifth in the ability to dispatch electronic equipment resources.
  • the embodiment of the present application may further include the following process: the electronic device detects whether the power consumption speed is less than the target speed threshold, where the target speed threshold is greater than Preset speed threshold.
  • the process of adjusting one or more preset first grouping applications to the preset second grouping may include: if the power consumption rate is less than the target speed threshold, the electronic device groups one or more preset first groups The application of is adjusted to a preset second group, where the scheduling capability of the preset second group and the preset first group for electronic device resources differs by one level.
  • the electronic device may also detect whether the power consumption rate is greater than the target speed threshold.
  • the target speed threshold is greater than the preset speed threshold.
  • the preset speed threshold is to consume 1% of the total battery capacity every two minutes, and the target speed threshold is to consume 1.5% of the total battery capacity every minute.
  • the electronic device can adjust the application of one or more preset first groups to the preset second group, where the preset second group and the preset first group have an effect on the resources of the electronic device
  • the scheduling capability differs by only one level.
  • the first group is preset to be a working group (Working Set)
  • the second group is preset to be a frequently used group (Frequent).
  • the embodiment of the present application may further include the following process:
  • the electronic device adjusts the application of one or more preset first groups to the preset second group, wherein the preset second group is paired with the preset first group
  • the scheduling capabilities of electronic equipment resources differ by at least two levels.
  • the electronic device may also detect whether the power consumption rate is greater than the target speed threshold.
  • the target speed threshold is greater than the preset speed threshold.
  • the preset speed threshold is to consume 1% of the total battery capacity every two minutes, and the target speed threshold is to consume 1.5% of the total battery capacity every minute.
  • the electronic device can adjust the application of the preset first group to the preset second group, where the difference between the preset second group and the preset first group's scheduling capability for electronic device resources is at least Two levels.
  • the preset first group is a working group (Working Set)
  • the preset second group is a rare group (Rare).
  • the preset first group is a working group (Working Set)
  • the preset second group is an occasional group (App is not frequently used).
  • the electronic device may also adjust a part of the applications from the preset first group to the preset second group, and change another part of the applications from the preset first group Adjust to the preset third group.
  • the device resource scheduling capability of the preset first group is configured to be stronger than the preset second group
  • the device resource scheduling capability of the preset second group is configured to be stronger than the preset third group, and so on.
  • the electronic device may first obtain the current geographic location information and the value of the environmental parameter, and detect whether the electronic device is located outdoors according to the geographic location and the value of the environmental parameter. If it is detected that the electronic device is located outdoors, the electronic device can count its power consumption rate again, and trigger the electronic device to adjust the application standby group when the power consumption rate is greater than the preset speed threshold.
  • FIG. 3 to FIG. 4 are schematic diagrams of scenarios of the terminal control method provided by the embodiments of the application.
  • the electronic device may obtain the remaining power value at a preset time interval, and detect whether the remaining power value is lower than the preset power threshold. For example, as shown in Figure 3, the electronic device obtains that its current remaining power value is 50% of the total battery capacity, and the preset power threshold is 60% of the total battery capacity, that is, the remaining power value is lower than the preset power threshold. At this time, it can be considered that the remaining power of the electronic device is low.
  • the electronic device can count its power consumption rate. For example, the electronic device may obtain the current first moment and the first remaining power value. For example, the time at this time is 10:00 (that is, the first time), and the remaining power value is 50% of the total battery capacity (that is, the first remaining power value), as shown in FIG. 3.
  • the electronic device can obtain the second remaining power value.
  • the remaining power value of the electronic device at 10:05 ie, the second time
  • the total battery capacity ie, the second remaining power value
  • the electronic device may calculate the power consumption rate of the electronic device according to the first remaining power value and the second remaining power value, as well as the first time and the second time. For example, the time interval between the first time and the second time is 5 minutes, and the difference between the first remaining power value and the second remaining power value is 8% of the total battery capacity. Then, the electronic device can calculate that its power consumption rate is 1.6% of the total battery capacity per minute.
  • the electronic device can detect whether the power consumption rate is greater than a preset speed threshold. For example, the preset speed threshold is to consume 1% of the total battery capacity every two minutes. Then, if the current power consumption rate of the electronic device exceeds the preset speed threshold, it can be considered that the power consumption rate of the electronic device is relatively fast. In the case where the power of the electronic device is low and the power consumption rate is relatively fast, in this embodiment, the electronic device can readjust the application standby grouping. For example, the electronic device can be re-divided into the Frequent group (Frequent) with a part of the application originally divided into the Working Set.
  • a preset speed threshold is to consume 1% of the total battery capacity every two minutes. Then, if the current power consumption rate of the electronic device exceeds the preset speed threshold, it can be considered that the power consumption rate of the electronic device is relatively fast.
  • the electronic device can readjust the application standby grouping. For example, the electronic device can be re-divided into the Frequent group (F
  • the terminal control device 300 may include: a statistics module 301, a detection module 302, and an adjustment module 303.
  • the statistics module 301 is used to count the power consumption rate of the electronic device.
  • the detection module 302 is configured to detect whether the power consumption speed is greater than a preset speed threshold.
  • the adjustment module 303 is configured to adjust the application standby group if it is detected that the power consumption speed is greater than a preset speed threshold.
  • the adjustment module 303 when performing adjustment of the application standby grouping, may be used to:
  • the application of one or more preset first groups is adjusted to a preset second group, wherein the preset first group and the preset second group both belong to the application standby group, and the preset second group
  • the scheduling capability of the electronic device resource of the application of a group is configured to be stronger than the preset second group.
  • the adjustment module 303 when performing the adjustment of one or more applications of the preset first group to the preset second group, the adjustment module 303 may be configured to:
  • the application of the preset first group is adjusted to the preset second group.
  • the adjustment module 303 when performing the determination of the target quantity, may be used to:
  • the target quantity is determined according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity.
  • the statistics module 301 may also be used for:
  • the statistics module 301 may be further configured to: if the remaining power value is lower than a preset power threshold value, count the power consumption rate of the electronic device.
  • each group in the application standby group has a different level according to the scheduling capability of the electronic device resource.
  • the detection module 302 may be further configured to: detect whether the power consumption speed is less than a target speed threshold, where: The target speed threshold is greater than the preset speed threshold.
  • the adjustment module 303 may be configured to: if the power consumption speed is less than the target speed threshold, Then, the application of one or more preset first groups is adjusted to the preset second group, where the scheduling capabilities of the preset second group and the preset first group for electronic device resource scheduling differ by one level.
  • the adjustment module 303 may be further configured to:
  • one or more preset first group applications are adjusted to a preset second group, wherein the preset second group and the preset It is assumed that the scheduling capabilities of the first group for electronic device resources differ by at least two levels.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed on a computer, the computer is caused to execute the process in the terminal control method provided in this embodiment.
  • An embodiment of the present application also provides an electronic device, including a memory and a processor, and the processor is configured to execute a process in the terminal control method provided in this embodiment by calling a computer program stored in the memory.
  • the aforementioned electronic device may be a mobile terminal such as a tablet computer or a smart phone.
  • FIG. 6, is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 400 may include a charging module 401, a memory 402, a processor 403 and other components.
  • a charging module 401 may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the charging module 401 can be used to charge the electronic device, and the power obtained by charging can be used to support the operation of the electronic device.
  • the charging module 401 may include a battery and the like.
  • the memory 402 can be used to store application programs and data.
  • the application program stored in the memory 402 contains executable code.
  • Application programs can be composed of various functional modules.
  • the processor 403 executes various functional applications and data processing by running application programs stored in the memory 402.
  • the processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or executing the application program stored in the memory 402 and calling the data stored in the memory 402. The various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
  • the operating system of the electronic device includes an application standby group, and the processor 403 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions. And the processor 403 runs the application program stored in the memory 402 to execute:
  • the application standby group is adjusted.
  • the electronic device 500 may include components such as a charging module 501, a memory 502, a processor 503, and a display screen 504.
  • the charging module 501 can be used to charge the electronic device, and the power obtained by charging can be used to support the operation of the electronic device.
  • the charging module 501 may include a battery and the like.
  • the memory 502 can be used to store application programs and data.
  • the application program stored in the memory 502 contains executable code.
  • Application programs can be composed of various functional modules.
  • the processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
  • the processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502
  • the various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
  • the display screen 504 can be used to display information such as images and text.
  • the operating system of the electronic device includes an application standby group, and the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions. And the processor 503 runs the application program stored in the memory 502 to execute:
  • the application standby group is adjusted.
  • the processor 503 when the processor 503 executes the adjustment of the application standby grouping, it may execute: adjusting one or more preset first grouping applications to the preset second grouping, where: Both the preset first group and the preset second group belong to application standby groups, and the scheduling ability of the application of the preset first group to the resources of the electronic device is configured to be stronger than the preset first group Two groups.
  • the processor 503 when the processor 503 executes the adjustment of one or more applications of the preset first group to the preset second group, it may execute: determine the target quantity; according to the target quantity, The application of the preset first group is adjusted to the preset second group.
  • the processor 503 when the processor 503 executes the determination of the target quantity, it may execute: determine the target quantity according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity. Big.
  • the processor 503 may further execute: acquiring the remaining power value of the electronic device.
  • the processor 503 executes the counting of the power consumption rate of the electronic device, it may execute: if the remaining power value is lower than a preset power threshold, then the power consumption rate of the electronic device is counted.
  • each group in the application standby group has a different level according to the scheduling capability of the electronic device resource.
  • the processor 503 may further execute: detecting whether the power consumption speed is less than a target speed threshold, where the The target speed threshold is greater than the preset speed threshold.
  • the processor 503 executes the adjustment of one or more preset first grouping applications into the preset second grouping, it may execute: if the power consumption speed is less than the target speed threshold, then one or more The application of the first preset group is adjusted to the preset second group, wherein the scheduling capability of the preset second group and the preset first group for electronic device resource scheduling differs by one level.
  • the processor 503 may further execute: if the power consumption speed is greater than or equal to the target speed threshold, perform one or more presets It is assumed that the application of the first group is adjusted to the preset second group, wherein the scheduling capability of the preset second group and the preset first group differs by at least two levels in scheduling capabilities of the electronic device resources.
  • the terminal control device provided in this embodiment of the application belongs to the same concept as the terminal control method in the above embodiment. Any method provided in the terminal control method embodiment can be run on the terminal control device. For the implementation process, refer to the embodiment of the terminal control method, which will not be repeated here.
  • the terminal control method described in the embodiment of the present application a person of ordinary skill in the art can understand that all or part of the process of implementing the terminal control method described in the embodiment of the present application can be controlled by a computer program.
  • the computer program may be stored in a computer readable storage medium, such as stored in a memory, and executed by at least one processor.
  • the execution process may include the procedure of the embodiment of the terminal control method.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.
  • the terminal control device of the embodiment of the present application its functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

Embodiments of the present application provide a terminal control method, applied to an electronic device. The operating system of the electronic device comprises application standby buckets. The terminal control method comprises: collecting statistics about the power consumption speed of the electronic device; detecting whether the power consumption speed is greater than a preset speed threshold; and if it is detected that the power consumption speed is greater than the preset speed threshold, adjusting the application standby buckets.

Description

终端控制方法、装置、存储介质及电子设备Terminal control method, device, storage medium and electronic equipment 技术领域Technical field
本申请属于电子设备技术领域,尤其涉及一种终端控制方法、装置、存储介质及电子设备。This application belongs to the technical field of electronic equipment, and in particular relates to a terminal control method, device, storage medium and electronic equipment.
背景技术Background technique
目前,很多移动电子设备使用安卓(Android)操作系统。其中,安卓系统中包含应用待机分组功能。应用待机分组功能是一项电量管理功能。应用待机分组包含如下五个分组,分别为:活跃(Active)、工作(Working Set)、常用(Frequent)、极少(Rare)、偶尔(App is not frequently used)。系统会根据每个应用的使用情况,将其划分至上述分组中的一个,而每个分组对设备资源的调度各有不同的限制。Currently, many mobile electronic devices use the Android operating system. Among them, the Android system includes an application standby grouping function. The application standby grouping function is a power management function. The application standby group includes the following five groups: Active, Working Set, Frequent, Rare, and App is not frequently used. The system divides each application into one of the above groups according to its usage, and each group has different restrictions on the scheduling of device resources.
发明内容Summary of the invention
本申请实施例提供一种终端控制方法、装置、存储介质及电子设备,可以提高电子设备对应用待机分组进行调整的灵活性。The embodiments of the present application provide a terminal control method, device, storage medium, and electronic equipment, which can improve the flexibility of the electronic equipment to adjust application standby grouping.
第一方面,本实施例提供一种终端控制方法,应用于电子设备,所述电子设备的操作系统包含应用待机分组,所述方法包括:In a first aspect, this embodiment provides a terminal control method applied to an electronic device, the operating system of the electronic device includes an application standby group, and the method includes:
统计所述电子设备的电量消耗速度;Count the power consumption rate of the electronic equipment;
检测所述电量消耗速度是否大于预设速度阈值;Detecting whether the power consumption speed is greater than a preset speed threshold;
若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。If it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
第二方面,本实施例提供一种终端控制装置,应用于电子设备,所述电子设备的操作系统包含应用待机分组,所述装置包括:In a second aspect, this embodiment provides a terminal control device applied to an electronic device, the operating system of the electronic device includes an application standby group, and the device includes:
统计模块,用于统计所述电子设备的电量消耗速度;A statistics module, configured to count the power consumption rate of the electronic device;
检测模块,用于检测所述电量消耗速度是否大于预设速度阈值;The detection module is used to detect whether the power consumption speed is greater than a preset speed threshold;
调整模块,用于若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。The adjustment module is configured to adjust the application standby group if it is detected that the power consumption speed is greater than a preset speed threshold.
第三方面,本实施例提供一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行本实施例提供的终端控制方法中的流程。In a third aspect, this embodiment provides a storage medium on which a computer program is stored, wherein when the computer program is executed on a computer, the computer is caused to execute the process in the terminal control method provided in this embodiment.
第四方面,本实施例提供一种电子设备,包括存储器,处理器,所述电子设备的操作系统包含应用待机分组,所述处理器通过调用所述存储器中存储的计算机程序,用于执行:In a fourth aspect, this embodiment provides an electronic device including a memory and a processor, the operating system of the electronic device includes an application standby group, and the processor is configured to execute: by calling a computer program stored in the memory:
统计所述电子设备的电量消耗速度;Count the power consumption rate of the electronic equipment;
检测所述电量消耗速度是否大于预设速度阈值;Detecting whether the power consumption speed is greater than a preset speed threshold;
若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。If it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
附图说明Description of the drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The following detailed description of specific implementations of the present application in conjunction with the accompanying drawings will make the technical solutions of the present application and its beneficial effects obvious.
图1是本申请实施例提供的终端控制方法的流程示意图。Fig. 1 is a schematic flowchart of a terminal control method provided by an embodiment of the present application.
图2是本申请实施例提供的终端控制方法的另一流程示意图。FIG. 2 is another schematic flowchart of a terminal control method provided by an embodiment of the present application.
图3至图4是本申请实施例提供的终端控制方法的场景示意图。3 to 4 are schematic diagrams of scenarios of the terminal control method provided by the embodiments of the present application.
图5是本申请实施例提供的终端控制装置的结构示意图。Fig. 5 is a schematic structural diagram of a terminal control device provided by an embodiment of the present application.
图6是本申请实施例提供的电子设备的结构示意图。Fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图7是本申请实施例提供的电子设备的另一结构示意图。FIG. 7 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, in which the same component symbols represent the same components, and the principle of the present application is implemented in an appropriate computing environment for illustration. The following description is based on the exemplified specific embodiments of the present application, which should not be regarded as limiting other specific embodiments that are not described in detail herein.
可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的电子设备。It can be understood that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
请参阅图1,图1是本申请实施例提供的终端控制方法的流程示意图。该终端控制方法可以应用于电子设备,该电子设备的操作系统可以包含应用待机分组功能。该终端控制方法的流程可以包括:Please refer to FIG. 1, which is a schematic flowchart of a terminal control method provided by an embodiment of the present application. The terminal control method can be applied to an electronic device, and the operating system of the electronic device can include an application standby grouping function. The process of the terminal control method may include:
在101中,统计电量消耗速度。In 101, the power consumption rate is counted.
目前,很多移动电子设备使用安卓操作系统。安卓操作系统为电子设备提供了多项电量管理功能。应用待机分组即属于其中的一项电量管理功能。应用待机分组包含如下五个分组,分别为:活跃(应用正在被使用)、工作(应用 使用频率很高)、常用(应用经常被使用但不是每天)、极少(应用很少被使用)、偶尔(应用偶尔被使用)。系统会根据每个应用的使用情况,将其划分至上述分组中的一个,而每个分组对设备资源的调度各有不同的限制。其中,在对设备资源的调度能力方面,活跃分组、工作分组、常用分组、极少分组以及偶尔分组依次降低。比如,处于活跃分组的应用对设备资源的调度能力被配置为强于工作分组。被划分到工作分组的应用对设备资源的调度能力被配置为强于常用分组。Currently, many mobile electronic devices use the Android operating system. The Android operating system provides multiple power management functions for electronic devices. Application standby grouping is one of the power management functions. The application standby group includes the following five groups: active (applications are being used), work (applications are used frequently), frequently used (applications are frequently used but not every day), rarely (applications are rarely used), Occasionally (applications are used occasionally). The system divides each application into one of the above groups according to its usage, and each group has different restrictions on the scheduling of device resources. Among them, in terms of the ability to schedule device resources, active groups, working groups, frequently used groups, very few groups, and occasional groups decrease in order. For example, the scheduling capability of the device resource of the application in the active group is configured to be stronger than that of the working group. The scheduling capability of the device resources of the applications that are divided into the work group is configured to be stronger than that of the common group.
例如,根据应用的使用情况,电子设备将应用A和B划分到工作分组,将应用C划分到常用分组,将应用D划分到极少分组,将应用E划分到偶尔分组。在经过一段时间的使用后,电子设备可以根据应用A、B、C、D、E最新的使用情况对应用待机分组进行调整。例如,在这段时间内,应用B很少被使用到,那么电子设备可以将应用B由原来所处的工作分组调整到常用分作或者极少分组或者偶尔分组等。应用B会被调整到哪一分组,此处不做具体限定。以应用B由工作分组调整到常用分组为例,调整之后,应用B对诸如CPU和网络等设备资源的调度能力变弱了,即电子设备会对应用B调用设备资源进行更多的限制。又如,应用D在这段时间内也很少被使用到,那么电子设备可以将应用D由原来的极少分组调整到偶尔分组等。For example, according to application usage, the electronic device divides applications A and B into work groups, application C into common groups, application D into very few groups, and application E into occasional groups. After a period of use, the electronic device can adjust the application standby grouping according to the latest usage of applications A, B, C, D, and E. For example, during this period of time, application B is rarely used, so the electronic device can adjust application B from the original work group to frequently-used groups or very few groups or occasional groups. Which group application B will be adjusted to is not specifically limited here. Take the adjustment of application B from work grouping to common grouping as an example. After the adjustment, the scheduling ability of application B for device resources such as CPU and network becomes weaker, that is, the electronic device will place more restrictions on application B's calling of device resources. For another example, application D is rarely used during this period of time, so the electronic device can adjust application D from the original minimal grouping to occasional grouping.
然而,相关技术中,安卓系统的设备是根据应用的使用行为来将某一应用划分到上述五个分组中的某个分组,也即设备对应用待机分组进行调整的灵活性较差。However, in the related art, the device of the Android system divides an application into a certain group of the above five groups according to the usage behavior of the application, that is, the flexibility of the device to adjust the standby group of the application is poor.
在本申请实施例的101中,比如,电子设备可以先统计其电量消耗速度。In 101 of the embodiment of the present application, for example, the electronic device may first count its power consumption rate.
在102中,检测电量消耗速度是否大于预设速度阈值。In 102, it is detected whether the power consumption speed is greater than a preset speed threshold.
比如,在统计得到电量消耗速度后,电子设备可以检测该电量消耗速度是否大于预设速度阈值。For example, after the power consumption rate is obtained by statistics, the electronic device can detect whether the power consumption rate is greater than a preset speed threshold.
如果检测到电子设备的电量消耗速度不大于预设速度阈值,那么可以认为该电子设备的电量消耗速度正常。在这种情况下,电子设备可以执行其它操作。If it is detected that the power consumption rate of the electronic device is not greater than the preset speed threshold, it can be considered that the power consumption rate of the electronic device is normal. In this case, the electronic device can perform other operations.
如果检测到电子设备的电量消耗速度大于预设速度阈值,那么可以认为该电子设备的电量消耗速度较快。在这种情况下,可以进入103中。If it is detected that the power consumption rate of the electronic device is greater than the preset speed threshold, it can be considered that the power consumption rate of the electronic device is faster. In this case, you can enter 103.
在103中,若检测到电量消耗速度大于预设速度阈值,则对应用待机分组进行调整。In 103, if it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
比如,电子设备检测到其电量消耗速度大于预设速度阈值,那么此时可以触发该电子设备对应用待机分组进行调整。For example, if the electronic device detects that its power consumption rate is greater than the preset speed threshold, then the electronic device can be triggered to adjust the application standby grouping at this time.
例如,电子设备当前的电量消耗速度达到了每分钟消耗1%的电池总容量的速度,而预设速度阈值是每两分钟消耗1%的电池总容量的速度。在这种情况下,可以认为电子设备当前的电量消耗速度较快,该电子设备可以对其应用待机分组进行重新调整。例如,电子设备可以将原来被划分至工作分组(Working Set)中的一些应用重新划分到常用分组(Frequent)中。For example, the current power consumption rate of the electronic device reaches a rate that consumes 1% of the total battery capacity per minute, and the preset speed threshold is a rate that consumes 1% of the total battery capacity every two minutes. In this case, it can be considered that the current power consumption rate of the electronic device is relatively fast, and the electronic device can readjust its application standby grouping. For example, the electronic device may reclassify some applications that were originally divided into working groups (Working Set) into frequently used groups (Frequent).
可以理解的是,本申请实施例可以在电子设备的电量消耗速度大于预设速度阈值时,对应用待机分组进行调整,从而提高了电子设备对应用待机分组进行调整的灵活性。It is understandable that the embodiment of the present application can adjust the application standby grouping when the power consumption rate of the electronic device is greater than the preset speed threshold, thereby improving the flexibility of the electronic device to adjust the application standby grouping.
请参阅图2,图2为本申请实施例提供的终端控制方法的另一流程示意图。该终端控制方法可以应用于电子设备,该电子设备的操作系统可以包含应用待机分组功能。该终端控制方法的流程可以包括:Please refer to FIG. 2, which is a schematic flowchart of another terminal control method according to an embodiment of the application. The terminal control method can be applied to an electronic device, and the operating system of the electronic device can include an application standby grouping function. The process of the terminal control method may include:
在201中,电子设备获取剩余电量值。In 201, the electronic device obtains the remaining power value.
比如,电子设备可以先获取其剩余电量值。例如,电子设备获取到的其当前的剩余电量值为电池总容量的50%。For example, the electronic device can first obtain its remaining power value. For example, the current remaining power value acquired by the electronic device is 50% of the total battery capacity.
在一些实施方式中,电子设备可以每隔一段预设时长获取一次剩余电量值。例如,电子设备可以每隔20分钟获取一次剩余电量值。In some implementations, the electronic device may obtain the remaining power value once every predetermined period of time. For example, the electronic device may obtain the remaining power value every 20 minutes.
在获取到剩余电量值后,电子设备可以检测该剩余电量值是否低于预设电量阈值。After obtaining the remaining power value, the electronic device can detect whether the remaining power value is lower than a preset power threshold.
如果检测到剩余电量值不低于预设电量阈值,那么可以认为电子设备的剩余电量仍然较为充足。在这种情况下,电子设备可以执行其它操作。If it is detected that the remaining power value is not lower than the preset power threshold, it can be considered that the remaining power of the electronic device is still relatively sufficient. In this case, the electronic device can perform other operations.
如果检测到剩余电量值低于预设电量阈值,那么可以认为电子设备的剩余电量已经较低。在这种情况下,可以进入202中。If it is detected that the remaining power value is lower than the preset power threshold, it can be considered that the remaining power of the electronic device is already low. In this case, you can enter 202.
在202中,若剩余电量值低于预设电量阈值,则电子设备统计电量消耗速度。In 202, if the remaining power value is lower than the preset power threshold, the electronic device counts the power consumption rate.
比如,预设电量阈值为电池总容量的60%,而电子设备当前的剩余电量值为电池总容量的50%,则剩余电量值低于预设电量阈值。在这种情况下,可以认为电子设备的剩余电量较低,此时电子设备可以统计电量消耗速度。For example, if the preset power threshold is 60% of the total battery capacity, and the current remaining power of the electronic device is 50% of the total battery capacity, the remaining power value is lower than the preset power threshold. In this case, it can be considered that the remaining power of the electronic device is low, and the electronic device can count the power consumption rate at this time.
在203中,电子设备检测电量消耗速度是否大于预设速度阈值。In 203, the electronic device detects whether the power consumption speed is greater than a preset speed threshold.
比如,在统计得到电量消耗速度后,电子设备可以检测该电量消耗速度是否大于预设速度阈值。For example, after the power consumption rate is obtained by statistics, the electronic device can detect whether the power consumption rate is greater than a preset speed threshold.
如果检测到电量消耗速度不大于预设速度阈值,那么可以认为电子设备的电量消耗速度正常。在这种情况下,电子设备可以执行其它操作。If it is detected that the power consumption rate is not greater than the preset speed threshold, it can be considered that the power consumption rate of the electronic device is normal. In this case, the electronic device can perform other operations.
如果检测到电量消耗速度大于预设速度阈值,那么进入204中。If it is detected that the power consumption speed is greater than the preset speed threshold, then enter 204.
在204中,若检测到电量消耗速度大于预设速度阈值,则电子设备根据该电量消耗速度确定目标数量,其中,电量消耗速度越快,目标数量的数值越大。In 204, if it is detected that the power consumption speed is greater than the preset speed threshold, the electronic device determines the target quantity according to the power consumption speed, where the faster the power consumption speed, the larger the value of the target quantity.
比如,电子设备检测到其当前的电量消耗速度大于预设速度阈值,那么可以认为该电子设备的电量消耗较快。由于当前的剩余电量已经较低,因此在电量消耗速度较快的情况下,电子设备可以根据该电量消耗速度确定一数量,即目标数量。其中,电量消耗速度越快,目标数量的数值越大。For example, if the electronic device detects that its current power consumption rate is greater than the preset speed threshold, it can be considered that the power consumption of the electronic device is relatively fast. Since the current remaining power is already low, when the power consumption rate is fast, the electronic device can determine a quantity, that is, the target quantity, according to the power consumption rate. Among them, the faster the power consumption, the larger the value of the target quantity.
例如,电子设备统计到其当前的电量消耗速度达到了每分钟消耗电池总容量的1%的电量,而预设速度阈值为每两分钟消耗电池总容量的1%的电量,即当前的电量消耗速度超过了预设速度阈值。在这种情况下,电子设备可以根据当前的电量消耗速度先确定一目标数量。For example, the electronic device counts that its current power consumption rate has reached 1% of the total battery capacity per minute, and the preset speed threshold is 1% of the total battery capacity consumed every two minutes, that is, the current power consumption The speed exceeds the preset speed threshold. In this case, the electronic device can first determine a target number according to the current power consumption rate.
在205中,按照目标数量,电子设备将一个或多个预设第一分组的应用调整到预设第二分组中,其中,该预设第一分组和预设第二分组均属于应用待机分组,且该预设第一分组的应用对电子设备资源的调度能力被配置为强于该预设第二分组。In 205, according to the target number, the electronic device adjusts one or more preset first group applications into a preset second group, wherein the preset first group and the preset second group are both application standby groups And the scheduling capability of the application of the preset first group to the resources of the electronic device is configured to be stronger than the preset second group.
比如,在确定出目标数量后,电子设备可以按照该目标数量将原来被划分至预设第一分组的应用调整到预设第二分组中。其中,该预设第一分组和预设第二分组均属于应用待机分组,并且该预设第一分组的应用对电子设备资源的调度能力被配置为强于该预设第二分组的应用对电子设备资源的调度能力。For example, after the target quantity is determined, the electronic device may adjust the applications originally divided into the preset first group into the preset second group according to the target quantity. Wherein, the preset first group and the preset second group are both application standby groups, and the scheduling ability of the application of the preset first group to electronic device resources is configured to be stronger than the application pair of the preset second group The ability to dispatch electronic equipment resources.
需要说明的是,上述预设第一分组可以是一个或多个分组。例如,预设第一分组可以仅为工作分组。或者,预设第一分组可以包括工作分组和常用分组。或者,预设第一分组可以包括工作分组、常用分组和极少分组。或者,预设第一分组可以包括常用分组和极少分组,等等。本实施例对预设第一分组包括的分组数量不做具体限定,对预设第一分组为哪一分组也不做具体限定。It should be noted that the foregoing preset first group may be one or more groups. For example, the preset first group may only be a working group. Alternatively, the preset first group may include a work group and a common group. Alternatively, the preset first group may include a working group, a frequently used group, and a very rare group. Alternatively, the preset first group may include frequently used groups and rare groups, and so on. This embodiment does not specifically limit the number of groups included in the preset first group, and does not specifically limit which group the preset first group is.
例如,预设第一分组可以为应用待机分组中的工作分组(Working Set),预设第二分组可以为常用分组(Frequent)或者极少分组(Rare)。例如,电子 设备确定出的目标数量为8。那么,电子设备可以将原来被划分至工作分组中的某8个应用重新划分到常用分组中。For example, the preset first group may be a working group (Working Set) in the application standby group, and the preset second group may be a frequent group (Frequent) or a rare group (Rare). For example, the target number determined by the electronic device is 8. Then, the electronic device can re-divide certain 8 applications that were originally divided into work groups into common groups.
例如,应用A、B、C、D、E、F、G、H原来被划分到应用待机分组中的工作分组中。在上述情况下,电子设备可以将应用A、B、C、D、E、F、G、H由工作分组调整到常用分组。可以理解的是,由于应用待机分组中的工作分组对设备资源的调度能力强于常用分组,因此通过将应用由工作分组调整到常用分组,可以限制更多的应用对设备资源的调度,从而在电子设备电量不足的情况下节省功耗。For example, applications A, B, C, D, E, F, G, and H were originally divided into work groups in the application standby group. In the above case, the electronic device can adjust the applications A, B, C, D, E, F, G, and H from the work group to the common group. It is understandable that because the working group in the application standby group has a stronger ability to schedule device resources than the commonly used group, by adjusting the application from the working group to the commonly used group, more applications can be restricted from scheduling device resources. Save power consumption when the power of the electronic device is insufficient.
又如,预设第一分组包括工作分组和常用分组,预设第二分组为极少分组。其中,工作分组中包括应用O、P、Q,常用分组中包括应用R、S、T。那么,当对应用待机分组进行调整时,电子设备可以将工作分组中的应用O以及常用分组中的应用R、S均调整到极少分组中。可以理解的是,由于应用待机分组中的工作分组和常用分组对设备资源的调度能力强于极少分组,因此通过将应用由工作分组和常用分组中的部分应用调整到极少分组,可以限制更多的应用对设备资源的调度,从而在电子设备电量不足的情况下节省功耗。For another example, the preset first group includes a working group and a common group, and the preset second group is a rare group. Among them, the working group includes applications O, P, and Q, and the common group includes applications R, S, and T. Then, when the application standby group is adjusted, the electronic device can adjust both the application O in the working group and the applications R and S in the common group into very few groups. It is understandable that because the working group and common group in the application standby group have a stronger ability to schedule device resources than the minimal group, by adjusting the application from the working group and some applications in the common group to the minimal group, you can limit More applications are used to schedule device resources, thereby saving power consumption when the power of electronic devices is insufficient.
在一种实施方式中,电子设备的应用待机分组功能中的各个分组按照其对电子设备资源的调度能力大小具有不同的等级。比如,由于活跃分组(Active)对电子设备资源的调度能力最强,因此活跃分组在对电子设备资源的调度能力方面具有最高的等级。由于工作分组(Working Set)对电子设备资源的调度能力仅次于活跃分组,因此工作分组在对电子设备资源的调度能力方面居于第二个等级。同理,常用分组(Frequent)在对电子设备资源的调度能力方面居于第三个等级,极少分组(Rare)在对电子设备资源的调度能力方面居于第四个等级,偶尔分组(App is not frequently used)在对电子设备资源的调度能力方面居于第五个等级。In one embodiment, each group in the application standby grouping function of the electronic device has different levels according to its ability to schedule resources of the electronic device. For example, since the active group (Active) has the strongest scheduling capability for electronic device resources, the active group has the highest level of scheduling capability for electronic device resources. Since the scheduling capability of the working set for electronic device resources is second only to the active group, the working set ranks second in the scheduling capability of the electronic device resources. In the same way, the Frequent group (Frequent) ranks at the third level in terms of the ability to schedule electronic device resources, and the Rare group ranks the fourth level in terms of the ability to dispatch electronic device resources. Occasionally grouping (App is not frequently used) ranks fifth in the ability to dispatch electronic equipment resources.
那么,在将预设第一分组的应用调整到预设第二分组中之前,本申请实施例还可以包括如下流程:电子设备检测电量消耗速度是否小于目标速度阈值,其中,该目标速度阈值大于预设速度阈值。Then, before the application of the preset first group is adjusted to the preset second group, the embodiment of the present application may further include the following process: the electronic device detects whether the power consumption speed is less than the target speed threshold, where the target speed threshold is greater than Preset speed threshold.
而将一个或多个预设第一分组的应用调整到预设第二分组中的流程,则可以包括:若电量消耗速度小于目标速度阈值,则电子设备将一个或多个预设第一分组的应用调整到预设第二分组中,其中,该预设第二分组与该预设第一分 组对电子设备资源的调度能力相差一个等级。The process of adjusting one or more preset first grouping applications to the preset second grouping may include: if the power consumption rate is less than the target speed threshold, the electronic device groups one or more preset first groups The application of is adjusted to a preset second group, where the scheduling capability of the preset second group and the preset first group for electronic device resources differs by one level.
比如,在检测到电子设备的电量消耗速度大于预设速度阈值后,电子设备还可以检测其电量消耗速度是否大于目标速度阈值。其中,该目标速度阈值大于该预设速度阈值。例如,预设速度阈值为每两分钟消耗电池总容量1%的电量,目标速度阈值为每分钟消耗电池总容量1.5%的电量。For example, after detecting that the power consumption rate of the electronic device is greater than the preset speed threshold, the electronic device may also detect whether the power consumption rate is greater than the target speed threshold. Wherein, the target speed threshold is greater than the preset speed threshold. For example, the preset speed threshold is to consume 1% of the total battery capacity every two minutes, and the target speed threshold is to consume 1.5% of the total battery capacity every minute.
如果检测到电子设备当前的电量消耗速度大于预设速度阈值而小于目标速度阈值,例如电子设备当前的电量消耗速度达到了每分钟消耗电池总容量的1%的电量,那么可以认为电子设备当前的电量消耗速度比较快。在这种情况下,电子设备可以将一个或多个预设第一分组的应用调整到预设第二分组中,其中,该预设第二分组与该预设第一分组对电子设备资源的调度能力仅相差一个等级。例如,预设第一分组为工作分组(Working Set),预设第二分组为常用分组(Frequent)。If it is detected that the current power consumption rate of the electronic device is greater than the preset speed threshold but less than the target speed threshold, for example, the current power consumption rate of the electronic device reaches 1% of the total battery capacity per minute, then the current power consumption of the electronic device can be considered The power consumption rate is relatively fast. In this case, the electronic device can adjust the application of one or more preset first groups to the preset second group, where the preset second group and the preset first group have an effect on the resources of the electronic device The scheduling capability differs by only one level. For example, the first group is preset to be a working group (Working Set), and the second group is preset to be a frequently used group (Frequent).
在一种实施方式中,在电子设备检测电量消耗速度是否小于目标速度阈值之后,本申请实施例还可以包括如下流程:In an implementation manner, after the electronic device detects whether the power consumption speed is less than the target speed threshold, the embodiment of the present application may further include the following process:
若电量消耗速度大于或等于目标速度阈值,则电子设备将一个或多个预设第一分组的应用调整到预设第二分组中,其中,该预设第二分组与预设第一分组对电子设备资源的调度能力相差至少两个等级。If the power consumption speed is greater than or equal to the target speed threshold, the electronic device adjusts the application of one or more preset first groups to the preset second group, wherein the preset second group is paired with the preset first group The scheduling capabilities of electronic equipment resources differ by at least two levels.
比如,在检测到电子设备的电量消耗速度大于预设速度阈值后,电子设备还可以检测其电量消耗速度是否大于目标速度阈值。其中,该目标速度阈值大于该预设速度阈值。例如,预设速度阈值为每两分钟消耗电池总容量1%的电量,目标速度阈值为每分钟消耗电池总容量1.5%的电量。For example, after detecting that the power consumption rate of the electronic device is greater than the preset speed threshold, the electronic device may also detect whether the power consumption rate is greater than the target speed threshold. Wherein, the target speed threshold is greater than the preset speed threshold. For example, the preset speed threshold is to consume 1% of the total battery capacity every two minutes, and the target speed threshold is to consume 1.5% of the total battery capacity every minute.
如果检测到电子设备当前的电量消耗速度大于目标速度阈值,例如电子设备当前的电量消耗速度达到了每分钟消耗电池总容量的1.6%的电量,那么可以认为电子设备当前的电量消耗速度非常快。在这种情况下,电子设备可以将预设第一分组的应用调整到预设第二分组中,其中,该预设第二分组与该预设第一分组对电子设备资源的调度能力相差至少两个等级。例如,预设第一分组为工作分组(Working Set),预设第二分组为极少分组(Rare)。或者,预设第一分组为工作分组(Working Set),而预设第二分组为偶尔分组(App is not frequently used)。If it is detected that the current power consumption rate of the electronic device is greater than the target speed threshold, for example, the current power consumption rate of the electronic device reaches 1.6% of the total battery capacity consumed per minute, then it can be considered that the current power consumption rate of the electronic device is very fast. In this case, the electronic device can adjust the application of the preset first group to the preset second group, where the difference between the preset second group and the preset first group's scheduling capability for electronic device resources is at least Two levels. For example, the preset first group is a working group (Working Set), and the preset second group is a rare group (Rare). Or, the preset first group is a working group (Working Set), and the preset second group is an occasional group (App is not frequently used).
在另一种实施方式中,当需要对应用待机分组进行调整时,电子设备也可 以将一部分应用由预设第一分组调整到预设第二分组中,将另一部分应用由预设第一分组调整到预设第三分组中。其中,预设第一分组的设备资源调度能力被配置为强于预设第二分组,而预设第二分组的设备资源调度能力被配置为强于预设第三分组,等等。In another embodiment, when the application standby grouping needs to be adjusted, the electronic device may also adjust a part of the applications from the preset first group to the preset second group, and change another part of the applications from the preset first group Adjust to the preset third group. The device resource scheduling capability of the preset first group is configured to be stronger than the preset second group, and the device resource scheduling capability of the preset second group is configured to be stronger than the preset third group, and so on.
在另一种实施方式中,电子设备可以首先获取当前的地理位置信息和环境参数的数值,并根据该地理位置和环境参数的数值来检测该电子设备是否位于户外。如果检测到该电子设备位于户外,那么电子设备可以再统计其电量消耗速度,并在电量消耗速度大于预设速度阈值时,触发电子设备对应用待机分组进行调整。In another implementation manner, the electronic device may first obtain the current geographic location information and the value of the environmental parameter, and detect whether the electronic device is located outdoors according to the geographic location and the value of the environmental parameter. If it is detected that the electronic device is located outdoors, the electronic device can count its power consumption rate again, and trigger the electronic device to adjust the application standby group when the power consumption rate is greater than the preset speed threshold.
请参阅图3至图4,图3至图4为本申请实施例提供的终端控制方法的场景示意图。Please refer to FIG. 3 to FIG. 4. FIG. 3 to FIG. 4 are schematic diagrams of scenarios of the terminal control method provided by the embodiments of the application.
比如,电子设备可以按照预设时间间隔获取剩余电量值,并检测该剩余电量值是否低于预设电量阈值。例如,如图3所示,电子设备获取到其当前的剩余电量值为电池总容量的50%,而预设电量阈值为电池总容量的60%,即剩余电量值低于预设电量阈值,此时可以认为电子设备的剩余电量较低。For example, the electronic device may obtain the remaining power value at a preset time interval, and detect whether the remaining power value is lower than the preset power threshold. For example, as shown in Figure 3, the electronic device obtains that its current remaining power value is 50% of the total battery capacity, and the preset power threshold is 60% of the total battery capacity, that is, the remaining power value is lower than the preset power threshold. At this time, it can be considered that the remaining power of the electronic device is low.
在这种情况下,电子设备可以统计其电量消耗速度。例如,电子设备可以获取目前的第一时刻以及第一剩余电量值。例如,此时的时刻为10:00(即第一时刻),剩余电量值为电池总容量的50%(即第一剩余电量值),如图3所示。In this case, the electronic device can count its power consumption rate. For example, the electronic device may obtain the current first moment and the first remaining power value. For example, the time at this time is 10:00 (that is, the first time), and the remaining power value is 50% of the total battery capacity (that is, the first remaining power value), as shown in FIG. 3.
五分钟之后,电子设备可以获取第二剩余电量值。例如,如图4所示,10:05(即第二时刻)的电子设备的剩余电量值为电池总容量的42%(即第二剩余电量值)。After five minutes, the electronic device can obtain the second remaining power value. For example, as shown in FIG. 4, the remaining power value of the electronic device at 10:05 (ie, the second time) is 42% of the total battery capacity (ie, the second remaining power value).
之后,电子设备可以根据第一剩余电量值和第二剩余电量值,以及第一时刻和第二时刻,计算该电子设备的电量消耗速度。例如,第一时刻和第二时刻的时间间隔为5分钟,第一剩余电量值和第二剩余电量值的差为电池总容量的8%。那么,电子设备可以计算出其电量消耗速度为每分钟消耗电池总容量的1.6%。After that, the electronic device may calculate the power consumption rate of the electronic device according to the first remaining power value and the second remaining power value, as well as the first time and the second time. For example, the time interval between the first time and the second time is 5 minutes, and the difference between the first remaining power value and the second remaining power value is 8% of the total battery capacity. Then, the electronic device can calculate that its power consumption rate is 1.6% of the total battery capacity per minute.
在统计得到电量消耗速度后,电子设备可以检测该电量消耗速度是否大于预设速度阈值。例如,预设速度阈值为每两分钟消耗电池总容量的1%。那么,电子设备目前的电量消耗速度超过了预设速度阈值,可以认为电子设备的电量 消耗速度较快。在电子设备的电量较低,且电量消耗速度较快的情况下,在本实施例中,电子设备可以对应用待机分组进行重新调整。比如,电子设备可以用原来被划分至工作分组(Working Set)的一部分应用重新划分至常用分组(Frequent)中。After the power consumption rate is obtained by statistics, the electronic device can detect whether the power consumption rate is greater than a preset speed threshold. For example, the preset speed threshold is to consume 1% of the total battery capacity every two minutes. Then, if the current power consumption rate of the electronic device exceeds the preset speed threshold, it can be considered that the power consumption rate of the electronic device is relatively fast. In the case where the power of the electronic device is low and the power consumption rate is relatively fast, in this embodiment, the electronic device can readjust the application standby grouping. For example, the electronic device can be re-divided into the Frequent group (Frequent) with a part of the application originally divided into the Working Set.
可以理解的是,由于常用分组(Frequent)中的应用对电子设备资源的调度能力弱于工作分组(Working Set),因此在将原来被划分至工作分组(Working Set)的一部分应用重新划分至常用分组(Frequent)后,电子设备中将会有更多的应用在资源调度方面受到更大的限制,从而节省电子设备的功耗。It is understandable that because the applications in the Frequent group have weaker scheduling capabilities for electronic device resources than the Working Set, part of the applications that were originally divided into the Working Set are reclassified to the frequently used group. After grouping (Frequent), more applications in electronic devices will be more restricted in resource scheduling, thereby saving the power consumption of the electronic devices.
请参阅图5,图5为本申请实施例提供的终端控制装置的结构示意图。终端控制装置300可以包括:统计模块301,检测模块302,调整模块303。Please refer to FIG. 5, which is a schematic structural diagram of a terminal control apparatus provided by an embodiment of the application. The terminal control device 300 may include: a statistics module 301, a detection module 302, and an adjustment module 303.
统计模块301,用于统计所述电子设备的电量消耗速度。The statistics module 301 is used to count the power consumption rate of the electronic device.
检测模块302,用于检测所述电量消耗速度是否大于预设速度阈值。The detection module 302 is configured to detect whether the power consumption speed is greater than a preset speed threshold.
调整模块303,用于若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。The adjustment module 303 is configured to adjust the application standby group if it is detected that the power consumption speed is greater than a preset speed threshold.
在一种实施方式中,在执行对所述应用待机分组进行调整时,所述调整模块303可以用于:In an implementation manner, when performing adjustment of the application standby grouping, the adjustment module 303 may be used to:
将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第一分组和所述预设第二分组均属于应用待机分组,且所述预设第一分组的应用对所述电子设备资源的调度能力被配置为强于所述预设第二分组。The application of one or more preset first groups is adjusted to a preset second group, wherein the preset first group and the preset second group both belong to the application standby group, and the preset second group The scheduling capability of the electronic device resource of the application of a group is configured to be stronger than the preset second group.
在一种实施方式中,在执行所述将一个或多个预设第一分组的应用调整到预设第二分组中时,所述调整模块303可以用于:In an implementation manner, when performing the adjustment of one or more applications of the preset first group to the preset second group, the adjustment module 303 may be configured to:
确定目标数量;Determine the target number;
按照所述目标数量,将预设第一分组的应用调整到预设第二分组中。According to the target number, the application of the preset first group is adjusted to the preset second group.
在一种实施方式中,在执行所述确定目标数量时,所述调整模块303可以用于:In an implementation manner, when performing the determination of the target quantity, the adjustment module 303 may be used to:
根据所述电量消耗速度,确定目标数量,其中,所述电量消耗速度越快,所述目标数量的数值越大。The target quantity is determined according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity.
在一种实施方式中,所述统计模块301还可以用于:In an implementation manner, the statistics module 301 may also be used for:
获取所述电子设备的剩余电量值。Obtain the remaining power value of the electronic device.
那么,在执行所述统计电子设备的电量消耗速度时,所述统计模块301 还可以用于:若所述剩余电量值低于预设电量阈值,则统计所述电子设备的电量消耗速度。Then, when performing the statistics of the power consumption rate of the electronic device, the statistics module 301 may be further configured to: if the remaining power value is lower than a preset power threshold value, count the power consumption rate of the electronic device.
在一种实施方式中,所述应用待机分组中的各分组按照对电子设备资源的调度能力大小具有不同的等级。In an implementation manner, each group in the application standby group has a different level according to the scheduling capability of the electronic device resource.
在执行所述将一个或多个预设第一分组的应用调整到预设第二分组中之前,所述检测模块302还可以用于:检测所述电量消耗速度是否小于目标速度阈值,其中,所述目标速度阈值大于所述预设速度阈值。Before performing the adjustment of one or more applications of the preset first group to the preset second group, the detection module 302 may be further configured to: detect whether the power consumption speed is less than a target speed threshold, where: The target speed threshold is greater than the preset speed threshold.
那么,在执行所述将一个或多个预设第一分组的应用调整到预设第二分组中时,所述调整模块303可以用于:若所述电量消耗速度小于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组对电子设备资源的调度能力相差一个等级。Then, when performing the adjustment of one or more applications of the preset first group to the preset second group, the adjustment module 303 may be configured to: if the power consumption speed is less than the target speed threshold, Then, the application of one or more preset first groups is adjusted to the preset second group, where the scheduling capabilities of the preset second group and the preset first group for electronic device resource scheduling differ by one level.
在一种实施方式中,在检测所述电量消耗速度是否小于目标速度阈值之后,所述调整模块303还可以用于:In an implementation manner, after detecting whether the power consumption speed is less than a target speed threshold, the adjustment module 303 may be further configured to:
若所述电量消耗速度大于或等于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组对电子设备资源的调度能力相差至少两个等级。If the power consumption speed is greater than or equal to the target speed threshold, then one or more preset first group applications are adjusted to a preset second group, wherein the preset second group and the preset It is assumed that the scheduling capabilities of the first group for electronic device resources differ by at least two levels.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的终端控制方法中的流程。The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer is caused to execute the process in the terminal control method provided in this embodiment.
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的终端控制方法中的流程。An embodiment of the present application also provides an electronic device, including a memory and a processor, and the processor is configured to execute a process in the terminal control method provided in this embodiment by calling a computer program stored in the memory.
例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图6,图6为本申请实施例提供的电子设备的结构示意图。For example, the aforementioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 6, which is a schematic structural diagram of an electronic device provided by an embodiment of the application.
该电子设备400可以包括充电模块401、存储器402、处理器403等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 400 may include a charging module 401, a memory 402, a processor 403 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
充电模块401可以用于为电子设备进行充电,充电获得的电量可以用于支 持电子设备的运行。充电模块401可以包括电池等。The charging module 401 can be used to charge the electronic device, and the power obtained by charging can be used to support the operation of the electronic device. The charging module 401 may include a battery and the like.
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。The memory 402 can be used to store application programs and data. The application program stored in the memory 402 contains executable code. Application programs can be composed of various functional modules. The processor 403 executes various functional applications and data processing by running application programs stored in the memory 402.
处理器403是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or executing the application program stored in the memory 402 and calling the data stored in the memory 402. The various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
在本实施例中,电子设备的操作系统包含应用待机分组,电子设备中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而执行:In this embodiment, the operating system of the electronic device includes an application standby group, and the processor 403 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions. And the processor 403 runs the application program stored in the memory 402 to execute:
统计所述电子设备的电量消耗速度;Count the power consumption rate of the electronic equipment;
检测所述电量消耗速度是否大于预设速度阈值;Detecting whether the power consumption speed is greater than a preset speed threshold;
若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。If it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
请参阅图7,电子设备500可以包括充电模块501、存储器502、处理器503、显示屏504等部件。Referring to FIG. 7, the electronic device 500 may include components such as a charging module 501, a memory 502, a processor 503, and a display screen 504.
充电模块501可以用于为电子设备进行充电,充电获得的电量可以用于支持电子设备的运行。充电模块501可以包括电池等。The charging module 501 can be used to charge the electronic device, and the power obtained by charging can be used to support the operation of the electronic device. The charging module 501 may include a battery and the like.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。The memory 502 can be used to store application programs and data. The application program stored in the memory 502 contains executable code. Application programs can be composed of various functional modules. The processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502 The various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
显示屏504可以用于显示诸如图像、文字等信息。The display screen 504 can be used to display information such as images and text.
在本实施例中,电子设备的操作系统包含应用待机分组,电子设备中的处 理器503会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:In this embodiment, the operating system of the electronic device includes an application standby group, and the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions. And the processor 503 runs the application program stored in the memory 502 to execute:
统计所述电子设备的电量消耗速度;Count the power consumption rate of the electronic equipment;
检测所述电量消耗速度是否大于预设速度阈值;Detecting whether the power consumption speed is greater than a preset speed threshold;
若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。If it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
在一种实施方式中,处理器503在执行所述对所述应用待机分组进行调整时,可以执行:将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第一分组和所述预设第二分组均属于应用待机分组,且所述预设第一分组的应用对所述电子设备资源的调度能力被配置为强于所述预设第二分组。In an implementation manner, when the processor 503 executes the adjustment of the application standby grouping, it may execute: adjusting one or more preset first grouping applications to the preset second grouping, where: Both the preset first group and the preset second group belong to application standby groups, and the scheduling ability of the application of the preset first group to the resources of the electronic device is configured to be stronger than the preset first group Two groups.
在一种实施方式中,处理器503在执行所述将一个或多个预设第一分组的应用调整到预设第二分组中时,可以执行:确定目标数量;按照所述目标数量,将预设第一分组的应用调整到预设第二分组中。In an implementation manner, when the processor 503 executes the adjustment of one or more applications of the preset first group to the preset second group, it may execute: determine the target quantity; according to the target quantity, The application of the preset first group is adjusted to the preset second group.
在一种实施方式中,处理器503在执行所述确定目标数量时,可以执行:根据所述电量消耗速度,确定目标数量,其中,所述电量消耗速度越快,所述目标数量的数值越大。In an implementation manner, when the processor 503 executes the determination of the target quantity, it may execute: determine the target quantity according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity. Big.
在一种实施方式中,在统计所述电子设备的电量消耗速度之前,处理器503还可以执行:获取所述电子设备的剩余电量值。In an implementation manner, before counting the power consumption rate of the electronic device, the processor 503 may further execute: acquiring the remaining power value of the electronic device.
那么,处理器503在执行所述统计所述电子设备的电量消耗速度时,可以执行:若所述剩余电量值低于预设电量阈值,则统计所述电子设备的电量消耗速度。Then, when the processor 503 executes the counting of the power consumption rate of the electronic device, it may execute: if the remaining power value is lower than a preset power threshold, then the power consumption rate of the electronic device is counted.
在一种实施方式中,所述应用待机分组中的各分组按照对电子设备资源的调度能力大小具有不同的等级。In an implementation manner, each group in the application standby group has a different level according to the scheduling capability of the electronic device resource.
那么,在所述将一个或多个预设第一分组的应用调整到预设第二分组中之前,处理器503还可以执行:检测所述电量消耗速度是否小于目标速度阈值,其中,所述目标速度阈值大于所述预设速度阈值。Then, before adjusting one or more applications of the preset first group to the preset second group, the processor 503 may further execute: detecting whether the power consumption speed is less than a target speed threshold, where the The target speed threshold is greater than the preset speed threshold.
处理器503在执行所述将一个或多个预设第一分组的应用调整到预设第二分组中时,可以执行:若所述电量消耗速度小于所述目标速度阈值,则将一 个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组对电子设备资源的调度能力相差一个等级。When the processor 503 executes the adjustment of one or more preset first grouping applications into the preset second grouping, it may execute: if the power consumption speed is less than the target speed threshold, then one or more The application of the first preset group is adjusted to the preset second group, wherein the scheduling capability of the preset second group and the preset first group for electronic device resource scheduling differs by one level.
在一种实施方式中,在检测所述电量消耗速度是否小于目标速度阈值之后,处理器503还可以执行:若所述电量消耗速度大于或等于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组对电子设备资源的调度能力相差至少两个等级。In one embodiment, after detecting whether the power consumption speed is less than the target speed threshold, the processor 503 may further execute: if the power consumption speed is greater than or equal to the target speed threshold, perform one or more presets It is assumed that the application of the first group is adjusted to the preset second group, wherein the scheduling capability of the preset second group and the preset first group differs by at least two levels in scheduling capabilities of the electronic device resources.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对终端控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own focus. For a part that is not described in detail in an embodiment, please refer to the detailed description of the terminal control method above, which will not be repeated here.
本申请实施例提供的所述终端控制装置与上文实施例中的终端控制方法属于同一构思,在所述终端控制装置上可以运行所述终端控制方法实施例中提供的任一方法,其具体实现过程详见所述终端控制方法实施例,此处不再赘述。The terminal control device provided in this embodiment of the application belongs to the same concept as the terminal control method in the above embodiment. Any method provided in the terminal control method embodiment can be run on the terminal control device. For the implementation process, refer to the embodiment of the terminal control method, which will not be repeated here.
需要说明的是,对本申请实施例所述终端控制方法而言,本领域普通技术人员可以理解实现本申请实施例所述终端控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述终端控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that for the terminal control method described in the embodiment of the present application, a person of ordinary skill in the art can understand that all or part of the process of implementing the terminal control method described in the embodiment of the present application can be controlled by a computer program. To accomplish this, the computer program may be stored in a computer readable storage medium, such as stored in a memory, and executed by at least one processor. The execution process may include the procedure of the embodiment of the terminal control method. . Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.
对本申请实施例的所述终端控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the terminal control device of the embodiment of the present application, its functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种终端控制方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The foregoing describes in detail a terminal control method, device, storage medium, and electronic equipment provided by the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementations of the present application. The description of the above embodiments is only It is used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and the scope of application. In summary, this specification The content should not be construed as a limitation on this application.

Claims (20)

  1. 一种终端控制方法,应用于电子设备,所述电子设备的操作系统包含应用待机分组,其中,所述方法包括:A terminal control method is applied to an electronic device, the operating system of the electronic device includes an application standby group, wherein the method includes:
    统计所述电子设备的电量消耗速度;Count the power consumption rate of the electronic equipment;
    检测所述电量消耗速度是否大于预设速度阈值;Detecting whether the power consumption speed is greater than a preset speed threshold;
    若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。If it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
  2. 根据权利要求1所述的终端控制方法,其中,所述对所述应用待机分组进行调整,包括:The terminal control method according to claim 1, wherein said adjusting said application standby grouping comprises:
    将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第一分组和所述预设第二分组均属于应用待机分组,且所述预设第一分组的应用对所述电子设备资源的调度能力被配置为强于所述预设第二分组。The application of one or more preset first groups is adjusted to a preset second group, wherein the preset first group and the preset second group both belong to the application standby group, and the preset second group The scheduling capability of the electronic device resource of the application of a group is configured to be stronger than the preset second group.
  3. 根据权利要求2所述的终端控制方法,其中,所述将一个或多个预设第一分组的应用调整到预设第二分组中,包括:The terminal control method according to claim 2, wherein the adjusting the application of one or more preset first groups to the preset second group comprises:
    确定目标数量;Determine the target number;
    按照所述目标数量,将一个或多个预设第一分组的应用调整到预设第二分组中。According to the target number, the application of one or more preset first groups is adjusted to the preset second group.
  4. 根据权利要求3所述的终端控制方法,其中,所述确定目标数量,包括:The terminal control method according to claim 3, wherein said determining the target number comprises:
    根据所述电量消耗速度,确定目标数量,其中,所述电量消耗速度越快,所述目标数量的数值越大。The target quantity is determined according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity.
  5. 根据权利要求1所述的终端控制方法,其中,在统计所述电子设备的电量消耗速度之前,还包括:获取所述电子设备的剩余电量值;The terminal control method according to claim 1, wherein before counting the power consumption rate of the electronic device, the method further comprises: obtaining the remaining power value of the electronic device;
    所述统计所述电子设备的电量消耗速度,包括:若所述剩余电量值低于预设电量阈值,则统计所述电子设备的电量消耗速度。The counting the power consumption speed of the electronic device includes: if the remaining power value is lower than a preset power threshold, counting the power consumption speed of the electronic device.
  6. 根据权利要求2所述的终端控制方法,其中,所述应用待机分组中的各分组按照对电子设备资源的调度能力大小具有不同的等级;The terminal control method according to claim 2, wherein each group in the application standby group has a different level according to the scheduling capability of the electronic device resource;
    在所述将一个或多个预设第一分组的应用调整到预设第二分组中之前,还包括:检测所述电量消耗速度是否小于目标速度阈值,其中,所述目标速度阈值大于所述预设速度阈值;Before adjusting the application of one or more preset first groupings to the preset second grouping, the method further includes: detecting whether the power consumption speed is less than a target speed threshold, wherein the target speed threshold is greater than the Preset speed threshold;
    所述将一个或多个预设第一分组的应用调整到预设第二分组中,包括:若所述电量消耗速度小于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组对电子设备资源的调度能力相差一个等级。The adjusting the application of one or more preset first groups to the preset second group includes: if the power consumption speed is less than the target speed threshold, then grouping the applications of one or more preset first groups The application is adjusted to a preset second group, where the scheduling capabilities of the preset second group and the preset first group for electronic device resources differ by one level.
  7. 根据权利要求6所述的终端控制方法,其中,在检测所述电量消耗速度是否小于目标速度阈值之后,还包括:The terminal control method according to claim 6, wherein after detecting whether the power consumption speed is less than a target speed threshold, the method further comprises:
    若所述电量消耗速度大于或等于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组对电子设备资源的调度能力相差至少两个等级。If the power consumption speed is greater than or equal to the target speed threshold, then one or more preset first group applications are adjusted to a preset second group, wherein the preset second group and the preset It is assumed that the scheduling capabilities of the first group for electronic device resources differ by at least two levels.
  8. 一种终端控制装置,应用于电子设备,所述电子设备的操作系统包含应用待机分组,其中,所述装置包括:A terminal control device applied to an electronic device, the operating system of the electronic device includes an application standby group, wherein the device includes:
    统计模块,用于统计所述电子设备的电量消耗速度;A statistics module, configured to count the power consumption rate of the electronic device;
    检测模块,用于检测所述电量消耗速度是否大于预设速度阈值;The detection module is used to detect whether the power consumption speed is greater than a preset speed threshold;
    调整模块,用于若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。The adjustment module is configured to adjust the application standby group if it is detected that the power consumption speed is greater than a preset speed threshold.
  9. 根据权利要求8所述的终端控制装置,其中,所述调整模块用于:The terminal control device according to claim 8, wherein the adjustment module is used for:
    将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第一分组和所述预设第二分组均属于应用待机分组,且所述预设第一分组的应用对所述电子设备资源的调度能力被配置为强于所述预设第二分组。The application of one or more preset first groups is adjusted to a preset second group, wherein the preset first group and the preset second group both belong to the application standby group, and the preset second group The scheduling capability of the electronic device resource of the application of a group is configured to be stronger than the preset second group.
  10. 根据权利要求9所述的终端控制装置,其中,所述调整模块用于:The terminal control device according to claim 9, wherein the adjustment module is used for:
    确定目标数量;Determine the target number;
    按照所述目标数量,将预设第一分组的应用调整到预设第二分组中。According to the target number, the application of the preset first group is adjusted to the preset second group.
  11. 根据权利要求10所述的终端控制装置,其中,所述调整模块用于:The terminal control device according to claim 10, wherein the adjustment module is used for:
    根据所述电量消耗速度,确定目标数量,其中,所述电量消耗速度越快,所述目标数量的数值越大。The target quantity is determined according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity.
  12. 根据权利要求8所述的终端控制装置,其中,所述统计模块,还用于:The terminal control device according to claim 8, wherein the statistics module is further used for:
    获取所述电子设备的剩余电量值;Obtaining the remaining power value of the electronic device;
    若所述剩余电量值低于预设电量阈值,则统计所述电子设备的电量消耗速度。If the remaining power value is lower than the preset power threshold, then the power consumption rate of the electronic device is calculated.
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在 计算机上执行时,使得所述计算机执行如权利要求1至7中任一项所述的方法。A storage medium having a computer program stored thereon, wherein when the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
  14. 一种电子设备,包括存储器,处理器,所述电子设备的操作系统包含应用待机分组,其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行:An electronic device includes a memory and a processor. The operating system of the electronic device includes an application standby group, wherein the processor is used to execute: by calling a computer program stored in the memory:
    统计所述电子设备的电量消耗速度;Count the power consumption rate of the electronic equipment;
    检测所述电量消耗速度是否大于预设速度阈值;Detecting whether the power consumption speed is greater than a preset speed threshold;
    若检测到所述电量消耗速度大于预设速度阈值,则对所述应用待机分组进行调整。If it is detected that the power consumption speed is greater than the preset speed threshold, the application standby group is adjusted.
  15. 根据权利要求14所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 14, wherein the processor is configured to execute:
    将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第一分组和所述预设第二分组均属于应用待机分组,且所述预设第一分组的应用对所述电子设备资源的调度能力被配置为强于所述预设第二分组。The application of one or more preset first groups is adjusted to a preset second group, wherein the preset first group and the preset second group both belong to the application standby group, and the preset second group The scheduling capability of the electronic device resource of the application of a group is configured to be stronger than the preset second group.
  16. 根据权利要求15所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 15, wherein the processor is configured to execute:
    确定目标数量;Determine the target number;
    按照所述目标数量,将预设第一分组的应用调整到预设第二分组中。According to the target number, the application of the preset first group is adjusted to the preset second group.
  17. 根据权利要求16所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 16, wherein the processor is configured to execute:
    根据所述电量消耗速度,确定目标数量,其中,所述电量消耗速度越快,所述目标数量的数值越大。The target quantity is determined according to the power consumption speed, wherein the faster the power consumption speed, the greater the value of the target quantity.
  18. 根据权利要求14所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 14, wherein the processor is configured to execute:
    获取所述电子设备的剩余电量值;Obtaining the remaining power value of the electronic device;
    若所述剩余电量值低于预设电量阈值,则统计所述电子设备的电量消耗速度。If the remaining power value is lower than the preset power threshold, then the power consumption rate of the electronic device is calculated.
  19. 根据权利要求15所述的电子设备,其中,所述应用待机分组中的各分组按照对电子设备资源的调度能力大小具有不同的等级,所述处理器用于执行:The electronic device according to claim 15, wherein each group in the application standby group has a different level according to the scheduling capability of the electronic device resource, and the processor is configured to execute:
    检测所述电量消耗速度是否小于目标速度阈值,其中,所述目标速度阈值大于所述预设速度阈值;Detecting whether the power consumption speed is less than a target speed threshold, where the target speed threshold is greater than the preset speed threshold;
    若所述电量消耗速度小于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组在对电子设备资源的调度能力方面相差一个等级。If the power consumption speed is less than the target speed threshold, the application of one or more preset first groups is adjusted to a preset second group, wherein the preset second group and the preset first group A group differs by one level in its ability to schedule electronic equipment resources.
  20. 根据权利要求19所述的电子设备,其中,所述处理器还用于执行:The electronic device according to claim 19, wherein the processor is further configured to execute:
    若所述电量消耗速度大于或等于所述目标速度阈值,则将一个或多个预设第一分组的应用调整到预设第二分组中,其中,所述预设第二分组与所述预设第一分组在对电子设备资源的调度能力方面相差至少两个等级。If the power consumption speed is greater than or equal to the target speed threshold, then one or more preset first group applications are adjusted to a preset second group, wherein the preset second group and the preset It is assumed that the first group differs by at least two levels in terms of scheduling capabilities for electronic device resources.
PCT/CN2019/082572 2019-04-12 2019-04-12 Terminal control method and apparatus, storage medium, and electronic device WO2020206703A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/082572 WO2020206703A1 (en) 2019-04-12 2019-04-12 Terminal control method and apparatus, storage medium, and electronic device
CN201980092359.7A CN113439252B (en) 2019-04-12 2019-04-12 Terminal control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/082572 WO2020206703A1 (en) 2019-04-12 2019-04-12 Terminal control method and apparatus, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
WO2020206703A1 true WO2020206703A1 (en) 2020-10-15

Family

ID=72752197

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082572 WO2020206703A1 (en) 2019-04-12 2019-04-12 Terminal control method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113439252B (en)
WO (1) WO2020206703A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954085A (en) * 2021-01-28 2021-06-11 携程旅游网络技术(上海)有限公司 Automatic grouping method, system, device and medium for terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096459A (en) * 2009-12-14 2011-06-15 腾讯科技(深圳)有限公司 Energy-saving method and device
CN103729052A (en) * 2013-12-31 2014-04-16 贝壳网际(北京)安全技术有限公司 Processing method and system for power consumption of application program and mobile terminal
CN104199696A (en) * 2014-08-28 2014-12-10 刘勇 Electric consumption control method and system and intelligent terminal
CN105975043A (en) * 2016-04-26 2016-09-28 珠海市魅族科技有限公司 Terminal control method and control apparatus as well as terminal
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635908B (en) * 2013-11-13 2018-09-28 腾讯科技(深圳)有限公司 A kind of method and device for the power consumption reducing mobile terminal
JP6487044B2 (en) * 2014-11-25 2019-03-20 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Power management method and power management apparatus for user equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096459A (en) * 2009-12-14 2011-06-15 腾讯科技(深圳)有限公司 Energy-saving method and device
CN103729052A (en) * 2013-12-31 2014-04-16 贝壳网际(北京)安全技术有限公司 Processing method and system for power consumption of application program and mobile terminal
CN104199696A (en) * 2014-08-28 2014-12-10 刘勇 Electric consumption control method and system and intelligent terminal
CN105975043A (en) * 2016-04-26 2016-09-28 珠海市魅族科技有限公司 Terminal control method and control apparatus as well as terminal
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954085A (en) * 2021-01-28 2021-06-11 携程旅游网络技术(上海)有限公司 Automatic grouping method, system, device and medium for terminal device

Also Published As

Publication number Publication date
CN113439252B (en) 2023-05-16
CN113439252A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
US9626295B2 (en) Systems and methods for scheduling tasks in a heterogeneous processor cluster architecture using cache demand monitoring
US9244682B2 (en) Idle detection
CN104424031B (en) Method and device for controlling working frequency of processor
EP3268842B1 (en) Methods and systems for coordination of operating states amongst multiple socs within a computing device
US8832335B2 (en) Control device and computer program product
CN107844187A (en) Power consumption management method, device and electronic equipment
US20120159209A1 (en) Idle Time Service
KR20100007907A (en) Device that determines whether to launch an application locally or remotely as a webapp
US20200245252A1 (en) Method for reducing power consumption of terminal, and terminal
EP3423940A1 (en) A method and device for scheduling resources
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
CN104615415A (en) Information processing method and electronic equipment
CN106406494B (en) A kind of method and terminal of processor scheduling
CN103037109A (en) Multicore equipment energy consumption management method and device
EP2972826A1 (en) Multi-core binary translation task processing
CN109889406B (en) Method, apparatus, device and storage medium for managing network connection
WO2020206703A1 (en) Terminal control method and apparatus, storage medium, and electronic device
WO2016180241A1 (en) Energy-conservation management method and apparatus for terminal and terminal
US20200133936A1 (en) Counting method, counter and storage medium
WO2023193527A1 (en) Thread execution method and apparatus, electronic device, and computer-readable storage medium
CN106648916B (en) Method and device for reporting pedometer message
US20210048877A1 (en) Power Management of an Event-Based Processing System
JP2018508884A (en) System and method for providing kernel scheduling of volatile memory maintenance events
CN109002381A (en) Process communication monitoring method, electronic device and computer readable storage medium
WO2023279829A1 (en) Message delay detection method and apparatus, electronic device, and storage medium

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: 19924549

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.02.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19924549

Country of ref document: EP

Kind code of ref document: A1