OSDN Git Service

Move LoggingEvents.java to android-common & add UserHappiness
authorMaryam Garrett <mkamvar@google.com>
Tue, 26 Jan 2010 15:41:51 +0000 (10:41 -0500)
committerMaryam Garrett <mkamvar@google.com>
Fri, 29 Jan 2010 18:27:56 +0000 (13:27 -0500)
commit1fd8c98fbaebdc6ee111b15b929339510e6105df
treec2ce8017920c615b3cf7c13a744715bb2a192655
parent1ad05dcbf506d489a99ecd9f308874d2a453db29
Move LoggingEvents.java to android-common & add UserHappiness

The LoggingEvents move will allow Gmail, Voice Search and other apps to
access the LoggingEvents needed. This file will replace
packages/inputmethods/LatinIMEsrc/com/android/inputmethod/voice/LoggingEvents.java
vendor/google/apps/VoiceSearch/apps/VoiceSearch/src/com/google/android/voicesearch/logging/LoggingEvents.java

In addition to moving the file, I have added 3 new fields:
TIMESTAMP, IME_TEXT_ACCEPTED, CALLING_APP_NAME. I needed to
create CALLING_APP_NAME b/c I can't re-use EXTRA_APP_NAME
because that is reserved for one of two values: voice
search or voice IME.

I added another file to android-common: UserHappinessSignals
This can be imported by different applications to broadcast
various user happiness metrics. It is currently used by Gmail's
CompseActivity.java to indicate that a user "accepted" the IME
text when they pressed the send button.

Change-Id: Ia859140facb7fb66a12706735d5132ba9eaa5ea0
common/java/com/android/common/speech/LoggingEvents.java [new file with mode: 0644]
common/java/com/android/common/userhappiness/UserHappinessSignals.java [new file with mode: 0644]