Put the LoggingEvents class in sync with latest - adds some VoiceSearch
events which won't be used by LatinIME.
diff --git a/src/com/android/inputmethod/voice/LoggingEvents.java b/src/com/android/inputmethod/voice/LoggingEvents.java
index b632291..bb27231 100644
--- a/src/com/android/inputmethod/voice/LoggingEvents.java
+++ b/src/com/android/inputmethod/voice/LoggingEvents.java
@@ -20,8 +20,8 @@
* Logging event constants used for Voice Search and VoiceIME. These are the keys and values of
* extras to be specified in logging broadcast intents to the {@link LoggingReceiver}.
*
- * This class is duplicated between VoiceSearch and LatinIME. Please keep both versions
- * in sync.
+ * This class is duplicated between the VoiceSearch, LatinIME, and Browser packages. Please keep
+ * all versions in sync.
*/
public class LoggingEvents {
// The name of the broadcast intent for logging.
@@ -39,6 +39,29 @@
public static final String EXTRA_FLUSH = "flush";
/**
+ * Logging event constants for voice search. Below are the extra values for
+ * {@link LoggingEvents#EXTRA_EVENT}, clustered with keys to additional extras
+ * for some events that need to be included as additional fields in the event.
+ *
+ * Note that this is not representative of *all* voice search events - only the ones
+ * that need to be reported from outside the voice search app, such as from Browser.
+ */
+ public class VoiceSearch {
+ // The app name to be used for logging VoiceSearch events.
+ public static final String APP_NAME = "googlemobile";
+
+ public static final int RETRY = 0;
+
+ public static final int N_BEST_REVEAL = 1;
+
+ public static final int N_BEST_CHOOSE = 2;
+ public static final String EXTRA_N_BEST_CHOOSE_INDEX = "index"; // value should be int
+
+ public static final int QUERY_UPDATED = 3;
+ public static final String EXTRA_QUERY_UPDATED_VALUE = "value"; // value should be String
+ }
+
+ /**
* Logging event constants for VoiceIME. Below are the extra values for
* {@link LoggingEvents#EXTRA_EVENT}, clustered with keys to additional extras
* for some events that need to be included as additional fields in the event.