aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-03-26 16:49:05 -0700
committerKurt Partridge <kep@google.com>2013-04-10 11:53:38 -0700
commit6108624a00a4418f9b27d95edab51434de5068bd (patch)
treee245ac940961506199a329ff846a4b6446e8a28f
parentdfa5628cd3dfcc741cf0c8abf262fb6e3dc3f581 (diff)
downloadlatinime-6108624a00a4418f9b27d95edab51434de5068bd.tar.gz
latinime-6108624a00a4418f9b27d95edab51434de5068bd.tar.xz
latinime-6108624a00a4418f9b27d95edab51434de5068bd.zip
Better isolate ResearchLogging data
Calls to LatinIME#onStartInputViewInternal log important information about the context in which an IME is used. This is reported as a single LogStatement. Previously, this was not placed into a separate LogUnit, and was mixed in with general word data. This change wraps this LogStatement in its own LogUnit. Change-Id: I0fecd41c8a1de622a764cc4b5d6902336697046c
-rw-r--r--java/src/com/android/inputmethod/research/ResearchLogger.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLogger.java b/java/src/com/android/inputmethod/research/ResearchLogger.java
index 5aaced036..c05de0992 100644
--- a/java/src/com/android/inputmethod/research/ResearchLogger.java
+++ b/java/src/com/android/inputmethod/research/ResearchLogger.java
@@ -1089,6 +1089,9 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
Build.DISPLAY, Build.MODEL, prefs, versionCode, versionName,
OUTPUT_FORMAT_VERSION, IS_LOGGING_EVERYTHING,
researchLogger.isDevTeamBuild());
+ // Commit the logUnit so the LatinImeOnStartInputViewInternal event is in its own
+ // logUnit at the beginning of the log.
+ researchLogger.commitCurrentLogUnit();
} catch (final NameNotFoundException e) {
Log.e(TAG, "NameNotFound", e);
}