aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/ResearchLogger.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-01-21 18:48:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-01-21 18:48:16 +0000
commit08d9c996dc31e767aca5c31df7ede80a36361060 (patch)
tree6ce73c986e7e19299b028e8bfe17fbe6132db971 /java/src/com/android/inputmethod/research/ResearchLogger.java
parentfb523d7f5d40123a49a9128c455815db320c90fc (diff)
parent80375649d36c3e3aeec3a266827bb2d66d95d0f7 (diff)
downloadlatinime-08d9c996dc31e767aca5c31df7ede80a36361060.tar.gz
latinime-08d9c996dc31e767aca5c31df7ede80a36361060.tar.xz
latinime-08d9c996dc31e767aca5c31df7ede80a36361060.zip
Merge "[Rlog81b] Log more data with handleSeparator"
Diffstat (limited to 'java/src/com/android/inputmethod/research/ResearchLogger.java')
-rw-r--r--java/src/com/android/inputmethod/research/ResearchLogger.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLogger.java b/java/src/com/android/inputmethod/research/ResearchLogger.java
index 78bcf0550..c8ea2a164 100644
--- a/java/src/com/android/inputmethod/research/ResearchLogger.java
+++ b/java/src/com/android/inputmethod/research/ResearchLogger.java
@@ -1728,7 +1728,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
/**
* Record the current time in case the LogUnit is later split.
*
- * If the current logUnitis split, then tapping, motion events, etc. before this time should
+ * If the current logUnit is split, then tapping, motion events, etc. before this time should
* be assigned to one LogUnit, and events after this time should go into the following LogUnit.
*/
public static void recordTimeForLogUnitSplit() {
@@ -1738,6 +1738,22 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
}
/**
+ * Log a call to LatinIME.handleSeparator()
+ *
+ * SystemResponse: The system is inserting a separator character, possibly performing auto-
+ * correction or other actions appropriate at the end of a word.
+ */
+ private static final LogStatement LOGSTATEMENT_LATINIME_HANDLESEPARATOR =
+ new LogStatement("LatinIMEHandleSeparator", false, false, "primaryCode",
+ "isComposingWord");
+ public static void latinIME_handleSeparator(final int primaryCode,
+ final boolean isComposingWord) {
+ final ResearchLogger researchLogger = getInstance();
+ researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_HANDLESEPARATOR, primaryCode,
+ isComposingWord);
+ }
+
+ /**
* Log statistics.
*
* ContextualData, recorded at the end of a session.