Home
last modified time | relevance | path

Searched refs:mPartialWakeLock (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java42 PowerManager.WakeLock mPartialWakeLock; field in BatteryWaster
68 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BatteryWaster"); in onCreate()
69 mPartialWakeLock.setReferenceCounted(false); in onCreate()
88 if (mPartialWakeLock.isHeld()) { in onDestroy()
89 mPartialWakeLock.release(); in onDestroy()
150 if (!mPartialWakeLock.isHeld()) { in updateWakeLock()
151 mPartialWakeLock.acquire(); in updateWakeLock()
154 if (mPartialWakeLock.isHeld()) { in updateWakeLock()
155 mPartialWakeLock.release(); in updateWakeLock()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfActivity.java61 PowerManager.WakeLock mPartialWakeLock; field in FrameworkPerfActivity
206 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Scheduler"); in onCreate()
207 mPartialWakeLock.setReferenceCounted(false); in onCreate()
246 if (mPartialWakeLock.isHeld()) { in onDestroy()
247 mPartialWakeLock.release(); in onDestroy()
453 if (!mPartialWakeLock.isHeld()) { in updateWakeLock()
454 mPartialWakeLock.acquire(); in updateWakeLock()
458 if (mPartialWakeLock.isHeld()) { in updateWakeLock()
459 mPartialWakeLock.release(); in updateWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaConnection.java70 private PowerManager.WakeLock mPartialWakeLock; field in CdmaConnection
649 if (mPartialWakeLock.isHeld()) { in finalize()
757 synchronized (mPartialWakeLock) { in setPostDialState()
758 if (mPartialWakeLock.isHeld()) { in setPostDialState()
776 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
781 mPartialWakeLock.acquire(); in acquireWakeLock()
785 synchronized (mPartialWakeLock) { in releaseWakeLock()
786 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
788 mPartialWakeLock.release(); in releaseWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmConnection.java72 private PowerManager.WakeLock mPartialWakeLock; field in GsmConnection
599 if (mPartialWakeLock.isHeld()) { in finalize()
721 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
727 mPartialWakeLock.acquire(); in acquireWakeLock()
732 synchronized(mPartialWakeLock) { in releaseWakeLock()
733 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
735 mPartialWakeLock.release(); in releaseWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java78 private PowerManager.WakeLock mPartialWakeLock; field in ImsPhoneConnection
499 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
505 mPartialWakeLock.acquire(); in acquireWakeLock()
510 synchronized(mPartialWakeLock) { in releaseWakeLock()
511 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
513 mPartialWakeLock.release(); in releaseWakeLock()