setInteractive (bool interactive)
setInteractive() performs power management actions upon the system entering interactive state(that is, the system is awake and ready for interaction, often with UI devices such as display and touchscreen enabled)or non-interactive state(the system appears asleep, display usually turned off). The non-interactive state may be entered after a period of inactivity in order to conserve battery power during such inactive periods.
Typical actions are to turn on or off devices and adjust cpufreq parameters.This function may also call the appropriate interfaces to allow the kernel to suspend the system to low-power sleep state when entering non-interactive state, and to disallow low-power suspend when the system is in interactive state.When low-power suspend state is allowed, the kernel may suspend the system whenever no wakelocks are held.
For example, This function can be called to enter non-interactive state after turning off the screen(if present)and called to enter interactive state prior to turning on the screen.
powerHint (PowerHint hint, int32_t data)
powerHint() is called to pass hints on power requirements which may result in adjustment of power/performance parameters of the cpufreq governor and other controls.
A particular platform may choose to ignore any hint.
setFeature (Feature feature, bool activate)
setFeature() is called to turn on or off a particular feature depending on the state parameter.
getPlatformLowPowerStats () generates (vec<PowerStatePlatformSleepState> states, Status retval)
Platform-level sleep state stats:Report cumulative info on the statistics on platform-level sleep states since boot.
Higher the index in the returned<states>vector deeper the state is i.e.lesser steady-state power is consumed by the platform to be resident in that state.