summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSandeep <sansid@google.com>2014-07-10 15:15:39 -0700
committerSandeep <sansid@google.com>2014-07-10 18:32:37 -0700
commitd7018200312e4e4dc3f67cf33dc90bf7ce585844 (patch)
tree4479f56efb160bc525120e1ef19f724eccf47e8c /tests
parent3d4fe363b25293577faae3fddf85e6f73f76b0cd (diff)
downloadframeworks_base-d7018200312e4e4dc3f67cf33dc90bf7ce585844.zip
frameworks_base-d7018200312e4e4dc3f67cf33dc90bf7ce585844.tar.gz
frameworks_base-d7018200312e4e4dc3f67cf33dc90bf7ce585844.tar.bz2
Always on hotword changes
Add model management API skeleton to VoiceInteractionManagerService Add an "interactor" for all always-on APIs - The VoiceInteractionService will get an interactor for the given keyphrase and locale. - It can then check the availability and call methods to start and stop recognition on this interactor. - Add a common class to deal with SoundTrigger APIs - Cleanup the keyphrase representation: We now have separate representations for the keyphrase metadata and a keyphrase being used for recognition. This'll also help us to handle custom keyphrases in the future easily. This also ensures that for use within the framework, we rely on the ID of the KeyphraseInfo rather than comparing the text everytime. Add a callback for the AlwaysOnHotwordDetector This callback should be passed in by the VoiceInteractionService and is used to notify it of recognition events. Change-Id: I26252298773024f53a10cdd2af4404a4e6d74aae
Diffstat (limited to 'tests')
-rw-r--r--tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java2
1 files changed, 1 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 00c2c64..db43be3 100644
--- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
+++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
@@ -32,7 +32,7 @@ public class MainInteractionService extends VoiceInteractionService {
Log.i(TAG, "Creating " + this);
Log.i(TAG, "Keyphrase enrollment error? " + getKeyphraseEnrollmentInfo().getParseError());
Log.i(TAG, "Keyphrase enrollment meta-data: "
- + Arrays.toString(getKeyphraseEnrollmentInfo().getKeyphrases()));
+ + Arrays.toString(getKeyphraseEnrollmentInfo().listKeyphraseMetadata()));
}
@Override