From ee16bdc33d32e923032073919ded1f2efe9677e1 Mon Sep 17 00:00:00 2001 From: Sandeep Siddhartha Date: Mon, 25 Aug 2014 12:50:35 -0700 Subject: Address API review comments - Make Callback an abstract class - Split manage intents into 3 different methods - Remove RECOGNITION_FLAGS_NONE Bug: 17255602 Change-Id: I1329f889bb2ab35938f42d2ecfe755d2b17ec542 --- .../src/com/android/test/voiceinteraction/MainInteractionService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/VoiceInteraction') diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java index e1a579c..1f01461 100644 --- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java +++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java @@ -92,8 +92,7 @@ public class MainInteractionService extends VoiceInteractionService { break; case AlwaysOnHotwordDetector.STATE_KEYPHRASE_UNENROLLED: Log.i(TAG, "STATE_KEYPHRASE_UNENROLLED"); - Intent enroll = mHotwordDetector.getManageIntent( - AlwaysOnHotwordDetector.MANAGE_ACTION_ENROLL); + Intent enroll = mHotwordDetector.createIntentToEnroll(); Log.i(TAG, "Need to enroll with " + enroll); break; case AlwaysOnHotwordDetector.STATE_KEYPHRASE_ENROLLED: -- cgit v1.1