public final class DisplayConfig extends Object
Modifier and Type | Field | Description |
---|---|---|
int |
appHeight |
The height of the portion of the display that is available to applications, in pixels.
|
long |
appVsyncOffsetNanos |
This is a positive value indicating the phase offset of the VSYNC events provided by
Choreographer relative to the display refresh.
|
int |
appWidth |
The width of the portion of the display that is available to applications, in pixels.
|
int |
colorMode |
The active color mode.
|
int |
defaultModeId |
The default display mode.
|
int |
flags |
Display flags.
|
Display.HdrCapabilities |
hdrCapabilities |
The display's HDR capabilities
|
int |
largestNominalAppHeight |
The largest value of
appHeight that an application is likely to encounter,
in pixels, excepting cases where the height may be even larger due to system decorations
such as the status bar being hidden, for example. |
int |
largestNominalAppWidth |
The largest value of
appWidth that an application is likely to encounter,
in pixels, excepting cases where the width may be even larger due to system decorations
such as the status bar being hidden, for example. |
int |
layerStack |
The surface flinger layer stack associated with this logical display.
|
int |
logicalDensityDpi |
The logical display density which is the basis for density-independent
pixels.
|
int |
logicalHeight |
The logical height of the display, in pixels.
|
int |
logicalWidth |
The logical width of the display, in pixels.
|
int |
modeId |
The active display mode.
|
String |
name |
The human-readable name of the display.
|
int |
overscanBottom |
|
int |
overscanLeft |
|
int |
overscanRight |
|
int |
overscanTop |
|
String |
ownerPackageName |
The package name of the application that owns this display, or null if it is
owned by the system.
|
int |
ownerUid |
The UID of the application that owns this display, or zero if it is owned by the system.
|
float |
physicalXDpi |
The exact physical pixels per inch of the screen in the X dimension.
|
float |
physicalYDpi |
The exact physical pixels per inch of the screen in the Y dimension.
|
long |
presentationDeadlineNanos |
This is how far in advance a buffer must be queued for presentation at
a given time.
|
int |
removeMode |
|
int |
rotation |
The rotation of the display relative to its natural orientation.
|
int |
smallestNominalAppHeight |
The smallest value of
appHeight that an application is likely to encounter,
in pixels, excepting cases where the height may be even smaller due to the presence
of a soft keyboard, for example. |
int |
smallestNominalAppWidth |
The smallest value of
appWidth that an application is likely to encounter,
in pixels, excepting cases where the width may be even smaller due to the presence
of a soft keyboard, for example. |
int |
state |
The state of the display, such as
Display.STATE_ON . |
int[] |
supportedColorModes |
The list of supported color modes
|
Display.Mode[] |
supportedModes |
The supported modes of this display.
|
int |
type |
Display type.
|
String |
uniqueId |
Unique identifier for the display.
|
Constructor | Description |
---|---|
DisplayConfig() |
|
DisplayConfig(DisplayInfo other) |
|
DisplayConfig(DisplayConfig other) |
Modifier and Type | Method | Description |
---|---|---|
void |
copyFrom(DisplayConfig other) |
|
void |
copyTo(DisplayInfo other) |
|
boolean |
equals(Object o) |
|
boolean |
equals(DisplayConfig other) |
|
int |
hashCode() |
|
String |
toString() |
public int layerStack
public int flags
public int type
public String name
public String uniqueId
public int appWidth
public int appHeight
public int smallestNominalAppWidth
appWidth
that an application is likely to encounter,
in pixels, excepting cases where the width may be even smaller due to the presence
of a soft keyboard, for example.public int smallestNominalAppHeight
appHeight
that an application is likely to encounter,
in pixels, excepting cases where the height may be even smaller due to the presence
of a soft keyboard, for example.public int largestNominalAppWidth
appWidth
that an application is likely to encounter,
in pixels, excepting cases where the width may be even larger due to system decorations
such as the status bar being hidden, for example.public int largestNominalAppHeight
appHeight
that an application is likely to encounter,
in pixels, excepting cases where the height may be even larger due to system decorations
such as the status bar being hidden, for example.public int logicalWidth
public int logicalHeight
public int overscanLeft
public int overscanTop
public int overscanRight
public int overscanBottom
public int rotation
Surface.ROTATION_0
,
Surface.ROTATION_90
, Surface.ROTATION_180
,
Surface.ROTATION_270
.
The value of this field is indeterminate if the logical display is presented on more than one physical display.
public int modeId
public int defaultModeId
public Display.Mode[] supportedModes
public int colorMode
public int[] supportedColorModes
public Display.HdrCapabilities hdrCapabilities
public int logicalDensityDpi
public float physicalXDpi
The value of this field is indeterminate if the logical display is presented on more than one physical display.
public float physicalYDpi
The value of this field is indeterminate if the logical display is presented on more than one physical display.
public long appVsyncOffsetNanos
public long presentationDeadlineNanos
public int state
Display.STATE_ON
.public int ownerUid
If the display is private, then only the owner can use it.
public String ownerPackageName
If the display is private, then only the owner can use it.
public int removeMode
Display.getRemoveMode()
public DisplayConfig()
public DisplayConfig(DisplayConfig other)
public DisplayConfig(DisplayInfo other)
public boolean equals(DisplayConfig other)
public void copyFrom(DisplayConfig other)
public void copyTo(DisplayInfo other)