Professional Documents
Culture Documents
/**
* User is interacting with the device, for example, touchscreen
* events are incoming. CPU and GPU load may be expected soon,
* and it may be appropriate to raise speeds of CPU, memory bus,
* etc. The data parameter is the estimated length of the interaction
* in milliseconds, or 0 if unknown.
*/
INTERACTION
/**
* Low power mode is activated or deactivated. Low power mode
* is intended to save battery at the cost of performance. The data
* parameter is non-zero when low power mode is activated, and zero
* when deactivated.
*/
LOW_POWER
/**
* Sustained Performance mode is actived or deactivated. Sustained
* performance mode is intended to provide a consistent level of
* performance for a prolonged amount of time. The data parameter is
* non-zero when sustained performance mode is activated, and zero
* when deactivated.
*/
SUSTAINED_PERFORMANCE
/**
* This hint indicates that an application has been launched. Can be used
* for device specific optimizations during application launch. The data
* parameter is non-zero when the application starts to launch and zero when
* it has been launched.
*/
LAUNCH
/**
* This mode indicates that user is playing a game.
*/
GAME,
/**
* This mode indicates that the user is waiting for loading in a game.
*/
GAME_LOADING
/**
* This mode indicates the device is in device idle, externally known as doze.
* More details on:
* https://developer.android.com/training/monitoring-device-state/doze-standby
*/
DEVICE_IDLE,
/**
* This mode indicates that display is either off or still on but is optimized
* for low-power.
*/
DISPLAY_INACTIVE,
/**
* This hint indicates that audio stream is being started. Can be used
* for device specific optimizations during starting audio stream. The
* data parameter is non-zero when stream starts and zero when audio
* stream setup is complete.
*/
AUDIO_STREAMING,
/**
* This hint indicates that low latency audio is active. Can be used
* for device specific optimizations towards low latency audio. The
* data parameter is non-zero when low latency audio starts and
* zero when ends.
*/
AUDIO_LOW_LATENCY,
/**
* These hint indicates that camera is being launched. Can be used
* for device specific optimizations during camera launch. The data
* parameter is non-zero when camera launch starts and zero when launch
* is complete.
*/
CAMERA_LAUNCH,
/**
* This hint indicates that camera stream is being started. Can be used
* for device specific optimizations during starting camera stream. The
* data parameter is non-zero when stream starts and zero when ends.
*/
CAMERA_STREAMING,
/**
* This hint indicates that camera shot is being taken. Can be used
* for device specific optimizations during taking camera shot. The
* data parameter is non-zero when camera shot starts and zero when ends.
*/
CAMERA_SHOT