aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ResearchLogger.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-04-11 21:42:22 -0700
committerKurt Partridge <kep@google.com>2012-04-16 16:52:25 -0700
commit9bfb6202154e06d7156f2f374dd9359f1be4eb68 (patch)
tree55597afdc782b7a545da9b856488c86524e529fd /java/src/com/android/inputmethod/latin/ResearchLogger.java
parent473a3dd66952711d76e6d3e74292c0d6c7fa38d2 (diff)
downloadlatinime-9bfb6202154e06d7156f2f374dd9359f1be4eb68.tar.gz
latinime-9bfb6202154e06d7156f2f374dd9359f1be4eb68.tar.xz
latinime-9bfb6202154e06d7156f2f374dd9359f1be4eb68.zip
add logPoint for manual correction (inc touch pos)
Bug: 6188932 Change-Id: Ibcc4901bcfab6632ee4c59cb58d35452218a288d
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ResearchLogger.java')
-rw-r--r--java/src/com/android/inputmethod/latin/ResearchLogger.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ResearchLogger.java b/java/src/com/android/inputmethod/latin/ResearchLogger.java
index 4e90dd624..27f2e2a59 100644
--- a/java/src/com/android/inputmethod/latin/ResearchLogger.java
+++ b/java/src/com/android/inputmethod/latin/ResearchLogger.java
@@ -375,6 +375,10 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
private static final boolean SUDDENJUMPINGTOUCHEVENTHANDLER_ONTOUCHEVENT_ENABLED
= DEFAULT_ENABLED;
private static final boolean SUGGESTIONSVIEW_SETSUGGESTIONS_ENABLED = DEFAULT_ENABLED;
+ private static final boolean LATINIME_PICKAPPLICATIONSPECIFIEDCOMPLETION_ENABLED
+ = DEFAULT_ENABLED;
+ private static final boolean LATINIME_PICKPUNCTUATIONSUGGESTION_ENABLED = DEFAULT_ENABLED;
+ private static final boolean LATINIME_PICKSUGGESTIONMANUALLY_ENABLED = DEFAULT_ENABLED;
}
public static void logUnstructured(String logGroup, final String details) {
@@ -633,6 +637,30 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
}
}
+ public static void latinIME_pickApplicationSpecifiedCompletion(final int index,
+ final CharSequence text, int x, int y) {
+ if (UnsLogGroup.LATINIME_PICKAPPLICATIONSPECIFIEDCOMPLETION_ENABLED) {
+ final String s = String.valueOf(index) + '\t' + text + '\t' + x + '\t' + y;
+ logUnstructured("latinIME_pickApplicationSpecifiedCompletion", s);
+ }
+ }
+
+ public static void latinIME_pickSuggestionManually(final String replacedWord,
+ final int index, CharSequence suggestion, int x, int y) {
+ if (UnsLogGroup.LATINIME_PICKSUGGESTIONMANUALLY_ENABLED) {
+ final String s = String.valueOf(index) + '\t' + suggestion + '\t' + x + '\t' + y;
+ logUnstructured("latinIME_pickSuggestionManually", s);
+ }
+ }
+
+ public static void latinIME_punctuationSuggestion(final int index,
+ final CharSequence suggestion, int x, int y) {
+ if (UnsLogGroup.LATINIME_PICKPUNCTUATIONSUGGESTION_ENABLED) {
+ final String s = String.valueOf(index) + '\t' + suggestion + '\t' + x + '\t' + y;
+ logUnstructured("latinIME_pickPunctuationSuggestion", s);
+ }
+ }
+
public static void latinIME_switchToKeyboardView() {
if (UnsLogGroup.LATINIME_SWITCHTOKEYBOARDVIEW_ENABLED) {
final String s = "Switch to keyboard view.";