Home
last modified time | relevance | path

Searched refs:mInCallCallbacks (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionServiceTest.java71 assertNumCalls(mInCallCallbacks.getService(), 2); in testAddExistingConnection()
72 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection()
73 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection()
100 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountPackageName()
101 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection_invalidPhoneAccountPackageName()
102 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountPackageName()
123 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountAccountId()
124 mInCallCallbacks.lock.drainPermits(); in testAddExistingConnection_invalidPhoneAccountAccountId()
125 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountAccountId()
197 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_ACTIVE); in testConnectionServiceFocusGainedWithSameConnectionService()
[all …]
DBackgroundCallAudioTest.java77 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningAllow()
82 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllow()
103 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningDisallow()
108 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningDisallow()
131 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningMissed()
136 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningMissed()
157 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
162 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
196 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
201 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
[all …]
DExtendedInCallServiceTest.java61 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAddNewOutgoingCallAndThenDisconnect()
75 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMuteAndUnmutePhone()
102 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwitchAudioRoutes()
162 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPlayAndStopDtmfTones()
195 final MockInCallService inCallService = mInCallCallbacks.getService(); in testHoldAndUnholdCall()
222 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAnswerIncomingCallAudioOnly()
242 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCall()
264 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndRingingCall()
286 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndCall()
315 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCallTwoCalls()
[all …]
DPhoneAccountSuggestionServiceTest.java62 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()
DVideoCallTest.java68 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 …]
DOutgoingCallTest.java86 assertAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall()
98 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
102 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
114 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault()
118 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault()
211 mInCallCallbacks = new MockInCallService.InCallServiceCallbacks() { in testAccountSelectionAvailable()
219 MockInCallService.setCallbacks(mInCallCallbacks); in testAccountSelectionAvailable()
DBaseTelecomTestWithMockServices.java109 InCallServiceCallbacks mInCallCallbacks; field in BaseTelecomTestWithMockServices
308 mInCallCallbacks = new InCallServiceCallbacks() { in setupCallbacks()
422 MockInCallService.setCallbacks(mInCallCallbacks); in setupCallbacks()
446 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in addAndVerifyNewFailedIncomingCall()
448 if (mInCallCallbacks.getService() != null) { in addAndVerifyNewFailedIncomingCall()
449 currentCallCount = mInCallCallbacks.getService().getCallCount(); in addAndVerifyNewFailedIncomingCall()
475 mInCallCallbacks.getService().getCallCount()); in addAndVerifyNewFailedIncomingCall()
483 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in addAndVerifyNewIncomingCall()
485 if (mInCallCallbacks.getService() != null) { in addAndVerifyNewIncomingCall()
486 currentCallCount = mInCallCallbacks.getService().getCallCount(); in addAndVerifyNewIncomingCall()
[all …]
DRttOperationsTest.java64 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()
DWiredHeadsetTest.java46 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()
DAdhocConferenceTest.java49 MockInCallService.setCallbacks(mInCallCallbacks); in setUp()
95 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddNewIncomingConference_onAnswer()
102 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onAnswer()
126 if (!mInCallCallbacks.lock.tryAcquire(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testConferenceCallAddConferenceParticipants()
133 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testConferenceCallAddConferenceParticipants()
DCarModeInCallServiceTest.java190 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToCarModeAndBack()
198 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeAndBack()
199 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeAndBack()
239 if (!mInCallCallbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testSwitchToCarModeMultiple()
247 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeMultiple()
248 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeMultiple()
DThirdPartyCallScreeningServiceTest.java327 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()
390 mInCallCallbacks.getService().disconnectAllCalls(); in placeOutgoingCall()
391 assertNumCalls(mInCallCallbacks.getService(), 0); in placeOutgoingCall()
418 mInCallCallbacks.getService().disconnectAllCalls(); in addIncoming()
419 assertNumCalls(mInCallCallbacks.getService(), 0); in addIncoming()
499 Call call = mInCallCallbacks.getService().getLastCall(); in addIncomingAndVerifyCallExtraForSilence()
DHandoverTest.java79 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverSourceFailed()
103 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverDestinationFailed()
130 final Call call = mInCallCallbacks.getService().getLastCall(); in testOutgoingHandoverRequestValid()
172 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingHandoverRequestValid()
DCallRedirectionServiceTest.java126 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()
DRemoteConferenceTest.java74 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceCreate()
97 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceSplit()
119 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceHoldAndUnhold()
151 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceMergeAndSwap()
183 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceDTMFTone()
583 mCall1 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls()
592 mCall2 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls()
623 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in setupRemoteConferenceCallbacksTest()
DIncomingCallTest.java69 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatPassed()
82 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatFailed()
95 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatNotVerified()
243 assertTrue((mInCallCallbacks.getService().getLastCall().getDetails().getCallProperties() in testAddNewIncomingCallVoipState()
DRemoteConnectionTest.java61 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionOutgoingCall()
98 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallAccept()
119 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallReject()
140 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionDTMFTone()
486 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionCallbacks_ConferenceableConnections()
1268 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionCallbacksTest()
1281 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionVideoCallbacksTest()
1309 final Call call = mInCallCallbacks.getService().getLastCall(); in setupRemoteConnectionVideoTest()
DMissedCallTest.java64 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMissedCall_NotifyDialer()
DBaseRemoteTelecomTest.java152 assertEquals("Lock should have no permits!", 0, mInCallCallbacks.lock.availablePermits()); in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS()
DSelfManagedConnectionServiceTest.java280 MockInCallService inCallService = mInCallCallbacks.getService(); in testDisallowOutgoingCallWhileOngoingManagedCallCanNotBeHeld()
DConferenceTest.java472 mInCallService = mInCallCallbacks.getService(); in addOutgoingCalls()
DCallDetailsTest.java129 mInCallService = mInCallCallbacks.getService(); in setUp()