Home
last modified time | relevance | path

Searched refs:isHeld (Results 1 – 25 of 40) sorted by relevance

12

/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/
DWakeLockManagerTest.java47 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testOneSession_MediaDirectionChanges()
52 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOneSession_MediaDirectionChanges()
57 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testOneSession_MediaDirectionChanges()
62 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOneSession_MediaDirectionChanges()
67 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testOneSession_MediaDirectionChanges()
72 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOneSession_MediaDirectionChanges()
77 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testOneSession_MediaDirectionChanges()
82 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOneSession_MediaDirectionChanges()
87 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testOneSession_MediaDirectionChanges()
91 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testOneSession_MediaDirectionChanges()
[all …]
DTextSessionTest.java118 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSession()
126 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testCloseSession()
136 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testModifySession()
222 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSessionSuccess()
234 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSessionFailure()
DVideoSessionTest.java132 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSession()
140 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testCloseSession()
150 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testModifySession()
311 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSessionSuccess()
323 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSessionFailure()
335 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testSessionClosed()
DAudioSessionTest.java131 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSession()
139 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testCloseSession()
149 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(true); in testModifySession()
379 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSessionSuccess()
391 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testOpenSessionFailure()
403 assertThat(mWakeLockManager.mWakeLock.isHeld()).isEqualTo(false); in testSessionClosed()
/packages/apps/Messaging/src/com/android/messaging/util/
DWakeLockHelper.java72 public boolean isHeld(final Intent intent) { in isHeld() method in WakeLockHelper
74 return (respectWakeLock && mWakeLock.isHeld()); in isHeld()
89 final boolean isHeld = (respectWakeLock && isHeld(intent)); in ensure()
90 if (!isHeld) { in ensure()
93 + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld())); in ensure()
114 + " isHeld: " + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld())); in release()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java40 public boolean isHeld() { in isHeld() method in TelecomWakeLock.WakeLockAdapter
41 return mWakeLock.isHeld(); in isHeld()
87 public boolean isHeld() { in isHeld() method in TelecomWakeLock
88 return mWakeLock != null && mWakeLock.isHeld(); in isHeld()
97 if (!isHeld()) { in acquire()
111 if (isHeld()) { in release()
/packages/services/Car/service/src/com/android/car/systeminterface/
DWakeLockInterface.java95 if (!partialWakeLock.isHeld()) { in switchToPartialWakeLock()
100 if (fullWakeLock.isHeld()) { in switchToPartialWakeLock()
117 if (!fullWakeLock.isHeld()) { in switchToFullWakeLock()
122 if (partialWakeLock.isHeld()) { in switchToFullWakeLock()
139 if (fullWakeLock.isHeld()) { in releaseAllWakeLocks()
142 if (partialWakeLock.isHeld()) { in releaseAllWakeLocks()
184 if (fullWakeLock.isHeld()) {
187 if (partialWakeLock.isHeld()) {
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallWakeLockControllerTest.java72 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testRingingCallAdded()
83 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testNonRingingCallAdded()
94 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testRingingCallTransition()
105 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testRingingCallRemoved()
116 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testWakeLockReleased()
127 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testAcquireWakeLockWhenHeld()
148 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testExternalCallStateChangeDuringRinging()
DProximitySensorManagerTest.java72 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testTurnOnProximityWithCallsActive()
83 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testTurnOnProximityWithNoCallsActive()
94 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testTurnOffProximityExplicitly()
105 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testCallRemovedFromCallsManagerCallsActive()
116 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testCallRemovedFromCallsManagerNoCallsActive()
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DPseudoProximityWakeLock.java38 private boolean isHeld; field in PseudoProximityWakeLock
50 isHeld = true; in acquire()
58 isHeld = false; in release()
64 public boolean isHeld() { in isHeld() method in PseudoProximityWakeLock
65 return isHeld; in isHeld()
DSystemProximityWakeLock.java58 public boolean isHeld() { in isHeld() method in SystemProximityWakeLock
59 return wakeLock.isHeld(); in isHeld()
DAnswerProximityWakeLock.java34 boolean isHeld(); in isHeld() method
DAnswerProximitySensor.java114 if (answerProximityWakeLock.isHeld()) { in releaseProximityWakeLock()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DWakeLockManager.java89 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseLock()
116 if (mWakeLock != null && mWakeLock.isHeld()) { in cleanup()
120 while (mWakeLock.isHeld()) { in cleanup()
144 if (mWakeLock.isHeld()) { in manageWakeLockOnMediaDirectionUpdate()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DWakeLockStateMachine.java91 if (mWakeLock.isHeld()) { in releaseWakeLock()
95 if (mWakeLock.isHeld()) { in releaseWakeLock()
110 while (mWakeLock.isHeld()) { in onQuitting()
/packages/apps/Dialer/java/com/android/incallui/
DProximitySensor.java180 if (!proximityWakeLock.isHeld()) { in turnOnProximitySensor()
191 if (proximityWakeLock.isHeld()) { in turnOffProximitySensor()
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java278 if (!mWifiLock.isHeld()) { in lockWifi()
285 if (mWifiLock.isHeld()) { in unlockWifi()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java325 if (!mWakeLock.isHeld()) { in deleteJob()
361 return mWakeLock != null && mWakeLock.isHeld(); in holdsWakeLock()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java345 if (mWakeLock != null && !mWakeLock.isHeld()) { in turnScreenOn()
352 if (mWakeLock != null && mWakeLock.isHeld()) { in turnScreenOff()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DApfIntegrationTest.kt125 if (!wakeLock.isHeld()) wakeLock.acquire() in turnScreenOff()
132 if (wakeLock.isHeld()) wakeLock.release() in turnScreenOn()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java127 if (mWakeLock.isHeld()) { in onDestroy()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsService.java205 wakeLockHeld = sWakeLock != null && sWakeLock.isHeld(); in verifyWakeLockNotHeld()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java230 if (null != lock && lock.isHeld()) lock.release(); in tearDown()
800 if (!mLock.isHeld()) mLock.acquire(); in turnScreenOff()
806 if (mLock.isHeld()) mLock.release(); in turnScreenOn()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeLocalRequestScheduler.java182 if (mWakeLock != null && mWakeLock.isHeld()) { in acquireWakeLock()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java257 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop()
1122 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognition()
1797 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in run()
1891 if (!mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognitionByHeadset()
1921 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stopVoiceRecognitionByHeadset()

12