am dce58fe8
: Merge "[Rlog24z] Initialize statistics variables"
* commit 'dce58fe89543388d87ea412b5ee295d4e4e3287e': [Rlog24z] Initialize statistics variables
This commit is contained in:
commit
8b061c93bc
2 changed files with 11 additions and 7 deletions
|
@ -1452,8 +1452,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
statistics.mDuringRepeatedDeleteKeysCounter.getAverageTime(),
|
statistics.mDuringRepeatedDeleteKeysCounter.getAverageTime(),
|
||||||
statistics.mAfterDeleteKeyCounter.getAverageTime(),
|
statistics.mAfterDeleteKeyCounter.getAverageTime(),
|
||||||
statistics.mDictionaryWordCount, statistics.mSplitWordsCount,
|
statistics.mDictionaryWordCount, statistics.mSplitWordsCount,
|
||||||
statistics.mGestureInputCount,
|
statistics.mGesturesInputCount,
|
||||||
statistics.mGestureCharsCount,
|
statistics.mGesturesCharsCount,
|
||||||
statistics.mGesturesDeletedCount);
|
statistics.mGesturesDeletedCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,11 @@ public class Statistics {
|
||||||
// Number of words split and spaces automatically entered.
|
// Number of words split and spaces automatically entered.
|
||||||
int mSplitWordsCount;
|
int mSplitWordsCount;
|
||||||
// Number of gestures that were input.
|
// Number of gestures that were input.
|
||||||
int mGestureInputCount;
|
int mGesturesInputCount;
|
||||||
// Number of gestures that were deleted.
|
// Number of gestures that were deleted.
|
||||||
int mGesturesDeletedCount;
|
int mGesturesDeletedCount;
|
||||||
// Total number of characters in words entered by gesture.
|
// Total number of characters in words entered by gesture.
|
||||||
int mGestureCharsCount;
|
int mGesturesCharsCount;
|
||||||
// Whether the text field was empty upon editing
|
// Whether the text field was empty upon editing
|
||||||
boolean mIsEmptyUponStarting;
|
boolean mIsEmptyUponStarting;
|
||||||
boolean mIsEmptinessStateKnown;
|
boolean mIsEmptinessStateKnown;
|
||||||
|
@ -107,13 +107,17 @@ public class Statistics {
|
||||||
mSpaceCount = 0;
|
mSpaceCount = 0;
|
||||||
mDeleteKeyCount = 0;
|
mDeleteKeyCount = 0;
|
||||||
mWordCount = 0;
|
mWordCount = 0;
|
||||||
|
mDictionaryWordCount = 0;
|
||||||
|
mSplitWordsCount = 0;
|
||||||
|
mGesturesInputCount = 0;
|
||||||
|
mGesturesDeletedCount = 0;
|
||||||
mIsEmptyUponStarting = true;
|
mIsEmptyUponStarting = true;
|
||||||
mIsEmptinessStateKnown = false;
|
mIsEmptinessStateKnown = false;
|
||||||
mKeyCounter.reset();
|
mKeyCounter.reset();
|
||||||
mBeforeDeleteKeyCounter.reset();
|
mBeforeDeleteKeyCounter.reset();
|
||||||
mDuringRepeatedDeleteKeysCounter.reset();
|
mDuringRepeatedDeleteKeysCounter.reset();
|
||||||
mAfterDeleteKeyCounter.reset();
|
mAfterDeleteKeyCounter.reset();
|
||||||
mGestureCharsCount = 0;
|
mGesturesCharsCount = 0;
|
||||||
mGesturesDeletedCount = 0;
|
mGesturesDeletedCount = 0;
|
||||||
|
|
||||||
mLastTapTime = 0;
|
mLastTapTime = 0;
|
||||||
|
@ -168,8 +172,8 @@ public class Statistics {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void recordGestureInput(final int numCharsEntered) {
|
public void recordGestureInput(final int numCharsEntered) {
|
||||||
mGestureInputCount++;
|
mGesturesInputCount++;
|
||||||
mGestureCharsCount += numCharsEntered;
|
mGesturesCharsCount += numCharsEntered;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIsEmptyUponStarting(final boolean isEmpty) {
|
public void setIsEmptyUponStarting(final boolean isEmpty) {
|
||||||
|
|
Loading…
Reference in a new issue