Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The terminal providing in the embodiment of the present invention can be the electronic installations such as mobile phone, panel computer, MP3; Desktop real-time clock can refer to the application that needs real-time clock to arrange in terminal main interface, for example, and the time showing application on main interface, battery electric quantity display application, signal display application etc.
Referring to Fig. 1, is the schematic flow sheet of the management method of a kind of desktop real-time clock of providing of the embodiment of the present invention, and described method can comprise:
S101, the running status that sense terminals is current;
Concrete, the current running status of described terminal can comprise not show state of Real Time Clock Display state and real-time clock, and whether the desktop real-time clock by sense terminals shows, can detect the current running status of terminal.When the desktop Real Time Clock Display of terminal being detected, determine that the current running status of described terminal is Real Time Clock Display state; When the desktop real-time clock of terminal being detected and do not show, determine that the current running status of described terminal is not show state of real-time clock.Wherein, the detailed process whether the desktop real-time clock of sense terminals shows can be: in terminal, not during standby, whether sense terminals screen is opened, if screen is not opened, the current running status of described terminal detecting is not show state of real-time clock; Whether if screen is opened, can further detect in screen interface process is foremost screen mode toggle, if screen mode toggle, the current running status of described terminal detecting is not show state of real-time clock; If not screen mode toggle, the current running status of described terminal being detected is Real Time Clock Display state.Therefore, described real-time clock not show state can comprise screen mode toggle state, not standby and the screen state that goes out.For example, while playing games with terminal is full frame, the desktop real-time clock of terminal does not show, as the time showing application on desktop, battery electric quantity display application, the application that signal display application etc. need to be carried out real-time clock renewal does not all show in screen interface process foremost.
S102, obtains the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting;
Concrete, after detecting the current running status of terminal, can obtain the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting, wherein, corresponding relation between the operational factor of the running status that described terminal is current and described desktop real-time clock can arrange in advance, for example, Real Time Clock Display state can corresponding desktop real-time clock high frequency operational factor, as every renewal of carrying out a real-time clock for 1 second, the time in time showing application can per secondly once be upgraded; The real-time clock parameter out of service that show state can corresponding desktop real-time clock, as when full frame the playing games, can stop the operation of desktop real-time clock, with the time showing stopping in the time showing application on backstage, upgrades, thus can save power.
S103, according to the described operational factor of obtaining, adjusts the operation of described desktop real-time clock.
Concrete, after having obtained the operational factor of corresponding desktop real-time clock, can adjust according to the described operational factor of obtaining the operation of described desktop real-time clock, for example, if get high frequency operational factor, the high frequency that operates to of adjusting described desktop real-time clock moves, as every renewal of carrying out a real-time clock for 1 second; If get parameter out of service, adjust operating to of described desktop real-time clock out of service, stop the operation of desktop real-time clock, with save power.
The embodiment of the present invention is by the current running status of sense terminals, can obtain the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting, to adjust the operation of desktop real-time clock, make according to user's use scenes, to control intelligently the operation of desktop real-time clock, to reduce system power dissipation.
Referring to Fig. 2, is the schematic flow sheet of the management method of the another kind of desktop real-time clock that provides of the embodiment of the present invention again, and described method can comprise:
S201, whether the desktop real-time clock of sense terminals shows;
Concrete, in terminal, not during standby, whether sense terminals screen is opened, if screen is not opened, the desktop real-time clock that terminal detected is demonstration, and the current running status of described terminal is not show state of real-time clock; If screen is opened, whether can further detect in screen interface process is foremost screen mode toggle, if screen mode toggle, detects the desktop real-time clock of terminal for not showing, the current running status of described terminal detecting is not show state of real-time clock; If not screen mode toggle, detects the desktop real-time clock of terminal for showing, the current running status of described terminal being detected is Real Time Clock Display state.
S202, determines that the current running status of described terminal is not show state of real-time clock;
Concrete, when the desktop real-time clock that terminal detected as S201 does not show, by definite current running status of described terminal, be not show state of real-time clock, described real-time clock not show state can comprise screen mode toggle state, not standby and the screen state that goes out.For example, in terminal, during full frame playing games, can determine that the current running status of described terminal is not show state of real-time clock.
S203, obtains low-frequency operation parameter or the parameter out of service of the desktop real-time clock of setting;
Concrete, in definite current running status of described terminal, be real-time clock not during show state, can obtain low-frequency operation parameter or the parameter out of service of the desktop real-time clock of setting.Wherein, described low-frequency operation parameter can refer to that every 1 hour or every 2 hours or cycle longer time carry out the renewal of a real-time clock, when applied corresponding real-time clock use low-frequency operation in service parameter in time showing, the time in time showing application can every 1 hour or every 2 hours or cycle longer time once upgrade.Wherein, described parameter out of service can refer to stop the renewal to real-time clock, and when applied corresponding real-time clock use in service parameter out of service in time showing, the time in time showing application will not upgrade.
S204, determines that the current running status of described terminal is Real Time Clock Display state;
Concrete, when S201 detects the desktop Real Time Clock Display of terminal, can determine that the current running status of described terminal is Real Time Clock Display state.
S205, whether the viewing area that judges described desktop real-time clock is in default breviary viewing area, and whether the viewing area area of described desktop real-time clock is less than default breviary display area threshold value;
Concrete, when definite current running status of described terminal is Real Time Clock Display state, whether the viewing area that can further judge described desktop real-time clock is in default breviary viewing area, and whether the viewing area area of described desktop real-time clock is less than default breviary display area threshold value.Wherein, can be by being described breviary viewing area for the unconspicuous region division of user, as the upper left corner in desktop screen or upper right corner etc.Described breviary display area threshold value can arrange in advance, as by as described in breviary display area threshold value setting be 1/10th of screen area size.
S206, determines that described Real Time Clock Display state is breviary display mode;
Concrete, when S205 step is judged as YES, can further determine that described Real Time Clock Display state is breviary display mode, for example, when time display application, battery electric quantity display application all show in screen upper left side or a top-right zonule, can determine that described Real Time Clock Display state is breviary display mode.
S207, obtains the intermediate frequency operational factor of the desktop real-time clock of setting;
Concrete, when definite described Real Time Clock Display state is breviary display mode, can obtain the intermediate frequency operational factor of the desktop real-time clock of setting.Wherein, described intermediate frequency operational factor can refer to that every 1 minute or every 5 minutes or other times cycle carry out the renewal of a real-time clock, when applied corresponding real-time clock use intermediate frequency in service operational factor in time showing, the time in time showing application can every 1 minute or every 5 minutes or other times cycle once upgrade.
S208, determines that described Real Time Clock Display state is obvious display mode;
Concrete, when S205 step is judged as NO, can further determine that described Real Time Clock Display state is obvious display mode, for example, when time display application shows in screen middle, or when the display area of time display application in screen is greater than default breviary display area threshold value, all can determine that described Real Time Clock Display state is obvious display mode.
S209, obtains the high frequency operational factor of the desktop real-time clock of setting;
Concrete, when definite described Real Time Clock Display state is obvious display mode, can obtain the high frequency operational factor of the desktop real-time clock of setting.Wherein, described high frequency operational factor can refer to every renewal of carrying out a real-time clock for 1 second, and when applied corresponding real-time clock use high frequency in service operational factor in time showing, the time in time showing application can once upgrade for every 1 second.
Certainly, the update cycle duration of intermediate frequency operational factor is less than the update cycle duration of low-frequency operation parameter, and is greater than the update cycle duration of high frequency operational factor.
The described operational factor that described basis in S103 step in the corresponding embodiment of above-mentioned Fig. 1 is obtained, the operation of adjusting described desktop real-time clock specifically can comprise:
When the described operational factor of obtaining is described high frequency operational factor, the high frequency that operates to of adjusting described desktop real-time clock moves;
Concrete, when the described operational factor of obtaining as step S209 is described high frequency operational factor, that can adjust described desktop real-time clock operates to high frequency operation, with facilitate user can the real time inspection time, battery electric quantity, mobile phone signal etc.
When the described operational factor of obtaining is described intermediate frequency operational factor, the intermediate frequency that operates to of adjusting described desktop real-time clock moves;
Concrete, when the described operational factor of obtaining as step S207 is described intermediate frequency operational factor, that can adjust described desktop real-time clock operates to intermediate frequency operation, makes related application without upgrading in real time, suitably to reduce battery electric quantity.
When the described operational factor of obtaining is described low-frequency operation parameter, adjust the low-frequency operation that operates to of described desktop real-time clock;
Concrete, when the described operational factor of obtaining as step S203 is described low-frequency operation parameter, can adjust the low-frequency operation that operates to of described desktop real-time clock, make related application without upgrading in real time, further to reduce battery electric quantity.
When the described operational factor of obtaining is described parameter out of service, adjust operating to of described desktop real-time clock out of service;
Concrete, when the described operational factor of obtaining as step S203 is described parameter out of service, can adjust operating to of described desktop real-time clock out of service, now terminal may be in not standby and go out screen state or screen mode toggle state, user will can not check as time showing application, battery electric quantity display application etc., therefore, can stop the operation to the real-time clock of the related application such as time showing application, battery electric quantity display application, thereby can effectively reduce system power dissipation.
Certainly, the operational factor of desktop real-time clock can also be carried out correspondence according to the current running status of terminal and be switched, for example, when the current running status of terminal is not when by real-time clock, show state switches to obvious display mode, the operational factor of the desktop real-time clock obtaining can be by parameter switching tremendously high frequency operational factor out of service, and the high frequency that is adjusted into out of service that is about to described desktop real-time clock moves.
The embodiment of the present invention is by the current running status of sense terminals, can obtain the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting, to adjust the operation of desktop real-time clock, make according to user's use scenes, to control intelligently the operation of desktop real-time clock, to reduce system power dissipation.
Referring to Fig. 3, is the structural representation of a kind of mobile terminal 1 of providing of the embodiment of the present invention, and described mobile terminal 1 can comprise: state detection unit 10, parameter acquiring unit 20, adjustment unit 30;
Described state detection unit 10, for detection of the current running status of terminal;
Concrete, the current running status of described terminal can comprise not show state of Real Time Clock Display state and real-time clock, whether described state detection unit 10 shows by the desktop real-time clock of sense terminals, can detect the current running status of terminal.When described state detection unit 10 detects the desktop Real Time Clock Display of terminal, can determine that the current running status of described terminal is Real Time Clock Display state; When the desktop real-time clock that terminal detected when described state detection unit 10 does not show, can determine that the current running status of described terminal is not show state of real-time clock.Wherein, the detailed process whether the desktop real-time clock of described state detection unit 10 sense terminals shows can be: in terminal not during standby, whether described state detection unit 10 sense terminals screens are opened, if screen is not opened, the current running status of described terminal detecting is not show state of real-time clock; Whether if screen is opened, can further detect in screen interface process is foremost screen mode toggle, if screen mode toggle, the current running status of described terminal detecting is not show state of real-time clock; If not screen mode toggle, the current running status of described terminal being detected is Real Time Clock Display state.Therefore, described real-time clock not show state can comprise screen mode toggle state, not standby and the screen state that goes out.For example, while playing games with terminal is full frame, the desktop real-time clock of terminal does not show, as the time showing application on desktop, battery electric quantity display application, the application that signal display application etc. need to be carried out real-time clock renewal does not all show in screen interface process foremost.
Described parameter acquiring unit 20, for obtaining the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting;
Concrete, after described state detection unit 10 detects the current running status of terminal, described parameter acquiring unit 20 can be obtained the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting, wherein, corresponding relation between the operational factor of the running status that described terminal is current and described desktop real-time clock can arrange in advance, for example, Real Time Clock Display state can corresponding desktop real-time clock high frequency operational factor, as every renewal of carrying out a real-time clock for 1 second, time in time showing application can per secondly once be upgraded, the real-time clock parameter out of service that show state can corresponding desktop real-time clock, as when full frame the playing games, can stop the operation of desktop real-time clock, with the time showing stopping in the time showing application on backstage, upgrades, thus can save power.
Described adjustment unit 30, for according to the described operational factor of obtaining, adjusts the operation of described desktop real-time clock;
Concrete, in described parameter acquiring unit 20, obtained after the operational factor of corresponding desktop real-time clock, described adjustment unit 30 can be adjusted according to the described operational factor of obtaining the operation of described desktop real-time clock, for example, if get high frequency operational factor, the high frequency that operates to of the described desktop real-time clock of described adjustment unit 30 adjustment moves, as every renewal of carrying out a real-time clock for 1 second; If get parameter out of service, to adjust operating to of described desktop real-time clock out of service for described adjustment unit 30, stops the operation of desktop real-time clock, with save power.
Further, refer to again Fig. 4, be the structural representation of a kind of state detection unit 10 of providing of the embodiment of the present invention, described state detection unit 10 can comprise: show that detecting unit 101, the first determining unit 102, the second determining unit 103, breviary show judging unit 104;
Whether described demonstration detecting unit 101, show for detection of the desktop real-time clock of terminal;
Concrete, in terminal, not during standby, whether described demonstration detecting unit 101 sense terminals screens are opened, if screen is not opened, the desktop real-time clock that described demonstration detecting unit 101 detects terminal is not for showing, the current running status of described terminal is not show state of real-time clock; If screen is opened, whether can further detect in screen interface process is foremost screen mode toggle, if screen mode toggle, the desktop real-time clock that described demonstration detecting unit 101 detects terminal is not for showing, the current running status of described terminal detecting is not show state of real-time clock; If not screen mode toggle, the desktop real-time clock that described demonstration detecting unit 101 detects terminal is for showing, the current running status of described terminal being detected is Real Time Clock Display state.
Described the first determining unit 102, for when described demonstration detecting unit 101 detects the desktop Real Time Clock Display of terminal, determines that the current running status of described terminal is Real Time Clock Display state;
Described the second determining unit 103, while not showing for the desktop real-time clock of terminal detected when described demonstration detecting unit 101, determines that the current running status of described terminal is not show state of real-time clock;
Concrete, when the desktop real-time clock that terminal detected when described demonstration detecting unit 101 does not show, described the second determining unit 103 is not show state of real-time clock by definite current running status of described terminal, and described real-time clock not show state can comprise screen mode toggle state, not standby and the screen state that goes out.For example, in terminal, during full frame playing games, described the second determining unit 103 can determine that the current running status of described terminal is not show state of real-time clock.
Described breviary shows judging unit 104, and for the viewing area that judges described desktop real-time clock, whether in default breviary viewing area, and whether the viewing area area of described desktop real-time clock is less than default breviary display area threshold value;
Concrete, after described the first determining unit 102 determines that the current running status of described terminal is Real Time Clock Display state, described breviary shows that viewing area that judging unit 104 can further judge described desktop real-time clock is whether in default breviary viewing area, and whether the viewing area area of described desktop real-time clock is less than default breviary display area threshold value.Wherein, can be by being described breviary viewing area for the unconspicuous region division of user, as the upper left corner in desktop screen or upper right corner etc.Described breviary display area threshold value can arrange in advance, as by as described in breviary display area threshold value setting be 1/10th of screen area size.
Described the first determining unit 102, if also show that for described breviary judging unit 104 is judged as YES, further determines that described Real Time Clock Display state is breviary display mode;
For example, when time display application, battery electric quantity display application all show in screen upper left side or a top-right zonule, described breviary shows that judging unit 104 will be judged as YES, now, described the first determining unit 102 can further determine that described Real Time Clock Display state is breviary display mode.
Described the first determining unit 102, if also show that for described breviary judging unit 104 is judged as NO, further determines that described Real Time Clock Display state is obvious display mode;
For example, when time display application shows in screen middle, or when the display area of time display application in screen is greater than default breviary display area threshold value, described breviary shows that judging unit 104 will be judged as NO, now, described the first determining unit 102 can further determine that described Real Time Clock Display state is obvious display mode.
The parameter acquiring unit 20 that the embodiment of the present invention provides, specifically for working as the current running status of described terminal, it is Real Time Clock Display state, and when described Real Time Clock Display state is obvious display mode, obtain the high frequency operational factor of the desktop real-time clock of setting;
Concrete, when described the first determining unit 102 determines that described Real Time Clock Display state is obvious display mode, described parameter acquiring unit 20 can be obtained the high frequency operational factor of the desktop real-time clock of setting.Wherein, described high frequency operational factor can refer to every renewal of carrying out a real-time clock for 1 second, and when applied corresponding real-time clock use high frequency in service operational factor in time showing, the time in time showing application can once upgrade for every 1 second.
Or, described parameter acquiring unit 20, specifically for being Real Time Clock Display state when the current running status of described terminal, and described Real Time Clock Display state is while being breviary display mode, obtains the intermediate frequency operational factor of the desktop real-time clock of setting;
Concrete, when described the first determining unit 102 determines that described Real Time Clock Display state is breviary display mode, described parameter acquiring unit 20 can be obtained the intermediate frequency operational factor of the desktop real-time clock of setting.Wherein, described intermediate frequency operational factor can refer to that every 1 minute or every 5 minutes or other times cycle carry out the renewal of a real-time clock, when applied corresponding real-time clock use intermediate frequency in service operational factor in time showing, the time in time showing application can every 1 minute or every 5 minutes or other times cycle once upgrade.
Or described parameter acquiring unit 20, specifically for when the current running status of described terminal being real-time clock not during show state, obtains low-frequency operation parameter or the parameter out of service of the desktop real-time clock of setting;
Concrete, in described the second determining unit 103, determine that the current running status of described terminal is real-time clock not during show state, described parameter acquiring unit 20 can be obtained low-frequency operation parameter or the parameter out of service of the desktop real-time clock of setting.Wherein, described low-frequency operation parameter can refer to that every 1 hour or every 2 hours or cycle longer time carry out the renewal of a real-time clock, when applied corresponding real-time clock use low-frequency operation in service parameter in time showing, the time in time showing application can every 1 hour or every 2 hours or cycle longer time once upgrade.Wherein, described parameter out of service can refer to stop the renewal to real-time clock, and when applied corresponding real-time clock use in service parameter out of service in time showing, the time in time showing application will not upgrade.
A kind of adjustment unit 30 that the embodiment of the present invention provides, while being described high frequency operational factor specifically for the described operational factor when obtaining, the high frequency that operates to of adjusting described desktop real-time clock moves; Or,
Described adjustment unit 30, while being described intermediate frequency operational factor specifically for the described operational factor when obtaining, the intermediate frequency that operates to of adjusting described desktop real-time clock moves; Or,
Described adjustment unit 30, while being described low-frequency operation parameter specifically for the described operational factor when obtaining, adjusts the low-frequency operation that operates to of described desktop real-time clock; Or,
Described adjustment unit 30, while being described parameter out of service specifically for the described operational factor when obtaining, adjusts operating to of described desktop real-time clock out of service;
Wherein, the update cycle duration of intermediate frequency operational factor is less than the update cycle duration of low-frequency operation parameter, and is greater than the update cycle duration of high frequency operational factor.
The embodiment of the present invention is by the current running status of sense terminals, can obtain the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting, to adjust the operation of desktop real-time clock, make according to user's use scenes, to control intelligently the operation of desktop real-time clock, to reduce system power dissipation.
Referring to Fig. 5, is the structural representation of the another kind of mobile terminal that provides of the embodiment of the present invention, as shown in Figure 5 again, this mobile terminal comprises: at least one processor 1001, CPU for example, at least one user interface 1003, storer 1004, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these assemblies.Wherein, user interface 1003 can comprise display screen (Display), keyboard (Keyboard), and selectable user interface 1003 can also comprise wireline interface, the wave point of standard.Storer 1004 can be high-speed RAM storer, also can the unsettled storer of right and wrong (non-volatile memory), for example at least one magnetic disk memory.Storer 1004 can also be optionally that at least one is positioned at the memory storage away from aforementioned processing device 1001.Wherein processor 1001 can be stored batch processing code in conjunction with the described mobile terminal of Fig. 3 to Fig. 4 in storer 1004, and processor 1001 calls in storer 1004 program code of storage, for carrying out following operation:
The running status that sense terminals is current;
Obtain the operational factor of desktop real-time clock corresponding to the running status current with described terminal of setting;
According to the described operational factor of obtaining, adjust the operation of described desktop real-time clock.
Wherein, described processor 1001 specifically for:
Whether the desktop real-time clock of sense terminals shows;
When the desktop Real Time Clock Display of terminal being detected, determine that the current running status of described terminal is Real Time Clock Display state;
When the desktop real-time clock of terminal being detected and do not show, determine that the current running status of described terminal is not show state of real-time clock.
Wherein, described processor 1001 also for:
Whether the viewing area that judges described desktop real-time clock is in default breviary viewing area, and whether the viewing area area of described desktop real-time clock is less than default breviary display area threshold value;
If be judged as YES, further determine that described Real Time Clock Display state is breviary display mode;
Otherwise, determine that described Real Time Clock Display state is obvious display mode.
Wherein, described processor 1001 specifically for:
When the current running status of described terminal is Real Time Clock Display state, and described Real Time Clock Display state is while being obvious display mode, obtains the high frequency operational factor of the desktop real-time clock of setting.
Wherein, described processor 1001 specifically for:
When the current running status of described terminal is Real Time Clock Display state, and described Real Time Clock Display state is while being breviary display mode, obtains the intermediate frequency operational factor of the desktop real-time clock of setting.
Wherein, described processor 1001 specifically for:
When the current running status of described terminal is real-time clock not during show state, obtain low-frequency operation parameter or the parameter out of service of the desktop real-time clock of setting.
Wherein, described processor 1001 specifically for:
When the described operational factor of obtaining is described high frequency operational factor, the high frequency that operates to of adjusting described desktop real-time clock moves.
Wherein, described processor 1001 specifically for:
When the described operational factor of obtaining is described intermediate frequency operational factor, the intermediate frequency that operates to of adjusting described desktop real-time clock moves.
Wherein, described processor 1001 specifically for:
When the described operational factor of obtaining is described low-frequency operation parameter, adjust the low-frequency operation that operates to of described desktop real-time clock.
Wherein, described processor 1001 specifically for:
When the described operational factor of obtaining is described parameter out of service, adjust operating to of described desktop real-time clock out of service.
Concrete, the mobile terminal of introducing in the present embodiment can be in order to implement the present invention in conjunction with the part or all of flow process in the management method embodiment of the desktop real-time clock of Fig. 1 to Fig. 2 introduction.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, for example CPU (Central Processing Unit, central processing unit), or realize by ASIC (Application Specific Integrated Circuit, special IC).
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.