Merge "Put the LoggingEvents class in sync with latest - adds some VoiceSearch events which won't be used by LatinIME."

This commit is contained in:
Mike LeBeau 2010-01-25 10:28:59 -08:00 committed by Android (Google) Code Review
commit 440d1fd333

View file

@ -20,8 +20,8 @@ package com.android.inputmethod.voice;
* 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.
@ -38,6 +38,29 @@ public class LoggingEvents {
// of the log events to the server.
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