diff options
author | 2012-12-23 09:51:22 -0800 | |
---|---|---|
committer | 2012-12-23 09:51:22 -0800 | |
commit | dce58fe89543388d87ea412b5ee295d4e4e3287e (patch) | |
tree | 2020233605f0b268f9711e455797aae6f2ef739d /java/src/com/android/inputmethod/research/Statistics.java | |
parent | a51fbd92a537e0a8b8be217f3663542821002769 (diff) | |
parent | 99bd42b29504ee214f72343cceeab06d2999eaf6 (diff) | |
download | latinime-dce58fe89543388d87ea412b5ee295d4e4e3287e.tar.gz latinime-dce58fe89543388d87ea412b5ee295d4e4e3287e.tar.xz latinime-dce58fe89543388d87ea412b5ee295d4e4e3287e.zip |
Merge "[Rlog24z] Initialize statistics variables"
Diffstat (limited to 'java/src/com/android/inputmethod/research/Statistics.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/Statistics.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/research/Statistics.java b/java/src/com/android/inputmethod/research/Statistics.java index f9c072967..a02aabf3c 100644 --- a/java/src/com/android/inputmethod/research/Statistics.java +++ b/java/src/com/android/inputmethod/research/Statistics.java @@ -42,11 +42,11 @@ public class Statistics { // Number of words split and spaces automatically entered. int mSplitWordsCount; // Number of gestures that were input. - int mGestureInputCount; + int mGesturesInputCount; // Number of gestures that were deleted. int mGesturesDeletedCount; // Total number of characters in words entered by gesture. - int mGestureCharsCount; + int mGesturesCharsCount; // Whether the text field was empty upon editing boolean mIsEmptyUponStarting; boolean mIsEmptinessStateKnown; @@ -107,13 +107,17 @@ public class Statistics { mSpaceCount = 0; mDeleteKeyCount = 0; mWordCount = 0; + mDictionaryWordCount = 0; + mSplitWordsCount = 0; + mGesturesInputCount = 0; + mGesturesDeletedCount = 0; mIsEmptyUponStarting = true; mIsEmptinessStateKnown = false; mKeyCounter.reset(); mBeforeDeleteKeyCounter.reset(); mDuringRepeatedDeleteKeysCounter.reset(); mAfterDeleteKeyCounter.reset(); - mGestureCharsCount = 0; + mGesturesCharsCount = 0; mGesturesDeletedCount = 0; mLastTapTime = 0; @@ -168,8 +172,8 @@ public class Statistics { } public void recordGestureInput(final int numCharsEntered) { - mGestureInputCount++; - mGestureCharsCount += numCharsEntered; + mGesturesInputCount++; + mGesturesCharsCount += numCharsEntered; } public void setIsEmptyUponStarting(final boolean isEmpty) { |