Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of quiet clocking method, to reach the reduction use cost, improves convenience and improves the operational efficiency of quiet clocking capability and the purpose of the operational efficiency of other application programs, and technical scheme is as follows:
A kind of quiet clocking method, the sound volume control device based on being provided with quiet timing sub-panel comprises:
Receive to open the sound volume control device order, open volume and control and show described quiet timing sub-panel;
In the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator;
Judge whether to receive quiet duration adjusting command in the second Preset Time, comprise the quiet duration arranged in silent mode in described quiet duration adjusting command;
If, obtain described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carry out quiet timing;
If not, obtain the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing.
Preferably, after carrying out quiet timing, also comprise:
In the situation that receive the trigger command of closing the quiet analog switch in opening on current described quiet timing sub-panel in the 3rd Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution;
Close the analog timer of the quiet timing of described current execution, stop quiet timing, exit silent mode.
Preferably, when carrying out quiet timing, also comprise:
Pending timing duration in the described analog timer of Real-time Obtaining, the timing duration that described pending timing duration is described analog timer deducts the difference obtained after the executed timing duration of described analog timer;
In real time described pending timing duration is shown on described quiet duration analog regulator.
Preferably, in the situation that described analog timer timing finishes, also comprise:
Described analog timer is closed automatically, stops quiet timing, exits silent mode.
Preferably, describedly obtain described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration timer in described TimerService timer service, carry out quiet timing, comprising:
Obtain described quiet duration;
Call the service of TimerService timer, obtaining the service of described TimerService timer is the current quiet analog timer of configuration and the identity ID of described analog timer of arranging;
Using described quiet duration as the timing duration, the ID of the described analog timer of foundation starts described analog timer and carries out quiet timing;
The described quiet duration of acquiescence that obtains, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carries out quiet timing, comprising:
Obtain the quiet duration of described acquiescence;
Call the service of TimerService timer, obtaining the service of described TimerService timer is the current quiet analog timer of configuration and the identity ID of described analog timer of arranging;
Using the quiet duration of described acquiescence as the timing duration, the ID of the described analog timer of foundation starts described analog timer and carries out quiet timing.
Preferably, in the situation that do not receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, comprising:
Close described quiet timing sub-panel, exit quiet setting.
Preferably, when described quiet duration analog regulator shows in the progress bar mode, show different Preset Time numerical value on described progress bar, in the situation that the position of the slide block shown on described progress bar changes, generate the trigger command of opening the quiet duration analog regulator on described quiet timing sub-panel, described slide block is in the situation that rest on corresponding Preset Time numerical value after slip, generate quiet duration adjusting command, and described slide block shows described pending timing duration in real time, the setting comprised in wherein said quiet duration adjusting command is in silent mode, and numerical value equals the quiet duration of the corresponding Preset Time numerical value that described slide block stops after slip.
A kind of quiet time set, sound volume control device based on being provided with quiet timing sub-panel, described sound volume control device comprises: for the quiet timing sub-panel display module that shows quiet analog switch and quiet duration analog regulator and the quiet timing sub-panel that includes quiet analog switch and quiet duration analog regulator, comprising:
Open unit, for receiving, open the sound volume control device order, open volume and control and show described quiet timing sub-panel;
Start unit, in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and also open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator;
Judging unit, for judge whether to receive quiet duration adjusting command in the second Preset Time, if, carry out the first quiet timing unit, if not, carry out the second quiet timing unit, comprise the quiet duration arranged in silent mode in described quiet duration adjusting command;
The first quiet timing unit, for obtaining described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carries out quiet timing;
The second quiet timing unit, for obtaining the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carries out quiet timing;
Analog timer, for carrying out quiet timing.
Preferably, also comprise:
Acquiring unit, be used in the situation that receive the trigger command of closing the quiet analog switch in opening on current quiet timing sub-panel in the 3rd Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution;
The first closing unit, for closing the analog timer of the quiet timing of described current execution, stop quiet timing, exits silent mode.
Preferably, comprising:
The second closing unit, in the situation that do not receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, close described quiet timing sub-panel, exits quiet setting.
A kind of mobile terminal comprises: quiet time set and sound volume control device, wherein:
Described quiet time set comprises:
Open unit, for receiving, open the sound volume control device order, open volume and control and show described quiet timing sub-panel;
Start unit, in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and also open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator;
Judging unit, for judge whether to receive quiet duration adjusting command in the second Preset Time, if, carry out the first quiet timing unit, if not, carry out the second quiet timing unit, comprise the quiet duration arranged in silent mode in described quiet duration adjusting command;
The first quiet timing unit, for obtaining described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carries out quiet timing;
The second quiet timing unit, for obtaining the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carries out quiet timing;
Analog timer, for carrying out quiet timing;
Described sound volume control device comprises:
Quiet timing sub-panel display module, for showing quiet analog switch and quiet duration analog regulator;
Quiet timing sub-panel comprises: quiet analog switch and quiet duration analog regulator.
Compared with prior art, the application's beneficial effect is:
In this application, by reception, open the sound volume control device order, open volume and control and show described quiet timing sub-panel, in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode, then obtain quiet duration from quiet duration adjusting command, call the service of TimerService timer, timing duration using described quiet duration analog timer in described TimerService timer service, carry out quiet timing or obtain the quiet duration of acquiescence, call the service of TimerService timer, timing duration using the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing, realized quiet clocking capability, the quiet clocking capability provided due to the application is integrated on mobile terminal self system to be realized, therefore do not need the mode by downloading to be arranged on mobile terminal, carry out quiet timing, do not need to spend network traffics, reduced use cost, and there do not is the incompatible problem of system, improved convenience.
Only need to receive owing to carrying out quiet the setting and open the sound volume control device order, opening volume controls and shows quiet timing sub-panel, quiet timing sub-panel floats above the Application Program Interface of current operation, do not need to interrupt the application program of mobile terminal front stage operation, therefore improved the operational efficiency of quiet clocking capability and the operational efficiency of other application programs.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making under the creative work prerequisite the every other embodiment obtained, and all belong to the scope of the application's protection.
A kind of quiet clocking method that the application provides, the sound volume control device based on being provided with quiet timing sub-panel, wherein, sound volume control device, except comprising quiet timing sub-panel, also comprises that volume controls sub-panel.Can be arranged quiet timing on quiet timing sub-panel, be controlled on sub-panel in volume, can be arranged volume.
An embodiment
Refer to Fig. 1, a kind of flow chart that it shows a kind of quiet clocking method that the application provides can comprise the following steps:
Step S11: receive to open the sound volume control device order, open volume and control and show the quiet analog switch on described quiet timing sub-panel.
In the present embodiment, opening the sound volume control device order can send by triggering volume controlled entity key.
After receiving and opening the sound volume control device order, open volume and control and show the quiet analog switch on quiet timing sub-panel.Wherein, open when volume controls and can show that volume controls sub-panel.Can show that volume controls sub-panel in the situation that open when volume controls, can show that quiet timing sub-panel and volume control sub-panel simultaneously.Certainly, after receiving the order of unlatching sound volume control device, while opening volume control, might not show that volume controls sub-panel, but the quiet analog switch on the quiet timing sub-panel of necessary demonstration.
In the present embodiment, quiet timing sub-panel can comprise quiet analog switch and quiet duration analog regulator.
Step S12: in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator.
In the present embodiment, set in advance the first Preset Time, after the unlatching volume controls and demonstrates the quiet analog switch on quiet timing sub-panel, whether judgement receives the trigger command of opening quiet analog switch in the first Preset Time, if receive the trigger command of opening quiet analog switch in the first Preset Time, start silent mode and open the quiet duration analog regulator on described quiet timing sub-panel; If do not receive the trigger command of opening quiet analog switch in the first Preset Time, can close quiet timing sub-panel, exit quiet setting.
Wherein, displaying time numerical value on quiet duration analog regulator, in the present embodiment, can, by quiet duration analog regulator is regulated, generate quiet duration.
Step S13: judge whether to receive quiet duration adjusting command in the second Preset Time.
In the present embodiment, comprise the quiet duration arranged in silent mode in quiet duration adjusting command.The quiet duration comprised in quiet duration adjusting command is by regulating generation to quiet duration analog regulator.
Judgment result is that while in the second Preset Time, receiving quiet duration adjusting command that execution step S14 judgment result is that while in the second Preset Time, not receiving quiet duration adjusting command execution step S15.
Step S14: obtain described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carry out quiet timing.
In the present embodiment, obtain quiet duration and call the service of TimerService timer, using quiet duration as the TimerService timer, the timing duration of analog timer in service, carry out quiet timing.
Concrete, obtain the quiet duration arranged in silent mode from quiet duration adjusting command.
Step S15: obtain the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing.
In the present embodiment, obtain the quiet duration of acquiescence and call the service of TimerService timer, using the timing duration of the quiet duration of acquiescence analog timer in the service of TimerService timer, carrying out quiet timing.
Do not receiving quiet duration adjusting command, can be by the default time numerical value that shows on quiet duration analog regulator quiet duration by default, and will give tacit consent to the quiet duration of quiet duration as analog timer.
In this application, by reception, open the sound volume control device order, open volume and control and show described quiet timing sub-panel, in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode, then obtain quiet duration from quiet duration adjusting command, call the service of TimerService timer, timing duration using described quiet duration analog timer in described TimerService timer service, carry out quiet timing or obtain the quiet duration of acquiescence, call the service of TimerService timer, timing duration using the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing, realized quiet clocking capability, the quiet clocking capability provided due to the application is integrated on mobile terminal self system to be realized, therefore do not need the mode by downloading to be arranged on mobile terminal, carry out quiet timing, do not need to spend network traffics, reduced use cost, and there do not is the incompatible problem of system, improved convenience.
Only need to receive owing to carrying out quiet the setting and open the sound volume control device order, opening volume controls and shows quiet timing sub-panel, quiet timing sub-panel floats above the Application Program Interface of current operation, do not need to interrupt the application program of mobile terminal front stage operation, therefore improved the operational efficiency of quiet clocking capability and the operational efficiency of other application programs.
Another embodiment
In the present embodiment, expand another kind of quiet clocking method on the basis of a kind of quiet clocking method shown in Fig. 1, detailed process refers to Fig. 2.The another kind of flow chart of a kind of quiet clocking method that wherein Fig. 2 provides for the application can comprise the following steps:
Step S21: receive to open the sound volume control device order, open volume and control and show the quiet analog switch on described quiet timing sub-panel.
Step S22: in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator.
Step S23: judge whether to receive quiet duration adjusting command in the second Preset Time.
Judgment result is that while in the second Preset Time, receiving quiet duration adjusting command that execution step S24 judgment result is that while in the second Preset Time, not receiving quiet duration adjusting command execution step S25.
Step S24: obtain described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carry out quiet timing.
Step S25: obtain the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing.
Particular content in step S21, step S22, step S23, step S24 and step S25 is identical with step S15 with step S11, step S12, step S13, step S14 in the quiet clocking method shown in Fig. 1, does not repeat them here.
Step S26: in the situation that receive the trigger command of closing the quiet analog switch in opening on current described quiet timing sub-panel in the 3rd Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution.
In the present embodiment, at execution step S24, after carrying out quiet timing or at execution step S25, after carrying out quiet timing, all can perform step S26.
Wherein, after carrying out quiet timing, at quiet timing sub-panel, close, in situation about quiet clocking capability need to be closed by force, need to first perform step S21, perform step S26 again in the situation that receive the trigger command of closing the quiet analog switch in opening on current described quiet timing sub-panel in the 3rd Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution.
Certainly, after carrying out quiet timing, at quiet timing sub-panel, also do not close, in situation about quiet clocking capability need to be closed by force, also can perform step S26, in the situation that receive the trigger command of closing the quiet analog switch in opening on current described quiet timing sub-panel in the 3rd Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution.
Step S27: close the analog timer of the quiet timing of described current execution, stop quiet timing, exit silent mode.
Another embodiment
In the present embodiment, expand another kind of quiet clocking method on the basis of a kind of quiet clocking method shown in Fig. 1, detailed process refers to Fig. 3.Another flow chart of a kind of quiet clocking method that wherein Fig. 3 provides for the application can comprise the following steps:
Step S31: receive to open the sound volume control device order, open volume and control and show the quiet analog switch on described quiet timing sub-panel.
Step S32: in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator.
Step S33: judge whether to receive quiet duration adjusting command in the second Preset Time.
Judgment result is that while in the second Preset Time, receiving quiet duration adjusting command that execution step S34 judgment result is that while in the second Preset Time, not receiving quiet duration adjusting command execution step S35.
Step S31, step S32 are identical with step S13 with step S11, step S12 in the quiet clocking method shown in Fig. 1 with the particular content in step S33, do not repeat them here.
Step S34: obtain described quiet duration, call the service of TimerService timer, timing duration using described quiet duration analog timer in described TimerService timer service, carry out quiet timing, and the pending timing duration in the described analog timer of Real-time Obtaining, in real time described pending timing duration is shown on described quiet duration analog regulator.
In the present embodiment, when carrying out quiet timing, the pending timing duration in the described analog timer of Real-time Obtaining, be shown in described pending timing duration on described quiet duration analog regulator in real time.
Wherein, the timing duration that pending timing duration is analog timer deducts the difference obtained after the executed timing duration of analog timer.
The timing duration that is first analog timer to pending timing duration for example deducts the difference obtained after the executed timing duration of analog timer and describes.For example: the timing duration in analog timer is 10 minutes, after analog timer brings into operation, when executed timing duration reaches 1 minute, analog timer also needs to carry out the quiet timing of 9 minutes, wherein, within 9 minutes, be the pending timing duration of analog timer.
What no matter quiet duration analog regulator adopted is reverse countdown or the mode of countdown, and quiet duration analog regulator can show pending timing duration accurately.
Step S35: obtain the quiet duration of acquiescence, call the service of TimerService timer, timing duration using the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing, and the pending timing duration in the described analog timer of Real-time Obtaining, in real time described pending timing duration is shown on described quiet duration analog regulator.
In the present embodiment, when carrying out quiet timing, the pending timing duration in the described analog timer of Real-time Obtaining, be shown in described pending timing duration on described quiet duration analog regulator in real time.
Wherein, the timing duration that pending timing duration is analog timer deducts the difference obtained after the executed timing duration of analog timer.
The timing duration that is first analog timer to pending timing duration for example deducts the difference obtained after the executed timing duration of analog timer and describes.For example: the timing duration in analog timer is 10 minutes, after analog timer brings into operation, when executed timing duration reaches 1 minute, analog timer also needs to carry out the quiet timing of 9 minutes, wherein, within 9 minutes, be the pending timing duration of analog timer.
What no matter quiet duration analog regulator adopted is reverse countdown or the mode of countdown, and quiet duration analog regulator can show pending timing duration accurately.
Another embodiment
In the present embodiment, expand another kind of quiet clocking method on the basis of a kind of quiet clocking method shown in Fig. 1, detailed process refers to Fig. 4.Another flow chart of a kind of quiet clocking method that wherein Fig. 4 provides for the application can comprise the following steps:
Step S41: receive to open the sound volume control device order, open volume and control and show the quiet analog switch on described quiet timing sub-panel.
Step S42: in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start quiet mould and open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value formula on described quiet duration analog regulator.
Step S43: judge whether to receive quiet duration adjusting command in the second Preset Time.
Judgment result is that while in the second Preset Time, receiving quiet duration adjusting command that execution step S44 judgment result is that while in the second Preset Time, not receiving quiet duration adjusting command execution step S45.
Step S44: obtain described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carry out quiet timing.
Step S45: obtain the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carry out quiet timing.
Particular content in step S41, step S42, step S43, step S44 and step S45 is identical with step S15 with step S11, step S12, step S13, step S14 in the quiet clocking method shown in Fig. 1, does not repeat them here.
Step S46: in the situation that described analog timer timing finishes, described analog timer is closed automatically, stops quiet timing, exits silent mode.
In the present embodiment, in the situation that in execution step S44 the analog timer timing finish or in the situation that in execution step S45 the analog timer timing finish, corresponding analog timer is closed automatically, stops quiet timing, exits silent mode.
Another embodiment
In the present embodiment, what illustrate is to obtain described quiet duration, call the service of TimerService timer, timing duration using described quiet duration timer in described TimerService timer service, carry out the detailed process of quiet timing, refer to Fig. 5, shown in Fig. 5 is a kind of sub-process figure of a kind of quiet clocking method of providing of the application, can comprise the following steps:
Step S51: obtain described quiet duration.
Step S52: call the service of TimerService timer, obtaining the service of described TimerService timer is the current quiet analog timer of configuration and the identity ID of described analog timer of arranging.
In the present embodiment, the service of TimerService timer can be the current quiet identity ID that configuration analog timer and analog timer are set.
Step S53: using described quiet duration as the timing duration, the ID of the described analog timer of foundation starts described analog timer and carries out quiet timing.
In the present embodiment, can determine according to the identity ID of analog timer corresponding analog timer, and start corresponding analog timer and carry out quiet timing.
Another embodiment
In the present embodiment, what illustrate is to obtain the quiet duration of acquiescence, call the service of TimerService timer, timing duration using the quiet duration of described acquiescence timer in described TimerService timer service, carry out the detailed process of quiet timing, refer to Fig. 6, shown in Fig. 6 is the another kind of sub-process figure of a kind of quiet clocking method of providing of the application, can comprise the following steps:
Step S61: obtain the quiet duration of acquiescence.
Step S62: call the service of TimerService timer, obtaining the service of described TimerService timer is the current quiet analog timer of configuration and the identity ID of described analog timer of arranging.
In the present embodiment, the service of TimerService timer can be the current quiet identity ID that configuration analog timer and analog timer are set.
Step S63: using the quiet duration of described acquiescence as the timing duration, the ID of the described analog timer of foundation starts described analog timer and carries out quiet timing.
In the present embodiment, can determine according to the identity ID of analog timer corresponding analog timer, and start corresponding analog timer and carry out quiet timing.
In said method embodiment, quiet duration analog regulator can show in the progress bar mode.Wherein, show different Preset Time numerical value on progress bar, and be provided with slide block on progress bar.In the situation that the position of the slide block shown on progress bar changes, can generate the trigger command of opening the quiet duration analog regulator on quiet timing sub-panel.Slide block is in the situation that rest on corresponding Preset Time numerical value after slide block, can generate quiet duration adjusting command, wherein quiet duration adjusting command includes the quiet duration arranged in silent mode, and slide block can show that described pending timing duration is concrete in real time, and the numerical value of quiet duration equals the corresponding Preset Time numerical value that slide block stops after slip.Wherein, on progress bar, Preset Time numerical value corresponding to original position can be for always, in the situation that quiet clocking capability is not closed by force, always in silent mode.
On progress bar, Preset Time numerical value corresponding to original position can be used as the quiet duration of acquiescence.Certainly, also can be by the quiet duration by default of other Preset Time numerical value on progress bar.
Certainly, quiet duration analog timer can also be with direct input time of interface display.In the situation that open direct input time of interface, what directly on interface, show input time is the quiet duration of acquiescence.In the situation that directly input time, interface entered editing mode, can generate the trigger command of the quiet duration analog regulator on quiet timing sub-panel.Wherein, when directly input time, interface was in editing mode, can the quiet duration in silent mode be arranged.To after direct input time interface editing, setting completes in the situation of quiet duration, generate quiet duration adjusting command, wherein quiet duration adjusting command includes the quiet duration arranged in silent mode, the numerical value of described quiet duration equals to after direct input time interface boundary, the numerical value of the quiet duration arranged.
It should be noted that, the first Preset Time in said method embodiment, the second Preset Time and the 3rd Preset Time all can be respectively as the displaying time of quiet timing sub-panel, when reaching the first Preset Time or the second Preset Time or the 3rd Preset Time, close quiet timing sub-panel.Certainly, the second Preset Time and the 3rd Preset Time can be not yet as the displaying time of quiet timing sub-panel.
In said method embodiment, after carrying out quiet timing, if the timing duration of analog timer need to reset, only need to reopen quiet timing sub-panel, quiet duration analog regulator on quiet timing sub-panel is arranged, the quiet duration that generation resets, the timing duration using the quiet duration that resets as analog timer, re-execute quiet timing.
For aforesaid each embodiment of the method, for simple description, therefore it all is expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
With said method, embodiment is corresponding, the application provides a kind of a kind of structural representation of quiet time set, wherein, refer to Fig. 7, quiet time set comprises: open unit 71, start unit 72, judging unit 73, the first quiet timing unit 75 of quiet timing unit 74, second and analog timer 76.Wherein, the sound volume control device of quiet time set based on being provided with quiet timing sub-panel shown in Fig. 7, sound volume control device comprises the quiet timing sub-panel display module for showing quiet analog switch and quiet duration analog regulator and includes the quiet timing sub-panel of quiet analog switch and quiet duration analog regulator.
Open unit, for receiving, open the sound volume control device order, open volume and control and show described quiet timing sub-panel.
Start unit, in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and also open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator.
Judging unit, for judge whether to receive quiet duration adjusting command in the second Preset Time, if, carry out the first quiet timing unit, if not, carry out the second quiet timing unit, comprise the quiet duration arranged in silent mode in described quiet duration adjusting command; Wherein, displaying time numerical value on described analog regulator.
The first quiet timing unit, for obtaining described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carries out quiet timing.
The second quiet timing unit, for obtaining the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carries out quiet timing.
Analog timer, for carrying out quiet timing.
Another embodiment
In the present embodiment, expand another kind of quiet time set on the basis of a kind of quiet time set shown in Fig. 7, concrete formation refers to Fig. 8.The another kind of structural representation of a kind of quiet time set that wherein Fig. 8 provides for the application also comprises on the basis of a kind of quiet time set shown in Fig. 8:
Acquiring unit 81, be used in the situation that receive the trigger command of closing the quiet analog switch in opening on current quiet timing sub-panel in the 3rd Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution.
The first closing unit 82, for closing the analog timer of the quiet timing of described current execution, stop quiet timing, exits silent mode.
In said apparatus embodiment, can include the second closing unit in quiet time set, for in the situation that do not receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, close quiet timing sub-panel, exit quiet setting.
Another embodiment
In the present embodiment, what illustrate is a kind of structural representation of a kind of mobile terminal of providing of the application, refers to Fig. 9, and mobile terminal comprises: quiet time set 91 and sound volume control device 92.
Quiet time set 91 comprises: open unit, for receiving, open the sound volume control device order, open volume and control and show described quiet timing sub-panel.
Start unit, in the situation that receive the trigger command of opening the quiet analog switch on described quiet timing sub-panel in the first Preset Time, start silent mode and also open the quiet duration analog regulator on described quiet timing sub-panel; Wherein, displaying time numerical value on described quiet duration analog regulator.
Judging unit, for judge whether to receive quiet duration adjusting command in the second Preset Time, if, carry out the first quiet timing unit, if not, carry out the second quiet timing unit, comprise the quiet duration arranged in silent mode in described quiet duration adjusting command; Wherein, displaying time numerical value on described analog regulator.
The first quiet timing unit, for obtaining described quiet duration, call the service of TimerService timer, using the timing duration of described quiet duration analog timer in described TimerService timer service, carries out quiet timing.
The second quiet timing unit, for obtaining the quiet duration of acquiescence, call the service of TimerService timer, using the timing duration of the quiet duration of described acquiescence analog timer in described TimerService timer service, carries out quiet timing.
Analog timer, for carrying out quiet timing.
Certainly, quiet time set can also comprise: acquiring unit, be used in the situation that receive the trigger command of closing the quiet analog switch in opening on current quiet timing sub-panel in the 4th Preset Time, foundation is in the situation that carry out quiet timing, the ID of the analog timer that the TimerService service of calling got configures, determine the analog timer of the quiet timing of current execution.
The first closing unit, for closing the analog timer of the quiet timing of described current execution, stop quiet timing, exits silent mode.
Sound volume control device 92 comprises: quiet timing sub-panel display module, for showing quiet analog switch and quiet duration analog regulator;
Quiet timing sub-panel comprises: quiet analog switch and quiet duration analog regulator.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operating space, and not necessarily requires or imply between these entities or operation the relation of any this reality or sequentially of existing.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make the process, method, article or the equipment that comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Above a kind of quiet clocking method, device and the mobile terminal that the application is provided is described in detail, applied specific case herein the application's principle and execution mode are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.