Class of android.os · PowerManager.java · Android's reference
public final class PowerManager
Power: the screen is on, nothing saves power, and wake locks hold nothing.
public static final int PARTIAL_WAKE_LOCK = 0x00000001 sourcepublic static final int SCREEN_DIM_WAKE_LOCK = 0x00000006 sourcepublic static final int SCREEN_BRIGHT_WAKE_LOCK = 0x0000000a sourcepublic static final int FULL_WAKE_LOCK = 0x0000001a sourcepublic static final int ACQUIRE_CAUSES_WAKEUP = 0x10000000 sourcepublic static final int ON_AFTER_RELEASE = 0x20000000 sourcepublic static final int THERMAL_STATUS_NONE = 0 sourcepublic static final String ACTION_POWER_SAVE_MODE_CHANGED = "android.os.action.POWER_SAVE_MODE_CHANGED" sourcepublic static final String ACTION_DEVICE_IDLE_MODE_CHANGED = "android.os.action.DEVICE_IDLE_MODE_CHANGED" sourcepublic PowerManager() empty body sourcepublic WakeLock newWakeLock(int levelAndFlags, String tag) sourcepublic boolean isScreenOn() sourcepublic boolean isInteractive() sourcepublic boolean isPowerSaveMode() sourcepublic boolean isDeviceIdleMode() sourcepublic boolean isLowPowerStandbyEnabled() sourcepublic boolean isIgnoringBatteryOptimizations(String packageName) sourcepublic boolean isSustainedPerformanceModeSupported() sourcepublic int getCurrentThermalStatus() sourcepublic float getThermalHeadroom(int forecastSeconds) sourcepublic void addThermalStatusListener(OnThermalStatusChangedListener listener) sourceThe status never changes from none, so the listener hears it once, as Android calls a new listener.
public void addThermalStatusListener(java.util.concurrent.Executor executor, OnThermalStatusChangedListener listener) sourcepublic void removeThermalStatusListener(OnThermalStatusChangedListener listener) empty body sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.