diff options
author | Tracy Zhou <tracyzhou@google.com> | 2019-07-30 17:30:43 -0700 |
---|---|---|
committer | Tracy Zhou <tracyzhou@google.com> | 2019-08-11 17:00:38 +0000 |
commit | 8089ffaced5e33cbae17ef059cdf20d23ef54efe (patch) | |
tree | e7e533ac3e8d7a07ef37886c16ca8faf3c014c50 /apct-tests/perftests/core | |
parent | 285185426a12545eaa5b00a52401efad65ee97aa (diff) |
Pass the captured snapshot data to Launcher when recents animation is
cancelled.
In the current implementation, when recents animation is cancelled due
to stack order change, window manager replaces the surface with a
snapshot before cancellation. Launcher needs to acquire the snapshot in
order to switch the live tile into snapshot mode, and yet because the
recents animation is cancelled, that snapshot can no longer be acquired
anymore. This change takes care of this "relay" process.
Fixes: 138683199
Test: N/A
Change-Id: I1c11af38c2bdc442e3b45d0b5f0c7e7e37c2b0f0
Diffstat (limited to 'apct-tests/perftests/core')
-rw-r--r-- | apct-tests/perftests/core/src/android/wm/RecentsAnimationPerfTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apct-tests/perftests/core/src/android/wm/RecentsAnimationPerfTest.java b/apct-tests/perftests/core/src/android/wm/RecentsAnimationPerfTest.java index 4e2b281da1b4..2b6f4557303b 100644 --- a/apct-tests/perftests/core/src/android/wm/RecentsAnimationPerfTest.java +++ b/apct-tests/perftests/core/src/android/wm/RecentsAnimationPerfTest.java @@ -26,6 +26,7 @@ import static org.hamcrest.core.AnyOf.anyOf; import static org.hamcrest.core.Is.is; import android.app.Activity; +import android.app.ActivityManager.TaskSnapshot; import android.app.ActivityTaskManager; import android.app.IActivityTaskManager; import android.content.ComponentName; @@ -216,7 +217,7 @@ public class RecentsAnimationPerfTest extends WindowManagerPerfTestBase { } @Override - public void onAnimationCanceled(boolean deferredWithScreenshot) throws RemoteException { + public void onAnimationCanceled(TaskSnapshot taskSnapshot) throws RemoteException { Assume.assumeNoException( new AssertionError("onAnimationCanceled should not be called")); } |