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

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DInCallWakeLockControllerTest.java46 @Mock PowerManager.WakeLock mWakeLock; field in class:InCallWakeLockControllerTest
59 .thenReturn(mWakeLock);
74 verify(mWakeLock).acquire();
79 when(mWakeLock.isHeld()).thenReturn(false);
82 verify(mWakeLock, never()).acquire();
88 verify(mWakeLock).acquire();
93 when(mWakeLock.isHeld()).thenReturn(false);
96 verify(mWakeLock, never()).acquire();
101 when(mWakeLock.isHeld()).thenReturn(true);
104 verify(mWakeLock)
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DWakeLockHelper.java41 private PowerManager.WakeLock mWakeLock; field in class:WakeLockHelper
53 if (mWakeLock == null) {
59 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mWakeLockId);
65 mWakeLock.acquire();
74 return (respectWakeLock && mWakeLock.isHeld());
92 + " opcode: " + opcode + " sWakeLock: " + mWakeLock + " isHeld: "
93 + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld()));
110 mWakeLock.release();
113 + intent.getAction() + " opcode: " + opcode + " sWakeLock: " + mWakeLock
[all...]
H A DNotificationPlayer.java243 private PowerManager.WakeLock mWakeLock; field in class:NotificationPlayer
340 if (mWakeLock != null || mThread != null) {
343 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock
348 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
352 if (mWakeLock != null) {
353 mWakeLock.acquire();
358 if (mWakeLock != null) {
359 mWakeLock.release();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DWakeLockHoldingProgressListener.java28 private PowerManager.WakeLock mWakeLock; field in class:WakeLockHoldingProgressListener
38 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, label);
43 mWakeLock.release();
48 mWakeLock.acquire();
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarReceiver.java40 private PowerManager.WakeLock mWakeLock; field in class:CalendarReceiver
44 if (mWakeLock == null) {
46 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider");
47 mWakeLock.setReferenceCounted(true);
49 mWakeLock.acquire();
61 mWakeLock.release();
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
H A DIntegrationTestUtils.java51 @GuardedBy("mLock") private PowerManager.WakeLock mWakeLock; field in class:IntegrationTestUtils
112 Preconditions.checkState(mWakeLock == null, "mWakeLock was already held");
113 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
116 mWakeLock.acquire();
130 if (mWakeLock != null) {
131 mWakeLock.release();
132 mWakeLock = null;
/packages/apps/Email/provider_src/com/android/email/
H A DEmailConnectivityManager.java60 private final WakeLock mWakeLock; field in class:EmailConnectivityManager
76 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name);
176 mWakeLock.acquire();
198 mWakeLock.release();
205 mWakeLock.acquire();
211 if (mWakeLock.isHeld()) {
212 mWakeLock.release();
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DImportTask.java56 private PowerManager.WakeLock mWakeLock; field in class:ImportTask
64 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKELOCK_LABEL);
73 mWakeLock.acquire();
102 mWakeLock.release();
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapService.java150 private PowerManager.WakeLock mWakeLock = null; field in class:BluetoothPbapService
462 if (mWakeLock != null) {
463 mWakeLock.release();
464 mWakeLock = null;
486 if (mWakeLock == null) {
488 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
490 mWakeLock.setReferenceCounted(false);
491 mWakeLock.acquire();
527 if (mWakeLock != null) {
528 mWakeLock
[all...]
/packages/services/Telephony/src/com/android/phone/
H A DCallerInfoCache.java90 private PowerManager.WakeLock mWakeLock; field in class:CallerInfoCache.CacheAsyncTask
100 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
101 mWakeLock.acquire();
127 if (mWakeLock != null && mWakeLock.isHeld()) {
128 mWakeLock.release();
H A DPhoneGlobals.java186 private PowerManager.WakeLock mWakeLock; field in class:PhoneGlobals
361 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG);
630 if (mWakeLock.isHeld()) {
631 mWakeLock.release();
637 mWakeLock.acquire();
645 if (mWakeLock.isHeld()) {
646 mWakeLock.release();
/packages/apps/Camera2/src/com/android/camera/processing/
H A DProcessingService.java90 private WakeLock mWakeLock; field in class:ProcessingService
109 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG.toString());
110 mWakeLock.acquire();
127 if (mWakeLock.isHeld()) {
128 mWakeLock.release();
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWriteWifiConfigToNfcDialog.java62 private final PowerManager.WakeLock mWakeLock; field in class:WriteWifiConfigToNfcDialog
83 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
95 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
135 mWakeLock.acquire();
227 if (mWakeLock.isHeld()) {
228 mWakeLock.release();
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
H A DSapService.java78 private PowerManager.WakeLock mWakeLock = null; field in class:SapService
234 if (mWakeLock != null) {
237 mWakeLock.release();
238 mWakeLock = null;
250 if (mWakeLock == null) {
252 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
254 mWakeLock.setReferenceCounted(false);
255 mWakeLock.acquire();
288 if (mWakeLock != null) {
289 mWakeLock
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java107 private PowerManager.WakeLock mWakeLock = null; field in class:BluetoothMapService
182 if (mWakeLock != null) {
183 mWakeLock.release();
185 mWakeLock = null;
218 if (mWakeLock == null) {
220 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
222 mWakeLock.setReferenceCounted(false);
223 mWakeLock.acquire();
307 if (mWakeLock != null && lastMasInst) {
310 mWakeLock
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaScannerService.java55 private PowerManager.WakeLock mWakeLock; field in class:MediaScannerService
90 mWakeLock.acquire();
114 mWakeLock.release();
122 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
/packages/apps/Settings/src/com/android/settings/
H A DCryptKeeper.java123 PowerManager.WakeLock mWakeLock; field in class:CryptKeeper
382 if (mWakeLock.isHeld()) {
386 mWakeLock.release();
436 mWakeLock = retained.wakelock;
544 * mWakeLock so the subsequent call to onDestroy does not release it.
548 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock);
550 mWakeLock = null;
558 if (mWakeLock != null) {
560 mWakeLock.release();
561 mWakeLock
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppObexServerSession.java96 private WakeLock mWakeLock; field in class:BluetoothOppObexServerSession
106 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP
300 mWakeLock.acquire();
311 if (mWakeLock.isHeld()) {
314 mWakeLock.release();
591 if (mWakeLock.isHeld()) {
592 mWakeLock.release();
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
H A DImportVCardActivity.java171 private PowerManager.WakeLock mWakeLock; field in class:ImportVCardActivity.VCardCacheThread
183 mWakeLock = powerManager.newWakeLock(
191 if (mWakeLock != null && mWakeLock.isHeld()) {
193 mWakeLock.release();
205 mWakeLock.acquire();
329 mWakeLock.release();
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchFragment.java68 private WakeLock mWakeLock; field in class:StopwatchFragment
819 if (mWakeLock == null) {
822 mWakeLock = pm.newWakeLock(
824 mWakeLock.setReferenceCounted(false);
826 mWakeLock.acquire();
830 if (mWakeLock != null && mWakeLock.isHeld()) {
831 mWakeLock.release();
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpSinkStateMachine.java80 private final WakeLock mWakeLock; field in class:A2dpSinkStateMachine
136 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BluetoothA2dpSinkService");
686 mWakeLock.acquire();
778 mWakeLock.release();
H A DA2dpStateMachine.java77 private final WakeLock mWakeLock; field in class:A2dpStateMachine
132 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BluetoothA2dpService");
718 mWakeLock.acquire();
787 mWakeLock.release();
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DAdapterService.java188 private PowerManager.WakeLock mWakeLock; field in class:AdapterService
522 if (mWakeLock != null) {
523 mWakeLock.release();
524 mWakeLock = null;
1974 if (mWakeLock != null) {
1981 if (mWakeLock.isHeld()) {
1987 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, lockName);
1988 mWakeLock.acquire();
1998 if (mWakeLock == null) {
2003 mWakeLock
[all...]
/packages/apps/FMRadio/src/com/android/fmradio/
H A DFmService.java181 private WakeLock mWakeLock = null; field in class:FmService
595 if (!mWakeLock.isHeld()) {
596 mWakeLock.acquire();
634 if (!mWakeLock.isHeld()) {
635 mWakeLock.acquire();
685 if (mWakeLock.isHeld()) {
686 mWakeLock.release();
699 if (mWakeLock.isHeld()) {
700 mWakeLock.release();
1246 mWakeLock
[all...]
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
H A DSoundRecorder.java211 WakeLock mWakeLock; field in class:SoundRecorder
278 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK,
825 mWakeLock.acquire(); // we don't want to go to sleep while recording or playing
827 if (mWakeLock.isHeld())
828 mWakeLock.release();

Completed in 2746 milliseconds

12