diff options
author | 2012-12-22 11:50:45 -0800 | |
---|---|---|
committer | 2012-12-22 11:50:46 -0800 | |
commit | ab9f4fd35932a6f513f36d14dc77f559209b1131 (patch) | |
tree | 9aa748b24fc2c4c909fca08f3c248c0b40186a24 /java/src/com/android/inputmethod/research/Statistics.java | |
parent | 5a7ac3bf2a2df92b4643916899908ef30e544782 (diff) | |
parent | f1ce54891f54b4b75a7662fe08204e9d50e54e55 (diff) | |
download | latinime-ab9f4fd35932a6f513f36d14dc77f559209b1131.tar.gz latinime-ab9f4fd35932a6f513f36d14dc77f559209b1131.tar.xz latinime-ab9f4fd35932a6f513f36d14dc77f559209b1131.zip |
Merge "[Rlog7] ResearchLog improve gesture tracking"
Diffstat (limited to 'java/src/com/android/inputmethod/research/Statistics.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/Statistics.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/research/Statistics.java b/java/src/com/android/inputmethod/research/Statistics.java index 23d1050cb..f9c072967 100644 --- a/java/src/com/android/inputmethod/research/Statistics.java +++ b/java/src/com/android/inputmethod/research/Statistics.java @@ -43,6 +43,10 @@ public class Statistics { int mSplitWordsCount; // Number of gestures that were input. int mGestureInputCount; + // Number of gestures that were deleted. + int mGesturesDeletedCount; + // Total number of characters in words entered by gesture. + int mGestureCharsCount; // Whether the text field was empty upon editing boolean mIsEmptyUponStarting; boolean mIsEmptinessStateKnown; @@ -109,6 +113,8 @@ public class Statistics { mBeforeDeleteKeyCounter.reset(); mDuringRepeatedDeleteKeysCounter.reset(); mAfterDeleteKeyCounter.reset(); + mGestureCharsCount = 0; + mGesturesDeletedCount = 0; mLastTapTime = 0; mIsLastKeyDeleteKey = false; @@ -161,12 +167,17 @@ public class Statistics { mSplitWordsCount++; } - public void recordGestureInput() { + public void recordGestureInput(final int numCharsEntered) { mGestureInputCount++; + mGestureCharsCount += numCharsEntered; } public void setIsEmptyUponStarting(final boolean isEmpty) { mIsEmptyUponStarting = isEmpty; mIsEmptinessStateKnown = true; } + + public void recordGestureDelete() { + mGesturesDeletedCount++; + } } |