summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorXiaowen Lei <xilei@google.com>2022-07-23 05:58:29 +0000
committerXiaowen Lei <xilei@google.com>2022-09-09 20:42:45 +0000
commit7c458bea7db72d4e3fb98ca167ea606d69217f2e (patch)
treefdaf114fbbfeca1b41787bb198e16079685ba2ae /core/java/android
parent486626b5ea803b43933225d24aa28a2816a94380 (diff)
Add AppTransition type and remote animation for Dream in occluding Keyguard.
The existing Keyguard Occlude Animation Runner doesn't match the spec for Dream in. It animates activity expanding from the center of the screen. For Dream in, we have: - Dream fading in - DreamOverlay complications fading in slightly delayed, with each part starting at different times. This CL adds dedicated AppTransitionType and remote animation runner, which animates Dream fading in. It doesn't implement the separate animation for DreamOverlay complications. Bug: 222507937 Bug: 240477956 Bug: 242864189 Fix: 240477956 Test: on device, wait for Keyguard to time out to Dream. Change-Id: I5517ded2eea77ea962ca1551ed51dd997ff09993 Merged-In: I5517ded2eea77ea962ca1551ed51dd997ff09993
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/WindowManager.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java
index 2195b83933a5..218ca58dee54 100644
--- a/core/java/android/view/WindowManager.java
+++ b/core/java/android/view/WindowManager.java
@@ -285,12 +285,18 @@ public interface WindowManager extends ViewManager {
int TRANSIT_OLD_KEYGUARD_GOING_AWAY_ON_WALLPAPER = 21;
/**
- * Keyguard is being occluded.
+ * Keyguard is being occluded by non-Dream.
* @hide
*/
int TRANSIT_OLD_KEYGUARD_OCCLUDE = 22;
/**
+ * Keyguard is being occluded by Dream.
+ * @hide
+ */
+ int TRANSIT_OLD_KEYGUARD_OCCLUDE_BY_DREAM = 33;
+
+ /**
* Keyguard is being unoccluded.
* @hide
*/