Embodiment
The embodiment of the invention provides a kind of implementation method of contextual model, comprising: the working procedure of sense terminals, the contextual model of selecting described terminal to be suitable for; Obtain the pairing configuration parameter of described contextual model; According to described configuration parameter, control described terminal.Use technical scheme provided by the invention, make terminal enter contextual model automatically, strengthened the practicality of terminal.
Consult Fig. 1, the embodiment of the invention one provides a kind of implementation method of contextual model, this method is according to the current working procedure of terminal and the corresponding relation of contextual model, the contextual model of selecting terminal to be suitable for, following is that example specifically describes the method that this embodiment provides with the reading model, and this method comprises:
Step 101, terminal detect current working procedure.
The program that step 102, basis prestore and the corresponding relation of contextual model obtain the pairing contextual model of detected working procedure, determine current this contextual model that is applicable to of terminal.
Needed the corresponding relation of creation facilities program (CFP) and contextual model in advance and preserve before this step, wherein, the corresponding relation of program and contextual model is kept in the terminal with the form of showing, such as the correspondence table of save routine and contextual model.
Concrete, the mode of the corresponding relation of following two kinds of creation facilities program (CFP)s and contextual model can be arranged:
First kind of mode is: when loading procedure, terminal ejects an interface, the prompting user selects contextual model, the contextual model that the user selects this program to belong to, the i.e. contextual model that terminal should be in when this program of terminal operating, terminal receives the instruction that the user selects contextual model, and the corresponding relation of this program and user-selected contextual model is kept in the correspondence table.
The second way is: behind the loading procedure, the user wants the procedure Selection contextual model to having loaded, terminal provides the selection interface of contextual model, the user at certain procedure Selection this program contextual model that should belong to, terminal receives the user and selects this program to belong to the instruction of corresponding contextual model, and the corresponding relation of this program and contextual model is kept in the correspondence table.
Suppose that the user selects text browsing program, webpage process program and video reproduction program to belong to reading model, terminal has been preserved the corresponding relation of text browsing program, webpage process program and video reproduction program and reading model.
Suppose in the present embodiment that terminal detects the current video reproduction program that moving in the step 101, be that the user has opened video player, terminal is according to the corresponding relation of video reproduction program of being preserved and reading model in this step, when knowing the operation video reproduction program, should open reading model, confirm that current terminal is suitable for reading model.
Step 103, terminal read the pairing configuration parameter of reading model from file system, this configuration parameter comprises: audio parameter, display parameters, vibration control first kind parameter, and the current system status parameters of record terminal, wherein, the current system status parameters of terminal is terminal and does not enter reading model system status parameters before.
Wherein, display parameters comprise: screen display brightness first kind parameter, screen continue to light time first kind parameter.
Wherein, audio parameter comprises: the ringing volume Control Parameter.
Step 104, terminal are according to screen display brightness first kind parameter, and the screen display brightness of control terminal below the second brightness thresholding, is about to screen display brightness and is adjusted into moderate more than the first brightness thresholding; Continue to light time first kind parameter according to screen, the screen of control terminal continues the time of lighting and is higher than second and lights the time, and the time of lighting that continues of this moment can be for the longest.
Step 105, terminal are according to the ringing volume Control Parameter, and the ringing volume of control terminal is lower than first volume or closes.
Step 106, terminal are according to vibration control first kind parameter, Vibration on Start-up function.
Wherein, step 104-step 106 does not have the sequencing of execution, can carry out simultaneously, does not influence realization of the present invention.
Till step 106, terminal has entered reading model.
Step 107, terminal detect video reproduction program and close, be that the user has closed video player, according to the terminal system state parameter that step 103 write down, the sound of control terminal and/or demonstration, to withdraw from reading model, to return to the reading model state before that enters.
Among this embodiment, behind the corresponding relation of creation facilities program (CFP) and contextual model, the user also can change the corresponding relation of program and contextual model: for example, if the user wants video reproduction program changed to from reading model other contextual model, then terminal can receive the instruction of the corresponding relation of request change video reproduction program and contextual model, terminal is just changed the corresponding relation of video reproduction program and contextual model, video reproduction program is belonged to other contextual model; If the user wants video reproduction program is deleted from reading model, terminal can receive the instruction of the corresponding relation of request deletion video reproduction program and reading model, this video reproduction program of deletion from the pairing program of reading model.
The embodiment of the invention one is that example is described with the reading model, but the technical scheme that the embodiment of the invention one is provided is not limited to reading model, also is applicable to other contextual models.
The invention described above embodiment one is by the working procedure of sense terminals, corresponding relation according to program that prestores and contextual model, selecting the current pairing contextual model of working procedure is the contextual model that terminal is suitable for, and control terminal enters this contextual model, make terminal enter contextual model automatically, strengthened the practicality of terminal.
Consult Fig. 2, the embodiment of the invention one provides a kind of implementation method of contextual model, and terminal monitoring enters low state of charge to battery subsystem in this method, and control terminal enters battery saving mode, and this method specifically comprises:
Step 201, terminal monitoring battery subsystem when monitoring battery subsystem when entering low state of charge, confirm that terminal is suitable for battery saving mode.
Step 202, terminal read the pairing configuration parameter of battery saving mode from file system, this configuration parameter comprises: audio parameter, display parameters, the vibration control second class parameter, and the current system status parameters of record terminal, wherein, the current system status parameters of terminal is terminal and does not enter battery saving mode system status parameters before.
Wherein, display parameters comprise: screen display parameter and keyboard display parameters, the screen display parameter comprises: the screen display brightness second class parameter, screen continue the time of lighting second class parameter and enter the sleep state time parameter.The keyboard display parameters comprise: the keyboard light Control Parameter.
Wherein, audio parameter comprises: non-microphone volume Control Parameter.
Step 203, terminal are according to the screen display brightness second class parameter, and the screen display brightness of control terminal is lower than the first brightness thresholding, and the screen display brightness of this moment can be for minimum; Continue the time of lighting second class parameter according to screen, the screen of control terminal continues the time of lighting and is lower than first and lights the time, and the screen of this moment continues the time of lighting can be for minimum; According to entering the sleep state time parameter, control terminal enters the sleep state time and was lower than for first length of one's sleep, and the sleep state time that enters of this moment can be for minimum, when this enters the sleep state time when arriving, controls the screen deepening of described mobile phone.
Step 204, terminal be according to the keyboard light Control Parameter, the closing keyboard lamp.
Step 205, terminal are according to non-microphone volume Control Parameter, and the non-microphone volume of control terminal is lower than first volume, and the non-microphone volume of this moment can be for minimum.
Wherein, the non-microphone volume of terminal comprises: alarm clock volume, short message prompt volume, alarm volume etc.
Step 206, terminal are closed vibrating function according to the vibration control second class parameter.
Wherein, step 203-step 206 does not have the sequencing of execution, can carry out simultaneously, does not influence realization of the present invention.
Till step 206, terminal has entered reading model.
Step 207, terminal detect battery subsystem and withdraw from low state of charge, and according to the terminal system state parameter that step 202 write down, the sound of control terminal and/or demonstration are to withdraw from battery saving mode, to return to the battery saving mode state before that enters.
The invention described above embodiment two is by the working procedure of sense terminals, when detecting terminal and enter low state of charge, select terminal to be suitable for battery saving mode, and control terminal enter this battery saving mode, make terminal enter battery saving mode automatically, strengthened the practicality of terminal.
Consult Fig. 3, the embodiment of the invention three provides a kind of terminal equipment, and this equipment comprises:
Detecting unit 301 is used for the working procedure of sense terminals;
Selected cell 302 is used for the result according to described detecting unit sense terminals working procedure, determines the contextual model that described terminal is suitable for;
Parameter acquiring unit 303 is used to obtain the pairing configuration parameter of the selected contextual model of described selected cell;
Control unit 304 is used for according to described configuration parameter, controls described terminal and enters described contextual model.
Wherein, selected cell 302 comprises:
First selected cell is used for selecting described terminal to be suitable for battery saving mode when detecting unit 301 detects battery subsystem and is in low state of charge;
And/or,
Second selected cell is used for according to the program that prestores and the corresponding relation of contextual model, and selecting the pairing contextual model of detecting unit 301 detected working procedures is the contextual model that described terminal is suitable for.
This equipment also comprises:
Set up unit 305, be used for the corresponding relation of creation facilities program (CFP) and contextual model and be saved in memory cell 306.
Revise unit 307, be used to receive the instruction of corresponding relation of request described program of change and contextual model after, revise the described program in the described memory cell 306 and the corresponding relation of contextual model;
Delete cells 308, be used to receive the instruction of corresponding relation of request described program of deletion and contextual model after, delete the described program in the described memory cell 306 and the corresponding relation of contextual model.
Record cell 309 was used for before the described terminal of control unit 304 controls enters described contextual model the current system status parameters of record terminal;
First recovery unit 310 is used for monitoring battery subsystem when withdrawing from low state of charge when described detecting unit 301, and the system status parameters current according to the terminal that is write down controlled described terminal and returned to the state that enters before the described battery saving mode.
Second recovery unit 311 is used for when described detecting unit 301 detects the working procedure that is applicable to described contextual model and closes, and the system status parameters current according to the terminal that is write down controlled described terminal and returned to the state that enters before the described contextual model.
The terminal of the embodiment of the invention three is by the working procedure of detecting unit 301 sense terminals, selected cell 302 is according to the testing result of working procedure, the contextual model of selecting terminal to be suitable for, so that control unit 304 can enter corresponding contextual model by control terminal, make terminal enter contextual model automatically, strengthened the practicality of terminal.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, read-only memory for example, disk or CD etc.
More than the implementation method and the terminal equipment of a kind of contextual model provided by the present invention is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.