Lines Matching defs:WakeLock
27 * Do not acquire {@link WakeLock}s unless you really need them, use the minimum levels
34 * This will create a {@link PowerManager.WakeLock} object. You can then use methods
40 * PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");
84 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is
90 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is
96 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK}
224 * Flag for {@link WakeLock#release release(int)} to defer releasing a
368 * Call {@link WakeLock#acquire() acquire()} on the object to acquire the
369 * wake lock, and {@link WakeLock#release release()} when you are done.
374 * PowerManager.WakeLock wl = pm.newWakeLock(
394 * the requested behavior of the WakeLock.
397 * @see WakeLock#acquire()
398 * @see WakeLock#release()
406 public WakeLock newWakeLock(int levelAndFlags, String tag) {
408 return new WakeLock(levelAndFlags, tag);
610 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK}
622 public final class WakeLock {
637 WakeLock(int flags, String tag) {
647 Log.wtf(TAG, "WakeLock finalized while still held: " + mTag);
657 * Sets whether this WakeLock is reference counted.
760 throw new RuntimeException("WakeLock under-locked " + mTag);
819 return "WakeLock{"