aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/voice/VoiceInputLogger.java
diff options
context:
space:
mode:
authorMaryam Garrett <mkamvar@google.com>2010-01-25 12:59:05 -0500
committerMaryam Garrett <mkamvar@google.com>2010-01-29 12:40:13 -0500
commit8600725789ca0d7a3525c763d7d2af7f9c37b6b9 (patch)
tree487d08b1047af42d9224fade2dda5cdf912fcddf /src/com/android/inputmethod/voice/VoiceInputLogger.java
parentb8f98ad014ac6f1d453128f902dba67ebebff1d3 (diff)
downloadlatinime-8600725789ca0d7a3525c763d7d2af7f9c37b6b9.tar.gz
latinime-8600725789ca0d7a3525c763d7d2af7f9c37b6b9.tar.xz
latinime-8600725789ca0d7a3525c763d7d2af7f9c37b6b9.zip
Use de-duped version on LoggingEvents now in android-common.
This CL now simply moves LatinIME to use the version of LoggingEvents in android-common, rather than duplicating the LoggingEvents class between VoiceSearch, Browser, and LatinIME. I also added in a TIMESTAMP to the START broadcast, so that we would be able to evaluate if various events happened after a user tried Voice Input. Change-Id: Ic88ff40fcedf707abc3c5eb2e68dfd0fcdef3701
Diffstat (limited to 'src/com/android/inputmethod/voice/VoiceInputLogger.java')
-rw-r--r--src/com/android/inputmethod/voice/VoiceInputLogger.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/inputmethod/voice/VoiceInputLogger.java b/src/com/android/inputmethod/voice/VoiceInputLogger.java
index 07d4d1c8c..659033340 100644
--- a/src/com/android/inputmethod/voice/VoiceInputLogger.java
+++ b/src/com/android/inputmethod/voice/VoiceInputLogger.java
@@ -16,13 +16,15 @@
package com.android.inputmethod.voice;
+import com.android.common.speech.LoggingEvents;
+
import android.content.Context;
import android.content.Intent;
/**
* Provides the logging facility for voice input events. This fires broadcasts back to
* the voice search app which then logs on our behalf.
- *
+ *
* Note that debug console logging does not occur in this class. If you want to
* see console output of these logging events, there is a boolean switch to turn
* on on the VoiceSearch side.
@@ -141,6 +143,7 @@ public class VoiceInputLogger {
Intent i = newLoggingBroadcast(LoggingEvents.VoiceIme.START);
i.putExtra(LoggingEvents.VoiceIme.EXTRA_START_LOCALE, locale);
i.putExtra(LoggingEvents.VoiceIme.EXTRA_START_SWIPE, swipe);
+ i.putExtra(LoggingEvents.EXTRA_TIMESTAMP, System.currentTimeMillis());
mContext.sendBroadcast(i);
}