Mark some virtual display flags as TestApi
to test their behaviors Bug: 162627132 Test: atest VirtualDisplayTest#testTrustedVirtualDisplay Test: atest VirtualDisplayTest#testUntrustedSysDecorVirtualDisplay Change-Id: I8e32cb42d93c59c015def0b0593038a0d961e3d4
This commit is contained in:
@@ -1303,6 +1303,8 @@ package android.hardware.display {
|
||||
method public android.graphics.Point getStableDisplaySize();
|
||||
method public boolean isMinimalPostProcessingRequested(int);
|
||||
method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public void setBrightnessConfiguration(android.hardware.display.BrightnessConfiguration);
|
||||
field public static final int VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS = 512; // 0x200
|
||||
field public static final int VIRTUAL_DISPLAY_FLAG_TRUSTED = 1024; // 0x400
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -310,6 +310,7 @@ public final class DisplayManager {
|
||||
* @hide
|
||||
*/
|
||||
// TODO (b/114338689): Remove the flag and use IWindowManager#setShouldShowSystemDecors
|
||||
@TestApi
|
||||
public static final int VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS = 1 << 9;
|
||||
|
||||
/**
|
||||
@@ -320,6 +321,7 @@ public final class DisplayManager {
|
||||
* @see #VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static final int VIRTUAL_DISPLAY_FLAG_TRUSTED = 1 << 10;
|
||||
|
||||
/** @hide */
|
||||
|
||||
Reference in New Issue
Block a user