diff options
| author | Tiger Huang <tigerhuang@google.com> | 2021-01-22 18:18:34 +0800 |
|---|---|---|
| committer | Tiger Huang <tigerhuang@google.com> | 2021-01-22 18:24:21 +0000 |
| commit | 61adf1f6ce984e82eac27dc449df81ac5de6fbe6 (patch) | |
| tree | 4c10c4fa60fc9d7ac8323b364d57450ab52217a1 /core/java/android/view/InsetsSource.java | |
| parent | c9805723c9c774f34f1999c7d07964d5380d237b (diff) | |
Remove beginLayoutLw and redundant logic about layout
This CL makes every window always ready to layout. DisplayFrames and
InsetsState will be always up-to-date so that we don't need to update
them in beginLayoutLw anymore.
This CL also removes PRIVATE_FLAG_PRESERVE_GEOMETRY which is not used by
anyone.
This can be a step to make the client compute its window frame locally.
Bug: 161810301
Test: atest DisplayPolicyLayoutTests DisplayPolicyTests
LaunchParamsControllerTests SizeCompatTests
TaskLaunchParamsModifierTests WallpaperControllerTests
Change-Id: I43a3713246ae67fc4da40eae9bbd6d3c8e26cbb9
Diffstat (limited to 'core/java/android/view/InsetsSource.java')
| -rw-r--r-- | core/java/android/view/InsetsSource.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/view/InsetsSource.java b/core/java/android/view/InsetsSource.java index 7a90bc057ccf..2f40bdbff05f 100644 --- a/core/java/android/view/InsetsSource.java +++ b/core/java/android/view/InsetsSource.java @@ -65,6 +65,14 @@ public class InsetsSource implements Parcelable { : null; } + public void set(InsetsSource other) { + mFrame.set(other.mFrame); + mVisible = other.mVisible; + mVisibleFrame = other.mVisibleFrame != null + ? new Rect(other.mVisibleFrame) + : null; + } + public void setFrame(int left, int top, int right, int bottom) { mFrame.set(left, top, right, bottom); } |
