OSDN Git Service

Defer hiding clients until animation is done
authorJorim Jaggi <jjaggi@google.com>
Thu, 11 Jan 2018 14:43:49 +0000 (15:43 +0100)
committerJorim Jaggi <jjaggi@google.com>
Wed, 17 Jan 2018 12:46:27 +0000 (13:46 +0100)
commit4876b4a273cdefaa7dfc11d5fdaa0ee5c9ea4055
treed7c733cb1a0e101ed7eae68bdd759f74ad5dec3c
parent79131f7a227eb5f2bbd4e6ea29e14d834c634101
Defer hiding clients until animation is done

This is a preparation for remote animations: We used to set app
visibility state immediately after we started the animation.
However, with remote animations, we'd like to allow them drawing
until the transition is done. For that, we defer hiding the client
until the animation is done.

Instead of special-casing remote animations, we do it for all
apps, as there is no harm in doing so.

Test: Open YouTube, make sure it enters Auto-PIP when pressing
home.
Test: go/wm-smoke
Test: Open trace with open/closing a couple of apps. Make sure
app visibility gets dispatched at the correct time.
Test: WindowStateTests

Bug: 64674361
Change-Id: I8deb6a97ca1c3d8f4a70a6e045f45a6bc16604bb
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/WindowState.java
services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java