Searched refs:mWakeLock (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/voip/java/com/android/server/sip/
H A DSipWakeLock.java28 private PowerManager.WakeLock mWakeLock; field in class:SipWakeLock
53 if (mWakeLock == null) {
54 mWakeLock = mPowerManager.newWakeLock(
57 if (!mWakeLock.isHeld()) mWakeLock.acquire();
63 if ((mWakeLock != null) && mHolders.isEmpty()
64 && mWakeLock.isHeld()) {
65 mWakeLock.release();
H A DSipSessionGroup.java123 private SipWakeLock mWakeLock; field in class:SipSessionGroup
143 mWakeLock = wakeLock;
341 mWakeLock.acquire(WAKE_LOCK_HOLDING_TIME);
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java133 private PowerManager.WakeLock mWakeLock; field in class:AsyncPlayer
220 if (mWakeLock != null || mThread != null) {
223 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock
227 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
231 if (mWakeLock != null) {
232 mWakeLock.acquire();
237 if (mWakeLock != null) {
238 mWakeLock.release();
H A DMediaPlayer.java564 private PowerManager.WakeLock mWakeLock = null; field in class:MediaPlayer
1075 if (mWakeLock != null) {
1076 if (mWakeLock.isHeld()) {
1078 mWakeLock.release();
1080 mWakeLock = null;
1084 mWakeLock = pm.newWakeLock(mode|PowerManager.ON_AFTER_RELEASE, MediaPlayer.class.getName());
1085 mWakeLock.setReferenceCounted(false);
1087 mWakeLock.acquire();
1112 if (mWakeLock != null) {
1113 if (awake && !mWakeLock
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsStorageMonitor.java53 private PowerManager.WakeLock mWakeLock; field in class:SmsStorageMonitor
130 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SmsStorageMonitor");
131 mWakeLock.setReferenceCounted(true);
141 mWakeLock.acquire(WAKE_LOCK_TIMEOUT);
H A DSMSDispatcher.java180 private PowerManager.WakeLock mWakeLock; field in class:SMSDispatcher
378 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SMSDispatcher");
379 mWakeLock.setReferenceCounted(true);
393 mWakeLock.acquire(WAKE_LOCK_TIMEOUT);
409 mWakeLock.acquire(WAKE_LOCK_TIMEOUT);
1300 mWakeLock.acquire(WAKE_LOCK_TIMEOUT);
H A DRIL.java222 WakeLock mWakeLock; field in class:RIL
384 synchronized (mWakeLock) {
385 if (mWakeLock.isHeld()) {
429 mWakeLock.release();
623 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
624 mWakeLock.setReferenceCounted(false);
2086 synchronized (mWakeLock) {
2087 mWakeLock.acquire();
2098 synchronized (mWakeLock) {
2099 if (mWakeLock
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DNotificationPlayer.java231 private PowerManager.WakeLock mWakeLock; field in class:NotificationPlayer
319 if (mWakeLock != null || mThread != null) {
322 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock
326 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
330 if (mWakeLock != null) {
331 mWakeLock.acquire();
336 if (mWakeLock != null) {
337 mWakeLock.release();
/frameworks/base/services/java/com/android/server/
H A DDockObserver.java59 private final PowerManager.WakeLock mWakeLock; field in class:DockObserver
65 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
127 mWakeLock.acquire();
192 mWakeLock.release();
H A DVibratorService.java56 private final PowerManager.WakeLock mWakeLock; field in class:VibratorService
131 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*vibrator*");
132 mWakeLock.setReferenceCounted(true);
449 mWakeLock.setWorkSource(mTmpWorkSource);
450 mWakeLock.acquire();
507 mWakeLock.release();
H A DWiredAccessoryManager.java75 private final WakeLock mWakeLock; // held while there is a pending route change field in class:WiredAccessoryManager
89 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WiredAccessoryManager");
90 mWakeLock.setReferenceCounted(false);
204 mWakeLock.acquire();
219 mWakeLock.release();
H A DUiModeManagerService.java91 private final PowerManager.WakeLock mWakeLock; field in class:UiModeManagerService
165 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG);
434 if (keepScreenOn != mWakeLock.isHeld()) {
436 mWakeLock.acquire();
438 mWakeLock.release();
H A DAlarmManagerService.java93 private PowerManager.WakeLock mWakeLock; field in class:AlarmManagerService
131 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
709 mWakeLock.acquire();
746 mWakeLock.setWorkSource(new WorkSource(uid));
753 mWakeLock.setWorkSource(null);
940 mWakeLock.release();
949 mWakeLock.setWorkSource(null);
H A DLocationManagerService.java133 private PowerManager.WakeLock mWakeLock; field in class:LocationManagerService
142 // --- fields below are protected by mWakeLock ---
212 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY);
1771 synchronized (mWakeLock) {
1774 mWakeLock.acquire();
1786 synchronized (mWakeLock) {
1790 if (mWakeLock.isHeld()) {
1791 mWakeLock.release();
H A DDevicePolicyManagerService.java107 final PowerManager.WakeLock mWakeLock; field in class:DevicePolicyManagerService
498 mWakeLock = ((PowerManager)context.getSystemService(Context.POWER_SERVICE))
1858 mWakeLock.acquire(10000);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaFrameworkTest.java69 private PowerManager.WakeLock mWakeLock = null; field in class:MediaFrameworkTest
97 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest");
98 mWakeLock.acquire();
104 mWakeLock.release();
/frameworks/base/core/java/com/android/internal/os/storage/
H A DExternalStorageFormatter.java47 private PowerManager.WakeLock mWakeLock; field in class:ExternalStorageFormatter
73 mWakeLock = ((PowerManager)getSystemService(Context.POWER_SERVICE))
75 mWakeLock.acquire();
112 mWakeLock.release();
/frameworks/base/services/java/com/android/server/location/
H A DGeofenceManager.java71 private final PowerManager.WakeLock mWakeLock; field in class:GeofenceManager
111 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
353 mWakeLock.acquire();
359 mWakeLock.release();
361 // ...otherwise, mWakeLock.release() gets called by onSendFinished()
395 mWakeLock.release();
H A DGpsLocationProvider.java298 private final PowerManager.WakeLock mWakeLock; field in class:GpsLocationProvider
426 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY);
427 mWakeLock.setReferenceCounted(true);
598 mWakeLock.acquire();
638 mWakeLock.release();
656 mWakeLock.acquire();
678 mWakeLock.release();
1487 mWakeLock.acquire();
1534 mWakeLock.release();
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsService.java164 private final PowerManager.WakeLock mWakeLock; field in class:NetworkStatsService
271 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
757 mWakeLock.acquire();
761 mWakeLock.release();
777 mWakeLock.acquire();
781 mWakeLock.release();
849 mWakeLock.acquire();
853 mWakeLock.release();
943 mWakeLock.acquire();
953 mWakeLock
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/
H A DKeyguardViewMediator.java168 private PowerManager.WakeLock mWakeLock; field in class:KeyguardViewMediator
362 mWakeLock = mPM.newWakeLock(
364 mWakeLock.setReferenceCounted(false);
916 mWakeLock.acquire();
1034 mWakeLock.release();
1070 mWakeLock.release();
1250 if (!mWakeLock.isHeld()) {
1251 Log.w(TAG, "mWakeLock not held in mKeyguardViewManager.wakeWhenReadyTq");
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCDMAPhone.java114 WakeLock mWakeLock; field in class:CDMAPhone
185 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,LOG_TAG);
269 if (mWakeLock.isHeld()) {
270 Log.e(LOG_TAG, "UNEXPECTED; mWakeLock is held when finalizing.");
271 mWakeLock.release();
860 if (mWakeLock.isHeld()) {
861 mWakeLock.release();
885 mWakeLock.acquire();
1528 pw.println(" mWakeLock=" + mWakeLock);
[all...]
H A DCdmaServiceStateTracker.java126 private PowerManager.WakeLock mWakeLock; field in class:CdmaServiceStateTracker
184 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG);
1366 mWakeLock.acquire();
1436 mWakeLock.release();
1743 pw.println(" mWakeLock=" + mWakeLock);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java148 private PowerManager.WakeLock mWakeLock; field in class:GsmServiceStateTracker
208 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG);
1468 mWakeLock.acquire();
1516 mWakeLock.release();
1746 pw.println(" mWakeLock=" + mWakeLock);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiStateMachine.java195 private PowerManager.WakeLock mWakeLock; field in class:WifiStateMachine
685 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
1159 mWakeLock.setWorkSource(newSource);
2095 mWakeLock.acquire();
2121 mWakeLock.release();
2222 mWakeLock.acquire();
2252 mWakeLock.release();
2676 mWakeLock.acquire();
2678 mWakeLock.release();
2857 mWakeLock
[all...]

Completed in 199 milliseconds