summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java
index 2487e1ca..b0d6b39 100644
--- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java
+++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java
@@ -103,6 +103,14 @@ public class TestInteractionActivity extends Activity implements View.OnClickLis
}
};
mInteractor.submitRequest(mCurrentRequest, REQUEST_CONFIRM);
+ String[] cmds = new String[] {
+ "com.android.test.voiceinteraction.COMMAND",
+ "com.example.foo.bar"
+ };
+ boolean sup[] = mInteractor.supportsCommands(cmds);
+ for (int i=0; i<cmds.length; i++) {
+ mLog.append(cmds[i] + ": " + (sup[i] ? "SUPPORTED" : "NOT SUPPORTED") + "\n");
+ }
} else {
Log.i(TAG, "Restarting with active confirmation: " + mCurrentRequest);
}