aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/voice/VoiceInputLogger.java
diff options
context:
space:
mode:
authorMaryam Garrett <mkamvar@google.com>2010-08-31 07:48:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-31 07:48:07 -0700
commit32511ef6cb272d2603a7c41b91ff0bdafdbf34f0 (patch)
tree5ee283e7a6eba4fc026339c795b5d3b6ae087b14 /java/src/com/android/inputmethod/voice/VoiceInputLogger.java
parent85c1c435405a77bdc7656214b21e941360ad7ec2 (diff)
parent7b9ed1aa7601e263a46cf6b852df75a3866277d4 (diff)
downloadlatinime-32511ef6cb272d2603a7c41b91ff0bdafdbf34f0.tar.gz
latinime-32511ef6cb272d2603a7c41b91ff0bdafdbf34f0.tar.xz
latinime-32511ef6cb272d2603a7c41b91ff0bdafdbf34f0.zip
Merge "Logging for the VoiceSearch alternates"
Diffstat (limited to 'java/src/com/android/inputmethod/voice/VoiceInputLogger.java')
-rw-r--r--java/src/com/android/inputmethod/voice/VoiceInputLogger.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/voice/VoiceInputLogger.java b/java/src/com/android/inputmethod/voice/VoiceInputLogger.java
index 9d3a92037..4d50f5ee8 100644
--- a/java/src/com/android/inputmethod/voice/VoiceInputLogger.java
+++ b/java/src/com/android/inputmethod/voice/VoiceInputLogger.java
@@ -178,20 +178,19 @@ public class VoiceInputLogger {
mContext.sendBroadcast(i);
}
- public void textModifiedByChooseSuggestion(int length) {
+ public void textModifiedByChooseSuggestion(int suggestionLength, int replacedPhraseLength,
+ int index, String before, String after) {
Intent i = newLoggingBroadcast(LoggingEvents.VoiceIme.TEXT_MODIFIED);
- i.putExtra(LoggingEvents.VoiceIme.EXTRA_TEXT_MODIFIED_LENGTH, length);
+ i.putExtra(LoggingEvents.VoiceIme.EXTRA_TEXT_MODIFIED_LENGTH, suggestionLength);
+ i.putExtra(LoggingEvents.VoiceIme.EXTRA_TEXT_REPLACED_LENGTH, replacedPhraseLength);
i.putExtra(LoggingEvents.VoiceIme.EXTRA_TEXT_MODIFIED_TYPE,
LoggingEvents.VoiceIme.TEXT_MODIFIED_TYPE_CHOOSE_SUGGESTION);
- mContext.sendBroadcast(i);
- }
-
- public void nBestChoose(int index) {
- Intent i = newLoggingBroadcast(LoggingEvents.VoiceIme.N_BEST_CHOOSE);
i.putExtra(LoggingEvents.VoiceIme.EXTRA_N_BEST_CHOOSE_INDEX, index);
+ i.putExtra(LoggingEvents.VoiceIme.EXTRA_BEFORE_N_BEST_CHOOSE, before);
+ i.putExtra(LoggingEvents.VoiceIme.EXTRA_AFTER_N_BEST_CHOOSE, after);
mContext.sendBroadcast(i);
}
-
+
public void inputEnded() {
mContext.sendBroadcast(newLoggingBroadcast(LoggingEvents.VoiceIme.INPUT_ENDED));
}