Home
last modified time | relevance | path

Searched refs:wakeLock (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java855 WakeLock wakeLock; in acquireWakeLockInternal() local
859 wakeLock = mWakeLocks.get(index); in acquireWakeLockInternal()
860 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) { in acquireWakeLockInternal()
862 notifyWakeLockChangingLocked(wakeLock, flags, tag, packageName, in acquireWakeLockInternal()
864 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid); in acquireWakeLockInternal()
868 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid); in acquireWakeLockInternal()
870 lock.linkToDeath(wakeLock, 0); in acquireWakeLockInternal()
874 mWakeLocks.add(wakeLock); in acquireWakeLockInternal()
875 setWakeLockDisabledStateLocked(wakeLock); in acquireWakeLockInternal()
879 applyWakeLockFlagsOnAcquireLocked(wakeLock, uid); in acquireWakeLockInternal()
[all …]
/frameworks/av/include/media/stagefright/foundation/
DAWakeLock.h46 PMDeathRecipient(AWakeLock *wakeLock) : mWakeLock(wakeLock) {} in PMDeathRecipient() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java388 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob() local
390 wakeLock.acquire(); in handleCancelPrintJob()
410 wakeLock.release(); in handleCancelPrintJob()
427 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob() local
429 wakeLock.acquire(); in handleRestartPrintJob()
447 wakeLock.release(); in handleRestartPrintJob()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java753 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()
755 wakeLock.acquire(); in addLockoutResetCallback()
762 wakeLock.release(); in addLockoutResetCallback()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java263 PowerManager.WakeLock wakeLock = in create() local
267 wakeLock, NtpTrustedTime.getInstance(context), TelephonyManager.getDefault(), in create()
281 AlarmManager alarmManager, PowerManager.WakeLock wakeLock, TrustedTime time, in NetworkStatsService() argument
290 mWakeLock = checkNotNull(wakeLock, "missing WakeLock"); in NetworkStatsService()
/frameworks/base/docs/html/training/scheduling/
Dwakelock.jd140 WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
142 wakeLock.acquire();</pre>
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2432 PowerManager.WakeLock wakeLock = mWakeLocks.get(wakeLockKey); in getSyncWakeLock() local
2433 if (wakeLock == null) { in getSyncWakeLock()
2435 wakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in getSyncWakeLock()
2436 wakeLock.setReferenceCounted(false); in getSyncWakeLock()
2437 mWakeLocks.put(wakeLockKey, wakeLock); in getSyncWakeLock()
2439 return wakeLock; in getSyncWakeLock()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java172 PowerManager.WakeLock wakeLock = in setUp() local
176 mServiceContext, mNetManager, alarmManager, wakeLock, mTime, in setUp()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java132 SipWakeupTimer timer, SipWakeLock wakeLock) throws SipException { in SipSessionGroup() argument
136 mWakeLock = wakeLock; in SipSessionGroup()