/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BackgroundCallAudioTest.java | 87 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningAllow() 92 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllow() 113 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testHoldAfterAudioProcessingFromCallScreening() 118 Call call = mInCallCallbacks.getService().getLastCall(); in testHoldAfterAudioProcessingFromCallScreening() 144 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningDisallow() 149 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningDisallow() 172 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningMissed() 177 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningMissed() 198 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() 203 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() [all …]
|
D | ConnectionServiceTest.java | 90 assertNumCalls(mInCallCallbacks.getService(), 2); in testAddExistingConnection() 91 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection() 92 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection() 119 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountPackageName() 120 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection_invalidPhoneAccountPackageName() 121 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountPackageName() 142 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountAccountId() 143 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection_invalidPhoneAccountAccountId() 144 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountAccountId() 216 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_ACTIVE); in testConnectionServiceFocusGainedWithSameConnectionService() [all …]
|
D | CarModeInCallServiceTest.java | 83 mInCallCallbacks.resetLock(); in setUp() 393 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToCarModeAndBack() 401 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeAndBack() 402 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeAndBack() 448 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToCarModeMultiple() 456 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeMultiple() 457 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeMultiple() 516 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToAutomotiveProjectionAndBack() 524 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToAutomotiveProjectionAndBack() 525 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToAutomotiveProjectionAndBack() [all …]
|
D | ExtendedInCallServiceTest.java | 77 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAddNewOutgoingCallAndThenDisconnect() 91 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMuteAndUnmutePhone() 122 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwitchAudioRoutes() 182 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPlayAndStopDtmfTones() 215 final MockInCallService inCallService = mInCallCallbacks.getService(); in testHoldAndUnholdCall() 242 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAnswerIncomingCallAudioOnly() 262 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCall() 284 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndRingingCall() 306 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndCall() 335 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCallTwoCalls() [all …]
|
D | WiredHeadsetTest.java | 56 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallShortPress_acceptsCall() 73 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallLongPress_rejectsCall() 89 final MockInCallService incallService = mInCallCallbacks.getService(); in testInCallLongPress_togglesMute() 112 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCallShortPress_hangupCall()
|
D | VideoCallTest.java | 69 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeTwoWayVideoCall() 91 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeOneWayVideoCall() 109 final MockInCallService inCallService = mInCallCallbacks.getService(); in testUpgradeToVideo() 134 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyRequest() 163 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSendSessionModifyResponse() 188 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyResponse() 244 final MockInCallService inCallService = mInCallCallbacks.getService(); in testVideoCallDelayProvider() 276 final MockInCallService inCallService = mInCallCallbacks.getService(); in testChangeCamera() 301 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestCameraCapabilities() 329 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestDataUsage() [all …]
|
D | AdhocConferenceTest.java | 53 MockInCallService.setCallbacks(mInCallCallbacks); in setUp() 106 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddNewIncomingConference_onAnswer() 114 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onAnswer() 129 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddNewIncomingConference_onReject() 137 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onReject() 166 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testConferenceCallAddConferenceParticipants() 173 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testConferenceCallAddConferenceParticipants()
|
D | RttOperationsTest.java | 64 final MockInCallService inCallService = mInCallCallbacks.getService(); in testOutgoingRttCall() 78 final MockInCallService inCallService = mInCallCallbacks.getService(); in testIncomingRttCall() 91 final MockInCallService inCallService = mInCallCallbacks.getService(); in testLocalRttUpgradeAccepted() 115 final MockInCallService inCallService = mInCallCallbacks.getService(); in testLocalRttUpgradeRejected() 139 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRemoteRttUpgrade() 162 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRejectRemoteRttRequest() 186 final MockInCallService inCallService = mInCallCallbacks.getService(); in testLocalRttTermination() 207 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRemoteRttTermination()
|
D | HandoverTest.java | 93 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverSourceFailed() 117 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverDestinationFailed() 144 final Call call = mInCallCallbacks.getService().getLastCall(); in testOutgoingHandoverRequestValid() 187 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingHandoverRequestValid() 230 Call call = mInCallCallbacks.getService().getLastCall(); in startSourceCall()
|
D | ThirdPartyCallScreeningServiceTest.java | 332 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testNoPostCallActivityWhenAudioProcessing() 333 Call call = mInCallCallbacks.getService().getLastCall(); in testNoPostCallActivityWhenAudioProcessing() 337 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityWhenAudioProcessing() 353 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForOutgoingEmergencyCall() 372 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForIncomingEmergencyCall() 393 mInCallCallbacks.getService().disconnectAllCalls(); in placeOutgoingCall() 394 assertNumCalls(mInCallCallbacks.getService(), 0); in placeOutgoingCall() 432 mInCallCallbacks.getService().disconnectAllCalls(); in addIncoming() 433 assertNumCalls(mInCallCallbacks.getService(), 0); in addIncoming() 518 Call call = mInCallCallbacks.getService().getLastCall(); in addIncomingAndVerifyCallExtraForSilence() [all …]
|
D | AccessibilitySystemActionTest.java | 42 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCall_headsetHookAction_acceptsCall() 58 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCall_headsetHookAction_hangupCall()
|
D | BaseTelecomTestWithMockServices.java | 145 InCallServiceCallbacks mInCallCallbacks; field in BaseTelecomTestWithMockServices 489 mInCallCallbacks = new InCallServiceCallbacks() { in setupCallbacks() 621 MockInCallService.setCallbacks(mInCallCallbacks); in setupCallbacks() 709 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in addAndVerifyNewFailedIncomingCall() 711 if (mInCallCallbacks.getService() != null) { in addAndVerifyNewFailedIncomingCall() 712 currentCallCount = mInCallCallbacks.getService().getCallCount(); in addAndVerifyNewFailedIncomingCall() 734 mInCallCallbacks.getService().getCallCount()); in addAndVerifyNewFailedIncomingCall() 747 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in addNewIncomingCall() 749 if (mInCallCallbacks.getService() != null) { in addNewIncomingCall() 750 currentCallCount = mInCallCallbacks.getService().getCallCount(); in addNewIncomingCall() [all …]
|
D | OutgoingCallTest.java | 160 assertAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 172 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 176 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 197 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault() 201 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault() 346 mInCallCallbacks = new MockInCallService.InCallServiceCallbacks() { in testAccountSelectionAvailable() 361 MockInCallService.setCallbacks(mInCallCallbacks); in testAccountSelectionAvailable()
|
D | IncomingCallTest.java | 82 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatPassed() 95 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatFailed() 108 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatNotVerified() 302 assertTrue((mInCallCallbacks.getService().getLastCall().getDetails().getCallProperties() in testAddNewIncomingCallVoipState() 346 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerForAudioCall() 437 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerForVideoCallAnsweredAsAudio() 465 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerIntForVideoCallAnsweredAsVideo() 495 Call call = mInCallCallbacks.getService().getLastCall(); in setAndVerifyBusinessExtras()
|
D | CallRedirectionServiceTest.java | 128 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithRedirectedGateway() 149 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithPostDialDigits() 173 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithRedirectedPhoneAccount() 188 mInCallService = mInCallCallbacks.getService(); in testCancelCall() 199 mInCallService = mInCallCallbacks.getService(); in testPlaceCallUnmodified()
|
D | RemoteConferenceTest.java | 79 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceCreate() 106 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceSplit() 132 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceHoldAndUnhold() 168 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceMergeAndSwap() 204 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceDTMFTone() 643 mCall1 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls() 652 mCall2 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls() 683 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in setupRemoteConferenceCallbacksTest()
|
D | CallDiagnosticServiceTest.java | 126 MockInCallService inCallService = mInCallCallbacks.getService(); in testAddMultipleCalls() 185 mInCallCallbacks.getService().setAudioRoute(CallAudioState.ROUTE_SPEAKER); in testCallAudioRoute() 186 assertAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testCallAudioRoute() 380 MockInCallService inCallService = mInCallCallbacks.getService(); in setupCall()
|
D | CallStreamingTest.java | 223 if (mInCallCallbacks.getService() != null) { in cleanup() 224 mInCallCallbacks.getService().disconnectAllCalls(); in cleanup() 225 mInCallCallbacks.getService().clearCallList(); in cleanup()
|
D | SelfManagedConnectionServiceTest.java | 428 MockInCallService inCallService = mInCallCallbacks.getService(); in testDisallowOutgoingCallWhileOngoingManagedCallCanNotBeHeld() 476 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_DIALING); in testOutgoingCallRejectedByRemoteParty() 484 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_DISCONNECTED); in testOutgoingCallRejectedByRemoteParty() 554 final MockInCallService inCallService = mInCallCallbacks.getService(); in testVideoCallStateDowngradeToAudio() 754 mInCallCallbacks.resetLock(); in testSelfManagedAndSimBasedCallSwapping() 814 mInCallCallbacks.resetLock(); in testSelfManagedAndSimBasedCallHoldFailure() 1153 mInCallCallbacks.resetLock(); in testSelfManagedConnectionServiceLostFocus() 1256 mInCallCallbacks.resetLock(); in testDisconnectSelfManagedCallForEmergency() 1426 final MockInCallService inCallService = mInCallCallbacks.getService(); in testCallSwapBetweenTwoSelfManagedConnectionServices() 1560 MockInCallService inCallService = mInCallCallbacks.getService(); in testManagedCallWhileNoHoldCapabilitySelfMaganedCallActive()
|
D | MissedCallTest.java | 76 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMissedCall_NotifyDialer()
|
D | RemoteConnectionTest.java | 73 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionOutgoingCall() 112 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionOutgoingEmergencyCall() 149 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallAccept() 171 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallReject() 285 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionDTMFTone() 631 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionCallbacks_ConferenceableConnections() 1475 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionCallbacksTest() 1488 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionVideoCallbacksTest() 1516 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionVideoTest()
|
D | ThirdPartyInCallServiceAppOpsPermissionTest.java | 139 android.telecom.Call call = mInCallCallbacks.getService().getLastCall(); in testExtrasPropagation()
|
D | BaseRemoteTelecomTest.java | 159 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS()
|
D | TransactionalApisTest.java | 1443 if (mInCallCallbacks.getService() != null) { in cleanup() 1444 mInCallCallbacks.getService().disconnectAllCalls(); in cleanup() 1445 mInCallCallbacks.getService().clearCallList(); in cleanup()
|
D | SelfManagedConnectionTest.java | 513 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwapInCallServicesForSelfManagedCSCall()
|