diff options
author | Sandeep Siddhartha <sansid@google.com> | 2014-07-30 19:02:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-24 15:36:21 +0000 |
commit | 7f60d881b3b757106f9fe19720f42a497956299c (patch) | |
tree | 2c9160ee726b92f48d55adc10ae2ce4282ff0d52 /tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java | |
parent | 73915cf2ca01d4e822249641c4b73f512da93e10 (diff) | |
parent | 1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311 (diff) | |
download | frameworks_base-7f60d881b3b757106f9fe19720f42a497956299c.zip frameworks_base-7f60d881b3b757106f9fe19720f42a497956299c.tar.gz frameworks_base-7f60d881b3b757106f9fe19720f42a497956299c.tar.bz2 |
Merge "Make startRecognition async" into lmp-dev
Diffstat (limited to 'tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java')
-rw-r--r-- | tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java index cc710f9..49c3d0a 100644 --- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java +++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java @@ -41,9 +41,19 @@ public class MainInteractionService extends VoiceInteractionService { } @Override + public void onDetectionStarted() { + Log.i(TAG, "onDetectionStarted"); + } + + @Override public void onDetectionStopped() { Log.i(TAG, "onDetectionStopped"); } + + @Override + public void onError() { + Log.i(TAG, "onError"); + } }; private AlwaysOnHotwordDetector mHotwordDetector; @@ -89,10 +99,9 @@ public class MainInteractionService extends VoiceInteractionService { Log.i(TAG, "Need to enroll with " + enroll); break; case AlwaysOnHotwordDetector.STATE_KEYPHRASE_ENROLLED: - Log.i(TAG, "STATE_KEYPHRASE_ENROLLED"); - int status = mHotwordDetector.startRecognition( + Log.i(TAG, "STATE_KEYPHRASE_ENROLLED - starting recognition"); + mHotwordDetector.startRecognition( AlwaysOnHotwordDetector.RECOGNITION_FLAG_NONE); - Log.i(TAG, "startRecognition status = " + status); break; } } |