OSDN Git Service

Schedule PIP mode changes at the beginning/end of the transitions.
authorWinson Chung <winsonc@google.com>
Sun, 16 Apr 2017 22:59:43 +0000 (15:59 -0700)
committerWinson Chung <winsonc@google.com>
Mon, 17 Apr 2017 04:23:57 +0000 (21:23 -0700)
commit8bca9e47c17c86a3092d5384b14713c5b50dd78c
tree20921a1d82b81ada2a768869e929eb7bb413cfd4
parentd8837b6fca23847fcd4dd295ccbb33ef9d4edcec
Schedule PIP mode changes at the beginning/end of the transitions.

- When transitioning from fullscreen to PiP, ensure all PiP/MW/Config
  changes come after the transition completes, and inversely, from PiP to
  fullscreen, ensure that all changes come before the transition up starts
- Add a series of tests to verify the callback state when the animation
  is canceled
- Also fixes an issue where the surface is preserved when we don't want

Bug: 37169080
Bug: 37103000
Test: bit FrameworksServicesTests:com.android.server.wm.BoundsAnimationControllerTests
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I6425c95df358358ed76d9cc8a130606c2124062e
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/am/PinnedActivityStack.java
services/core/java/com/android/server/wm/BoundsAnimationController.java
services/core/java/com/android/server/wm/BoundsAnimationTarget.java [new file with mode: 0644]
services/core/java/com/android/server/wm/PinnedStackWindowController.java
services/core/java/com/android/server/wm/TaskStack.java
services/core/java/com/android/server/wm/WindowState.java
services/core/java/com/android/server/wm/WindowStateAnimator.java
services/tests/servicestests/src/com/android/server/wm/BoundsAnimationControllerTests.java