Home | History | Annotate | Download | only in server

Lines Matching refs:wl

737     void noteStartWakeLocked(WakeLock wl, WorkSource ws) {
738 if (wl.monitorType >= 0) {
742 mBatteryStats.noteStartWakelockFromSource(ws, wl.pid, wl.tag,
743 wl.monitorType);
745 mBatteryStats.noteStartWakelock(wl.uid, wl.pid, wl.tag, wl.monitorType);
755 void noteStopWakeLocked(WakeLock wl, WorkSource ws) {
756 if (wl.monitorType >= 0) {
760 mBatteryStats.noteStopWakelockFromSource(ws, wl.pid, wl.tag,
761 wl.monitorType);
763 mBatteryStats.noteStopWakelock(wl.uid, wl.pid, wl.tag, wl.monitorType);
784 WakeLock wl;
789 wl = new WakeLock(flags, lock, tag, uid, pid);
790 switch (wl.flags & LOCK_MASK)
794 wl.minState = SCREEN_BRIGHT;
796 wl.minState = (mKeyboardVisible ? ALL_BRIGHT : SCREEN_BUTTON_BRIGHT);
800 wl.minState = SCREEN_BRIGHT;
803 wl.minState = SCREEN_DIM;
815 mLocks.addLock(wl);
817 wl.ws = new WorkSource(ws);
823 wl = mLocks.get(index);
825 oldsource = wl.ws;
828 wl.ws = null;
839 wl.ws = new WorkSource(ws);
853 if ((wl.flags & PowerManager.ACQUIRE_CAUSES_WAKEUP) != 0) {
888 noteStopWakeLocked(wl, oldsource);
891 noteStartWakeLocked(wl, ws);
909 WakeLock wl = mLocks.get(index);
910 WorkSource oldsource = wl.ws;
911 wl.ws = ws != null ? new WorkSource(ws) : null;
912 noteStopWakeLocked(wl, oldsource);
913 noteStartWakeLocked(wl, ws);
929 WakeLock wl = mLocks.removeLock(lock);
930 if (wl == null) {
936 + Integer.toHexString(wl.flags) + " tag=" + wl.tag);
939 if (isScreenLock(wl.flags)) {
940 if ((wl.flags & LOCK_MASK) == PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK) {
956 if ((wl.flags & PowerManager.ON_AFTER_RELEASE) != 0) {
962 else if ((wl.flags & LOCK_MASK) == PowerManager.PARTIAL_WAKE_LOCK) {
965 if (LOG_PARTIAL_WL) EventLog.writeEvent(EventLogTags.POWER_PARTIAL_WAKE_STATE, 0, wl.tag);
970 wl.binder.unlinkToDeath(wl, 0);
972 noteStopWakeLocked(wl, wl.ws);
1155 WakeLock wl = mLocks.get(i);
1156 String type = lockType(wl.flags & LOCK_MASK);
1158 if ((wl.flags & PowerManager.ACQUIRE_CAUSES_WAKEUP) != 0) {
1162 if (wl.activated) {
1165 pw.println(" " + type + " '" + wl.tag + "'" + acquireCausesWakeup
1166 + activated + " (minState=" + wl.minState + ", uid=" + wl.uid
1167 + ", pid=" + wl.pid + ")");
2494 WakeLock wl = mLocks.get(i);
2495 if (isScreenLock(wl.flags)) {
2496 if (((wl.flags & LOCK_MASK) == PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)
2644 void addLock(WakeLock wl)
2646 int index = getIndex(wl.binder);
2648 this.add(wl);
2678 WakeLock wl = this.get(i);
2679 if (wl.activated) {
2680 if (isScreenLock(wl.flags)) {
2681 result |= wl.minState;
2693 WakeLock wl = this.get(i);
2694 if (isScreenLock(wl.flags)) {
2695 wl.activated = true;
2696 result |= wl.minState;