Java android.os PowerManager fields, constructors, methods, implement or subclass

Example usage for Java android.os PowerManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os PowerManager.

The text is from its open source code.

Field

intPARTIAL_WAKE_LOCK
Wake lock level: Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off.
intSCREEN_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.
intSCREEN_BRIGHT_WAKE_LOCK
Wake lock level: Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.
intFULL_WAKE_LOCK
Wake lock level: Ensures that the screen and keyboard backlight are on at full brightness.
intPROXIMITY_SCREEN_OFF_WAKE_LOCK
Wake lock level: Turns the screen off when the proximity sensor activates.
intACQUIRE_CAUSES_WAKEUP
Wake lock flag: Turn the screen on when the wake lock is acquired.
intON_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.
intRELEASE_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.
StringACTION_POWER_SAVE_MODE_CHANGED
Intent that is broadcast when the state of #isPowerSaveMode() changes.
StringACTION_DEVICE_IDLE_MODE_CHANGED
Intent that is broadcast when the state of #isDeviceIdleMode() changes.

Method

booleanisDeviceIdleMode()
Returns true if the device is currently in idle mode.
booleanisIgnoringBatteryOptimizations(String packageName)
Return whether the given application package name is on the device's power whitelist.
booleanisInteractive()
Returns true if the device is in an interactive state.
booleanisPowerSaveMode()
Returns true if the device is currently in power save mode.
booleanisScreenOn()
Returns true if the device is in an interactive state.
booleanisWakeLockLevelSupported(int level)
Returns true if the specified wake lock level is supported.
WakeLocknewWakeLock(int levelAndFlags, String tag)
Creates a new wake lock with the specified level and flags.
voidreboot(String reason)
Reboot the device.