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.java71 private PowerManager.WakeLock mPartialWakeLock; field in CdmaConnection
653 if (mPartialWakeLock.isHeld()) { in finalize()
761 synchronized (mPartialWakeLock) { in setPostDialState()
762 if (mPartialWakeLock.isHeld()) { in setPostDialState()
780 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
785 mPartialWakeLock.acquire(); in acquireWakeLock()
789 synchronized (mPartialWakeLock) { in releaseWakeLock()
790 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
792 mPartialWakeLock.release(); in releaseWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmConnection.java73 private PowerManager.WakeLock mPartialWakeLock; field in GsmConnection
602 if (mPartialWakeLock.isHeld()) { in finalize()
724 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
730 mPartialWakeLock.acquire(); in acquireWakeLock()
735 synchronized(mPartialWakeLock) { in releaseWakeLock()
736 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
738 mPartialWakeLock.release(); in releaseWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java79 private PowerManager.WakeLock mPartialWakeLock; field in ImsPhoneConnection
509 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
515 mPartialWakeLock.acquire(); in acquireWakeLock()
520 synchronized(mPartialWakeLock) { in releaseWakeLock()
521 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
523 mPartialWakeLock.release(); in releaseWakeLock()