Home
last modified time | relevance | path

Searched refs:mMockCall (Results 1 – 6 of 6) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCreateConnectionProcessorTest.java100 Call mMockCall; field in CreateConnectionProcessorTest
119 when(mMockCall.getConnectionServiceFocusManager()).thenReturn( in setUp()
135 mTestCreateConnectionProcessor = new CreateConnectionProcessor(mMockCall, in setUp()
158 when(mMockCall.getAssociatedUser()). in setUp()
162 makeConnectionServiceWrapper(), mMockCall, mTimeoutsAdapter); in setUp()
178 setTargetPhoneAccount(mMockCall, pAHandle); in testSimPhoneAccountSuccess()
179 when(mMockCall.isEmergencyCall()).thenReturn(false); in testSimPhoneAccountSuccess()
186 verify(mMockCall).setConnectionManagerPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess()
187 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess()
188 verify(mMockCall).setConnectionService(eq(service)); in testSimPhoneAccountSuccess()
[all …]
DInCallControllerTests.java143 @Mock Call mMockCall; field in InCallControllerTests
216 when(mMockCall.getAnalytics()).thenReturn(new Analytics.CallInfo()); in setUp()
217 when(mMockCall.getAssociatedUser()).thenReturn(mUserHandle); in setUp()
218 when(mMockCall.getId()).thenReturn("TC@1"); in setUp()
405 when(mMockCall.isIncoming()).thenReturn(true); in testBindToService_NoServicesFound_IncomingCall()
406 when(mMockCall.isExternalCall()).thenReturn(false); in testBindToService_NoServicesFound_IncomingCall()
407 when(mMockCall.getTargetPhoneAccount()).thenReturn(PA_HANDLE); in testBindToService_NoServicesFound_IncomingCall()
412 mInCallController.bindToServices(mMockCall); in testBindToService_NoServicesFound_IncomingCall()
437 when(mMockCall.isIncoming()).thenReturn(false); in testBindToService_NoServicesFound_OutgoingCall()
438 when(mMockCall.getAssociatedUser()).thenReturn(mUserHandle); in testBindToService_NoServicesFound_OutgoingCall()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/ndo/
DInCallLiveDataTest.java72 private Call mMockCall; field in InCallLiveDataTest
81 when(mMockInCallService.getCalls()).thenReturn(List.of(mMockCall)); in setup()
83 when(mMockCall.getDetails()).thenReturn(mMockDetails); in setup()
84 doNothing().when(mMockCall).registerCallback(mCallbackCaptor.capture()); in setup()
93 mInCallLiveData.onCallAdded(mMockCall); in testOnCallAdded()
95 verify(mMockCall).registerCallback(any()); in testOnCallAdded()
96 assertThat(mInCallLiveData.getValue()).isEqualTo(mMockCall); in testOnCallAdded()
103 mInCallLiveData.onCallRemoved(mMockCall); in testOnCallRemoved()
104 verify(mMockCall).unregisterCallback(any()); in testOnCallRemoved()
111 mInCallLiveData.onCallAdded(mMockCall); in testOnStateChanged()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/telecom/
DInCallServiceImplTest.java43 private Call mMockCall; field in InCallServiceImplTest
71 mInCallService.onCallAdded(mMockCall); in testOnCallAdded()
73 assertThat(mCallListener.mCall).isEqualTo(mMockCall); in testOnCallAdded()
79 mInCallService.onCallAdded(mMockCall); in testOnCallRemoved()
81 assertThat(mCallListener.mCall).isEqualTo(mMockCall); in testOnCallRemoved()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTestTelephonyConnection.java67 Call mMockCall; field in TestTelephonyConnection
123 return mMockCall; in getCall()
146 when(mMockRadioConnection.getCall()).thenReturn(mMockCall); in TestTelephonyConnection()
154 when(mMockPhone.getRingingCall()).thenReturn(mMockCall); in TestTelephonyConnection()
167 when(mMockCall.getState()).thenReturn(Call.State.ACTIVE); in TestTelephonyConnection()
168 when(mMockCall.getPhone()).thenReturn(mMockPhone); in TestTelephonyConnection()
181 doNothing().when(mMockCall).hangup(); in TestTelephonyConnection()
DImsConferenceTest.java595 verify(mConferenceHost.mMockCall, never()).hangup(); in testNormalConference()
630 verify(mConferenceHost.mMockCall).hangup(); in testLocalDisconnectOnEmptyConference()
675 verify(mConferenceHost.mMockCall).hangup(); in testLocalDisconnectOnEmptySinglePartyConference()
725 verify(mConferenceHost.mMockCall, never()).hangup(); in testNoLocalDisconnectSinglePartyConferenceOnRepeatedCep()
773 verify(mConferenceHost.mMockCall, never()).hangup(); in testLocalDisconnectSinglePartyConferenceOnRepeatedCep()
778 verify(mConferenceHost.mMockCall).hangup(); in testLocalDisconnectSinglePartyConferenceOnRepeatedCep()