summaryrefslogtreecommitdiff
path: root/tests/VoiceInteraction
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2016-04-14 19:06:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-04-14 19:06:40 +0000
commit0d723a2a4d83db5f01aa5a21f3cbd9d2b608bced (patch)
tree757a1c31cba4a04ed2b31aeceb4d4f380773d890 /tests/VoiceInteraction
parent36530859d061d126ff09abc6dbd65617035dab7c (diff)
parente8222e551f8abd2d82ca4f77ddb275e2e509751e (diff)
Merge "Multi-window assist callback" into nyc-dev
Diffstat (limited to 'tests/VoiceInteraction')
-rw-r--r--tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionSession.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionSession.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionSession.java
index 450334cb2d86..5767f110f0a4 100644
--- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionSession.java
+++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionSession.java
@@ -194,6 +194,18 @@ public class MainInteractionSession extends VoiceInteractionSession
}
@Override
+ public void onHandleAssistSecondary(final Bundle data, final AssistStructure structure,
+ final AssistContent content, int index, int count) {
+ Log.i(TAG, "Got secondary activity assist data " + index + " of " + count);
+ Log.i(TAG, "Showing assist structure after a few seconds...");
+ mContentView.postDelayed(new Runnable() {
+ public void run() {
+ onHandleAssist(data, structure, content);
+ }
+ }, 2000 * index);
+ }
+
+ @Override
public void onHandleScreenshot(Bitmap screenshot) {
if (screenshot != null) {
mScreenshot.setImageBitmap(screenshot);