diff options
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; } } |