Searched defs:WakeLock (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
H A DWakeLock.java23 /** WakeLock wrapper for testability */
24 public interface WakeLock { interface
26 /** @see android.os.PowerManager.WakeLock#acquire() */
29 /** @see android.os.PowerManager.WakeLock#release() */
32 /** @see android.os.PowerManager.WakeLock#wrap(Runnable) */
35 static WakeLock createPartial(Context context, String tag) {
40 static PowerManager.WakeLock createPartialInner(Context context, String tag) {
45 static WakeLock wrap(final PowerManager.WakeLock inner) {
46 return new WakeLock() {
[all...]
/frameworks/base/core/java/android/os/
H A DPowerManager.java34 * Do not acquire {@link WakeLock}s unless you really need them, use the minimum levels
38 * This will create a {@link PowerManager.WakeLock} object. You can then use methods
44 * PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");
88 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is
94 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is
100 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK}
264 * Flag for {@link WakeLock#release WakeLock.release(int)}: Defer releasing a
571 * Call {@link WakeLock#acquire() acquire()} on the object to acquire the
572 * wake lock, and {@link WakeLock#releas
1241 public final class WakeLock { class in class:PowerManager
1259 WakeLock(int flags, String tag, String packageName) { method in class:PowerManager.WakeLock
[all...]
/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java263 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>();
1034 WakeLock wakeLock;
1054 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid,
1081 private static boolean isScreenLock(final WakeLock wakeLock) {
1091 private void applyWakeLockFlagsOnAcquireLocked(WakeLock wakeLock, int uid) {
1120 WakeLock wakeLock = mWakeLocks.get(index);
1135 private void handleWakeLockDeath(WakeLock wakeLock) {
1151 private void removeWakeLockLocked(WakeLock wakeLock, int index) {
1166 private void applyWakeLockFlagsOnReleaseLocked(WakeLock wakeLoc
3834 private final class WakeLock implements IBinder.DeathRecipient { class in class:PowerManagerService
3849 public WakeLock(IBinder lock, int flags, String tag, String packageName, method in class:PowerManagerService.WakeLock
[all...]

Completed in 689 milliseconds