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/WindowManager.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/WindowManager.java')
| -rw-r--r-- | core/java/android/view/WindowManager.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index c2d990a40fe4..9346610f975a 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -2204,15 +2204,6 @@ public interface WindowManager extends ViewManager { public static final int PRIVATE_FLAG_FORCE_SHOW_STATUS_BAR = 0x00001000; /** - * Flag indicating that the x, y, width, and height members should be - * ignored (and thus their previous value preserved). For example - * because they are being managed externally through repositionChild. - * - * {@hide} - */ - public static final int PRIVATE_FLAG_PRESERVE_GEOMETRY = 0x00002000; - - /** * Flag that will make window ignore app visibility and instead depend purely on the decor * view visibility for determining window visibility. This is used by recents to keep * drawing after it launches an app. @@ -2369,7 +2360,6 @@ public interface WindowManager extends ViewManager { PRIVATE_FLAG_SYSTEM_ERROR, PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS, PRIVATE_FLAG_FORCE_SHOW_STATUS_BAR, - PRIVATE_FLAG_PRESERVE_GEOMETRY, PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY, PRIVATE_FLAG_WILL_NOT_REPLACE_ON_RELAUNCH, PRIVATE_FLAG_LAYOUT_CHILD_WINDOW_IN_PARENT_FRAME, @@ -2433,10 +2423,6 @@ public interface WindowManager extends ViewManager { equals = PRIVATE_FLAG_FORCE_SHOW_STATUS_BAR, name = "FORCE_STATUS_BAR_VISIBLE"), @ViewDebug.FlagToString( - mask = PRIVATE_FLAG_PRESERVE_GEOMETRY, - equals = PRIVATE_FLAG_PRESERVE_GEOMETRY, - name = "PRESERVE_GEOMETRY"), - @ViewDebug.FlagToString( mask = PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY, equals = PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY, name = "FORCE_DECOR_VIEW_VISIBILITY"), |
