summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-03-30 13:15:46 -0700
committerKurt Partridge <kep@google.com>2012-04-06 09:35:13 -0700
commitac9e87c03ebbcbd70dd051a30ebf98d6baebedfc (patch)
tree2217ba38beeb0204afa73df0ebfdba52168946b6 /java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java
parentfe4807d52fb19656563c5ec22ad5eba3a51e1157 (diff)
add more data collection points to ResearchLogger
the new points are all at Log.x() positions; only those appearing directly related to user input were added. Bug: 6188932 Change-Id: I618bcd07b22c9efc794745678b073afe1e79a697
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java b/java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java
index 5712df1fc..392afca97 100644
--- a/java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java
+++ b/java/src/com/android/inputmethod/keyboard/internal/AlphabetShiftState.java
@@ -18,6 +18,9 @@ package com.android.inputmethod.keyboard.internal;
import android.util.Log;
+import com.android.inputmethod.latin.ResearchLogger;
+import com.android.inputmethod.latin.define.ProductionFlag;
+
public class AlphabetShiftState {
private static final String TAG = AlphabetShiftState.class.getSimpleName();
private static final boolean DEBUG = false;
@@ -59,6 +62,9 @@ public class AlphabetShiftState {
}
if (DEBUG)
Log.d(TAG, "setShifted(" + newShiftState + "): " + toString(oldState) + " > " + this);
+ if (ProductionFlag.IS_EXPERIMENTAL) {
+ ResearchLogger.alphabetShiftState_setShifted(newShiftState, oldState, this);
+ }
}
public void setShiftLocked(boolean newShiftLockState) {
@@ -78,6 +84,9 @@ public class AlphabetShiftState {
if (DEBUG)
Log.d(TAG, "setShiftLocked(" + newShiftLockState + "): " + toString(oldState)
+ " > " + this);
+ if (ProductionFlag.IS_EXPERIMENTAL) {
+ ResearchLogger.alphabetShiftState_setShiftLocked(newShiftLockState, oldState, this);
+ }
}
public void setAutomaticShifted() {
@@ -85,6 +94,9 @@ public class AlphabetShiftState {
mState = AUTOMATIC_SHIFTED;
if (DEBUG)
Log.d(TAG, "setAutomaticShifted: " + toString(oldState) + " > " + this);
+ if (ProductionFlag.IS_EXPERIMENTAL) {
+ ResearchLogger.alphabetShiftState_setAutomaticShifted(oldState, this);
+ }
}
public boolean isShiftedOrShiftLocked() {