Home
last modified time | relevance | path

Searched refs:wl (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java86 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock() local
87 doTestWakeLock(wl); in testNewWakeLock()
89 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock()
90 doTestWakeLock(wl); in testNewWakeLock()
92 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock()
93 doTestWakeLock(wl); in testNewWakeLock()
95 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock()
96 doTestWakeLock(wl); in testNewWakeLock()
113 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock() local
144 private void doTestWakeLock(PowerManager.WakeLock wl) { in doTestWakeLock() argument
[all …]
DPowerManagerVrTest.java129 PowerManager.WakeLock wl = mPm.newWakeLock( in wakeUpDevice() local
132 wl.acquire(); in wakeUpDevice()
133 wl.release(); in wakeUpDevice()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java258 WifiLock wl = findLockByBinder(binder); in updateWifiLockWorkSource() local
259 if (wl == null) { in updateWifiLockWorkSource()
269 Slog.d(TAG, "updateWifiLockWakeSource: " + wl + ", newWorkSource=" + newWorkSource); in updateWifiLockWorkSource()
277 switch(wl.mMode) { in updateWifiLockWorkSource()
282 setBlameHiPerfWs(wl.mWorkSource, false); in updateWifiLockWorkSource()
287 removeWsFromLlWatchList(wl.mWorkSource); in updateWifiLockWorkSource()
295 wl.mWorkSource = newWorkSource; in updateWifiLockWorkSource()
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java426 PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in onServiceConnected() local
428 wl.setWorkSource(deriveWorkSource(runningJob)); in onServiceConnected()
429 wl.setReferenceCounted(false); in onServiceConnected()
430 wl.acquire(); in onServiceConnected()
442 mWakeLock = wl; in onServiceConnected()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java87 int responseQueueSize, String logTag, int maxLogSize, PowerManager.WakeLock wl) { in NativeDaemonConnector() argument
88 this(callbacks, socket, responseQueueSize, logTag, maxLogSize, wl, in NativeDaemonConnector()
93 int responseQueueSize, String logTag, int maxLogSize, PowerManager.WakeLock wl, in NativeDaemonConnector() argument
98 mWakeLock = wl; in NativeDaemonConnector()
DUiModeManagerService.java149 PowerManager.WakeLock wl, TwilightManager tm, in UiModeManagerService() argument
153 mWakeLock = wl; in UiModeManagerService()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java448 PowerManager.WakeLock wl =
450 wl.acquire();
463 wl.release();
1133 PowerManager.WakeLock wl =
1136 wl.acquire();
/frameworks/base/core/java/android/os/
DBatteryStats.java3786 final Uid.Wakelock wl = wakelocks.valueAt(iw); in dumpCheckinLocked() local
3788 final Timer fullWakeTimer = wl.getWakeTime(WAKE_TYPE_FULL); in dumpCheckinLocked()
3794 final Timer partialWakeTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpCheckinLocked()
4208 final Uid.Wakelock wl = wakelocks.valueAt(iw); in dumpCheckinLocked() local
4211 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_FULL), in dumpCheckinLocked()
4213 final Timer pTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpCheckinLocked()
4218 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_WINDOW), in dumpCheckinLocked()
4795 final Uid.Wakelock wl = wakelocks.valueAt(iw); in dumpLocked() local
4797 final Timer fullWakeTimer = wl.getWakeTime(WAKE_TYPE_FULL); in dumpLocked()
4803 final Timer partialWakeTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpLocked()
[all …]
/frameworks/base/cmds/statsd/tests/condition/
DSimpleConditionTracker_test.cpp71 LogEvent* event, const std::vector<int> &uids, const string& wl, int acquire) { in makeWakeLockEvent() argument
73 event->write(wl); in makeWakeLockEvent()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java7856 Wakelock wl = wakeStats.valueAt(iw); in reset() local
7857 if (wl.reset()) { in reset()
7995 Wakelock wl = wakeStats.valueAt(iw); in detachFromTimeBase() local
7996 wl.detachFromTimeBase(); in detachFromTimeBase()
9556 Wakelock wl = new Wakelock(mBsi, this); in readWakeSummaryFromParcelLocked() local
9557 mWakelockStats.add(wlName, wl); in readWakeSummaryFromParcelLocked()
9559 getWakelockTimerLocked(wl, WAKE_TYPE_FULL).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked()
9562 getWakelockTimerLocked(wl, WAKE_TYPE_PARTIAL).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked()
9565 getWakelockTimerLocked(wl, WAKE_TYPE_WINDOW).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked()
9568 getWakelockTimerLocked(wl, WAKE_TYPE_DRAW).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java3547 for (WakeLock wl : mWakeLocks) { in dumpInternal()
3548 pw.println(" " + wl); in dumpInternal()
3894 for (WakeLock wl : mWakeLocks) { in dumpProto()
3895 wl.writeToProto(proto, PowerManagerServiceDumpProto.WAKE_LOCKS); in dumpProto()