aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/ResearchLogger.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-12-23 11:20:33 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-12-23 11:20:34 -0800
commitc1b4d143947ffcfd6880ef306e861a39a2f22087 (patch)
treea4adef05f848c61caed4cc20234331b19a284f0c /java/src/com/android/inputmethod/research/ResearchLogger.java
parent5e9a5ca9980c2f2d204840d03164c3df615aab5c (diff)
parent68fc33bd923fc12710521ddf0d7ecce1d704dc5d (diff)
downloadlatinime-c1b4d143947ffcfd6880ef306e861a39a2f22087.tar.gz
latinime-c1b4d143947ffcfd6880ef306e861a39a2f22087.tar.xz
latinime-c1b4d143947ffcfd6880ef306e861a39a2f22087.zip
Merge "Differentiate LOG_EVERYTHING and LOG_FULL_TEXTVIEW_CONTENTS"
Diffstat (limited to 'java/src/com/android/inputmethod/research/ResearchLogger.java')
-rw-r--r--java/src/com/android/inputmethod/research/ResearchLogger.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLogger.java b/java/src/com/android/inputmethod/research/ResearchLogger.java
index 48ce832a8..ab436c78d 100644
--- a/java/src/com/android/inputmethod/research/ResearchLogger.java
+++ b/java/src/com/android/inputmethod/research/ResearchLogger.java
@@ -83,7 +83,13 @@ import java.util.UUID;
public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChangeListener {
private static final String TAG = ResearchLogger.class.getSimpleName();
private static final boolean DEBUG = false && ProductionFlag.IS_EXPERIMENTAL_DEBUG;
- private static final boolean LOG_EVERYTHING = false; // true will disclose private info
+ // Whether all n-grams should be logged. true will disclose private info.
+ private static final boolean LOG_EVERYTHING = false
+ && ProductionFlag.IS_EXPERIMENTAL_DEBUG;
+ // Whether the TextView contents are logged at the end of the session. true will disclose
+ // private info.
+ private static final boolean LOG_FULL_TEXTVIEW_CONTENTS = false
+ && ProductionFlag.IS_EXPERIMENTAL_DEBUG;
public static final boolean DEFAULT_USABILITY_STUDY_MODE = false;
/* package */ static boolean sIsLogging = false;
private static final int OUTPUT_FORMAT_VERSION = 5;
@@ -954,7 +960,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
if (ic != null) {
final boolean isTextTruncated;
final String text;
- if (LOG_EVERYTHING) {
+ if (LOG_FULL_TEXTVIEW_CONTENTS) {
// Capture the TextView contents. This will trigger onUpdateSelection(), so we
// set sLatinIMEExpectingUpdateSelection so that when onUpdateSelection() is called,
// it can tell that it was generated by the logging code, and not by the user, and