Example usage for Java android.os PowerManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | PARTIAL_WAKE_LOCK Wake lock level: Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off. |
int | SCREEN_DIM_WAKE_LOCK Wake lock level: Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off. |
int | SCREEN_BRIGHT_WAKE_LOCK Wake lock level: Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off. |
int | FULL_WAKE_LOCK Wake lock level: Ensures that the screen and keyboard backlight are on at full brightness. |
int | PROXIMITY_SCREEN_OFF_WAKE_LOCK Wake lock level: Turns the screen off when the proximity sensor activates. |
int | ACQUIRE_CAUSES_WAKEUP Wake lock flag: Turn the screen on when the wake lock is acquired. |
int | ON_AFTER_RELEASE Wake lock flag: When this wake lock is released, poke the user activity timer so the screen stays on for a little longer. |
int | RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY Flag for WakeLock#release WakeLock.release(int) : Defer releasing a #PROXIMITY_SCREEN_OFF_WAKE_LOCK wake lock until the proximity sensor indicates that an object is not in close proximity. |
String | ACTION_POWER_SAVE_MODE_CHANGED Intent that is broadcast when the state of #isPowerSaveMode() changes. |
String | ACTION_DEVICE_IDLE_MODE_CHANGED Intent that is broadcast when the state of #isDeviceIdleMode() changes. |
boolean | isDeviceIdleMode() Returns true if the device is currently in idle mode. |
boolean | isIgnoringBatteryOptimizations(String packageName) Return whether the given application package name is on the device's power whitelist. |
boolean | isInteractive() Returns true if the device is in an interactive state. |
boolean | isPowerSaveMode() Returns true if the device is currently in power save mode. |
boolean | isScreenOn() Returns true if the device is in an interactive state. |
boolean | isWakeLockLevelSupported(int level) Returns true if the specified wake lock level is supported. |
WakeLock | newWakeLock(int levelAndFlags, String tag) Creates a new wake lock with the specified level and flags. |
void | reboot(String reason) Reboot the device. |