Home | History | Annotate | Download | only in os

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}
226 * Flag for {@link WakeLock#release release(int)} to defer releasing a
370 * Call {@link WakeLock#acquire() acquire()} on the object to acquire the
371 * wake lock, and {@link WakeLock#release release()} when you are done.
376 * PowerManager.WakeLock wl = pm.newWakeLock(
396 * the requested behavior of the WakeLock.
399 * @see WakeLock#acquire()
400 * @see WakeLock#release()
408 public WakeLock newWakeLock(int levelAndFlags, String tag) {
410 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName());
612 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK}
624 public final class WakeLock {
640 WakeLock(int flags, String tag, String packageName) {
651 Log.wtf(TAG, "WakeLock finalized while still held: " + mTag);
661 * Sets whether this WakeLock is reference counted.
764 throw new RuntimeException("WakeLock under-locked " + mTag);
823 return "WakeLock{"