/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 86 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 …]
|
D | PowerManagerVrTest.java | 129 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/ |
D | WifiLockManager.java | 258 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/ |
D | JobServiceContext.java | 426 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/ |
D | NativeDaemonConnector.java | 87 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()
|
D | UiModeManagerService.java | 149 PowerManager.WakeLock wl, TwilightManager tm, in UiModeManagerService() argument 153 mWakeLock = wl; in UiModeManagerService()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 448 PowerManager.WakeLock wl = 450 wl.acquire(); 463 wl.release(); 1133 PowerManager.WakeLock wl = 1136 wl.acquire();
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 3786 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/ |
D | SimpleConditionTracker_test.cpp | 71 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/ |
D | BatteryStatsImpl.java | 7856 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/ |
D | PowerManagerService.java | 3547 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()
|