OSDN Git Service

Add different animation for transitions with translucent apps
authorJorim Jaggi <jjaggi@google.com>
Mon, 26 Mar 2018 14:17:07 +0000 (16:17 +0200)
committerJorim Jaggi <jjaggi@google.com>
Wed, 28 Mar 2018 14:46:41 +0000 (16:46 +0200)
commit98a9d206be7e2c87b58d0d59c7a0ccc53eb22dd0
tree155c311eea491526d473d829a6a25b5e70339799
parentbe4182939fc414adaa54cb1fd9b5185e83d64579
Add different animation for transitions with translucent apps

None of the existing animation really work with transitions in
which a translucent app is appearing/disappearing. Add a separate
animation for that and change all existing transitions to these
new transition types in case we detect that only translucent
activities are appearing/disappearing.

Test: Sharesheet animations
Test: go/wm-smoke
Change-Id: Iffe57b7664dddf647d723c91d115ade60c12ad33
Fixes: 37953606
Fixes: 70730519
Fixes: 72649981
Fixes: 72686618
core/java/android/view/WindowManager.java
core/proto/android/server/windowmanagerservice.proto
core/res/res/anim/activity_translucent_close_exit.xml [new file with mode: 0644]
core/res/res/anim/activity_translucent_open_enter.xml [new file with mode: 0644]
core/res/res/values/symbols.xml
services/core/java/com/android/server/policy/PhoneWindowManager.java
services/core/java/com/android/server/wm/AppTransition.java
services/core/java/com/android/server/wm/WindowSurfacePlacer.java
services/tests/servicestests/src/com/android/server/wm/WindowSurfacePlacerTest.java [new file with mode: 0644]
services/tests/servicestests/src/com/android/server/wm/WindowTestsBase.java