GpuHeadroomParams
class GpuHeadroomParams
| kotlin.Any | |
| ↳ | android.os.GpuHeadroomParams |
Headroom request params used by SystemHealthManager.getGpuHeadroom(GpuHeadroomParams).
This class is immutable and one should use the Builder to build a new instance.
Summary
| Nested classes | |
|---|---|
| Constants | |
|---|---|
| static Int |
The headroom calculation type bases on average value over a specified window. |
| static Int |
The headroom calculation type bases on minimum value over a specified window. |
| static Int |
The maximum size of the window to compute the headroom over. |
| static Int |
The minimum size of the window to compute the headroom over. |
| Public methods | |
|---|---|
| Boolean | |
| Int |
Gets the headroom calculation type. |
| Int |
Gets the headroom calculation window size in milliseconds. |
| Int |
hashCode() |
| String |
toString() |
Constants
GPU_HEADROOM_CALCULATION_TYPE_AVERAGE
static val GPU_HEADROOM_CALCULATION_TYPE_AVERAGE: Int
The headroom calculation type bases on average value over a specified window.
Value: 1GPU_HEADROOM_CALCULATION_TYPE_MIN
static val GPU_HEADROOM_CALCULATION_TYPE_MIN: Int
The headroom calculation type bases on minimum value over a specified window.
Value: 0GPU_HEADROOM_CALCULATION_WINDOW_MILLIS_MAX
static val GPU_HEADROOM_CALCULATION_WINDOW_MILLIS_MAX: Int
The maximum size of the window to compute the headroom over.
Value: 10000GPU_HEADROOM_CALCULATION_WINDOW_MILLIS_MIN
static val GPU_HEADROOM_CALCULATION_WINDOW_MILLIS_MIN: Int
The minimum size of the window to compute the headroom over.
Value: 50Public methods
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
obj |
the reference object with which to compare. |
| Return | |
|---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getCalculationType
fun getCalculationType(): Int
Gets the headroom calculation type.
This will return the default value chosen by the device if not set.
| Return | |
|---|---|
Int |
Value is android.os.GpuHeadroomParams#GPU_HEADROOM_CALCULATION_TYPE_MIN, or android.os.GpuHeadroomParams#GPU_HEADROOM_CALCULATION_TYPE_AVERAGE |
getCalculationWindowMillis
fun getCalculationWindowMillis(): Int
Gets the headroom calculation window size in milliseconds.
This will return the default value chosen by the device if not set.
toString
fun toString(): String
| Return | |
|---|---|
String |
a string representation of the object. |