/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CreateConnectionProcessorTest.java | 81 Call mMockCall; field in CreateConnectionProcessorTest 98 when(mMockCall.getConnectionServiceFocusManager()).thenReturn( in setUp() 114 mTestCreateConnectionProcessor = new CreateConnectionProcessor(mMockCall, in setUp() 149 setTargetPhoneAccount(mMockCall, pAHandle); in testSimPhoneAccountSuccess() 150 when(mMockCall.isEmergencyCall()).thenReturn(false); in testSimPhoneAccountSuccess() 157 verify(mMockCall).setConnectionManagerPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess() 158 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess() 159 verify(mMockCall).setConnectionService(eq(service)); in testSimPhoneAccountSuccess() 160 verify(service).createConnection(eq(mMockCall), any(CreateConnectionResponse.class)); in testSimPhoneAccountSuccess() 171 when(mMockCall.isEmergencyCall()).thenReturn(false); in testbadPhoneAccount() [all …]
|
D | InCallControllerTests.java | 112 @Mock Call mMockCall; field in InCallControllerTests 155 when(mMockCall.getAnalytics()).thenReturn(new Analytics.CallInfo()); in setUp() 219 when(mMockCall.isIncoming()).thenReturn(true); in testBindToService_NoServicesFound_IncomingCall() 220 when(mMockCall.isExternalCall()).thenReturn(false); in testBindToService_NoServicesFound_IncomingCall() 225 mInCallController.bindToServices(mMockCall); in testBindToService_NoServicesFound_IncomingCall() 251 when(mMockCall.isIncoming()).thenReturn(false); in testBindToService_NoServicesFound_OutgoingCall() 252 when(mMockCall.getTargetPhoneAccount()).thenReturn(PA_HANDLE); in testBindToService_NoServicesFound_OutgoingCall() 253 when(mMockCall.getIntentExtras()).thenReturn(callExtras); in testBindToService_NoServicesFound_OutgoingCall() 254 when(mMockCall.isExternalCall()).thenReturn(false); in testBindToService_NoServicesFound_OutgoingCall() 260 mInCallController.bindToServices(mMockCall); in testBindToService_NoServicesFound_OutgoingCall() [all …]
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/livedata/ |
D | CallStateLiveDataTest.java | 50 private Call mMockCall; field in CallStateLiveDataTest 62 doNothing().when(mMockCall).registerCallback(mCallbackCaptor.capture()); in setup() 63 when(mMockCall.getState()).thenReturn(Call.STATE_NEW); in setup() 65 mCallStateLiveData = new CallStateLiveData(mMockCall); in setup() 74 verify(mMockCall).registerCallback(any()); in testOnActiveRegistry() 87 verify(mMockCall).registerCallback(any()); in testOnLifecycleStart() 99 mCallbackCaptor.getValue().onStateChanged(mMockCall, Call.STATE_ACTIVE); in testOnStateChanged() 110 verify(mMockCall).unregisterCallback(mCallbackCaptor.getValue()); in testOnInactiveUnregister()
|
D | CallDetailLiveDataTest.java | 55 private Call mMockCall; field in CallDetailLiveDataTest 67 doNothing().when(mMockCall).registerCallback(mCallbackCaptor.capture()); in setup() 69 mCallDetailLiveData = new CallDetailLiveData(mMockCall); in setup() 78 verify(mMockCall).registerCallback(any()); in testOnActiveRegistry() 91 verify(mMockCall).registerCallback(any()); in testOnLifecycleStart() 113 when(mMockCall.getDetails()).thenReturn(updatedDetails); in testOnDetailsChanged() 114 mCallbackCaptor.getValue().onDetailsChanged(mMockCall, updatedDetails); in testOnDetailsChanged() 128 verify(mMockCall).unregisterCallback(mCallbackCaptor.getValue()); in testOnInactiveUnregister()
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/activecall/ |
D | OnGoingCallControllerBarFragmentTest.java | 72 private Call mMockCall; field in OnGoingCallControllerBarFragmentTest 88 mCallLiveData.setValue(mMockCall); in setup() 95 mCallList.add(mMockCall); in setup() 156 verify(mMockCall).disconnect(); in testEndCallButton() 191 verify(mMockCall).hold(); in testClickPauseButton_activeCall() 195 verify(mMockCall).unhold(); in testClickPauseButton_activeCall() 208 verify(mMockCall).unhold(); in testClickPauseButton_onholdCall() 219 verify(mMockCall, never()).hold(); in testClickPauseButton_connectingCall() 220 verify(mMockCall, never()).unhold(); in testClickPauseButton_connectingCall()
|
D | RingingCallControllerBarFragmentTest.java | 51 private Call mMockCall; field in RingingCallControllerBarFragmentTest 58 callLiveData.setValue(mMockCall); in setUp() 114 verify(mMockCall).answer(captor.capture()); in verifyAnswerCall() 121 verify(mMockCall).reject(booleanCaptor.capture(), stringCaptor.capture()); in verifyRejectCall()
|
D | IncomingCallFragmentTest.java | 46 private Call mMockCall; field in IncomingCallFragmentTest 54 when(mMockCall.getState()).thenReturn(Call.STATE_RINGING); in setUp() 55 when(mMockInCallServiceImpl.getCalls()).thenReturn(Collections.singletonList(mMockCall)); in setUp()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | TestTelephonyConnection.java | 55 Call mMockCall; field in TestTelephonyConnection 78 return mMockCall; in getCall() 93 when(mMockRadioConnection.getCall()).thenReturn(mMockCall); in TestTelephonyConnection() 100 when(mMockPhone.getRingingCall()).thenReturn(mMockCall); in TestTelephonyConnection() 107 when(mMockCall.getState()).thenReturn(Call.State.ACTIVE); in TestTelephonyConnection() 108 when(mMockCall.getPhone()).thenReturn(mMockPhone); in TestTelephonyConnection() 110 doNothing().when(mMockCall).hangup(); in TestTelephonyConnection()
|
D | ImsConferenceTest.java | 486 verify(mConferenceHost.mMockCall, never()).hangup(); in testNormalConference() 521 verify(mConferenceHost.mMockCall).hangup(); in testLocalDisconnectOnEmptyConference()
|