aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/Statistics.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-08-13 10:30:12 -0700
committerKurt Partridge <kep@google.com>2012-12-21 12:33:54 -0800
commitf1ce54891f54b4b75a7662fe08204e9d50e54e55 (patch)
tree42b749c9fd5bb3e26bfe3d7c0a45f51dd2ab5f4c /java/src/com/android/inputmethod/research/Statistics.java
parent58281a98eb8750d334db24e626c8fce37ffb5e9e (diff)
downloadlatinime-f1ce54891f54b4b75a7662fe08204e9d50e54e55.tar.gz
latinime-f1ce54891f54b4b75a7662fe08204e9d50e54e55.tar.xz
latinime-f1ce54891f54b4b75a7662fe08204e9d50e54e55.zip
[Rlog7] ResearchLog improve gesture tracking
- count how many times a gesture is deleted - count num chars entered by gesture - change name of fns to reflect capturing gesture information when setting composing text Change-Id: I1b8ebf9cfcf304e0efd827c8b8e28a4010199728
Diffstat (limited to 'java/src/com/android/inputmethod/research/Statistics.java')
-rw-r--r--java/src/com/android/inputmethod/research/Statistics.java13
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++;
+ }
}