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 Runnable wrapImpl(WakeLock w, Runnable r) {
56 static WakeLock wrap(final PowerManager.WakeLock inne
[all...]
/frameworks/base/core/java/android/os/
H A DPowerManager.java35 * 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#acquir
1248 public final class WakeLock { class in class:PowerManager
1267 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.java267 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>();
1046 WakeLock wakeLock;
1066 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid,
1093 private static boolean isScreenLock(final WakeLock wakeLock) {
1103 private void applyWakeLockFlagsOnAcquireLocked(WakeLock wakeLock, int uid) {
1132 WakeLock wakeLock = mWakeLocks.get(index);
1147 private void handleWakeLockDeath(WakeLock wakeLock) {
1163 private void removeWakeLockLocked(WakeLock wakeLock, int index) {
1178 private void applyWakeLockFlagsOnReleaseLocked(WakeLock wakeLoc
3863 private final class WakeLock implements IBinder.DeathRecipient { class in class:PowerManagerService
3878 public WakeLock(IBinder lock, int flags, String tag, String packageName, method in class:PowerManagerService.WakeLock
[all...]

Completed in 4112 milliseconds