Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 440d1fd3 authored by Mike LeBeau's avatar Mike LeBeau Committed by Android (Google) Code Review
Browse files

Merge "Put the LoggingEvents class in sync with latest - adds some VoiceSearch...

Merge "Put the LoggingEvents class in sync with latest - adds some VoiceSearch events which won't be used by LatinIME."
parents 1c551251 053a3fea
Loading
Loading
Loading
Loading
+25 −2
Original line number Original line Diff line number Diff line
@@ -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