CN105100505A - Method and system for assigning battery level to terminal applications - Google Patents

Method and system for assigning battery level to terminal applications Download PDF

Info

Publication number
CN105100505A
CN105100505A CN201510425499.5A CN201510425499A CN105100505A CN 105100505 A CN105100505 A CN 105100505A CN 201510425499 A CN201510425499 A CN 201510425499A CN 105100505 A CN105100505 A CN 105100505A
Authority
CN
China
Prior art keywords
application type
electricity
application
electric quantity
current electric
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.)
Granted
Application number
CN201510425499.5A
Other languages
Chinese (zh)
Other versions
CN105100505B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510425499.5A priority Critical patent/CN105100505B/en
Publication of CN105100505A publication Critical patent/CN105100505A/en
Application granted granted Critical
Publication of CN105100505B publication Critical patent/CN105100505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides a method and system for assigning battery level to terminal applications. The method includes classifying applications on a terminal according to functions, determining the types of the applications, and setting a target electric quantity value to each application type, wherein the target electric quantity value of the application type is the minimal electric quantity for normal operation of one application of the very type. The current electric quantity of the started application type is detected during operation of a battery, the current electric quantity of the application type is adjusted if the current electric quantity and the target electric quantity value of the application type is different, and the current electric quantity of the adjusted application type equals to the target electric quantity value thereof. The started application types include the type of applications that run normally at the foreground, the type of applications that run normally at the background and the type of applications that do not run normally at the background. The battery power consumption of the applications can be reduced.

Description

A kind of method and system for terminal applies distribution battery electric quantity
Technical field
The present invention relates to battery electric quantity reallocation field, particularly relate to a kind of method and system for the application distribution battery electric quantity in terminal.
Background technology
Along with intelligent terminal development and be applied to and intelligent terminal apply the abundant of kind, people's intelligence is improving gradually to the usage degree of terminal, correspondingly, people also wish all the more the cell charging times reducing intelligent terminal in the process using intelligent terminal, extend the flying power of rechargeable battery.
For this reason, how to save the battery consumption of application, improve this technical problem of electricity utilance of battery.Be subject to terminal manufacturer, the giving more sustained attention of battery manufacturers and scientific research institutions.At present, which application the end cell management software that market is released can only monitor and consume high electricity, initiatively can not save the battery consumption of application, improves battery electric quantity utilance.
Summary of the invention
The invention provides a kind of method and system for the application distribution battery electric quantity in terminal, to solve the technical problem of the battery consumption how saving application.
For solving the problems of the technologies described above, embodiments provide a kind of method for terminal applies distribution battery electric quantity, described method comprises:
The application that terminal is installed is classified by function, determines application type;
Arrange the electricity desired value of each application type, the electricity desired value of described application type is for maintaining the minimum amount of power in this application type needed for a normal operation of application;
The current electric quantity of the application type of each startup is detected in battery operated process, if there is the application type that current electric quantity is different from electricity desired value, then the current electric quantity of this application type adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value;
The application type of described startup comprises: be included in the application type of the application that foreground is normally run, be included in the application type of the application that backstage is normally run and be included in the application type of application of backstage abnormal running.
Optionally, the current electric quantity of application type is different from its electricity desired value, comprising:
The difference degree of the current electric quantity of application type and its electricity desired value is greater than default percentage.
Optionally, the current electric quantity of this application type described adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Current electric quantity is greater than to the application type of electricity desired value, retains an application under this application type, reduce the current electric quantity of application type to its electricity desired value simultaneously;
Application type current electric quantity being less than to electricity desired value sorts from high to low by its priority, judge whether the current available power of end cell can support that the application type of limit priority runs with its electricity desired value, if passable, to this application type executable operations: retain an application under this application type, and current available power is dispensed to the application type of described limit priority, make its current electric quantity increase to its electricity desired value; Continue to judge whether the current available power of end cell can support that the application of next priority runs with its electricity desired value, if passable, continue to perform aforesaid operations to this application type, till the current available power of end cell is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of described end cell is that the total electricity deduction of end cell applies the electricity taken.
Optionally, the current electric quantity of this application type described adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Application type belonging to being applied by user's current operation is set to the application type of limit priority, and other application types are by its original priority queueing;
The electricity of application type the highest for priority is adjusted to target electricity, if the current available power of battery is not enough to support that the application type that this priority is the highest runs with target electricity, then reduce the electricity that current electric quantity reaches the application type of target electricity, until the current available power of battery is enough to support that the application type that this priority is the highest runs with target electricity;
After the electricity of application type the highest for priority is adjusted to target electricity, following operation is performed to the application type of next priority: if the current electric quantity of the application type of next priority is greater than its electricity desired value, retain an application under this application type, and the current electric quantity reducing this application type is to its electricity desired value; If the current electric quantity of the application type of next priority is less than its electricity desired value, then judge whether the current available power of end cell can support that the application type of this priority runs with its electricity desired value, if passable, retain an application under this application type, and make the current electric quantity of this application type increase to its electricity desired value; If the current electric quantity of the application type of next priority equals its electricity desired value, then the current electric quantity value maintaining this application type is constant;
Continue to perform identical operation to the application type of next priority, till the current available power of the current electric quantity or end cell that have adjusted all application types is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of battery is that the total electricity deduction of end cell applies the electricity taken.
Optionally, the current electric quantity of described reduction application type, to its electricity desired value, comprising:
If need the application type reducing current electric quantity to comprise the application of current normal operation, retain an application normally run;
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, for the application type comprising the current application normally run on foreground, with the electricity that the first setting step-length reduction screen intensity takies, often reduce a screen intensity and judge whether the current electric quantity of application type reaches its target electricity, if the current electric quantity of application type does not reach its target electricity, then continue the electricity taken with the first setting step-length reduction screen intensity, until screen intensity reaches the minimum screen intensity that application operational system allows;
If during the minimum screen intensity that the system that current screen brightness reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, that reduces with the second setting step-length each resource that this application normally run on foreground takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
Optionally, described method also comprises:
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, to the application type comprising the current application normally run on backstage, that reduces with the second setting step-length each resource that this application normally run on backstage takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
Optionally, described method also comprises:
If need the application type reducing current electric quantity not comprise the normal application run, retain the application of one of them backstage abnormal running, the current electric quantity of the application of this abnormal running is increased to the target charge value of this application type.
Optionally, the current electric quantity of described increase application type, to its electricity desired value, comprising:
When the current electric quantity of application type is less than its electricity desired value, the number of the background service program of each application at backstage abnormal running is judged, if judge, abnormal running application has multiple background service program, then according to each background service program take that resource and order from high to low increase background service program successively take electricity, until the current electric quantity of application type reaches to its electricity desired value;
If judge, application has a background service program, then what increase each resource that this background service program takies successively takies electricity, until the current electric quantity of application type reaches to its electricity desired value.
For solving the problems of the technologies described above, embodiments provide a kind of system for terminal applies distribution battery electric quantity, described system comprises:
Application type determination module, for classifying by function to the application that terminal is installed, determines application type;
Application type target electricity determination module, for arranging the electricity desired value of each application type, the electricity desired value of described application type is for maintaining the minimum amount of power in this application type needed for a normal operation of application;
Application type electricity adjusting module, for detecting the current electric quantity of the application type of each startup in battery operated process, if there is the application type that current electric quantity is different from electricity desired value, then the current electric quantity of this application type is adjusted, make the current electric quantity of the application type through adjustment equal its electricity desired value;
The application type of described startup comprises: be included in the application type of the application that foreground is normally run, be included in the application type of the application that backstage is normally run and be included in the application type of application of backstage abnormal running.
Optionally, the current electric quantity of described application type is different from its electricity desired value, comprising:
The difference degree of the current electric quantity of application type and its electricity desired value is greater than default percentage.
Optionally, described application type electricity adjusting module, for adjusting the current electric quantity of application type, making the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Current electric quantity is greater than to the application type of electricity desired value, retains an application under this application type, reduce the current electric quantity of application type to its electricity desired value simultaneously;
Application type current electric quantity being less than to electricity desired value sorts from high to low by its priority, judge whether the current available power of end cell can support that the application type of limit priority runs with its electricity desired value, if passable, to this application type executable operations: retain an application under this application type, and current available power is dispensed to the application type of described limit priority, make its current electric quantity increase to its electricity desired value; Continue to judge whether the current available power of end cell can support that the application of next priority runs with its electricity desired value, if passable, continue to perform aforesaid operations to this application type, till the current available power of end cell is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of described end cell is that the total electricity deduction of end cell applies the electricity taken.
Optionally, described application type electricity adjusting module, for adjusting the current electric quantity of this application type, making the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Application type belonging to being applied by user's current operation is set to the application type of limit priority, and other application types are by its original priority queueing;
The electricity of application type the highest for priority is adjusted to target electricity, if the current available power of battery is not enough to support that the application type that this priority is the highest runs with target electricity, then reduce the electricity that current electric quantity reaches the application type of target electricity, until the current available power of battery is enough to support that the application type that this priority is the highest runs with target electricity;
After the electricity of application type the highest for priority is adjusted to target electricity, following operation is performed to the application type of next priority: if the current electric quantity of the application type of next priority is greater than its electricity desired value, retain an application under this application type, and the current electric quantity reducing this application type is to its electricity desired value; If the current electric quantity of the application type of next priority is less than its electricity desired value, then judge whether the current available power of end cell can support that the application type of this priority runs with its electricity desired value, if passable, retain an application under this application type, and make the current electric quantity of this application type increase to its electricity desired value; If the current electric quantity of the application type of next priority equals its electricity desired value, then the current electric quantity value maintaining this application type is constant;
Continue to perform identical operation to the application type of next priority, till the current available power of the current electric quantity or end cell that have adjusted all application types is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of battery is that the total electricity deduction of end cell applies the electricity taken.
Optionally, described application type electricity adjusting module, for reducing the current electric quantity of application type to its electricity desired value, comprising:
If need the application type reducing current electric quantity to comprise the application of current normal operation, retain an application normally run;
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, for the application type comprising the current application normally run on foreground, with the electricity that the first setting step-length reduction screen intensity takies, often reduce a screen intensity and judge whether the current electric quantity of application type reaches its target electricity, if the current electric quantity of application type does not reach its target electricity, then continue the electricity taken with the first setting step-length reduction screen intensity, until screen intensity reaches the minimum screen intensity that application operational system allows;
If during the minimum screen intensity that the system that current screen brightness reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, that reduces with the second setting step-length each resource that this application normally run on foreground takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
Optionally, described application type electricity adjusting module, for reducing the current electric quantity of application type to its electricity desired value, also comprises:
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, to the application type comprising the current application normally run on backstage, that reduces with the second setting step-length each resource that this application normally run on backstage takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
Optionally, described application type electricity adjusting module, for reducing the current electric quantity of application type to its electricity desired value, also comprises:
If need the application type reducing current electric quantity not comprise the normal application run, retain the application of one of them backstage abnormal running, the current electric quantity of the application of this abnormal running is increased to the target charge value of this application type.
Optionally, described application type electricity adjusting module, for increasing the current electric quantity of application type to its electricity desired value, comprising:
When the current electric quantity of application type is less than its electricity desired value, the number of the background service program of each application at backstage abnormal running is judged, if judge, abnormal running application has multiple background service program, then according to each background service program take that resource and order from high to low increase background service program successively take electricity, until the current electric quantity of application type reaches to its electricity desired value;
If judge, application has a background service program, then what increase each resource that this background service program takies successively takies electricity, until the current electric quantity of application type reaches to its electricity desired value.
In technique scheme, the electricity desired value of application type can be arranged and minimum amount of power for satisfying the demand as required, the current electric quantity of the normal application type run is adjusted according to its electricity desired value, make this application type through adjustment consume minimum amount of power under the normal condition run of application needed for ensureing, save the electric quantity consumption of battery.
Accompanying drawing explanation
Fig. 1 is the method flow diagram for the application distribution battery electric quantity in terminal of the embodiment of the present invention;
Fig. 2 is the system composition diagram for the application distribution battery electric quantity in terminal of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Fig. 1 is the method flow diagram for the application distribution battery electric quantity in terminal of the embodiment of the present invention.
S101 classifies by function to the application that terminal is installed, and determines application type;
Described application type can comprise: system application type, chat application type, down load application type, video player application type etc.; One or more application with identical function is comprised under described application type;
S102 arranges the electricity desired value of each application type;
The electricity desired value of described application type is for maintaining the minimum amount of power in this application type needed for a normal operation of application; As, application type is video player type, multiple video player application is comprised under this player types, as Baidu's player, sudden peal of thunder player, Tengxun's player, so the electricity desired value of this player types should be and can maintain any one player in Baidu's player, sudden peal of thunder player or Tengxun's player and normally run required minimum amount of power; Due to the set that same application type is the application with identical function, the minimum amount of power in this application type needed for the normal operation of each application is almost identical;
Described electricity desired value can be a concrete numerical value, or electricity takies the percentage of the chargeable total electricity of battery;
S103 detects the current electric quantity of the application type of each startup in battery operated process, if there is the application type that current electric quantity is different from electricity desired value, then the current electric quantity of this application type is adjusted, make the current electric quantity of the application type through adjustment equal its electricity desired value;
Application in usual application type comprises: the application of startup and the application of non-start up; Wherein, the application started comprises: current normally run on foreground the application application of cpu resource (consume), the current application (being similarly the application consuming cpu resource) that normally runs on backstage and the application (not consuming cpu resource, the only application that runs of background service program) at backstage abnormal running;
As user starts the APP that is play music on mobile terminals, this APP playing music is the current application normally run on foreground, this user is not when closing the APP of this broadcasting music, start web page browsing APP again, namely the APP now playing music proceeds to backstage and normally runs, and web page browsing APP becomes the current application normally run on foreground, listen to the music while while browsing page user, on mobile phone screen, display video plays notice APP existing more new video, when this video playback APP does not have displaying video, and when the background program of this video playback APP detects renewal, this video playback APP is the application of backstage abnormal running, when this video playback APP carries out Push Service, this video playback APP takies cpu resource, now this video playback APP is the normal use at running background, after video playback APP completes Push Service, this video playback APP discharges again CPU and becomes application at backstage abnormal running again,
In technique scheme, the electricity desired value of application type can be arranged and minimum amount of power for satisfying the demand as required, the current electric quantity of application type is adjusted according to its electricity desired value, make this application type through adjustment consume minimum amount of power under the condition of normal operation ensureing required application, save the electric quantity consumption of battery.
Alternatively, in step S103, the current electric quantity of application type is different from its electricity desired value, comprising:
The difference degree of the current electric quantity of application type and its electricity desired value is greater than default percentage P, as P=5%.
Alternatively, in step S103, the described current electric quantity to application type adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Mode one:
First, current electric quantity is greater than to the application type of electricity desired value, retains an application under this application type, reduce the current electric quantity of application type to its electricity desired value simultaneously;
Secondly, application type current electric quantity being less than to electricity desired value sorts from high to low by its priority, judge whether the current available power of end cell can support that the application type of limit priority runs with its electricity desired value, if passable, following operation is performed to this application type: retain an application under this application type, and current available power is dispensed to the application type of described limit priority, make its current electric quantity increase to its electricity desired value; Continue to judge whether the current available power of end cell can support that the application of next priority runs with its electricity desired value, if passable, continue to perform aforesaid operations to this application type, till the current available power of end cell is not enough to support that the application type of next priority runs with its electricity desired value.
The current available power of described end cell is that the total electricity deduction of end cell applies the electricity taken.
As, the application of current startup comprises:
The music player APP normally run on foreground, 2 the instant messaging APP:QQ normally run on backstage and micro-letter, and multiple APP at backstage abnormal running, as weather forecast APP, Sohu video APP and Baidu video APP;
Before electricity adjustment, music player APP current take that electricity is total electricity 15%, equal the electricity desired value of music player application type; QQ and micro-letter current take that electricity is respectively total electricity 10%, the current electric quantity of instant messaging application type is 20% of total electricity, is greater than the electricity desired value of instant messaging application type: 10% of total electricity; Weather forecast APP is current take that electricity is total electricity 2%, be less than the electricity desired value of weather forecast application type: 5% of total electricity; It is respectively 2% of total electricity that Sohu video APP and Baidu video APP current takies electricity, is less than the electricity desired value of Video Applications type: 15% of total electricity; Before electricity adjustment, applying the electricity taken is total electricity * (15%+20%+2%+2*2%=41%), and the current available power of end cell is 59% of total electricity;
When carrying out electricity adjustment by mode one, the current electricity that takies of music player APP remains unchanged, and is still 15% of total electricity; The current electric quantity of instant messaging application type is down to 10% of total electricity from 20% of total electricity; Now applying the electricity taken is total electricity * (15%+10%+2%+2*2%=31%), and the current available power of end cell is 69% of total electricity;
Suppose that the priority of Video Applications type is greater than the priority of weather forecast application type; Through judging, the current available power (69% of total electricity) of end cell can support that Video Applications type is run with its electricity desired value, then retain one of them video APP (Sohu video APP or Baidu video APP), when retaining video APP, the control command from user can be received, selected specifically to retain which video APP by user, and the current of the video APP retained is taken the electricity desired value that electricity is promoted to Video Applications type: 15% of total electricity; Now applying the electricity taken is total electricity * (15%+10%+2%+15%=42%), and the current available power of end cell is 58% of total electricity;
Continue to judge that the current available power (58% of total electricity) of end cell can support that weather forecast application type is run with its electricity desired value, take current for weather forecast APP the electricity desired value that electricity is promoted to weather pattern: 5% of total electricity; Now applying the electricity taken is total electricity * (15%+10%+5%+15%=45%), and the current available power of end cell is 55% of total electricity.
Mode one relates to and the current electric quantity of the application type being less than electricity desired value is promoted to its target electricity, this may experience running status due to the application now at backstage abnormal running under this application type to change, namely backstage normal operating condition or foreground normal operating condition is changed into from backstage abnormal operational conditions, in order to ensure that this application normally can carry out state-transition, give the electricity that this application can normally run in advance.
Visible by above-mentioned record, mode one adds the number of the application that can normally run.
Mode two:
Application type belonging to user's current operation application (namely in the application that foreground is normally run) is set to the application type of limit priority, other application types are by its original priority queueing;
The electricity of application type the highest for priority is adjusted to target electricity, if the current available power of battery is not enough to support that the application type that this priority is the highest runs with target electricity, then reduce the electricity that current electric quantity reaches the application type of target electricity, until the current available power of battery is enough to support that the application type that this priority is the highest runs with target electricity;
After the electricity of application type the highest for priority is adjusted to target electricity, following operation is performed to the application type of next priority: if the current electric quantity of the application type of next priority is greater than its electricity desired value, retain an application under this application type, and the current electric quantity reducing this application type is to its electricity desired value; If the current electric quantity of the application type of next priority is less than its electricity desired value, then judge whether the current available power of end cell can support that the application type of this priority runs with its electricity desired value, if passable, retain an application under this application type, and make the current electric quantity of this application type increase to its electricity desired value; If the current electric quantity of the application type of next priority equals its electricity desired value, then the current electric quantity value maintaining this application type is constant; Continue to perform identical operation to the application type of next priority, till the current available power of the current electric quantity or end cell that have adjusted all application types is not enough to support that the application type of next priority runs with its electricity desired value again.
In mode two, the current available power of battery is that the total electricity deduction of end cell applies the electricity taken.
Same hypothesis, the application of current startup comprises:
The music player APP normally run on foreground, 2 the instant messaging APP:QQ normally run on backstage and micro-letter, and multiple APP at backstage abnormal running, as weather forecast APP, Sohu video APP and Baidu video APP; Before electricity adjustment, music player APP current take that electricity is total electricity 15%, equal the electricity desired value of music player application type; QQ and micro-letter current take that electricity is respectively total electricity 10%, the current electric quantity of instant messaging application type is 20% of total electricity, is greater than the electricity desired value of instant messaging application type: 10% of total electricity; Weather forecast APP is current take that electricity is total electricity 2%, be less than the electricity desired value of weather forecast application type: 5% of total electricity; It is respectively 2% of total electricity that Sohu video APP and Baidu video APP current takies electricity, is less than the electricity desired value of Video Applications type: 15% of total electricity;
According to mode two, the music APP normally run on foreground has limit priority, except this music APP, the priority of all the other application types is followed successively by instant messaging application type > video playback application type > weather forecast application type from high to low;
When carrying out electricity adjustment, the current electricity that takies of music player APP remains unchanged, and is still 15% of total electricity; The electricity that current application has taken is total electricity * (15%+20%+2%+2*2%=41%), and the current available power of end cell is 59% of total electricity;
To the instant messaging application type possessing next priority, because its current electric quantity is greater than its electricity desired value, the current electric quantity of instant messaging application type is down to 10% of total electricity from 20% of total electricity; The electricity that current application has taken is total electricity * (15%+10%+2%+2*2%=31%), and the current available power of end cell is 69% of total electricity;
To the video playback application type possessing next priority, because its current electric quantity is less than its electricity desired value, through judging, the current available power (69% of total electricity) of end cell can support that Video Applications type is run with its electricity desired value, then retain one of them video APP (Sohu video APP or Baidu video APP), and the current of the video APP retained is taken the electricity desired value that electricity is promoted to Video Applications type: 15% of total electricity; Now applying the electricity taken is total electricity * (15%+10%+2%+15%=42%), and the current available power of end cell is 58% of total electricity;
For next priority weather forecast application type, because its current electric quantity is less than its electricity desired value, through judging, the current available power (59% of total electricity) of end cell can support that weather forecast application type is run with its electricity desired value, takies current for weather forecast APP the electricity desired value that electricity is promoted to weather pattern: 5% of total electricity; Now applying the electricity taken is total electricity * (15%+10%+5%+15%=45%), and the current available power of end cell is 55% of total electricity.
Now user opens a new Computer Simulation APP, then this Computer Simulation APP has limit priority, except this Computer Simulation application type, the priority of all the other application types is followed successively by instant messaging application type > video playback application type > audio frequency from high to low and plays application type > weather forecast application type; Suppose that the target electricity of now Computer Simulation application type is 60% of total electricity, current available power (55% of total electricity) due to end cell is not enough to support that this application type runs with target electricity, in order to ensure the normal work of the application of limit priority, need the electricity of the one or more application types reduced in instant messaging application type, video playback application type, audio frequency broadcasting application type and/weather forecast application type, until the current available power of battery is enough to support that Computer Simulation application type runs with its target electricity.
Visible by above-mentioned record, mode two ensure that the application of current user operation can normally run, and takies minimum amount of power under the normal condition run simultaneously.
Alternatively, the current electric quantity of above-mentioned reduction application type, to its electricity desired value, comprising:
If need the application type reducing current electric quantity to comprise the application of current normal operation, only retain an application normally run;
After the application that reservation one normally runs, if the current electric quantity of application type does not still reach its target electricity, for the application type comprising the current application normally run on foreground, with the electricity that the first setting step-length reduction screen intensity takies, often reduce a screen intensity and judge whether the current electric quantity of application type reaches its target electricity, if the current electric quantity of application type does not reach its target electricity, then continue the electricity taken with the first setting step-length reduction screen intensity, until screen intensity reaches the minimum screen intensity that application operational system allows; If during the minimum screen intensity that the system that current screen brightness reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, that reduces with the second setting step-length each resource that this application normally run on foreground takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity, optionally, first reduce its memory source consumes power, namely reduce the frequency of the application region normally run on foreground in read/write memory; If during the minimum frequency that the system that described internal memory reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, continue to reduce its hard disk resources consumes power with the second setting step-length, namely reduce the frequency of the application region normally run on foreground in reading writing harddisk;
Optionally, after the application that reservation one normally runs, if the current electric quantity of application type does not still reach its target electricity, to the application type comprising the current application normally run on backstage, that reduces with the second setting step-length each resource that this application normally run on backstage takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity, optionally, first reduce its memory source consumes power, reduce the frequency of the application region normally run on backstage in read/write memory, if during the minimum frequency that the system that described internal memory reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, continue the electricity reducing the consumption of its hard disk resources with the second setting step-length, namely the frequency of the application region normally run on backstage in reading writing harddisk is reduced.
If need the application type reducing current electric quantity not comprise the normal application run, the application of multiple backstages abnormal running is comprised under this application type is described, retain the application of one of them backstage abnormal running, the current electric quantity of the application of this abnormal running is increased to the target charge value of this application type;
In said method, concrete which retains apply optional mode and have multiple, as received the control command of user, being selected specifically to retain which application by user, or according to the frequency of utilization of application, retain the application that frequency of utilization under same application type is the highest.
Alternatively, when adjusting the electricity of application type, the current electric quantity increasing application type, to its electricity desired value, comprising:
If the current electric quantity of application type is less than its electricity desired value, the normal application run is not comprised under this application type is described, therefore when the current electric quantity of this kind of application type of increase is to its electricity desired value, the number of the background service program of each application at backstage abnormal running is judged, if judge, abnormal running application has multiple background service program, what then take that resource and order from high to low increase background service program successively according to each background service program takies electricity, until the current electric quantity of application type reaches to its electricity desired value; If judge, application has a background service program, then what increase each resource that this background service program takies successively takies electricity, until the current electric quantity of application type reaches to its electricity desired value.
The resource that described background service program takies comprises: hard disk resources and memory source;
Optionally, take according to each background service program the electricity that takies that resource and order from high to low increase background service program successively to comprise: take resource according to background service program and order from high to low sorts to background service program, what first increase previous background service program takies electricity, when previous background service program take electricity cannot continue to increase time, then increase a rear background service program take electricity.
Optionally, the electricity that takies increasing background service program comprises: the electricity increasing each resource occupation that this background service program takies; Increase each resource take electricity time, what first increase a resource with the 3rd setting step-length takies electricity, often increase the current electric quantity once judging application type and whether reach its target electricity, if the current electric quantity of application type does not reach its target electricity, that then continues to increase this resource with the 3rd setting step-length takies electricity, until the electricity that takies of this resource reaches it and presets most high threshold; If the electricity that takies of this resource reaches after it presets most high threshold, the current electric quantity of application type does not still reach its target electricity, that continues to increase next resource with the 3rd setting step-length takies electricity, until the current electric quantity of application type reaches its target electricity.Optionally, what first can increase memory source takies electricity, then increase hard disk resources take electricity;
Wherein, what the frequency by increasing/reducing background service program region described in read/write memory can increase/reduce memory source takies electricity; What can increase/reduce hard disk resources by the frequency increasing/reduce background service program region described in reading writing harddisk takies electricity.
Alternatively, the target electricity for current total electricity of the end cell obtained in above-described embodiment, the current available power of end cell, the current electric quantity of application type and application type all may be displayed on visual screen, checks for user.
Fig. 2 is the system composition diagram for the application distribution battery electric quantity in terminal of the embodiment of the present invention.
This system comprises:
Application type determination module 201, for classifying by function to the application that terminal is installed, determines application type; Described application type can comprise: system application type, chat application type, down load application type, player application type etc.; One or more application with identical function is comprised under described application type;
Application type target electricity determination module 202, for arranging the electricity desired value of each application type, the electricity desired value of described application type is for maintaining the minimum amount of power in this application type needed for a normal operation of application; As, application type is video player type, multiple video player application is comprised under this player types, as Baidu's player, sudden peal of thunder player, Tengxun's player, so the electricity desired value of this player types should be and can maintain any one player in Baidu's player, sudden peal of thunder player or Tengxun's player and normally run required minimum amount of power; Due to the set that same application type is the application with identical function, the minimum amount of power in this application type needed for the normal operation of each application is almost identical;
Described electricity desired value can be a concrete numerical value, or electricity takies the percentage of the chargeable total electricity of battery;
Application type electricity adjusting module 203, for detecting the current electric quantity of the application type of each startup in battery operated process, if there is the application type that current electric quantity is different from electricity desired value, then the current electric quantity of this application type adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value.
Application in usual application type comprises: the application of startup and the application of non-start up; Wherein, the application started comprises: current normally run on foreground the application application of cpu resource (consume), the current application (being similarly the application consuming cpu resource) that normally runs on backstage and the application (not consuming cpu resource, the only application that runs of background service program) at backstage abnormal running;
As user starts the APP that is play music on mobile terminals, this APP playing music is the current application normally run on foreground, this user is not when closing the APP of this broadcasting music, start web page browsing APP again, namely the APP now playing music proceeds to backstage and normally runs, and web page browsing APP becomes the current application normally run on foreground, listen to the music while while browsing page user, on mobile phone screen, display video plays notice APP existing more new video, when this video playback APP does not have displaying video, and when the background program of this video playback APP detects renewal, this video playback APP is the application of backstage abnormal running, when this video playback APP carries out Push Service, this video playback APP takies cpu resource, now this video playback APP is the normal use at running background, after video playback APP completes Push Service, this video playback APP discharges again CPU and becomes application at backstage abnormal running again,
In technique scheme, the electricity desired value of application type can be arranged and minimum amount of power for satisfying the demand as required, the current electric quantity of application type is adjusted according to its electricity desired value, make this application type through adjustment consume minimum amount of power under the condition of normal operation ensureing required application, save the electric quantity consumption of battery.
Optionally, application type electricity adjusting module 203 is set to judge that the current electric quantity of described application type is different from its electricity desired value, comprising:
Judge whether the current electric quantity of application type and the difference degree of its electricity desired value are greater than default percentage P, as P=5%.If be greater than default percentage P, then the current electric quantity of application type is different from its electricity desired value.
Optionally, described application type electricity adjusting module, for adjusting the current electric quantity of application type, making the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Mode one:
First, current electric quantity is greater than to the application type of electricity desired value, retains an application under this application type, reduce the current electric quantity of application type to its electricity desired value simultaneously; Secondly, application type current electric quantity being less than to electricity desired value sorts from high to low by its priority, judge whether the current available power of end cell can support that the application type of limit priority runs with its electricity desired value, if passable, following operation is performed to this application type: retain an application under this application type, and current available power is dispensed to the application type of described limit priority, make its current electric quantity increase to its electricity desired value; Continue to judge whether the current available power of end cell can support that the application of next priority runs with its electricity desired value, if passable, continue to perform aforesaid operations to this application type, till the current available power of end cell is not enough to support that the application type of next priority runs with its electricity desired value.
The current available power of described end cell is that the total electricity deduction of end cell applies the electricity taken.
Mode one relates to and the current electric quantity of the application type being less than electricity desired value is promoted to its target electricity, this may experience running status due to the application now at backstage abnormal running under this application type to change, namely backstage normal operating condition or foreground normal operating condition is changed into from backstage abnormal operational conditions, in order to ensure that this application normally can carry out state-transition, give the electricity that this application can normally run in advance.
Visible by above-mentioned record, mode one adds the number of the application that can normally run.
Or,
Mode two:
Application type belonging to user's current operation application (namely in the application that foreground is normally run) is set to the application type of limit priority, other application types are by its original priority queueing;
The electricity of application type the highest for priority is adjusted to target electricity, if the current available power of battery is not enough to support that the application type that this priority is the highest runs with target electricity, then reduce the electricity that current electric quantity reaches the application type of target electricity, until the current available power of battery is enough to support that the application type that this priority is the highest runs with target electricity;
After the electricity of application type the highest for priority is adjusted to target electricity, following operation is performed to the application type of next priority: if the current electric quantity of the application type of next priority is greater than its electricity desired value, retain an application under this application type, and the current electric quantity reducing this application type is to its electricity desired value; If the current electric quantity of the application type of next priority is less than its electricity desired value, then judge whether the current available power of end cell can support that the application type of this priority runs with its electricity desired value, if passable, retain an application under this application type, and make the current electric quantity of this application type increase to its electricity desired value; If the current electric quantity of the application type of next priority equals its electricity desired value, then the current electric quantity value maintaining this application type is constant; Continue to perform identical operation to the application type of next priority, till the current available power of the current electric quantity or end cell that have adjusted all application types is not enough to support that the application type of next priority runs with its electricity desired value again.
In mode two, the current available power of battery is that the total electricity deduction of end cell applies the electricity taken.
Mode two ensure that the application of current user operation can normally run, and takies minimum amount of power under the normal condition run simultaneously.
Optionally, described application type electricity adjusting module, when adjusting the electricity of application type, for reducing the current electric quantity of application type to its electricity desired value, comprising:
After the application that reservation one normally runs, if the current electric quantity of application type does not still reach its target electricity, for the application type comprising the current application normally run on foreground, with the electricity that the first setting step-length reduction screen intensity takies, often reduce a screen intensity and judge whether the current electric quantity of application type reaches its target electricity, if the current electric quantity of application type does not reach its target electricity, then continue the electricity taken with the first setting step-length reduction screen intensity, until screen intensity reaches the minimum screen intensity that application operational system allows; If during the minimum screen intensity that the system that current screen brightness reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, that reduces with the second setting step-length each resource that this application normally run on foreground takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity, optionally, first reduce its memory source consumes power, namely reduce the frequency of the application region normally run on foreground in read/write memory; If during the minimum frequency that the system that described internal memory reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, continue to reduce its hard disk resources consumes power with the second setting step-length, namely reduce the frequency of the application region normally run on foreground in reading writing harddisk;
Optionally, after the application that reservation one normally runs, if the current electric quantity of application type does not still reach its target electricity, to the application type comprising the current application normally run on backstage, that reduces with the second setting step-length each resource that this application normally run on backstage takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity, optionally, first reduce its memory source consumes power, reduce the frequency of the application region normally run on backstage in read/write memory, if during the minimum frequency that the system that described internal memory reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, continue the electricity reducing the consumption of its hard disk resources with the second setting step-length, namely the frequency of the application region normally run on backstage in reading writing harddisk is reduced.
If need the application type reducing current electric quantity not comprise the normal application run, the application of multiple backstages abnormal running is comprised under this application type is described, retain the application of one of them backstage abnormal running, the current electric quantity of the application of this abnormal running is increased to the target charge value of this application type;
In said method, concrete which retains apply optional mode and have multiple, as received the control command of user, being selected specifically to retain which application by user, or according to the frequency of utilization of application, retain the application that frequency of utilization under same application type is the highest.
Optionally, described application type electricity adjusting module, when adjusting the electricity of application type, for increasing the current electric quantity of application type to its electricity desired value, comprising:
If the current electric quantity of application type is less than its electricity desired value, the normal application run is not comprised under this application type is described, therefore when the current electric quantity of this kind of application type of increase is to its electricity desired value, the number of the background service program of each application at backstage abnormal running is judged, if judge, abnormal running application has multiple background service program, what then take that resource and order from high to low increase background service program successively according to each background service program takies electricity, until the current electric quantity of application type reaches to its electricity desired value; If judge, application has a background service program, then what increase each resource that this background service program takies successively takies electricity, until the current electric quantity of application type reaches to its electricity desired value.
The resource that described background service program takies comprises: hard disk resources and memory source;
Optionally, take according to each background service program the electricity that takies that resource and order from high to low increase background service program successively to comprise: take resource according to background service program and order from high to low sorts to background service program, what first increase previous background service program takies electricity, when previous background service program take electricity cannot continue to increase time, then increase a rear background service program take electricity.
Optionally, the electricity that takies increasing background service program comprises: the electricity increasing each resource occupation that this background service program takies; Increase each resource take electricity time, what first increase a resource with the 3rd setting step-length takies electricity, often increase the current electric quantity once judging application type and whether reach its target electricity, if the current electric quantity of application type does not reach its target electricity, that then continues to increase this resource with the 3rd setting step-length takies electricity, until the electricity that takies of this resource reaches it and presets most high threshold; If the electricity that takies of this resource reaches after it presets most high threshold, the current electric quantity of application type does not still reach its target electricity, that continues to increase next resource with the 3rd setting step-length takies electricity, until the current electric quantity of application type reaches its target electricity.Optionally, what first can increase memory source takies electricity, then increase hard disk resources take electricity;
Wherein, what the frequency by increasing/reducing background service program region described in read/write memory can increase/reduce memory source takies electricity; What can increase/reduce hard disk resources by the frequency increasing/reduce background service program region described in reading writing harddisk takies electricity.
Alternatively, also electricity feedback module and visual screen can be comprised for said system, described electricity feedback module, for the target electricity of the current available power of current total electricity of end cell, end cell, the current electric quantity of application type and application type is presented at visual screen, is checked for user.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize, and correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art can make various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.

Claims (16)

1., for terminal applies distributes a method for battery electric quantity, it is characterized in that, described method comprises:
The application that terminal is installed is classified by function, determines application type;
Arrange the electricity desired value of each application type, the electricity desired value of described application type is for maintaining the minimum amount of power in this application type needed for a normal operation of application;
The current electric quantity of the application type of each startup is detected in battery operated process, if there is the application type that current electric quantity is different from electricity desired value, then the current electric quantity of this application type adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value;
The application type of described startup comprises: be included in the application type of the application that foreground is normally run, be included in the application type of the application that backstage is normally run and be included in the application type of application of backstage abnormal running.
2. the method for claim 1, is characterized in that, the current electric quantity of application type is different from its electricity desired value, comprising:
The difference degree of the current electric quantity of application type and its electricity desired value is greater than default percentage.
3. method as claimed in claim 2, it is characterized in that, the current electric quantity of this application type described adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Current electric quantity is greater than to the application type of electricity desired value, retains an application under this application type, reduce the current electric quantity of application type to its electricity desired value simultaneously;
Application type current electric quantity being less than to electricity desired value sorts from high to low by its priority, judge whether the current available power of end cell can support that the application type of limit priority runs with its electricity desired value, if passable, to this application type executable operations: retain an application under this application type, and current available power is dispensed to the application type of described limit priority, make its current electric quantity increase to its electricity desired value; Continue to judge whether the current available power of end cell can support that the application of next priority runs with its electricity desired value, if passable, continue to perform aforesaid operations to this application type, till the current available power of end cell is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of described end cell is that the total electricity deduction of end cell applies the electricity taken.
4. method as claimed in claim 2, it is characterized in that, the current electric quantity of this application type described adjusts, and makes the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Application type belonging to being applied by user's current operation is set to the application type of limit priority, and other application types are by its original priority queueing;
The electricity of application type the highest for priority is adjusted to target electricity, if the current available power of battery is not enough to support that the application type that this priority is the highest runs with target electricity, then reduce the electricity that current electric quantity reaches the application type of target electricity, until the current available power of battery is enough to support that the application type that this priority is the highest runs with target electricity;
After the electricity of application type the highest for priority is adjusted to target electricity, following operation is performed to the application type of next priority: if the current electric quantity of the application type of next priority is greater than its electricity desired value, retain an application under this application type, and the current electric quantity reducing this application type is to its electricity desired value; If the current electric quantity of the application type of next priority is less than its electricity desired value, then judge whether the current available power of end cell can support that the application type of this priority runs with its electricity desired value, if passable, retain an application under this application type, and make the current electric quantity of this application type increase to its electricity desired value; If the current electric quantity of the application type of next priority equals its electricity desired value, then the current electric quantity value maintaining this application type is constant;
Continue to perform identical operation to the application type of next priority, till the current available power of the current electric quantity or end cell that have adjusted all application types is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of battery is that the total electricity deduction of end cell applies the electricity taken.
5. the method as described in claim 3 or 4, is characterized in that, the current electric quantity of described reduction application type, to its electricity desired value, comprising:
If need the application type reducing current electric quantity to comprise the application of current normal operation, retain an application normally run;
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, for the application type comprising the current application normally run on foreground, with the electricity that the first setting step-length reduction screen intensity takies, often reduce a screen intensity and judge whether the current electric quantity of application type reaches its target electricity, if the current electric quantity of application type does not reach its target electricity, then continue the electricity taken with the first setting step-length reduction screen intensity, until screen intensity reaches the minimum screen intensity that application operational system allows;
If during the minimum screen intensity that the system that current screen brightness reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, that reduces with the second setting step-length each resource that this application normally run on foreground takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
6. method as claimed in claim 5, it is characterized in that, described method also comprises:
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, to the application type comprising the current application normally run on backstage, that reduces with the second setting step-length each resource that this application normally run on backstage takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
7. method as claimed in claim 6, it is characterized in that, described method also comprises:
If need the application type reducing current electric quantity not comprise the normal application run, retain the application of one of them backstage abnormal running, the current electric quantity of the application of this abnormal running is increased to the target charge value of this application type.
8. the method as described in claim 3 or 4, is characterized in that, the current electric quantity of described increase application type, to its electricity desired value, comprising:
When the current electric quantity of application type is less than its electricity desired value, the number of the background service program of each application at backstage abnormal running is judged, if judge, abnormal running application has multiple background service program, then according to each background service program take that resource and order from high to low increase background service program successively take electricity, until the current electric quantity of application type reaches to its electricity desired value;
If judge, application has a background service program, then what increase each resource that this background service program takies successively takies electricity, until the current electric quantity of application type reaches to its electricity desired value.
9., for terminal applies distributes a system for battery electric quantity, it is characterized in that, described system comprises:
Application type determination module, for classifying by function to the application that terminal is installed, determines application type;
Application type target electricity determination module, for arranging the electricity desired value of each application type, the electricity desired value of described application type is for maintaining the minimum amount of power in this application type needed for a normal operation of application;
Application type electricity adjusting module, for detecting the current electric quantity of the application type of each startup in battery operated process, if there is the application type that current electric quantity is different from electricity desired value, then the current electric quantity of this application type is adjusted, make the current electric quantity of the application type through adjustment equal its electricity desired value;
The application type of described startup comprises: be included in the application type of the application that foreground is normally run, be included in the application type of the application that backstage is normally run and be included in the application type of application of backstage abnormal running.
10. system as claimed in claim 9, it is characterized in that, the current electric quantity of described application type is different from its electricity desired value, comprising:
The difference degree of the current electric quantity of application type and its electricity desired value is greater than default percentage.
11. systems as claimed in claim 10, is characterized in that, described application type electricity adjusting module, for adjusting the current electric quantity of application type, making the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Current electric quantity is greater than to the application type of electricity desired value, retains an application under this application type, reduce the current electric quantity of application type to its electricity desired value simultaneously;
Application type current electric quantity being less than to electricity desired value sorts from high to low by its priority, judge whether the current available power of end cell can support that the application type of limit priority runs with its electricity desired value, if passable, to this application type executable operations: retain an application under this application type, and current available power is dispensed to the application type of described limit priority, make its current electric quantity increase to its electricity desired value; Continue to judge whether the current available power of end cell can support that the application of next priority runs with its electricity desired value, if passable, continue to perform aforesaid operations to this application type, till the current available power of end cell is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of described end cell is that the total electricity deduction of end cell applies the electricity taken.
12. systems as claimed in claim 10, is characterized in that, described application type electricity adjusting module, for adjusting the current electric quantity of this application type, making the current electric quantity of the application type through adjustment equal its electricity desired value, comprising:
Application type belonging to being applied by user's current operation is set to the application type of limit priority, and other application types are by its original priority queueing;
The electricity of application type the highest for priority is adjusted to target electricity, if the current available power of battery is not enough to support that the application type that this priority is the highest runs with target electricity, then reduce the electricity that current electric quantity reaches the application type of target electricity, until the current available power of battery is enough to support that the application type that this priority is the highest runs with target electricity;
After the electricity of application type the highest for priority is adjusted to target electricity, following operation is performed to the application type of next priority: if the current electric quantity of the application type of next priority is greater than its electricity desired value, retain an application under this application type, and the current electric quantity reducing this application type is to its electricity desired value; If the current electric quantity of the application type of next priority is less than its electricity desired value, then judge whether the current available power of end cell can support that the application type of this priority runs with its electricity desired value, if passable, retain an application under this application type, and make the current electric quantity of this application type increase to its electricity desired value; If the current electric quantity of the application type of next priority equals its electricity desired value, then the current electric quantity value maintaining this application type is constant;
Continue to perform identical operation to the application type of next priority, till the current available power of the current electric quantity or end cell that have adjusted all application types is not enough to support that the application type of next priority runs with its electricity desired value again;
The current available power of battery is that the total electricity deduction of end cell applies the electricity taken.
13. systems as described in claim 11 or 12, is characterized in that, described application type electricity adjusting module, for reducing the current electric quantity of application type to its electricity desired value, comprising:
If need the application type reducing current electric quantity to comprise the application of current normal operation, retain an application normally run;
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, for the application type comprising the current application normally run on foreground, with the electricity that the first setting step-length reduction screen intensity takies, often reduce a screen intensity and judge whether the current electric quantity of application type reaches its target electricity, if the current electric quantity of application type does not reach its target electricity, then continue the electricity taken with the first setting step-length reduction screen intensity, until screen intensity reaches the minimum screen intensity that application operational system allows;
If during the minimum screen intensity that the system that current screen brightness reaches application operation allows, the current electric quantity of application type does not still reach its target electricity, that reduces with the second setting step-length each resource that this application normally run on foreground takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
14. systems as claimed in claim 13, is characterized in that, described application type electricity adjusting module, for reducing the current electric quantity of application type to its electricity desired value, also comprise:
After the application that reservation one normally runs, if the current electric quantity of application type does not reach its target electricity, to the application type comprising the current application normally run on backstage, that reduces with the second setting step-length each resource that this application normally run on backstage takies successively takies electricity, until the current electric quantity of this application type reaches its target electricity.
15. systems as claimed in claim 14, is characterized in that, described application type electricity adjusting module, for reducing the current electric quantity of application type to its electricity desired value, also comprise:
If need the application type reducing current electric quantity not comprise the normal application run, retain the application of one of them backstage abnormal running, the current electric quantity of the application of this abnormal running is increased to the target charge value of this application type.
16. systems as described in claim 11 or 12, is characterized in that, described application type electricity adjusting module, for increasing the current electric quantity of application type to its electricity desired value, comprising:
When the current electric quantity of application type is less than its electricity desired value, the number of the background service program of each application at backstage abnormal running is judged, if judge, abnormal running application has multiple background service program, then according to each background service program take that resource and order from high to low increase background service program successively take electricity, until the current electric quantity of application type reaches to its electricity desired value;
If judge, application has a background service program, then what increase each resource that this background service program takies successively takies electricity, until the current electric quantity of application type reaches to its electricity desired value.
CN201510425499.5A 2015-07-17 2015-07-17 A kind of method and system that battery capacity is distributed for terminal applies Active CN105100505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510425499.5A CN105100505B (en) 2015-07-17 2015-07-17 A kind of method and system that battery capacity is distributed for terminal applies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510425499.5A CN105100505B (en) 2015-07-17 2015-07-17 A kind of method and system that battery capacity is distributed for terminal applies

Publications (2)

Publication Number Publication Date
CN105100505A true CN105100505A (en) 2015-11-25
CN105100505B CN105100505B (en) 2018-06-29

Family

ID=54579999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510425499.5A Active CN105100505B (en) 2015-07-17 2015-07-17 A kind of method and system that battery capacity is distributed for terminal applies

Country Status (1)

Country Link
CN (1) CN105100505B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483751A (en) * 2017-07-05 2017-12-15 广东欧珀移动通信有限公司 Terminal device and its power energy allocation method, computer-readable recording medium
WO2018010409A1 (en) * 2016-07-14 2018-01-18 中兴通讯股份有限公司 Power consumption warning method and apparatus
CN111026674A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Data storage method and electronic equipment
CN114924638A (en) * 2022-05-12 2022-08-19 深圳市启鹏天辰科技有限公司 Cruising method and system applied to 5G tablet computer and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134517A1 (en) * 2010-06-07 2012-05-31 Yasunori Sato Portable information processing terminal
CN103905652A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Power supply management method and electronic device
CN104199696A (en) * 2014-08-28 2014-12-10 刘勇 Electric consumption control method and system and intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134517A1 (en) * 2010-06-07 2012-05-31 Yasunori Sato Portable information processing terminal
CN103905652A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Power supply management method and electronic device
CN104199696A (en) * 2014-08-28 2014-12-10 刘勇 Electric consumption control method and system and intelligent terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018010409A1 (en) * 2016-07-14 2018-01-18 中兴通讯股份有限公司 Power consumption warning method and apparatus
CN107483751A (en) * 2017-07-05 2017-12-15 广东欧珀移动通信有限公司 Terminal device and its power energy allocation method, computer-readable recording medium
CN107483751B (en) * 2017-07-05 2020-10-02 Oppo广东移动通信有限公司 Terminal device, electric quantity distribution method thereof and computer-readable storage medium
CN111026674A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Data storage method and electronic equipment
CN114924638A (en) * 2022-05-12 2022-08-19 深圳市启鹏天辰科技有限公司 Cruising method and system applied to 5G tablet computer and terminal equipment
CN114924638B (en) * 2022-05-12 2024-04-12 深圳市启鹏天辰科技有限公司 Cruising method and system applied to 5G tablet personal computer and terminal equipment

Also Published As

Publication number Publication date
CN105100505B (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN100568157C (en) Computer system and control method thereof
CN109151961B (en) Operation method of mobile terminal, terminal and computer readable storage medium
US10503238B2 (en) Thread importance based processor core parking and frequency selection
US9798371B2 (en) Electronic device and content display method thereof
CN104166453A (en) Method and device for reducing power consumption of mobile terminal
CN103369508A (en) Data loading method and terminal device
CN102081502A (en) Method for managing icons on standby interface of mobile terminal and mobile terminal
CN103430151A (en) Method and apparatus for configuring resource
CN105100505A (en) Method and system for assigning battery level to terminal applications
CN104731301A (en) Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN105072292A (en) Application control method and terminal
CN103593038B (en) A kind of method and apparatus controlling to apply
KR20130021625A (en) Operating method and portable device supporting the same
CN105574141B (en) Method and device for carrying out data migration on database
US20180167878A1 (en) Core frequency/count decision-based thermal mitigation optimization for a multi-core integrated circuit
CN110505679B (en) Power consumption control method and device of communication terminal and storage medium
WO2020052471A1 (en) Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
WO2020206688A1 (en) Video playback method and apparatus, storage medium and electronic device
US20120001883A1 (en) Method and apparatus for calculating a power consumption segment and displaying a power consumption indicator
CN104699224A (en) Power-saving control method
US20210232425A1 (en) Process prioritization for information handling systems
US8281091B2 (en) Automatic selection of storage volumes in a data storage system
CN104699223A (en) Terminal
US8281159B1 (en) Systems and methods for managing power usage based on power-management information from a power grid
CN117130454A (en) Power consumption adjustment method and electronic equipment

Legal Events

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