Home
last modified time | relevance | path

Searched refs:mPartialWakeLock (Results 1 – 4 of 4) 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.java60 PowerManager.WakeLock mPartialWakeLock; field in FrameworkPerfActivity
204 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Scheduler"); in onCreate()
205 mPartialWakeLock.setReferenceCounted(false); in onCreate()
244 if (mPartialWakeLock.isHeld()) { in onDestroy()
245 mPartialWakeLock.release(); in onDestroy()
451 if (!mPartialWakeLock.isHeld()) { in updateWakeLock()
452 mPartialWakeLock.acquire(); in updateWakeLock()
456 if (mPartialWakeLock.isHeld()) { in updateWakeLock()
457 mPartialWakeLock.release(); in updateWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaConnection.java85 private PowerManager.WakeLock mPartialWakeLock; field in CdmaConnection
677 if (mPartialWakeLock.isHeld()) { in finalize()
782 synchronized (mPartialWakeLock) { in setPostDialState()
783 if (mPartialWakeLock.isHeld()) { in setPostDialState()
800 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
805 mPartialWakeLock.acquire(); in acquireWakeLock()
809 synchronized (mPartialWakeLock) { in releaseWakeLock()
810 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
812 mPartialWakeLock.release(); in releaseWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmConnection.java84 private PowerManager.WakeLock mPartialWakeLock; field in GsmConnection
612 if (mPartialWakeLock.isHeld()) { in finalize()
729 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
735 mPartialWakeLock.acquire(); in acquireWakeLock()
740 synchronized(mPartialWakeLock) { in releaseWakeLock()
741 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
743 mPartialWakeLock.release(); in releaseWakeLock()