aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/Statistics.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-12-23 12:38:26 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-23 12:38:26 -0800
commit13b0617cfedf9e9aea41747403eaaa91de530b44 (patch)
tree430baf6027ae7414fc1c38b586385fdfda29f84f /java/src/com/android/inputmethod/research/Statistics.java
parentd357398bf76bcc575d54f553d3322f52c2a33c91 (diff)
parentf763dc5915d394378bdcdc90cc0b238e66926b8b (diff)
downloadlatinime-13b0617cfedf9e9aea41747403eaaa91de530b44.tar.gz
latinime-13b0617cfedf9e9aea41747403eaaa91de530b44.tar.xz
latinime-13b0617cfedf9e9aea41747403eaaa91de530b44.zip
am f763dc59: [Rlog24] ResearchLogger detect word boundaries in callers above commitText
* commit 'f763dc5915d394378bdcdc90cc0b238e66926b8b': [Rlog24] ResearchLogger detect word boundaries in callers above commitText
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, 13 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/research/Statistics.java b/java/src/com/android/inputmethod/research/Statistics.java
index a02aabf3c..e9c02c919 100644
--- a/java/src/com/android/inputmethod/research/Statistics.java
+++ b/java/src/com/android/inputmethod/research/Statistics.java
@@ -47,6 +47,10 @@ public class Statistics {
int mGesturesDeletedCount;
// Total number of characters in words entered by gesture.
int mGesturesCharsCount;
+ // Number of manual suggestions chosen.
+ int mManualSuggestionsCount;
+ // Number of times a commit was reverted in this session.
+ int mRevertCommitsCount;
// Whether the text field was empty upon editing
boolean mIsEmptyUponStarting;
boolean mIsEmptinessStateKnown;
@@ -111,6 +115,8 @@ public class Statistics {
mSplitWordsCount = 0;
mGesturesInputCount = 0;
mGesturesDeletedCount = 0;
+ mManualSuggestionsCount = 0;
+ mRevertCommitsCount = 0;
mIsEmptyUponStarting = true;
mIsEmptinessStateKnown = false;
mKeyCounter.reset();
@@ -184,4 +190,11 @@ public class Statistics {
public void recordGestureDelete() {
mGesturesDeletedCount++;
}
+ public void recordManualSuggestion() {
+ mManualSuggestionsCount++;
+ }
+
+ public void recordRevertCommit() {
+ mRevertCommitsCount++;
+ }
}