diff options
author | 2012-12-22 11:53:23 -0800 | |
---|---|---|
committer | 2012-12-22 11:53:23 -0800 | |
commit | d3cd23932f222e612a6350dfc56a13ad109e60d8 (patch) | |
tree | 9aa748b24fc2c4c909fca08f3c248c0b40186a24 /java/src/com/android/inputmethod/research/Statistics.java | |
parent | 59ce96bd4870f7d6eb22f762f47ddd8e095bd55f (diff) | |
parent | ab9f4fd35932a6f513f36d14dc77f559209b1131 (diff) | |
download | latinime-d3cd23932f222e612a6350dfc56a13ad109e60d8.tar.gz latinime-d3cd23932f222e612a6350dfc56a13ad109e60d8.tar.xz latinime-d3cd23932f222e612a6350dfc56a13ad109e60d8.zip |
am ab9f4fd3: Merge "[Rlog7] ResearchLog improve gesture tracking"
* commit 'ab9f4fd35932a6f513f36d14dc77f559209b1131':
[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++; + } } |