summaryrefslogtreecommitdiff
path: root/core/java/android/app/WindowConfiguration.java
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2018-11-13 11:25:30 -0800
committerEvan Rosky <erosky@google.com>2018-12-12 16:41:30 -0800
commit1ac8446c699397327845f2da330920b81b0be26d (patch)
treeaedfa847f79880e500e1d1c6956f0dbfbda00c10 /core/java/android/app/WindowConfiguration.java
parentccb3c07030ed5d449f96101f21f6a6d02f508f36 (diff)
Move policy handling into ATM hierarchy [4/n]
Moves Task-level policy into configuration update This moves most of the configuration policy logic out of updateOverrideConfig and into the configuration update via the new resolveOverrideConfiguration stage. The advantage of this is that the TaskRecord configuration is more adaptive: for example, minimal task bounds enforcement is now done during resolve, so the task's override bounds can be retained even when the task is drawn bigger. This also fixed some issues with minimal task bounds (ie. it no-longer relies on exact size-match). As part of this, a bunch of logic was pulled out of the StackWindowController and moved/rewritten in TaskRecord. This was done so that the policy logic would be more adaptive to changes in their parents and to help with our ATM/WM merge goal. This also presented an opportunity to move more resize logic into the separate displayed bounds paradigm. Bug: 113900640 Test: go/wm-smoke + wmtests Change-Id: Ie27020616983646b274b073f17accea627399df0
Diffstat (limited to 'core/java/android/app/WindowConfiguration.java')
-rw-r--r--core/java/android/app/WindowConfiguration.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/WindowConfiguration.java b/core/java/android/app/WindowConfiguration.java
index 257122d3abe0..2990b577e09d 100644
--- a/core/java/android/app/WindowConfiguration.java
+++ b/core/java/android/app/WindowConfiguration.java
@@ -673,6 +673,15 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu
}
/**
+ * Returns true if the windowingMode represents a split window.
+ * @hide
+ */
+ public static boolean isSplitScreenWindowingMode(int windowingMode) {
+ return windowingMode == WINDOWING_MODE_SPLIT_SCREEN_PRIMARY
+ || windowingMode == WINDOWING_MODE_SPLIT_SCREEN_SECONDARY;
+ }
+
+ /**
* Returns true if the windows associated with this window configuration can receive input keys.
* @hide
*/