History log of /frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
23aa7b11047439c404d19a9b6cc20e73a41488b1 01-Feb-2018 Winson Chung <winsonc@google.com> Update the cache with the snapshot requested during recents animation

- When a screenshot is requested by the recents animation runner, update
the task snapshot cache to ensure that the same snapshot is used for the
next starting animation. In doing so, we also need to prevent the default
logic from taking a new snapshot when the app is hidden at the end of the
recents animation.

Bug: 70180552
Test: atest TaskSnapshotControllerTest
Change-Id: Ib081ba324587b0719edb370e3c253c86f5e6c1b6
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
f84e2f60fec6f6d2ecfb3b90ddf075101f4b902f 16-Jan-2018 Jorim Jaggi <jjaggi@google.com> Add ability to register remote animation definitions per activity

This introduces a more stable way of setting a remote animation
than using overridePendingTransition: An activity can register
a set of remote animations which is broke down by transition type.
Whenever the activity is involved into such a transition, the
remote animation will be started.

Remote animations take precedence over regular animations, and
prefixOrderIndex in the hierarchy decides precedence within
multiple apps that set remote animation definitions such that
higher apps override lower apps.

Bug: 64674361
Test: go/wm-smoke
Test: Use with launcher
Change-Id: Id300ff62d9f60966ea2609168f6a02860b3de7af
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
d635a4ae20014b6ff52d8b05e7f4f622808d4efd 03-May-2017 Jorim Jaggi <jjaggi@google.com> Fix snapshots for secure windows

First, also draw system bar backgrounds when drawing a fake
snapshot. For that, refactor the drawing into a separate class so
it can be reused. Also enable fake snapshots for secure windows.

Test: com.android.server.wm.TaskSnapshotControllerTest
Test: com.android.server.wm.TaskSnapshotSurfaceTest
Test: Secure activity with resuming delay, make sure system bars
are covered when reopening app.

Bug: 35710126
Change-Id: I2f0ebc7e7acb80015780a4e882f0a472599efa30
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
11cc516a925ac7fc814dbb0a79a7f0abfbfe1ce1 26-Apr-2017 Wale Ogunwale <ogunwale@google.com> Reduce use of static variables in window manager unit tests

This was causing test cross-contamination since different test might
expect different states from the variables.

Bug: 37682538
Test: tons of it!
Change-Id: Ie8a1ea400695b6346d7dfa3369b5c44bb467a33d
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
8f4fe6eccbc3849686f08389cb5868f2d59f5fbb 14-Mar-2017 Jorim Jaggi <jjaggi@google.com> When snapshots are disabled, fill it with single color.

Test: Launch DisableScreenshotsActivity, go to recents, make sure
content is blue. Reopen activity from home, make sure starting
window is blue.

Bug: 31339431
Change-Id: I29689774c3cdcb784d8f5bfa4f947a6f35b91e01
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
0fe7ce968bc7f0eff64f08e2d51c8b1e6b4a6fc8 22-Feb-2017 Jorim Jaggi <jjaggi@google.com> Add API to disable snapshotting of activities

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Test: Launch DisableScreenshotsActivity, go to recents, make sure
content is white.
Bug: 31339431

Change-Id: I329925d2fca389e561da3389a67fe888b5bb1033
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
6d41026f1b3dc910c9d34ab89993a280dc9679cf 01-Mar-2017 Bryce Lee <brycelee@google.com> Clean up closing apps list when clearing anAppWindowToken's task.

Previously it was possible for an AppWindowToken to be removed while
on the closing apps list, used in transition animations. During these
transitions, the visibility of the token is modified. Since
visibility relies on the WindowContainer parent, a
NullPointerException would occur.

This changelist addresses the issue by making sure to remove any
AppWindowToken from this list when its task is set to null.

Change-Id: Id9234822b228f4658f04d42ac0fe7b49ded6f5a1
Fixes: 35352214
Test: manual (primarily code inspection)
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java
02886a82d876aa5e31a92444fec70208599c509c 06-Dec-2016 Jorim Jaggi <jjaggi@google.com> Initial implementation of snapshots

All this functionality is hidden behind a flag. If this flag is
active, we disable the regular screenshots.

Instead, we take a screenshot when an app transition for which a
task is disappearing is starting. The screenshot gets stored
into a gralloc buffer. SystemUI uses a new method to retrieve
a snapshot gralloc buffer and then draws it using GraphicBuffer.
createHardwareBitmap().

When starting an existing activity in an existing tasks, or when
bringing an existing tasks to front from recents, we add a new
snapshot starting window. For that, we reuse the existing
starting window, but when creating the window, we use a fake
window that draws the contents of the starting window.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Bug: 31339431
Change-Id: If72df07b3e56f30413db5029d0887b8c9665aaf4
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java