diff options
author | 2012-08-10 14:21:18 -0700 | |
---|---|---|
committer | 2012-12-17 17:08:47 -0800 | |
commit | 48160f9d847c0246883bc81599613b1ebe2652a6 (patch) | |
tree | 990131d842561133d262c68cef15f1eedc70665e /java/src/com/android/inputmethod/research/Statistics.java | |
parent | 3370dc82370f5397bafdaeba395e3dfc8b8adf3a (diff) | |
download | latinime-48160f9d847c0246883bc81599613b1ebe2652a6.tar.gz latinime-48160f9d847c0246883bc81599613b1ebe2652a6.tar.xz latinime-48160f9d847c0246883bc81599613b1ebe2652a6.zip |
[Rlog3] improve stat recording
Change-Id: Ie3b70e6eadc2a9af5ef45ddfad6a3398cea7bfe8
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) { |