Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of disposal route one embodiment of running unit of the present invention, and as shown in Figure 1, the disposal route of the running unit of the present embodiment, specifically can comprise the steps:
100, the consumes power of running unit is obtained;
Such as, the running unit in the present embodiment can refer to installation in the terminal for realizing the application program (application of a certain function; App), mobile terminal several running units can have been run.The consumes power of software to each running unit operating can be adopted in the present embodiment to add up and obtain.
101, judge whether consumes power is greater than or equal to predetermined threshold value; If so, step 102 is performed; If not, any intervention operation is not performed.
Such as, can arrange corresponding predetermined threshold value in the terminal to each running unit, this predetermined threshold value is to should the maximum power consumption that allows in this mobile terminal of running unit.When consumes power is less than predetermined threshold value, then represents that this running unit can also continue to run in this mobile terminal, now wouldn't perform any intervention operation.Otherwise when consumes power is greater than or equal to predetermined threshold value, perform step 102.
102, intervention process is carried out to running unit.
The running unit being greater than or equal to predetermined threshold value to consumes power in the present embodiment carries out intervention process, and namely large to power consumption running unit is intervened, and reduces the power consumption of running unit in mobile terminal.
The disposal route of the running unit of the present embodiment, by obtaining the consumes power of running unit; Judge whether consumes power is greater than or equal to predetermined threshold value; If so, intervention process is carried out to running unit.By adopting the technique scheme of the present embodiment, intervention process can be carried out to the running unit that is irrational, the behavior of consumes power carelessly in mobile terminal, thus overcome the behavior that is irrational, consumes power carelessly of some running unit existence in prior art in mobile terminal, cause the defect that the electric quantity consumption of mobile terminal is too fast, flying power reduces, slow down the electric quantity consumption of mobile terminal, enhance the flying power of mobile terminal.
Further alternatively, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, after above-mentioned steps 101 determines that the consumes power of this running unit is greater than or equal to predetermined threshold value, before step 102, also comprise: determine that needs are intervened this running unit.
Particularly, " determine to need to intervene running unit " in the present embodiment, specifically comprise following situation:
Situation one: judge whether to need to intervene running unit according to the property parameters of running unit, and determine to need to intervene running unit.
In the present embodiment, the running unit run in mobile terminal is all provided with various property parameters, such as, can be provided with and intervene corresponding property parameters, when including the property parameters of intervening correspondence in the property parameters of this running unit, can determine to need to intervene this running unit.Otherwise, when not including the property parameters of intervening correspondence in the property parameters of running unit, now can determine not need to intervene this running unit.
Such as, or can also be arranged the property parameters of the intervention correspondence of running unit by " 1 " and " 0 ", " 1 " represents that these running unit needs perform and intervenes process, and " 0 " represents that this running unit does not need to perform and intervenes process.After judging that the consumes power of this running unit obtained is greater than or equal to predetermined threshold value, determine whether to need to intervene according to the property parameters of the intervention correspondence of running unit, if the property parameters of the intervention correspondence of such as this running unit is 0, represent that this running unit does not need to intervene.If the property parameters of the intervention correspondence of this running unit is 1, represent that this running unit needs to intervene.
Situation two: particularly, can eject to intervene and select dialog box, select this running unit the need of intervention for user; And receive the intervention information that user selected by human-machine interface module.
Intervention and nonintervention two kinds of selection information can be comprised in the intervention dialog box of wherein the present embodiment.Can be specifically such as show " intervention " or " nonintervention " two buttons on the screen of the mobile terminal, select for user.Or show "Yes" or "No" two buttons on the screen of the mobile terminal, select for user, be wherein represent to need to intervene, no expression does not need to intervene.
Human-machine interface module in the present embodiment can be keyboard or mouse etc., and now user can select to intervene the selection information in dialog box by keyboard or mouse.When the screen of mobile terminal is touch-screen, this touch-screen can directly as human-machine interface module, and now user can directly select to intervene the selection information in dialog box by touch-screen.
Further alternatively, " carrying out intervention process to running unit " in the step 103 in above-described embodiment, can comprise following two kinds of modes particularly:
Mode one: intervention process is carried out to running unit according to the intervention processing mode that running unit is preset.
In the above-described embodiments, user can be arranged " presetting means of intervention " of each running unit, like this when this running unit needs to intervene, directly according to the intervention processing mode that this running unit is preset, carries out intervention process to this running unit.Such as, the intervention processing mode preset in the present embodiment can be run for reducing performance, limiting working time or thoroughly closing.Or other default intervention processing mode can also be set, illustrate no longer one by one at this.
Execute in example above-mentioned, particularly, reduce performance continuation operation and refer to that this running unit of permission continues to run, but require some highly energy-consuming function of closedown, only run basic function, reduce the Resourse Distribute to this running unit.The application that such as some function is a lot, basic function possibility power consumption is fewer, and the function power consumption of corresponding big energy-consuming is many; When reducing performance and running, can only keep its basic function, the function of highly energy-consuming can be closed, and can reduce the power consumption of the running unit of this application.Limit and refer to and do not allow this running unit to run always working time, must stop after allowing this running unit run a bit of time, and wait for after a very long time could startup optimization a bit of time again, and so forth, the power consumption of this running unit can be reduced; Thorough closedown refers to all functions of closing this running unit at once, does not allow this unit consumes power again, such as not high for frequency of utilization, and almost no application, in order to reduce power consumption, can directly thoroughly be closed.
Particularly, the intervention processing mode preset also can adopt Digital ID in the property parameters of running unit, such as " 01 " represents that running unit execution " reduces performance to run " process, " 11 " represent that running unit " limits working time " and processes, and " 10 " represent that process " is thoroughly closed " in running unit execution.Like this, the property parameters corresponding according to the intervention processing mode of this running unit, just can determine which kind of adopts intervene processing mode processes this running unit.
Mode two: eject and intervene processing mode selection dialog box, intervention processing mode selection dialog box comprises at least two kinds and intervenes processing mode; The intervention processing mode that the running unit that reception user is selected by human-machine interface module is corresponding.
In this implementation, be also that the form by ejecting dialog box supplies user to select to intervene processing mode.Particularly, can eject on screen and intervene processing mode dialog box, at least two kinds can be included in this dialog box and intervene processing modes, then by user therefrom select a kind of will to the intervention processing mode of this running unit.Such as this intervention processing mode is selected to include reduction performance in dialog box and is run, limits working time or at least two kinds of intervention processing modes in thoroughly closing, or also can all comprise; Or other intervention processing mode can also be included in the present embodiment, illustrate no longer one by one at this.
Further, corresponding according to the running unit of user's selection intervention processing mode carries out intervention process to running unit.
In the present embodiment, particularly, reduce performance continuation operation and refer to that the continuation of this running unit of permission runs, but require some highly energy-consuming function running unit of closedown, the running unit of an operation basic function, reduces the Resourse Distribute to this running unit; Limit and refer to and do not allow this running unit to run always working time, this running unit must stop after running a bit of time, and could startup optimization a bit of time again after waiting for a very long time, and so forth; Thorough closedown refers to all functions of closing this running unit at once, does not allow this unit consumes power again.
User can use corresponding human-machine interface module from intervention processing mode dialog box, selects the intervention processing mode wanting to adopt, and like this, the intervention processing mode that user can be used to select carries out intervention process to this running unit.By this technical scheme, intervene processing mode by user from main separation, come to carry out intervention process to running unit targetedly according to the selection of user, enhance the dirigibility of intervention, and by the interaction with user, enhance the Experience Degree of user.
All possibilities that above-described embodiment adopts, can adopt combinable mode combination in any, and form optional embodiment of the present invention, this is no longer going to repeat them.
The disposal route of the running unit of above-described embodiment, select two kinds of modes to determine to need to intervene this running unit voluntarily by preset attribute parameter and user, and select two kinds of modes to determine the processing mode of intervening this running unit voluntarily by preset attribute parameter and user.By adopting technique scheme of the present invention, intervention process can be carried out to the running unit that is irrational, the behavior of consumes power carelessly in mobile terminal, thus overcome the behavior that is irrational, consumes power carelessly of some running unit existence in prior art in mobile terminal, cause the defect that the electric quantity consumption of mobile terminal is too fast, flying power reduces, slow down the electric quantity consumption of mobile terminal, enhance the flying power of mobile terminal.
Fig. 2 is the process flow diagram of another embodiment of disposal route of running unit of the present invention, and the disposal route of the running unit of the present embodiment, on the basis of the technical scheme of above-described embodiment, introduces technical scheme of the present invention further in further detail.As shown in Figure 2, the disposal route of the running unit of the present embodiment, specifically can comprise the steps:
201, the consumes power of running unit is obtained;
202, judge whether the consumes power of this running unit is greater than or equal to predetermined threshold value; If so, step 203 is performed; Otherwise, any intervention process wouldn't be performed;
203, judge whether to include in the property parameters of this running unit and intervene corresponding property parameters; If have, perform step 204; Otherwise, any intervention process wouldn't be performed;
204, the property parameters of the intervention correspondence of this fortune unit is obtained;
Whether the property parameters value 205, judging the intervention correspondence of this fortune unit is 1; If so, step 206 is performed; Otherwise, any intervention process wouldn't be performed;
206, determine to need to intervene running unit, perform step 207;
In the present embodiment, intervening corresponding property parameters value is that 1 expression needs to intervene this running unit; Intervening corresponding property parameters value is 0, represents and does not need to intervene this running unit.
207, obtain the intervention processing mode that this running unit is preset, perform step 208;
Particularly, in the present embodiment, not only comprise in property parameters and intervene corresponding property parameters value, also include and intervene property parameters value corresponding to processing mode.Such as can obtain mark corresponding to default intervention processing mode from the property parameters of this running unit, such as " 01 " represents that running unit execution " reduces performance to run " process, " 11 " represent that running unit " limits working time " and processes, and " 10 " represent that process " is thoroughly closed " in running unit execution.Here the intervention processing mode preset is all in advance for this running unit is arranged, when specifically arranging, can arrange according to the priority of this running unit itself, the running unit that such as priority is high can reduce performance and run, and can directly thoroughly close for the running unit that priority is low; Some is temporarily also needed to the running unit of use, corresponding intervention processing mode can be limit working time to it.Be adopted as each running unit and default intervention processing mode is set, intervention process can be carried out targetedly to each running unit, all running units are avoided to adopt same intervention processing mode to intervene process, thus not only can not reduce the experience of user, but also intervention treatment effeciency can be improved.
208, the intervention processing mode preset according to this running unit carries out intervention process to running unit.
The disposal route of the present embodiment running unit, by adopting technique scheme, intervention process can be carried out to the running unit that is irrational, the behavior of consumes power carelessly in mobile terminal, thus overcome the behavior that is irrational, consumes power carelessly of some running unit existence in prior art in mobile terminal, cause the defect that the electric quantity consumption of mobile terminal is too fast, flying power reduces, slow down the electric quantity consumption of mobile terminal, enhance the flying power of mobile terminal.Further, judge to intervene running unit by the property parameters of running unit, and according to the intervention processing mode that running unit is preset, intervention process is carried out to running unit, intervention process can be carried out targetedly to each running unit, all running units are avoided to adopt same intervention processing mode to intervene process, thus not only can not reduce the experience of user, but also intervention treatment effeciency can be improved.
Fig. 3 is the process flow diagram of the disposal route embodiment again of running unit of the present invention, and the disposal route of the running unit of the present embodiment, on the basis of the technical scheme of above-described embodiment one, introduces technical scheme of the present invention further in further detail.As shown in Figure 3, the disposal route of the running unit of the present embodiment, specifically can comprise the steps:
301, the consumes power of running unit is obtained;
302, judge whether the consumes power of this running unit is greater than or equal to predetermined threshold value; If time, perform step 303; Otherwise, any intervention process wouldn't be performed;
303, eject intervention and select dialog box, in this intervention dialog box, point out user to select whether to intervene;
Such as, the form of expression of intervening dialog box concrete can be show " intervention " or " nonintervention " two buttons on the screen of the mobile terminal, selects for user.Or show "Yes" or "No" two buttons on the screen of the mobile terminal, select for user, be wherein represent to need to intervene, no expression does not need to intervene.When user selects no, represent and do not need to intervene this running unit, now can return step 301 and continue to perform; Or directly terminate, start again after suspending a period of time to detect.
304, the intervention information that user is selected by human-machine interface module is received; Perform 305;
305, judge whether the intervention information that user selects is intervention, if time, perform step 306; Otherwise, any intervention process wouldn't be performed;
306, determine to need to intervene running unit; Perform step 307;
307, eject intervention processing mode and select dialog box, this intervention processing mode selects dialog box to comprise at least two kinds of intervention processing modes;
In the present embodiment, intervene processing mode selection dialog box by ejecting, and selected to need to perform dry pretreated intervention processing mode by user.The intervention processing mode such as ejected is selected to comprise at least two kinds in dialog box and is intervened processing mode, selects for user.Intervene processing mode for such as at least two kinds can include the operation of reduction performance, limit working time or at least two kinds of intervention processing modes in thoroughly closing, or also can all comprise; Or other intervention processing mode can also be included in the present embodiment, illustrate no longer one by one at this.Or due to the limited space of screen, each intervenes mark corresponding to processing mode can to arrange display on screen, such as adopt the character of A, B or C and so on, or 1, the numeral of 2 or 3 and so on, represents that reducing that performance is run, limits working time or thoroughly closed etc. intervenes processing mode respectively.
308, the intervention processing mode that running unit that user selected by human-machine interface module is corresponding is received;
309, corresponding according to the running unit of user's selection intervention processing mode carries out intervention process to running unit.
The disposal route of the present embodiment running unit, by adopting technique scheme, intervention process can be carried out to the running unit that is irrational, the behavior of consumes power carelessly in mobile terminal, thus overcome the behavior that is irrational, consumes power carelessly of some running unit existence in prior art in mobile terminal, cause the defect that the electric quantity consumption of mobile terminal is too fast, flying power reduces, slow down the electric quantity consumption of mobile terminal, enhance the flying power of mobile terminal.And further, judge to intervene running unit by the mode ejecting dialog box, and according to ejecting dialog box, to running unit, intervention process is carried out to the mode that processing mode is selected, come to carry out intervention process to running unit targetedly according to the selection of user, enhance the dirigibility of intervention, and by the interaction with user, enhance the Experience Degree of user.
Fig. 4 is the structural representation for the treatment of apparatus one embodiment of running unit of the present invention, and as shown in Figure 4, the treating apparatus of the running unit of the present embodiment can comprise: acquisition module 11, judge module 12 and intervention processing module 13.
In the present embodiment, acquisition module 11 is for obtaining the consumes power of running unit; Judge module 12 is connected with acquisition module 11, for judging whether the consumes power that acquisition module 11 obtains is greater than or equal to predetermined threshold value; Intervene processing module 13 to be connected with judge module 12, if when intervention processing module 13 determines that consumes power is greater than or equal to predetermined threshold value for judge module 12, intervention process is carried out to running unit.
The treating apparatus of the running unit of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 1 by adopting above-mentioned module, it realizes principle and technique effect is similar, with reference to the record of above-described embodiment 1, can not repeat them here in detail.
Fig. 5 is the structural representation of another embodiment for the treatment of apparatus of running unit of the present invention, and as shown in Figure 5, the treating apparatus of the running unit of the present embodiment, on the basis of Fig. 4 shown device structure, further, can also comprise following technical scheme.
As shown in Figure 5, the treating apparatus of the running unit of the present embodiment, also comprises determination module 14, if when determination module 14 determines that consumes power is greater than or equal to predetermined threshold value for judge module 12, determines to need to intervene running unit.
Accordingly now, determination module 14 is connected with judge module 12, and judge module 12, when determining that consumes power is greater than or equal to predetermined threshold value, triggers determination module 14 and starts.
Such as further, this determination module 14 at judge module 12 when determining that consumes power is greater than or equal to predetermined threshold value, startup is triggered by determination module 14, and judge whether to need to intervene running unit according to the property parameters of this running unit, and determine to need to intervene running unit.Now further, intervene processing module 13 to be connected with determination module 14, when determination module 14 is determined to need to intervene running unit, trigger intervention processing module 13 to start, now intervene processing module 13, specifically for the intervention processing mode preset according to running unit, intervention process is carried out to running unit.
Or as shown in Figure 5, in the treating apparatus of the running unit of the present embodiment, this determination module 14 specifically can comprise ejection unit 141 and receiving element 142.Wherein eject unit 141 to be connected with judge module 12, eject unit 141 for when judge module 12 determines that consumes power is greater than or equal to predetermined threshold value, be subject to the triggering of judge module 12, eject to intervene and select dialog box, select described running unit the need of intervention for user, intervene dialog box and comprise intervention and nonintervention two kinds of selection information; The intervention information that receiving element 142 is selected by human-machine interface module for receiving user.Now further, intervene processing module 13 to be connected with receiving element 142, receiving element 142, after the intervention information receiving user's selection, triggers intervention processing module 13 and starts, and intervention processing module 13 is carried out intervention according to the intervention processing mode that running unit is preset to running unit and processed.
The treating apparatus of the running unit of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2 by adopting above-mentioned module, it realizes principle and technique effect is similar, with reference to the record of above-mentioned related embodiment, can not repeat them here in detail.
Fig. 6 is the structural representation of the treating apparatus embodiment again of running unit of the present invention, and as shown in Figure 6, the treating apparatus of the running unit of the present embodiment, on the basis of Fig. 4 shown device structure, further, can also comprise following technical scheme.
Identical with embodiment described in above-mentioned Fig. 5, as shown in Figure 6, the treating apparatus of the running unit of the present embodiment also comprises determination module 14, and this determination module 14 also can comprise ejection unit 141 and receiving element 142 further.With reference to above-mentioned record embodiment illustrated in fig. 5, can not repeat them here in detail.
Wherein eject unit 141 to be connected with judge module 12, eject unit 141 for when judge module 12 determines that consumes power is greater than or equal to predetermined threshold value, be subject to the triggering of judge module 12, eject to intervene and select dialog box, select described running unit the need of intervention for user, intervene dialog box and comprise intervention and nonintervention two kinds of selection information; The intervention information that receiving element 142 is selected by human-machine interface module for receiving user.
Further, as shown in Figure 6, the treating apparatus of the running unit of the present embodiment, also comprises pop-up module 15 and receiver module 16.Pop-up module 15 and receiving element 142, when receiving element 142 receives the intervention information that user selected by human-machine interface module, determine that this running unit needs to intervene process, now trigger pop-up module 15 and eject intervention processing mode selection dialog box, this intervention processing mode selection dialog box comprises at least two kinds and intervenes processing mode; Receiver module 16 is for described intervention processing mode corresponding to the running unit that receives user and selected by human-machine interface module.
Further, intervene processing module 13 and be connected with receiver module 16, intervene processing module 13, specifically for the intervention processing mode that the running unit of the user's selection received according to receiver module 16 is corresponding, intervention process is carried out to running unit.
The treating apparatus of the running unit of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 3 by adopting above-mentioned module, it realizes principle and technique effect is similar, with reference to the record of above-mentioned related embodiment, can not repeat them here in detail.
The present invention also provides a kind of mobile terminal, this mobile terminal is provided with the treating apparatus of the running unit of as above Fig. 4-Fig. 6 any embodiment, and the disposal route of the running unit of as above Fig. 1-Fig. 3 any embodiment can be adopted, realize carrying out intervention process to the running unit in mobile terminal, with reference to the record of related embodiment, can not repeat them here in detail.
The mobile terminal of the present embodiment, intervention process can be carried out to the running unit that is irrational, the behavior of consumes power carelessly in mobile terminal by adopting the treating apparatus of above-mentioned running unit, thus overcome the behavior that is irrational, consumes power carelessly of some running unit existence in prior art in mobile terminal, cause the defect that the electric quantity consumption of mobile terminal is too fast, flying power reduces, slow down the electric quantity consumption of mobile terminal, enhance the flying power of mobile terminal.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.