Merge "Expose Display.getType() via TestApi." into rvc-dev am: bd745f763a
Change-Id: Ie0fb340288decd887a9e47f7626c43c0ad2290e2
This commit is contained in:
@@ -4814,7 +4814,14 @@ package android.view {
|
|||||||
|
|
||||||
public final class Display {
|
public final class Display {
|
||||||
method @NonNull public android.graphics.ColorSpace[] getSupportedWideColorGamut();
|
method @NonNull public android.graphics.ColorSpace[] getSupportedWideColorGamut();
|
||||||
|
method public int getType();
|
||||||
method public boolean hasAccess(int);
|
method public boolean hasAccess(int);
|
||||||
|
field public static final int TYPE_EXTERNAL = 2; // 0x2
|
||||||
|
field public static final int TYPE_INTERNAL = 1; // 0x1
|
||||||
|
field public static final int TYPE_OVERLAY = 4; // 0x4
|
||||||
|
field public static final int TYPE_UNKNOWN = 0; // 0x0
|
||||||
|
field public static final int TYPE_VIRTUAL = 5; // 0x5
|
||||||
|
field public static final int TYPE_WIFI = 3; // 0x3
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FocusFinder {
|
public class FocusFinder {
|
||||||
|
|||||||
@@ -253,12 +253,14 @@ public final class Display {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
|
@TestApi
|
||||||
public static final int TYPE_UNKNOWN = 0;
|
public static final int TYPE_UNKNOWN = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display type: Physical display connected through an internal port.
|
* Display type: Physical display connected through an internal port.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@TestApi
|
||||||
public static final int TYPE_INTERNAL = 1;
|
public static final int TYPE_INTERNAL = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -266,6 +268,7 @@ public final class Display {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
|
@TestApi
|
||||||
public static final int TYPE_EXTERNAL = 2;
|
public static final int TYPE_EXTERNAL = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -273,12 +276,14 @@ public final class Display {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
|
@TestApi
|
||||||
public static final int TYPE_WIFI = 3;
|
public static final int TYPE_WIFI = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display type: Overlay display.
|
* Display type: Overlay display.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@TestApi
|
||||||
public static final int TYPE_OVERLAY = 4;
|
public static final int TYPE_OVERLAY = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -286,6 +291,7 @@ public final class Display {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
|
@TestApi
|
||||||
public static final int TYPE_VIRTUAL = 5;
|
public static final int TYPE_VIRTUAL = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -569,6 +575,7 @@ public final class Display {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
|
@TestApi
|
||||||
public int getType() {
|
public int getType() {
|
||||||
return mType;
|
return mType;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user