WO2020133417A1 - Application bucket adjusting method and apparatus, and storage medium and electronic device - Google Patents

Application bucket adjusting method and apparatus, and storage medium and electronic device Download PDF

Info

Publication number
WO2020133417A1
WO2020133417A1 PCT/CN2018/125647 CN2018125647W WO2020133417A1 WO 2020133417 A1 WO2020133417 A1 WO 2020133417A1 CN 2018125647 W CN2018125647 W CN 2018125647W WO 2020133417 A1 WO2020133417 A1 WO 2020133417A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
applications
priority
standby
usage
Prior art date
Application number
PCT/CN2018/125647
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/CN2018/125647 priority Critical patent/WO2020133417A1/en
Priority to CN201880099399.XA priority patent/CN112997539B/en
Publication of WO2020133417A1 publication Critical patent/WO2020133417A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of electronic technology, and in particular, to an application group adjustment 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 (Active), Working (Setting), Frequent (Frequent), Rare (Rare), and Occasionally (Apply is not frequently used).
  • the system will divide each application into one of the above groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources.
  • Embodiments of the present application provide an application grouping adjustment method, apparatus, storage medium, and electronic equipment, which can effectively manage and control resource consumption of electronic equipment.
  • an embodiment of the present application provides an application grouping adjustment method, which is applied to an electronic device.
  • the operating system of the electronic device includes multiple levels of application standby groups.
  • the application standby group with a higher grouping level is configured The stronger the scheduling capability of the electronic equipment resources, the method includes:
  • the applications in the multiple application standby groups are adjusted.
  • an embodiment of the present application provides an application grouping adjustment apparatus, which is applied to an electronic device.
  • the operating system of the electronic device includes multiple levels of application standby groups.
  • the application standby group with a higher grouping level is configured The stronger the scheduling capability of the electronic equipment resources, the device includes:
  • the information acquisition module is used to acquire the usage information of each application in the historical time period
  • the determination module is used to determine the current time point
  • a level adjustment module configured to adjust the priority of each application at the current time according to the usage information
  • the grouping adjustment module is used to adjust the applications in the application standby group based on the priority.
  • an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instructions are adapted to be loaded by a processor to perform the following steps:
  • the applications in the application standby group of multiple levels are adjusted based on the priority, wherein the application standby group with a higher group level is configured to have a stronger scheduling capability for the resources of the electronic device.
  • an embodiment of the present application provides an electronic device, including a processor and a storage medium, where multiple instructions are stored in the storage medium, and the operating system of the electronic device includes multiple levels of application standby packets, and the packet levels The higher the application standby packet is configured to have the stronger ability to schedule the resources of the electronic device, the processor loads the instruction to perform the following steps:
  • the applications in the multiple application standby groups are adjusted.
  • FIG. 1 is a first schematic flowchart of an application group adjustment method provided by an embodiment of the present application.
  • FIG. 2 is a second schematic flowchart of an application group adjustment method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application scenario of an application group adjustment method provided by an embodiment of the present application.
  • FIG. 4 is a first schematic structural diagram of an application packet adjustment device provided by an embodiment of the present application.
  • FIG. 5 is a second schematic structural diagram of an application packet adjustment device provided by an embodiment of the present application.
  • FIG. 6 is a third schematic structural diagram of an application packet adjustment device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Embodiments of the present application provide an application grouping adjustment method, device, storage medium, and electronic equipment, which will be described in detail below.
  • the grouping adjustment method is applied to electronic devices.
  • the electronic device may be a smart terminal such as a smart phone or a tablet computer.
  • multiple applications are installed in the electronic device.
  • the operating system of the electronic device may include multiple levels of application standby packets, and application standby packets with a higher packet level are configured to have a stronger ability to schedule electronic device resources.
  • the operating system may be an Android (Android) operating system, and multiple levels of application standby grouping may be a power framework under the Android operating system.
  • 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, namely: active (the application is being used), working (the application is frequently used), commonly used (the application is often used but not every day), rarely (the application is rarely used), Occasionally (applications are used occasionally).
  • the system will divide each application into one of the above groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources. Among them, in terms of scheduling capability of device resources, active grouping, working grouping, common grouping, rare grouping, and occasional grouping decrease in sequence.
  • the scheduling capability of applications in active grouping on device resources is configured to be stronger than working groupings.
  • the ability to schedule equipment resources of applications that are divided into work groups is configured to be stronger than commonly used groups.
  • the device of the Android system divides an application into one of the five groups according to the usage behavior of the application, that is, the device has poor flexibility in adjusting the application standby group.
  • the application group adjustment method provided immediately at the time of this application may include the following processes:
  • the application mentioned in this embodiment may be any application installed on the electronic device, such as an office application, a social application, a game application, a shopping application, and so on.
  • the usage information of the application may be a usage record of the application, such as a record of the opening time of each application.
  • the usage information of each installed application can be recorded, converted into corresponding data and stored in a preset storage area.
  • the historical time period may be the past month, the most recent week, and so on.
  • the sampling time point can be set to monitor the usage records of each application for each application. If you want to obtain high-precision results, you can set the collection time point more densely, such as every 1 minute is a sampling time point; if you want to save the resources of electronic equipment and do not require the accuracy of the result, you can Set the sampling time point loosely, for example, every 10 minutes is a sampling time point.
  • the operation of acquiring usage information of each application may be set to be triggered only when the electronic device is in a standby state.
  • a timer can be integrated in the electronic device to detect the current time information in real time, such as a time stamp. Then, convert the obtained timestamp to the time information in the current common time format, such as xx year xx month xx day xx hour xx minutes xx seconds, and can also be converted into week xx, week xx, xx hours xx minutes xx seconds, etc. .
  • the usage information of each application can be counted, and it can be concluded that users often use high-frequency applications at different time points according to the statistical results, as a habit of using applications by users, to prioritize applications.
  • a prediction algorithm model (such as a mixed Gaussian algorithm model and a convolutional neural network algorithm model) of application usage can be constructed based on the usage information of each application, so as to adjust the priority of each application at different time points according to the prediction results.
  • the applications configured in the application standby group can be adjusted according to the priority order of the electronic devices at the current time point, so as to dynamically adjust each level under the power frame according to the user's usage habits and the current time point
  • the applications in the group make it possible to reduce the resource consumption of electronic devices without closing the applications.
  • the state parameter may be a power parameter of an electronic device, a network state parameter, a motion state parameter, and so on.
  • the step "adjusting applications in multiple application standby groups based on priority” may include the following process:
  • the number distribution information is information about the number of applications correspondingly configured in the application standby group of each level. For example, there are five levels of application standby groups, the first level is the highest level, then the number distribution information can be set as follows: the number of applications configured for the first level application standby group is 3, and the second level of application standby group is configured The number of applications is 4, the third-level application standby group corresponds to 5 configured applications, the fourth-level application standby group corresponds to 6 configured applications, and the fifth-level application standby group corresponds to 7 configured applications .
  • the power interval it is necessary to establish in advance a mapping relationship between the power interval and the number distribution information of the number of applications in each application standby group.
  • the power can be divided into multiple intervals according to actual demand, such as 0-20%, 20%-40%, 40%-80%, 80%-100%, etc.
  • Four battery intervals Then, according to the power of each section, set the number of allowed applications in each level of the application standby group. In actual applications, the higher the power, the higher the number of applications allowed to be configured in the application standby group corresponding to the higher level.
  • the power range is 0-20%
  • the number of applications allowed to be configured in the corresponding highest level application standby group is 1, and the number of applications allowed to be configured in the corresponding lowest level application standby group is 10.
  • the power range is 80-100%, and the number of applications allowed to be configured in the corresponding highest-level application standby group is 5
  • the number of applications allowed to be configured in the corresponding highest-level application standby group is 5.
  • the step "adjusting applications in multiple application standby groups based on the number distribution information and priority" may include the following process:
  • the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
  • the grouping level is five levels, and the quantity distribution information from the high level to the low level is: 1, 1, 2, 3, 3.
  • five sets can be selected from multiple applications, namely set 1 ⁇ A ⁇ , set 2 ⁇ B ⁇ , set 3 ⁇ C, D ⁇ , set 4 ⁇ E, F, G ⁇ , Collection 5 ⁇ H, I, J ⁇ .
  • the corresponding application set can be matched for each level according to the order of the grouping levels, so as to replace the applications in each application standby group with the applications in the matched application set.
  • the step of "matching application standby groups of multiple levels with multiple application sets in the order of packet hierarchy” may include the following processes:
  • the priority of the application in the high-level application set is higher than the priority of the application in the low-level application set;
  • the multiple application sets are matched with the multiple application standby groups in a one-to-one correspondence.
  • an aggregation level may be set for multiple application aggregations. For example, set 1 ⁇ A ⁇ to the first level (that is, the highest level), set 2 ⁇ B ⁇ to the second level, set 3 ⁇ C, D ⁇ to the third level, and set 4 ⁇ E, F, G ⁇ Set to the fourth level and set 5 ⁇ H, I, J ⁇ to the fifth level (ie the lowest level). Then, according to the order of the collection level from high to low, and the grouping level from high to low, set 1 is matched with the application standby group of the first level, set 2 is matched with the application standby group of the second level, and set 3 Match with the third-level application standby group, and so on.
  • the step "replace applications in each application standby group with applications in the matched application set” may include the following process:
  • the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods; with continued reference to FIG. 2, the step "obtaining usage information of each application in the historical time period" may include the following process:
  • the same sampling period of each application in each day of the past week is counted (if a day can include 24 hours, the first hour of Monday and the The first hour is the same sampling period; then the 24th hour on Monday and the 24th hour on Sunday are the same sampling period)
  • the usage information of the acquired applications may be preprocessed to calculate the usage probability of each application in different sampling periods, to further obtain the probability distribution of the usage change of each application with time, and
  • the training samples are generated in one-to-one correspondence with the use probability.
  • the preset algorithm model can be trained based on the generated training samples to obtain an algorithm model that can predict the application use probability at different time points.
  • the training samples generated above can be input into a preset mixed Gaussian model, and the relevant parameters in the preset mixed Gaussian model can be continuously modified according to the input training samples, so that the trained mixed Gaussian model can be applied to All training samples are used to predict the application usage probability at different time points.
  • the step "adjust the priority of each application at the current time point according to the usage information” may include the following process:
  • the corresponding target sampling period may be determined to be the 9th hour from multiple sampling periods (such as the above-mentioned 24 hours). Then, it is sufficient to obtain the use probability corresponding to each application in the 9th hour, and adjust the priority of each application based on the use probability.
  • the usage information includes usage frequency and duration; then the step "process the usage information corresponding to the same sampling period of each application in different time periods to obtain the corresponding correspondences of different sampling periods of each application in the time period "Probability of use” can include the following processes:
  • Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
  • the first probability and the second probability are weighted, and the use probability of each application in different sampling periods is calculated.
  • the probability of the usage frequency corresponding to the same sampling period in different time periods for each application you can count the usage in the same sampling period in different time periods (such as 12:00 to 13:00 every day) The total number of applications, and then count the sum of the number of times the target application needs to be calculated in the same sampling period in different time periods (ie, 12:00 to 13:00 every day), and finally calculate the ratio, which is the target application
  • the first probability corresponding to the frequency of use in the sampling period ie, 12:00 to 13:00.
  • the first probability corresponding to the use frequency of each application under different sampling periods can be calculated.
  • the probability calculation is performed separately for the usage duration corresponding to the same sampling period in different time periods for each application.
  • the same sampling period in different time periods (such as 12:00 to 13:00 every day) can be counted Use the total duration of the application, and then count the sum of the duration of the target application that needs to be calculated in the same sampling period in different time periods (such as 12:00 to 13:00 every day), and finally calculate the ratio, which is the target
  • the second probability corresponding to the usage duration under the sampling period that is, 12:00 to 13:00
  • the second probability corresponding to the usage duration of each application in different sampling periods can be calculated.
  • the preset weight can be set by the product manufacturer, for example, the weight corresponding to the use frequency is set to 40%, and the weight corresponding to the use time is set to 60%.
  • the usage information may also include other application usage parameters, such as the length of time the foreground runs, power consumption, and so on.
  • the application grouping adjustment method obtaineds the usage information of each application in the historical time period; determines the current time point; and adjusts the priority of each application at the current time point according to the usage information; Based on the priority, the applications in the application standby group of multiple levels are adjusted.
  • the solution of the present application can dynamically adjust the applications in each level group under the power framework in real time according to the user's usage habits, and achieve the purpose of reducing the resource consumption of electronic devices without closing the applications.
  • FIG. 3 is a schematic diagram of an application scenario of an application grouping adjustment method provided in an embodiment of the present application.
  • the preset power ranges are: 0-20%, 20%-40%, 40%-80%, and 80%-100%.
  • the standby group of each application in the figure gradually decreases from the top to the lower level, when the electronic device is in the standby mode, the application standby group adjustment mode is triggered to start, at this time the electronic device can obtain each application in the past week (assuming There are 11 applications such as application 1 to application 11 installed in the electronic device.
  • the priority of each application under the current time point (that is, Monday 11:10) is adjusted to obtain the priority from high to
  • the result of the low order is: application 1 to application 11, when the power is 90%, and the power interval is 80%-100%, then obtain the application number distribution information of the application standby group at each level under the power interval (assuming The order from high to low is: 2, 3, 3, 2, 1), then the configuration of the application standby group at the current time can refer to Figure 3(a).
  • the application standby group at each level is from high level to low level
  • the application distribution is: application 1, application 2; application 3, application 4, application 5; application 6, application 7, application 8; application 9, application 10; application 11.
  • the electronic device can obtain the usage information of each application in the past week, and then, according to the usage information, adjust the priority of each application under the current time point (that is, Monday 12:20) ,
  • the results of the priority order from high to low are: Application 3, Application 4, Application 6, Application 7, Application 8, Application 1, Application 2, Application 5, Application 11, Application 10, Application 9.
  • the power is 85%, and the power interval is between 80% and 100%, which is the same as when the power is 90%. Therefore, the distribution information of the number of applications in the application standby group at each level remains unchanged.
  • the application distribution of the application standby group at each level from the upper level to the lower level is: application 3, application 4; application 6, application 7, application 8; Application 1, Application 2, Application 5; Application 11, Application 10; Application 9.
  • the electronic device can obtain the usage information of each application in the past week, and then, according to the usage information, adjust the priority of each application under the current time (ie, 12:50 on Monday) ,
  • the order of priority from high to low is still as follows: application 3, application 4, application 6, application 7, application 8, application 1, application 2, application 5, application 11, application 10, application 9.
  • the power is 75%, and the power range is 40%-80%, then obtain the distribution information of the number of applications in the application standby group of each level under the power range (assuming that the order from high to low is: 1, 3, 3 , 3, 1).
  • the application distribution of the application standby group at each level from the upper level to the lower level is: application 3; Application 4, Application 6, Application 7; Application 8, Application 1, Application 2; Application 5, Application 11, Application 10; Application 9.
  • the solution of this application can dynamically adjust the applications in the application standby group of each level under the power framework in real time based on the user's usage habits, combined with the current timestamp and the status information of the electronic device (such as power, network status, etc.).
  • the purpose of reducing the consumption of electronic equipment resources is achieved, and the consumption of electronic equipment resources is effectively controlled.
  • An embodiment of the present application further provides an application group adjustment device 300, which may be integrated in an electronic device, which may be a smart terminal device such as a smart phone, a tablet computer, or the like, and multiple applications are installed in the electronic device.
  • an electronic device which may be a smart terminal device such as a smart phone, a tablet computer, or the like, and multiple applications are installed in the electronic device.
  • the application group adjustment device 300 may include: an information acquisition module 31, a determination module 32, a level adjustment module 33, and a group adjustment module 34. among them:
  • the information obtaining module 31 is used to obtain the usage information of each application in the historical time period;
  • the determination module 32 is used to determine the current time point
  • the level adjustment module 33 is used to adjust the priority of each application at the current time according to the usage information
  • the grouping adjustment module 34 is configured to adjust applications in a plurality of application standby groups based on the priority.
  • the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods; the information acquisition module 31 is used to:
  • the usage information corresponding to the same sampling period of each application in different time periods is processed to obtain the usage probability of each application corresponding to different sampling periods in the time period.
  • the level adjustment module 33 may include:
  • the first determining submodule 331 is configured to determine a target sampling period corresponding to the current time point from the plurality of sampling periods;
  • the first obtaining sub-module 332 is used to obtain the target use probability corresponding to each application during the target sampling period;
  • the first adjustment sub-module 333 is used to adjust the priority of each application based on the target use probability.
  • the usage information includes usage frequency and duration
  • the first obtaining sub-module is used to:
  • Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
  • the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
  • the device 300 may further include:
  • the power quantity obtaining module 35 is configured to obtain the current power quantity of the current electronic device before adjusting the applications in the multiple application standby groups based on the priority;
  • the grouping adjustment module 34 may include:
  • a second determination sub-module 341, configured to determine a power interval where the current power is located
  • the second obtaining submodule 342 is configured to obtain quantity distribution information of the number of applications in each application standby group under the power interval according to a preset mapping relationship, where the preset mapping relationship includes: the power interval and each application standby group The mapping relationship between the quantity distribution information of the number of applications in
  • the second adjustment sub-module 343 is configured to adjust applications in a plurality of application standby groups based on the number distribution information and the priority.
  • the second adjustment sub-module 343 may be used to:
  • the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
  • an embodiment of the present application provides an application grouping adjustment device, which obtains the usage information of each application in a historical time period; determines the current time point; and adjusts the priority of each application at the current time point according to the usage information Level; adjust the applications in the application standby group of multiple levels based on the priority.
  • the solution of the present application can dynamically adjust the applications in each level group under the power framework in real time according to the user's usage habits, and achieve the purpose of reducing the resource consumption of electronic devices without closing the applications.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the processor 501 and the memory 502 are electrically connected.
  • the processor 500 is the control center of the electronic device 500, which uses various interfaces and lines to connect the various parts of the entire electronic device, executes or loads the computer program stored in the memory 502, and calls the data stored in the memory 502 to execute
  • the electronic device 500 performs various functions and processes data to perform overall monitoring of the electronic device 500.
  • the memory 502 can be used to store software programs and modules.
  • the processor 501 runs computer programs and modules stored in the memory 502 to execute various functional applications and data processing.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function, and the like; the storage data area may store data created according to the use of electronic devices, and the like.
  • the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
  • the processor 501 in the electronic device 500 will load the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs and stores the instructions in the memory 502
  • the computer program in order to achieve various functions, as follows:
  • the applications in the multiple application standby groups are adjusted.
  • the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods;
  • the processor 501 When acquiring the usage information of each application in the historical time period, the processor 501 performs the following steps:
  • the usage information corresponding to the same sampling period of each application in different time periods is processed to obtain the usage probability of each application corresponding to different sampling periods in the time period.
  • the processor 501 When adjusting the priority of each application at the current time point according to the usage information, the processor 501 performs the following steps:
  • the priority of each application is adjusted based on the target use probability.
  • the usage information includes usage frequency and duration; after processing usage information corresponding to the same sampling period of each application in different time periods, it is obtained that each application corresponds to a different sampling period in the time period
  • the processor 501 performs the following steps:
  • Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
  • the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
  • the processor 501 before adjusting applications in multiple application standby groups based on the priority, the processor 501 performs the following steps:
  • the processor 501 When adjusting applications in multiple application standby groups based on the priority, the processor 501 performs the following steps:
  • the preset mapping relationship includes: between the quantity interval and the number distribution information of the number of applications in each application standby group Mapping relationship
  • the applications in the multiple application standby groups are adjusted.
  • the processor 501 when adjusting applications in a plurality of application standby groups based on the number distribution information and the priority, performs the following steps:
  • the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
  • the processor 501 executes the following steps when matching the application standby packets of the multiple levels with multiple application sets according to the order of the packet levels.
  • the multiple application sets are matched with the multiple application standby packets in a one-to-one correspondence in order of the set level from high to low and the grouping level from high to low.
  • the processor 501 when the applications in each application standby group are replaced with applications in the matched application set, the processor 501 performs the following steps:
  • the electronic device of the embodiment of the present application obtains the usage information of each application in the historical time period; determines the current time point; adjusts the priority of each application at the current time point according to the usage information; based on the Priority adjusts the applications in the application standby group at multiple levels.
  • the solution of the present application can dynamically adjust the applications in each level group under the power framework in real time according to the user's usage habits, and achieve the purpose of reducing the resource consumption of electronic devices without closing the applications.
  • the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power supply 506.
  • the display 503, the radio frequency circuit 504, the audio circuit 505, and the power supply 506 are electrically connected to the processor 501, respectively.
  • the display 503 can be used to display information input by the user or provided to the user and various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the radio frequency circuit 504 can be used to send and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and send and receive signals with network devices or other electronic devices.
  • the audio circuit 505 can be used to provide an audio interface between a user and an electronic device through speakers and microphones.
  • the power supply 506 can be used to power various components of the electronic device 500.
  • the power supply 506 may be logically connected to the processor 501 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, etc., which will not be repeated here.
  • An embodiment of the present application also provides a storage medium that stores a computer program, and when the computer program is run on a computer, the computer is caused to execute the application grouping adjustment method in any of the foregoing embodiments, for example: acquiring historical time Use information of each application in the segment; determine the current time point; adjust the priority of each application at the current time point according to the use information; adjust the applications in the application standby group of multiple levels based on the priority, Among them, the application standby packet with a higher packet level is configured to have a stronger scheduling capability for the resources of the electronic device.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • the computer program may be stored in a computer-readable storage medium, such as stored in the memory of the electronic device, and executed by at least one processor in the electronic device, during the execution process may include, for example, application group adjustment The process of the method embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
  • each functional module 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 integrated modules can be implemented in the form of hardware or software function 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, magnetic disk, or optical disk.

Abstract

Provided are an application bucket adjusting method and apparatus, and a storage medium and an electronic device. The application bucket adjusting method comprises: acquiring usage information of each application within a historical time period; determining the current time point; adjusting, according to the usage information, the priority of each application at the current time point; and adjusting, based on the priority, applications in a plurality of levels of application standby buckets.

Description

应用分组调整方法、装置、存储介质及电子设备Application group adjustment method, device, storage medium and electronic equipment 技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种应用分组调整方法、装置、存储介质及电子设备。This application relates to the field of electronic technology, and in particular, to an application group adjustment 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 (Active), Working (Setting), Frequent (Frequent), Rare (Rare), and Occasionally (Apply is not frequently used). The system will divide each application into one of the above groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources.
发明内容Summary of the invention
本申请实施例提供一种应用分组调整方法、装置、存储介质及电子设备,可以有效对电子设备资源消耗进行管控。Embodiments of the present application provide an application grouping adjustment method, apparatus, storage medium, and electronic equipment, which can effectively manage and control resource consumption of electronic equipment.
第一方面,本申请实施例提供一种应用分组调整方法,应用于电子设备,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述方法包括:In a first aspect, an embodiment of the present application provides an application grouping adjustment method, which is applied to an electronic device. The operating system of the electronic device includes multiple levels of application standby groups. The application standby group with a higher grouping level is configured The stronger the scheduling capability of the electronic equipment resources, the method includes:
获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
确定当前时间点;Determine the current time;
根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
基于所述优先级对多个应用待机分组中的应用进行调整。Based on the priority, the applications in the multiple application standby groups are adjusted.
第二方面,本申请实施例提供一种应用分组调整装置,应用于电子设备,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述装置包括:In a second aspect, an embodiment of the present application provides an application grouping adjustment apparatus, which is applied to an electronic device. The operating system of the electronic device includes multiple levels of application standby groups. The application standby group with a higher grouping level is configured The stronger the scheduling capability of the electronic equipment resources, the device includes:
信息获取模块,用于获取历史时间段内各应用的使用信息;The information acquisition module is used to acquire the usage information of each application in the historical time period;
确定模块,用于确定当前时间点;The determination module is used to determine the current time point;
级别调整模块,用于根据所述使用信息调整所述当前时间点下各应用的优先级;A level adjustment module, configured to adjust the priority of each application at the current time according to the usage information;
分组调整模块,用于基于所述优先级对多个应用待机分组中的应用进行调整。The grouping adjustment module is used to adjust the applications in the application standby group based on the priority.
第三方面,本申请实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:In a third aspect, an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instructions are adapted to be loaded by a processor to perform the following steps:
获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
确定当前时间点;Determine the current time;
根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
基于所述优先级对多个层级的应用待机分组中的应用进行调整,其中,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。The applications in the application standby group of multiple levels are adjusted based on the priority, wherein the application standby group with a higher group level is configured to have a stronger scheduling capability for the resources of the electronic device.
第四方面,本申请实施例提供一种电子设备,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述处理器加载所述指令以执行以下步骤:According to a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a storage medium, where multiple instructions are stored in the storage medium, and the operating system of the electronic device includes multiple levels of application standby packets, and the packet levels The higher the application standby packet is configured to have the stronger ability to schedule the resources of the electronic device, the processor loads the instruction to perform the following steps:
获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
确定当前时间点;Determine the current time;
根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
基于所述优先级对多个应用待机分组中的应用进行调整。Based on the priority, the applications in the multiple application standby groups are adjusted.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without paying any creative labor, other drawings can also be obtained based on these drawings.
为了更完整地理解本申请及其有益效果,下面将结合附图来进行以下说明,其中在下面的描述中相同的附图标号表示相同部分。For a more complete understanding of the present application and its beneficial effects, the following description will be made in conjunction with the accompanying drawings, wherein the same reference numerals in the following description indicate the same parts.
图1是本申请实施例提供的应用分组调整方法的第一流程示意图。FIG. 1 is a first schematic flowchart of an application group adjustment method provided by an embodiment of the present application.
图2是本申请实施例提供的应用分组调整方法的第二流程示意图。FIG. 2 is a second schematic flowchart of an application group adjustment method provided by an embodiment of the present application.
图3是本申请实施例提供的应用分组调整方法的应用场景示意图。FIG. 3 is a schematic diagram of an application scenario of an application group adjustment method provided by an embodiment of the present application.
图4是本申请实施例提供的应用分组调整装置的第一结构示意图。FIG. 4 is a first schematic structural diagram of an application packet adjustment device provided by an embodiment of the present application.
图5是本申请实施例提供的应用分组调整装置的第二结构示意图。FIG. 5 is a second schematic structural diagram of an application packet adjustment device provided by an embodiment of the present application.
图6是本申请实施例提供的应用分组调整装置的第三结构示意图。6 is a third schematic structural diagram of an application packet adjustment device provided by an embodiment of the present application.
图7是本申请实施例提供的电子设备的结构示意图。7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图8是本申请实施例提供的电子设备的又一结构示意图。FIG. 8 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the protection scope of the present application.
本申请实施例提供一种应用分组调整方法、装置、存储介质及电子设备,以下将分别进行详细说明。Embodiments of the present application provide an application grouping adjustment method, device, storage medium, and electronic equipment, which will be described in detail below.
如图1所示,应用分组调整方法,应用于电子设备。该电子设备可以是智能手机、平板电脑等智能终端。其中,电子设备中安装有多个应用。电子设备的操作系统可以包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对电子设备资源的调度能力越强。例如,该操作系统可以是安卓(Android)操作系统,多个层级的应用待机分组可以是安卓操作系统下的电量框架。As shown in Figure 1, the grouping adjustment method is applied to electronic devices. The electronic device may be a smart terminal such as a smart phone or a tablet computer. Among them, multiple applications are installed in the electronic device. The operating system of the electronic device may include multiple levels of application standby packets, and application standby packets with a higher packet level are configured to have a stronger ability to schedule electronic device resources. For example, the operating system may be an Android (Android) operating system, and multiple levels of application standby grouping may be a power framework under the Android operating system.
目前,很多移动电子设备使用安卓操作系统。其中,安卓系统中包含应用待机分组功能。应用待机分组功能是一项电量管理功能。应用待机分组包含如下五个分组,分别为:活跃(应用正在被使用)、工作(应用使用频率很高)、常用(应用经常被使用但不是每天)、极少(应用很少被使用)、偶尔(应用偶尔被使用)。系统会根据每个应用的使用情况,将其划分至上述分组中的一个,而每个分组对设备资源的调度各有不同的限制。其中,在对设备资源的调度能力方面,活跃分组、工作分组、常用分组、极少分组以及偶尔分组依次降低。比如,处于活跃分组的应用对设备资源的调度能力被配置为强于工作分组。被划分到工作分组的应用对设备资源的调度能力被配置为强于常用分组。然而,相关技术中,安卓系统的设备是根据应用的使用行为来将某一应用划分到上述五个分组中的某个分组,也即设备对应用待机分组进行调整的灵活性较差。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, namely: active (the application is being used), working (the application is frequently used), commonly used (the application is often used but not every day), rarely (the application is rarely used), Occasionally (applications are used occasionally). The system will divide each application into one of the above groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources. Among them, in terms of scheduling capability of device resources, active grouping, working grouping, common grouping, rare grouping, and occasional grouping decrease in sequence. For example, the scheduling capability of applications in active grouping on device resources is configured to be stronger than working groupings. The ability to schedule equipment resources of applications that are divided into work groups is configured to be stronger than commonly used groups. However, in the related art, the device of the Android system divides an application into one of the five groups according to the usage behavior of the application, that is, the device has poor flexibility in adjusting the application standby group.
有基于此,本申请时还是立提供的应用分组调整方法,可以包括以下流程:Based on this, the application group adjustment method provided immediately at the time of this application may include the following processes:
101、获取历史时间段内各应用的使用信息。101. Obtain usage information of each application in a historical time period.
本实施例所提及的应用,可以是电子设备上安装的任何一个应用,例如办公应用、社交应用、游戏应用、购物应用等。The application mentioned in this embodiment may be any application installed on the electronic device, such as an office application, a social application, a game application, a shopping application, and so on.
在一些实施例中,应用的使用信息可以为应用的使用记录,如各应用的开启时间记录。 实际应用中,自应用安装,则可记录每一已安装应用的使用信息,转换成相应的数据存储到预设的存储区域中。当需要使用某一或某些应用的使用信息时,则可以从该存储区域中调取与该某一或某些应用在某一时间段内对应的数据,对获取的数据进行解析得到相应的信息,以作为该某一或某些应用在历史时间段内的使用信息。其中,历史时间段可以是过去一个月、最近一周等。In some embodiments, the usage information of the application may be a usage record of the application, such as a record of the opening time of each application. In actual applications, since the application is installed, the usage information of each installed application can be recorded, converted into corresponding data and stored in a preset storage area. When you need to use the usage information of an application or applications, you can retrieve the data corresponding to the application or applications within a certain period of time from the storage area, and analyze the obtained data to obtain the corresponding Information, as the usage information of the certain application or applications in the historical time period. The historical time period may be the past month, the most recent week, and so on.
具体实施时,可设定采样时间点对各应用的对个应用的使用记录进行监测。若想得到精确度较高的结果,则可将采集时间点设置地密集一些,如每隔1分钟为一采样时间点;若想节省电子设备的资源而对结果的精确度不做要求,则可将采样时间点设置地松散一些,如每隔10分钟为一采样时间点。In specific implementation, the sampling time point can be set to monitor the usage records of each application for each application. If you want to obtain high-precision results, you can set the collection time point more densely, such as every 1 minute is a sampling time point; if you want to save the resources of electronic equipment and do not require the accuracy of the result, you can Set the sampling time point loosely, for example, every 10 minutes is a sampling time point.
具体实施过程中,为减少电子设备的功耗,节省电子设备的终端资源,可直接设定所需记录的时间段,然后在该时间段内对每一采样时间点样本应用的使用信息进行记录即可,以便后续使用。In the specific implementation process, in order to reduce the power consumption of the electronic device and save the terminal resources of the electronic device, you can directly set the required recording time period, and then record the usage information of the sample application at each sampling time point within the time period That’s it for later use.
在本申请实施例中,为了进一步降低功耗,该获取各应用使用信息的操作可以设定为只在电子设备处于待机状态下才会触发的。In the embodiment of the present application, in order to further reduce power consumption, the operation of acquiring usage information of each application may be set to be triggered only when the electronic device is in a standby state.
102、确定当前时间点。102. Determine the current time.
具体的,可以在电子设备中集成计时器,用于实时检测当前的时间信息,如时间戳。然后,将获取的时间戳换算成目前通用的时间格式的时间信息,如xx年xx月xx日xx时xx分xx秒,还可以转换成第xx周、星期xx、xx时xx分xx秒等。Specifically, a timer can be integrated in the electronic device to detect the current time information in real time, such as a time stamp. Then, convert the obtained timestamp to the time information in the current common time format, such as xx year xx month xx day xx hour xx minutes xx seconds, and can also be converted into week xx, week xx, xx hours xx minutes xx seconds, etc. .
103、根据使用信息调整当前时间点下各应用的优先级。103. Adjust the priority of each application at the current time according to the usage information.
具体的,可统计各个应用的使用信息,根据统计结果得出在不同时间点下的用户常使用高频应用,以此作为用户使用应用的习惯,来进行应用优先级的排序。Specifically, the usage information of each application can be counted, and it can be concluded that users often use high-frequency applications at different time points according to the statistical results, as a habit of using applications by users, to prioritize applications.
实际应用中,可基于各个应用的使用信息构建应用使用情况的预测算法模型(如混合高斯算法模型、卷积神经网络算法模型等),从而根据预测结果调整不同时间点下各应用的优先级。In actual applications, a prediction algorithm model (such as a mixed Gaussian algorithm model and a convolutional neural network algorithm model) of application usage can be constructed based on the usage information of each application, so as to adjust the priority of each application at different time points according to the prediction results.
104、基于优先级对多个应用待机分组中的应用进行调整。104. Adjust applications in multiple application standby groups based on priority.
具体的,可根据当前时间点下各电子设备的优先级高低顺序,对配置在应用待机分组中的应用进行调整,以实现根据用户的使用习惯和当前的时间点,动态调节电量框架下各层级分组中的应用,使得在不关闭应用的前提下,也可以达到降低电子设备资源消耗的目的。Specifically, the applications configured in the application standby group can be adjusted according to the priority order of the electronic devices at the current time point, so as to dynamically adjust each level under the power frame according to the user's usage habits and the current time point The applications in the group make it possible to reduce the resource consumption of electronic devices without closing the applications.
在一些实施例中,还可以引入电子设备的其他状态参数来对各层级的应用待机分组进一步调整管控。例如,该状态参数可以是电子设备的电量参数、网络状态参数、运动状态参数等等。In some embodiments, other status parameters of the electronic device may also be introduced to further adjust and control the application standby group at each level. For example, the state parameter may be a power parameter of an electronic device, a network state parameter, a motion state parameter, and so on.
具体的,参考图2,以电量参数为例,则在基于优先级对多个应用待机分组中的应用进行调整之前,还包括以下流程:Specifically, referring to FIG. 2, taking the power parameter as an example, before adjusting applications in multiple application standby groups based on priority, the following process is also included:
105、获取当前电子设备的当前电量;105. Obtain the current power of the current electronic device;
则步骤“基于优先级对多个应用待机分组中的应用进行调整”,可以包括以下流程:The step "adjusting applications in multiple application standby groups based on priority" may include the following process:
1041、确定当前电量所处的电量区间;1041. Determine the current power interval;
1042、根据预设映射关系,获取该电量区间下各应用待机分组中应用数量的数量分布信息,其中,预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;1042. Acquire the quantity distribution information of the number of applications in each application standby group under the power interval according to the preset mapping relationship, where the preset mapping relationship includes: the relationship between the quantity interval and the number distribution information of the number of applications in each application standby group Mapping relations;
1043、基于该数量分布信息和优先级,对多个应用待机分组中的应用进行调整。1043. Based on the number distribution information and the priority, adjust the applications in the multiple application standby group.
其中,数量分布信息为各个层级的应用待机分组中对应配置的应用数量信息。例如,共有五个层级的应用待机分组,第一层级为最高层级,则数量分布信息可以设置为:第一层级的应用待机分组对应配置的应用数量为3,第二层级的应用待机分组对应配置的应用数 量为4,第三层级的应用待机分组对应配置的应用数量为5,第四层级的应用待机分组对应配置的应用数量为6,第五层级的应用待机分组对应配置的应用数量为7。The number distribution information is information about the number of applications correspondingly configured in the application standby group of each level. For example, there are five levels of application standby groups, the first level is the highest level, then the number distribution information can be set as follows: the number of applications configured for the first level application standby group is 3, and the second level of application standby group is configured The number of applications is 4, the third-level application standby group corresponds to 5 configured applications, the fourth-level application standby group corresponds to 6 configured applications, and the fifth-level application standby group corresponds to 7 configured applications .
在本申请实施例中,需要预先建立电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系。首先,划分电量区域,假设满电为100%,则可依照实际需求将电量划分为多个区间,如0-20%、20%-40%、40%-80%,80%-100%等四个电量区间。然后,按照每个区间的电量,设定各个层级的应用待机分组中允许配置的应用数量。实际应用中,电量越高,则对应越高层级的应用待机分组中允许配置的应用数量则越多,相应的,越低层级的应用待机分组中允许配置的应用数量则越少;电量越低,则对应越高层级的应用待机分组中允许配置的应用数量则越少,相应的,越低层级的应用待机分组中允许配置的应用数量则越多。In the embodiment of the present application, it is necessary to establish in advance a mapping relationship between the power interval and the number distribution information of the number of applications in each application standby group. First, divide the power area, assuming that the full power is 100%, the power can be divided into multiple intervals according to actual demand, such as 0-20%, 20%-40%, 40%-80%, 80%-100%, etc. Four battery intervals. Then, according to the power of each section, set the number of allowed applications in each level of the application standby group. In actual applications, the higher the power, the higher the number of applications allowed to be configured in the application standby group corresponding to the higher level. Correspondingly, the lower the number of applications allowed to be configured in the application standby group of the lower level; the lower the power , The lower the number of applications allowed to be configured in the application standby group corresponding to the higher level, the correspondingly, the greater the number of applications allowed to be configured in the application standby group at the lower level.
例如,电量区间0-20%,对应的最高层级的应用待机分组中允许配置的应用数量为1,对应的最低层级的应用待机分组中允许配置的应用数量为10。电量区间80-100%,对应的最高层级的应用待机分组中允许配置的应用数量为5对应的最高层级的应用待机分组中允许配置的应用数量为5。For example, the power range is 0-20%, the number of applications allowed to be configured in the corresponding highest level application standby group is 1, and the number of applications allowed to be configured in the corresponding lowest level application standby group is 10. The power range is 80-100%, and the number of applications allowed to be configured in the corresponding highest-level application standby group is 5 The number of applications allowed to be configured in the corresponding highest-level application standby group is 5.
在一些实施例中,步骤“基于该数量分布信息和优先级,对多个应用待机分组中的应用进行调整”,可以包括以下流程:In some embodiments, the step "adjusting applications in multiple application standby groups based on the number distribution information and priority" may include the following process:
根据该数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;According to the number distribution information, the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
按照分组层级高低顺序,将多个层级的应用待机分组与多个应用集合匹配;Match the application standby groups of multiple levels with multiple application sets according to the order of grouping levels;
将各应用待机分组内的应用替换成所匹配应用集合中的应用。Replace the applications in each application standby group with the applications in the matched application set.
具体的,根据该数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用时,假设有10个应用按优先级从高到低的顺序依次为A、B、C、D、E、F、G、H、I、J,分组层级为五个层级,从高层级到低层级的数量分布信息为:1、1、2、3、3。那么,可按照分组层级数量,从多个应用中筛选出五个集合,分别为集合1{A}、集合2{B}、集合3{C,D}、集合4{E,F,G}、集合5{H,I,J}。然后,可按照分组层级高低顺序,为每一层级匹配相应的应用集合,以将各应用待机分组内的应用替换成所匹配应用集合中的应用。Specifically, according to the number distribution information, when filtering the corresponding number of applications in order of priority from high to low, it is assumed that there are 10 applications in the order of priority from high to low: A, B, C, D, E, F, G, H, I, J, the grouping level is five levels, and the quantity distribution information from the high level to the low level is: 1, 1, 2, 3, 3. Then, according to the number of grouping levels, five sets can be selected from multiple applications, namely set 1{A}, set 2{B}, set 3{C, D}, set 4{E, F, G} , Collection 5{H, I, J}. Then, the corresponding application set can be matched for each level according to the order of the grouping levels, so as to replace the applications in each application standby group with the applications in the matched application set.
在一些实施例中,步骤“按照分组层级高低顺序,将多个层级的应用待机分组与多个应用集合匹配”,可以包括以下流程:In some embodiments, the step of "matching application standby groups of multiple levels with multiple application sets in the order of packet hierarchy" may include the following processes:
对多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;Set an aggregation level for multiple application sets. Among the two application sets adjacent to the aggregation level, the priority of the application in the high-level application set is higher than the priority of the application in the low-level application set;
按照集合等级由高到低、及分组层级由高到低的顺序,将多个应用集合与所述多个应用待机分组一一对应匹配。According to the order of the collection level from high to low, and the grouping level from high to low, the multiple application sets are matched with the multiple application standby groups in a one-to-one correspondence.
具体的,为了提升匹配速度以及有效性匹配的概率,可以对多个应用集合设置集合等级。例如,将集合1{A}设置为第一级(即最高级),集合2{B}设置为第二级,集合3{C,D}设置为三级、集合4{E,F,G}设置为第四级、集合5{H,I,J}设置为第五级(即最低级)。然后,按照集合等级由高到低、及分组层级由高到低的顺序,将集合1与第一层级的应用待机分组匹配,将将集合2与第二层级的应用待机分组匹配,将集合3与第三层级的应用待机分组匹配,以此类推。Specifically, in order to improve the matching speed and the probability of effective matching, an aggregation level may be set for multiple application aggregations. For example, set 1{A} to the first level (that is, the highest level), set 2{B} to the second level, set 3{C, D} to the third level, and set 4{E, F, G } Set to the fourth level and set 5{H, I, J} to the fifth level (ie the lowest level). Then, according to the order of the collection level from high to low, and the grouping level from high to low, set 1 is matched with the application standby group of the first level, set 2 is matched with the application standby group of the second level, and set 3 Match with the third-level application standby group, and so on.
在一些实施例中,步骤“将各应用待机分组内的应用替换成所匹配应用集合中的应用”,可以包括以下流程:In some embodiments, the step "replace applications in each application standby group with applications in the matched application set" may include the following process:
从当前应用待机分组中筛选出与所匹配应用集合中不相同的应用;Filter out applications that are different from the matched application set from the current application standby group;
将不相同的应用从当前应用待机分组中移除;Remove different applications from the current application standby group;
将所匹配应用集合中与当前应用待机分组不相同的应用,更新至当前应用待机分组。Update the applications in the matched application set that are different from the current application standby group to the current application standby group.
具体的,在将各应用待机分组内的应用替换成所匹配应用集合中的应用时,可以保留 当前应用待机分组中与所匹配应用集合中相同的应用,并将不相同的应用从当前应用待机分组中移除,将将所匹配应用集合中与当前应用待机分组不相同的应用更新至当前应用待机分组,以实现应用的替换。Specifically, when an application in each application standby group is replaced with an application in the matched application set, the same application in the current application standby group and the matched application set can be retained, and different applications are standby from the current application The group is removed, and the applications in the matched application set that are different from the current application standby group are updated to the current application standby group to implement application replacement.
在上述各实施方式的基础上,本申请实施例中获取历史时间段内各应用的使用信息的方式可以有多种,如下:Based on the above embodiments, there may be multiple ways to obtain usage information of each application in the historical time period in the embodiments of the present application, as follows:
在一些实施例中,历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;继续参考图2,步骤“获取历史时间段内各应用的使用信息”可以包括以下流程:In some embodiments, the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods; with continued reference to FIG. 2, the step "obtaining usage information of each application in the historical time period" may include the following process:
1011、获取每一采样时段各应用对应的使用信息;1011. Obtain usage information corresponding to each application in each sampling period;
1012、将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在该时间周期中不同采样时段对应的使用概率。1012. Process the usage information corresponding to the same sampling period of each application in different time periods to obtain usage probabilities corresponding to different sampling periods of the applications in the time period.
假设电子设备中安装有N个应用,则对于这N个应用分别统计每个应用在过去一个星期内每一天中相同采样时段(如一天可包括24小时,则星期一的第1小时和星期天的第1小时为相同采样时段;则星期一的第24小时和星期天的第24小时为相同采样时段)在前台运行的次数记为X=[x 1,x 2,x 3,x 4,x i……,x 24],其中x i表示过去一星期内每天的第i小时时间该应用的使用次数。 Assuming that there are N applications installed in the electronic device, for the N applications, the same sampling period of each application in each day of the past week is counted (if a day can include 24 hours, the first hour of Monday and the The first hour is the same sampling period; then the 24th hour on Monday and the 24th hour on Sunday are the same sampling period) The number of times in the foreground is recorded as X = [x 1 , x 2 , x 3 , x 4 , x i …, x 24 ], where x i represents the number of uses of the application at the ith hour of each day of the past week.
比如,以星期一到星期天作为历史时间段为例,若在这7内,其中有3天用户在中午12时00分至20时00分使用了应用A,而其它时间不用微信。那么该用户的应用A使用信息统计结果可如下表1所示:For example, taking Monday to Sunday as the historical time period as an example, if in these 7 days, 3 of them use the application A from 12:00 noon to 20:00 noon, and do not use WeChat at other times. Then the statistical results of the user's application A usage information can be shown in Table 1 below:
应用application x 1 x 1 ...... x 12 x 12 ...... x 20 x 20 ...... x 24 x 24
应用AApplication A 00 00 33 33 33 00 00
应用BApplication B ...... ...... ...... ...... ...... ...... ......
...... ...... ...... ...... ...... ...... ......
...... ...... ...... ...... ...... ...... ......
表1Table 1
在一些实施例中,可对所获取到的应用的使用信息进行预处理,计算出每一应用在不同采样时段的使用概率,进一步得到每一应用的使用随时间变化的概率分布,将采样时间段与使用概率一一对应生成训练样本。然后,可基于生成的训练样本对预设的算法模型进行训练,以得到可以预测不同时间点下应用使用概率的算法模型。In some embodiments, the usage information of the acquired applications may be preprocessed to calculate the usage probability of each application in different sampling periods, to further obtain the probability distribution of the usage change of each application with time, and The training samples are generated in one-to-one correspondence with the use probability. Then, the preset algorithm model can be trained based on the generated training samples to obtain an algorithm model that can predict the application use probability at different time points.
例如,可将上述生成的训练样本输入至预设的混合高斯模型中,根据所输入的训练样本不断地修正预设的混合高斯模型中的相关参数,以使得训练后的混合高斯模型可适用于所有训练样本,实现预测不同时间点下应用使用概率。For example, the training samples generated above can be input into a preset mixed Gaussian model, and the relevant parameters in the preset mixed Gaussian model can be continuously modified according to the input training samples, so that the trained mixed Gaussian model can be applied to All training samples are used to predict the application usage probability at different time points.
继续参考图2,在一些实施例中,步骤“根据使用信息调整当前时间点下各应用的优先级”,可以包括以下流程:With continued reference to FIG. 2, in some embodiments, the step "adjust the priority of each application at the current time point according to the usage information" may include the following process:
1031、从多个采样时段中确定当前时间点对应的目标采样时段;1031. Determine the target sampling period corresponding to the current time point from multiple sampling periods;
1032、获取各应用在目标采样时段下对应的目标使用概率;1032. Obtain the target use probability corresponding to each application in the target sampling period;
1033、基于目标使用概率调整各应用的优先级。1033. Adjust the priority of each application based on the target usage probability.
例如,当前时间点为星期二8时10分,则可以从多个采样时段(如上述的24个小时)中确定其对应的目标采样时段为第9小时。然后,获取第9小时中各应用对应的使用概率,并基于该使用概率调整各应用的优先级即可。For example, if the current time point is 8:10 on Tuesday, the corresponding target sampling period may be determined to be the 9th hour from multiple sampling periods (such as the above-mentioned 24 hours). Then, it is sufficient to obtain the use probability corresponding to each application in the 9th hour, and adjust the priority of each application based on the use probability.
在一些实施例中,使用信息包括使用频率和使用时长;则步骤“将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在该时间周期中不同采样时段对应的使用概率”,可以包括以下流程:In some embodiments, the usage information includes usage frequency and duration; then the step "process the usage information corresponding to the same sampling period of each application in different time periods to obtain the corresponding correspondences of different sampling periods of each application in the time period "Probability of use" can include the following processes:
对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行 概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
按照预设权重设定,对第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下使用概率。According to the preset weight setting, the first probability and the second probability are weighted, and the use probability of each application in different sampling periods is calculated.
具体的,在对每一应用在不同时间周期中相同采样时段对应的使用频率进行概率计算时,可以统计不同时间周期中相同采样时段(如每天的12时00分至13时00分)下使用应用的总次数,再统计不同时间周期中相同采样时段(即如每天的12时00分至13时00分)下使用需计算的目标应用的次数之和,最后计算比值,即为该目标应用该采样时段(即12时00分至13时00分)下使用频率对应的第一概率。以此类推,可以计算得到各应用在不同采样时段下使用频率对应的第一概率。Specifically, when calculating the probability of the usage frequency corresponding to the same sampling period in different time periods for each application, you can count the usage in the same sampling period in different time periods (such as 12:00 to 13:00 every day) The total number of applications, and then count the sum of the number of times the target application needs to be calculated in the same sampling period in different time periods (ie, 12:00 to 13:00 every day), and finally calculate the ratio, which is the target application The first probability corresponding to the frequency of use in the sampling period (ie, 12:00 to 13:00). By analogy, the first probability corresponding to the use frequency of each application under different sampling periods can be calculated.
同样的,在对每一应用在不同时间周期中相同采样时段对应的使用时长分别进行概率计算时,可以统计不同时间周期中相同采样时段(如每天的12时00分至13时00分)下使用应用的总时长,再统计不同时间周期中相同采样时段(即如每天的12时00分至13时00分)下使用需计算的目标应用的时长之和,最后计算比值,即为该目标应用该采样时段(即12时00分至13时00分)下使用时长对应的第二概率。以此类推,可以计算得到各应用在不同采样时段下使用时长对应的第二概率。Similarly, when the probability calculation is performed separately for the usage duration corresponding to the same sampling period in different time periods for each application, the same sampling period in different time periods (such as 12:00 to 13:00 every day) can be counted Use the total duration of the application, and then count the sum of the duration of the target application that needs to be calculated in the same sampling period in different time periods (such as 12:00 to 13:00 every day), and finally calculate the ratio, which is the target The second probability corresponding to the usage duration under the sampling period (that is, 12:00 to 13:00) is applied. By analogy, the second probability corresponding to the usage duration of each application in different sampling periods can be calculated.
其中,预设权重可以由产品生产厂商进行设置,例如使用频率对应的权重设为40%,使用时长对应的权重设置60%。The preset weight can be set by the product manufacturer, for example, the weight corresponding to the use frequency is set to 40%, and the weight corresponding to the use time is set to 60%.
在一些实施例中,使用信息还可以包括其他应用使用参数,如前台运行时长、耗电量等等信息。In some embodiments, the usage information may also include other application usage parameters, such as the length of time the foreground runs, power consumption, and so on.
由上可知,本申请实施例提供的应用分组调整方法,通过获取历史时间段内各应用的使用信息;确定当前时间点;根据所述使用信息调整所述当前时间点下各应用的优先级;基于所述优先级对多个层级的应用待机分组中的应用进行调整。本申请方案可以根据用户的使用习惯,实时动态调节电量框架下各层级分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的。It can be seen from the above that the application grouping adjustment method provided by the embodiment of the present application obtains the usage information of each application in the historical time period; determines the current time point; and adjusts the priority of each application at the current time point according to the usage information; Based on the priority, the applications in the application standby group of multiple levels are adjusted. The solution of the present application can dynamically adjust the applications in each level group under the power framework in real time according to the user's usage habits, and achieve the purpose of reducing the resource consumption of electronic devices without closing the applications.
在一些实施例中,参考图3,图3为本申请实施例提供的应用分组调整方法的应用场景示意图。In some embodiments, referring to FIG. 3, FIG. 3 is a schematic diagram of an application scenario of an application grouping adjustment method provided in an embodiment of the present application.
具体的,假设电子设备当前操作系统下有5个层级应用待机分组,预先设定电量区间为:0-20%、20%-40%、40%-80%,80%-100%。参考图3,假设图中各应用待机分组由上至下层级逐渐降低,则当电子设备处于待机模式时,触发启动应用待机分组调整模式,此时电子设备可获取过去一个星期内各应用(假设电子设备中安装有应用1~应用11等11个应用)的使用信息,然后,根据使用信息调整当前时间点(即星期一11点10分)下各应用的优先级,得到优先级从高到低的依次排序结果为:应用1~应用11,此时电量为90%,所处电量区间为80%-100%,则获取该电量区间下各层级的应用待机分组的应用数量分布信息(假设从高级到低级依次为:2,3,3,2,1),则当前时间点下应用待机分组的配置情况可参考图3(a),各层级的应用待机分组中由高层级到低层级的应用分布为:应用1、应用2;应用3、应用4、应用5;应用6、应用7、应用8;应用9、应用10;应用11。Specifically, it is assumed that there are 5 levels of application standby groups under the current operating system of the electronic device, and the preset power ranges are: 0-20%, 20%-40%, 40%-80%, and 80%-100%. Referring to FIG. 3, assuming that the standby group of each application in the figure gradually decreases from the top to the lower level, when the electronic device is in the standby mode, the application standby group adjustment mode is triggered to start, at this time the electronic device can obtain each application in the past week (assuming There are 11 applications such as application 1 to application 11 installed in the electronic device. Then, according to the usage information, the priority of each application under the current time point (that is, Monday 11:10) is adjusted to obtain the priority from high to The result of the low order is: application 1 to application 11, when the power is 90%, and the power interval is 80%-100%, then obtain the application number distribution information of the application standby group at each level under the power interval (assuming The order from high to low is: 2, 3, 3, 2, 1), then the configuration of the application standby group at the current time can refer to Figure 3(a). The application standby group at each level is from high level to low level The application distribution is: application 1, application 2; application 3, application 4, application 5; application 6, application 7, application 8; application 9, application 10; application 11.
当检测到当前时间点为12时20分,电子设备可获取过去一个星期内各应用的使用信息,然后,根据使用信息调整当前时间点(即星期一12时20分)下各应用的优先级,得到优先级从高到低的依次排序结果为:应用3、应用4、应用6、应用7、应用8、应用1、应用2、应用5、应用11、应用10、应用9。此时,电量为85%,所处电量区间为80%-100%,与电量为90%时一致,因此各层级的应用待机分组的应用数量分布信息保持不变。则当前时间点下应用待机分组的配置情况可参考图3(b),各层级的应用待机分组中由高层级到低层级的应用分布为:应用3、应用4;应用6、应用7、应用8;应用1、应用2、应用5;应用11、应 用10;应用9。When detecting that the current time point is 12:20, the electronic device can obtain the usage information of each application in the past week, and then, according to the usage information, adjust the priority of each application under the current time point (that is, Monday 12:20) , The results of the priority order from high to low are: Application 3, Application 4, Application 6, Application 7, Application 8, Application 1, Application 2, Application 5, Application 11, Application 10, Application 9. At this time, the power is 85%, and the power interval is between 80% and 100%, which is the same as when the power is 90%. Therefore, the distribution information of the number of applications in the application standby group at each level remains unchanged. Refer to Figure 3(b) for the configuration of the application standby group at the current time point. The application distribution of the application standby group at each level from the upper level to the lower level is: application 3, application 4; application 6, application 7, application 8; Application 1, Application 2, Application 5; Application 11, Application 10; Application 9.
当检测到当前时间点为12时50分,电子设备可获取过去一个星期内各应用的使用信息,然后,根据使用信息调整当前时间点(即星期一12时50分)下各应用的优先级,得到优先级从高到低的依次排序结果依旧为:应用3、应用4、应用6、应用7、应用8、应用1、应用2、应用5、应用11、应用10、应用9。此时,电量为75%,所处电量区间为40%-80%,则获取该电量区间下各层级的应用待机分组的应用数量分布信息(假设从高级到低级依次为:1,3,3,3,1)。则当前时间点下应用待机分组的配置情况可参考图3(c),由于优先级排布未发生变化,则各层级的应用待机分组中由高层级到低层级的应用分布为:应用3;应用4、应用6、应用7;应用8,应用1、应用2;应用5、应用11、应用10;应用9。When detecting that the current time is 12:50, the electronic device can obtain the usage information of each application in the past week, and then, according to the usage information, adjust the priority of each application under the current time (ie, 12:50 on Monday) , The order of priority from high to low is still as follows: application 3, application 4, application 6, application 7, application 8, application 1, application 2, application 5, application 11, application 10, application 9. At this time, the power is 75%, and the power range is 40%-80%, then obtain the distribution information of the number of applications in the application standby group of each level under the power range (assuming that the order from high to low is: 1, 3, 3 , 3, 1). For the configuration of the application standby group at the current time, please refer to FIG. 3(c). Since the priority arrangement has not changed, the application distribution of the application standby group at each level from the upper level to the lower level is: application 3; Application 4, Application 6, Application 7; Application 8, Application 1, Application 2; Application 5, Application 11, Application 10; Application 9.
本申请方案可以根据用户的使用习惯,结合当前时间戳和电子设备的状态信息(如电量、网络状态等)实时动态调节电量框架下各层级应用待机分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的,有效对电子设备资源消耗进行管控。The solution of this application can dynamically adjust the applications in the application standby group of each level under the power framework in real time based on the user's usage habits, combined with the current timestamp and the status information of the electronic device (such as power, network status, etc.). Under the premise, the purpose of reducing the consumption of electronic equipment resources is achieved, and the consumption of electronic equipment resources is effectively controlled.
本申请实施例还提供一种应用分组调整装置300,该装置可以集成在电子设备中,该电子设备可以是智能手机、平板电脑等智能终端设备,所述电子设备中安装有多个应用。An embodiment of the present application further provides an application group adjustment device 300, which may be integrated in an electronic device, which may be a smart terminal device such as a smart phone, a tablet computer, or the like, and multiple applications are installed in the electronic device.
如图4所示,应用分组调整装置300可包括:信息获取模块31、确定模块32、级别调整模块33、分组调整模块34。其中:As shown in FIG. 4, the application group adjustment device 300 may include: an information acquisition module 31, a determination module 32, a level adjustment module 33, and a group adjustment module 34. among them:
信息获取模块31,用于获取历史时间段内各应用的使用信息;The information obtaining module 31 is used to obtain the usage information of each application in the historical time period;
确定模块32,用于确定当前时间点;The determination module 32 is used to determine the current time point;
级别调整模块33,用于根据所述使用信息调整所述当前时间点下各应用的优先级;The level adjustment module 33 is used to adjust the priority of each application at the current time according to the usage information;
分组调整模块34,用于基于所述优先级对多个应用待机分组中的应用进行调整。The grouping adjustment module 34 is configured to adjust applications in a plurality of application standby groups based on the priority.
在一些实施例中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;所述信息获取模块31用于:In some embodiments, the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods; the information acquisition module 31 is used to:
获取每一采样时段各应用对应的使用信息;Obtain usage information corresponding to each application in each sampling period;
将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率。The usage information corresponding to the same sampling period of each application in different time periods is processed to obtain the usage probability of each application corresponding to different sampling periods in the time period.
参考图5,所述级别调整模块33可以包括:Referring to FIG. 5, the level adjustment module 33 may include:
第一确定子模块331,用于从所述多个采样时段中确定所述当前时间点对应的目标采样时段;The first determining submodule 331 is configured to determine a target sampling period corresponding to the current time point from the plurality of sampling periods;
第一获取子模块332,用于获取各应用在所述目标采样时段下对应的目标使用概率;The first obtaining sub-module 332 is used to obtain the target use probability corresponding to each application during the target sampling period;
第一调整子模块333,用于基于所述目标使用概率调整各应用的优先级。The first adjustment sub-module 333 is used to adjust the priority of each application based on the target use probability.
在一些实施例中,所述使用信息包括使用频率和使用时长;In some embodiments, the usage information includes usage frequency and duration;
所述第一获取子模块用于:The first obtaining sub-module is used to:
对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下使用概率。According to the preset weight setting, the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
在一些实施例中,参考图6,该装置300还可以包括:In some embodiments, referring to FIG. 6, the device 300 may further include:
电量获取模块35,用于在基于所述优先级对多个应用待机分组中的应用进行调整之前,获取当前电子设备的当前电量;The power quantity obtaining module 35 is configured to obtain the current power quantity of the current electronic device before adjusting the applications in the multiple application standby groups based on the priority;
继续参考图6,所述分组调整模块34可以包括:With continued reference to FIG. 6, the grouping adjustment module 34 may include:
第二确定子模块341,用于确定所述当前电量所处的电量区间;A second determination sub-module 341, configured to determine a power interval where the current power is located;
第二获取子模块342,用于根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中 应用数量的数量分布信息之间的映射关系;The second obtaining submodule 342 is configured to obtain quantity distribution information of the number of applications in each application standby group under the power interval according to a preset mapping relationship, where the preset mapping relationship includes: the power interval and each application standby group The mapping relationship between the quantity distribution information of the number of applications in
第二调整子模块343,用于基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。The second adjustment sub-module 343 is configured to adjust applications in a plurality of application standby groups based on the number distribution information and the priority.
在一些实施例中,所述第二调整子模块343可以用于:In some embodiments, the second adjustment sub-module 343 may be used to:
根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;According to the number distribution information, the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配;Matching the application standby groups of the multiple levels with multiple application sets according to the order of the packet levels;
将各应用待机分组内的应用替换成所匹配应用集合中的应用。Replace the applications in each application standby group with the applications in the matched application set.
由上可知,本申请实施例提供了一种应用分组调整装置,通过获取历史时间段内各应用的使用信息;确定当前时间点;根据所述使用信息调整所述当前时间点下各应用的优先级;基于所述优先级对多个层级的应用待机分组中的应用进行调整。本申请方案可以根据用户的使用习惯,实时动态调节电量框架下各层级分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的。As can be seen from the above, an embodiment of the present application provides an application grouping adjustment device, which obtains the usage information of each application in a historical time period; determines the current time point; and adjusts the priority of each application at the current time point according to the usage information Level; adjust the applications in the application standby group of multiple levels based on the priority. The solution of the present application can dynamically adjust the applications in each level group under the power framework in real time according to the user's usage habits, and achieve the purpose of reducing the resource consumption of electronic devices without closing the applications.
本申请实施例还提供一种电子设备,该电子设备中安装有多个应用。请参阅图7,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。An embodiment of the present application also provides an electronic device, and multiple applications are installed in the electronic device. Referring to FIG. 7, the electronic device 500 includes a processor 501 and a memory 502. The processor 501 and the memory 502 are electrically connected.
该处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据,从而对电子设备500进行整体监控。The processor 500 is the control center of the electronic device 500, which uses various interfaces and lines to connect the various parts of the entire electronic device, executes or loads the computer program stored in the memory 502, and calls the data stored in the memory 502 to execute The electronic device 500 performs various functions and processes data to perform overall monitoring of the electronic device 500.
该存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。The memory 502 can be used to store software programs and modules. The processor 501 runs computer programs and modules stored in the memory 502 to execute various functional applications and data processing. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function, and the like; the storage data area may store data created according to the use of electronic devices, and the like. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 501 in the electronic device 500 will load the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs and stores the instructions in the memory 502 The computer program in order to achieve various functions, as follows:
获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
确定当前时间点;Determine the current time;
根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
基于所述优先级对多个应用待机分组中的应用进行调整。Based on the priority, the applications in the multiple application standby groups are adjusted.
在一些实施例中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;In some embodiments, the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods;
在获取历史时间段内各应用的使用信息时,所述处理器501执行以下步骤:When acquiring the usage information of each application in the historical time period, the processor 501 performs the following steps:
获取每一采样时段各应用对应的使用信息;Obtain usage information corresponding to each application in each sampling period;
将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率。The usage information corresponding to the same sampling period of each application in different time periods is processed to obtain the usage probability of each application corresponding to different sampling periods in the time period.
在根据所述使用信息调整所述当前时间点下各应用的优先级时,所述处理器501执行以下步骤:When adjusting the priority of each application at the current time point according to the usage information, the processor 501 performs the following steps:
从所述多个采样时段中确定所述当前时间点对应的目标采样时段;Determining a target sampling period corresponding to the current time point from the plurality of sampling periods;
获取各应用在所述目标采样时段下对应的目标使用概率;Obtain the target use probability corresponding to each application during the target sampling period;
基于所述目标使用概率调整各应用的优先级。The priority of each application is adjusted based on the target use probability.
在一些实施例中,所述使用信息包括使用频率和使用时长;在将每一应用在不同时间 周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率时,所述处理器501执行以下步骤:In some embodiments, the usage information includes usage frequency and duration; after processing usage information corresponding to the same sampling period of each application in different time periods, it is obtained that each application corresponds to a different sampling period in the time period When using the probability, the processor 501 performs the following steps:
对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下使用概率。According to the preset weight setting, the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
在一些实施例中,在基于所述优先级对多个应用待机分组中的应用进行调整之前,所述处理器501执行以下步骤:In some embodiments, before adjusting applications in multiple application standby groups based on the priority, the processor 501 performs the following steps:
获取当前电子设备的当前电量;Get the current power of the current electronic device;
在基于所述优先级对多个应用待机分组中的应用进行调整时,所述处理器501执行以下步骤:When adjusting applications in multiple application standby groups based on the priority, the processor 501 performs the following steps:
确定所述当前电量所处的电量区间;Determine the power interval where the current power is located;
根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;Acquiring quantity distribution information of the number of applications in each application standby group under the power interval according to a preset mapping relationship, wherein the preset mapping relationship includes: between the quantity interval and the number distribution information of the number of applications in each application standby group Mapping relationship
基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。Based on the number distribution information and the priority, the applications in the multiple application standby groups are adjusted.
在一些实施例中,在基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整时,所述处理器501执行以下步骤:In some embodiments, when adjusting applications in a plurality of application standby groups based on the number distribution information and the priority, the processor 501 performs the following steps:
根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;According to the number distribution information, the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配;Matching the application standby groups of the multiple levels with multiple application sets according to the order of the packet levels;
将各应用待机分组内的应用替换成所匹配应用集合中的应用。Replace the applications in each application standby group with the applications in the matched application set.
在一些实施例中,在按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配时,所述处理器501执行以下步骤:In some embodiments, the processor 501 executes the following steps when matching the application standby packets of the multiple levels with multiple application sets according to the order of the packet levels.
对所述多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;Set an aggregation level to the plurality of application sets, wherein, in two application sets adjacent to the aggregation level, the priority of the application in the high-level application set is higher than the priority of the application in the low-level application set;
按照集合等级由高到低、及所述分组层级由高到低的顺序,将所述多个应用集合与所述多个应用待机分组一一对应匹配。The multiple application sets are matched with the multiple application standby packets in a one-to-one correspondence in order of the set level from high to low and the grouping level from high to low.
在一些实施例中,在将各应用待机分组内的应用替换成所匹配应用集合中的应用时,所述处理器501执行以下步骤:In some embodiments, when the applications in each application standby group are replaced with applications in the matched application set, the processor 501 performs the following steps:
从当前应用待机分组中筛选出与所匹配应用集合中不相同的应用;Filter out applications that are different from the matched application set from the current application standby group;
将所述不相同的应用从所述当前应用待机分组中移除;Remove the different applications from the current application standby group;
将所匹配应用集合中与当前应用待机分组不相同的应用,更新至所述当前应用待机分组。Update the applications in the matched application set that are different from the current application standby group to the current application standby group.
由上述可知,本申请实施例的电子设备,通过获取历史时间段内各应用的使用信息;确定当前时间点;根据所述使用信息调整所述当前时间点下各应用的优先级;基于所述优先级对多个层级的应用待机分组中的应用进行调整。本申请方案可以根据用户的使用习惯,实时动态调节电量框架下各层级分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的。It can be seen from the above that the electronic device of the embodiment of the present application obtains the usage information of each application in the historical time period; determines the current time point; adjusts the priority of each application at the current time point according to the usage information; based on the Priority adjusts the applications in the application standby group at multiple levels. The solution of the present application can dynamically adjust the applications in each level group under the power framework in real time according to the user's usage habits, and achieve the purpose of reducing the resource consumption of electronic devices without closing the applications.
请一并参阅图8,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。Please refer to FIG. 8 together. In some embodiments, the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power supply 506. Among them, the display 503, the radio frequency circuit 504, the audio circuit 505, and the power supply 506 are electrically connected to the processor 501, respectively.
该显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户 接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。The display 503 can be used to display information input by the user or provided to the user and various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof.
该射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 504 can be used to send and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and send and receive signals with network devices or other electronic devices.
该音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 505 can be used to provide an audio interface between a user and an electronic device through speakers and microphones.
该电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 506 can be used to power various components of the electronic device 500. In some embodiments, the power supply 506 may be logically connected to the processor 501 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system.
尽管图8中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 8, the electronic device 500 may further include a camera, a Bluetooth module, etc., which will not be repeated here.
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的应用分组调整方法,比如:获取历史时间段内各应用的使用信息;确定当前时间点;根据所述使用信息调整所述当前时间点下各应用的优先级;基于所述优先级对多个层级的应用待机分组中的应用进行调整,其中,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。An embodiment of the present application also provides a storage medium that stores a computer program, and when the computer program is run on a computer, the computer is caused to execute the application grouping adjustment method in any of the foregoing embodiments, for example: acquiring historical time Use information of each application in the segment; determine the current time point; adjust the priority of each application at the current time point according to the use information; adjust the applications in the application standby group of multiple levels based on the priority, Among them, the application standby packet with a higher packet level is configured to have a stronger scheduling capability for the resources of the electronic device.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed in an embodiment, you can refer to the related descriptions of other embodiments.
需要说明的是,对本申请实施例的应用分组调整方法而言,本领域普通测试人员可以理解实现本申请实施例的应用分组调整方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如应用分组调整方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the application group adjustment method of the embodiment of the present application, ordinary testers in the art can understand that all or part of the process of implementing the application group adjustment method of the embodiment of the present application can control related hardware through a computer program To complete, the computer program may be stored in a computer-readable storage medium, such as stored in the memory of the electronic device, and executed by at least one processor in the electronic device, during the execution process may include, for example, application group adjustment The process of the method embodiment. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
对本申请实施例的应用分组调整装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,该存储介质譬如为只读存储器,磁盘或光盘等。For the application grouping adjustment device of 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 may be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function 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, magnetic disk, or optical disk.
以上对本申请实施例所提供的一种应用分组调整方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The application group adjustment method, device, storage medium, and electronic equipment provided in the embodiments of the present application are described in detail above. Specific examples are used in this article to explain the principles and implementation modes of the present application. It is only used to help understand the method of this application and its core idea; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, this The content of the description should not be construed as a limitation of this application.

Claims (20)

  1. 一种应用分组调整方法,应用于电子设备,其中,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述方法包括:An application group adjustment method is applied to an electronic device, wherein the operating system of the electronic device includes multiple levels of application standby groups, and the application standby group with a higher group level is configured to schedule resources of the electronic device The stronger, the method includes:
    获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
    确定当前时间点;Determine the current time;
    根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
    基于所述优先级对多个应用待机分组中的应用进行调整。Based on the priority, the applications in the multiple application standby groups are adjusted.
  2. 根据权利要求1所述的应用分组调整方法,其中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;The method for adjusting an application group according to claim 1, wherein the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods;
    所述获取历史时间段内各应用的使用信息,包括:The obtaining usage information of each application in the historical time period includes:
    获取每一采样时段各应用对应的使用信息;Obtain usage information corresponding to each application in each sampling period;
    将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率;Processing the usage information corresponding to the same sampling period of each application in different time periods to obtain the usage probability of each application corresponding to different sampling periods in the time period;
    所述根据所述使用信息调整所述当前时间点下各应用的优先级,包括:The adjusting the priority of each application at the current time according to the usage information includes:
    从所述多个采样时段中确定所述当前时间点对应的目标采样时段;Determining a target sampling period corresponding to the current time point from the plurality of sampling periods;
    获取各应用在所述目标采样时段下对应的目标使用概率;Obtain the target use probability corresponding to each application during the target sampling period;
    基于所述目标使用概率调整各应用的优先级。The priority of each application is adjusted based on the target use probability.
  3. 根据权利要求2所述的应用分组调整方法,其中,所述使用信息包括使用频率和使用时长;The method for adjusting an application group according to claim 2, wherein the usage information includes usage frequency and duration;
    所述将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率,包括:The processing the usage information corresponding to the same sampling period of each application in different time periods to obtain the usage probability corresponding to different sampling periods of the applications in the time period, including:
    对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
    按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下使用概率。According to the preset weight setting, the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
  4. 根据权利要求1所述的应用分组调整方法,其中,在基于所述优先级对多个应用待机分组中的应用进行调整之前,还包括:The method for adjusting an application group according to claim 1, wherein before adjusting applications in a plurality of application standby groups based on the priority, further comprising:
    获取当前电子设备的当前电量;Get the current power of the current electronic device;
    所述基于所述优先级对多个应用待机分组中的应用进行调整,包括:The adjusting the applications in the multiple application standby groups based on the priority includes:
    确定所述当前电量所处的电量区间;Determine the power interval where the current power is located;
    根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;Acquiring quantity distribution information of the number of applications in each application standby group under the power interval according to a preset mapping relationship, wherein the preset mapping relationship includes: between the quantity interval and the number distribution information of the number of applications in each application standby group Mapping relationship
    基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。Based on the number distribution information and the priority, the applications in the multiple application standby groups are adjusted.
  5. 根据权利要求4所述的应用分组调整方法,其中,所述基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整,包括:The method for adjusting an application group according to claim 4, wherein the adjusting the applications in a plurality of application standby groups based on the number distribution information and the priority includes:
    根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;According to the number distribution information, the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
    按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配;Matching the application standby groups of the multiple levels with multiple application sets according to the order of the packet levels;
    将各应用待机分组内的应用替换成所匹配应用集合中的应用。Replace the applications in each application standby group with the applications in the matched application set.
  6. 根据权利要求5所述的应用分组调整方法,其中,所述按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配,包括:The method for adjusting an application group according to claim 5, wherein the matching of the application standby group of the plurality of levels with a plurality of application sets according to the order of grouping levels includes:
    对所述多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;Set an aggregation level to the plurality of application sets, wherein, in two application sets adjacent to the aggregation level, the priority of the application in the high-level application set is higher than the priority of the application in the low-level application set;
    按照集合等级由高到低、及所述分组层级由高到低的顺序,将所述多个应用集合与所述多个应用待机分组一一对应匹配。The multiple application sets are matched with the multiple application standby packets in a one-to-one correspondence in order of the set level from high to low and the grouping level from high to low.
  7. 根据权利要求5所述的应用分组调整方法,其中,所述将各应用待机分组内的应用替换成所匹配应用集合中的应用,包括:The method for adjusting an application group according to claim 5, wherein the replacing the application in each application standby group with an application in the matched application set includes:
    从当前应用待机分组中筛选出与所匹配应用集合中不相同的应用;Filter out applications that are different from the matched application set from the current application standby group;
    将所述不相同的应用从所述当前应用待机分组中移除;Remove the different applications from the current application standby group;
    将所匹配应用集合中与当前应用待机分组不相同的应用,更新至所述当前应用待机分组。Update the applications in the matched application set that are different from the current application standby group to the current application standby group.
  8. 一种应用分组调整装置,应用于电子设备,其中,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述装置包括:An application grouping adjustment device is applied to an electronic device, wherein the operating system of the electronic device includes multiple levels of application standby groups, and the application standby group with a higher group level is configured to schedule resources of the electronic device The stronger, the device includes:
    信息获取模块,用于获取历史时间段内各应用的使用信息;The information acquisition module is used to acquire the usage information of each application in the historical time period;
    确定模块,用于确定当前时间点;The determination module is used to determine the current time point;
    级别调整模块,用于根据所述使用信息调整所述当前时间点下各应用的优先级;A level adjustment module, configured to adjust the priority of each application at the current time according to the usage information;
    分组调整模块,用于基于所述优先级对多个应用待机分组中的应用进行调整。The grouping adjustment module is used to adjust the applications in the application standby group based on the priority.
  9. 根据权利要求8所述的应用分组调整装置,其中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;The application grouping adjustment apparatus according to claim 8, wherein the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods;
    所述信息获取模块用于:The information acquisition module is used to:
    获取每一采样时段各应用对应的使用信息;Obtain usage information corresponding to each application in each sampling period;
    将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率;Processing the usage information corresponding to the same sampling period of each application in different time periods to obtain the usage probability of each application corresponding to different sampling periods in the time period;
    所述级别调整模块包括:The level adjustment module includes:
    第一确定子模块,用于从所述多个采样时段中确定所述当前时间点对应的目标采样时段;A first determining submodule, configured to determine a target sampling period corresponding to the current time point from the plurality of sampling periods;
    第一获取子模块,用于获取各应用在所述目标采样时段下对应的目标使用概率;A first obtaining submodule, configured to obtain a target use probability corresponding to each application during the target sampling period;
    第一调整子模块,用于基于所述目标使用概率调整各应用的优先级。The first adjustment submodule is used to adjust the priority of each application based on the target use probability.
  10. 根据权利要求9所述的应用分组调整装置,其中,所述使用信息包括使用频率和使用时长;The application packet adjustment device according to claim 9, wherein the usage information includes a usage frequency and a usage duration;
    所述第一获取子模块用于:The first obtaining sub-module is used to:
    对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
    按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下使用概率。According to the preset weight setting, the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
  11. 根据权利要求8所述的应用分组调整装置,其中,还包括:The application grouping adjustment apparatus according to claim 8, further comprising:
    电量获取模块,用于在基于所述优先级对多个应用待机分组中的应用进行调整之前,获取当前电子设备的当前电量;A power acquisition module, configured to acquire the current power of the current electronic device before adjusting the applications in the multiple application standby groups based on the priority;
    所述分组调整模块,包括:The grouping adjustment module includes:
    第二确定子模块,用于确定所述当前电量所处的电量区间;A second determination submodule, configured to determine a power interval where the current power is located;
    第二获取子模块,用于根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;The second obtaining submodule is configured to obtain the quantity distribution information of the number of applications in each application standby group under the power interval according to a preset mapping relationship, where the preset mapping relationship includes: the power interval and each application standby group Mapping relationship between quantity distribution information of application quantity;
    第二调整子模块,用于基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。The second adjustment sub-module is configured to adjust applications in a plurality of application standby groups based on the number distribution information and the priority.
  12. 根据权利要求11所述的应用分组调整装置,其中,所述第二调整子模块用于:The application grouping adjustment device according to claim 11, wherein the second adjustment submodule is used for:
    根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;According to the number distribution information, the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
    按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配;Matching the application standby groups of the multiple levels with multiple application sets according to the order of the packet levels;
    将各应用待机分组内的应用替换成所匹配应用集合中的应用。Replace the applications in each application standby group with the applications in the matched application set.
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:A storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are adapted to be loaded by a processor to perform the following steps:
    获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
    确定当前时间点;Determine the current time;
    根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
    基于所述优先级对多个层级的应用待机分组中的应用进行调整,其中,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。The applications in the application standby group of multiple levels are adjusted based on the priority, wherein the application standby group with a higher group level is configured to have a stronger scheduling capability for the resources of the electronic device.
  14. 一种电子设备,其中,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述处理器加载所述指令以执行以下步骤:An electronic device, which includes a processor and a storage medium, where multiple instructions are stored in the storage medium, an operating system of the electronic device includes multiple levels of application standby packets, and application standby packets with a higher packet level are It is configured that the stronger the scheduling capability of the electronic device resource, the processor loads the instruction to perform the following steps:
    获取历史时间段内各应用的使用信息;Obtain the usage information of each application in the historical time period;
    确定当前时间点;Determine the current time;
    根据所述使用信息调整所述当前时间点下各应用的优先级;Adjust the priority of each application at the current time according to the usage information;
    基于所述优先级对多个应用待机分组中的应用进行调整。Based on the priority, the applications in the multiple application standby groups are adjusted.
  15. 根据权利要求14所述的电子设备,其中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;The electronic device according to claim 14, wherein the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods;
    在获取历史时间段内各应用的使用信息时,所述处理器执行以下步骤:When acquiring the usage information of each application in the historical time period, the processor performs the following steps:
    获取每一采样时段各应用对应的使用信息;Obtain usage information corresponding to each application in each sampling period;
    将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率。The usage information corresponding to the same sampling period of each application in different time periods is processed to obtain the usage probability of each application corresponding to different sampling periods in the time period.
    在根据所述使用信息调整所述当前时间点下各应用的优先级时,所述处理器执行以下步骤:When adjusting the priority of each application at the current time point according to the usage information, the processor performs the following steps:
    从所述多个采样时段中确定所述当前时间点对应的目标采样时段;Determining a target sampling period corresponding to the current time point from the plurality of sampling periods;
    获取各应用在所述目标采样时段下对应的目标使用概率;Obtain the target use probability corresponding to each application during the target sampling period;
    基于所述目标使用概率调整各应用的优先级。The priority of each application is adjusted based on the target use probability.
  16. 根据权利要求15所述的电子设备,其中,所述使用信息包括使用频率和使用时长;The electronic device according to claim 15, wherein the usage information includes usage frequency and duration;
    在将每一应用在不同时间周期中相同采样时段对应的使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率时,所述处理器执行以下步骤:When processing the usage information corresponding to the same sampling period of each application in different time periods to obtain the usage probability of each application corresponding to different sampling periods in the time period, the processor performs the following steps:
    对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;Probability calculations are respectively performed on the usage frequency and duration of the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency of each application and the second probability corresponding to the running duration under different sampling periods;
    按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下使用概率。According to the preset weight setting, the first probability and the second probability are weighted, and the usage probabilities of each application in different sampling periods are calculated.
  17. 根据权利要求14所述的电子设备,其中,在基于所述优先级对多个应用待机分组中的应用进行调整之前,所述处理器执行以下步骤:The electronic device according to claim 14, wherein, before adjusting applications in a plurality of application standby groups based on the priority, the processor performs the following steps:
    获取当前电子设备的当前电量;Get the current power of the current electronic device;
    在基于所述优先级对多个应用待机分组中的应用进行调整时,所述处理器501执行以下步骤:When adjusting applications in multiple application standby groups based on the priority, the processor 501 performs the following steps:
    确定所述当前电量所处的电量区间;Determine the power interval where the current power is located;
    根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;Acquiring quantity distribution information of the number of applications in each application standby group under the power interval according to a preset mapping relationship, wherein the preset mapping relationship includes: between the quantity interval and the number distribution information of the number of applications in each application standby group Mapping relationship
    基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。Based on the number distribution information and the priority, the applications in the multiple application standby groups are adjusted.
  18. 根据权利要求17所述的电子设备,其中,在基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整时,所述处理器执行以下步骤:The electronic device according to claim 17, wherein when adjusting applications in a plurality of application standby groups based on the number distribution information and the priority, the processor performs the following steps:
    根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;According to the number distribution information, the corresponding number of applications are screened in order from high to low priority to obtain multiple application sets;
    按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配;Matching the application standby groups of the multiple levels with multiple application sets according to the order of the packet levels;
    将各应用待机分组内的应用替换成所匹配应用集合中的应用。Replace the applications in each application standby group with the applications in the matched application set.
  19. 根据权利要求18所述的电子设备,其中,在按照分组层级高低顺序,将所述多个层级的应用待机分组与多个应用集合匹配时,所述处理器执行以下步骤:The electronic device according to claim 18, wherein, when matching the application standby packets of the plurality of levels with the plurality of application sets in the order of packet hierarchy, the processor performs the following steps:
    对所述多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;Set an aggregation level to the plurality of application sets, wherein, in two application sets adjacent to the aggregation level, the priority of the application in the high-level application set is higher than the priority of the application in the low-level application set;
    按照集合等级由高到低、及所述分组层级由高到低的顺序,将所述多个应用集合与所述多个应用待机分组一一对应匹配。The multiple application sets are matched with the multiple application standby packets in a one-to-one correspondence in order of the set level from high to low and the grouping level from high to low.
  20. 根据权利要求18所述的电子设备,其中,在将各应用待机分组内的应用替换成所匹配应用集合中的应用时,所述处理器执行以下步骤:The electronic device according to claim 18, wherein when replacing the applications in each application standby group with the applications in the matched application set, the processor performs the following steps:
    从当前应用待机分组中筛选出与所匹配应用集合中不相同的应用;Filter out applications that are different from the matched application set from the current application standby group;
    将所述不相同的应用从所述当前应用待机分组中移除;Remove the different applications from the current application standby group;
    将所匹配应用集合中与当前应用待机分组不相同的应用,更新至所述当前应用待机分组。Update the applications in the matched application set that are different from the current application standby group to the current application standby group.
PCT/CN2018/125647 2018-12-29 2018-12-29 Application bucket adjusting method and apparatus, and storage medium and electronic device WO2020133417A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/125647 WO2020133417A1 (en) 2018-12-29 2018-12-29 Application bucket adjusting method and apparatus, and storage medium and electronic device
CN201880099399.XA CN112997539B (en) 2018-12-29 2018-12-29 Application grouping adjustment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125647 WO2020133417A1 (en) 2018-12-29 2018-12-29 Application bucket adjusting method and apparatus, and storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2020133417A1 true WO2020133417A1 (en) 2020-07-02

Family

ID=71125865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125647 WO2020133417A1 (en) 2018-12-29 2018-12-29 Application bucket adjusting method and apparatus, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN112997539B (en)
WO (1) WO2020133417A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111965991A (en) * 2020-08-14 2020-11-20 深圳市欧瑞博科技股份有限公司 Authority adjusting method and device of intelligent control switch, intelligent control switch and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298613A (en) * 2014-09-29 2015-01-21 广州金山网络科技有限公司 Method for cleaning up system memory and terminal device
CN105867749A (en) * 2016-03-28 2016-08-17 努比亚技术有限公司 Menu interface display method and terminal
CN106598379A (en) * 2016-10-24 2017-04-26 乐视控股(北京)有限公司 Method and device for managing application program
CN107548142A (en) * 2017-07-31 2018-01-05 努比亚技术有限公司 A kind of electricity-saving control method, terminal and computer-readable recording medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010041412A1 (en) * 2008-10-09 2010-04-15 株式会社日立製作所 Mobile terminal
US10104704B2 (en) * 2014-02-07 2018-10-16 Cisco Technology, Inc. Dynamic acceleration of prioritized mobile application traffic
CN105094967B (en) * 2015-06-26 2019-04-16 小米科技有限责任公司 Process operation method and device
CN105517129B (en) * 2015-11-28 2018-06-29 广东欧珀移动通信有限公司 Network formats switching method and communication terminal in a kind of communication terminal
CN105843637A (en) * 2016-03-18 2016-08-10 广东欧珀移动通信有限公司 Application program classification method and user terminal
CN107402809A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Management-control method, device, storage medium and the electronic equipment of application program
CN108932140A (en) * 2018-07-13 2018-12-04 重庆邮电大学 The method of cleaning background application based on Android user behavior habit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298613A (en) * 2014-09-29 2015-01-21 广州金山网络科技有限公司 Method for cleaning up system memory and terminal device
CN105867749A (en) * 2016-03-28 2016-08-17 努比亚技术有限公司 Menu interface display method and terminal
CN106598379A (en) * 2016-10-24 2017-04-26 乐视控股(北京)有限公司 Method and device for managing application program
CN107548142A (en) * 2017-07-31 2018-01-05 努比亚技术有限公司 A kind of electricity-saving control method, terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111965991A (en) * 2020-08-14 2020-11-20 深圳市欧瑞博科技股份有限公司 Authority adjusting method and device of intelligent control switch, intelligent control switch and storage medium
CN111965991B (en) * 2020-08-14 2023-08-29 深圳市欧瑞博科技股份有限公司 Authority adjusting method and device of intelligent control switch, intelligent control switch and storage medium

Also Published As

Publication number Publication date
CN112997539A (en) 2021-06-18
CN112997539B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US20190188007A1 (en) Method for Preloading Application, Storage Medium, and Terminal Device
CN105677378B (en) A kind of method and mobile terminal of management application
WO2020133418A1 (en) Application icon display method and apparatus, and storage medium and electronic device
US20220346020A1 (en) Method for reducing power consumption of terminal, and terminal
WO2019062405A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN110287229B (en) Data statistical processing method and device
CN109992398A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
WO2017054422A1 (en) Method and device for managing cell peak time segment and self-organizing network cell
CN107425568A (en) Prevent battery from crossing the method, apparatus put, mobile terminal and storage medium
WO2020133413A1 (en) Application grouping adjustment method and apparatus, and storage medium and electronic device
US11082806B2 (en) Method of identifying user location, storage medium and electronic device
CN107943571B (en) Background application control method and device, storage medium and electronic equipment
CN110032439A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
WO2020133417A1 (en) Application bucket adjusting method and apparatus, and storage medium and electronic device
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN107908273B (en) Application management method and device, storage medium and electronic equipment
WO2019062404A1 (en) Application program processing method and apparatus, storage medium, and electronic device
WO2020206690A1 (en) Application cleaning method and apparatus, storage medium and electronic device
CN106936826A (en) The register method of radio receiver, device and terminal device
WO2020154902A1 (en) Application processing method and apparatus, and storage medium, server and electronic device
CN110018888A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN108377162A (en) Method of controlling antenna, device, storage medium and electronic equipment
US10462624B1 (en) Data binge detection
WO2019085742A1 (en) Background application cleaning method and apparatus, and storage medium and electronic device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 18944793

Country of ref document: EP

Kind code of ref document: A1