Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock() local
54 doTestWakeLock(wl); in testNewWakeLock()
56 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock()
57 doTestWakeLock(wl); in testNewWakeLock()
59 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock()
60 doTestWakeLock(wl); in testNewWakeLock()
62 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock()
63 doTestWakeLock(wl); in testNewWakeLock()
83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock() local
95 private void doTestWakeLock(PowerManager.WakeLock wl) { in doTestWakeLock() argument
[all …]
/frameworks/base/services/java/com/android/server/
DPowerManagerService.java815 void noteStartWakeLocked(WakeLock wl, WorkSource ws) { in noteStartWakeLocked() argument
816 if (wl.monitorType >= 0) { in noteStartWakeLocked()
820 mBatteryStats.noteStartWakelockFromSource(ws, wl.pid, wl.tag, in noteStartWakeLocked()
821 wl.monitorType); in noteStartWakeLocked()
823 mBatteryStats.noteStartWakelock(wl.uid, wl.pid, wl.tag, wl.monitorType); in noteStartWakeLocked()
833 void noteStopWakeLocked(WakeLock wl, WorkSource ws) { in noteStopWakeLocked() argument
834 if (wl.monitorType >= 0) { in noteStopWakeLocked()
838 mBatteryStats.noteStopWakelockFromSource(ws, wl.pid, wl.tag, in noteStopWakeLocked()
839 wl.monitorType); in noteStopWakeLocked()
841 mBatteryStats.noteStopWakelock(wl.uid, wl.pid, wl.tag, wl.monitorType); in noteStopWakeLocked()
[all …]
DWifiService.java1406 WifiLock wl = mLocks.mList.get(index); in updateWifiLockWorkSource() local
1407 noteReleaseWifiLock(wl); in updateWifiLockWorkSource()
1408 wl.mWorkSource = ws != null ? new WorkSource(ws) : new WorkSource(uid); in updateWifiLockWorkSource()
1409 noteAcquireWifiLock(wl); in updateWifiLockWorkSource()
/frameworks/base/core/java/android/os/
DBatteryStats.java1236 Uid.Wakelock wl = ent.getValue(); in dumpCheckinLocked() local
1238 Timer fullWakeTimer = wl.getWakeTime(WAKE_TYPE_FULL); in dumpCheckinLocked()
1243 Timer partialWakeTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpCheckinLocked()
1357 Uid.Wakelock wl = ent.getValue(); in dumpCheckinLocked() local
1360 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_FULL), in dumpCheckinLocked()
1362 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_PARTIAL), in dumpCheckinLocked()
1364 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_WINDOW), in dumpCheckinLocked()
1548 Uid.Wakelock wl = ent.getValue(); in dumpLocked() local
1550 Timer fullWakeTimer = wl.getWakeTime(WAKE_TYPE_FULL); in dumpLocked()
1556 Timer partialWakeTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpLocked()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java41 private WakeLock wl; field in ConnectivityManagerMobileTest
59 wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "CMWakeLock"); in setUp()
60 wl.acquire(); in setUp()
84 wl.release(); in tearDown()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java93 PowerManager.WakeLock wl =
95 wl.acquire();
107 wl.release();
859 PowerManager.WakeLock wl
862 wl.acquire();
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java2731 Wakelock wl = wakelockEntry.getValue(); in reset() local
2732 if (wl.reset()) { in reset()
3909 Wakelock wl = mWakelockStats.get(name); in getWakeTimerLocked() local
3910 if (wl == null) { in getWakeTimerLocked()
3915 wl = mWakelockStats.get(name); in getWakeTimerLocked()
3917 if (wl == null) { in getWakeTimerLocked()
3918 wl = new Wakelock(); in getWakeTimerLocked()
3919 mWakelockStats.put(name, wl); in getWakeTimerLocked()
3925 t = wl.mTimerPartial; in getWakeTimerLocked()
3929 wl.mTimerPartial = t; in getWakeTimerLocked()
[all …]