Merge "Put the LoggingEvents class in sync with latest - adds some VoiceSearch events which won't be used by LatinIME."
commit
440d1fd333
|
@ -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
|
* 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}.
|
* extras to be specified in logging broadcast intents to the {@link LoggingReceiver}.
|
||||||
*
|
*
|
||||||
* This class is duplicated between VoiceSearch and LatinIME. Please keep both versions
|
* This class is duplicated between the VoiceSearch, LatinIME, and Browser packages. Please keep
|
||||||
* in sync.
|
* all versions in sync.
|
||||||
*/
|
*/
|
||||||
public class LoggingEvents {
|
public class LoggingEvents {
|
||||||
// The name of the broadcast intent for logging.
|
// The name of the broadcast intent for logging.
|
||||||
|
@ -38,6 +38,29 @@ public class LoggingEvents {
|
||||||
// of the log events to the server.
|
// of the log events to the server.
|
||||||
public static final String EXTRA_FLUSH = "flush";
|
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
|
* Logging event constants for VoiceIME. Below are the extra values for
|
||||||
* {@link LoggingEvents#EXTRA_EVENT}, clustered with keys to additional extras
|
* {@link LoggingEvents#EXTRA_EVENT}, clustered with keys to additional extras
|
||||||
|
|
Loading…
Reference in New Issue