summaryrefslogtreecommitdiff
path: root/core/java/android/view/RemoteAnimationTarget.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2018-02-07 23:57:38 +0000
committerWinson Chung <winsonc@google.com>2018-02-07 17:51:29 -0800
commit584d652a1dba2b09975a1555c71ed339374faac7 (patch)
tree03a43666c491105903cc2b459d88225ad86bf2bc /core/java/android/view/RemoteAnimationTarget.java
parent7fdd2bf7c133ef17f9c8510981b976e8f3c7475f (diff)
Revert "Revert "Exposing content insets and minimized home bounds for recents transition""
This reverts commit bb5d97f00fd5ee64eaac110aa700cec2abf56a20. Reason for revert: Launcher APK is landing shortly. Test: Manual, swipe up to home in multi-window Change-Id: I5d9050e51265bd4ca5ea2c28b7533571d03990f7
Diffstat (limited to 'core/java/android/view/RemoteAnimationTarget.java')
-rw-r--r--core/java/android/view/RemoteAnimationTarget.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/core/java/android/view/RemoteAnimationTarget.java b/core/java/android/view/RemoteAnimationTarget.java
index c28c3894482d..facf575872ed 100644
--- a/core/java/android/view/RemoteAnimationTarget.java
+++ b/core/java/android/view/RemoteAnimationTarget.java
@@ -79,6 +79,11 @@ public class RemoteAnimationTarget implements Parcelable {
public final Rect clipRect;
/**
+ * The insets of the main app window.
+ */
+ public final Rect contentInsets;
+
+ /**
* The index of the element in the tree in prefix order. This should be used for z-layering
* to preserve original z-layer order in the hierarchy tree assuming no "boosting" needs to
* happen.
@@ -105,13 +110,14 @@ public class RemoteAnimationTarget implements Parcelable {
public final WindowConfiguration windowConfiguration;
public RemoteAnimationTarget(int taskId, int mode, SurfaceControl leash, boolean isTranslucent,
- Rect clipRect, int prefixOrderIndex, Point position, Rect sourceContainerBounds,
- WindowConfiguration windowConfig) {
+ Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position,
+ Rect sourceContainerBounds, WindowConfiguration windowConfig) {
this.mode = mode;
this.taskId = taskId;
this.leash = leash;
this.isTranslucent = isTranslucent;
this.clipRect = new Rect(clipRect);
+ this.contentInsets = new Rect(contentInsets);
this.prefixOrderIndex = prefixOrderIndex;
this.position = new Point(position);
this.sourceContainerBounds = new Rect(sourceContainerBounds);
@@ -124,6 +130,7 @@ public class RemoteAnimationTarget implements Parcelable {
leash = in.readParcelable(null);
isTranslucent = in.readBoolean();
clipRect = in.readParcelable(null);
+ contentInsets = in.readParcelable(null);
prefixOrderIndex = in.readInt();
position = in.readParcelable(null);
sourceContainerBounds = in.readParcelable(null);
@@ -142,6 +149,7 @@ public class RemoteAnimationTarget implements Parcelable {
dest.writeParcelable(leash, 0 /* flags */);
dest.writeBoolean(isTranslucent);
dest.writeParcelable(clipRect, 0 /* flags */);
+ dest.writeParcelable(contentInsets, 0 /* flags */);
dest.writeInt(prefixOrderIndex);
dest.writeParcelable(position, 0 /* flags */);
dest.writeParcelable(sourceContainerBounds, 0 /* flags */);