method public boolean isInteractive();
method public boolean isPowerSaveMode();
method public deprecated boolean isScreenOn();
+ method public boolean isWakeLockLevelSupported(int);
method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String);
method public void reboot(java.lang.String);
method public void userActivity(long, boolean);
field public static final deprecated int FULL_WAKE_LOCK = 26; // 0x1a
field public static final int ON_AFTER_RELEASE = 536870912; // 0x20000000
field public static final int PARTIAL_WAKE_LOCK = 1; // 0x1
+ field public static final int PROXIMITY_SCREEN_OFF_WAKE_LOCK = 32; // 0x20
field public static final deprecated int SCREEN_BRIGHT_WAKE_LOCK = 10; // 0xa
field public static final deprecated int SCREEN_DIM_WAKE_LOCK = 6; // 0x6
+ field public static final int WAIT_FOR_PROXIMITY_NEGATIVE = 1; // 0x1
}
public final class PowerManager.WakeLock {
method public void acquire(long);
method public boolean isHeld();
method public void release();
+ method public void release(int);
method public void setReferenceCounted(boolean);
method public void setWorkSource(android.os.WorkSource);
}
* </p><p>
* Cannot be used with {@link #ACQUIRE_CAUSES_WAKEUP}.
* </p>
- *
- * {@hide}
*/
public static final int PROXIMITY_SCREEN_OFF_WAKE_LOCK = 0x00000020;
public static final int UNIMPORTANT_FOR_LOGGING = 0x40000000;
/**
- * Flag for {@link WakeLock#release release(int)} to defer releasing a
- * {@link #PROXIMITY_SCREEN_OFF_WAKE_LOCK} wake lock until the proximity sensor returns
- * a negative value.
- *
- * {@hide}
+ * Flag for {@link WakeLock#release WakeLock.release(int)}: Defer releasing a
+ * {@link #PROXIMITY_SCREEN_OFF_WAKE_LOCK} wake lock until the proximity sensor
+ * indicates that an object is not in close proximity.
*/
public static final int WAIT_FOR_PROXIMITY_NEGATIVE = 1;
* @see #FULL_WAKE_LOCK
* @see #SCREEN_DIM_WAKE_LOCK
* @see #SCREEN_BRIGHT_WAKE_LOCK
+ * @see #PROXIMITY_SCREEN_OFF_WAKE_LOCK
* @see #ACQUIRE_CAUSES_WAKEUP
* @see #ON_AFTER_RELEASE
*/
*
* @param level The wake lock level to check.
* @return True if the specified wake lock level is supported.
- *
- * {@hide}
*/
public boolean isWakeLockLevelSupported(int level) {
try {
*
* @param flags Combination of flag values to modify the release behavior.
* Currently only {@link #WAIT_FOR_PROXIMITY_NEGATIVE} is supported.
- *
- * {@hide}
*/
public void release(int flags) {
synchronized (mToken) {