CN103885565B - The dormancy method and system of smart machine - Google Patents
The dormancy method and system of smart machine Download PDFInfo
- Publication number
- CN103885565B CN103885565B CN201210563549.2A CN201210563549A CN103885565B CN 103885565 B CN103885565 B CN 103885565B CN 201210563549 A CN201210563549 A CN 201210563549A CN 103885565 B CN103885565 B CN 103885565B
- Authority
- CN
- China
- Prior art keywords
- lock
- state
- smart machine
- dormancy
- wake
- 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.)
- Expired - Fee Related
Links
- 230000005059 dormancy Effects 0.000 title claims abstract description 115
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000002618 waking effect Effects 0.000 claims abstract description 54
- 230000000284 resting effect Effects 0.000 claims abstract description 38
- 244000078534 Vaccinium myrtillus Species 0.000 claims description 10
- 235000003095 Vaccinium corymbosum Nutrition 0.000 claims description 4
- 235000017537 Vaccinium myrtillus Nutrition 0.000 claims description 4
- 235000021014 blueberries Nutrition 0.000 claims description 4
- 230000007958 sleep Effects 0.000 claims description 2
- 235000021028 berry Nutrition 0.000 claims 1
- 230000000694 effects Effects 0.000 description 10
- BYACHAOCSIPLCM-UHFFFAOYSA-N 2-[2-[bis(2-hydroxyethyl)amino]ethyl-(2-hydroxyethyl)amino]ethanol Chemical compound OCCN(CCO)CCN(CCO)CCO BYACHAOCSIPLCM-UHFFFAOYSA-N 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 230000002939 deleterious effect Effects 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006266 hibernation Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The present invention relates to smart machine, the dormancy method and system of a kind of smart machine are disclosed.In the present invention, locked by being waken up for application assigned, when smart machine needs to enter forced dormancy state, discharge all lock-out states for waking up lock, so that no matter which kind of state current device is in, as long as user needs, smart machine can enter resting state.In addition, by doing weak reference backup to waking up lock when distribution wakes up lock, and realized by the operation of the weak reference to wake-up lock to waking up the operation locked, it is ensured that the reliable and stable operation of smart machine.
Description
Technical field
The present invention relates to the dormancy method and system of smart machine, more particularly to smart machine.
Background technology
As the function of Android (Andriod) system is progressively powerful and perfect, as well as the developer of Android system
The powerful strength of Google companies and major scheme company (such as:QualCom company) tripartite confrontation help, so as to be currently based on
The smart machine of Android system is not more with covering the sky and the earth to describe;In addition also most importantly, by
It is not only cheap in the smart machine based on Android, and apply support it is also extremely wide (such as:GoogleMarket),
So as to which Android intelligent equipment is popular with the masses of users and pursued.
Just because the popularization degree of Android device is very wide, and nearly all field has corresponding application to prop up
Support, then the face that user can select just become widely, be exactly in simple terms current Android intelligent equipment almost
Through omnipotent;This one side for being, it is the developer from global all corners of the country to be applied yet with these, their skill
Art ability and developing background and purpose are all not quite similar, so as to inevitably have malice power consumption program or function and stability all
The presence of imperfection program, then these programs are just likely to cause machine not enter in the case of intentionally or accidentally
Enter resting state, and once this occurs, from the point of view of existing system situation, remove equipment close the mode restarted with
Outside, it is just at one's wit's end;If that like this, once run into equipment can not dormancy situation, as long as equipment is not shut down
The higher state of power consumption will be constantly in by restarting.That is, when equipment is under the situation in the screen that goes out, if without true
Normal incidence enters resting state, then now the power consumption of equipment can be very high.So, how long have more than is needed, the electricity of battery is just
Deplete.Although user originally thinks equipment, current power consumption should be very low, i.e., all go out shielded equipment should be unable to very power consumption, can
It is true really not so, so, it certainly will cause user can be excessively poor to the experience effect of equipment.
Research and development and manufacturer as Android intelligent equipment, when user once run into equipment can not dormancy situation when,
The solution for how providing the user with complete set is very important.Consequently, it is possible to as long as user thinks oneself
Following this of equipment enters resting state, rather than merely enters death of monks or nuns screen state, just has meter to apply;Importantly,
Experience effect of the user to equipment can be not only improved, and can also greatly improve the service life of battery.
The content of the invention
It is an object of the invention to provide a kind of dormancy method of smart machine and system so that no matter current device is in
Which kind of state, as long as user needs, smart machine can enter resting state.
In order to solve the above technical problems, embodiments of the present invention provide a kind of dormancy method of smart machine, comprising
Following steps:
A. application requests obtain locks for preventing the smart machine from entering the wake-up of resting state;
B. lock is waken up for the application assigned, and sets the wake-up lock to be in the lock state;
C. when the smart machine enters death of monks or nuns screen state, judge whether the smart machine needs to enter forced dormancy shape
State;
If it is determined that D. the smart machine needs to enter forced dormancy state, then judge currently whether there is wake-up lock to be in
Lock-out state;
E. it is in the lock state if waking up lock, then discharges the lock-out state for waking up and locking, and return to the step
D, determine whether currently whether there is wake-up lock to be in the lock state;
F. it is in the lock state if not waking up lock, then the smart machine enters resting state.
Embodiments of the present invention additionally provide a kind of sleeping system of smart machine, comprising:Wake up lock controller, screen
Status monitor, forced dormancy operational control device;
The lock controller that wakes up is obtained for preventing the smart machine from entering resting state in application requests
When waking up lock, lock is waken up for the application assigned, and sets the wake-up lock to be in the lock state;
The screen state monitor monitors whether the smart machine enters death of monks or nuns screen state, and enters in the smart machine
During death of monks or nuns screen state, judge whether the smart machine needs to enter forced dormancy state;
The forced dormancy operational control device judges that the smart machine needs to enter by force in the screen state monitor
During resting state processed, judge currently whether there is wake-up lock to be in the lock state;And when there is wake-up lock to be in the lock state, request
The power management services program release lock-out state for waking up lock;
The smart machine enters when the forced dormancy operational control device judges to be in the lock state without wake-up lock
Resting state.
Embodiment of the present invention in terms of existing technologies, is locked, in smart machine by being waken up for application assigned
When needing to enter forced dormancy state, the lock-out state of all wake-up locks is discharged, so that no matter what current device is in
Kind state, as long as user needs, smart machine can enter resting state.
In addition, in the step B, also comprise the steps of:
The backup of weak reference is done to the lock that wakes up, and sets the weak reference for waking up lock to be in the lock state;
It is current to judge by judging that the current weak reference for whether having wake-up to lock is in the lock state in the step D
Whether there is wake-up lock to be in the lock state;
In the step E, if the weak reference for waking up lock is in the lock state, then power management services program is asked
The weak reference for waking up the lock-out state of lock, while also deleting the wake-up lock is discharged, and determines whether currently whether have
The weak reference for waking up lock is in the lock state;
In the step F, if the weak reference for not waking up lock is in the lock state, the smart machine, which enters, stops
Dormancy state.
, may be to carrying out deleterious effect using program tape because directly operation wakes up lock, therefore can be by being locked to waking up
Weak reference operation realize to wake up lock operation, to ensure the reliable and stable operation of system.
In addition, in the step C, by judging to cause the state shielded the reason for going out and whether to be forced into dormancy
Value, judges whether the smart machine needs to enter forced dormancy state.
Wherein, described the reason for causing screen to go out, is:Power key is pressed, provides the application for entering forced dormancy status function
Program is activated, system time-out, range sensor sensing go out screen function be activated in any one.Described provide enters pressure
The application program of resting state function includes:Once the screen that goes out is put into forced dormancy state, entered by force by quick touch screen button
Resting state processed.
Various ways are provided, operated for user, smart machine is entered forced dormancy state, improve user
Experience effect, the service life of battery can also be improved.
In addition, when judging whether the smart machine needs to enter forced dormancy state, the smart machine is also judged
State in which, if the smart machine is in what is dialled, converse, playing song, recording from the background
Any one in state, then judge that the smart machine need not enter forced dormancy state.
By set smart machine be in dialling, conversing, playing song, backstage recording state
In any one when, no matter equipment caused by which kind of reason is gone out screen, and system is all without forced dormancy state is entered, so as to ensure
Under these applications, smart machine will not be caused to enter resting state because of the maloperation of user, further improve the body of user
Test effect.
In addition, the operating system of the smart machine be Android Andriod systems, IOS systems, Saipan Symbian system,
Any of WindowsPhone systems, blackberry, blueberry BlackBerryOS systems.The present invention is applied to several operation systems, applies
Extensively.
Brief description of the drawings
Fig. 1 is the flow chart according to the dormancy method of the smart machine of first embodiment of the invention;
Fig. 2 is the flow chart according to the dormancy method of the smart machine of third embodiment of the invention;
Fig. 3 is the sleeping system block schematic illustration according to the smart machine of four embodiment of the invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, each reality below in conjunction with accompanying drawing to the present invention
The mode of applying is explained in detail.However, it will be understood by those skilled in the art that in each embodiment of the present invention,
In order that reader more fully understands the application and proposes many ins and outs.But even if without these ins and outs and base
Many variations and modification in following embodiment, each claim of the application technical side claimed can also be realized
Case.
The first embodiment of the present invention is related to a kind of dormancy method of smart machine.Idiographic flow as shown in figure 1, comprising
Following steps:
Step 101, application requests obtain locks for preventing smart machine from entering the wake-up of resting state.Namely
Say, third party application wakes up lock by obtaining, and system can be prevented to enter resting state, application program is realized so as to reach
The purpose of function itself.Application program in any case can obtain wake-up lock, once but it should be recognized that application program
Functional requirement realize after, application program in itself will can go in time release obtain before wake-up lock lock-out state,
Otherwise the design of the application program in itself is problematic.But it is used as systems design and development personnel, it is impossible to assuming that or relying on
The function of all application programs is all perfect, that is to say, that application program may not discharge what is obtained before in time
Wake up the lock-out state of lock.
Step 102, lock is waken up for application assigned, and sets wake-up lock to be in the lock state.
What deserves to be explained is waking up lock controller by calling power management services program, perform and realize and locked to waking up
The concrete operations for obtaining or discharging, wherein, power management services program is a system-level background service, has been started in system
Operation is just had been started up into rear.
Step 103, judge whether smart machine enters death of monks or nuns screen state, in this way, then perform step 104;If not, continue to supervise
Survey whether smart machine enters death of monks or nuns screen state.
Step 104, judge whether smart machine needs to enter forced dormancy state;In this way, then step 105 is performed;As no,
Then return to step 103, continue to monitor whether smart machine enters death of monks or nuns screen state.
In this step, by judging to cause screen to go out the reason for and the state value that whether be forced into dormancy, judge intelligence
Whether energy equipment needs to enter forced dormancy state.Wherein, the reason for causing screen to go out is:Power key is pressed, provided into strong
The application program of resting state function processed is activated, system time-out, range sensor sensing go out screen function be activated in it is any
It is a kind of.In the present embodiment, system time-out refers to the equipment for being in idle condition, and in the specific time, (time is used
Family can be set) if interior without button or contact action, then system can be automatically into screen and the sleep state of going out.Distance-sensing
Device causes the system screen that goes out to refer to because the function of range sensor causes system to be gone out screen, such as:When making a phone call, mobile phone is placed on ear
Side, it is found that mobile phone goes out screen, and when mobile phone leaves in one's ear, screen and bright.Application into forced dormancy status function is provided
Program includes:Once the screen that goes out is put into forced dormancy state, enters forced dormancy state by quick touch screen button.Offer is provided
Various ways, operated for user, smart machine is entered forced dormancy state, improve the experience effect of user,
The service life of battery can also be improved.
Specifically, user realizes the following function relevant with entering resting state by touch screen and button operation:When
Equipment is allowed to enter death of monks or nuns screen state, second, allow equipment to be forced into resting state, third, it is that in general is gone out in the case of screen to set equipment
Into resting state (such as:Do not dialling operate, do not conversing operate, played without Background music
Operation, the not operation recorded of backstage).Wherein, user's touch screen and button operation refer to, user can pass through power key
Or application program (such as:The application of one key-lock screen, the quick touch screen button into forced dormancy that is provided previously by) provide it is quick
Touch screen button realizes the screen demand of going out of user.This step is mainly that user's active request equipment enters death of monks or nuns screen state, i.e. equipment
It is due to that the active operation of user just enters death of monks or nuns screen state.
And the prompting message to be gone out using screen state monitor receiving screen, and (example the reason for by judging to cause screen to go out
Such as:Power key, time-out, range sensor, other related users go out screen operation) and whether to be forced into the state value of dormancy
To decide whether to perform the operation of forced dormancy.That is, screen state monitor enters death of monks or nuns screen shape receiving screen
During the prompting message of state, can detecting system whether will enter forced dormancy state (such as:User opens the screen that once goes out and is put into
The function of forced dormancy state, user pass through fast into the touch screen button of forced dormancy, as above two operations, in the master of system
Quick touch screen button is both provided on interface), if it does, just calling forced dormancy operational control device to realize corresponding behaviour
Make.
Step 105, judge currently whether there is wake-up lock to be in the lock state, in this way, then perform step 106;Otherwise, perform
Step 107;
Step 106, release wakes up the lock-out state of lock;Return to step 105, continue to judge currently whether there is wake-up lock to be in
Lock-out state.
Step 107, smart machine enters resting state.
After above step, no matter what state is current equipment be, as long as user thinks that equipment enters resting state, just
Resting state can be entered.That is, ought be after the completion of as above all steps are carried out, system can enters normal stop
Dormancy state.So, the current state of system with the desired state of user be as, so as to also just prolong well
The whole stand-by time of long equipment, so that also can steps to a new level for the experience of user, from the aforegoing it can be seen that equipment energy
The no influence for properly entering resting state to Consumer's Experience effect is very big;Moreover, the service life of battery is same
Also substantially prolongs, if same from the point of view of energy-saving and emission-reduction, the saving of the normal hibernation of equipment to social resources
And be of great benefit to.So as to which system can ensure, as long as user needs, no matter when and where which kind of situation, system can
It is so beneficial to everybody into dormancy.
In addition, it will be understood by those skilled in the art that present embodiment can apply to be mounted with Android Andriod systems
Any of system, IOS systems, Saipan Symbian system, WindowsPhone systems, blackberry, blueberry BlackBerryOS systems are grasped
Make the smart machine of system, suitable for several operation systems, be widely used.
Compared with prior art, present embodiment is locked by being waken up for application assigned, needs to enter in smart machine
During forced dormancy state, the lock-out state of all wake-up locks is discharged, so that no matter which kind of state current device is in, only
User is wanted to need, smart machine can enter resting state.
Second embodiment of the present invention is related to a kind of dormancy method of smart machine.Second embodiment is implemented first
Further improvement has been done on the basis of mode, has mainly been theed improvement is that:In second embodiment of the invention, due to directly operating
Wake-up lock, may be to carrying out deleterious effect using program tape, therefore can pass through the operation realization pair of the weak reference to waking up lock
The operation of lock is waken up, to ensure the reliable and stable operation of system.
Specifically, while lock is waken up for application assigned, the backup of weak reference also is done to waking up lock, and set
The weak reference for waking up lock is in the lock state;Correspondingly, after judging that smart machine needs to enter forced dormancy state, pass through
Whether judgement is current has the weak reference for waking up lock to be in the lock state, to judge currently whether have wake-up lock to be in the lock state;
If the weak reference for not waking up lock is in the lock state, the program release of request power management services wakes up the locking shape of lock
State, while the weak reference for waking up lock is deleted, and determine whether currently whether there is the weak reference for waking up lock to be in the lock state;Such as
The weak reference that fruit does not wake up lock is in the lock state, then smart machine enters resting state.
Third embodiment of the present invention is related to a kind of dormancy method of smart machine.3rd embodiment is implemented second
Further improvement has been done on the basis of mode, has mainly been theed improvement is that:In third embodiment of the invention, by setting intelligence
Equipment be in dial, converse, playing song, backstage recording state in any one when, no matter
Equipment caused by which kind of reason is gone out screen, and system is all without entering forced dormancy state, so as to ensure under these applications, Bu Huiyin
The maloperation of user and cause smart machine to enter resting state, further improve user experience effect.
Specifically, when judging whether smart machine needs to enter forced dormancy state, also judge residing for smart machine
State, if smart machine be in dial, converse, playing song, backstage recording state in
Any one, then judge that smart machine need not enter forced dormancy state.Dialled that is, if current system is in
Number, converse, playing song, backstage recording state in any one, then no matter which kind of reason causes
(such as:Power button, touch screen button, system time-out, range sensor) equipment go out screen, system is all without into forced dormancy
State.
The whole flow that performs of the present embodiment is illustrated below in conjunction with Fig. 2 and is divided into eight steps, in figure 1.
3. 2. 4. 5. 6. 7. 8. representing the order that eight steps perform respectively successively, next illustrate successively respectively:
1. the wake-up controller of third party application calling system wakes up lock to obtain, equipment is prevented by waking up lock
Into resting state, so as to reach the purpose of application program functional requirement itself.
2. waking up lock controller when receiving application requests with waking up the related operation of lock, calling wake-up is locked weak
Controller is quoted wake up the related operation of lock weak reference.If the acquisition for waking up lock is operated, then it is weak to wake up lock
The backup of a weak reference can be done to waking up lock by quoting controller;If the release for waking up lock is operated, then it is weak to wake up lock
The weak reference backup of wake-up lock can be deleted by quoting controller.
3. waking up lock controller calls power management services program, to perform and realize the tool to waking up lock acquisition or release
Gymnastics is made.Power management services program is a system-level background service, just has been started up running after system start completion
.
4. user's touch screen and button operation refer to, user can by power key or application program (such as:One key-lock screen should
The quick touch screen button into forced dormancy provided with, this programme) the quick touch screen button that provides realizes the screen that goes out of user
Demand.This step is mainly that user's active request equipment enters death of monks or nuns screen state, i.e. equipment is due to that the active operation of user is just entered
Death of monks or nuns screen state.
5. screen state monitor is when receiving screen and entering the prompting message of death of monks or nuns screen state, can detecting system whether
Into forced dormancy state (such as:User open once go out screen be put into the function of forced dormancy state, user pass through it is quick
Into the touch screen button of forced dormancy, as above two operations, both provide quick touch screen button in the main interface of system), such as
If fruit is, forced dormancy operational control device can be called to realize corresponding operation.Explanation is needed exist for, if current system
System in dial, converse, playing song, backstage recording state in any one, then no matter
Which kind of reason cause (such as:Power button, touch screen button, system time-out, range sensor) equipment go out screen, system all without
Into forced dormancy state.
6. forced dormancy operational control device can call wake-up lock is weak to draw when receiving into the operation requests of forced dormancy
The lock-out state for waking up lock and the weak reference for deleting wake-up lock are discharged with controller.
7. waking up lock weak reference controller judges that the current weak reference for whether having wake-up to lock is still in lock-out state, if
If having, power management services program can be called to discharge the lock-out state of the lock, while the weak reference of wake-up lock can be deleted.
8. power management services program can be called by waking up lock weak reference controller, to perform and realize the release to waking up lock
Concrete operations.
The step of various methods divide above, be intended merely to describe it is clear, can be merged into when realizing a step or
Some steps are split, are decomposed into multiple steps, as long as including identical logical relation, all protection domain in this patent
It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed
Core design with flow is all in the protection domain of the patent.
Four embodiment of the invention is related to a kind of sleeping system of smart machine, comprising:Wake up lock controller, screen shape
State monitor, forced dormancy operational control device;
Lock controller is waken up when application requests are obtained for preventing smart machine from entering the wake-up lock of resting state,
Wake up and lock for application assigned, and set wake-up lock to be in the lock state;
Whether screen state monitor monitoring smart machine enters death of monks or nuns screen state, and enters death of monks or nuns screen state in smart machine
When, judge whether smart machine needs to enter forced dormancy state;Wherein, screen state monitor causes what screen went out by judging
Reason and the state value that whether be forced into dormancy, judge whether smart machine needs to enter forced dormancy state.Cause to shield
The reason for going out be:The application program that power key is pressed, provides into forced dormancy status function is activated, system time-out, away from
From sensor sensing go out screen function be activated in any one.Application package into forced dormancy status function is provided
Include:Once the screen that goes out is put into forced dormancy state, enters forced dormancy state by quick touch screen button.
Forced dormancy operational control device screen state monitor judge smart machine need to enter forced dormancy state when,
Judge currently whether there is wake-up lock to be in the lock state;And when there is wake-up lock to be in the lock state, ask power management services
Program release wakes up the lock-out state of lock;
Smart machine is when forced dormancy operational control device judges to be in the lock state without wake-up lock, into dormancy shape
State.
Refer to shown in Fig. 3, be the system framework schematic diagram of present embodiment, be broadly divided into user UI interactive operations,
The monitoring of lock status and three major classes of specific execution for locking task.Specifically do as described below:
Third party application is primarily used to obtain lock status, real so as to reach to prevent system from entering resting state
Now apply the purpose of function itself.
It is to allow third party application to obtain the shape for waking up and locking and set and waking up and lock to wake up lock controller major function
State.
User's touch screen and button operation major function, first, allowing equipment to enter death of monks or nuns screen state, second, allowing equipment to be forced into
Resting state, third, set equipment be in general go out screen in the case of (such as:That is not dialling operates, is not conversing
The operation for operating, being played without Background music, the not operation recorded of backstage) it is no into resting state.
Screen state monitor is mainly used in the prompting message that receiving screen goes out, and the reason for by judging to cause screen to go out
(such as:Power key, time-out, range sensor, other related users go out screen operation) and whether to be forced into the shape of dormancy
State value come decide whether to perform forced dormancy operation.
Forced dormancy operational control device is mainly used to receive the operational order of forced dormancy, judges currently whether call out in addition
Awake lock is in the lock state, if any, power management routines can be asked to discharge the lock-out state of wake-up lock.
Power management services program and power management driver are mainly used to the specific locking and release for performing and waking up lock
Operation.
In addition, it will be understood by those skilled in the art that the sleeping system of present embodiment can apply to be mounted with Android
In Andriod systems, IOS systems, Saipan Symbian system, WindowsPhone systems, blackberry, blueberry BlackBerryOS systems
The smart machine of any operating system, suitable for several operation systems, it is widely used.
It is seen that present embodiment is the system embodiment corresponding with first embodiment, present embodiment can be with
First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment
Effect, in order to reduce repetition, is repeated no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In first embodiment.
It is noted that each module involved in present embodiment is logic module, and in actual applications, one
Individual logic unit can be a part for a physical location or a physical location, can also be with multiple physics lists
The combination of member is realized.In addition, in order to protrude the innovative part of the present invention, will not be with solving institute of the present invention in present embodiment
The unit that the technical problem relation of proposition is less close introduces, but this is not intended that in present embodiment and other lists are not present
Member.
Fifth embodiment of the invention is related to a kind of sleeping system of smart machine.5th embodiment is in the 4th embodiment party
Further improvement has been done on the basis of formula, has mainly been theed improvement is that:, can be by waking up in fifth embodiment of the invention
The operation to waking up lock is realized in the operation of the weak reference of lock, to ensure the reliable and stable operation of system.
Specifically, the sleeping system of the smart machine of present embodiment also includes:Wake up lock weak reference controller;This is called out
Lock weak reference controller wake up when it is that application assigned wakes up lock to wake up lock controller, the backup of weak reference is done to waking up lock,
And the weak reference for waking up lock is set to be in the lock state.
Correspondingly, forced dormancy operational control device judges that smart machine needs to enter forced dormancy in screen state monitor
During state, judge that the current weak reference for whether having wake-up to lock is in the lock state;And the weak reference locked is waken up in locking having
During state, request wakes up the controller release of lock weak reference and wakes up the lock-out state of lock, while deletes the weak reference for waking up lock.
Smart machine enters when forced dormancy operational control device judges to be in the lock state without the weak reference for waking up lock
Resting state.
That is, the wake-up lock that lock weak reference controller is mainly used in the acquisition of backup third party application is waken up, and
Judge whether there is wake-up lock weak reference to be still in lock-out state in current system, additionally facilitate forced dormancy operational control device
The lock-out state locked is waken up to discharge by waking up the weak reference of lock, this is also the core place of present embodiment.
Because second embodiment is mutually corresponding with present embodiment, therefore present embodiment can be mutual with second embodiment
It is engaged implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, implement second
The technique effect that can reach in mode can similarly be realized in the present embodiment, no longer superfluous here in order to reduce repetition
State.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in second embodiment.
Sixth embodiment of the invention is related to a kind of sleeping system of smart machine.6th embodiment is in the 5th embodiment party
Further improvement has been done on the basis of formula, has mainly been theed improvement is that:In sixth embodiment of the invention, screen state monitor
When judging whether smart machine needs to enter forced dormancy state, smart machine state in which is also judged;And set intelligently
It is standby in when dialling, converse, playing any one in song, the state of backstage recording, judge intelligence
Energy equipment need not enter forced dormancy state.
Because the 3rd embodiment is mutually corresponding with present embodiment, therefore present embodiment can be mutual with the 3rd embodiment
It is engaged implementation.The relevant technical details mentioned in 3rd embodiment are still effective in the present embodiment, implement the 3rd
The technique effect that can reach in mode can similarly be realized in the present embodiment, no longer superfluous here in order to reduce repetition
State.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the 3rd embodiment.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention,
And in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (14)
1. a kind of dormancy method of smart machine, it is characterised in that comprise the steps of:
A. application requests obtain locks for preventing the smart machine from entering the wake-up of resting state;
B. lock is waken up for the application assigned, and sets the wake-up lock to be in the lock state;
C. when the smart machine enters death of monks or nuns screen state, judge whether the smart machine needs to enter forced dormancy state;
If it is determined that D. the smart machine needs to enter forced dormancy state, then judge currently whether to have wake-up lock in locking
State;
E. it is in the lock state if waking up lock, then discharges the lock-out state for waking up and locking, and return to the step D, is entered
One step judges currently whether have wake-up lock to be in the lock state;
F. it is in the lock state if not waking up lock, then the smart machine enters resting state.
2. the dormancy method of smart machine according to claim 1, it is characterised in that in the step C, pass through judgement
The reason for causing screen to go out and the state value that whether be forced into dormancy, judge whether the smart machine needs to stop into pressure
Dormancy state.
3. the dormancy method of smart machine according to claim 2, it is characterised in that described the reason for causing screen to go out is:
The application program that power key is pressed, provides into forced dormancy status function is activated, system time-out, range sensor sensing
Screen function of going out be activated in any one.
4. the dormancy method of smart machine according to claim 3, it is characterised in that the offer enters forced dormancy shape
The application program of state function includes:Once the screen that goes out is put into forced dormancy state, enters forced dormancy by quick touch screen button
State.
5. the dormancy method of smart machine according to claim 4, it is characterised in that whether judging the smart machine
When needing to enter forced dormancy state, the smart machine state in which is also judged, if the smart machine is in
Dial, converse, playing song, backstage recording state in any one, then judge the smart machine
Forced dormancy state need not be entered.
6. the dormancy method of the smart machine according to any one of claim 1 to 5, it is characterised in that in the step B
In, also comprise the steps of:
The backup of weak reference is done to the lock that wakes up, and sets the weak reference for waking up lock to be in the lock state;
In the step D, by judge it is current whether have wake up the weak reference locked and be in the lock state, come judge it is current whether
There is wake-up lock to be in the lock state;
In the step E, if the weak reference for waking up lock is in the lock state, then the release of power management services program is asked
It is described to wake up the lock-out state of lock, while the weak reference for waking up and locking also is deleted, and determine whether currently whether there is wake-up
The weak reference of lock is in the lock state;
In the step F, if the weak reference for not waking up lock is in the lock state, the smart machine enters dormancy shape
State.
7. the dormancy method of the smart machine according to any one of claim 1 to 5, it is characterised in that the smart machine
Operating system for Android Andriod systems, IOS systems, Saipan Symbian system, Windows Phone systems, blackberry, blueberry
Any of BlackBerry OS systems.
8. a kind of sleeping system of smart machine, it is characterised in that include:Wake up lock controller, screen state monitor, force
Sleep operation controller;
The lock controller that wakes up obtains the wake-up for preventing the smart machine from entering resting state in application requests
During lock, lock is waken up for the application assigned, and sets the wake-up lock to be in the lock state;
The screen state monitor monitors whether the smart machine enters death of monks or nuns screen state, and enters death of monks or nuns in the smart machine
During screen state, judge whether the smart machine needs to enter forced dormancy state;
The forced dormancy operational control device judges that the smart machine needs to stop into pressure in the screen state monitor
During dormancy state, judge currently whether there is wake-up lock to be in the lock state;And when there is wake-up lock to be in the lock state, ask power supply
The management program release lock-out state for waking up lock;
The smart machine is when the forced dormancy operational control device judges to be in the lock state without wake-up lock, into dormancy
State.
9. the sleeping system of smart machine according to claim 8, it is characterised in that the screen state monitor passes through
The reason for judging to cause screen to go out and the state value that whether be forced into dormancy, judge whether the smart machine needs to enter by force
Resting state processed.
10. the sleeping system of smart machine according to claim 9, it is characterised in that described the reason for causing screen to go out is:
The application program that power key is pressed, provides into forced dormancy status function is activated, system time-out, range sensor sensing
Screen function of going out be activated in any one.
11. the sleeping system of smart machine according to claim 10, it is characterised in that the offer enters forced dormancy
The application program of status function includes:Once the screen that goes out is put into forced dormancy state, stopped by quick touch screen button into pressure
Dormancy state.
12. the sleeping system of smart machine according to claim 9, it is characterised in that the screen state monitor exists
When judging whether the smart machine needs to enter forced dormancy state, the smart machine state in which is also judged;And
The smart machine be in dial, converse, playing song, backstage recording state in any one
When, judge that the smart machine need not enter forced dormancy state.
13. the sleeping system of the smart machine according to any one of claim 8 to 12, it is characterised in that also include:Call out
Wake up and lock weak reference controller;
The lock weak reference controller that wakes up is when the wake-up lock controller is that the application assigned wakes up lock, to described
Wake up lock and do the backup of weak reference, and set the weak reference for waking up lock to be in the lock state;
The forced dormancy operational control device judges that the smart machine needs to stop into pressure in the screen state monitor
During dormancy state, judge that the current weak reference for whether having wake-up to lock is in the lock state;And the weak reference locked is waken up in lock having
When determining state, the program release of request power management services is described to wake up the lock-out state of lock, while deletes the weak of the wake-up lock
Quote;
The smart machine the forced dormancy operational control device judge without wake up lock weak reference be in the lock state when,
Into resting state.
14. the sleeping system of the smart machine according to any one of claim 8 to 12, it is characterised in that the intelligence
The operating system of equipment is Android Andriod systems, IOS systems, Saipan Symbian system, Windows Phone systems, black
Any of certain kind of berries BlackBerry OS systems.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210563549.2A CN103885565B (en) | 2012-12-21 | 2012-12-21 | The dormancy method and system of smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210563549.2A CN103885565B (en) | 2012-12-21 | 2012-12-21 | The dormancy method and system of smart machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103885565A CN103885565A (en) | 2014-06-25 |
CN103885565B true CN103885565B (en) | 2018-01-23 |
Family
ID=50954505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210563549.2A Expired - Fee Related CN103885565B (en) | 2012-12-21 | 2012-12-21 | The dormancy method and system of smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103885565B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653301B (en) * | 2014-11-13 | 2019-02-26 | 比亚迪股份有限公司 | The screen locking control method and device of mobile terminal |
CN105183137B (en) * | 2015-09-09 | 2018-06-01 | 厦门美图移动科技有限公司 | A kind of mobile terminal and its wake-up lock control method and control system |
CN106662907B (en) * | 2015-10-29 | 2019-10-22 | 华为技术有限公司 | Wake-up lock control method, device and terminal based on terminal |
CN105813180A (en) * | 2016-03-14 | 2016-07-27 | 福州瑞芯微电子股份有限公司 | Modem intelligent dormancy method and system |
CN106095288A (en) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | A kind of based on the treating method and apparatus waking up lock up |
CN107708187A (en) * | 2017-09-12 | 2018-02-16 | 北京小米移动软件有限公司 | The control method and device of sleep pattern |
CN108536269A (en) * | 2018-03-26 | 2018-09-14 | 上海康斐信息技术有限公司 | A kind of method and its system reducing terminal standby power consumption |
CN110572866B (en) * | 2019-07-26 | 2021-03-30 | 华为技术有限公司 | Management method of wake-up lock and electronic equipment |
CN111200746B (en) * | 2019-12-04 | 2021-06-01 | 海信视像科技股份有限公司 | Method for awakening display equipment in standby state and display equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6823460B1 (en) * | 1999-11-14 | 2004-11-23 | Networks Associates Technology, Inc. | Method and system for intercepting an application program interface |
CN101067757A (en) * | 2007-06-01 | 2007-11-07 | 惠州市Tcl电脑科技有限责任公司 | Intelligent power source management method and system |
CN102498739A (en) * | 2009-08-14 | 2012-06-13 | 谷歌公司 | Providing a user with feedback regarding power consumption in battery-operated electronic devices |
-
2012
- 2012-12-21 CN CN201210563549.2A patent/CN103885565B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6823460B1 (en) * | 1999-11-14 | 2004-11-23 | Networks Associates Technology, Inc. | Method and system for intercepting an application program interface |
CN101067757A (en) * | 2007-06-01 | 2007-11-07 | 惠州市Tcl电脑科技有限责任公司 | Intelligent power source management method and system |
CN102498739A (en) * | 2009-08-14 | 2012-06-13 | 谷歌公司 | Providing a user with feedback regarding power consumption in battery-operated electronic devices |
Also Published As
Publication number | Publication date |
---|---|
CN103885565A (en) | 2014-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103885565B (en) | The dormancy method and system of smart machine | |
CN105183137B (en) | A kind of mobile terminal and its wake-up lock control method and control system | |
CN103324500B (en) | A kind of method and device reclaiming internal memory | |
CN107302789B (en) | Method and system for improving battery endurance of android device | |
CN103064669B (en) | The timing wake-up method and system of smart machine | |
CN104221445B (en) | A kind of method and terminal waking up terminal system | |
CN104166542A (en) | Method and device for detecting electricity consumption of application | |
CN103105915B (en) | A kind of repositioning method of intelligent terminal and system | |
CN105676987A (en) | Method for shutting down background application of mobile terminal, device and mobile terminal | |
CN101399862B (en) | Switch circuit for mobile phone and mobile phone construction based thereon | |
CN103297587B (en) | Terminal and method for detecting and processing stand-by power consumption abnormity | |
CN103199310A (en) | Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal | |
CN103164229A (en) | Method and device for clearing progresses of mobile terminal | |
CN105554316A (en) | Intelligent terminal battery capacity reserving realization method and system | |
CN105630132A (en) | Power consumption control method and system as well as terminal | |
CN106371938B (en) | Smart delays auto shutdown system and its method | |
CN102200942A (en) | Cloud-computing-based application program behavior monitoring method and cloud server | |
CN105530377B (en) | It is a kind of to wake up the processing method locked, apparatus and system | |
CN102968174A (en) | Deep sleep awakening method of android device | |
CN104808767A (en) | Terminal control method | |
CN106547335A (en) | Energy consumption reduces method and mobile terminal | |
CN105867581A (en) | Power optimization method and device and mobile terminal | |
CN104243720A (en) | Electricity saving method of terminal device and terminal device | |
CN105388991A (en) | Timing wake-up processing system and method | |
CN102833830B (en) | One wakes up mobile intelligent terminal method and mobile intelligent terminal up |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180123 |