diff options
| author | Tiger Huang <tigerhuang@google.com> | 2020-10-16 04:03:58 +0800 |
|---|---|---|
| committer | Tiger Huang <tigerhuang@google.com> | 2020-10-21 20:20:21 +0800 |
| commit | 2bf8c796c559c35cf8b3af4da8f54b31cc5d620a (patch) | |
| tree | e46a1a5063072448e4af0a92711d18cc0f0dd5ae /core/java/android/window/ClientWindowFrames.java | |
| parent | 83348e3862831cf9ca02fe707480081c65c384b1 (diff) | |
Don't dispatch legacy insets to client
The server won't dispatch the legacy content insets, stable insets, and
visible insets to the client. The insets would be computed from the
insets state by the client.
This CL also fixes the insets scaling issue in compatible mode.
Bug: 149813814
Fix: 169940916
Fix: 165412978
Test: atest WindowAddRemovePerfTest InsetsAnimationControlImplTest
ActivityRecordTests DisplayPolicyLayoutTests
InsetsPolicyTest InsetsStateControllerTest
Change-Id: I83570973f587a6abf887752494f750b46e3e484d
Diffstat (limited to 'core/java/android/window/ClientWindowFrames.java')
| -rw-r--r-- | core/java/android/window/ClientWindowFrames.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/java/android/window/ClientWindowFrames.java b/core/java/android/window/ClientWindowFrames.java index 0523e64f3e7a..5d7025b57f91 100644 --- a/core/java/android/window/ClientWindowFrames.java +++ b/core/java/android/window/ClientWindowFrames.java @@ -42,19 +42,11 @@ public class ClientWindowFrames implements Parcelable { /** The area cut from the display. */ public final @NonNull DisplayCutout.ParcelableWrapper displayCutout; - // TODO(b/149813814): Remove legacy insets. - public final Rect contentInsets; - public final Rect visibleInsets; - public final Rect stableInsets; - public ClientWindowFrames() { frame = new Rect(); displayFrame = new Rect(); backdropFrame = new Rect(); displayCutout = new DisplayCutout.ParcelableWrapper(); - contentInsets = new Rect(); - visibleInsets = new Rect(); - stableInsets = new Rect(); } public ClientWindowFrames(ClientWindowFrames other) { @@ -62,9 +54,6 @@ public class ClientWindowFrames implements Parcelable { displayFrame = new Rect(other.displayFrame); backdropFrame = new Rect(other.backdropFrame); displayCutout = new DisplayCutout.ParcelableWrapper(other.displayCutout.get()); - contentInsets = new Rect(other.contentInsets); - visibleInsets = new Rect(other.visibleInsets); - stableInsets = new Rect(other.stableInsets); } private ClientWindowFrames(Parcel in) { @@ -72,9 +61,6 @@ public class ClientWindowFrames implements Parcelable { displayFrame = Rect.CREATOR.createFromParcel(in); backdropFrame = Rect.CREATOR.createFromParcel(in); displayCutout = DisplayCutout.ParcelableWrapper.CREATOR.createFromParcel(in); - contentInsets = Rect.CREATOR.createFromParcel(in); - visibleInsets = Rect.CREATOR.createFromParcel(in); - stableInsets = Rect.CREATOR.createFromParcel(in); } /** Needed for AIDL out parameters. */ @@ -83,9 +69,6 @@ public class ClientWindowFrames implements Parcelable { displayFrame.set(Rect.CREATOR.createFromParcel(in)); backdropFrame.set(Rect.CREATOR.createFromParcel(in)); displayCutout.set(DisplayCutout.ParcelableWrapper.CREATOR.createFromParcel(in)); - contentInsets.set(Rect.CREATOR.createFromParcel(in)); - visibleInsets.set(Rect.CREATOR.createFromParcel(in)); - stableInsets.set(Rect.CREATOR.createFromParcel(in)); } @Override @@ -94,9 +77,6 @@ public class ClientWindowFrames implements Parcelable { displayFrame.writeToParcel(dest, flags); backdropFrame.writeToParcel(dest, flags); displayCutout.writeToParcel(dest, flags); - contentInsets.writeToParcel(dest, flags); - visibleInsets.writeToParcel(dest, flags); - stableInsets.writeToParcel(dest, flags); } @Override |
