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/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaConnection.java78 private PowerManager.WakeLock mPartialWakeLock; field in GsmCdmaConnection
901 if (mPartialWakeLock != null && mPartialWakeLock.isHeld()) { in finalize()
1020 synchronized (mPartialWakeLock) { in setPostDialState()
1021 if (mPartialWakeLock.isHeld()) { in setPostDialState()
1040 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
1045 if (mPartialWakeLock != null) { in acquireWakeLock()
1046 synchronized (mPartialWakeLock) { in acquireWakeLock()
1048 mPartialWakeLock.acquire(); in acquireWakeLock()
1054 if (mPartialWakeLock != null) { in releaseWakeLock()
1055 synchronized (mPartialWakeLock) { in releaseWakeLock()
[all …]
/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/imsphone/
DImsPhoneConnection.java94 private PowerManager.WakeLock mPartialWakeLock; field in ImsPhoneConnection
707 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in createWakeLock()
714 mPartialWakeLock.acquire(); in acquireWakeLock()
719 if (mPartialWakeLock != null) { in releaseWakeLock()
720 synchronized (mPartialWakeLock) { in releaseWakeLock()
721 if (mPartialWakeLock.isHeld()) { in releaseWakeLock()
723 mPartialWakeLock.release(); in releaseWakeLock()