Home
last modified time | relevance | path

Searched refs:fakeCall (Results 1 – 5 of 5) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallLogManagerTest.java186 Call fakeCall = makeFakeCall( in testDontLogCancelledCall() local
199 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.DISCONNECTED); in testDontLogCancelledCall()
201 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.ABORTED); in testDontLogCancelledCall()
210 Call fakeCall = makeFakeCall( in testDontLogChoosingAccountCall() local
223 mCallLogManager.onCallStateChanged(fakeCall, CallState.SELECT_PHONE_ACCOUNT, in testDontLogChoosingAccountCall()
291 Call fakeCall = makeFakeCall( in testDontLogCallsFromEmergencyAccount() local
304 mCallLogManager.onCallStateChanged(fakeCall, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogCallsFromEmergencyAccount()
420 Call fakeCall = makeFakeCall( in testCreationTimeAndAge() local
433 mCallLogManager.onCallStateChanged(fakeCall, CallState.ACTIVE, CallState.DISCONNECTED); in testCreationTimeAndAge()
446 Call fakeCall = makeFakeCall( in testLogPhoneAccountId() local
[all …]
DMissedCallNotifierImplTest.java214 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in cancelNotificationTestInternal() local
217 missedCallNotifier.showMissedCallNotification(fakeCall); in cancelNotificationTestInternal()
219 missedCallNotifier.showMissedCallNotification(fakeCall); in cancelNotificationTestInternal()
242 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in testNotifyMultipleMissedCalls() local
251 missedCallNotifier.showMissedCallNotification(fakeCall); in testNotifyMultipleMissedCalls()
252 missedCallNotifier.showMissedCallNotification(fakeCall); in testNotifyMultipleMissedCalls()
341 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in notifySingleCallTestInternal() local
343 missedCallNotifier.showMissedCallNotification(fakeCall); in notifySingleCallTestInternal()
407 MissedCallNotifier.CallInfo fakeCall = in testNoSmsBackAfterMissedSipCall() local
410 missedCallNotifier.showMissedCallNotification(fakeCall); in testNoSmsBackAfterMissedSipCall()
[all …]
DCallAudioRouteStateMachineTest.java88 @Mock Call fakeCall; field in CallAudioRouteStateMachineTest
114 when(mockCallsManager.getForegroundCall()).thenReturn(fakeCall); in setUp()
117 when(fakeCall.getConnectionService()).thenReturn(mockConnectionServiceWrapper); in setUp()
118 when(fakeCall.isAlive()).thenReturn(true); in setUp()
119 when(fakeCall.getSupportedAudioRoutes()).thenReturn(CallAudioState.ROUTE_ALL); in setUp()
620 .onCallAudioStateChanged(same(fakeCall), newStateCaptor2.capture()); in verifyNewSystemCallAudioState()
634 fakeCall = mock(Call.class); in resetMocks()
635 when(mockCallsManager.getForegroundCall()).thenReturn(fakeCall); in resetMocks()
636 when(fakeCall.getConnectionService()).thenReturn(mockConnectionServiceWrapper); in resetMocks()
637 when(fakeCall.isAlive()).thenReturn(true); in resetMocks()
[all …]
DCallAudioRouteTransitionTests.java153 @Mock Call fakeCall; field in CallAudioRouteTransitionTests
182 when(mockCallsManager.getForegroundCall()).thenReturn(fakeCall); in setUp()
185 when(fakeCall.getConnectionService()).thenReturn(mockConnectionServiceWrapper); in setUp()
186 when(fakeCall.isAlive()).thenReturn(true); in setUp()
187 when(fakeCall.getSupportedAudioRoutes()).thenReturn(CallAudioState.ROUTE_ALL); in setUp()
234 when(fakeCall.getSupportedAudioRoutes()).thenReturn(params.callSupportedRoutes); in setupMocksForParams()
368 when(fakeCall.getSupportedAudioRoutes()).thenReturn(mParams.callSupportedRoutes); in testQuiescentTransition()
840 .onCallAudioStateChanged(same(fakeCall), newStateCaptor2.capture()); in verifyNewSystemCallAudioState()
/packages/services/Telephony/tests/src/com/android/phone/
DNumberVerificationManagerTest.java153 Call fakeCall = mock(Call.class); in testVerificationWorksWithOnePhoneFull() local
154 when(fakeCall.getState()).thenReturn(Call.State.ACTIVE); in testVerificationWorksWithOnePhoneFull()
155 when(mPhone1.getForegroundCall()).thenReturn(fakeCall); in testVerificationWorksWithOnePhoneFull()
156 when(mPhone1.getRingingCall()).thenReturn(fakeCall); in testVerificationWorksWithOnePhoneFull()
157 when(mPhone1.getBackgroundCall()).thenReturn(fakeCall); in testVerificationWorksWithOnePhoneFull()