summaryrefslogtreecommitdiffstats
path: root/tests/VoiceInteraction
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-08-25 08:23:41 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-25 08:23:41 +0000
commit539207b99174e16149973c4aedeefa3be0331abc (patch)
tree9f6479a74dffc20dfdd7810fecc5f49e2324f266 /tests/VoiceInteraction
parent5c470843a4090c05018a429136ea98158e6506fc (diff)
parent173db08cce9ea4f8c654f67a7c6394dce33a2bcd (diff)
downloadframeworks_base-539207b99174e16149973c4aedeefa3be0331abc.zip
frameworks_base-539207b99174e16149973c4aedeefa3be0331abc.tar.gz
frameworks_base-539207b99174e16149973c4aedeefa3be0331abc.tar.bz2
am 68f133b4: am a8d8e4c4: am e829259d: Merge "Fix the Locale story in the hotword API" into lmp-dev
* commit '68f133b422733f89c9e226c636ce6153d4e86f1c': Fix the Locale story in the hotword API
Diffstat (limited to 'tests/VoiceInteraction')
-rw-r--r--tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
index 77c0c32..1233c0c 100644
--- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
+++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
@@ -25,6 +25,7 @@ import android.service.voice.VoiceInteractionService;
import android.util.Log;
import java.util.Arrays;
+import java.util.Locale;
public class MainInteractionService extends VoiceInteractionService {
static final String TAG = "MainInteractionService";
@@ -67,7 +68,8 @@ public class MainInteractionService extends VoiceInteractionService {
Log.i(TAG, "Keyphrase enrollment meta-data: "
+ Arrays.toString(getKeyphraseEnrollmentInfo().listKeyphraseMetadata()));
- mHotwordDetector = createAlwaysOnHotwordDetector("Hello There", "en-US", mHotwordCallback);
+ mHotwordDetector = createAlwaysOnHotwordDetector(
+ "Hello There", new Locale("en-US"), mHotwordCallback);
}
@Override