Loading core/java/android/hardware/display/DisplayManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -433,8 +433,9 @@ public final class DisplayManager { public static final int VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL = 1 << 8; /** * Virtual display flag: Indicates that the display should support system decorations. Virtual * displays without this flag shouldn't show home, navigation bar or wallpaper. * Virtual display flag: Indicates that the display supports and should always show system * decorations. Virtual displays without this flag shouldn't show home, navigation bar or * wallpaper. * <p>This flag doesn't work without {@link #VIRTUAL_DISPLAY_FLAG_TRUSTED}</p> * * @see #createVirtualDisplay Loading core/java/android/provider/Settings.java +2 −1 Original line number Diff line number Diff line Loading @@ -15522,7 +15522,8 @@ public final class Settings { * <ul> * <li><pre>secure</pre>: creates a secure display</li> * <li><pre>own_content_only</pre>: only shows this display's own content</li> * <li><pre>should_show_system_decorations</pre>: supports system decorations</li> * <li><pre>should_show_system_decorations</pre>: always shows system decorations</li> * <li><pre>fixed_content_mode</pre>: does not allow the content mode switch</li> * </ul> * </p><p> * Example: core/java/android/view/Display.java +13 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,7 @@ public final class Display { /** * Display flag: Indicates that the display should show system decorations. * <p> * This flag identifies secondary displays that should show system decorations, such as * This flag identifies secondary displays that should always show system decorations, such as * navigation bar, home activity or wallpaper. * </p> * <p>Note that this flag doesn't work without {@link #FLAG_TRUSTED}</p> Loading Loading @@ -400,6 +400,18 @@ public final class Display { */ public static final int FLAG_ROTATES_WITH_CONTENT = 1 << 14; /** * Display flag: Indicates that the display is allowed to switch the content mode between * projected/extended and mirroring. This allows the display to dynamically add or remove the * home and system decorations. * * Note that this flag shouldn't be enabled with {@link #FLAG_PRIVATE} or * {@link #FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS} at the same time; otherwise it will be ignored. * * @hide */ public static final int FLAG_ALLOWS_CONTENT_MODE_SWITCH = 1 << 15; /** * Display flag: Indicates that the contents of the display should not be scaled * to fit the physical screen dimensions. Used for development only to emulate Loading core/java/android/view/DisplayInfo.java +3 −0 Original line number Diff line number Diff line Loading @@ -1125,6 +1125,9 @@ public final class DisplayInfo implements Parcelable { if ((flags & Display.FLAG_REAR) != 0) { result.append(", FLAG_REAR_DISPLAY"); } if ((flags & Display.FLAG_ALLOWS_CONTENT_MODE_SWITCH) != 0) { result.append(", FLAG_ALLOWS_CONTENT_MODE_SWITCH"); } return result.toString(); } } services/core/java/com/android/server/display/DisplayDeviceInfo.java +15 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,8 @@ final class DisplayDeviceInfo { public static final int FLAG_MASK_DISPLAY_CUTOUT = 1 << 11; /** * Flag: This flag identifies secondary displays that should show system decorations, such as * navigation bar, home activity or wallpaper. * Flag: This flag identifies secondary displays that should always show system decorations, * such as navigation bar, home activity or wallpaper. * <p>Note that this flag doesn't work without {@link #FLAG_TRUSTED}</p> * @hide */ Loading Loading @@ -190,6 +190,19 @@ final class DisplayDeviceInfo { */ public static final int FLAG_STEAL_TOP_FOCUS_DISABLED = 1 << 19; /** * Flag: Indicates that the display is allowed to switch the content mode between * projected/extended and mirroring. This allows the display to dynamically add or remove the * home and system decorations. * * Note that this flag should not be enabled with any of {@link #FLAG_PRIVATE}, * {@link #FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS}, or {@link #FLAG_OWN_CONTENT_ONLY} at the * same time; otherwise it will be ignored. * * @hide */ public static final int FLAG_ALLOWS_CONTENT_MODE_SWITCH = 1 << 20; /** * Touch attachment: Display does not receive touch. */ Loading Loading
core/java/android/hardware/display/DisplayManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -433,8 +433,9 @@ public final class DisplayManager { public static final int VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL = 1 << 8; /** * Virtual display flag: Indicates that the display should support system decorations. Virtual * displays without this flag shouldn't show home, navigation bar or wallpaper. * Virtual display flag: Indicates that the display supports and should always show system * decorations. Virtual displays without this flag shouldn't show home, navigation bar or * wallpaper. * <p>This flag doesn't work without {@link #VIRTUAL_DISPLAY_FLAG_TRUSTED}</p> * * @see #createVirtualDisplay Loading
core/java/android/provider/Settings.java +2 −1 Original line number Diff line number Diff line Loading @@ -15522,7 +15522,8 @@ public final class Settings { * <ul> * <li><pre>secure</pre>: creates a secure display</li> * <li><pre>own_content_only</pre>: only shows this display's own content</li> * <li><pre>should_show_system_decorations</pre>: supports system decorations</li> * <li><pre>should_show_system_decorations</pre>: always shows system decorations</li> * <li><pre>fixed_content_mode</pre>: does not allow the content mode switch</li> * </ul> * </p><p> * Example:
core/java/android/view/Display.java +13 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,7 @@ public final class Display { /** * Display flag: Indicates that the display should show system decorations. * <p> * This flag identifies secondary displays that should show system decorations, such as * This flag identifies secondary displays that should always show system decorations, such as * navigation bar, home activity or wallpaper. * </p> * <p>Note that this flag doesn't work without {@link #FLAG_TRUSTED}</p> Loading Loading @@ -400,6 +400,18 @@ public final class Display { */ public static final int FLAG_ROTATES_WITH_CONTENT = 1 << 14; /** * Display flag: Indicates that the display is allowed to switch the content mode between * projected/extended and mirroring. This allows the display to dynamically add or remove the * home and system decorations. * * Note that this flag shouldn't be enabled with {@link #FLAG_PRIVATE} or * {@link #FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS} at the same time; otherwise it will be ignored. * * @hide */ public static final int FLAG_ALLOWS_CONTENT_MODE_SWITCH = 1 << 15; /** * Display flag: Indicates that the contents of the display should not be scaled * to fit the physical screen dimensions. Used for development only to emulate Loading
core/java/android/view/DisplayInfo.java +3 −0 Original line number Diff line number Diff line Loading @@ -1125,6 +1125,9 @@ public final class DisplayInfo implements Parcelable { if ((flags & Display.FLAG_REAR) != 0) { result.append(", FLAG_REAR_DISPLAY"); } if ((flags & Display.FLAG_ALLOWS_CONTENT_MODE_SWITCH) != 0) { result.append(", FLAG_ALLOWS_CONTENT_MODE_SWITCH"); } return result.toString(); } }
services/core/java/com/android/server/display/DisplayDeviceInfo.java +15 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,8 @@ final class DisplayDeviceInfo { public static final int FLAG_MASK_DISPLAY_CUTOUT = 1 << 11; /** * Flag: This flag identifies secondary displays that should show system decorations, such as * navigation bar, home activity or wallpaper. * Flag: This flag identifies secondary displays that should always show system decorations, * such as navigation bar, home activity or wallpaper. * <p>Note that this flag doesn't work without {@link #FLAG_TRUSTED}</p> * @hide */ Loading Loading @@ -190,6 +190,19 @@ final class DisplayDeviceInfo { */ public static final int FLAG_STEAL_TOP_FOCUS_DISABLED = 1 << 19; /** * Flag: Indicates that the display is allowed to switch the content mode between * projected/extended and mirroring. This allows the display to dynamically add or remove the * home and system decorations. * * Note that this flag should not be enabled with any of {@link #FLAG_PRIVATE}, * {@link #FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS}, or {@link #FLAG_OWN_CONTENT_ONLY} at the * same time; otherwise it will be ignored. * * @hide */ public static final int FLAG_ALLOWS_CONTENT_MODE_SWITCH = 1 << 20; /** * Touch attachment: Display does not receive touch. */ Loading