diff options
author | 2012-12-18 09:54:04 -0800 | |
---|---|---|
committer | 2012-12-18 09:54:05 -0800 | |
commit | 8432c1317a0c827e1ee20dab8d0f90de6eb6d4b0 (patch) | |
tree | 7f470309d08a268403bafd631d39b7a1384de91f /java/src/com/android/inputmethod/research/Statistics.java | |
parent | cd89c5d6edbf6e2255589b161d9152b35122bc09 (diff) | |
parent | 48160f9d847c0246883bc81599613b1ebe2652a6 (diff) | |
download | latinime-8432c1317a0c827e1ee20dab8d0f90de6eb6d4b0.tar.gz latinime-8432c1317a0c827e1ee20dab8d0f90de6eb6d4b0.tar.xz latinime-8432c1317a0c827e1ee20dab8d0f90de6eb6d4b0.zip |
Merge "[Rlog3] improve stat recording"
Diffstat (limited to 'java/src/com/android/inputmethod/research/Statistics.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/Statistics.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/research/Statistics.java b/java/src/com/android/inputmethod/research/Statistics.java index 2065ab15e..90d7f38b3 100644 --- a/java/src/com/android/inputmethod/research/Statistics.java +++ b/java/src/com/android/inputmethod/research/Statistics.java @@ -36,6 +36,12 @@ public class Statistics { int mDeleteKeyCount; // Number of words entered during a session. int mWordCount; + // Number of words found in the dictionary. + int mDictionaryWordCount; + // Number of words split and spaces automatically entered. + int mSplitWordsCount; + // Number of gestures that were input. + int mGestureInputCount; // Whether the text field was empty upon editing boolean mIsEmptyUponStarting; boolean mIsEmptinessStateKnown; @@ -143,8 +149,19 @@ public class Statistics { mLastTapTime = time; } - public void recordWordEntered() { + public void recordWordEntered(final boolean isDictionaryWord) { mWordCount++; + if (isDictionaryWord) { + mDictionaryWordCount++; + } + } + + public void recordSplitWords() { + mSplitWordsCount++; + } + + public void recordGestureInput() { + mGestureInputCount++; } public void setIsEmptyUponStarting(final boolean isEmpty) { |