From 9d50e4f4b2d3f6340440c85a00f1c278f281752c Mon Sep 17 00:00:00 2001 From: David Ingram Date: Thu, 6 May 2010 13:51:34 +0100 Subject: [PATCH] Added definitions for the ways in which VoiceIME can be started. This is for logging purposes. The three values BUTTON, SWIPE and MOTION replace the boolean SWIPE parameter. Change-Id: I3e8a275e2608781305e97851a797b18ccd3c68cd --- common/java/com/android/common/speech/LoggingEvents.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/java/com/android/common/speech/LoggingEvents.java b/common/java/com/android/common/speech/LoggingEvents.java index 1f3c6ef8f..4b438dcd4 100644 --- a/common/java/com/android/common/speech/LoggingEvents.java +++ b/common/java/com/android/common/speech/LoggingEvents.java @@ -110,6 +110,11 @@ public class LoggingEvents { public static final int START = 14; public static final String EXTRA_START_LOCALE = "locale"; // value should be String public static final String EXTRA_START_SWIPE = "swipe"; // value should be boolean + // EXTRA_START_SWIPE is deprecated; switch to EXTRA_START_METHOD instead + public static final String EXTRA_START_METHOD = "method"; // value should be int below + public static final int START_METHOD_BUTTON = 1; + public static final int START_METHOD_SWIPE = 2; + public static final int START_METHOD_MOTION = 3; public static final int VOICE_INPUT_DELIVERED = 15;