Summary of the invention
The embodiment of the invention provides a kind of method of adjustment of display interface fluency, the slip fluency of adjustment terminal display interface that can be comprehensive.The embodiment of the invention also provides corresponding terminal.
The invention discloses a kind of method of adjustment of display interface fluency, comprising:
Detect the track that described display interface is slided;
Record the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh;
According to described each shift value, calculate the fluency of described display interface;
When the fluency of described display interface during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.
In conjunction with first aspect, in the possible implementation of the first, the described track that is slided of described record comprises at each screen-refresh of described display interface and each shift value between its front screen-refresh:
According to time sequencing, record the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh;
The described fluency that calculates described display interface according to described each shift value comprises:
From described each shift value, choose qualified shift value; Wherein, described qualified shift value for from described each shift value the adjacent previous shift value of maximum shift value begin all shift values that last shift value finishes in described each shift value;
Calculate each second difference between the previous shift value that each rear shift value is corresponding with it in the described qualified shift value;
Calculate the mean square deviation between described each second difference, with the fluency of described mean square deviation as described display interface.
In conjunction with the possible implementation of first aspect the first, in the possible implementation of the second, after the step of each the second difference between the previous shift value that each rear shift value is corresponding with it in the described qualified shift value of described calculating, described method of adjustment also comprises:
Described each second difference is carried out serial number;
Demonstrate the point at described each the second difference place after the numbering in coordinate system, the horizontal ordinate of described coordinate system is the numbering of described each described the second difference, and the ordinate of described coordinate system is for being used for characterizing the numerical value of described the second difference size.
In conjunction with the possible implementation of first aspect the second, in the third possible implementation, before the step of the mean square deviation between described each second difference of described calculating, described method of adjustment also comprises:
Calculate the mean value of described the second difference according to described each second difference; In described coordinate system, show described mean value with the straight line that is parallel to horizontal ordinate, and highlight and depart from described mean value in described each second difference greater than the point at the described second difference place of the 3rd threshold value that sets in advance.
In conjunction with first aspect, in the 4th kind of possible implementation, the described track that is slided of described record also comprises when the step of each screen-refresh of described display interface and each shift value between its front screen-refresh:
Record the described track that is slided each time interval between each screen-refresh of described display interface and its front screen-refresh, and with described each time interval and corresponding each shift value association store.
In conjunction with the 4th kind of possible implementation of first aspect, described according to described each shift value in the 5th kind of possible implementation, calculate the fluency of described display interface, specifically comprise:
According to the incidence relation between described each time interval and corresponding described each shift value, calculate the n order derivative in described each shift value and corresponding described each time interval, described n is natural number;
Calculate the mean square deviation of described n order derivative, with the mean square deviation of the described n order derivative fluency as described display interface.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, the mean square deviation of the described n order derivative of described calculating with the mean square deviation of the described n order derivative fluency as described display interface, specifically comprises:
Calculate described each shift value and the n order derivative in corresponding described each time interval and the mean square deviation of n+m order derivative, until the variation range of the mean square deviation of the mean square deviation of the described n order derivative that calculates and described n+m order derivative is during less than the 4th threshold value that sets in advance, with the mean square deviation of the described n+m order derivative fluency as described display interface; Wherein, described m is not less than 1 integer.
In conjunction with in first aspect, six kinds of possible implementations of first aspect the first to the any one, in the 7th kind of possible implementation, it is described when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, specifically comprise:
When described display interface is slided next time, first shift value from be recorded to each shift value between the each screen-refresh of described display interface and its front screen-refresh begins, the first difference of corresponding desired displacement value in each shift value that calculates respectively record successively and described each desired displacement value, when described the first difference surpasses Second Threshold, determine that shift value corresponding to described the first difference is the described shift value that does not satisfy condition, select desired displacement value corresponding to the described shift value that does not satisfy condition as the shift value that calculates fluency.
Second aspect present invention provides a kind of terminal, comprising:
Detecting unit, the track that is slided for detection of described display interface;
Record cell is used for recording the described track that is slided that described detecting unit detects at each screen-refresh of described display interface and each shift value between its front screen-refresh;
Computing unit is used for described each shift value according to described recording unit records, calculates the fluency of described display interface;
Adjustment unit, the fluency that is used for the described display interface that calculates when described computing unit is during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.
In conjunction with second aspect, in the possible implementation of the first,
Described record cell, records the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh at concrete being used for according to time sequencing;
Described computing unit comprises: choose subelement, the first computation subunit and the second computation subunit,
The described subelement of choosing is used for from described each shift value, chooses qualified shift value; Wherein, described qualified shift value for from described each shift value the adjacent previous shift value of maximum shift value begin all shift values that last shift value finishes in described each shift value;
Described the first computation subunit is used for calculating described each second difference of choosing between each rear shift value of described qualified shift value that subelement chooses previous shift value corresponding with it;
Described the second computation subunit is used for calculating the mean square deviation between each second difference that described the first computation subunit calculates, with the fluency of described mean square deviation as described display interface.
In conjunction with the possible implementation of second aspect the first, in the possible implementation of the second, described terminal also comprises:
Numbered cell, after each second difference that calculates in described the first computation subunit between each rear shift value of described qualified shift value previous shift value corresponding with it, described computing unit is calculated each second difference be numbered;
Display unit, the point that is used for described each the second difference place after coordinate system demonstrates described numbered cell numbering, the horizontal ordinate of described coordinate system is the numbering of described every described the second difference, and the ordinate of described coordinate system is for being used for characterizing the numerical value of described the second difference size.
In conjunction with the possible implementation of second aspect the second, in the third possible implementation, described computing unit also comprises:
The 3rd computation subunit is used for calculating according to each second difference that described the first computation subunit calculates the mean value of described the second difference;
Described display unit, also be used for showing the mean value that described the second computation subunit calculates at described coordinate system with the straight line that is parallel to horizontal ordinate, and highlight and depart from described mean value in described each second difference greater than the point at the described second difference place of the 3rd threshold value that sets in advance.
In conjunction with second aspect, in the 4th kind of possible implementation,
Described record cell also is used for recording the described track that is slided each time interval between each screen-refresh of described display interface and its front screen-refresh, and with described each time interval and corresponding each shift value association store.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, described computing unit also comprises: the 4th computation subunit and the 5th computation subunit,
Described the 4th computation subunit is used for according to the incidence relation between described each time interval and corresponding described each shift value, calculates the n order derivative in described each shift value and corresponding described each time interval, and described n is natural number;
The 5th computation subunit is used for calculating the mean square deviation of the described n order derivative that described the 3rd computation subunit calculates, with the mean square deviation of the described n order derivative fluency as described display interface.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation,
Described the 5th computation subunit, concrete be used for calculating described each shift value and the n order derivative in corresponding described each time interval and the mean square deviation of n+m order derivative, until the variation range of the mean square deviation of the mean square deviation of the described n order derivative that calculates and described n+m order derivative is during less than the 4th threshold value that sets in advance, with the mean square deviation of the described n+m order derivative fluency as described display interface; Wherein, described m is not less than 1 integer.
In conjunction with in may implementations any one of six kinds of second aspects, second aspect the first to the, in the 7th kind of possible implementation, described adjustment unit comprises: the 6th computation subunit, determine subelement and chooser unit,
Described the 6th computation subunit, be used for when described display interface is slided next time, first shift value from be recorded to each shift value between the each screen-refresh of described display interface and its front screen-refresh begins, the first difference of corresponding desired displacement value in each shift value that calculates respectively record successively and described each desired displacement value;
Described definite subelement when the first difference that is used for calculating when described the 5th computation subunit surpasses Second Threshold, determines that shift value corresponding to described the first difference is the described shift value that does not satisfy condition;
Described chooser unit is used for selecting desired displacement value corresponding to the definite shift value that does not satisfy condition of described definite subelement as the shift value that calculates fluency.
The embodiment of the invention adopts and detects the track that described display interface is slided; Record the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh; According to described each shift value, calculate the fluency of described display interface; When the fluency of described display interface during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.Compare the slip fluency that adjusts display interface that the method that the embodiment of the invention provides can be comprehensive with the slip fluency of estimating display interface with the frame rate of single aspect in the prior art.
Embodiment
The embodiment of the invention provides a kind of method of adjustment of display interface fluency, the slip fluency of adjustment terminal display interface that can be comprehensive.The embodiment of the invention also provides corresponding terminal.Below be elaborated respectively.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those skilled in the art belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Consult Fig. 1, an embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides comprises:
101, terminal detects the track that described display interface is slided.
Display interface comprises the application display interface that all can slide.
102, the described track that is slided of terminal record is at each screen-refresh of described display interface and each shift value between its front screen-refresh.
Each screen-refresh also can be called frame and refreshes in the embodiment of the invention, namely whenever refreshes the shift value that former frame of a frame recording moves to this frame display interface.
103, terminal is calculated the fluency of described display interface according to described each shift value.
104, when the fluency of described display interface during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.
First threshold is a predefined value in the embodiment of the invention, for example can be 1,1.5,2, also can for other numerical value, this be not construed as limiting.
Need to prove, in embodiments of the present invention, the value of described fluency is less, and the fluency of expression display interface is better.
Each shift value by setting in advance desirable fluency and being used for calculating this ideal fluency in the embodiment of the invention, the shift value that the each screen-refresh of display interface is obtained refreshes constantly or the corresponding desired displacement value that refreshes the position compares with corresponding, if the first difference that departs from desired displacement value corresponding in described each desired displacement value in described each shift value surpasses the shift value of Second Threshold, with these shift values as the shift value that does not satisfy condition, adjust the shift value that these do not satisfy condition, thereby when described display interface was slided next time, the fluency of described display interface was not more than the described first threshold that sets in advance.
The embodiment of the invention adopts and detects the track that described display interface is slided; Record the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh; According to described each shift value, calculate the fluency of described display interface; When the fluency of described display interface during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.Compare the slip fluency that adjusts display interface that the method that the embodiment of the invention provides can be comprehensive with the slip fluency of estimating display interface with the frame rate of single aspect in the prior art.
Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1, among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, the described track that is slided of described record comprises at each screen-refresh of described display interface and each shift value between its front screen-refresh:
According to time sequencing, record the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh;
The described fluency that calculates described display interface according to described each shift value comprises:
From described each shift value, choose qualified shift value; Wherein, described qualified shift value for from described each shift value the adjacent previous shift value of maximum shift value begin all shift values that last shift value finishes in described each shift value;
Calculate each second difference between the previous shift value that each rear shift value is corresponding with it in the described qualified shift value;
Calculate the mean square deviation between described each second difference, with the fluency of described mean square deviation as described display interface.
In the embodiment of the invention, calculate the fluency of display interface by the difference of a rear shift value and a front shift value, because the shift value in the initial procedure of sliding may be subjected to the pressing force of touch object larger, so usually give up front several shift value, can select maximum displacement value adjacent shift value before all shift values afterwards as the qualified shift value that calculates fluency, detailed process is exemplified below:
Recorded 21 shift values in a display interface sliding process, shift value represents with △ S, and unit sees table 1 for the concrete shift value of millimeter (mm):
Table 1: the shift value of record in chronological order in sliding process
△S |
0 |
2.6 |
3.6 |
6 |
6.8 |
6 |
5.3 |
5 |
4.1 |
3.5 |
2.8 |
2.2 |
2 |
1.8 |
1.2 |
1 |
0.8 |
0.5 |
0.3 |
0.2 |
0.1 |
Shift value when refreshing for the 5th time as can be seen from Table 1 is maximum, is 6.8, chooses so all shift values after adjacent shift value 6, maximum displacement value 6.8 and the maximum displacement value before 6.8 as qualified shift value.
Qualified shift value after choosing represents with table 2:
Table 2: qualified shift value
△S |
6 |
6.8 |
6 |
5.3 |
5 |
4.1 |
3.5 |
2.8 |
2.2 |
2 |
1.8 |
1.2 |
1 |
0.8 |
0.5 |
0.3 |
0.2 |
0.1 |
Calculate the difference of a rear shift value and a front shift value, the difference of shift value represents with d △ S, and unit is millimeter (mm), and concrete difference can be consulted table 3 and be understood:
Table 3: the difference of a rear shift value and a front shift value
△S |
6 |
6.8 |
6 |
5.3 |
5 |
4.1 |
3.5 |
2.8 |
2.2 |
2 |
1.8 |
1.2 |
1 |
0.8 |
0.5 |
0.3 |
0.2 |
0.1 |
d△S |
? |
0.8 |
-0.8 |
-0.7 |
-0.3 |
-0.9 |
-0.6 |
-0.7 |
-0.6 |
-0.2 |
-0.2 |
-0.6 |
-0.2 |
-0.2 |
-0.3 |
-0.2 |
-0.1 |
-0.1 |
After calculating the difference in the table 3, the mean square deviation of difference in the reckoner 3 is calculated the mean value that mean square deviation needs to calculate first before all differences,
Wherein, μ is mean value, and N is the number of difference, and N is natural number, and i is the variable quantity from 1 to N, x during i=1
1Represent first difference, x during i=2
2Represent second difference ..., x during i=N
NRepresent N difference, i is less than or equal to N, x
iBe i difference.
Bring the difference in the table 3 into above-mentioned Mean Value Formulas, can obtain that the mean value of difference data is about-0.35 in the table 3.
After obtaining the mean value of difference, bring the mean value of difference into the mean square deviation formula, the mean square deviation formula is as follows:
Wherein, σ is mean square deviation, and μ is mean value, and N is the number of difference, and N is natural number, and i is the variable quantity from 1 to N, x during i=1
1Represent first difference, x during i=2
2Represent second difference ..., x during i=N
NRepresent N difference, i is less than or equal to N, x
iBe i difference.
When μ equals-0.4, bring above-mentioned mean square deviation formula into and calculate σ and approximate 0.39, the fluency of this display interface just is 0.39 so.
On the basis of optional embodiment corresponding to above-mentioned Fig. 1, among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, after the step of each the second difference between the previous shift value that each rear shift value is corresponding with it in the described qualified shift value of described calculating, described method of adjustment also comprises:
According to time sequencing, described each second difference is carried out serial number;
Demonstrate the point at described each the second difference place after the numbering in coordinate system, the horizontal ordinate of described coordinate system is the numbering of described each described the second difference, and the ordinate of described coordinate system is for being used for characterizing the numerical value of described the second difference size.
In the embodiment of the invention, can according to the sequencing in time of the shift value that is used for calculating the second difference, be numbered for the second difference that calculates, and in coordinate system, demonstrate the point at described each the second difference place after the numbering.The horizontal ordinate of coordinate system is the numbering of described every described the second difference, and the ordinate of coordinate system is for being used for characterizing the numerical value of described the second difference size.
On the basis of optional embodiment corresponding to above-mentioned Fig. 1, among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, before the step of the mean square deviation between described each second difference of described calculating, described method of adjustment also comprises:
Calculate the mean value of described the second difference according to described each second difference;
In described coordinate system, show described mean value with the straight line that is parallel to horizontal ordinate, and highlight and depart from described mean value in described each second difference greater than the point at the described second difference place of the 3rd threshold value that sets in advance.
In the embodiment of the invention, after calculating the mean value of the second difference, can also in the coordinate axis of above-described embodiment, show described mean value with the straight line that is parallel to horizontal ordinate, specifically can consult Fig. 2 understands, clearly show the distribution of point at 17 the second difference places and the distribution of the second difference mean value among Fig. 2, from Fig. 2, can be clearly seen that the degree of the second difference deviation average.
In the embodiment of the invention, if mean value is-0.4, if the 3rd threshold is 0.5, departs from so described mean value in the second difference and can in Fig. 2, highlight greater than the point of the 3rd threshold value that sets in advance.
On the basis of embodiment corresponding to above-mentioned Fig. 1, among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, the described track that is slided of described record can also comprise when the step of each screen-refresh of described display interface and each shift value between its front screen-refresh:
Record the described track that is slided each time interval between each screen-refresh of described display interface and its front screen-refresh, and with described each time interval and corresponding each shift value association store.
In the embodiment of the invention, displacement and the time interval can concern to describe by equation, represent with △ S such as shift value, and the time interval represents with △ t, and the equation relation in shift value and the time interval can concern with following equation to represent:
△S=f(x)△t
Wherein, function of f (x) expression.
On the basis of optional embodiment corresponding to above-mentioned Fig. 1, described according to described each shift value among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, calculate the fluency of described display interface, specifically comprise:
According to the incidence relation between described each time interval and corresponding described each shift value, calculate the n order derivative in described each shift value and corresponding described each time interval, described n is natural number;
Calculate the mean square deviation of described n order derivative, with the mean square deviation of the described n order derivative fluency as described display interface.
In the embodiment of the invention, also can be interpreted as displacement time curve to the incidence relation in displacement and the time interval, such as Fig. 3, the displacement time curve in the process that the display interface that is terminal that Fig. 3 shows is slided.
The incidence relation at contraposition shift time interval is asked first order derivative, and namely being equivalent to obtain acceleration is the incidence relation of time, and such as Fig. 4, Fig. 4 is the acceleration after once differentiating and the curve of time.In fact can be with the mean square deviation of the derivative after the differentiate fluency as display interface, but for precision more, can ask several subderivatives more, calculate again mean square deviation, as the fluency of display interface.
On the basis of above-described embodiment, among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, the mean square deviation of the described n order derivative of described calculating with the mean square deviation of the described n order derivative fluency as described display interface, specifically comprises:
Calculate described each shift value and the n order derivative in corresponding described each time interval and the mean square deviation of n+m order derivative, until the variation range of the mean square deviation of the mean square deviation of the described n order derivative that calculates and described n+m order derivative is during less than the 4th threshold value that sets in advance, with the mean square deviation of the described n+m order derivative fluency as described display interface; Wherein, described m is not less than 1 integer.
For instance, after 3 differentiates, the variation range of the mean square deviation of calculating and the mean square deviation calculated after differentiating for 5 times is very little, and the mean square deviation after 5 times can being differentiated so is as the fluency of described display interface.
On the basis of above-mentioned any one embodiment, among another embodiment of the method for adjustment of the display interface fluency that the embodiment of the invention provides, it is described when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, specifically comprise:
When described display interface is slided next time, first shift value from be recorded to each shift value between the each screen-refresh of described display interface and its front screen-refresh begins, the first difference of corresponding desired displacement value in each shift value that calculates respectively record successively and described each desired displacement value, when described the first difference surpasses Second Threshold, determine that shift value corresponding to described the first difference is the described shift value that does not satisfy condition, select desired displacement value corresponding to the described shift value that does not satisfy condition as the shift value that calculates fluency.
In the embodiment of the invention, when the shift value that records is 3.25mm, the desired displacement value that this shift value is corresponding is 2.05mm, the first difference is 3.25-2.05=1.2 so, if Second Threshold is 0.6,1.2 greater than 0.6 so, then can select 2.05 as the shift values that calculate fluency, can determine that also one is used for the calculating fluency with the difference of desired displacement value less than a shift value of 0.6.
Consult Fig. 5, an embodiment of the terminal that the embodiment of the invention provides comprises:
Detecting unit 201, the track that is slided for detection of described display interface;
Record cell 202 is used for recording the described track that is slided that described detecting unit 201 detects at each screen-refresh of described display interface and each shift value between its front screen-refresh;
Computing unit 203 is used for described each shift value according to described record cell 202 records, calculates the fluency of described display interface;
Adjustment unit 204, the fluency that is used for the described display interface that calculates when described computing unit 203 is during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.
In the embodiment of the invention, detecting unit 201 detects the track that described display interface is slided; The described track that is slided that the described detecting unit 201 of record cell 202 records detects is at each screen-refresh of described display interface and each shift value between its front screen-refresh; Computing unit 203 calculates the fluency of described display interface according to described each shift value of described record cell 202 records; The fluency of the described display interface that adjustment unit 204 calculates when described computing unit 203 is during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.Compared with prior art, the slip fluency that adjusts display interface that the terminal that provides of the embodiment of the invention can be comprehensive.
On the basis of embodiment corresponding to above-mentioned Fig. 5, consult Fig. 6, among another embodiment of the terminal that the embodiment of the invention provides,
Described record cell 202, records the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh at concrete being used for according to time sequencing;
Described computing unit 203 comprises: choose subelement 2031, the first computation subunit 2032 and the second computation subunit 2033,
The described subelement 2031 of choosing is used for according to described time sequencing, from described each shift value, chooses qualified shift value; Wherein, described qualified shift value for from described each shift value the adjacent previous shift value of maximum shift value begin all shift values that last shift value finishes in described each shift value;
Described the first computation subunit 2032 is used for calculating described each second difference of choosing between each rear shift value of described qualified shift value that subelement 2031 chooses previous shift value corresponding with it;
Described the second computation subunit 2033 is used for calculating the mean square deviation between each second difference that described the first computation subunit 2032 calculates, with the fluency of described mean square deviation as described display interface.
On the basis of embodiment corresponding to above-mentioned Fig. 6, consult Fig. 7, among another embodiment of the terminal that the embodiment of the invention provides, described terminal also comprises: numbered cell 205 and display unit 206,
Numbered cell 205, after each second difference that calculates in described the first computation subunit 2032 between each rear shift value of described qualified shift value previous shift value corresponding with it, described computing unit is calculated each second difference be numbered;
Display unit 206, the point that is used for described each the second difference place after coordinate system demonstrates described numbered cell 205 numberings, the horizontal ordinate of described coordinate system is the numbering of described every described the second difference, and the ordinate of described coordinate system is for being used for characterizing the numerical value of described the second difference size.
On the basis of embodiment corresponding to above-mentioned Fig. 7, consult Fig. 8, among another embodiment of the terminal that the embodiment of the invention provides, described computing unit 203 also comprises:
The 3rd computation subunit 2034 is used for calculating according to each second difference that described the first computation subunit 2032 calculates the mean value of described the second difference;
Described display unit 206, also be used for showing the mean value that described the 3rd computation subunit 2034 calculates at described coordinate system with the straight line that is parallel to horizontal ordinate, and highlight and depart from described mean value in described each second difference greater than the point at the described second difference place of the 3rd threshold value that sets in advance.
On the basis of embodiment corresponding to above-mentioned Fig. 5, among another embodiment of the terminal that the embodiment of the invention provides,
Described record cell 202 also is used for recording the described track that is slided each time interval between each screen-refresh of described display interface and its front screen-refresh, and with described each time interval and corresponding each shift value association store.
On the basis of optional embodiment corresponding to above-mentioned Fig. 5, consult Fig. 9, among another embodiment of the terminal that the embodiment of the invention provides, described computing unit 203 comprises: the 4th computation subunit 2035 and the 5th computation subunit 2036,
Described the 4th computation subunit 2035 is used for according to the incidence relation between described each time interval and corresponding described each shift value, calculates the n order derivative in described each shift value and corresponding described each time interval, and described n is natural number;
The 5th computation subunit 2036 is used for calculating the mean square deviation of the described n order derivative that described the 4th computation subunit 2035 calculates, with the mean square deviation of the described n order derivative fluency as described display interface.
On the basis of optional embodiment corresponding to above-mentioned Fig. 9, among another embodiment of the terminal that the embodiment of the invention provides,
Described the 5th computation subunit 2036, concrete be used for calculating described each shift value and the n order derivative in corresponding described each time interval and the mean square deviation of n+m order derivative, until the variation range of the mean square deviation of the mean square deviation of the described n order derivative that calculates and described n+m order derivative is during less than the 4th threshold value that sets in advance, with the mean square deviation of the described n+m order derivative fluency as described display interface; Wherein, described m is not less than 1 integer.
On the basis of optional embodiment corresponding to above-mentioned Fig. 5, consult Figure 10, among another embodiment of the terminal that the embodiment of the invention provides, the 6th computation subunit 2041, determine subelement 2042 and chooser unit 2043,
The 6th computation subunit 2041, be used for when described display interface is slided next time, first shift value from be recorded to each shift value between the each screen-refresh of described display interface and its front screen-refresh begins, the first difference of corresponding desired displacement value in each shift value that calculates respectively record successively and described each desired displacement value;
Determine subelement 2042, when the first difference that is used for calculating when described the 6th computation subunit 2041 surpasses Second Threshold, determine that shift value corresponding to described the first difference is the described shift value that does not satisfy condition;
Chooser unit 2043, desired displacement value corresponding to the shift value that does not satisfy condition that is used for selecting described definite subelement 2042 to determine is as the shift value that calculates fluency.
The embodiment of the invention also provides a kind of computer-readable storage medium, and this computer-readable storage medium has program stored therein, and this program comprises the some or all of step of the control method of above-mentioned input information when carrying out.
Figure 11 shows the structure of the terminal that the embodiment of the invention provides, the terminal that the embodiment of the invention provides can be used for the control method of the input information of the enforcement embodiment of the invention, for convenience of explanation, only show the part relevant with the embodiment of the invention, concrete ins and outs do not disclose, and please refer to the inventive method embodiment and partly understand.
This terminal can be for comprising mobile phone, panel computer, PDA(Personal Digital Assistant, personal digital assistant), POS(Point of Sales, point-of-sale terminal), the terminal such as vehicle-mounted computer, take terminal as example as mobile phone, shown in Figure 11 is the block diagram of the part-structure of the relevant mobile phone 400 of the terminal that provides with the embodiment of the invention.With reference to Figure 11, mobile phone 400 comprises RF(Radio Frequency, radio frequency) parts such as circuit 410, storer 420, input block 430, display device 440, sensor 450, output unit 451, voicefrequency circuit 460, Wireless Fidelity (wireless fidelity, WiFi) module 470, processor 480 and power supply 490.It will be understood by those skilled in the art that the handset structure shown in Figure 11 does not consist of the restriction to mobile phone, can comprise the parts more more or less than diagram, perhaps make up some parts, perhaps different arrangements of components.
Below in conjunction with Figure 11 each component parts of mobile phone 400 is carried out concrete introduction:
RF circuit 410 can be used for receiving and sending messages or communication process in, the reception of signal and transmission especially, after the downlink information of base station received, process for processor 480; In addition, the up data of design are sent to the base station.Usually, the RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 410 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc.
Storer 420 can be used for storing software program and module, and processor 480 is stored in software program and the module of storer 420 by operation, thereby the various functions of carrying out mobile phone 400 are used and the data processing.Storer 420 can mainly comprise storage program district and storage data field, wherein, but the required application program (such as sound-playing function, image player function etc.) of storage program district storage operating system, at least one function etc.; The data (such as voice data, phone directory etc.) that the use according to mobile phone 400 creates etc. can be stored in the storage data field.In addition, storer 420 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 430 can be used for receiving numeral or the character information of input, and generation is inputted with the key signals that the user arranges and function control is relevant of mobile phone 400.Particularly, input block 430 can comprise contact panel 431 and other input equipments 432.Contact panel 431, be also referred to as touch-screen, can collect the user thereon or near touch operation (use such as the user any suitable objects such as finger, stylus or annex on the contact panel 431 or near the operation contact panel 431), and drive corresponding coupling arrangement according to predefined formula.Optionally, contact panel 431 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, gives processor 480 again, and the order that energy receiving processor 480 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize contact panel 431.Except contact panel 431, input block 430 can also comprise other input equipments 432.Particularly, other input equipments 432 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, the control lever etc.
Display device 440 can be used for showing the information of being inputted by the user or offering user's information and the various menus of mobile phone 400.Display device 440 can comprise display panel 441, optionally, can adopt the forms such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) to configure display panel 441.Further, contact panel 431 can cover display panel 441, when contact panel 431 detect thereon or near touch operation after, send processor 480 to determining the type of touch event, provide corresponding vision output according to the type of touch event at display panel 441 with preprocessor 480.Although in Fig. 8, contact panel 431 and display panel 441 be as two independently parts realize input and the input function of mobile phone 400, but in certain embodiments, can contact panel 431 and display panel 441 is integrated and realize the input and output function of mobile phone 400.
Mobile phone 400 also can comprise at least a sensor 450, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can be regulated according to the light and shade of ambient light the brightness of display panel 441, proximity transducer can when mobile phone 400 moves in one's ear, cut out display panel 441 and/or backlight.A kind of as motion sensor, accelerometer sensor can detect the size of the acceleration that (is generally three axles) on all directions, size and the direction of gravity be can detect when static, application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as passometer, knock) of mobile phone attitude etc. can be used for identifying; As for mobile phone 400 other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Output unit 451 can be used for transmitted signal.
Voicefrequency circuit 460, loudspeaker 461, microphone 462 can provide the audio interface between user and the mobile phone 400.Voicefrequency circuit 460 can be transferred to loudspeaker 461 with the electric signal after the voice data conversion that receives, and is converted to voice signal output by loudspeaker 461; On the other hand, microphone 462 is converted to electric signal with the voice signal of collecting, by being converted to voice data after voicefrequency circuit 460 receptions, after again voice data output processor 480 being processed, to send to such as another mobile phone, perhaps export voice data to storer 420 in order to further process through RF circuit 410.
WiFi belongs to the short range wireless transmission technology, mobile phone 400 by WiFi module 470 can help that the user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for the user.Although Figure 11 shows WiFi module 470, be understandable that, it does not belong to must consisting of of mobile phone 400, fully can be as required in the scope of the essence that does not change invention and omit.
Processor 480 is control centers of mobile phone 400, utilize the various piece of various interface and the whole mobile phone of connection, by moving or carry out software program and/or the module that is stored in the storer 420, and call the data that are stored in the storer 420, carry out various functions and the deal with data of mobile phone 400, thereby mobile phone is carried out integral monitoring.Optionally, processor 480 can comprise one or more processing units; Preferably, processor 480 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in the processor 480.
Mobile phone 400 comprises that also the power supply 490(that powers to all parts is such as battery), preferably, power supply can link to each other with processor 480 logics by power-supply management system, thereby realizes the functions such as management charging, discharge and power managed by power-supply management system.
Although not shown, mobile phone 400 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the included processor 480 of this terminal also has following functions:
The track that described processor 480 is also slided for detection of described display interface; Record the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh; According to described each shift value, calculate the fluency of described display interface; When the fluency of described display interface during greater than the first threshold that sets in advance, when described display interface is slided next time, according to each the desired displacement value that is used for calculating desirable fluency that sets in advance, adjust the shift value that does not satisfy condition in each shift value between the each screen-refresh of described display interface and its front screen-refresh, the described shift value that does not satisfy condition is to depart from the first difference of desired displacement value corresponding in described each desired displacement value in described each shift value above the shift value of Second Threshold, so that described display interface is when being slided next time, the fluency of described display interface is not more than the described first threshold that sets in advance.
In the embodiment of the invention, display interface comprises that all application display interfaces that can slide, each screen-refresh also can be called frame and refresh, and namely whenever refresh the shift value that former frame of a frame recording moves to this frame display interface.
In the some embodiments of the invention, described processor 480 also is used for according to time sequencing, records the described track that is slided each shift value between each screen-refresh of described display interface and its front screen-refresh; From described each shift value, choose qualified shift value; Wherein, described qualified shift value for from described each shift value the adjacent previous shift value of maximum shift value begin all shift values that last shift value finishes in described each shift value; Calculate each second difference between the previous shift value that each rear shift value is corresponding with it in the described qualified shift value; Calculate the mean square deviation between described each second difference, with the fluency of described mean square deviation as described display interface.
In the embodiment of the invention, calculate the fluency of display interface by the difference of a rear shift value and a front shift value, because the shift value in the initial procedure of sliding may be subjected to the pressing force of touch object larger, so usually give up front several shift value, can select maximum displacement value adjacent shift value before all shift values afterwards as the qualified shift value that calculates fluency.
In the some embodiments of the invention, described processor 480 also is used for described each second difference is carried out serial number;
Described display device 440, the point that also is used for described each the second difference place after coordinate system demonstrates numbering, the horizontal ordinate of described coordinate system is the numbering of described each described the second difference, and the ordinate of described coordinate system is for being used for characterizing the numerical value of described the second difference size.
In the some embodiments of the invention, described processor 480 also is used for calculating according to described each second difference the mean value of described the second difference;
Described display device 440 also is used for showing described mean value at described coordinate system with the straight line that is parallel to horizontal ordinate, and highlights and depart from described mean value in described each second difference greater than the point at the described second difference place of the 3rd threshold value that sets in advance.
In the embodiment of the invention, can draw and show difference and search the curve of number according to the number of the difference that calculates and difference, the straight line that on this curve, can also show simultaneously mean value, specifically can consult Fig. 2 understands, clearly show the distribution of 17 poor difference points and the distribution of difference mean value among Fig. 2, from Fig. 2, can be clearly seen that the degree of difference deviation average.
In the some embodiments of the invention, described processor 480 also with the described track that is slided of record in each screen-refresh of described display interface and each time interval between its front screen-refresh, and with described each time interval and corresponding each shift value association store.
In the embodiment of the invention, can be recorded in simultaneously shift value and the adjacent time interval of refreshing for twice that screen whenever refreshes the display interface that is once slided.
In the some embodiments of the invention, described processor 480 also is used for according to the incidence relation between described each time interval and corresponding described each shift value, calculate the n order derivative in described each shift value and corresponding described each time interval, described n is natural number; Calculate the mean square deviation of described n order derivative, with the mean square deviation of the described n order derivative fluency as described display interface.
In the embodiment of the invention, also can be interpreted as displacement time curve to the incidence relation in displacement and the time interval, such as Fig. 3, the displacement time curve in the process that the display interface that is terminal that Fig. 3 shows is slided.
The incidence relation at contraposition shift time interval is asked first order derivative, and namely being equivalent to obtain acceleration is the incidence relation of time, and such as Fig. 4, Fig. 4 is the acceleration after once differentiating and the curve of time.In fact can be with the mean square deviation of the derivative after the differentiate fluency as display interface, but for precision more, can ask several subderivatives more, calculate again mean square deviation, as the fluency of display interface.
In the some embodiments of the invention, described processor 480 also is used for calculating described each shift value and the n order derivative in corresponding described each time interval and the mean square deviation of n+m order derivative, until the variation range of the mean square deviation of the mean square deviation of the described n order derivative that calculates and described n+m order derivative is during less than the 4th threshold value that sets in advance, with the mean square deviation of the described n+m order derivative fluency as described display interface; Wherein, described m is not less than 1 integer.
In the some embodiments of the invention, described processor 480 also is used for when described display interface is slided next time, first shift value from be recorded to each shift value between the each screen-refresh of described display interface and its front screen-refresh begins, the first difference of corresponding desired displacement value in each shift value that calculates respectively record successively and described each desired displacement value, when described the first difference surpasses Second Threshold, determine that shift value corresponding to described the first difference is the described shift value that does not satisfy condition, select desired displacement value corresponding to the described shift value that does not satisfy condition as the shift value that calculates fluency.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Method of adjustment method and the terminal of the above display interface fluency that the embodiment of the invention is provided are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.