Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
053a3fea
Commit
053a3fea
authored
15 years ago
by
Mike LeBeau
Browse files
Options
Downloads
Patches
Plain Diff
Put the LoggingEvents class in sync with latest - adds some VoiceSearch
events which won't be used by LatinIME.
parent
36b4375b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/com/android/inputmethod/voice/LoggingEvents.java
+25
-2
25 additions, 2 deletions
src/com/android/inputmethod/voice/LoggingEvents.java
with
25 additions
and
2 deletions
src/com/android/inputmethod/voice/LoggingEvents.java
+
25
−
2
View file @
053a3fea
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment