Searched refs:fakeCall (Results 1 – 5 of 5) sorted by relevance
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallLogManagerTest.java | 255 Call fakeCall = makeFakeCall( in testDontLogCancelledCall() local 268 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.DISCONNECTED); in testDontLogCancelledCall() 270 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.ABORTED); in testDontLogCancelledCall() 279 Call fakeCall = makeFakeCall( in testDontLogChoosingAccountCall() local 292 mCallLogManager.onCallStateChanged(fakeCall, CallState.SELECT_PHONE_ACCOUNT, in testDontLogChoosingAccountCall() 360 Call fakeCall = makeFakeCall( in testDontLogCallsFromEmergencyAccount() local 373 mCallLogManager.onCallStateChanged(fakeCall, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogCallsFromEmergencyAccount() 523 Call fakeCall = makeFakeCall( in testCreationTimeAndAge() local 536 mCallLogManager.onCallStateChanged(fakeCall, CallState.ACTIVE, CallState.DISCONNECTED); in testCreationTimeAndAge() 549 Call fakeCall = makeFakeCall( in testLogPhoneAccountId() local [all …]
|
D | MissedCallNotifierImplTest.java | 240 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in testDefaultDialerIncrement() local 243 missedCallNotifier.showMissedCallNotification(fakeCall, /* uri= */ null); in testDefaultDialerIncrement() 261 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in testCallLogUriSentToNotifier() local 265 missedCallNotifier.showMissedCallNotification(fakeCall, in testCallLogUriSentToNotifier() 299 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in cancelNotificationTestInternal() local 302 missedCallNotifier.showMissedCallNotification(fakeCall, /* uri= */null); in cancelNotificationTestInternal() 304 missedCallNotifier.showMissedCallNotification(fakeCall, /* uri= */null); in cancelNotificationTestInternal() 327 MissedCallNotifier.CallInfo fakeCall = makeFakeCallInfo(TEL_CALL_HANDLE, CALLER_NAME, in testNotifyMultipleMissedCalls() local 337 missedCallNotifier.showMissedCallNotification(fakeCall, /* uri= */ null); in testNotifyMultipleMissedCalls() 338 missedCallNotifier.showMissedCallNotification(fakeCall, /* uri= */ null); in testNotifyMultipleMissedCalls() [all …]
|
D | CallAudioRouteStateMachineTest.java | 101 @Mock Call fakeCall; field in CallAudioRouteStateMachineTest 131 when(mockCallsManager.getForegroundCall()).thenReturn(fakeCall); in setUp() 132 when(mockCallsManager.getTrackedCalls()).thenReturn(Set.of(fakeCall)); in setUp() 135 when(fakeCall.getConnectionService()).thenReturn(mockConnectionServiceWrapper); in setUp() 136 when(fakeCall.isAlive()).thenReturn(true); in setUp() 137 when(fakeCall.getSupportedAudioRoutes()).thenReturn(CallAudioState.ROUTE_ALL); in setUp() 197 Set<Call> trackedCalls = new HashSet<>(Arrays.asList(fakeCall, fakeSelfManagedCall)); in testTrackedCallsReceiveAudioRouteChange() 245 Set<Call> trackedCalls = new HashSet<>(Arrays.asList(fakeCall, fakeSelfManagedCall)); in testSystemAudioStateIsNotUpdatedFlagOff() 298 Set<Call> trackedCalls = new HashSet<>(Arrays.asList(fakeCall, fakeSelfManagedCall)); in testSystemAudioStateIsUpdatedFlagOn() 1349 .onCallAudioStateChanged(same(fakeCall), newStateCaptor2.capture()); in verifyNewSystemCallAudioState() [all …]
|
D | CallAudioRouteTransitionTests.java | 158 @Mock Call fakeCall; field in CallAudioRouteTransitionTests 190 when(mockCallsManager.getForegroundCall()).thenReturn(fakeCall); in setUp() 191 when(mockCallsManager.getTrackedCalls()).thenReturn(Set.of(fakeCall)); in setUp() 194 when(fakeCall.getConnectionService()).thenReturn(mockConnectionServiceWrapper); in setUp() 195 when(fakeCall.isAlive()).thenReturn(true); in setUp() 196 when(fakeCall.getSupportedAudioRoutes()).thenReturn(CallAudioState.ROUTE_ALL); in setUp() 243 when(fakeCall.getSupportedAudioRoutes()).thenReturn(params.callSupportedRoutes); in setupMocksForParams() 390 when(fakeCall.getSupportedAudioRoutes()).thenReturn(mParams.callSupportedRoutes); in testQuiescentTransition() 886 .onCallAudioStateChanged(same(fakeCall), newStateCaptor2.capture()); in verifyNewSystemCallAudioState()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | NumberVerificationManagerTest.java | 153 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()
|