Home | History | Annotate | Download | only in os

Lines Matching defs:WakeLock

35  * Do not acquire {@link WakeLock}s unless you really need them, use the minimum levels
39 * This will create a {@link PowerManager.WakeLock} object. You can then use methods
45 * PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");
89 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is
95 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is
101 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK}
265 * Flag for {@link WakeLock#release WakeLock.release(int)}: Defer releasing a
272 * Flag for {@link WakeLock#release(int)} when called due to timeout.
578 * Call {@link WakeLock#acquire() acquire()} on the object to acquire the
579 * wake lock, and {@link WakeLock#release release()} when you are done.
584 * PowerManager.WakeLock wl = pm.newWakeLock(
604 * the requested behavior of the WakeLock.
607 * @see WakeLock#acquire()
608 * @see WakeLock#release()
617 public WakeLock newWakeLock(int levelAndFlags, String tag) {
619 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName());
1236 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK}
1248 public final class WakeLock {
1267 WakeLock(int flags, String tag, String packageName) {
1272 mTraceName = "WakeLock (" + mTag + ")";
1279 Log.wtf(TAG, "WakeLock finalized while still held: " + mTag);
1291 * Sets whether this WakeLock is reference counted.
1404 throw new RuntimeException("WakeLock under-locked " + mTag);
1485 return "WakeLock{"
1505 * leak the wakelock!