From 1ac23bbf925da05a8bbc43ecf37dd67e702c7853 Mon Sep 17 00:00:00 2001 From: Chris Li Date: Mon, 20 Apr 2020 22:39:53 -0700 Subject: Allow Overlay Display to take display flags Before, CTS test used WindowManager#shouldShowSystemDecors() to set show system decorations after overlay display launched, which wouldn't enable system decorations without relaunching. Now, we can set those flag before display launch similar to what VirtualDisplayHelper does. Bug: 153624902 Bug: 154158053 Test: atest CtsWindowManagerDeviceTestCases:MultiDisplayClientTests Test: atest CtsWindowManagerDeviceTestCases:MultiDisplaySystemDecorationTests Change-Id: I83c21a74c722a23ac77141305a08d9f67c5bbcf0 --- core/java/android/provider/Settings.java | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'core/java/android') diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 78b0910ad01a..b280c5d63cd7 100755 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -10737,13 +10737,33 @@ public final class Settings { * The associated value is a specially formatted string that describes the * size and density of simulated secondary display devices. *

- * Format: {width}x{height}/{dpi};... + * Format: + *

+         * [display1];[display2];...
+         * 
+ * with each display specified as: + *
+         * [mode1]|[mode2]|...,[flag1],[flag2],...
+         * 
+ * with each mode specified as: + *
+         * [width]x[height]/[densityDpi]
+         * 
+ * Supported flags: + * *

* Example: *

* -- cgit v1.2.3