/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/ |
D | WakeLockManagerTest.java | 47 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 …]
|
D | TextSessionTest.java | 118 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()
|
D | VideoSessionTest.java | 132 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()
|
D | AudioSessionTest.java | 131 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/ |
D | WakeLockHelper.java | 72 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/ |
D | TelecomWakeLock.java | 40 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/ |
D | WakeLockInterface.java | 95 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/ |
D | InCallWakeLockControllerTest.java | 72 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()
|
D | ProximitySensorManagerTest.java | 72 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/ |
D | PseudoProximityWakeLock.java | 38 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()
|
D | SystemProximityWakeLock.java | 58 public boolean isHeld() { in isHeld() method in SystemProximityWakeLock 59 return wakeLock.isHeld(); in isHeld()
|
D | AnswerProximityWakeLock.java | 34 boolean isHeld(); in isHeld() method
|
D | AnswerProximitySensor.java | 114 if (answerProximityWakeLock.isHeld()) { in releaseProximityWakeLock()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/ |
D | WakeLockManager.java | 89 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/ |
D | WakeLockStateMachine.java | 91 if (mWakeLock.isHeld()) { in releaseWakeLock() 95 if (mWakeLock.isHeld()) { in releaseWakeLock() 110 while (mWakeLock.isHeld()) { in onQuitting()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ProximitySensor.java | 180 if (!proximityWakeLock.isHeld()) { in turnOnProximitySensor() 191 if (proximityWakeLock.isHeld()) { in turnOffProximitySensor()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | BuiltInPrintService.java | 278 if (!mWifiLock.isHeld()) { in lockWifi() 285 if (mWifiLock.isHeld()) { in unlockWifi()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | FileOperationService.java | 325 if (!mWakeLock.isHeld()) { in deleteJob() 361 return mWakeLock != null && mWakeLock.isHeld(); in holdsWakeLock()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | PMCMainActivity.java | 345 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/ |
D | ApfIntegrationTest.kt | 125 if (!wakeLock.isHeld()) wakeLock.acquire() in turnScreenOff() 132 if (wakeLock.isHeld()) wakeLock.release() in turnScreenOn()
|
/packages/apps/Camera2/src/com/android/camera/processing/ |
D | ProcessingService.java | 127 if (mWakeLock.isHeld()) { in onDestroy()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsService.java | 205 wakeLockHeld = sWakeLock != null && sWakeLock.isHeld(); in verifyWakeLockNotHeld()
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 230 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/ |
D | IkeLocalRequestScheduler.java | 182 if (mWakeLock != null && mWakeLock.isHeld()) { in acquireWakeLock()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 257 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()
|