CN104808766A - Terminal - Google Patents

Terminal Download PDF

Info

Publication number
CN104808766A
CN104808766A CN201510147368.5A CN201510147368A CN104808766A CN 104808766 A CN104808766 A CN 104808766A CN 201510147368 A CN201510147368 A CN 201510147368A CN 104808766 A CN104808766 A CN 104808766A
Authority
CN
China
Prior art keywords
terminal
application processor
dump energy
waken
application
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.)
Pending
Application number
CN201510147368.5A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510147368.5A priority Critical patent/CN104808766A/en
Publication of CN104808766A publication Critical patent/CN104808766A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a terminal in an embodiment. The terminal comprises an acquisition unit for obtaining a lock corresponding to a target application awakening an application processor when the terminal detects that the application processor is awakened, a statistical unit for collecting the duration when the application processor is awakened, a determination unit for determining whether the duration when the application processor is awakened reaches a preset time threshold, and a control unit for releasing the lock corresponding to the target application when the determination result of the determination unit is yes and then enabling the application processor to enter a sleep state. The terminal is capable of reducing the power consumption.

Description

A kind of terminal
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of terminal.
Background technology
Along with constantly popularizing of intelligent terminal, the application on intelligent terminal constantly increases.In order to complete the function of application self, when intelligent terminal is in sleep state, in intelligent terminal, certain applications can wake application processor (Application Processor, referred to as AP) up by arranging RTC (Real-Time Clock real-time clock).After application processor is waken up, need through again sleep state could be entered after a while.Wherein, application processor is the VLSI (very large scale integrated circuit) expanding audio frequency and video function and special purpose interface on the basis of low power consumption CPU (Center Process Unit, central processing unit).
At present, some terminal repeatedly wakes to apply different application the problem that application processor causes power consumption of terminal bigger than normal up, have employed alignment awakening technology to reduce the number of times that various application wakes application processor up, thus reduces stand-by power consumption.
But practice finds, by neat awakening technology, although the number of times that application wakes application processor up can be reduced, after but application processor is waken up, application may be there is due to specific reasons (the too much or network state of content upgraded as needed is poor) and server interaction overlong time, thus cause intelligent terminal stand-by power consumption excessive.
Summary of the invention
Embodiments provide a kind of terminal, can power consumption of terminal be reduced.
Embodiments provide a kind of terminal, comprising:
Acquiring unit, for when described terminal detects that application processor is waken up, obtains and wakes lock corresponding to the intended application of described application processor up;
Statistic unit, for adding up the duration that described application processor is waken up;
Judging unit, for judging whether the duration that described application processor is waken up reaches preset time threshold;
Control module, for when the judged result of described judging unit is for reaching, discharges the lock that described intended application is corresponding, enters sleep state to make described application processor.
In the embodiment of the present invention, when terminal detects that application processor is waken up, can be obtained by acquiring unit and wake lock corresponding to the intended application of application processor up, and by duration that statistic unit statistics application processor is waken up, and then can judge whether the duration that application processor is waken up reaches preset time threshold by judging unit, when the judged result of judging unit is for reaching, lock corresponding to described intended application can be discharged by control module, sleep state is entered to make application processor, thus, effectively can reduce power consumption of terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of terminal control method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of terminal control method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the another kind of terminal control method that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the another kind of terminal control method that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, 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.
Embodiments provide a kind of terminal, can power consumption of terminal be reduced.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of terminal control method that the embodiment of the present invention provides.As shown in Figure 1, this terminal control method can comprise the following steps:
S101, when detecting that application processor is waken up, obtaining and waking lock corresponding to the intended application of this application processor up.
In the embodiment of the present invention, above-mentioned terminal can include but not limited to smart mobile phone, panel computer, palm PC etc., and the embodiment of the present invention is follow-up no longer to be repeated.
In the embodiment of the present invention, when terminal is in sleep state, the certain applications in terminal can wake application processor up by the mode arranging RTC.
When terminal detects that application processor is waken up, this terminal can pass through a concrete process, obtain the bag name being waken up the intended application of application processor by RTC, and obtain according to the bag name of this intended application the lock (Lock) that this intended application applies for; Wherein, this lock also can be called wake lock (waking lock up), is in wake-up states for controlling application processor, and when this lock is released, application processor will enter sleep state.
S102, add up the duration that this application processor is waken up.
In the embodiment of the present invention, after terminal detects that application processor is waken up, terminal can duration of being waken up of statistics application processor.
For example, when terminal detects that application processor is waken up, terminal can start a timer, the duration be waken up by this timer statistics application processor.
S103, judge whether the duration that application processor is waken up reaches preset time threshold.If be judged as YES, go to step S104; Otherwise, go to step S102.
The lock that S104, release intended application are corresponding, enters sleep state to make application processor.
In the embodiment of the present invention, consider that application processor is in the power consumption that wake-up states will strengthen terminal for a long time, thus, in order to reduce power consumption of terminal, improve the flying power of terminal, a time threshold (can set according to actual conditions, as 2 minutes, 5 minutes etc.) can be preset, if the duration that application processor is waken up is when reaching this preset time threshold, control application processor is entered sleep state by terminal.
Correspondingly, in embodiments of the present invention, after the duration that terminal statistics application processor is waken up, can judge whether the duration that application processor is waken up reaches preset time threshold, and when the duration that application processor is waken up reaches preset time threshold, terminal can discharge lock corresponding to intended application, enters sleep state to control application processor.
In the embodiment of the present invention, if the duration that application processor is waken up does not reach preset time threshold, terminal can process according to existing treatment mechanism.Wherein, if the duration that application processor is waken up does not reach preset time threshold, and lock corresponding to intended application is not released, then terminal continues the duration that statistics application processor is waken up, until the duration that application processor is waken up reaches preset time threshold, or lock corresponding to intended application is released; If the duration that application processor is waken up does not reach preset time threshold, and lock corresponding to intended application is released, then terminal control application processor enters sleep state.
Visible, in the method flow described by Fig. 1, if when detecting that application processor is waken up, the duration that can be waken up by statistics application processor, and when the duration that application processor is waken up reaches preset time threshold, release wakes lock corresponding to the intended application of application processor up, enters sleep state to control application processor, thus, effectively can reduce power consumption of terminal.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of a kind of terminal control method that the embodiment of the present invention provides.As shown in Figure 2, this terminal control method can comprise the following steps:
S201, when detecting that application processor is waken up, judging that terminal is current and whether being in charged state.If be in, go to step S206; Otherwise, go to step S202.
In the embodiment of the present invention, consider when terminal is in charged state, can not worry that electric quantity consumption causes affecting the normal use of terminal, when namely terminal is in charged state, the duration that application processor is in wake-up states can not be limited.
Correspondingly, in embodiments of the present invention, when terminal detects that application processor is waken up, terminal can judge that terminal is current and whether be in charged state.If terminal judges terminal is in charged state, terminal can perform step S206; Otherwise terminal can perform step S202 ~ step S205.
S202, obtain and wake lock corresponding to the intended application of application processor up.
The duration that S203, statistics application processor are waken up.
S204, judge whether the duration that application processor is waken up reaches preset time threshold.If reach, go to step S205; Otherwise, go to step S203.
The lock that S205, release intended application are corresponding, enters sleep state to make application processor.
In the embodiment of the present invention, the specific implementation of step S202 ~ step S205 can see the associated description in above-mentioned steps S101 ~ step S104, and the embodiment of the present invention does not repeat them here.
S206, maintenance application processor are wake-up states, until terminal charge state terminates, or lock corresponding to intended application is released.
In the embodiment of the present invention, when terminal detects that application processor is waken up, and when judging that terminal is in charged state, terminal can not need the duration to application processor is waken up to carry out extra restriction.
As the optional embodiment of one, in embodiments of the present invention, if terminal detects that application processor is waken up, and judge that terminal is current and be in charged state, then terminal can keep application processor to be wake-up states, until terminal charge state terminates.
In this optional embodiment, when terminal is in charged state, after application processor is waken up, wake-up states will be in always, until at the end of terminal charge state, terminal can control application processor and enter sleep state, thus, the intended application waking this application processor up can have time enough and server to carry out alternately, with the corresponding function (as information updating, software upgrading etc.) of realize target application; Meanwhile, when other application needs with server interaction in terminal, can not need to wake application processor up again, improve the efficiency of application and server interaction.
As the optional embodiment of another kind, in embodiments of the present invention, if terminal detects that application processor is waken up, and judge that terminal is current and be in charged state, then terminal can keep application processor to be wake-up states, until the lock of intended application is released.
In this optional embodiment, when terminal is in charged state, after application processor is waken up, wake-up states can be in always, until when lock corresponding to the intended application waking this application processor up is released (intended application initiatively discharges the lock applied for), terminal can control application processor and enter sleep state, thus, the intended application waking this application processor up can have time enough and server to carry out alternately, with the corresponding function (as information updating, software upgrading etc.) of realize target application.
Visible, in the method flow described by Fig. 2, if when detecting that application processor is waken up, can judge whether terminal is in charged state, if be not in, the duration that can be waken up by statistics application processor, and when the duration that application processor is waken up reaches preset time threshold, release wakes lock corresponding to the intended application of application processor up, enters sleep state to control application processor, thus, effectively can reduce power consumption of terminal; If be in, application processor can be kept to be wake-up states, until lock corresponding to intended application is released or terminal charge state terminates, thus intended application can have time enough and server to carry out alternately.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of a kind of terminal control method that the embodiment of the present invention provides.As shown in Figure 3, this terminal control method can comprise the following steps:
S301, when detecting that application processor is waken up, judge whether the current dump energy of terminal exceedes default dump energy threshold value.If exceed, go to step S306; Otherwise, go to step S302.
In the embodiment of the present invention, consider when the dump energy of terminal is lower, application processor is in wake-up states for a long time can aggravate terminal power consumption, affect terminal standby time, and then affect the normal use of terminal, therefore, a dump energy threshold value can be preset (can set according to actual conditions, as 60%, 50% etc.), when the dump energy of terminal is lower than this default dump energy threshold value, need the duration to application processor is waken up to limit.
Correspondingly, in embodiments of the present invention, when terminal detects that application processor is waken up, terminal can judge whether the current dump energy of terminal exceedes default dump energy threshold value.If terminal judges current residual electricity exceedes default dump energy threshold value, terminal can perform step S306; Otherwise terminal can perform step S302 ~ step S305.
S302, obtain and wake lock corresponding to the intended application of application processor up.
The duration that S303, statistics application processor are waken up.
S304, judge whether the duration that application processor is waken up reaches preset time threshold.If reach, go to step S305; Otherwise, go to step S303.
The lock that S305, release intended application are corresponding, enters sleep state to make application processor.
In the embodiment of the present invention, the specific implementation of step S302 ~ step S305 can see the associated description in above-mentioned steps S101 ~ step S104, and the embodiment of the present invention does not repeat them here.
S306, maintenance application processor are wake-up states, until lock corresponding to intended application is released, or the dump energy of terminal is lower than another default dump energy threshold value; Wherein, this another default dump energy threshold value is less than or equal to default dump energy threshold value.
In the embodiment of the present invention, when terminal detects that application processor is waken up, and when judging that terminal exceedes default dump energy threshold value, terminal can not need the duration to application processor is waken up to carry out extra restriction.
As the optional embodiment of one, in embodiments of the present invention, if terminal detects that application processor is waken up, and judge that current dump energy exceedes default dump energy threshold value, then terminal can keep application processor to be wake-up states, until dump energy is less than or equal to another default dump energy threshold value.
In this optional embodiment, when terminal is in charged state, after application processor is waken up, wake-up states will be in, until the dump energy of terminal is less than or equal to another default dump energy threshold value always.Wherein, this another default dump energy threshold value is less than or equal to above-mentioned default dump energy threshold value.
For example, suppose that presetting dump energy threshold value is 50%, this another default dump energy threshold value is 30%, then when terminal detects that application processor is waken up, terminal can judge whether current residual electricity exceedes default dump energy threshold value (50%), suppose that terminal current residual electricity was 60% (namely exceeding default dump energy threshold value), then terminal can keep application processor to be wake-up states, until the dump energy of terminal less than or equal to 30% time, terminal can control application processor and enter sleep state.
As the optional embodiment of another kind, in embodiments of the present invention, if terminal detects that application processor is waken up, and judge that current residual electricity exceedes default dump energy threshold value, then terminal can keep application processor to be wake-up states, until the lock of intended application is released.
In this optional embodiment, when terminal residual electricity exceedes default dump energy, after application processor is waken up, wake-up states can be in always, until when lock corresponding to the intended application waking this application processor up is released (intended application initiatively discharges the lock applied for), terminal can control application processor and enter sleep state, thus, the intended application waking this application processor up can have time enough and server to carry out alternately, with the corresponding function (as information updating, software upgrading etc.) of realize target application.
Visible, in the method flow described by Fig. 3, if when detecting that application processor is waken up, can judge whether the current dump energy of terminal exceedes default dump energy threshold value, if do not exceed, the duration that can be waken up by statistics application processor, and when the duration that application processor is waken up reaches preset time threshold, release wakes lock corresponding to the intended application of application processor up, enters sleep state to control application processor, thus, effectively can reduce power consumption of terminal; If exceed, application processor can be kept to be wake-up states, until lock corresponding to intended application is released or the dump energy of terminal less than or equal to another default dump energy threshold value, thus, ensureing under the prerequisite that terminal normally uses, ensureing that intended application can have time enough and server to carry out alternately as far as possible.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of a kind of terminal control method that the embodiment of the present invention provides.As shown in Figure 4, this terminal control method can comprise the following steps:
S401, when detecting that application processor is waken up, judging that terminal is current and whether being in charged state.If be in, go to step S408; Otherwise, go to step S402.
In the embodiment of the present invention, consider when terminal is in charged state, can not worry that electric quantity consumption causes affecting the normal use of terminal, when namely terminal is in charged state, the duration that application processor is in wake-up states can not be limited.
Correspondingly, in embodiments of the present invention, when terminal detects that application processor is waken up, terminal can judge that terminal is current and whether be in charged state.If terminal judges terminal is in charged state, terminal can perform step S408; Otherwise terminal can perform step S402 ~ step S407.
S402, judge whether the current dump energy of terminal exceedes default dump energy threshold value; If be judged as YES, go to step S407, otherwise, go to step S403;
In the embodiment of the present invention, consider when the dump energy of terminal is lower, application processor is in wake-up states for a long time can aggravate terminal power consumption, affect terminal standby time, and then affect the normal use of terminal, therefore, a dump energy threshold value can be preset (can set according to actual conditions, as 60%, 50% etc.), when the dump energy of terminal is lower than this default dump energy threshold value, need the duration to application processor is waken up to limit.
Correspondingly, in embodiments of the present invention, when terminal detects that application processor is waken up, and when terminal is not in charged state, terminal can judge whether the current dump energy of terminal exceedes default dump energy threshold value further.If terminal judges current residual electricity exceedes default dump energy threshold value, terminal can perform step S407; Otherwise terminal can perform step S403 ~ step S406.
S403, obtain and wake lock corresponding to the intended application of application processor up.
The duration that S404, statistics application processor are waken up.
S405, judge whether the duration that application processor is waken up reaches preset time threshold.If reach, go to step S406; Otherwise, go to step S404.
The lock that S406, release intended application are corresponding, enters sleep state to make application processor.
In the embodiment of the present invention, the specific implementation of step S403 ~ step S406 can see the associated description in above-mentioned steps S101 ~ step S104, and the embodiment of the present invention does not repeat them here.
S407, maintenance application processor are wake-up states, until lock corresponding to intended application is released, or the dump energy of terminal is lower than another default dump energy threshold value; Wherein, this another default dump energy threshold value is less than or equal to default dump energy threshold value.
In the embodiment of the present invention, the specific implementation of step S407 see the associated description in the method flow described by Fig. 3, can not repeat them here.
S408, maintenance application processor are wake-up states, until terminal charge state terminates, or lock corresponding to intended application is released.
In the embodiment of the present invention, the specific implementation of step S408 see the associated description in the method flow described by Fig. 2, can not repeat them here.
By describing above and can finding out, in the technical scheme that the embodiment of the present invention provides, when detecting that application processor is waken up, the duration that can be waken up by statistics application processor, and when the duration that application processor is waken up reaches preset time threshold, release wakes lock corresponding to the intended application of application processor up, enters sleep state to control application processor, thus, effectively can reduce power consumption of terminal.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides.As shown in Figure 5, this terminal can comprise:
Acquiring unit 501, for when described terminal detects that application processor is waken up, obtains and wakes lock corresponding to the intended application of described application processor up;
Statistic unit 502, for adding up the duration that described application processor is waken up;
Judging unit 503, for judging whether the duration that described application processor is waken up reaches preset time threshold;
Control module 504, for when the judged result of described judging unit 503 is for reaching, discharging the lock that described intended application is corresponding, entering sleep state to make described application processor.
In the embodiment of the present invention, above-mentioned terminal can include but not limited to smart mobile phone, panel computer, palm PC etc.
In the embodiment of the present invention, when terminal detects that application processor is waken up, on the one hand, can be obtained by acquiring unit 501 and wake lock corresponding to the intended application of application processor up, on the other hand, the duration that can also be waken up by statistic unit 502 statistics application processor, and judge whether the duration that application processor is waken up reaches preset time threshold by judging unit 503.
When the judged result of judging unit 503 is for reaching, judging unit 503 can enable control module 504; Control module 504, after judging unit 503 is enable, can discharge the lock that intended application is corresponding, enters sleep state to control application processor.
Alternatively, described acquiring unit 501, can wake the bag name of the intended application of described application processor up specifically for obtaining, and obtains according to the bag name of described intended application the lock that described intended application applies for.
In the embodiment of the present invention, acquiring unit 501 can pass through a concrete process, obtains the bag name being waken up the intended application of application processor by RTC, and obtains according to the bag name of this intended application the lock that this intended application applies for.
In a kind of embodiment, described judging unit 503, can also be used for, when described terminal detects that application processor is waken up, judging whether described terminal is in charged state;
Described acquiring unit 501, specifically for when the judged result of described judging unit 503 is not for being in, can obtains and waking lock corresponding to the intended application of described application processor up.
In this embodiment, consider when terminal is in charged state, can not worry that electric quantity consumption causes affecting the normal use of terminal, when namely terminal is in charged state, the duration that application processor is in wake-up states can not be limited.
Correspondingly, when terminal detects that application processor is waken up, by judging unit 503, terminal first can judge whether terminal is in charged state; When judging unit 503 judges that terminal is not in charged state, judging unit 503 enable acquiring unit 501 can obtain lock corresponding to the intended application of waking application processor up.
Alternatively, described control module 504, can also be used for, when the judged result of described judging unit 503 is for being in, keeping described application processor to be wake-up states, until terminal charge state terminates or until lock corresponding to described intended application is released.
In this embodiment, when judging unit 503 judges that terminal is in charged state, judging unit 503 can enable control module 504; Control module 504, after judging unit 503 is enable, can keep application processor to be wake-up states, until terminal charge state terminates or until when lock corresponding to described intended application is released, controls application processor and enter sleep state.
Alternatively, described judging unit 503, can also be used for when judging that described terminal is not in charged state, judges whether the current dump energy of described terminal exceedes default dump energy threshold value;
Described acquiring unit 501, specifically for when the judged result of described judging unit 503 is not for exceeding, can obtains and waking lock corresponding to the intended application of described application processor up.
In this embodiment, consider when the dump energy of terminal is lower, application processor is in wake-up states for a long time can aggravate terminal power consumption, affect terminal standby time, and then affect the normal use of terminal, therefore, a dump energy threshold value can be preset (can set according to actual conditions, as 60%, 50% etc.), when the dump energy of terminal is lower than this default dump energy threshold value, need the duration to application processor is waken up to limit.
Correspondingly, when judging unit 503 judges that terminal is not in charged state, can judge whether the current dump energy of terminal exceedes default dump energy threshold value further, and when judged result is not for exceeding, judging unit 503 enable acquiring unit 501 can obtain lock corresponding to the intended application of waking application processor up.
In another kind of embodiment, described judging unit 503, can also be used for when described terminal detects that application processor is waken up, and judges whether the current dump energy of described terminal exceedes default dump energy threshold value;
Described acquiring unit 501, specifically for when the judged result of described judging unit 503 is not for exceeding, can obtains and waking lock corresponding to the intended application of described application processor up.
In this embodiment, when terminal detects that application processor is waken up, first can judge whether the current dump energy of terminal exceedes default dump energy threshold value by judging unit 503.When judging unit 503 judges that the current dump energy of terminal does not exceed default dump energy threshold value, judging unit 503 can obtain lock corresponding to the intended application of waking application processor up by enable acquiring unit 501.
Alternatively, described control module 504, can also be used for, when the judged result of described judging unit 503 is for exceeding, keeping described application processor to be wake-up states, until lock corresponding to described intended application is released or until the dump energy of described terminal is lower than another default dump energy threshold value; Wherein, another default dump energy threshold value described is less than or equal to described default dump energy threshold value.
In the embodiment of the present invention, when judging unit 503 judges that the current dump energy of terminal does not exceed default dump energy threshold value, or judge that terminal is not in charged state when judging unit 503, and and when current dump energy does not exceed default dump energy threshold value, can enable control module 504; Control module 504, after judging unit 503 is enable, can keep application processor to be wake-up states, until lock corresponding to intended application is released or the dump energy of terminal lower than another default dump energy threshold value time, control application processor and enter sleep state.
Refer to Fig. 6, the structural representation of the another kind of terminal that Fig. 6 provides for the embodiment of the present invention, as shown in Figure 6, this terminal comprises: at least one processor 601, such as CPU, at least one user interface 603, storer 604, at least one communication bus 602.Wherein, communication bus 602 is for realizing the connection communication between these assemblies.Wherein, user interface 603 can comprise display screen (Display), keyboard (Keyboard), and optional user interface 603 can also comprise wireline interface, the wave point of standard.Storer 604 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as at least one magnetic disk memory.Storer 604 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 601.Wherein processor 601 can terminal described in conjunction with Figure 5, stores batch processing code in storer 604, and processor 601 calls the program code stored in storer 604, for performing following operation:
When detecting that application processor is waken up, obtaining and waking lock corresponding to the intended application of described application processor up;
Add up the duration that described application processor is waken up;
Judge whether the duration that described application processor is waken up reaches preset time threshold;
If reach, discharge the lock that described intended application is corresponding, enter sleep state to make described application processor.
In an alternative embodiment, when detecting that application processor is waken up, processor 601 calls before the program code stored in storer 604 obtains and wake lock corresponding to the intended application of described application processor up, can also perform following operation:
Judge whether terminal is in charged state;
If be not in, perform the step that described acquisition wakes lock corresponding to the intended application of described application processor up.
In an alternative embodiment, processor 601 call in storer 604 store program code judge whether terminal is in charged state after, following operation can also be performed:
If be in, described application processor is kept to be wake-up states, until terminal charge state terminates.
In an alternative embodiment, processor 601 call in storer 604 store program code judge whether terminal is in charged state after, following operation can also be performed:
If be in, described application processor is kept to be wake-up states, until lock corresponding to described intended application is released.
In an alternative embodiment, if described terminal is not in charged state, processor 601 calls the program code stored in storer 604 and performs before described acquisition wakes the step of lock corresponding to the intended application of described application processor up, can also perform following operation:
Judge whether the current dump energy of terminal exceedes default dump energy threshold value;
If do not exceed, perform the step that described acquisition wakes lock corresponding to the intended application of described application processor up.
In an alternative embodiment, when detecting that application processor is waken up, processor 601 calls before the program code stored in storer 604 obtains and wake lock corresponding to the intended application of described application processor up, can also perform following operation:
Judge whether the current dump energy of terminal exceedes default dump energy threshold value;
If do not exceed, perform the step that described acquisition wakes lock corresponding to the intended application of described application processor up.
In an alternative embodiment, processor 601 calls after the program code stored in storer 604 judges whether the current dump energy of terminal exceedes default dump energy threshold value, can also perform following operation:
If exceed, described application processor is kept to be wake-up states, until lock corresponding to described intended application is released.
In an alternative embodiment, processor 601 calls after the program code stored in storer 604 judges whether the current dump energy of terminal exceedes default dump energy threshold value, can also perform following operation:
If exceed, described application processor is kept to be wake-up states, until the dump energy of terminal is lower than another default dump energy threshold value; Wherein, another default dump energy threshold value described is less than or equal to described default dump energy threshold value.
In an alternative embodiment, processor 601 calls the program code stored in storer 604 and obtains and wake lock corresponding to the intended application of described application processor up, can specifically comprise:
Obtain and wake the bag name of the intended application of described application processor up, and obtain according to the bag name of described intended application the lock that described intended application applies for.
Concrete, the terminal introduced in the present embodiment can implement the part or all of flow process in the embodiment of the terminal control method that composition graphs 1 to Fig. 4 of the present invention introduces.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal or equipment or subelement can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can carry out the device-dependent hardware of command terminal by program to have come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Above a kind of terminal that the embodiment of the present invention provides is described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (9)

1. a terminal, is characterized in that, comprising:
Acquiring unit, for when described terminal detects that application processor is waken up, obtains and wakes lock corresponding to the intended application of described application processor up;
Statistic unit, for adding up the duration that described application processor is waken up;
Judging unit, for judging whether the duration that described application processor is waken up reaches preset time threshold;
Control module, for when the judged result of described judging unit is for reaching, discharges the lock that described intended application is corresponding, enters sleep state to make described application processor.
2. terminal as claimed in claim 1, is characterized in that,
Described judging unit, also for when described terminal detects that application processor is waken up, judges whether described terminal is in charged state;
Described acquiring unit, specifically for when the judged result of described judging unit is not for being in, obtains and waking lock corresponding to the intended application of described application processor up.
3. terminal as claimed in claim 2, is characterized in that,
Described control module, also for when the judged result of described judging unit is for being in, keeps described application processor to be wake-up states, until terminal charge state terminates.
4. terminal as claimed in claim 2, is characterized in that,
Described control module, also for when the judged result of described judging unit is for being in, keeps described application processor to be wake-up states, until lock corresponding to described intended application is released.
5. terminal as claimed in claim 2, is characterized in that,
Described judging unit, also for when judging that described terminal is not in charged state, judges whether the current dump energy of described terminal exceedes default dump energy threshold value;
Described acquiring unit, specifically for when the judged result of described judging unit is not for exceeding, obtains and waking lock corresponding to the intended application of described application processor up.
6. terminal as claimed in claim 1, is characterized in that,
Described judging unit, also for when described terminal detects that application processor is waken up, judges whether the current dump energy of described terminal exceedes default dump energy threshold value;
Described acquiring unit, specifically for when the judged result of described judging unit is not for exceeding, obtains and waking lock corresponding to the intended application of described application processor up.
7. the terminal as described in claim 5 or 6, is characterized in that,
Described control module, also for when the judged result of described judging unit is for exceeding, keeps described application processor to be wake-up states, until lock corresponding to described intended application is released.
8. the terminal as described in claim 5 or 6, is characterized in that,
Described control module, also for when the judged result of described judging unit is for exceeding, keeps described application processor to be wake-up states, until the dump energy of described terminal is lower than another default dump energy threshold value; Wherein, another default dump energy threshold value described is less than or equal to described default dump energy threshold value.
9. terminal as claimed in claim 1, is characterized in that,
Described acquiring unit, wakes the bag name of the intended application of described application processor up specifically for obtaining, and obtains according to the bag name of described intended application the lock that described intended application applies for.
CN201510147368.5A 2015-03-31 2015-03-31 Terminal Pending CN104808766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510147368.5A CN104808766A (en) 2015-03-31 2015-03-31 Terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510147368.5A CN104808766A (en) 2015-03-31 2015-03-31 Terminal

Publications (1)

Publication Number Publication Date
CN104808766A true CN104808766A (en) 2015-07-29

Family

ID=53693675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510147368.5A Pending CN104808766A (en) 2015-03-31 2015-03-31 Terminal

Country Status (1)

Country Link
CN (1) CN104808766A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807894A (en) * 2016-03-22 2016-07-27 北京小米移动软件有限公司 Processing method and device of lock holding of application
CN105867577A (en) * 2015-12-04 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal awakening method and terminal
CN106775685A (en) * 2016-12-01 2017-05-31 北京奇虎科技有限公司 Wake up lock method for releasing and device, mobile terminal
CN108171948A (en) * 2017-12-08 2018-06-15 北京臻迪科技股份有限公司 A kind of underwater robot base station and underwater robot system
WO2020088650A1 (en) * 2018-11-01 2020-05-07 华为技术有限公司 Application processor awakening method and device applied to mobile terminal
US11907041B2 (en) 2018-11-01 2024-02-20 Huawei Technologies Co., Ltd. Application processor wakeup method and apparatus applied to mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296028A1 (en) * 2009-02-17 2011-12-01 Panasonic Corporation Exclusive control method of resource and exclusive controller of resource
CN103402027A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN104166542A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Method and device for detecting electricity consumption of application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296028A1 (en) * 2009-02-17 2011-12-01 Panasonic Corporation Exclusive control method of resource and exclusive controller of resource
CN104166542A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Method and device for detecting electricity consumption of application
CN103402027A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867577A (en) * 2015-12-04 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal awakening method and terminal
CN105807894A (en) * 2016-03-22 2016-07-27 北京小米移动软件有限公司 Processing method and device of lock holding of application
CN106775685A (en) * 2016-12-01 2017-05-31 北京奇虎科技有限公司 Wake up lock method for releasing and device, mobile terminal
CN108171948A (en) * 2017-12-08 2018-06-15 北京臻迪科技股份有限公司 A kind of underwater robot base station and underwater robot system
WO2020088650A1 (en) * 2018-11-01 2020-05-07 华为技术有限公司 Application processor awakening method and device applied to mobile terminal
US11907041B2 (en) 2018-11-01 2024-02-20 Huawei Technologies Co., Ltd. Application processor wakeup method and apparatus applied to mobile terminal

Similar Documents

Publication Publication Date Title
CN104808767A (en) Terminal control method
CN104808766A (en) Terminal
CN109803359B (en) Method for awakening terminal system and terminal
EP2977854B1 (en) Method, apparatus, and user terminal for removing malicious power consuming application
US10057856B2 (en) Wake-up control method and apparatus, and terminal device
CN103324500B (en) A kind of method and device reclaiming internal memory
CN104166542A (en) Method and device for detecting electricity consumption of application
CN105072292A (en) Application control method and terminal
CN110018901B (en) Memory recovery method and device, computer equipment and computer readable storage medium
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
CN103118188A (en) Application heartbeat cycle adjusting method and device, and terminal
CN102651785A (en) Remote wakeup of application processor of mobile device
EP2757839A1 (en) Power management method and apparatus for network access module
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN110021792B (en) Charging control method and device, terminal equipment and computer storage medium
CN105373207A (en) Standby method of wireless communication terminal
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN102957811B (en) Radio frequency subscriber identity module (SIM) card with regular awakening function and implementation method of card
CN106533763A (en) Method and device for downloading application update package and user terminal
CN104219747B (en) Method, device and terminal for adjusting wake-up time according to electric quantity information
CN106022108A (en) Synchronous management method and terminal device
CN112711387A (en) Method and device for adjusting capacity of buffer area, electronic equipment and readable storage medium
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN104699224A (en) Power-saving control method
CN104427133A (en) Communication-terminal standby electricity-saving control method and control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150729