CN112997152B - Application program priority adjustment method and device, storage medium and electronic equipment - Google Patents

Application program priority adjustment method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112997152B
CN112997152B CN201880099401.3A CN201880099401A CN112997152B CN 112997152 B CN112997152 B CN 112997152B CN 201880099401 A CN201880099401 A CN 201880099401A CN 112997152 B CN112997152 B CN 112997152B
Authority
CN
China
Prior art keywords
application program
priority
state information
application
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201880099401.3A
Other languages
Chinese (zh)
Other versions
CN112997152A (en
Inventor
陆天洋
张寅祥
帅朝春
吴建文
戴堃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112997152A publication Critical patent/CN112997152A/en
Application granted granted Critical
Publication of CN112997152B publication Critical patent/CN112997152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a priority adjustment method of an application program, which comprises the following steps: the method comprises the steps of obtaining operation history information of an application program, wherein the operation history information comprises historical state information of electronic equipment when the application program operates, obtaining current state information of the electronic equipment, predicting the use probability of the application program in the electronic equipment, and adjusting the priority of the application program according to the use probability. The application also provides a priority adjusting device of the application program, a storage medium and electronic equipment.

Description

Application program priority adjustment method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for adjusting priority of an application, a storage medium, and an electronic device.
Background
With the development of terminal technology, terminals have begun to change from simply providing telephony devices to a platform for running general-purpose software. The platform no longer aims at providing call management, but provides an operating environment including various application software such as call management, game and entertainment, office events, mobile payment and the like, and with a great deal of popularization, the platform has been deeply developed to the aspects of life and work of people.
Android 9.0 adds an application standby grouping function to limit the application from calling device resources such as a CPU or a network according to the use condition of the application by a user, where the application standby grouping function includes the following groups: active (being used), working (being used very frequently), common (often but not daily), infrequent, and infrequent, with applications in different groups calling device resources also having different priorities.
Disclosure of Invention
The application provides a priority adjustment method and device of an application program, a storage medium and an electronic device, which can dynamically adjust the priority of the application according to different conditions and reasonably adjust the power planning.
In a first aspect, an embodiment of the present application provides a method for adjusting priority of an application program, including:
acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information;
adjusting the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
In a second aspect, an embodiment of the present application provides an apparatus for adjusting priority of an application, including: the device comprises a first acquisition module, a second acquisition module, a prediction module and an adjustment module;
the first acquisition module is used for acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises history state information corresponding to the electronic equipment when the application program operates;
the second obtaining module is used for obtaining the current state information of the electronic equipment;
the prediction module is used for predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information;
the adjusting module is configured to adjust the priority of the application according to the usage probability, where the priority of the application is associated with device resource scheduling of the electronic device.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the priority adjustment method of the application program.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information;
adjusting the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can also be derived from them without inventive effort.
Fig. 1 is a flowchart illustrating a method for adjusting a priority of an application according to an embodiment of the present disclosure.
Fig. 2 is another schematic flowchart of a method for adjusting priority of an application according to an embodiment of the present disclosure.
Fig. 3 is a scene diagram illustrating a method for adjusting priority of an application according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an apparatus for adjusting priority of an application according to an embodiment of the present disclosure.
Fig. 5 is another schematic structural diagram of an apparatus for adjusting priority of an application according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an apparatus for adjusting priority of an application according to an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In the prior art, an electronic device can run a plurality of applications, and the electronic device can prioritize the applications according to a standby grouping function, so that the applications call different schedules of device resources such as a CPU or a network. However, the priority level applied in this way is fixed, the application programs in the same layer are not in sequence, and the way of scheduling the device resources is not intelligent and accurate enough.
An execution main body of the method for adjusting the priority of the application program may be a priority adjusting device of the application program provided in the embodiment of the present application, or an electronic device integrated with the priority adjusting device of the application program, where the priority adjusting device of the application program may be implemented in a hardware or software manner.
The embodiments of the present application will be described from the perspective of a priority adjustment device of an application program, which may be specifically integrated in an electronic device. The priority adjustment method of the application program comprises the following steps: acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information;
adjusting the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
In one embodiment, predicting the usage probability of the application program in the electronic device according to the current state information and the operation history information comprises:
acquiring a first number of times that the historical state information meets the current state information in the operation historical information;
acquiring a second time of operating the application program when the historical state information in the operation historical information meets the current state information;
and calculating the use probability of the application program according to the first times and the second times.
In one embodiment, before obtaining the operation history information of the application program in the electronic device, the method further comprises:
acquiring the use frequency of an application program in the electronic equipment;
and allocating the priority of the application program according to the use frequency.
In one embodiment, adjusting the priority of the application according to the usage probability comprises:
determining corresponding target priority according to the use probability;
adjusting the priority of the application program to a target priority.
In one embodiment, determining the corresponding target priority according to the usage probability includes:
acquiring the current residual electric quantity of the electronic equipment;
and determining a corresponding target priority according to the residual electric quantity and the use probability.
In one embodiment, adjusting the priority of the application to a target priority comprises:
judging whether the priority of the application program is the same as the target priority or not;
if not, the priority of the application program is adjusted to be the target priority.
In an embodiment, the state information of the electronic device includes at least one of time information and location information, and the device resource scheduling of the electronic device includes at least one of CPU scheduling, memory scheduling, and network speed scheduling.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for adjusting a priority of an application according to an embodiment of the present disclosure. The method for adjusting the priority of the application program provided by the embodiment of the application program is applied to the electronic equipment, and the specific flow can be as follows:
step 101, obtaining operation history information of an application program in electronic equipment, wherein the operation history information comprises history state information corresponding to the electronic equipment when the application program operates.
In an embodiment, the electronic device may record, in real time, state information of the electronic device corresponding to the application program in operation, so as to generate operation history information of the application program. When the priority adjustment method of the application program needs to be executed, operation history information of the application program in a past preset time period of the electronic device can be acquired, and the operation history information comprises history state information corresponding to the electronic device when the application program runs. The operation history information is used for predicting the use habits of the user, so that the operation history information of a long period of time before can be acquired to improve the accuracy of prediction, for example, the preset time period may be six days or seven days, and the first preset time period may also be set by the user according to the needs.
In an embodiment, the state information may include at least one of time information and location information of the electronic device when the application program is executed, for example, the operation history information may include time information and location information corresponding to the electronic device when the application program is executed each time in a past preset time period.
Step 102, obtaining the current state information of the electronic equipment.
The current state information of the electronic device is obtained by a sensor on the electronic device, and may be obtained once every preset time period, for example, every hour, in order to reduce a power consumption value of the electronic device.
In one embodiment, the time of the current system of the electronic device may be obtained, or may be obtained through networking, wherein the time information includes, but is not limited to, date, week, hour, minute, and second, such as the current time is 8 a.m. monday: 00. the current location information of the electronic device may then be obtained through a GPS (Global Positioning System) module or a Global navigation satellite System GNSS module in the electronic device.
And 103, predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information.
In an embodiment, after obtaining the current state information of the electronic device, the electronic device may predict the usage probability of the application installed thereon, for example, after obtaining the previous ten days of operation history information, separately calculate the usage probability of each application in the current state.
For example, such as the current state being 11 a.m. monday: 00, if the position is XX office building, the number of times meeting the state is searched in the operation history information, for example, 10 times, then the number of times of the application program operated by the electronic device when the state is met each time is obtained from the operation history information, and statistics is performed, for example, the statistical result is that the application program a is operated 8 times, the application program B is operated 5 times, the application program C and the application program D are respectively operated 3 times, and other application programs are not operated, it is known through calculation that in the current state, the use probability of the application program a is 80%, the use probability of the application program B is 50%, the use probabilities of the application program D and the application program D are 30%, and the use probabilities of the other application programs are 0.
And 104, adjusting the priority of the application program according to the use probability, wherein the priority of the application program is associated with the equipment resource scheduling of the electronic equipment.
For example, it may be determined whether the usage probability is greater than a first preset probability, if not, it is continuously determined whether the usage probability is smaller than a second preset probability, if so, the priority of the application is reduced, and if not, the current priority of the application is maintained.
Further, before the priority of the application program is reduced, it may also be determined whether the current priority is the lowest priority, and if so, the current priority is retained. The number of the application program priorities may be 5, and in other embodiments, the number of the application program priorities may also be lower than 5, for example, 3, or higher than 5, for example, 7, and the like, which is not further limited in this application.
The priority of the application program is associated with device resource scheduling of the electronic device. The electronic device is preset with a plurality of priority groups, and the system has different limits on the scheduling of device resources according to the application programs in each priority group. In one embodiment, the device resource schedule may include at least one of a CPU schedule, a memory schedule, and a network speed schedule, such as an application in a low priority packet, a system may limit its CPU schedule or memory schedule, and so on.
As can be seen from the above, the method for adjusting priority of an application program according to the embodiment of the present application may obtain operation history information of the application program in the electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application program is running, obtain current state information of the electronic device, predict a usage probability of the application program in the electronic device according to the current state information and the operation history information, and adjust the priority of the application program according to the usage probability, where the priority of the application program is associated with device resource scheduling of the electronic device. The method for adjusting the priority of the application program provided by the embodiment can predict the use probability of the application program in the current state according to the habit that a user uses the application program for a period of time in the past, and then adjust the priority of the application program according to the use probability to adjust the scheduling of the electronic equipment for the equipment resource of the application program.
The cleaning method of the present application will be further described below on the basis of the method described in the above embodiment. Referring to fig. 2, fig. 2 is another schematic flow chart of a method for adjusting a priority of an application according to an embodiment of the present application, where the method for adjusting the priority of the application includes:
step 201, acquiring the use frequency of an application program in the electronic device.
For example, the usage frequency of all the applications of the electronic device in a preset time period is obtained, and the usage frequency may be an operation frequency or a start frequency of the applications.
In step 202, the priority of the application program is allocated according to the use frequency.
In one embodiment, an electronic device includes power management functionality that can prioritize its resource requests based on frequency of use or last time of use of an application. The priority grouping-a total of five groups-will be divided by the system into one of five priority groupings depending on the usage of each application, with each grouping having different constraints on the scheduling of device resources. The higher the application activity, i.e. the higher the frequency of use, the higher the priority of the packet, and accordingly the easier it is to acquire the device resources.
In one embodiment, the application priority packets may include 5, active, work, regular, rare, and occasionally used packets, respectively. Alternatively, applications that have not been used at the last time after installation may be divided into a special group of "never" and subject to very strict system constraints.
Step 203, obtaining operation history information of an application program in the electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application program is running.
In an embodiment, the state information may include at least one of time information and location information of the electronic device when the application program is executed, for example, the operation history information may include time information and location information of the electronic device when the application program is executed each time within a past preset time period.
And step 204, acquiring the current state information of the electronic equipment.
In one embodiment, the time of the current system of the electronic device may be obtained, or may be obtained through networking, wherein the time information includes, but is not limited to, date, week, hour, minute, second, such as the current time being 8 a.m. on monday: 00. the current location information of the electronic device may then be obtained through a Global Positioning System (GPS) module or a Global Navigation Satellite System (GNSS) module in the electronic device.
In step 205, a first number of times that the historical state information satisfies the current state information is obtained from the operation historical information.
And step 206, acquiring a second time of running the application program when the historical state information meets the current state information in the running historical information.
And step 207, calculating the use probability of the application program according to the first times and the second times.
For example, such as the current state being 11 a.m. monday: 00, if the position is XX office buildings, the number of times of searching for the state meeting the state in the operation history information is the first number of times, for example, 10 times, then the number of times of the application program operated by the electronic device when the state is met each time is the second number of times, and statistics is performed, for example, the statistical result is that the application program a is operated 8 times, the application program B is operated 5 times, the application program C and the application program D are respectively operated 3 times, and other application programs are not operated, it can be known through calculation that in the current state, the use probability of the application program a is 80%, the use probability of the application program B is 50%, the use probability of the application program D and the use probability of the application program D are 30%, and the use probabilities of the other application programs are 0.
And step 208, adjusting the priority of the application program according to the usage probability, wherein the priority of the application program is associated with the device resource scheduling of the electronic device.
The priority of the application program is associated with device resource scheduling of the electronic device. The electronic device is preset with a plurality of priority groups, and the system has different limits on the scheduling of device resources according to the application programs in each priority group.
In one embodiment, the usage probabilities may be associated with corresponding application priorities, such as including 5 priority packets, active, working, regular, rare, and occasional used packets, with corresponding usage probabilities of 80% -100%, 60% -80%, 40% -60%, 20% -40%, and 0-20%, respectively. And then determining corresponding priority grouping according to the predicted use probability of the current state of the application program. That is, adjusting the priority of the application program according to the usage probability includes:
determining corresponding target priority according to the use probability;
adjusting the priority of the application program to a target priority.
In the embodiment of the present application, the priority of the application program can only be adjusted down but not adjusted up, and in other embodiments, the priority of the application program can be decreased or increased. As shown in fig. 3, fig. 3 is a scene diagram illustrating a method for adjusting priority of an application according to an embodiment of the present application. The electronic equipment comprises a first priority, a second priority and a third priority, wherein the first priority is higher than the second priority, the second priority is higher than the third priority, and the priority is divided into the following levels according to the use frequency of the application programs: the application program a and the application program b belong to a first priority level, the application program c and the application program d belong to a second priority level, and the application program e and the application program f belong to a third priority level. The electronic equipment acquires the current state and predicts the use probabilities of the application programs respectively to obtain corresponding target priorities, wherein the target priority of the application program b is a second priority, the target priority of the application program c is a first priority, and the priorities of the other application programs are not changed, at the moment, the application program b can be adjusted from the first priority to the second priority, and the application program c can be adjusted from the second priority to the first priority. Therefore, the electronic equipment allocates the equipment resources to the electronic equipment according to the priority adjusted by the application program.
In practical use, the method for adjusting the priority of the application program provided by the application program can reduce the power consumption of the electronic device, so that the cruising ability of the mobile phone is improved. For example, when the remaining amount of power is small (e.g., less than 20%), the target priority of the application program is appropriately lowered, and when the remaining amount of power of the electronic device is large (e.g., greater than 80%), the target priority of the application program is appropriately raised.
The initial power of the electronic device is known in advance, and the electronic device may consume a certain power by running a plurality of programs installed on the electronic device or using hardware, and the electronic device may obtain the remaining power of the electronic device according to a plurality of modes, for example: in practical application, a fuel gauge is arranged in the power supply and used for indicating the residual power of the power supply and the time that the power supply can continuously supply power under specific working conditions, wherein the fuel gauge mainly uses a detection mode such as a voltage test method, a battery modeling method and a coulometer, and the detection mode is not specifically limited here.
In one embodiment, the remaining power of the power supply of the electronic device may be detected when the current status information of the electronic device is obtained, or the current remaining power of the electronic device may be obtained before the target priority is determined, and the like. That is, determining the corresponding target priority according to the usage probability includes:
acquiring the current residual electric quantity of the electronic equipment;
and determining a corresponding target priority according to the residual electric quantity and the use probability.
In an embodiment, if the current priority of the application is the same as the target priority obtained by prediction, it is not necessary to adjust the priority group, that is, the priority of the application is adjusted to the target priority, which may include:
judging whether the priority of the application program is the same as the target priority or not;
if not, the priority of the application program is adjusted to be the target priority.
In an embodiment, some more important applications may also be preset as the preset applications, and then before adjusting the priority, it is determined whether the application is the preset application, and if not, the step of adjusting the priority is continuously performed. Therefore, the priority setting of the application program which is important for the user can be prevented from being changed, and information data and the like are prevented from being missed. The preset application program may be added by the user or automatically set by the system, which is not further limited in this application.
As can be seen from the above, the method for adjusting priority of an application according to the embodiment of the present application may obtain a usage frequency of the application in an electronic device, allocate a priority of the application according to the usage frequency, obtain operation history information of the application in the electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application runs, obtain current state information of the electronic device, obtain a first number of times that the historical state information satisfies the current state information in the operation history information, obtain a second number of times that the historical state information satisfies the current state information and the application is run in the operation history information, calculate a usage probability of the application according to the first number of times and the second number of times, and adjust the priority of the application according to the usage probability, where the priority of the application is associated with device resource scheduling of the electronic device. The method for adjusting the priority of the application program provided by the embodiment can predict the use probability of the application program in the current state according to the habit of using the application program for a period of time in the past of a user, and then adjust the priority of the application program according to the use probability so as to adjust the scheduling of the electronic device for the device resource of the application program.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a priority adjustment apparatus for an application according to an embodiment of the present disclosure. The priority adjustment apparatus 300 of the application includes a first obtaining module 301, a second obtaining module 302, a predicting module 303 and an adjusting module 304;
the first obtaining module 301 is configured to obtain operation history information of an application program in an electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application program runs;
the second obtaining module 302 is configured to obtain current state information of the electronic device;
the prediction module 303 is configured to predict a usage probability of an application program in the electronic device according to current state information and the operation history information;
the adjusting module 304 is configured to adjust the priority of the application according to the usage probability, where the priority of the application is associated with device resource scheduling of the electronic device.
In an embodiment, please refer to fig. 5, fig. 5 is a schematic structural diagram of an apparatus for adjusting priority of an application according to an embodiment of the present application, wherein the prediction module 303 includes: a first obtaining submodule 3031, a second obtaining submodule 3032 and a calculating submodule 3033;
the first obtaining submodule 3031 is configured to obtain a first number of times that the historical state information satisfies the current state information in the operation historical information;
the second obtaining submodule 3032 is configured to obtain a second number of times that the historical state information satisfies the current state information and the application program is operated in the operation historical information;
the calculating submodule 3033 is configured to calculate the usage probability of the application program according to the first number and the second number.
In an embodiment, as illustrated in fig. 6, the apparatus may further include: a third acquisition module 305 and a distribution module 306;
the third obtaining module 305 is configured to obtain the usage frequency of the application program in the electronic device before the first obtaining module 301 obtains the operation history information of the application program in the electronic device;
the allocating module 306 is configured to allocate the priority of the application according to the usage frequency.
In one embodiment, the adjusting module 304 includes: a determination submodule 3041 and an adjustment submodule 3042;
the determining submodule 3041, configured to determine a corresponding target priority according to the usage probability;
the adjusting submodule 3042 is configured to adjust the priority of the application program to a target priority.
In an embodiment, the determining submodule 3041 is specifically configured to obtain the current remaining power of the electronic device, and determine a corresponding target priority according to the remaining power and the usage probability.
As can be seen from the above description, the priority adjustment apparatus for an application according to the embodiment of the present application may obtain operation history information of an application in an electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application operates, obtain current state information of the electronic device, predict a usage probability of the application in the electronic device according to the current state information and the operation history information, and adjust a priority of the application according to the usage probability, where the priority of the application is associated with device resource scheduling of the electronic device. The method for adjusting the priority of the application program provided by the embodiment can predict the use probability of the application program in the current state according to the habit of using the application program for a period of time in the past of a user, and then adjust the priority of the application program according to the use probability so as to adjust the scheduling of the electronic device for the device resource of the application program.
In the embodiment of the present application, the priority adjustment device of the application and the priority adjustment method of the application in the above embodiments belong to the same concept, and any method provided in the embodiment of the priority adjustment method of the application may be run on the priority adjustment device of the application, and a specific implementation process thereof is described in detail in the embodiment of the priority adjustment method of the application, and is not described herein again.
The term "module" as used herein may be considered a software object executing on the computing system. The different components, modules, engines, and services described herein may be considered as implementation objects on the computing system. The apparatus and method described herein may be implemented in software, or in hardware, and are within the scope of the present application.
The embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the priority adjustment method of the application program.
The embodiment of the application also provides an electronic device, such as a tablet computer, a mobile phone and the like. A processor in the electronic device loads instructions corresponding to processes of one or more application programs into a memory according to the following steps, and the processor runs the application programs stored in the memory, so that various functions are realized:
acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information;
adjusting the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
In one embodiment, when predicting the usage probability of the application program in the electronic device according to the current state information and the operation history information, the processor is configured to perform the following steps:
acquiring a first number of times that the historical state information meets the current state information in the operation historical information;
acquiring a second time of running the application program when the historical state information meets the current state information in the running historical information;
and calculating the use probability of the application program according to the first times and the second times.
In an embodiment, before obtaining the operation history information of the application program in the electronic device, the processor is further configured to perform the following steps:
acquiring the use frequency of an application program in the electronic equipment;
and allocating the priority of the application program according to the use frequency.
In one embodiment, when the priority of the application program is adjusted according to the usage probability, the processor is configured to perform the following steps:
determining corresponding target priority according to the use probability;
and adjusting the priority of the application program to be a target priority.
In one embodiment, when determining the corresponding target priority according to the usage probability, the processor is configured to perform the following steps:
acquiring the current residual electric quantity of the electronic equipment;
and determining a corresponding target priority according to the residual electric quantity and the use probability.
In one embodiment, when the priority level of the application program is adjusted to the target priority level, the processor is configured to perform the following steps:
judging whether the priority of the application program is the same as the target priority or not;
if not, the priority of the application program is adjusted to be the target priority.
In an embodiment, the state information of the electronic device includes at least one of time information and location information, and the device resource scheduling of the electronic device includes at least one of CPU scheduling, memory scheduling, and network speed scheduling.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 7, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby monitoring the electronic device 400 as a whole.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402, thereby implementing various functions, as follows:
acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
predicting the use probability of the application program in the electronic equipment according to the current state information and the operation history information;
adjusting the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
Referring to fig. 8, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. The display 403, the rf circuit 404, the audio circuit 405, and the power source 406 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 403 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The power supply 406 may be used to power various components of the electronic device 400. In some embodiments, power supply 406 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system.
Although not shown in fig. 8, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the priority adjustment method of the application program in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the priority adjustment method of the application program in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the priority adjustment method of the application program can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the priority adjustment device for an application program according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description is directed to a method, an apparatus, a storage medium, and an electronic device for adjusting priority of an application program provided in an embodiment of the present application, and specific examples are applied herein to explain principles and implementations of the application, where the descriptions of the foregoing embodiments are only used to help understand a method and a core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method for adjusting priority of an application, wherein the method comprises the steps of:
acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates, and the state information comprises time information and position information of the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
acquiring a first number of times that the historical state information meets the current state information in the operation historical information;
acquiring a second time of running the application program when the historical state information meets the current state information in the running historical information;
calculating the use probability of the application program according to the first times and the second times;
judging whether the application program is a preset application program or not;
if not, determining a corresponding target priority according to the use probability;
acquiring the current residual electric quantity of the electronic equipment;
when the residual electric quantity is smaller than a first threshold value, reducing the target priority of the application program;
when the residual electric quantity is larger than a second threshold value, the target priority of the application program is promoted, wherein the second threshold value is larger than the first threshold value;
adjusting the priority level of the application program to a target priority level, wherein the priority level of the application program is associated with device resource scheduling of the electronic device.
2. The priority adjustment method of an application according to claim 1, wherein before acquiring the operation history information of an application among the electronic devices, the method further comprises:
acquiring the use frequency of an application program in the electronic equipment;
and allocating the priority of the application program according to the use frequency.
3. The priority adjustment method of an application program according to claim 2, wherein adjusting the priority of the application program to a target priority includes:
judging whether the priority of the application program is the same as the target priority or not;
if not, the priority of the application program is adjusted to be the target priority.
4. The priority adjustment method for application programs according to claim 1, wherein the device resource scheduling of the electronic device includes at least one of CPU scheduling, memory scheduling, and network speed scheduling.
5. An apparatus for adjusting priority of an application, wherein the apparatus comprises: a first obtaining module, a second obtaining module, a predicting module and an adjusting module, wherein the predicting module comprises: the device comprises a first obtaining submodule, a second obtaining submodule and a calculating submodule, wherein the adjusting module comprises: determining a submodule and an adjusting submodule;
the first obtaining module is configured to obtain operation history information of an application program in the electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application program runs, and the state information includes time information and location information of the electronic device when the application program runs;
the second obtaining module is used for obtaining the current state information of the electronic equipment;
the first obtaining submodule is used for obtaining a first number of times that the historical state information meets the current state information in the operation historical information;
the second obtaining submodule is used for obtaining a second time of operating the application program when the historical state information in the operation historical information meets the current state information;
the calculation submodule is used for calculating the use probability of the application program according to the first times and the second times;
the determining submodule is used for judging whether the application program is a preset application program or not, and if not, determining the corresponding target priority according to the use probability; acquiring the current residual electric quantity of the electronic equipment, reducing the target priority of the application program when the residual electric quantity is smaller than a first threshold, and increasing the target priority of the application program when the residual electric quantity is larger than a second threshold, wherein the second threshold is larger than the first threshold;
the adjusting sub-module is configured to adjust the priority of the application program to a target priority, where the priority of the application program is associated with device resource scheduling of the electronic device.
6. The apparatus for adjusting priority of application programs according to claim 5, wherein the apparatus further comprises: a third acquisition module and a distribution module;
the third obtaining module is used for obtaining the use frequency of the application program in the electronic equipment before the first obtaining module obtains the operation history information of the application program in the electronic equipment;
the allocation module is used for allocating the priority of the application program according to the use frequency.
7. A storage medium having stored thereon a computer program, wherein the computer program is caused to execute a priority adjustment method of an application program according to any one of claims 1 to 4 when the computer program runs on a computer.
8. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, wherein the instructions in the memory are loaded by the processor for performing the steps of:
acquiring operation history information of an application program in electronic equipment, wherein the operation history information comprises historical state information corresponding to the electronic equipment when the application program operates, and the state information comprises time information and position information of the electronic equipment when the application program operates;
acquiring current state information of the electronic equipment;
acquiring a first number of times that the historical state information meets the current state information in the operation historical information;
acquiring a second time of running the application program when the historical state information meets the current state information in the running historical information;
calculating the use probability of the application program according to the first times and the second times;
judging whether the application program is a preset application program or not;
if not, determining the corresponding target priority according to the use probability;
acquiring the current residual electric quantity of the electronic equipment;
when the residual electric quantity is smaller than a first threshold value, reducing the target priority of the application program;
when the residual electric quantity is larger than a second threshold value, the target priority of the application program is promoted, and the second threshold value is larger than the first threshold value;
adjusting the priority level of the application program to a target priority level, wherein the priority level of the application program is associated with device resource scheduling of the electronic device.
9. The electronic device of claim 8, wherein prior to obtaining the operation history information of the application program in the electronic device, the processor is further configured to:
acquiring the use frequency of an application program in the electronic equipment;
and allocating the priority of the application program according to the use frequency.
10. The electronic device of claim 9, wherein, in adjusting the priority of the application to a target priority, the processor is configured to:
judging whether the priority of the application program is the same as the target priority or not;
if not, the priority of the application program is adjusted to be the target priority.
11. The electronic device of claim 8, wherein the device resource schedule of the electronic device comprises at least one of a CPU schedule, a memory schedule, and a network speed schedule.
CN201880099401.3A 2018-12-29 2018-12-29 Application program priority adjustment method and device, storage medium and electronic equipment Active CN112997152B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125597 WO2020133408A1 (en) 2018-12-29 2018-12-29 Application program priority level adjustment method and apparatus, and storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112997152A CN112997152A (en) 2021-06-18
CN112997152B true CN112997152B (en) 2023-02-28

Family

ID=71128517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880099401.3A Active CN112997152B (en) 2018-12-29 2018-12-29 Application program priority adjustment method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112997152B (en)
WO (1) WO2020133408A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612517B (en) * 2020-12-18 2024-04-05 深圳市思为软件技术有限公司 Data acquisition method and related equipment
CN115033304A (en) * 2022-06-27 2022-09-09 维沃移动通信有限公司 Application program control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104488282A (en) * 2012-07-31 2015-04-01 索尼公司 Reception device, reception method, transmission device, and transmission method
CN105517129A (en) * 2015-11-28 2016-04-20 广东欧珀移动通信有限公司 Network type switching method in communication terminal and communication terminal
CN107402809A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Management-control method, device, storage medium and the electronic equipment of application program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3975703B2 (en) * 2001-08-16 2007-09-12 日本電気株式会社 Preferential execution control method, apparatus and program for information processing system
CN103164269B (en) * 2011-12-08 2017-05-03 中兴通讯股份有限公司 Method and terminal achieving multi-window display of application programs
US9250958B2 (en) * 2012-11-19 2016-02-02 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104488282A (en) * 2012-07-31 2015-04-01 索尼公司 Reception device, reception method, transmission device, and transmission method
CN105517129A (en) * 2015-11-28 2016-04-20 广东欧珀移动通信有限公司 Network type switching method in communication terminal and communication terminal
CN107402809A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Management-control method, device, storage medium and the electronic equipment of application program

Also Published As

Publication number Publication date
WO2020133408A1 (en) 2020-07-02
CN112997152A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
EP3567477B1 (en) Method for preloading application, storage medium, and terminal
US10936358B2 (en) Initiating background updates based on user activity
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
US9256484B2 (en) Dynamic adjustment of mobile device based on user activity
US9603094B2 (en) Non-waking push notifications
US9392393B2 (en) Push notification initiated background updates
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
EP3506105B1 (en) Method and device for processing a memory and storage medium
CN112997152B (en) Application program priority adjustment method and device, storage medium and electronic equipment
CN111918386B (en) Positioning method, positioning device, storage medium and electronic equipment
CN107748697B (en) Application closing method and device, storage medium and electronic equipment
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
CN112997543B (en) Application grouping adjustment method and device, storage medium and electronic equipment
CN107450951B (en) Application processing method and device, storage medium and terminal
CN113439263A (en) Application cleaning method and device, storage medium and electronic equipment
CN112997150B (en) Application management method and device, storage medium and electronic equipment
CN111355848B (en) Positioning control method and device of electronic equipment, storage medium and electronic equipment
CN112997539B (en) Application grouping adjustment method and device, storage medium and electronic equipment
CN113760540B (en) Task processing method and related device
CN113015959A (en) Application program management method and device, storage medium and electronic equipment
CN113272786A (en) Application program control method and device, storage medium and electronic equipment
CN115712489A (en) Task scheduling method and device for deep learning platform and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant