aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/LogUnit.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-02-01 08:35:42 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-01 08:35:42 -0800
commit59abd14ad9876fa1b5040c734548fa89cac340ef (patch)
tree50f66cf0676d55dafec07a8978535e651645fb91 /java/src/com/android/inputmethod/research/LogUnit.java
parentf8dd2f4ebd89db488d1fe890ec4a3250dd5614d6 (diff)
parent0cafd6580c05de2b718652cdced8e7072efa3a21 (diff)
downloadlatinime-59abd14ad9876fa1b5040c734548fa89cac340ef.tar.gz
latinime-59abd14ad9876fa1b5040c734548fa89cac340ef.tar.xz
latinime-59abd14ad9876fa1b5040c734548fa89cac340ef.zip
am 0cafd658: Merge "[Rlog48a] Update and make logging strings consistent"
# Via Android (Google) Code Review (1) and Kurt Partridge (1) * commit '0cafd6580c05de2b718652cdced8e7072efa3a21': [Rlog48a] Update and make logging strings consistent
Diffstat (limited to 'java/src/com/android/inputmethod/research/LogUnit.java')
-rw-r--r--java/src/com/android/inputmethod/research/LogUnit.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/research/LogUnit.java b/java/src/com/android/inputmethod/research/LogUnit.java
index 608fab3f1..2e732fc6c 100644
--- a/java/src/com/android/inputmethod/research/LogUnit.java
+++ b/java/src/com/android/inputmethod/research/LogUnit.java
@@ -453,13 +453,12 @@ import java.util.List;
// Look for the long press that started the invocation of the research key code input.
final int indexOfLastLongPressBeforeResearchKey =
- findLastIndexBefore(LogStatement.TYPE_LATIN_KEYBOARD_VIEW_ON_LONG_PRESS,
+ findLastIndexBefore(LogStatement.TYPE_MAIN_KEYBOARD_VIEW_ON_LONG_PRESS,
indexOfLastResearchKey);
// Look for DOWN event preceding the long press
final int indexOfLastDownEventBeforeLongPress =
- findLastIndexContainingKeyValueBefore(
- LogStatement.TYPE_LATIN_KEYBOARD_VIEW_PROCESS_MOTION_EVENTS,
+ findLastIndexContainingKeyValueBefore(LogStatement.TYPE_MOTION_EVENT,
LogStatement.ACTION, LogStatement.VALUE_DOWN,
indexOfLastLongPressBeforeResearchKey);
@@ -471,8 +470,8 @@ import java.util.List;
final LogStatement logStatement = mLogStatementList.get(index);
final String type = logStatement.getType();
final Object[] values = mValuesList.get(index);
- if (type.equals(LogStatement.TYPE_LATIN_KEYBOARD_VIEW_PROCESS_MOTION_EVENTS)) {
- logStatement.setValue(LogStatement.KEY_LOGGING_RELATED, values, true);
+ if (type.equals(LogStatement.TYPE_MOTION_EVENT)) {
+ logStatement.setValue(LogStatement.KEY_IS_LOGGING_RELATED, values, true);
}
}
return true;