summaryrefslogtreecommitdiff
path: root/core/java/android/view/Display.java
diff options
context:
space:
mode:
authorChilun <chilunhuang@google.com>2018-10-09 15:56:45 +0800
committerChilun <chilunhuang@google.com>2018-11-10 16:49:56 +0800
commit8753ad366b02f661c438afba8207fc0b67e10d9c (patch)
tree6962842e30abfe90409d63585969a8e4f8a33da3 /core/java/android/view/Display.java
parent5a19fd430e919c17e243e1bc355aeeae1711f6f1 (diff)
Implement new API of external display settings (1/2)
- Using DisplaySettings class for storing the display settings. - Define flags in WindowManager. - Have direct IWindowManager APIs to set and change display settings at runtime. - Mark TODO to original usage of the flags. - Add test case of DisplaySettings. - Expose some APIs for CTS usage. Bug: 114338689 Test: atest DisplayWindowSettingsTests Test: atest CtsApacheHttpLegacy27ApiSignatureTestCases Change-Id: I64ed14866d45cd5817fc3c895b6110c79c37b0ad
Diffstat (limited to 'core/java/android/view/Display.java')
-rw-r--r--core/java/android/view/Display.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java
index 719a401ce0cf..3f14379c9bc9 100644
--- a/core/java/android/view/Display.java
+++ b/core/java/android/view/Display.java
@@ -218,6 +218,7 @@ public final class Display {
* @see #getFlags
* @hide
*/
+ // TODO (b/114338689): Remove the flag and use IWindowManager#shouldShowWithInsecureKeyguard
public static final int FLAG_CAN_SHOW_WITH_INSECURE_KEYGUARD = 1 << 5;
/**
@@ -230,6 +231,7 @@ public final class Display {
* @see #supportsSystemDecorations
* @hide
*/
+ // TODO (b/114338689): Remove the flag and use IWindowManager#setShouldShowSystemDecors
public static final int FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS = 1 << 6;
/**
@@ -384,6 +386,7 @@ public final class Display {
*
* @hide
*/
+ // TODO (b/114338689): Remove the flag and use WindowManager#REMOVE_CONTENT_MODE_MOVE_TO_PRIMARY
public static final int REMOVE_MODE_MOVE_CONTENT_TO_PRIMARY = 0;
/**
* Indicates that when display is removed, all its stacks and tasks will be removed, all
@@ -391,6 +394,7 @@ public final class Display {
*
* @hide
*/
+ // TODO (b/114338689): Remove the flag and use WindowManager#REMOVE_CONTENT_MODE_DESTROY
public static final int REMOVE_MODE_DESTROY_CONTENT = 1;
/**
@@ -881,6 +885,7 @@ public final class Display {
* @see #REMOVE_MODE_MOVE_CONTENT_TO_PRIMARY
* @see #REMOVE_MODE_DESTROY_CONTENT
*/
+ // TODO (b/114338689): Remove the method and use IWindowManager#getRemoveContentMode
public int getRemoveMode() {
return mDisplayInfo.removeMode;
}
@@ -891,6 +896,7 @@ public final class Display {
* @see #FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS
* @hide
*/
+ // TODO (b/114338689): Remove the method and use IWindowManager#shouldShowSystemDecors
public boolean supportsSystemDecorations() {
return (mDisplayInfo.flags & FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS) != 0;
}