summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-07-20 15:51:40 -0700
committerJorim Jaggi <jjaggi@google.com>2015-07-21 12:35:16 -0700
commit19695d97118d74aa7f54ba09b178e65378825cc0 (patch)
tree6afac03712cde70978fce033815a3e64be8f805d /tests
parente446dcee8f5c24121adbfb7600453e0de1826497 (diff)
downloadframeworks_base-19695d97118d74aa7f54ba09b178e65378825cc0.zip
frameworks_base-19695d97118d74aa7f54ba09b178e65378825cc0.tar.gz
frameworks_base-19695d97118d74aa7f54ba09b178e65378825cc0.tar.bz2
Add callback to voice interaction session for lockscreen shown
Bug: 22402726 Change-Id: Iaf83e2f2b0389d74b6ecf480aa91a34443803f7b
Diffstat (limited to 'tests')
-rw-r--r--tests/Assist/src/com/android/test/assist/AssistInteractionSession.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Assist/src/com/android/test/assist/AssistInteractionSession.java b/tests/Assist/src/com/android/test/assist/AssistInteractionSession.java
index 43f1e32..851bda9 100644
--- a/tests/Assist/src/com/android/test/assist/AssistInteractionSession.java
+++ b/tests/Assist/src/com/android/test/assist/AssistInteractionSession.java
@@ -24,6 +24,7 @@ import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.service.voice.VoiceInteractionSession;
+import android.util.Log;
import android.view.View;
import android.view.ViewAnimationUtils;
import android.view.ViewTreeObserver;
@@ -69,6 +70,7 @@ public class AssistInteractionSession extends VoiceInteractionSession {
@Override
public void onCreate() {
+ super.onCreate();
// Simulate slowness of Assist app
try {
Thread.sleep(1000);
@@ -105,6 +107,12 @@ public class AssistInteractionSession extends VoiceInteractionSession {
}
}
+ @Override
+ public void onLockscreenShown() {
+ super.onLockscreenShown();
+ Log.i("Assistant", "Lockscreen was shown");
+ }
+
private void playAssistAnimation() {
Interpolator linearOutSlowIn = AnimationUtils.loadInterpolator(mBackground.getContext(),
android.R.interpolator.linear_out_slow_in);