CN105100505B - A kind of method and system that battery capacity is distributed for terminal applies - Google Patents

A kind of method and system that battery capacity is distributed for terminal applies Download PDF

Info

Publication number
CN105100505B
CN105100505B CN201510425499.5A CN201510425499A CN105100505B CN 105100505 B CN105100505 B CN 105100505B CN 201510425499 A CN201510425499 A CN 201510425499A CN 105100505 B CN105100505 B CN 105100505B
Authority
CN
China
Prior art keywords
electricity
application type
application
desired value
electric quantity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510425499.5A
Other languages
Chinese (zh)
Other versions
CN105100505A (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 present invention provides a kind of method and system of the application distribution battery capacity in terminal, the method includes:Classify to the application installed in terminal by function, determine application type;The electricity desired value of each application type is set, and the electricity desired value of the application type is the minimum amount of power maintained in the application type needed for an application normal operation;The current electric quantity of the application type each started is detected during battery works, if there are the current electric quantity application types different from electricity desired value, then the current electric quantity of the application type is adjusted, and the current electric quantity for the application type being adjusted is made to be equal to its electricity desired value;The application type of the startup includes:Application type included in the application of foreground normal operation, included in the application type of application of backstage normal operation and the application type of application included in backstage abnormal running.Above-mentioned technical proposal saves the battery consumption of application.

Description

A kind of method and system that battery capacity is distributed for terminal applies
Technical field
The present invention relates to battery capacity reallocation fields more particularly to a kind of application in terminal to distribute battery capacity Method and system.
Background technology
With the development of intelligent terminal and applied to the abundant of type is applied on intelligent terminal, people intelligently make terminal It is being gradually increased with degree, correspondingly, people also more wish to reduce the electricity of intelligent terminal during intelligent terminal is used Pond charging times extend the cruising ability of rechargeable battery.
For this purpose, how to save the battery consumption of application, the electricity utilization rate of battery this technical problem is improved.By terminal Manufacturer, battery manufacturers and scientific research institutions give more sustained attention.At present, the end cell management software released in the market can only It monitors which application consumes high electricity, can not actively save the battery consumption of application, improve battery capacity utilization rate.
Invention content
The present invention provides a kind of method and system of the application distribution battery capacity in terminal, to solve how to save The technical issues of battery consumption of application.
In order to solve the above technical problems, an embodiment of the present invention provides a kind of sides that battery capacity is distributed for terminal applies Method, the method includes:
Classify to the application installed in terminal by function, determine application type;
The electricity desired value of each application type is set, and the electricity desired value of the application type is maintains the application type In one application normal operation needed for minimum amount of power;
The current electric quantity of the application type each started is detected during battery works, if there are current electric quantities and electricity The different application type of desired value is measured, then the current electric quantity of the application type is adjusted, and makes the application type being adjusted Current electric quantity is equal to its electricity desired value;
The application type of the startup includes:Application type included in the application of foreground normal operation, included in backstage The application type of the application of normal operation and the application type of application included in backstage abnormal running.
Optionally, the current electric quantity of application type is different from its electricity desired value, including:
The current electric quantity of application type and the difference degree of its electricity desired value are more than preset percentage.
Optionally, the current electric quantity of the application type is adjusted, and makes the current electricity for the application type being adjusted Amount is equal to its electricity desired value, including:
It is more than the application type of electricity desired value to current electric quantity, retains an application under the application type, subtract simultaneously The current electric quantity of few application type is to its electricity desired value;
The application type for being less than electricity desired value to current electric quantity sorts from high to low by its priority, judges end cell Currently available electricity whether can support the application type of highest priority with its electricity desired value run, if it can, right The application type performs operation:Retain one under application type application, and by currently available power energy allocation to the highest The application type of priority makes its current electric quantity increase to its electricity desired value;Continue to judge the currently available electricity of end cell Whether amount can support the application of next priority to be run with its electricity desired value, if it can, continuing to hold the application type Row aforesaid operations, until the currently available not enough power supply of end cell to support the application type of next priority with its electricity again Until desired value is run;
The currently available electricity of the end cell is deducted for end cell total electricity using the electricity occupied.
Optionally, the current electric quantity of the application type is adjusted, and makes the current electricity for the application type being adjusted Amount is equal to its electricity desired value, including:
User's current operation is set as to the application type of highest priority, other application type using affiliated application type By its original priority queueing;
The electricity of the application type of highest priority is adjusted to target electricity, if the currently available not enough power supply of battery It is run with supporting the application type of the highest priority with target electricity, then reduces the application class that current electric quantity reaches target electricity The electricity of type, until the currently available electricity of battery is enough the application type of the highest priority is supported to run with target electricity;
The electricity of the application type of highest priority is adjusted to target electricity, the application type of next priority is held The following operation of row:If the current electric quantity of the application type of next priority is more than its electricity desired value, retain the application type Under an application, and reduce the current electric quantity of the application type to its electricity desired value;If the application class of next priority The current electric quantity of type is less than its electricity desired value, then whether judge the currently available electricity of end cell can support the priority Application type run with its electricity desired value, if it can, retaining one under application type application, and this is made to apply class The current electric quantity of type increases to its electricity desired value;If the current electric quantity of the application type of next priority is equal to its electricity mesh Scale value, the then voltage value for maintaining the application type are constant;
Continue to perform identical operation to the application type of next priority, until having adjusted the current of all application types The currently available not enough power supply of electricity or end cell is transported with supporting the application type of next priority again with its electricity desired value Behavior stops;
The currently available electricity of battery is deducted for end cell total electricity using the electricity occupied.
Optionally, the current electric quantity for reducing application type is to its electricity desired value, including:
Application type if necessary to reduce current electric quantity includes the application of current normal operation, retains a normal operation Application;
It is right if the current electric quantity of application type does not reach its target electricity after the application for retaining a normal operation In comprising currently in the application type of the application of foreground normal operation, the electricity occupied with the first setting step-length reduction screen intensity Amount often reduces a screen intensity and judges whether the current electric quantity of application type reaches its target electricity, if application type Current electric quantity does not reach its target electricity, then continues the electricity for being reduced screen intensity with the first setting step-length and being occupied, until screen Curtain brightness reaches the permitted minimum screen intensity of application operation system;
If current screen brightness reaches the system permitted minimum screen intensity of application operation, application type is worked as Preceding electricity reduces this still without its target electricity is reached, with the second setting step-length and applies what is occupied in foreground normal operation successively The occupancy electricity of each resource, until the current electric quantity of the application type reaches its target electricity.
Optionally, the method further includes:
It is right if the current electric quantity of application type does not reach its target electricity after the application for retaining a normal operation Comprising currently in the application type of the application of backstage normal operation, set step-length with second reduces this in backstage normal operation successively The occupancy electricity of each resource that occupies of application, until the current electric quantity of the application type reaches its target electricity.
Optionally, the method further includes:
Application type if necessary to reduce current electric quantity does not include the application of normal operation, and it is non-to retain one of backstage The current electric quantity of the application of the abnormal running is increased to the target charge value of the application type by the application of normal operation.
Optionally, the current electric quantity of the increase application type is to its electricity desired value, including:
When the current electric quantity of application type is less than its electricity desired value, to each application in backstage abnormal running The number of background service program is judged that abnormal running application has multiple background service programs if judging, according to every The occupancy resource of a background service program and sequence from high to low are sequentially increased the occupancy electricity of background service program, until should Reached with the current electric quantity of type to its electricity desired value;
If judge to apply each resource for there are one background service program, being sequentially increased background service program occupancy Occupancy electricity, until the current electric quantity of application type reaches to its electricity desired value.
In order to solve the above technical problems, it is for what terminal applies distributed battery capacity an embodiment of the present invention provides a kind of System, the system comprises:
Application type determining module for classifying to the application installed in terminal by function, determines application type;
Application type target electricity determining module, it is described to apply class for setting the electricity desired value of each application type The electricity desired value of type is the minimum amount of power maintained in the application type needed for an application normal operation;
Application type electricity adjusts module, for working in battery during detect working as the application type that each starts If preceding electricity there are the current electric quantity application type different from electricity desired value, carries out the current electric quantity of the application type Adjustment makes the current electric quantity for the application type being adjusted be equal to its electricity desired value;
The application type of the startup includes:Application type included in the application of foreground normal operation, included in backstage The application type of the application of normal operation and the application type of application included in backstage abnormal running.
Optionally, the current electric quantity of the application type is different from its electricity desired value, including:
The current electric quantity of application type and the difference degree of its electricity desired value are more than preset percentage.
Optionally, application type electricity adjustment module, is adjusted for the current electric quantity to application type, make through The current electric quantity for crossing the application type of adjustment is equal to its electricity desired value, including:
It is more than the application type of electricity desired value to current electric quantity, retains an application under the application type, subtract simultaneously The current electric quantity of few application type is to its electricity desired value;
The application type for being less than electricity desired value to current electric quantity sorts from high to low by its priority, judges end cell Currently available electricity whether can support the application type of highest priority with its electricity desired value run, if it can, right The application type performs operation:Retain one under application type application, and by currently available power energy allocation to the highest The application type of priority makes its current electric quantity increase to its electricity desired value;Continue to judge the currently available electricity of end cell Whether amount can support the application of next priority to be run with its electricity desired value, if it can, continuing to hold the application type Row aforesaid operations, until the currently available not enough power supply of end cell to support the application type of next priority with its electricity again Until desired value is run;
The currently available electricity of the end cell is deducted for end cell total electricity using the electricity occupied.
Optionally, the application type electricity adjustment module, is adjusted for the current electric quantity to the application type, makes The current electric quantity for the application type being adjusted is equal to its electricity desired value, including:
User's current operation is set as to the application type of highest priority, other application type using affiliated application type By its original priority queueing;
The electricity of the application type of highest priority is adjusted to target electricity, if the currently available not enough power supply of battery It is run with supporting the application type of the highest priority with target electricity, then reduces the application class that current electric quantity reaches target electricity The electricity of type, until the currently available electricity of battery is enough the application type of the highest priority is supported to run with target electricity;
The electricity of the application type of highest priority is adjusted to target electricity, the application type of next priority is held The following operation of row:If the current electric quantity of the application type of next priority is more than its electricity desired value, retain the application type Under an application, and reduce the current electric quantity of the application type to its electricity desired value;If the application class of next priority The current electric quantity of type is less than its electricity desired value, then whether judge the currently available electricity of end cell can support the priority Application type run with its electricity desired value, if it can, retaining one under application type application, and this is made to apply class The current electric quantity of type increases to its electricity desired value;If the current electric quantity of the application type of next priority is equal to its electricity mesh Scale value, the then voltage value for maintaining the application type are constant;
Continue to perform identical operation to the application type of next priority, until having adjusted the current of all application types The currently available not enough power supply of electricity or end cell is transported with supporting the application type of next priority again with its electricity desired value Behavior stops;
The currently available electricity of battery is deducted for end cell total electricity using the electricity occupied.
Optionally, application type electricity adjustment module, for reducing the current electric quantity of application type to its electricity mesh Scale value, including:
Application type if necessary to reduce current electric quantity includes the application of current normal operation, retains a normal operation Application;
It is right if the current electric quantity of application type does not reach its target electricity after the application for retaining a normal operation In comprising currently in the application type of the application of foreground normal operation, the electricity occupied with the first setting step-length reduction screen intensity Amount often reduces a screen intensity and judges whether the current electric quantity of application type reaches its target electricity, if application type Current electric quantity does not reach its target electricity, then continues the electricity for being reduced screen intensity with the first setting step-length and being occupied, until screen Curtain brightness reaches the permitted minimum screen intensity of application operation system;
If current screen brightness reaches the system permitted minimum screen intensity of application operation, application type is worked as Preceding electricity reduces this still without its target electricity is reached, with the second setting step-length and applies what is occupied in foreground normal operation successively The occupancy electricity of each resource, until the current electric quantity of the application type reaches its target electricity.
Optionally, application type electricity adjustment module, for reducing the current electric quantity of application type to its electricity mesh Scale value further includes:
It is right if the current electric quantity of application type does not reach its target electricity after the application for retaining a normal operation Comprising currently in the application type of the application of backstage normal operation, set step-length with second reduces this in backstage normal operation successively The occupancy electricity of each resource that occupies of application, until the current electric quantity of the application type reaches its target electricity.
Optionally, application type electricity adjustment module, for reducing the current electric quantity of application type to its electricity mesh Scale value further includes:
Application type if necessary to reduce current electric quantity does not include the application of normal operation, and it is non-to retain one of backstage The current electric quantity of the application of the abnormal running is increased to the target charge value of the application type by the application of normal operation.
Optionally, application type electricity adjustment module, for increasing the current electric quantity of application type to its electricity mesh Scale value, including:
When the current electric quantity of application type is less than its electricity desired value, to each application in backstage abnormal running The number of background service program is judged that abnormal running application has multiple background service programs if judging, according to every The occupancy resource of a background service program and sequence from high to low are sequentially increased the occupancy electricity of background service program, until should Reached with the current electric quantity of type to its electricity desired value;
If judge to apply each resource for there are one background service program, being sequentially increased background service program occupancy Occupancy electricity, until the current electric quantity of application type reaches to its electricity desired value.
In above-mentioned technical proposal, the electricity desired value of application type can be arranged as required to and the minimum electricity to meet needs Amount, the current electric quantity of the application type of normal operation is adjusted according to its electricity desired value so that is be adjusted should answer Minimum amount of power is consumed under conditions of normal operation is applied needed for guarantee with type, saves the electric quantity consumption of battery.
Description of the drawings
Fig. 1 is the method flow diagram for the application distribution battery capacity that the embodiment of the present invention is in terminal;
Fig. 2 is the system composition figure for the application distribution battery capacity that the embodiment of the present invention is in terminal.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature mutually can arbitrarily combine.
Fig. 1 is the method flow diagram for the application distribution battery capacity that the embodiment of the present invention is in terminal.
S101 classifies to the application installed in terminal by function, determines application type;
The application type can include:System application type, downloads application type, video playing at chat application type Device application type etc.;Include one or more applications with identical function under the application type;
S102 sets the electricity desired value of each application type;
The electricity desired value of the application type is the minimum maintained in the application type needed for an application normal operation Electricity;Such as, application type is video player type, includes multiple video player applications, such as Baidu under the player types Player, sudden peal of thunder player, Tencent's player, then the electricity desired value of the player types, which should be, is able to maintain that Baidu plays Minimum amount of power needed for any of device, sudden peal of thunder player or Tencent's player player normal operation;Due to same application Type is the set of the application with identical function, and each minimum amount of power using needed for normal operation is almost in the application type It is identical;
The electricity desired value can be that a specific numerical value or electricity occupy the hundred of the chargeable total electricity of battery Divide ratio;
S103 detects the current electric quantity of the application type each started during battery works, if there are current electric quantities The application type different from electricity desired value is then adjusted the current electric quantity of the application type, makes the application being adjusted The current electric quantity of type is equal to its electricity desired value;
Application in commonly used type includes:The application of startup and the application of non-start up;Wherein, the application packet of startup It includes:Currently in the application of the foreground normal operation application of cpu resource (consumption), it is currently (similary in the application of backstage normal operation To consume the application of cpu resource) and in the application of backstage abnormal running (do not consume cpu resource, only background service program is transported Capable application);
If user starts the APP of a broadcasting music on mobile terminals, this APP for playing music is currently on foreground The application of normal operation, the user start web page browsing APP in the case of the APP for not closing the broadcasting music, broadcast at this time The APP to put the music on is transferred to backstage normal operation, and web page browsing APP becomes currently in the application of foreground normal operation;In user While browsing webpage when listening to music, show there is the notice of more new video on video playing APP on mobile phone screen, when this is regarded Frequency plays APP and does not play video, and when the background program of video playing APP detects update, video playing APP is The application of backstage abnormal running, when video playing APP carries out Push Service, video playing APP occupies cpu resource, Video playing APP is the normal use in running background at this time, and after video playing APP completes Push Service, which broadcasts It puts APP and discharges CPU again and become application in backstage abnormal running again;
In above-mentioned technical proposal, the electricity desired value of application type can be arranged as required to and the minimum electricity to meet needs Amount, the current electric quantity of application type is adjusted according to its electricity desired value so that the application type being adjusted is being protected Minimum amount of power is consumed under conditions of the normal operation applied needed for card, saves the electric quantity consumption of battery.
Optionally, in step S103, the current electric quantity of application type is different from its electricity desired value, including:
The current electric quantity of application type and the difference degree of its electricity desired value are more than preset percentage P, such as P=5%.
Optionally, in step S103, the current electric quantity to application type is adjusted, and makes the application class being adjusted The current electric quantity of type is equal to its electricity desired value, including:
Mode one:
First, the application type of electricity desired value is more than to current electric quantity, retains an application under the application type, together When reduce the current electric quantity of application type to its electricity desired value;
Secondly, the application type for electricity desired value being less than to current electric quantity sorts from high to low by its priority, judges end Whether the currently available electricity of end-cell can support the application type of highest priority to be run with its electricity desired value, if can To perform following operation to the application type:Retain an application under the application type, and by currently available power energy allocation extremely The application type of the highest priority makes its current electric quantity increase to its electricity desired value;Continue to judge working as end cell Whether preceding available power can support the application of next priority to be run with its electricity desired value, if it can, continuing to answer this With type perform aforesaid operations, until end cell currently available not enough power supply with support the application type of next priority with Until its electricity desired value is run.
The currently available electricity of the end cell is deducted for end cell total electricity using the electricity occupied.
Such as, the application being currently up includes:
One music player APP of normal operation on foreground, 2 instant messaging APP of normal operation on backstage:QQ and Wechat and multiple APP in backstage abnormal running, such as weather forecast APP, Sohu video APP and Baidu video APP;
Before electricity adjustment, the current occupancy electricity of music player APP is the 15% of total electricity, should equal to music player With the electricity desired value of type;QQ and wechat currently occupy electricity is respectively total electricity 10%, instant messaging application type Current electric quantity is the 20% of total electricity, more than the electricity desired value of instant messaging application type:The 10% of total electricity;Weather forecast APP currently occupies 2% that electricity is total electricity, less than the electricity desired value of weather forecast application type:The 5% of total electricity;It searches The current occupancy electricity of fox video APP and Baidu video APP is respectively the 2% of total electricity, less than the electricity mesh of Video Applications type Scale value:The 15% of total electricity;It is total electricity * (15%+20%+2%+2*2%=using the electricity occupied before electricity adjustment 41%), the currently available electricity of end cell is the 59% of total electricity;
When carrying out electricity adjustment by mode one, the current electricity that occupies of music player APP remains unchanged, and is still total electricity 15%;The current electric quantity of instant messaging application type is down to the 10% of total electricity from the 20% of total electricity;At this time using The electricity of occupancy is total electricity * (15%+10%+2%+2*2%=31%), and the currently available electricity of end cell is total electricity 69%;
Assuming that the priority of Video Applications type is more than the priority of weather forecast application type;Through judging, end cell Currently available electricity (the 69% of total electricity) can support Video Applications type with its electricity desired value run, then retain wherein One video APP (Sohu video APP or Baidu video APP) when retaining video APP, can receive control from the user and refer to It enables, which video APP is specifically retained, and the current electricity that occupies of the video APP retained is promoted to video by user's selection The electricity desired value of application type:The 15% of total electricity;The electricity that application has occupied at this time is total electricity * (15%+10%+2% + 15%=42%), the currently available electricity of end cell is the 58% of total electricity;
Continue to judge that the currently available electricity (the 58% of total electricity) of end cell can support weather forecast application type It is run with its electricity desired value, weather forecast APP is currently occupied into the electricity desired value that electricity is promoted to weather pattern:Total electricity 5%;The electricity that has occupied of application is total electricity * (15%+10%+5%+15%=45%) at this time, end cell it is current Available power is the 55% of total electricity.
Mode one is related to that its target electricity will be promoted to less than the current electric quantity of the application type of electricity desired value, this is It is since operating status transformation may be undergone in the application of backstage abnormal running at this time under the application type, i.e., non-just from backstage Normal operating status is changed into backstage normal operating condition or foreground normal operating condition, in order to ensure that the application can be normally carried out State changes, and assigns the electricity that normal operation is capable of in the application in advance.
By above-mentioned record as it can be seen that mode one increase can normal operation application number.
Mode two:
By the application of user's current operation (i.e. in the application of foreground normal operation) belonging to application type to be set as highest preferential The application type of grade, other application type press its original priority queueing;
The electricity of the application type of highest priority is adjusted to target electricity, if the currently available not enough power supply of battery It is run with supporting the application type of the highest priority with target electricity, then reduces the application class that current electric quantity reaches target electricity The electricity of type, until the currently available electricity of battery is enough the application type of the highest priority is supported to run with target electricity;
The electricity of the application type of highest priority is adjusted to target electricity, the application type of next priority is held The following operation of row:If the current electric quantity of the application type of next priority is more than its electricity desired value, retain the application type Under an application, and reduce the current electric quantity of the application type to its electricity desired value;If the application class of next priority The current electric quantity of type is less than its electricity desired value, then whether judge the currently available electricity of end cell can support the priority Application type run with its electricity desired value, if it can, retaining one under application type application, and this is made to apply class The current electric quantity of type increases to its electricity desired value;If the current electric quantity of the application type of next priority is equal to its electricity mesh Scale value, the then voltage value for maintaining the application type are constant;Continue to perform identical behaviour to the application type of next priority Make, until having adjusted the current electric quantity of all application types or the currently available not enough power supply of end cell is next excellent to support again The application type of first grade is until its electricity desired value is run.
In mode two, the currently available electricity of battery is deducted for end cell total electricity using the electricity occupied.
It also assumes that, the application being currently up includes:
One music player APP of normal operation on foreground, 2 instant messaging APP of normal operation on backstage:QQ and Wechat and multiple APP in backstage abnormal running, such as weather forecast APP, Sohu video APP and Baidu video APP;Electricity Before amount adjustment, the current occupancy electricity of music player APP is the 15% of total electricity, equal to the electricity of music player application type Measure desired value;QQ and wechat currently occupy electricity is respectively total electricity 10%, and the current electric quantity of instant messaging application type is The 20% of total electricity, more than the electricity desired value of instant messaging application type:The 10% of total electricity;Weather forecast APP is currently accounted for Electricity consumption is the 2% of total electricity, less than the electricity desired value of weather forecast application type:The 5% of total electricity;Sohu video APP Current occupancy electricity with Baidu video APP is respectively the 2% of total electricity, less than the electricity desired value of Video Applications type:Total electricity The 15% of amount;
According to mode two, on foreground, the music APP of normal operation has highest priority, except music APP Outside, the priority of remaining application type is followed successively by instant messaging application type from high to low>Video playing application type>Weather is pre- Report application type;
When carrying out electricity adjustment, the current electricity that occupies of music player APP remains unchanged, still 15% for total electricity; The electricity that current application has occupied be total electricity * (15%+20%+2%+2*2%=41%), the currently available electricity of end cell Measure 59% for total electricity;
To having the instant messaging application type of next priority, since its current electric quantity is more than its electricity desired value, The current electric quantity of instant messaging application type is down to the 10% of total electricity from the 20% of total electricity;The electricity that current application has occupied It measures as total electricity * (15%+10%+2%+2*2%=31%), the currently available electricity of end cell is the 69% of total electricity;
To having the video playing application type of next priority, since its current electric quantity is less than its electricity desired value, Through judging, the currently available electricity (the 69% of total electricity) of end cell can support Video Applications type with its electricity desired value Operation then retains one of video APP (Sohu video APP or Baidu video APP), and working as the video APP retained The preceding electricity desired value for occupying electricity and being promoted to Video Applications type:The 15% of total electricity;It is using the electricity occupied at this time Total electricity * (15%+10%+2%+15%=42%), the currently available electricity of end cell are the 58% of total electricity;
For next priority weather forecast application type, since its current electric quantity is less than its electricity desired value, through judging, The currently available electricity (the 59% of total electricity) of end cell can support weather forecast application type to be transported with its electricity desired value Weather forecast APP is currently occupied the electricity desired value that electricity is promoted to weather pattern by row:The 5% of total electricity;At this time using The electricity of occupancy is total electricity * (15%+10%+5%+15%=45%), and the currently available electricity of end cell is total electricity 55%.
User opens a new Computer Simulation APP at this time, then Computer Simulation APP has highest priority, removes Outside the Computer Simulation application type, the priority of remaining application type is followed successively by instant messaging application type from high to low>Depending on Frequency plays application type>Audio plays application type>Weather forecast application type;Assuming that Computer Simulation application type at this time Target electricity is the 60% of total electricity, since the currently available electricity (the 55% of total electricity) of end cell is not enough to support to answer It is run with type with target electricity, in order to ensure the normal work of the application of highest priority, it is desirable to reduce instant messaging application Type, video playing application type, audio play one or more of application type and/weather forecast application type and apply class The electricity of type, until the currently available electricity of battery is enough Computer Simulation application type is supported to run with its target electricity.
By above-mentioned record as it can be seen that mode two ensure that current user operation application can normal operation, while just Often minimum amount of power is occupied under conditions of operation.
Optionally, the current electric quantity of above-mentioned reduction application type is to its electricity desired value, including:
Application type if necessary to reduce current electric quantity includes the application of current normal operation, only retains a normal fortune Capable application;
After the application for retaining a normal operation, if the current electric quantity of application type still without reaching its target electricity, For comprising currently in the application type of the application of foreground normal operation, the electricity occupied with the first setting step-length reduction screen intensity Amount often reduces a screen intensity and judges whether the current electric quantity of application type reaches its target electricity, if application type Current electric quantity does not reach its target electricity, then continues the electricity for being reduced screen intensity with the first setting step-length and being occupied, until screen Curtain brightness reaches the permitted minimum screen intensity of application operation system;If the system that current screen brightness reaches application operation During permitted minimum screen intensity, the current electric quantity of application type is still without its target electricity is reached, with the second setting step-length The occupancy electricity using each resource occupied in foreground normal operation is reduced successively, until the current electricity of the application type Amount reaches its target electricity, optionally, first reduces its memory source consumption electricity, that is, reduces and normally transported on foreground in read/write memory The capable frequency using region;If the memory reaches the system permitted minimum frequency of application operation, application The current electric quantity of type continues to reduce its hard disk resources consumption electricity with the second setting step-length still without its target electricity is reached, It reduces in reading writing harddisk in the frequency using region of foreground normal operation;
Optionally, after the application for retaining a normal operation, if the current electric quantity of application type is still without reaching its mesh Electricity is marked, to comprising currently in the application type of the application of backstage normal operation, set step-length with second reduces this rear successively The occupancy electricity of each resource that the application of platform normal operation occupies, until the current electric quantity of the application type reaches its target electricity Amount optionally, first reduces its memory source consumption electricity, reduces in read/write memory and apply region in backstage normal operation Frequency, if the memory reaches the system permitted minimum frequency of application operation, the current electric quantity of application type is still Do not reach its target electricity, continue to reduce the electricity of its hard disk resources consumption with the second setting step-length, that is, reduce reading writing harddisk In backstage normal operation the frequency using region.
Application type if necessary to reduce current electric quantity does not include the application of normal operation, illustrates to wrap under this application type Application containing multiple backstage abnormal runnings retains the application of one of backstage abnormal running, by the abnormal running The current electric quantity of application increases to the target charge value of the application type;
In the above method, which specifically retains using there are many optional modes, such as receives the control instruction of user, by with Family selection specifically retains which application or the frequency of use according to application, and it is highest to retain frequency of use under same application type Using.
Optionally, in the electricity for adjusting application type, increase the current electric quantity of application type to its electricity desired value, wrap It includes:
If the current electric quantity of application type is less than its electricity desired value, illustrate not including normal operation under the application type Application, therefore in current electric quantity to its electricity desired value for increasing this kind of application type, to each in the improper fortune in backstage The number of the background service program of capable application is judged that abnormal running application has multiple background service journeys if judging Sequence, then according to each background service program occupy resource and sequence from high to low be sequentially increased background service program occupancy it is electric Amount, until the current electric quantity of application type reaches to its electricity desired value;If judging to apply there are one background service program, The occupancy electricity of each resource of background service program occupancy is sequentially increased, until the current electric quantity of application type reaches to it Electricity desired value.
The resource that the background service program occupies includes:Hard disk resources and memory source;
Optionally, the sequence according to each background service program occupancy resource and from high to low is sequentially increased background service journey The occupancy electricity of sequence includes:Sequence according to background service program occupancy resource and from high to low sorts to background service program, First increase the occupancy electricity of previous background service program, when the occupancy electricity of previous background service program can not continue to increase When, then increase the occupancy electricity of the latter background service program.
Optionally, the occupancy electricity of increase background service program includes:Increase each money of background service program occupancy The electricity that source occupies;In the occupancy electricity for increasing each resource, increase the occupancy of a resource with third setting step-length first Electricity, often increase once judges whether the current electric quantity of application type reaches its target electricity, if the current electricity of application type Amount does not reach its target electricity, then continues to increase the occupancy electricity of the resource with third setting step-length, until the resource accounts for Electricity consumption reaches its default highest threshold value;If after the occupancy electricity of the resource reaches its default highest threshold value, application type Current electric quantity continues to increase the occupancy electricity of next resource with third setting step-length still without its target electricity is reached, until The current electric quantity of application type reaches its target electricity.Optionally, it can first increase the occupancy electricity of memory source, then increase hard disk The occupancy electricity of resource;
Wherein, by increase ,/frequency of background service program region described in reduction read/write memory can increase/reduces The occupancy electricity of memory source;It can be increased by the frequency of background service program region described in increase/reduction reading writing harddisk The occupancy electricity of greatly/reduction hard disk resources.
Optionally, for obtained in above-described embodiment the current total electricity of end cell, end cell it is currently available The target electricity of electricity, the current electric quantity of application type and application type may be displayed on visual screen, be checked for user.
Fig. 2 is the system composition figure for the application distribution battery capacity that the embodiment of the present invention is in terminal.
The system includes:
Application type determining module 201 for classifying to the application installed in terminal by function, is determined using class Type;The application type can include:System application type, downloads application type, player application type at chat application type Deng;Include one or more applications with identical function under the application type;
Application type target electricity determining module 202, for setting the electricity desired value of each application type, the application The electricity desired value of type is the minimum amount of power maintained in the application type needed for an application normal operation;Such as, application type For video player type, multiple video player applications are included under the player types, such as Baidu's player, a sudden peal of thunder plays Device, Tencent's player, then the electricity desired value of the player types should be able to maintain that Baidu's player, sudden peal of thunder player or Minimum amount of power needed for any of Tencent's player player normal operation;Since same application type is with identical work( Can application set, it is each almost the same using the minimum amount of power needed for normal operation in the application type;
The electricity desired value can be that a specific numerical value or electricity occupy the hundred of the chargeable total electricity of battery Divide ratio;
Application type electricity adjust module 203, for working in battery during detect the application type each started Current electric quantity, if there are the current electric quantity application type different from electricity desired value, the current electric quantity of the application type into Row adjustment makes the current electric quantity for the application type being adjusted be equal to its electricity desired value.
Application in commonly used type includes:The application of startup and the application of non-start up;Wherein, the application packet of startup It includes:Currently in the application of the foreground normal operation application of cpu resource (consumption), it is currently (similary in the application of backstage normal operation To consume the application of cpu resource) and in the application of backstage abnormal running (do not consume cpu resource, only background service program is transported Capable application);
If user starts the APP of a broadcasting music on mobile terminals, this APP for playing music is currently on foreground The application of normal operation, the user start web page browsing APP in the case of the APP for not closing the broadcasting music, broadcast at this time The APP to put the music on is transferred to backstage normal operation, and web page browsing APP becomes currently in the application of foreground normal operation;In user While browsing webpage when listening to music, show there is the notice of more new video on video playing APP on mobile phone screen, when this is regarded Frequency plays APP and does not play video, and when the background program of video playing APP detects update, video playing APP is The application of backstage abnormal running, when video playing APP carries out Push Service, video playing APP occupies cpu resource, Video playing APP is the normal use in running background at this time, and after video playing APP completes Push Service, which broadcasts It puts APP and discharges CPU again and become application in backstage abnormal running again;
In above-mentioned technical proposal, the electricity desired value of application type can be arranged as required to and the minimum electricity to meet needs Amount, the current electric quantity of application type is adjusted according to its electricity desired value so that the application type being adjusted is being protected Minimum amount of power is consumed under conditions of the normal operation applied needed for card, saves the electric quantity consumption of battery.
Optionally, application type electricity adjustment module 203 is set as judging the current electric quantity and its electricity of the application type It is different to measure desired value, including:
Judge whether the current electric quantity of application type is more than preset percentage P with the difference degree of its electricity desired value, Such as P=5%.If greater than preset percentage P, then illustrate that the current electric quantity of application type is different from its electricity desired value.
Optionally, application type electricity adjustment module, is adjusted for the current electric quantity to application type, make through The current electric quantity for crossing the application type of adjustment is equal to its electricity desired value, including:
Mode one:
First, the application type of electricity desired value is more than to current electric quantity, retains an application under the application type, together When reduce the current electric quantity of application type to its electricity desired value;Secondly, the application class of electricity desired value is less than to current electric quantity Type sorts from high to low by its priority, judges the currently available electricity of end cell and whether can support answering for highest priority It is run with type with its electricity desired value, if it can, performing following operation to the application type:Retain under the application type One application, and by currently available power energy allocation to the application type of the highest priority, its current electric quantity is made to increase to it Electricity desired value;Continue to judge whether the currently available electricity of end cell can support the application of next priority with its electricity Desired value is run, if it can, continuing to perform aforesaid operations to the application type, until the currently available electricity of end cell is not It is enough to support the application type of next priority until its electricity desired value is run.
The currently available electricity of the end cell is deducted for end cell total electricity using the electricity occupied.
Mode one is related to that its target electricity will be promoted to less than the current electric quantity of the application type of electricity desired value, this is It is since operating status transformation may be undergone in the application of backstage abnormal running at this time under the application type, i.e., non-just from backstage Normal operating status is changed into backstage normal operating condition or foreground normal operating condition, in order to ensure that the application can be normally carried out State changes, and assigns the electricity that normal operation is capable of in the application in advance.
By above-mentioned record as it can be seen that mode one increase can normal operation application number.
Alternatively,
Mode two:
By the application of user's current operation (i.e. in the application of foreground normal operation) belonging to application type to be set as highest preferential The application type of grade, other application type press its original priority queueing;
The electricity of the application type of highest priority is adjusted to target electricity, if the currently available not enough power supply of battery It is run with supporting the application type of the highest priority with target electricity, then reduces the application class that current electric quantity reaches target electricity The electricity of type, until the currently available electricity of battery is enough the application type of the highest priority is supported to run with target electricity;
The electricity of the application type of highest priority is adjusted to target electricity, the application type of next priority is held The following operation of row:If the current electric quantity of the application type of next priority is more than its electricity desired value, retain the application type Under an application, and reduce the current electric quantity of the application type to its electricity desired value;If the application class of next priority The current electric quantity of type is less than its electricity desired value, then whether judge the currently available electricity of end cell can support the priority Application type run with its electricity desired value, if it can, retaining one under application type application, and this is made to apply class The current electric quantity of type increases to its electricity desired value;If the current electric quantity of the application type of next priority is equal to its electricity mesh Scale value, the then voltage value for maintaining the application type are constant;Continue to perform identical behaviour to the application type of next priority Make, until having adjusted the current electric quantity of all application types or the currently available not enough power supply of end cell is next excellent to support again The application type of first grade is until its electricity desired value is run.
In mode two, the currently available electricity of battery is deducted for end cell total electricity using the electricity occupied.
Mode two ensure that current user operation application can normal operation, while occupied under conditions of normal operation Minimum amount of power.
Optionally, the application type electricity adjustment module, in the electricity for adjusting application type, for reducing using class The current electric quantity of type to its electricity desired value, including:
After the application for retaining a normal operation, if the current electric quantity of application type still without reaching its target electricity, For comprising currently in the application type of the application of foreground normal operation, the electricity occupied with the first setting step-length reduction screen intensity Amount often reduces a screen intensity and judges whether the current electric quantity of application type reaches its target electricity, if application type Current electric quantity does not reach its target electricity, then continues the electricity for being reduced screen intensity with the first setting step-length and being occupied, until screen Curtain brightness reaches the permitted minimum screen intensity of application operation system;If the system that current screen brightness reaches application operation During permitted minimum screen intensity, the current electric quantity of application type is still without its target electricity is reached, with the second setting step-length The occupancy electricity using each resource occupied in foreground normal operation is reduced successively, until the current electricity of the application type Amount reaches its target electricity, optionally, first reduces its memory source consumption electricity, that is, reduces and normally transported on foreground in read/write memory The capable frequency using region;If the memory reaches the system permitted minimum frequency of application operation, application The current electric quantity of type continues to reduce its hard disk resources consumption electricity with the second setting step-length still without its target electricity is reached, It reduces in reading writing harddisk in the frequency using region of foreground normal operation;
Optionally, after the application for retaining a normal operation, if the current electric quantity of application type is still without reaching its mesh Electricity is marked, to comprising currently in the application type of the application of backstage normal operation, set step-length with second reduces this rear successively The occupancy electricity of each resource that the application of platform normal operation occupies, until the current electric quantity of the application type reaches its target electricity Amount optionally, first reduces its memory source consumption electricity, reduces in read/write memory and apply region in backstage normal operation Frequency, if the memory reaches the system permitted minimum frequency of application operation, the current electric quantity of application type is still Do not reach its target electricity, continue to reduce the electricity of its hard disk resources consumption with the second setting step-length, that is, reduce reading writing harddisk In backstage normal operation the frequency using region.
Application type if necessary to reduce current electric quantity does not include the application of normal operation, illustrates to wrap under this application type Application containing multiple backstage abnormal runnings retains the application of one of backstage abnormal running, by the abnormal running The current electric quantity of application increases to the target charge value of the application type;
In the above method, which specifically retains using there are many optional modes, such as receives the control instruction of user, by with Family selection specifically retains which application or the frequency of use according to application, and it is highest to retain frequency of use under same application type Using.
Optionally, the application type electricity adjustment module, in the electricity for adjusting application type, for increasing using class The current electric quantity of type to its electricity desired value, including:
If the current electric quantity of application type is less than its electricity desired value, illustrate not including normal operation under the application type Application, therefore in current electric quantity to its electricity desired value for increasing this kind of application type, to each in the improper fortune in backstage The number of the background service program of capable application is judged that abnormal running application has multiple background service journeys if judging Sequence, then according to each background service program occupy resource and sequence from high to low be sequentially increased background service program occupancy it is electric Amount, until the current electric quantity of application type reaches to its electricity desired value;If judging to apply there are one background service program, The occupancy electricity of each resource of background service program occupancy is sequentially increased, until the current electric quantity of application type reaches to it Electricity desired value.
The resource that the background service program occupies includes:Hard disk resources and memory source;
Optionally, the sequence according to each background service program occupancy resource and from high to low is sequentially increased background service journey The occupancy electricity of sequence includes:Sequence according to background service program occupancy resource and from high to low sorts to background service program, First increase the occupancy electricity of previous background service program, when the occupancy electricity of previous background service program can not continue to increase When, then increase the occupancy electricity of the latter background service program.
Optionally, the occupancy electricity of increase background service program includes:Increase each money of background service program occupancy The electricity that source occupies;In the occupancy electricity for increasing each resource, increase the occupancy of a resource with third setting step-length first Electricity, often increase once judges whether the current electric quantity of application type reaches its target electricity, if the current electricity of application type Amount does not reach its target electricity, then continues to increase the occupancy electricity of the resource with third setting step-length, until the resource accounts for Electricity consumption reaches its default highest threshold value;If after the occupancy electricity of the resource reaches its default highest threshold value, application type Current electric quantity continues to increase the occupancy electricity of next resource with third setting step-length still without its target electricity is reached, until The current electric quantity of application type reaches its target electricity.Optionally, it can first increase the occupancy electricity of memory source, then increase hard disk The occupancy electricity of resource;
Wherein, by increase ,/frequency of background service program region described in reduction read/write memory can increase/reduces The occupancy electricity of memory source;It can be increased by the frequency of background service program region described in increase/reduction reading writing harddisk The occupancy electricity of greatly/reduction hard disk resources.
Optionally, electricity feedback module and visual screen may also include for above system, the electricity feedback module is used In by the current electric quantity and application type of the currently available electricity of the current total electricity of end cell, end cell, application type Target electricity be shown on visual screen, checked for user.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program Related hardware is completed, and described program can be stored in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly Ground, the form that hardware may be used in each module/unit in above-described embodiment are realized, can also use the shape of software function module Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
It should be noted that the present invention can also have other various embodiments, without departing substantially from of the invention spiritual and its essence In the case of, those skilled in the art can make various corresponding changes and deformation according to the present invention, but these are corresponding Change and deform the protection domain that should all belong to appended claims of the invention.

Claims (16)

  1. A kind of 1. method that battery capacity is distributed for terminal applies, which is characterized in that the method includes:
    Classify to the application installed in terminal by function, determine application type;
    The electricity desired value of each application type is set, and the electricity desired value of the application type is maintains one in the application type A minimum amount of power using needed for normal operation;
    The current electric quantity of the application type each started is detected during battery works, if there are current electric quantities and electricity mesh The different application type of scale value, then the current electric quantity of the application type be adjusted, make the current of the application type being adjusted Electricity is equal to its electricity desired value;
    The application type of the startup includes:It is application type included in the application of foreground normal operation, normal included in backstage The application type of the application of operation and the application type of application included in backstage abnormal running.
  2. 2. the method as described in claim 1, which is characterized in that the current electric quantity of application type is different from its electricity desired value, Including:
    The current electric quantity of application type and the difference degree of its electricity desired value are more than preset percentage.
  3. 3. method as claimed in claim 2, which is characterized in that the current electric quantity of the application type is adjusted, make through The current electric quantity for crossing the application type of adjustment is equal to its electricity desired value, including:
    It is more than the application type of electricity desired value to current electric quantity, retains an application under the application type, while reduce and answer With the current electric quantity of type to its electricity desired value;
    The application type for being less than electricity desired value to current electric quantity sorts from high to low by its priority, judges working as end cell Whether preceding available power can support the application type of highest priority to be run with its electricity desired value, if it can, should to this Operation is performed with type:Retain an application under the application type, and currently available power energy allocation is preferential to the highest The application type of grade, makes its current electric quantity increase to its electricity desired value;The currently available electricity for continuing to judge end cell is It is no that the application type of next priority can be supported to be run with its electricity desired value, if it can, continuing to hold the application type Row aforesaid operations, until the currently available not enough power supply of end cell to support the application type of next priority with its electricity again Until desired value is run;
    The currently available electricity of the end cell is deducted for end cell total electricity using the electricity occupied.
  4. 4. method as claimed in claim 2, which is characterized in that the current electric quantity of the application type is adjusted, make through The current electric quantity for crossing the application type of adjustment is equal to its electricity desired value, including:
    User's current operation is set as to the application type of highest priority using affiliated application type, other application type presses it Original priority queueing;
    The electricity of the application type of highest priority is adjusted to electricity desired value, if the currently available not enough power supply of battery with The application type of the highest priority is supported to be run with electricity desired value, then reduces the application that current electric quantity reaches electricity desired value The electricity of type, until the currently available electricity of battery is enough the application type of the highest priority is supported to transport with electricity desired value Row;
    The electricity of the application type of highest priority is adjusted to electricity desired value, the application type of next priority is performed Following operation:If the current electric quantity of the application type of next priority is more than its electricity desired value, retain under the application type An application, and reduce the current electric quantity of the application type to its electricity desired value;If the application type of next priority Current electric quantity be less than its electricity desired value, then whether judge the currently available electricity of end cell can support the priority Application type is run with its electricity desired value, if it can, retaining an application under the application type, and makes the application type Current electric quantity increase to its electricity desired value;If the current electric quantity of the application type of next priority is equal to its electricity target Value, the then voltage value for maintaining the application type are constant;
    Continue to perform identical operation to the application type of next priority, until having adjusted the current electric quantity of all application types Or the currently available not enough power supply of end cell is operated to supporting the application type of next priority again with its electricity desired value Only;
    The currently available electricity of battery is deducted for end cell total electricity using the electricity occupied.
  5. 5. the method as described in claim 3 or 4, which is characterized in that the current electric quantity for reducing application type to its electricity Desired value, including:
    Application type if necessary to reduce current electric quantity includes the application of current normal operation, and one normal operation of reservation is answered With;
    After the application for retaining a normal operation, if the current electric quantity of application type does not reach its electricity desired value, for Comprising currently in the application type of the application of foreground normal operation, the electricity that screen intensity occupies is reduced with the first setting step-length, It often reduces a screen intensity and judges whether the current electric quantity of application type reaches its electricity desired value, if application type is worked as Preceding electricity does not reach its electricity desired value, then continues the electricity for being reduced screen intensity with the first setting step-length and being occupied, until screen Curtain brightness reaches the permitted minimum screen intensity of application operation system;
    If current screen brightness reaches the system permitted minimum screen intensity of application operation, the current electricity of application type Amount reduces this in foreground normal operation using each of occupancy successively still without its electricity desired value is reached, with the second setting step-length The occupancy electricity of a resource, until the current electric quantity of the application type reaches its electricity desired value.
  6. 6. method as claimed in claim 5, which is characterized in that the method further includes:
    After the application for retaining a normal operation, if the current electric quantity of application type does not reach its electricity desired value, to packet Containing currently in the application type of the application of backstage normal operation, set step-length with second reduces this in backstage normal operation successively Using the occupancy electricity of each resource of occupancy, until the current electric quantity of the application type reaches its electricity desired value.
  7. 7. method as claimed in claim 6, which is characterized in that the method further includes:
    Application type if necessary to reduce current electric quantity does not include the application of normal operation, and it is improper to retain one of backstage The current electric quantity of the application of the abnormal running is increased to the electricity desired value of the application type by the application of operation.
  8. 8. the method as described in claim 3 or 4, which is characterized in that the current electric quantity of the increase application type to its electricity Desired value, including:
    When the current electric quantity of application type is less than its electricity desired value, to the backstage of each application in backstage abnormal running The number of service routine is judged that abnormal running application has multiple background service programs if judging, after each The occupancy resource of platform service routine and sequence from high to low are sequentially increased the occupancy electricity of background service program, until using class The current electric quantity of type reaches to its electricity desired value;
    If judge to apply accounting for for each resource for there are one background service program, being sequentially increased background service program occupancy Electricity consumption, until the current electric quantity of application type reaches to its electricity desired value.
  9. 9. a kind of system that battery capacity is distributed for terminal applies, which is characterized in that the system comprises:
    Application type determining module for classifying to the application installed in terminal by function, determines application type;
    Application type target electricity determining module, for setting the electricity desired value of each application type, the application type Electricity desired value is the minimum amount of power maintained in the application type needed for an application normal operation;
    Application type electricity adjusts module, for working in battery during detect the current electricity of the application type each started Amount, if there are the current electric quantity application type different from electricity desired value, is adjusted the current electric quantity of the application type, The current electric quantity for the application type being adjusted is made to be equal to its electricity desired value;
    The application type of the startup includes:It is application type included in the application of foreground normal operation, normal included in backstage The application type of the application of operation and the application type of application included in backstage abnormal running.
  10. 10. system as claimed in claim 9, which is characterized in that the current electric quantity of the application type and its electricity desired value Difference, including:
    The current electric quantity of application type and the difference degree of its electricity desired value are more than preset percentage.
  11. 11. system as claimed in claim 10, which is characterized in that the application type electricity adjusts module, for application The current electric quantity of type is adjusted, and the current electric quantity for the application type being adjusted is made to be equal to its electricity desired value, including:
    It is more than the application type of electricity desired value to current electric quantity, retains an application under the application type, while reduce and answer With the current electric quantity of type to its electricity desired value;
    The application type for being less than electricity desired value to current electric quantity sorts from high to low by its priority, judges working as end cell Whether preceding available power can support the application type of highest priority to be run with its electricity desired value, if it can, should to this Operation is performed with type:Retain an application under the application type, and currently available power energy allocation is preferential to the highest The application type of grade, makes its current electric quantity increase to its electricity desired value;The currently available electricity for continuing to judge end cell is It is no that the application type of next priority can be supported to be run with its electricity desired value, if it can, continuing to hold the application type Row aforesaid operations, until the currently available not enough power supply of end cell to support the application type of next priority with its electricity again Until desired value is run;
    The currently available electricity of the end cell is deducted for end cell total electricity using the electricity occupied.
  12. 12. system as claimed in claim 10, which is characterized in that the application type electricity adjusts module, for answering this It is adjusted with the current electric quantity of type, the current electric quantity for the application type being adjusted is made to be equal to its electricity desired value, including:
    User's current operation is set as to the application type of highest priority using affiliated application type, other application type presses it Original priority queueing;
    The electricity of the application type of highest priority is adjusted to electricity desired value, if the currently available not enough power supply of battery with The application type of the highest priority is supported to be run with electricity desired value, then reduces the application that current electric quantity reaches electricity desired value The electricity of type, until the currently available electricity of battery is enough the application type of the highest priority is supported to transport with electricity desired value Row;
    The electricity of the application type of highest priority is adjusted to electricity desired value, the application type of next priority is performed Following operation:If the current electric quantity of the application type of next priority is more than its electricity desired value, retain under the application type An application, and reduce the current electric quantity of the application type to its electricity desired value;If the application type of next priority Current electric quantity be less than its electricity desired value, then whether judge the currently available electricity of end cell can support the priority Application type is run with its electricity desired value, if it can, retaining an application under the application type, and makes the application type Current electric quantity increase to its electricity desired value;If the current electric quantity of the application type of next priority is equal to its electricity target Value, the then voltage value for maintaining the application type are constant;
    Continue to perform identical operation to the application type of next priority, until having adjusted the current electric quantity of all application types Or the currently available not enough power supply of end cell is operated to supporting the application type of next priority again with its electricity desired value Only;
    The currently available electricity of battery is deducted for end cell total electricity using the electricity occupied.
  13. 13. the system as described in claim 11 or 12, which is characterized in that the application type electricity adjusts module, for subtracting The current electric quantity of small application type to its electricity desired value, including:
    Application type if necessary to reduce current electric quantity includes the application of current normal operation, and one normal operation of reservation is answered With;
    After the application for retaining a normal operation, if the current electric quantity of application type does not reach its electricity desired value, for Comprising currently in the application type of the application of foreground normal operation, the electricity that screen intensity occupies is reduced with the first setting step-length, It often reduces a screen intensity and judges whether the current electric quantity of application type reaches its electricity desired value, if application type is worked as Preceding electricity does not reach its electricity desired value, then continues the electricity for being reduced screen intensity with the first setting step-length and being occupied, until screen Curtain brightness reaches the permitted minimum screen intensity of application operation system;
    If current screen brightness reaches the system permitted minimum screen intensity of application operation, the current electricity of application type Amount reduces this in foreground normal operation using each of occupancy successively still without its electricity desired value is reached, with the second setting step-length The occupancy electricity of a resource, until the current electric quantity of the application type reaches its electricity desired value.
  14. 14. system as claimed in claim 13, which is characterized in that the application type electricity adjusts module, should for reducing With the current electric quantity of type to its electricity desired value, further include:
    After the application for retaining a normal operation, if the current electric quantity of application type does not reach its electricity desired value, to packet Containing currently in the application type of the application of backstage normal operation, set step-length with second reduces this in backstage normal operation successively Using the occupancy electricity of each resource of occupancy, until the current electric quantity of the application type reaches its electricity desired value.
  15. 15. system as claimed in claim 14, which is characterized in that the application type electricity adjusts module, should for reducing With the current electric quantity of type to its electricity desired value, further include:
    Application type if necessary to reduce current electric quantity does not include the application of normal operation, and it is improper to retain one of backstage The current electric quantity of the application of the abnormal running is increased to the electricity desired value of the application type by the application of operation.
  16. 16. the system as described in claim 11 or 12, which is characterized in that the application type electricity adjusts module, for increasing The current electric quantity of big application type to its electricity desired value, including:
    When the current electric quantity of application type is less than its electricity desired value, to the backstage of each application in backstage abnormal running The number of service routine is judged that abnormal running application has multiple background service programs if judging, after each The occupancy resource of platform service routine and sequence from high to low are sequentially increased the occupancy electricity of background service program, until using class The current electric quantity of type reaches to its electricity desired value;
    If judge to apply accounting for for each resource for there are one background service program, being sequentially increased background service program occupancy Electricity consumption, 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 CN105100505A (en) 2015-11-25
CN105100505B true 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)

Families Citing this family (4)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918473B (en) * 2010-06-07 2015-07-08 松下电器(美国)知识产权公司 Mobile-type information processing terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105100505A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US10263421B2 (en) Load allocation for multi-battery devices
CN105100505B (en) A kind of method and system that battery capacity is distributed for terminal applies
US11914441B2 (en) Systems and methods for power outage protection of storage device
CN109151961B (en) Operation method of mobile terminal, terminal and computer readable storage medium
CN107483751B (en) Terminal device, electric quantity distribution method thereof and computer-readable storage medium
CN107209546A (en) Suppress power peak
CN103369508A (en) Data loading method and terminal device
US10031572B2 (en) Method and device for processing core of processor, and terminal
CN103593038B (en) A kind of method and apparatus controlling to apply
CN108170252B (en) Terminal power saving method and device
CN103488272A (en) Method for saving power consumption and electronic device thereof
CN101477398A (en) Terminal power consumption control method and apparatus
KR20130021625A (en) Operating method and portable device supporting the same
CN115765119B (en) Charging management method of energy storage power supply, energy storage power supply and storage medium
JP5174242B2 (en) Information processing apparatus and control method of information processing apparatus
CN107357392A (en) Mobile terminal temperature rise control method, mobile terminal and readable storage medium storing program for executing
CN102136612B (en) Battery charging control method, device and system
WO2020206688A1 (en) Video playback method and apparatus, storage medium and electronic device
CN106650409B (en) A kind of terminal control method and terminal
CN104699224A (en) Power-saving control method
CN106774806A (en) The method and mobile terminal of a kind of power saving
CN104699223A (en) Terminal
CN113370826B (en) Control method, control device and charging system of charging pile
CN110427092B (en) Battery switching method, device, terminal and computer readable storage medium
CN104571466A (en) Electricity saving method and device for multi-system terminal

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