/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 53 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/support/v4/java/android/support/v4/content/ |
D | WakefulBroadcastReceiver.java | 95 PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startWakefulService() local 97 wl.setReferenceCounted(false); in startWakefulService() 98 wl.acquire(60*1000); in startWakefulService() 99 mActiveWakeLocks.put(id, wl); in startWakefulService() 118 PowerManager.WakeLock wl = mActiveWakeLocks.get(id); in completeWakefulIntent() local 119 if (wl != null) { in completeWakefulIntent() 120 wl.release(); in completeWakefulIntent()
|
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
D | WakeUpCall.java | 108 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK | in screenOn() local 110 wl.acquire(500); in screenOn()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 81 int responseQueueSize, String logTag, int maxLogSize, PowerManager.WakeLock wl) { in NativeDaemonConnector() argument 82 this(callbacks, socket, responseQueueSize, logTag, maxLogSize, wl, in NativeDaemonConnector() 87 int responseQueueSize, String logTag, int maxLogSize, PowerManager.WakeLock wl, in NativeDaemonConnector() argument 92 mWakeLock = wl; in NativeDaemonConnector()
|
D | NetworkManagementService.java | 233 PowerManager.WakeLock wl = null; //pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, NETD_TAG); in NetworkManagementService() local 236 new NetdCallbackReceiver(), socket, 10, NETD_TAG, 160, wl, in NetworkManagementService()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 91 PowerManager.WakeLock wl = 93 wl.acquire(); 105 wl.release(); 863 PowerManager.WakeLock wl 866 wl.acquire();
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 1930 Uid.Wakelock wl = ent.getValue(); in dumpCheckinLocked() local 1932 Timer fullWakeTimer = wl.getWakeTime(WAKE_TYPE_FULL); in dumpCheckinLocked() 1938 Timer partialWakeTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpCheckinLocked() 2197 Uid.Wakelock wl = ent.getValue(); in dumpCheckinLocked() local 2200 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_FULL), in dumpCheckinLocked() 2202 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_PARTIAL), in dumpCheckinLocked() 2204 linePrefix = printWakeLockCheckin(sb, wl.getWakeTime(WAKE_TYPE_WINDOW), in dumpCheckinLocked() 2506 Uid.Wakelock wl = ent.getValue(); in dumpLocked() local 2508 Timer fullWakeTimer = wl.getWakeTime(WAKE_TYPE_FULL); in dumpLocked() 2514 Timer partialWakeTimer = wl.getWakeTime(WAKE_TYPE_PARTIAL); in dumpLocked() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 1628 WifiLock wl = mLocks.mList.get(index); in updateWifiLockWorkSource() local 1629 noteReleaseWifiLock(wl); in updateWifiLockWorkSource() 1630 wl.mWorkSource = ws != null ? new WorkSource(ws) : new WorkSource(uid); in updateWifiLockWorkSource() 1631 noteAcquireWifiLock(wl); in updateWifiLockWorkSource()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 4803 Wakelock wl = wakeStats.valueAt(iw); in reset() local 4804 if (wl.reset()) { in reset() 6258 Wakelock wl = new Wakelock(); in readWakeSummaryFromParcelLocked() local 6259 mWakelockStats.add(wlName, wl); in readWakeSummaryFromParcelLocked() 6261 wl.getStopwatchTimer(WAKE_TYPE_FULL).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked() 6264 wl.getStopwatchTimer(WAKE_TYPE_PARTIAL).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked() 6267 wl.getStopwatchTimer(WAKE_TYPE_WINDOW).readSummaryFromParcelLocked(in); in readWakeSummaryFromParcelLocked() 6323 Wakelock wl = mWakelockStats.startObject(name); in noteStartWakeLocked() local 6324 if (wl != null) { in noteStartWakeLocked() 6325 wl.getStopwatchTimer(type).startRunningLocked(elapsedRealtimeMs); in noteStartWakeLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 2515 for (WakeLock wl : mWakeLocks) { in dumpInternal() 2516 pw.println(" " + wl); in dumpInternal()
|