Home | History | Annotate | Download | only in server

Lines Matching defs:wl

752     void noteStartWakeLocked(WakeLock wl, WorkSource ws) {
753 if (wl.monitorType >= 0) {
757 mBatteryStats.noteStartWakelockFromSource(ws, wl.pid, wl.tag,
758 wl.monitorType);
760 mBatteryStats.noteStartWakelock(wl.uid, wl.pid, wl.tag, wl.monitorType);
770 void noteStopWakeLocked(WakeLock wl, WorkSource ws) {
771 if (wl.monitorType >= 0) {
775 mBatteryStats.noteStopWakelockFromSource(ws, wl.pid, wl.tag,
776 wl.monitorType);
778 mBatteryStats.noteStopWakelock(wl.uid, wl.pid, wl.tag, wl.monitorType);
799 WakeLock wl;
804 wl = new WakeLock(flags, lock, tag, uid, pid);
805 switch (wl.flags & LOCK_MASK)
809 wl.minState = SCREEN_BRIGHT;
811 wl.minState = (mKeyboardVisible ? ALL_BRIGHT : SCREEN_BUTTON_BRIGHT);
815 wl.minState = SCREEN_BRIGHT;
818 wl.minState = SCREEN_DIM;
830 mLocks.addLock(wl);
832 wl.ws = new WorkSource(ws);
838 wl = mLocks.get(index);
840 oldsource = wl.ws;
843 wl.ws = null;
854 wl.ws = new WorkSource(ws);
868 if ((wl.flags & PowerManager.ACQUIRE_CAUSES_WAKEUP) != 0) {
911 noteStopWakeLocked(wl, oldsource);
914 noteStartWakeLocked(wl, ws);
932 WakeLock wl = mLocks.get(index);
933 WorkSource oldsource = wl.ws;
934 wl.ws = ws != null ? new WorkSource(ws) : null;
935 noteStopWakeLocked(wl, oldsource);
936 noteStartWakeLocked(wl, ws);
952 WakeLock wl = mLocks.removeLock(lock);
953 if (wl == null) {
959 + Integer.toHexString(wl.flags) + " tag=" + wl.tag);
962 if (isScreenLock(wl.flags)) {
963 if ((wl.flags & LOCK_MASK) == PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK) {
979 if ((wl.flags & PowerManager.ON_AFTER_RELEASE) != 0) {
985 else if ((wl.flags & LOCK_MASK) == PowerManager.PARTIAL_WAKE_LOCK) {
988 if (LOG_PARTIAL_WL) EventLog.writeEvent(EventLogTags.POWER_PARTIAL_WAKE_STATE, 0, wl.tag);
993 wl.binder.unlinkToDeath(wl, 0);
995 noteStopWakeLocked(wl, wl.ws);
1182 WakeLock wl = mLocks.get(i);
1183 String type = lockType(wl.flags & LOCK_MASK);
1185 if ((wl.flags & PowerManager.ACQUIRE_CAUSES_WAKEUP) != 0) {
1189 if (wl.activated) {
1192 pw.println(" " + type + " '" + wl.tag + "'" + acquireCausesWakeup
1193 + activated + " (minState=" + wl.minState + ", uid=" + wl.uid
1194 + ", pid=" + wl.pid + ")");
2641 WakeLock wl = mLocks.get(i);
2642 if (isScreenLock(wl.flags)) {
2643 if (((wl.flags & LOCK_MASK) == PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)
2788 void addLock(WakeLock wl)
2790 int index = getIndex(wl.binder);
2792 this.add(wl);
2822 WakeLock wl = this.get(i);
2823 if (wl.activated) {
2824 if (isScreenLock(wl.flags)) {
2825 result |= wl.minState;
2837 WakeLock wl = this.get(i);
2838 if (isScreenLock(wl.flags)) {
2839 wl.activated = true;
2840 result |= wl.minState;