/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConnectionServiceTest.java | 74 assertNumCalls(mInCallCallbacks.getService(), 2); in testAddExistingConnection() 75 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection() 76 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection() 103 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountPackageName() 104 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection_invalidPhoneAccountPackageName() 105 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountPackageName() 126 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountAccountId() 127 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection_invalidPhoneAccountAccountId() 128 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountAccountId() 200 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_ACTIVE); in testConnectionServiceFocusGainedWithSameConnectionService() [all …]
|
D | BackgroundCallAudioTest.java | 86 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningAllow() 91 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllow() 112 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testHoldAfterAudioProcessingFromCallScreening() 117 Call call = mInCallCallbacks.getService().getLastCall(); in testHoldAfterAudioProcessingFromCallScreening() 143 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningDisallow() 148 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningDisallow() 171 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningMissed() 176 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningMissed() 197 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() 202 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() [all …]
|
D | ExtendedInCallServiceTest.java | 64 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAddNewOutgoingCallAndThenDisconnect() 78 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMuteAndUnmutePhone() 105 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwitchAudioRoutes() 165 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPlayAndStopDtmfTones() 198 final MockInCallService inCallService = mInCallCallbacks.getService(); in testHoldAndUnholdCall() 225 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAnswerIncomingCallAudioOnly() 245 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCall() 267 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndRingingCall() 289 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndCall() 318 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCallTwoCalls() [all …]
|
D | PhoneAccountSuggestionServiceTest.java | 62 if (mInCallCallbacks.getService().getLastCall() != null) { in tearDown() 63 mInCallCallbacks.getService().getLastCall().disconnect(); in tearDown() 98 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSuggestionFlow() 103 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSuggestionFlow() 142 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSuggestionTimeout() 147 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSuggestionTimeout() 177 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testEmptySuggestions() 182 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEmptySuggestions() 214 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testPartialSuggestions() 219 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPartialSuggestions()
|
D | CarModeInCallServiceTest.java | 82 mInCallCallbacks.resetLock(); in setUp() 368 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToCarModeAndBack() 376 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeAndBack() 377 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeAndBack() 421 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToCarModeMultiple() 429 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeMultiple() 430 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeMultiple() 485 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToAutomotiveProjectionAndBack() 493 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToAutomotiveProjectionAndBack() 494 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToAutomotiveProjectionAndBack() [all …]
|
D | WiredHeadsetTest.java | 46 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallShortPress_acceptsCall() 63 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallLongPress_rejectsCall() 79 final MockInCallService incallService = mInCallCallbacks.getService(); in testInCallLongPress_togglesMute() 102 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCallShortPress_hangupCall()
|
D | AdhocConferenceTest.java | 50 MockInCallService.setCallbacks(mInCallCallbacks); in setUp() 96 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddNewIncomingConference_onAnswer() 104 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onAnswer() 119 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddNewIncomingConference_onReject() 127 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onReject() 156 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testConferenceCallAddConferenceParticipants() 163 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testConferenceCallAddConferenceParticipants()
|
D | VideoCallTest.java | 68 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeTwoWayVideoCall() 90 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeOneWayVideoCall() 108 final MockInCallService inCallService = mInCallCallbacks.getService(); in testUpgradeToVideo() 133 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyRequest() 162 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSendSessionModifyResponse() 187 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyResponse() 243 final MockInCallService inCallService = mInCallCallbacks.getService(); in testVideoCallDelayProvider() 275 final MockInCallService inCallService = mInCallCallbacks.getService(); in testChangeCamera() 300 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestCameraCapabilities() 328 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestDataUsage() [all …]
|
D | OutgoingCallTest.java | 91 assertAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 103 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 107 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 119 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault() 123 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault() 250 mInCallCallbacks = new MockInCallService.InCallServiceCallbacks() { in testAccountSelectionAvailable() 258 MockInCallService.setCallbacks(mInCallCallbacks); in testAccountSelectionAvailable()
|
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 | 80 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverSourceFailed() 104 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverDestinationFailed() 131 final Call call = mInCallCallbacks.getService().getLastCall(); in testOutgoingHandoverRequestValid() 173 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingHandoverRequestValid() 216 Call call = mInCallCallbacks.getService().getLastCall(); in startSourceCall()
|
D | IncomingCallTest.java | 70 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatPassed() 83 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatFailed() 96 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatNotVerified() 245 assertTrue((mInCallCallbacks.getService().getLastCall().getDetails().getCallProperties() in testAddNewIncomingCallVoipState() 287 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerForAudioCall() 315 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerForVideoCallAnsweredAsAudio() 343 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerIntForVideoCallAnsweredAsVideo()
|
D | BaseTelecomTestWithMockServices.java | 126 InCallServiceCallbacks mInCallCallbacks; field in BaseTelecomTestWithMockServices 437 mInCallCallbacks = new InCallServiceCallbacks() { in setupCallbacks() 551 MockInCallService.setCallbacks(mInCallCallbacks); in setupCallbacks() 575 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in addAndVerifyNewFailedIncomingCall() 577 if (mInCallCallbacks.getService() != null) { in addAndVerifyNewFailedIncomingCall() 578 currentCallCount = mInCallCallbacks.getService().getCallCount(); in addAndVerifyNewFailedIncomingCall() 600 mInCallCallbacks.getService().getCallCount()); in addAndVerifyNewFailedIncomingCall() 613 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in addNewIncomingCall() 615 if (mInCallCallbacks.getService() != null) { in addNewIncomingCall() 616 currentCallCount = mInCallCallbacks.getService().getCallCount(); in addNewIncomingCall() [all …]
|
D | ThirdPartyCallScreeningServiceTest.java | 327 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testNoPostCallActivityWhenAudioProcessing() 328 Call call = mInCallCallbacks.getService().getLastCall(); in testNoPostCallActivityWhenAudioProcessing() 332 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityWhenAudioProcessing() 348 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForOutgoingEmergencyCall() 367 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForIncomingEmergencyCall() 388 mInCallCallbacks.getService().disconnectAllCalls(); in placeOutgoingCall() 389 assertNumCalls(mInCallCallbacks.getService(), 0); in placeOutgoingCall() 421 mInCallCallbacks.getService().disconnectAllCalls(); in addIncoming() 422 assertNumCalls(mInCallCallbacks.getService(), 0); in addIncoming() 502 Call call = mInCallCallbacks.getService().getLastCall(); in addIncomingAndVerifyCallExtraForSilence()
|
D | CallRedirectionServiceTest.java | 126 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithRedirectedGateway() 147 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithPostDialDigits() 171 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithRedirectedPhoneAccount() 186 mInCallService = mInCallCallbacks.getService(); in testCancelCall() 197 mInCallService = mInCallCallbacks.getService(); in testPlaceCallUnmodified()
|
D | RemoteConferenceTest.java | 70 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceCreate() 97 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceSplit() 123 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceHoldAndUnhold() 159 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceMergeAndSwap() 195 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceDTMFTone() 634 mCall1 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls() 643 mCall2 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls() 674 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 | MissedCallTest.java | 67 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMissedCall_NotifyDialer()
|
D | RemoteConnectionTest.java | 67 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionOutgoingCall() 104 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallAccept() 125 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallReject() 234 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionDTMFTone() 580 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionCallbacks_ConferenceableConnections() 1380 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionCallbacksTest() 1393 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionVideoCallbacksTest() 1421 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionVideoTest()
|
D | SelfManagedConnectionServiceTest.java | 281 MockInCallService inCallService = mInCallCallbacks.getService(); in testDisallowOutgoingCallWhileOngoingManagedCallCanNotBeHeld() 538 mInCallCallbacks.resetLock(); in testSelfManagedConnectionServiceLostFocus() 637 mInCallCallbacks.resetLock(); in testDisconnectSelfManagedCallForEmergency()
|
D | BaseRemoteTelecomTest.java | 152 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS()
|
D | ConferenceTest.java | 533 mInCallService = mInCallCallbacks.getService(); in addOutgoingCalls()
|
D | CallDetailsTest.java | 133 mInCallService = mInCallCallbacks.getService(); in setUp()
|