summaryrefslogtreecommitdiffstats
path: root/tests/VoiceInteraction
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-06-10 12:32:53 -0700
committerSandeep Siddhartha <sansid@google.com>2014-06-11 15:34:39 -0700
commit22968950b814e66a6aa119ea92ae648884cbe0d9 (patch)
treecc21b57d32cbc30c3b008893ce10be519168bcb9 /tests/VoiceInteraction
parente912ac012e7146e9b0e8589bd9d88790e55372e3 (diff)
downloadframeworks_base-22968950b814e66a6aa119ea92ae648884cbe0d9.zip
frameworks_base-22968950b814e66a6aa119ea92ae648884cbe0d9.tar.gz
frameworks_base-22968950b814e66a6aa119ea92ae648884cbe0d9.tar.bz2
Activity for enrollment
- Make the enrollment attrs public - Add a dummy activity for enrollment - Manually tested that the meta-data is correctly read by the VoiceInteractionService when the enrollment application is under /system/priv-app Change-Id: I36676ed8ffc919109031c26bac047d0c51a77e13
Diffstat (limited to 'tests/VoiceInteraction')
-rw-r--r--tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
index d40b05f..00c2c64 100644
--- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
+++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java
@@ -21,6 +21,8 @@ import android.os.Bundle;
import android.service.voice.VoiceInteractionService;
import android.util.Log;
+import java.util.Arrays;
+
public class MainInteractionService extends VoiceInteractionService {
static final String TAG = "MainInteractionService";
@@ -28,6 +30,9 @@ public class MainInteractionService extends VoiceInteractionService {
public void onCreate() {
super.onCreate();
Log.i(TAG, "Creating " + this);
+ Log.i(TAG, "Keyphrase enrollment error? " + getKeyphraseEnrollmentInfo().getParseError());
+ Log.i(TAG, "Keyphrase enrollment meta-data: "
+ + Arrays.toString(getKeyphraseEnrollmentInfo().getKeyphrases()));
}
@Override