CN112997159A - Application grouping adjusting method and device, storage medium and electronic equipment - Google Patents

Application grouping adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112997159A
CN112997159A CN201880099431.4A CN201880099431A CN112997159A CN 112997159 A CN112997159 A CN 112997159A CN 201880099431 A CN201880099431 A CN 201880099431A CN 112997159 A CN112997159 A CN 112997159A
Authority
CN
China
Prior art keywords
time
electronic device
charging
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201880099431.4A
Other languages
Chinese (zh)
Inventor
陆天洋
张寅祥
帅朝春
戴堃
吴建文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112997159A publication Critical patent/CN112997159A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

An adjusting method of an application group is applied to an electronic device, and an operating system of the electronic device comprises an application standby group. The method comprises the following steps: acquiring the residual capacity (101) of the electronic equipment; acquiring the available time length (102) of the residual electric quantity; acquiring pre-learned user charging habit information (103); and if the available time length of the residual electric quantity and the charging habit information of the user meet the preset conditions, adjusting the application standby group (104).

Description

Application grouping adjusting method and device, storage medium and electronic equipment Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a method and an apparatus for adjusting an application group, a storage medium, and an electronic device.
Background
Currently, many mobile electronic devices use the Android (Android) operating system. The android system comprises an application standby grouping function. The application standby grouping function is a power management function. The application standby packet includes the following five packets, respectively: active (Active), Working (Working Set), common (frequency), Rare (Rare), occasional (App is not frequency used). The system will divide each application into one of the above-mentioned groups according to its usage, and each group has different restrictions on the scheduling of device resources.
Disclosure of Invention
The embodiment of the application grouping adjusting method and device, the storage medium and the electronic equipment can improve the flexibility of adjusting the application standby grouping by the electronic equipment.
In a first aspect, this embodiment provides a method for adjusting an application packet, where the method is applied to an electronic device, an operating system of the electronic device includes an application standby packet, and the method includes:
acquiring the residual electric quantity of the electronic equipment;
acquiring the available duration of the residual electric quantity;
acquiring pre-learned charging habit information of a user;
and if the available time of the residual electric quantity and the charging habit information of the user meet preset conditions, adjusting the application standby group.
In a second aspect, this embodiment provides an apparatus for adjusting an application packet, where the apparatus is applied to an electronic device, an operating system of the electronic device includes an application standby packet, and the apparatus includes:
the first acquisition module is used for acquiring the residual electric quantity of the electronic equipment;
the second acquisition module is used for acquiring the available duration of the residual electric quantity;
the third acquisition module is used for acquiring the pre-learned charging habit information of the user;
and the adjusting module is used for adjusting the application standby group if the available time of the residual electric quantity and the user charging habit information meet preset conditions.
In a third aspect, a storage medium has a computer program stored thereon, which, when executed on a computer, causes the computer to execute the flow in the adjustment method of an application group provided in the present embodiment.
In a fourth aspect, this embodiment provides an electronic device, including a memory and a processor, where an operating system of the electronic device includes an application standby packet, and the processor is configured to execute, by calling a computer program stored in the memory:
acquiring the residual electric quantity of the electronic equipment;
acquiring the available duration of the residual electric quantity;
acquiring pre-learned charging habit information of a user;
and if the available time of the residual electric quantity and the charging habit information of the user meet preset conditions, adjusting the application standby group.
In this embodiment, the electronic device may adjust the application standby group according to the available duration of the remaining power and the charging habit of the user, thereby improving the flexibility of adjusting the application standby group by the electronic device.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flowchart of an adjustment method for application grouping according to an embodiment of the present application.
Fig. 2 is another schematic flowchart of an adjustment method for application grouping according to an embodiment of the present application.
Fig. 3 to fig. 4 are schematic scene diagrams of an adjustment method for application grouping according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an apparatus for adjusting application packets according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a schematic flowchart of an adjusting method for an application packet according to an embodiment of the present application, where the adjusting method for an application packet may be applied to an electronic device, and an operating system of the electronic device may include a function of an application standby packet. The flow of the adjustment method for the application grouping may include:
in 101, a remaining power of the electronic device is acquired.
Currently, many mobile electronic devices use the android operating system. The android system comprises an application standby grouping function. The application standby grouping function is a power management function. The application standby packet includes the following five packets, respectively: active (applications are being used), working (applications are used with high frequency), common (applications are often used but not daily), rare (applications are rarely used), occasional (applications are used occasionally). The system will divide each application into one of the above-mentioned groups according to its usage, and each group has different restrictions on the scheduling of device resources. Wherein active packets, working packets, frequent packets, rare packets, and occasional packets decrease in order in scheduling capability for device resources. For example, applications in active packets may be configured to have a greater scheduling capability for device resources than work packets. Applications divided into work groups are configured to have a greater scheduling capability for device resources than usual groups. However, in the related art, the flexibility that the device of the android system divides a certain application into a certain group of the above five groups according to the usage behavior of the application, that is, the device adjusts the application standby group, is poor.
In 101 of this embodiment, for example, the electronic device may obtain the remaining power thereof. For example, the electronic device acquires that its remaining capacity is 35% of the total capacity of the battery.
At 102, the available duration of the remaining charge is obtained.
For example, after acquiring the remaining power of the electronic device, the electronic device may calculate an available duration of the remaining power.
For example, the electronic device may calculate 35% of the remaining power to support the electronic device for 1 hour. That is, the usable time period of the remaining capacity is 1 hour.
In 103, the user charging habit information learned in advance is acquired.
For example, after calculating the available time of the remaining power, the electronic device may obtain the pre-learned charging habit information of the user. The pre-learned user charging habit information is behavior habit information about charging the electronic device by the user, and may include information that the user will most often charge the electronic device at a certain time or in a certain time period, for example.
And then, the electronic equipment can detect whether the available time of the residual electric quantity and the charging habit information of the user meet a preset condition or not.
If the fact that the available duration of the residual electric quantity and the charging habit information of the user do not meet the preset condition is detected, the electronic equipment can execute other operations.
If it is detected that the available duration of the remaining power and the charging habit information of the user satisfy the preset condition, the operation may be entered into step 104.
At 104, if it is detected that the available duration of the remaining power and the charging habit information of the user satisfy the preset condition, the application standby packet is adjusted.
For example, the electronic device may be triggered to adjust the application standby group when detecting that the available duration of the remaining power and the charging habit information of the user satisfy a preset condition.
It can be understood that, in this embodiment, the electronic device may adjust the application standby group according to the available duration of the remaining power and the charging habit of the user, so that the flexibility of adjusting the application standby group by the electronic device is improved.
Referring to fig. 2, fig. 2 is another schematic flow chart of an adjustment method for application grouping according to an embodiment of the present application, where the flow chart may include:
in 201, the electronic device acquires a remaining power.
For example, the electronic device may first obtain its remaining power. For example, the electronic device obtains that its current remaining capacity is 35% of the total capacity of the battery.
In one embodiment, the electronic device may obtain the remaining power of the electronic device every other time period.
At 202, the electronic device obtains an available duration of the remaining power.
For example, after acquiring the remaining power, the electronic device may predict an available duration of the remaining power. For example, the electronic device may calculate 35% of the remaining power to support the electronic device for 1 hour. That is, the usable time period in which the electronic device predicts the remaining power is 1 hour.
At 203, the electronic device obtains pre-learned user charging habit information, which includes a learned target time for the user to charge the electronic device.
For example, after predicting the available duration of the remaining power, the electronic device may obtain the pre-learned charging habit information of the user. The user charging habit information may include a target time for the electronic device to be charged by the user, which is learned by the electronic device.
In some embodiments, the target time may include one or more times.
The target time when the user charges the electronic device, which is included in the user charging habit information, means that the electronic device is charged at the target time when the user, which is learned by the electronic device according to the charging behavior habit of the user on the electronic device, learns the charging behavior habit of the user on the electronic device. For example, each time a user charges the electronic device, the electronic device may record the time at which charging is initiated, thereby recording a number of charging time samples. Then, the electronic device may learn the plurality of charging time samples by using an algorithm model based on deep learning, so as to learn a charging behavior habit of the user, and determine a certain time or certain times as the target time. For example, the electronic device learns that the user will charge the electronic device at two times, 15:00 and 21:00, each day, then 15:00 and 21:00 are both target times.
At 204, the electronic device obtains a current time of day.
In 205, the electronic device determines a first time of next charging from the target time and the current time.
In 206, the electronic device calculates a target time interval between the current time and the first time.
204, 205, and 206 may include, for example:
after the target time is obtained, the electronic device may obtain the current time, and determine a first time when the user charges the electronic device next time from the target time according to the target time and the current time. Thereafter, the electronic device may calculate a target time interval between the current time and the first time.
For example, the current time is 10:00, and the target times are 15:00 and 21:00, so that the electronic device can determine that the first time when the user charges the electronic device next time is 15: 00. For another example, if the current time is 16:00, the electronic device may determine that the first time when the user charges the electronic device next time is 21: 00.
After determining the current time and the first time, the electronic device may calculate a time interval (i.e., a target time interval) between the current time and the first time. For example, if the current time is 10:00 and the first time is 15:00, the time interval between the two is 5 hours, i.e., the target time interval is 5 hours.
Thereafter, the electronic device may detect whether the target time interval is greater than the available duration of the remaining power.
If the target time interval is detected to be not greater than the available duration of remaining power, the electronic device may perform other operations. For example, the current time is 10:00, the available duration of the remaining power is 6 hours, and the first time is 15:00, then the target time interval between the current time and the first time is 5 hours, and the available duration of the remaining power is 6 hours, that is, the remaining power can support the electronic device to operate to 16:00, so that the electronic device generally does not have a power shortage condition before the next charging. In this case, the electronic device may perform other operations.
If the target time interval is detected to be greater than the available duration of remaining power, then step 207 is entered.
In 207, if the target time interval is greater than the available duration of the remaining power, the electronic device determines that the available duration of the remaining power and the charging habit information of the user satisfy the preset condition.
For example, the current time is 10:00, the available duration of the remaining power is 1 hour, and the first time is 15:00, then the target time interval between the current time and the first time is 5 hours, and the available duration of the remaining power is 1 hour, that is, the remaining power only supports the electronic device to operate at 11:00, so that the electronic device is likely to have insufficient power before the next charging. In this case, the electronic device may determine that the available duration of the remaining power and the charging habit information of the user satisfy the preset condition.
In 208, the electronic device adjusts the applications of the preset first packet into a preset second packet, wherein the preset first packet and the preset second packet both belong to an application standby packet, and the scheduling capability of the applications of the preset first packet on the resources of the electronic device is configured to be stronger than that of the preset second packet.
For example, after it is determined that the available duration of the remaining power and the charging habit information of the user satisfy the preset condition, the electronic device may adjust the application originally divided into the preset first group into the preset second group. The preset first packet and the preset second packet both belong to the group in the application standby packet, and the scheduling capability of the application in the preset first packet on the electronic device resource is configured to be stronger than the scheduling capability of the application in the preset second packet on the electronic device resource.
For example, if the first packet is preset as a work group (work Set) and the second packet is preset as a Frequent packet (frequency), the electronic device may re-partition some applications that were originally partitioned into the work group into the Frequent packet. Compared with the work grouping, the scheduling capability of the applications in the common grouping on the device resources is more limited, so that under the condition of insufficient electric quantity, the electronic device can limit the calling of more applications on the device resources by adjusting the applications in the work grouping to the common grouping, and the power consumption is saved.
In one embodiment, when the electronic device adjusts the application in the preset first grouping to the flow in the preset second grouping in the execution 208, the method may include:
the electronic equipment obtains the target number, and adjusts the application of the preset first group into the preset second group according to the target number.
For example, the electronic device may first obtain a target number, for example, the target number is 10. Thereafter, the electronic device may adjust the 10 applications originally divided into the preset first group into the preset second group.
In an implementation manner, when the process of acquiring the target number is executed, the embodiment may further include:
and determining and acquiring the target quantity according to the target time interval and the available duration of the residual electric quantity.
For example, the electronic device may determine the target amount according to the target time interval between the current time and the first time and the available duration of the remaining power, and obtain the target amount.
In one embodiment, the determining the target number according to the target time interval and the available time duration of the remaining power, performed by the present embodiment, may include:
according to a target time interval and the available time length of the residual capacity, the electronic equipment determines a target quantity, wherein the larger the time difference between the target time interval and the available time length is, the larger the value of the target quantity is.
For example, if the target time interval between the current time and the first time of the next charging is 5 hours, and the available time of the remaining power is 1 hour, the time difference between the target time interval and the available time is 4 hours, and the electronic device may determine that the target number is 10. For another example, if the target time interval between the current time and the first time of the next charging is 2 hours, and the available time of the remaining power is 1 hour, the time difference between the target time interval and the available time is 1 hour, and the electronic device may determine that the target number is 5, and so on.
That is to say, the larger the time difference between the target time interval and the available duration of the remaining power is, the longer the time is from the next charging of the electronic device, that is, the longer the remaining power of the electronic device needs to be supported, so that the electronic device can adjust more applications having the preset first packet to the preset second packet, thereby limiting more applications from calling the device resources, and achieving the effect of saving power.
In an implementation manner, the present embodiment may also learn the charging habit of the user of the electronic device through the following process:
when the electronic equipment is detected to be charged, the electronic equipment records the time for starting charging;
according to the recorded time to start charging, the electronic device learns user charging habit information about the electronic device.
For example, each time a user is detected to charge the electronic device, the electronic device may record the time at which charging is to begin, resulting in multiple samples of the time at which charging is to begin. Thereafter, the electronic device may learn user charging habit information about the electronic device using a deep learning based algorithmic model from the recorded samples of time to start charging.
In one embodiment, the above procedure of learning the charging habit information of the user about the electronic device according to the recorded time for starting charging of the electronic device may include:
the electronic equipment determines the earliest moment in the recorded time for starting charging as a second moment;
the electronic equipment counts the number of times of charging at the second moment;
and if the times reach a preset numerical value, the electronic equipment determines the second moment as a target moment representing the charging of the electronic equipment by the user in the user charging habit information.
For example, after recording a plurality of charging start times when the user charges the electronic device, the electronic device may determine the earliest time among the recorded charging start times as a second time, and count the number of times the user charges the electronic device at the second time. Then, the electronic device may detect whether the number of times reaches a preset value. If the preset value is reached, the electronic device may determine the second time as a target time that represents that the user charges the electronic device in the user charging habit information.
For example, the earliest time among the plurality of recorded charging start times is 15:00, that is, the electronic device records that the user started charging the electronic device at 15:00 the earliest time. Thereafter, the electronic device may count the number of times the user charges at 15:00, that is, the electronic device records that the user charges the electronic device at 15:00 a total number of times. And, the electronic device may detect whether the number of times reaches a preset number of times. If the number of times reaches the preset number of times, it can be considered that the user charges the electronic device at 15:00 frequently, and therefore the electronic device can determine 15:00 as the target time indicating that the user charges the electronic device in the user charging habit information. If the number of times does not reach the preset number of times, the electronic device may determine other times as the target time.
In another embodiment, the above procedure of learning the charging habit information of the user about the electronic device according to the recorded time for starting charging of the electronic device may include:
the electronic equipment determines the earliest moment in the recorded time for starting charging as a second moment;
the electronic equipment determines the latest moment in the recorded time for starting charging as a third moment;
the electronic equipment calculates the intermediate time of the second time and the third time;
the electronic equipment determines the intermediate time as a target time for the user to charge the electronic equipment in the user charging habit information.
For example, after recording a plurality of charging start times when the user charges the electronic device, the electronic device may determine the earliest time among the recorded charging start times as the second time and determine the latest time among the recorded charging start times as the third time. After that, the electronic device may calculate an intermediate time between the second time and the third time, and determine the intermediate time as a target time that represents the user charging the electronic device in the user charging habit information.
For example, the earliest time among the plurality of recorded charging start times is 15:00, that is, the electronic device records that the user started charging the electronic device at 15:00 the earliest time. The latest time among the recorded charging start times is 16:00, that is, the electronic device records that the user started charging the electronic device at 16:00 at the latest. The electronic device may then calculate an intermediate time of 15:00 and 16:00, which is 15: 30. The electronic device may then determine 15:30 as the target time in the user charging habit information indicating the user's charging of the electronic device.
In some embodiments, the second time and the third time may be required to satisfy a certain condition. For example, when the interval between the second time and the third time is smaller than a preset threshold, the intermediate time between the second time and the third time is determined as the target time. For example, when the preset threshold is 1 hour, if the second time is 15:00 and the third time is 16:00, 15:30 may be determined as the target time. If the second time is 15:00 and the third time is 21:00, the interval between the second time and the third time is 6 hours, and exceeds the preset threshold value for 1 hour, at this time, the electronic device may not determine the intermediate time between the second time and the third time as the target time, and may determine the other times as the target time.
In some embodiments, the user may set in advance a correspondence relationship between the target number and a time difference between the target time interval and the available period of the remaining amount of power. For example, when the time difference between the two is 4 hours, the target number is 10. When the time difference between the two is 3 hours, the target number is 8. When the time difference between the two is 2 hours, the target number is 6. When the time difference between the two is 1 hour, the target number is 5, and so on.
Referring to fig. 3 to 4, fig. 3 to 4 are schematic views of a scene of an adjustment method for application grouping according to an embodiment of the present application.
For example, the electronic device may learn the charging behavior habit of the user in advance. As shown in fig. 3, each time a user charges an electronic device, the electronic device may record a time to start charging, thereby obtaining a plurality of time samples regarding the time to start charging.
After that, the electronic device may learn a plurality of time samples related to the charging start time by using an algorithm model based on deep learning, so as to learn a target time when the user charges the electronic device. For example, through learning the charging behavior habit of the user, the electronic device learns that the user will generally charge the electronic device at 15:00 and 21: 00. That is, 15:00 and 21:00 are determined as target time instants.
After learning the target time for charging the electronic device by the user, the electronic device may obtain the remaining power of the electronic device every a preset time period, and calculate the available time period of the remaining power. For example, in this embodiment, as shown in fig. 4, the remaining power obtained by the electronic device is 60%, and the available duration of the remaining power is calculated to be 4 hours.
Thereafter, the electronic device may obtain the current time of day. For example, as shown in fig. 4, the current time is 10: 00. Then, the electronic device may determine a first time of next charging from the target time according to the target time and the current time. For example, since the current time is 10:00 and the target times include 15:00 and 21:00, the electronic device may determine that the next charging time is 15:00, i.e., the first time is 15: 00.
Thereafter, the electronic device may calculate a target time interval between the current time and the first time. For example, the current time is 10:00, the first time is 15:00, and the time interval between the two is 5 hours, i.e., the target time interval is 5 hours.
Then, the electronic device may detect whether the target time interval between the current time and the first time is greater than the available duration of the remaining power. For example, the target time interval is 5 hours, and the available time period of the remaining power is 4 hours, that is, the target time interval is greater than the available time period of the remaining power. In this case, it can be considered that the remaining capacity of the electronic device is not sufficient to support its operation until the next charging time. At this time, the electronic device may adjust the applications in the working group in the application standby group into the common group, and adjust the applications in the common group into the rare group.
For example, the application A, B, C, D, E, F, G, H was originally divided into work groups in the application standby group, and the application I, J, K, L, M, N, O, P, Q was originally divided into common groups in the application standby group. In the above case, the electronic device may adjust applications A, B, C, D, E, F, G, H from a work group to a frequent group and applications I, J, K, L, M, N, O, P, Q from a frequent group to a rare group. It can be understood that, because the scheduling capability of the working packets in the application standby packets to the device resources is stronger than that of the common packets, and the scheduling capability of the common packets to the device resources is stronger than that of the few packets, by adjusting the applications from the working packets to the common packets and from the common packets to the few packets, scheduling of the device resources by more applications can be limited, thereby saving power consumption in the case of insufficient power of the electronic device.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an adjusting apparatus for application grouping according to an embodiment of the present disclosure. The adjusting means 300 of the application packet may comprise: a first obtaining module 301, a second obtaining module 302, a third obtaining module 303, and an adjusting module 304.
The first obtaining module 301 is configured to obtain a remaining power of the electronic device.
A second obtaining module 302, configured to obtain an available duration of the remaining power.
A third obtaining module 303, configured to obtain pre-learned charging habit information of the user.
An adjusting module 304, configured to adjust the application standby packet if it is detected that the available duration of the remaining power and the user charging habit information meet a preset condition.
In one embodiment, the user charging habit information includes a target time of charging the electronic device by the learned user.
The third obtaining module 303 may be further configured to: and acquiring the current moment.
The adjustment module 304 is configured to: determining a first time of next charging from the target time according to the target time and the current time; calculating a target time interval between the current time and the first time; and if the target time interval is greater than the available time of the residual electric quantity, determining that the available time of the residual electric quantity and the user charging habit information meet preset conditions, and adjusting the application standby group.
In one embodiment, the adjusting module 304 is configured to: and adjusting the application of a preset first group into a preset second group, wherein the preset first group and the preset second group both belong to an application standby group, and the scheduling capability of the application of the preset first group on the electronic equipment resource is configured to be stronger than that of the preset second group.
In one embodiment, the adjusting module 304 is configured to: and acquiring the target quantity, and adjusting the application of the preset first grouping into the preset second grouping according to the target quantity.
In one embodiment, the adjusting module 304 is configured to: and determining and acquiring the target quantity according to the target time interval and the available duration.
In one embodiment, the adjusting module 304 is configured to: and determining a target quantity according to the target time interval and the available time length, wherein the larger the time difference between the target time interval and the available time length is, the larger the value of the target quantity is.
In one embodiment, the first obtaining module 301 is further configured to: when the electronic equipment is detected to be charged, recording the time when the electronic equipment starts to be charged; and learning user charging habit information about the electronic equipment according to the recorded time for starting charging of the electronic equipment.
In one embodiment, the first obtaining module 301 may be configured to:
determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time;
counting the times of charging the electronic equipment at the second moment;
and if the times reach a preset numerical value, determining the second moment as a target moment representing the charging of the electronic equipment by the user in the user charging habit information.
In another embodiment, the first obtaining module 301 may be further configured to:
determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time;
determining the latest time in the recorded time for starting charging of the electronic equipment as a third time;
calculating the intermediate time of the second time and the third time;
and determining the intermediate time as a target time for the user to charge the electronic equipment in the user charging habit information.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the adjustment method of the application group provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the flow in the method for adjusting an application packet provided in this embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include components such as a charging module 401, a memory 402, a processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The charging module 401 may be configured to charge the electronic device, and the amount of power obtained by charging may be used to support the operation of the electronic device. The charging module 401 may include a battery or the like.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the operating system of the electronic device includes an application standby packet, and the processor 403 in the electronic device loads executable code corresponding to processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
acquiring the residual electric quantity of the electronic equipment;
acquiring the available duration of the residual electric quantity;
acquiring pre-learned charging habit information of a user;
and if the available time of the residual electric quantity and the charging habit information of the user meet preset conditions, adjusting the application standby group.
Referring to fig. 7, the electronic device 500 may include a charging module 501, a memory 502, a processor 503, a display 504, and the like.
The charging module 501 may be used to charge the electronic device, and the amount of power obtained by charging may be used to support the operation of the electronic device. The charging module 501 may include a battery or the like.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 503 executes various functional applications and data processing by running an application program stored in the memory 502.
The processor 503 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
The display screen 504 may be used to display information such as images, text, and the like.
In this embodiment, the operating system of the electronic device includes an application standby packet, and the processor 503 in the electronic device loads executable codes corresponding to processes of one or more application programs into the memory 502 according to the following instructions, and the processor 503 runs the application programs stored in the memory 502, so as to execute:
acquiring the residual electric quantity of the electronic equipment;
acquiring the available duration of the residual electric quantity;
acquiring pre-learned charging habit information of a user;
and if the available time of the residual electric quantity and the charging habit information of the user meet preset conditions, adjusting the application standby group.
In one embodiment, the user charging habit information includes a target time of charging the electronic device by the learned user.
After the obtaining of the pre-learned charging habit information of the user, the processor 503 may further perform: and acquiring the current moment.
Then, when the processor 503 adjusts the application standby packet if it is detected that the available duration of the remaining power and the user charging habit information satisfy the preset condition, it may perform: determining a first time of next charging from the target time according to the target time and the current time; calculating a target time interval between the current time and the first time; and if the target time interval is greater than the available time of the residual electric quantity, determining that the available time of the residual electric quantity and the user charging habit information meet preset conditions, and adjusting the application standby group.
In one embodiment, when performing the adjusting of the application standby packet, the processor 503 may perform: and adjusting the application of a preset first group into a preset second group, wherein the preset first group and the preset second group both belong to an application standby group, and the scheduling capability of the application of the preset first group on the electronic equipment resource is configured to be stronger than that of the preset second group.
In one embodiment, when the processor 503 executes the adjustment of the application of the preset first packet into the preset second packet, it may execute: and acquiring the target quantity, and adjusting the application of the preset first grouping into the preset second grouping according to the target quantity.
In one embodiment, the processor 503, when executing the obtaining the target number, may execute: and determining and acquiring the target quantity according to the target time interval and the available duration.
In one embodiment, the processor 503, when executing the determining the target number according to the target time interval and the available duration, may execute: and determining a target quantity according to the target time interval and the available time length, wherein the larger the time difference between the target time interval and the available time length is, the larger the value of the target quantity is.
In one embodiment, the processor 503 may further perform: when the electronic equipment is detected to be charged, recording the time when the electronic equipment starts to be charged; and learning user charging habit information about the electronic equipment according to the recorded time for starting charging of the electronic equipment.
In one embodiment, when the processor 503 executes the learning of the user charging habit information about the electronic device according to the recorded time for starting charging of the electronic device, it may execute: determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time; counting the times of charging the electronic equipment at the second moment; and if the times reach a preset numerical value, determining the second moment as a target moment representing the charging of the electronic equipment by the user in the user charging habit information.
In one embodiment, when the processor 503 executes the learning of the user charging habit information about the electronic device according to the recorded time for starting charging of the electronic device, it may execute: determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time; determining the latest time in the recorded time for starting charging of the electronic equipment as a third time; calculating the intermediate time of the second time and the third time; and determining the intermediate time as a target time for the user to charge the electronic equipment in the user charging habit information.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the adjustment method for the application packet, and are not described herein again.
The adjusting apparatus for application grouping provided in the embodiment of the present application and the adjusting method for application grouping in the above embodiments belong to the same concept, and any method provided in the embodiment of the adjusting method for application grouping may be run on the adjusting apparatus for application grouping, and a specific implementation process thereof is described in detail in the embodiment of the adjusting method for application grouping, and is not described herein again.
It should be noted that, for the method for adjusting an application packet described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the method for adjusting an application packet described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the method for adjusting an application packet can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the adjusting apparatus for application grouping according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail an application grouping adjustment method, apparatus, storage medium, and electronic device provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

  1. An adjustment method of an application packet, applied to an electronic device, an operating system of which includes an application standby packet, wherein the method includes:
    acquiring the residual electric quantity of the electronic equipment;
    acquiring the available duration of the residual electric quantity;
    acquiring pre-learned charging habit information of a user;
    and if the available time of the residual electric quantity and the charging habit information of the user meet preset conditions, adjusting the application standby group.
  2. The adjustment method of application grouping according to claim 1, wherein the user charging habit information includes a target time of charging the electronic device by a learned user;
    after the obtaining of the pre-learned user charging habit information, the method further includes: acquiring the current moment;
    if the detected available time of the residual electric quantity and the detected charging habit information of the user meet the preset conditions, adjusting the application standby group, including:
    determining a first time of next charging from the target time according to the target time and the current time;
    calculating a target time interval between the current time and the first time;
    and if the target time interval is greater than the available time of the residual electric quantity, determining that the available time of the residual electric quantity and the user charging habit information meet preset conditions, and adjusting the application standby group.
  3. The method for adjusting an application packet according to claim 2, wherein the adjusting the application standby packet comprises:
    and adjusting the application of a preset first group into a preset second group, wherein the preset first group and the preset second group both belong to an application standby group, and the scheduling capability of the application of the preset first group on the electronic equipment resource is configured to be stronger than that of the preset second group.
  4. The method for adjusting application grouping according to claim 3, wherein the adjusting the application of the preset first grouping into the preset second grouping comprises:
    and acquiring the target quantity, and adjusting the application of the preset first grouping into the preset second grouping according to the target quantity.
  5. The method of adjusting application grouping of claim 4, wherein the obtaining a target number comprises:
    and determining and acquiring the target quantity according to the target time interval and the available duration.
  6. The method of claim 5, wherein determining a target number according to the target time interval and the available duration comprises:
    and determining a target quantity according to the target time interval and the available time length, wherein the larger the time difference between the target time interval and the available time length is, the larger the value of the target quantity is.
  7. The method of adjusting an application packet according to claim 2, wherein the method further comprises:
    when the electronic equipment is detected to be charged, recording the time when the electronic equipment starts to be charged;
    and learning user charging habit information about the electronic equipment according to the recorded time for starting charging of the electronic equipment.
  8. The method for adjusting application grouping according to claim 7, wherein the learning of the user charging habit information about the electronic device according to the recorded time for starting charging of the electronic device comprises:
    determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time;
    counting the times of charging the electronic equipment at the second moment;
    and if the times reach a preset numerical value, determining the second moment as a target moment representing the charging of the electronic equipment by the user in the user charging habit information.
  9. The method for adjusting application grouping according to claim 7, wherein the learning of the user charging habit information about the electronic device according to the recorded time for starting charging of the electronic device comprises:
    determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time;
    determining the latest time in the recorded time for starting charging of the electronic equipment as a third time;
    calculating the intermediate time of the second time and the third time;
    and determining the intermediate time as a target time for the user to charge the electronic equipment in the user charging habit information.
  10. An apparatus for adjusting an application packet, applied to an electronic device, an operating system of which includes an application standby packet, wherein the apparatus comprises:
    the first acquisition module is used for acquiring the residual electric quantity of the electronic equipment;
    the second acquisition module is used for acquiring the available duration of the residual electric quantity;
    the third acquisition module is used for acquiring the pre-learned charging habit information of the user;
    and the adjusting module is used for adjusting the application standby group if the available time of the residual electric quantity and the user charging habit information meet preset conditions.
  11. A storage medium having stored thereon a computer program, wherein the computer program, when executed on a computer, causes the computer to perform the method of any of claims 1 to 9.
  12. An electronic device comprising a memory, a processor, wherein an operating system of the electronic device contains an application standby packet, the processor being operable by invoking a computer program stored in the memory to perform:
    acquiring the residual electric quantity of the electronic equipment;
    acquiring the available duration of the residual electric quantity;
    acquiring pre-learned charging habit information of a user;
    and if the available time of the residual electric quantity and the charging habit information of the user meet preset conditions, adjusting the application standby group.
  13. The electronic device of claim 12, wherein the user charging habit information includes a learned target moment for the user to charge the electronic device, and the processor is configured to perform:
    acquiring the current moment;
    determining a first time of next charging from the target time according to the target time and the current time;
    calculating a target time interval between the current time and the first time;
    and if the target time interval is greater than the available time of the residual electric quantity, determining that the available time of the residual electric quantity and the user charging habit information meet preset conditions, and adjusting the application standby group.
  14. The electronic device of claim 13, wherein the processor is configured to perform:
    and adjusting the application of a preset first group into a preset second group, wherein the preset first group and the preset second group both belong to an application standby group, and the scheduling capability of the application of the preset first group on the electronic equipment resource is configured to be stronger than that of the preset second group.
  15. The electronic device of claim 14, wherein the processor is configured to perform:
    and acquiring the target quantity, and adjusting the application of the preset first grouping into the preset second grouping according to the target quantity.
  16. The electronic device of claim 15, wherein the processor is configured to perform:
    and determining and acquiring the target quantity according to the target time interval and the available duration.
  17. The electronic device of claim 16, wherein the processor is configured to perform:
    and determining a target quantity according to the target time interval and the available time length, wherein the larger the time difference between the target time interval and the available time length is, the larger the value of the target quantity is.
  18. The electronic device of claim 13, wherein the processor is configured to perform:
    when the electronic equipment is detected to be charged, recording the time when the electronic equipment starts to be charged;
    and learning user charging habit information about the electronic equipment according to the recorded time for starting charging of the electronic equipment.
  19. The electronic device of claim 18, wherein the processor is configured to perform:
    determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time;
    counting the times of charging the electronic equipment at the second moment;
    and if the times reach a preset numerical value, determining the second moment as a target moment representing the charging of the electronic equipment by the user in the user charging habit information.
  20. The electronic device of claim 18, wherein the processor is configured to perform:
    determining the earliest time in the recorded time for starting charging of the electronic equipment as a second time;
    determining the latest time in the recorded time for starting charging of the electronic equipment as a third time;
    calculating the intermediate time of the second time and the third time;
    and determining the intermediate time as a target time for the user to charge the electronic equipment in the user charging habit information.
CN201880099431.4A 2018-12-29 2018-12-29 Application grouping adjusting method and device, storage medium and electronic equipment Pending CN112997159A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125497 WO2020133389A1 (en) 2018-12-29 2018-12-29 Application grouping adjustment method and apparatus, and storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112997159A true CN112997159A (en) 2021-06-18

Family

ID=71128506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880099431.4A Pending CN112997159A (en) 2018-12-29 2018-12-29 Application grouping adjusting method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112997159A (en)
WO (1) WO2020133389A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090085517A1 (en) * 2007-06-29 2009-04-02 Lenovo (Beijing) Limited Method and apparatus of charge management for battery in mobile terminal
CN106356949A (en) * 2016-10-31 2017-01-25 深圳市金立通信设备有限公司 Charging protection method and terminal
CN107548142A (en) * 2017-07-31 2018-01-05 努比亚技术有限公司 A kind of electricity-saving control method, terminal and computer-readable recording medium
CN108089970A (en) * 2018-01-11 2018-05-29 深圳市金立通信设备有限公司 Predict method, terminal and the storage medium of remaining capacity up time
CN108279764A (en) * 2017-01-04 2018-07-13 北京搜狗科技发展有限公司 A kind of application control method, device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622004A (en) * 2016-07-14 2018-01-23 中兴通讯股份有限公司 Power consumption based reminding method and device
CN107483751B (en) * 2017-07-05 2020-10-02 Oppo广东移动通信有限公司 Terminal device, electric quantity distribution method thereof and computer-readable storage medium
CN107835311B (en) * 2017-10-31 2020-05-12 Oppo广东移动通信有限公司 Application management method and device, storage medium and electronic equipment
CN108038050B (en) * 2017-12-22 2020-12-22 Oppo广东移动通信有限公司 Performance adjusting method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090085517A1 (en) * 2007-06-29 2009-04-02 Lenovo (Beijing) Limited Method and apparatus of charge management for battery in mobile terminal
CN106356949A (en) * 2016-10-31 2017-01-25 深圳市金立通信设备有限公司 Charging protection method and terminal
CN108279764A (en) * 2017-01-04 2018-07-13 北京搜狗科技发展有限公司 A kind of application control method, device and mobile terminal
CN107548142A (en) * 2017-07-31 2018-01-05 努比亚技术有限公司 A kind of electricity-saving control method, terminal and computer-readable recording medium
CN108089970A (en) * 2018-01-11 2018-05-29 深圳市金立通信设备有限公司 Predict method, terminal and the storage medium of remaining capacity up time

Also Published As

Publication number Publication date
WO2020133389A1 (en) 2020-07-02

Similar Documents

Publication Publication Date Title
CN108345524B (en) Application program monitoring method and application program monitoring device
US20210034407A1 (en) Virtual Machine Scheduling Method and Apparatus
CN106772091B (en) Method and device for updating battery capacity value and terminal
EP3502878B1 (en) Method for preloading application and terminal device
CN108089814B (en) Data storage method and device
CN108804231B (en) Memory optimization method and device, readable storage medium and mobile terminal
US8941362B2 (en) Charging apparatus, and charge control method
US20130268736A1 (en) Sensor data recording apparatus, method, and program
CN108509348B (en) System aging test method and mobile terminal
CN110865883B (en) Mass data importing method and device, computer equipment and storage medium
US11436188B2 (en) Resource optimization and update method, server, and device
CN109739627B (en) Task scheduling method, electronic device and medium
CN110554945A (en) electric quantity control method, electronic equipment and computer readable storage medium
CN110018780A (en) Promote method, apparatus, terminal and the storage medium of process performance
CN112711387A (en) Method and device for adjusting capacity of buffer area, electronic equipment and readable storage medium
CN109495531A (en) Request processing method and device
CN112997159A (en) Application grouping adjusting method and device, storage medium and electronic equipment
CN111830394A (en) Charging circuit fault detection method, electronic device and computer readable storage medium
CN113439252A (en) Terminal control method, terminal control device, storage medium and electronic equipment
CN113439263A (en) Application cleaning method and device, storage medium and electronic equipment
CN111176899B (en) Cloud backup method, device and equipment
CN111078405B (en) Memory allocation method and device, storage medium and electronic equipment
CN113885969A (en) Embedded device, embedded software loading method and storage medium
CN113056756A (en) Sleep recognition method and device, storage medium and electronic equipment
CN110865877A (en) Task request response method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618

RJ01 Rejection of invention patent application after publication