OSDN Git Service

2/ Add support for remote Recents animation
authorWinson Chung <winsonc@google.com>
Wed, 17 Jan 2018 00:22:35 +0000 (16:22 -0800)
committerWinson Chung <winsonc@google.com>
Thu, 25 Jan 2018 01:01:30 +0000 (17:01 -0800)
commit0026a5152c427f9cf2c04da2b23a5ece2fcdb36d
tree1f09426e44f7e13c697f97e5d72ce599e3c217ca
parent343f65a43039036896a1d550c49f2f71fea5047c
2/ Add support for remote Recents animation

- Allow the recents component to drive the animation from an app into
  Recents using the remote animation framework. When initialized, the
  animation repositions the recents activity behind the currently visible
  tasks and provides the set of surface controls for the visible tasks.
  Once complete, the recents component notifies the system whether it
  has completed the animation into the recents activity, or whether it
  should restore the previous state. In addition, there is a prescribed
  delay after which the system automatically cancels the recents animation.

Bug: 70180552
Test: go/wm-smoke
Test: Manual, swipe up with suitable launcher build

Change-Id: Id32f03c7ad2288dce06231cfaa4b21916da511d7
20 files changed:
Android.bp
core/java/android/app/ActivityOptions.java
core/java/android/app/IActivityManager.aidl
core/java/android/view/IRecentsAnimationController.aidl [new file with mode: 0644]
core/java/android/view/IRecentsAnimationRunner.aidl [new file with mode: 0644]
core/java/android/view/RemoteAnimationTarget.java
services/core/java/com/android/server/am/ActivityDisplay.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/am/ActivityStarter.java
services/core/java/com/android/server/am/RecentsAnimation.java [new file with mode: 0644]
services/core/java/com/android/server/wm/DisplayContent.java
services/core/java/com/android/server/wm/RecentsAnimationController.java [new file with mode: 0644]
services/core/java/com/android/server/wm/RemoteAnimationController.java
services/core/java/com/android/server/wm/RootWindowContainer.java
services/core/java/com/android/server/wm/SurfaceAnimator.java
services/core/java/com/android/server/wm/WallpaperController.java
services/core/java/com/android/server/wm/WindowContainer.java
services/core/java/com/android/server/wm/WindowManagerService.java
services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java