/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallsManagerTest.java | 322 private CallsManager mCallsManager; field in CallsManagerTest 354 mCallsManager = new CallsManager( in setUp() 439 assertEquals(0, mCallsManager.constructPossiblePhoneAccounts(null, null, in testConstructPossiblePhoneAccounts() 449 assertEquals(0, mCallsManager.constructPossiblePhoneAccounts(null, null, in testConstructPossiblePhoneAccounts_simulCalling() 457 mCallsManager, in constructOngoingCall() 487 mCallsManager.addCall(ongoingCall); in testConstructPossiblePhoneAccountsMultiSimActive() 489 List<PhoneAccountHandle> phoneAccountHandles = mCallsManager.constructPossiblePhoneAccounts( in testConstructPossiblePhoneAccountsMultiSimActive() 508 mCallsManager.addCall(ongoingCall); in testConstructPossiblePhoneAccountsMultiSimActive_simulCallingRestriction() 510 List<PhoneAccountHandle> phoneAccountHandles = mCallsManager.constructPossiblePhoneAccounts( in testConstructPossiblePhoneAccountsMultiSimActive_simulCallingRestriction() 528 mCallsManager.addCall(ongoingCall); in testConstructPossiblePhoneAccountsMultiSimActive_simulCallingRestrictionSubset() [all …]
|
D | TransactionTests.java | 102 @Mock private CallsManager mCallsManager; field in TransactionTests 131 new EndCallTransaction(mCallsManager, new DisconnectCause(0), mMockCall1); in testEndCallTransactionWithDisconnect() 137 verify(mCallsManager, times(1)) in testEndCallTransactionWithDisconnect() 139 verify(mCallsManager, never()) in testEndCallTransactionWithDisconnect() 141 verify(mCallsManager, times(1)) in testEndCallTransactionWithDisconnect() 151 new HoldCallTransaction(mCallsManager, spyCall); in testHoldCallTransaction() 154 when(mCallsManager.canHold(spyCall)).thenReturn(true); in testHoldCallTransaction() 159 }).when(mCallsManager).markCallAsOnHold(spyCall); in testHoldCallTransaction() 164 verify(mCallsManager, times(1)) in testHoldCallTransaction() 174 new RequestNewActiveCallTransaction(mCallsManager, mMockCall1); in testRequestNewCallFocusWithDialingCall() [all …]
|
D | MissedInformationTest.java | 99 private CallsManager mCallsManager; field in MissedInformationTest 108 mCallsManager = mTelecomSystem.getCallsManager(); in setUp() 109 mAdapter = new CallIntentProcessor.AdapterImpl(mCallsManager.getDefaultDialerCache()); in setUp() 158 mCallsManager.addCall(mEmergencyCall); in testEmergencyCallPlacing() 159 assertTrue(mCallsManager.isInEmergencyCall()); in testEmergencyCallPlacing() 164 mAdapter.processIncomingCallIntent(mCallsManager, intent); in testEmergencyCallPlacing() 187 mAdapter.processIncomingCallIntent(mCallsManager, intent); in testMaximumDialingCalls() 213 mAdapter.processIncomingCallIntent(mCallsManager, intent); in testMaximumRingingCalls() 234 mCallsManager.onCallFilteringComplete(mIncomingCall, result, true); in testCallFiltersTimeout() 236 mCallsManager.markCallAsDisconnected(mIncomingCall, in testCallFiltersTimeout() [all …]
|
D | CallAudioRouteControllerTest.java | 100 @Mock CallsManager mCallsManager; field in CallAudioRouteControllerTest 149 doNothing().when(mCallsManager).onCallAudioStateChanged(any(CallAudioState.class), in setUp() 151 when(mCallsManager.getCurrentUserHandle()).thenReturn( in setUp() 153 when(mCallsManager.getLock()).thenReturn(mLock); in setUp() 164 mController = new CallAudioRouteController(mContext, mCallsManager, mAudioServiceFactory, in setUp() 228 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testNormalCallRouteToEarpiece() 261 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testVideoCallRouteToSpeaker() 271 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testVideoCallRouteToSpeaker() 287 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testActiveDeactivateBluetoothDevice() 295 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testActiveDeactivateBluetoothDevice() [all …]
|
D | CallEndpointControllerTest.java | 94 @Mock private CallsManager mCallsManager; field in CallEndpointControllerTest 107 mCallsManager, in setUp() 109 doReturn(new HashSet<>(Arrays.asList(mCall))).when(mCallsManager).getTrackedCalls(); in setUp() 111 doReturn(mCallAudioManager).when(mCallsManager).getCallAudioManager(); in setUp() 140 verify(mCallsManager).updateCallEndpoint(eq(endpoint)); in testCurrentEndpointChangedToBluetooth() 142 verify(mCallsManager, never()).updateAvailableCallEndpoints(any()); in testCurrentEndpointChangedToBluetooth() 144 verify(mCallsManager, never()).updateMuteState(anyBoolean()); in testCurrentEndpointChangedToBluetooth() 160 verify(mCallsManager).updateCallEndpoint(eq(endpoint)); in testCurrentEndpointChangedToStreaming() 162 verify(mCallsManager).updateAvailableCallEndpoints(eq(availableEndpoints)); in testCurrentEndpointChangedToStreaming() 165 verify(mCallsManager, never()).updateMuteState(anyBoolean()); in testCurrentEndpointChangedToStreaming() [all …]
|
D | CallRedirectionProcessorTest.java | 71 @Mock private CallsManager mCallsManager; field in CallRedirectionProcessorTest 125 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT); in setUp() 129 when(mCallsManager.getSystemStateHelper()).thenReturn(mSystemStateHelper); in setUp() 130 when(mCallsManager.getTimeoutsAdapter()).thenReturn(mTimeoutsAdapter); in setUp() 135 when(mCallsManager.getLock()).thenReturn(mLock); in setUp() 136 when(mCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in setUp() 182 mProcessor = new CallRedirectionProcessor(mContext, mCallsManager, mCall, handle, in startProcessWithNoGateWayInfo() 188 mProcessor = new CallRedirectionProcessor(mContext, mCallsManager, mCall, mHandle, in startProcessWithGateWayInfo() 201 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), eq(mHandle), in testNoUserDefinedServiceNoCarrierSerivce() 216 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() [all …]
|
D | InCallWakeLockControllerTest.java | 45 @Mock CallsManager mCallsManager; field in InCallWakeLockControllerTest 58 mInCallWakeLockController = new InCallWakeLockController(telecomWakeLock, mCallsManager); in setUp() 71 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testRingingCallAdded() 82 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(null); in testNonRingingCallAdded() 93 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testRingingCallTransition() 104 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(null); in testRingingCallRemoved() 115 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(null); in testWakeLockReleased() 126 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testAcquireWakeLockWhenHeld() 138 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testExternalCallStateChangeDuringRinging()
|
D | CallIntentProcessorTest.java | 64 private CallsManager mCallsManager; field in CallIntentProcessorTest 98 mCallIntentProcessor = new CallIntentProcessor(mContext, mCallsManager, mDefaultDialerCache, in setUp() 101 when(mCallsManager.getPhoneNumberUtilsAdapter()).thenReturn(mPhoneNumberUtilsAdapter); in setUp() 103 when(mCallsManager.startOutgoingCall(any(Uri.class), any(), any(Bundle.class), in setUp() 115 when(mCallsManager.isSelfManaged(any(), eq(UserHandle.CURRENT))).thenReturn(false); in testNonPrivateSpaceCall_noConsentDialogShown() 122 verify(mCallsManager).startOutgoingCall(any(Uri.class), any(), any(Bundle.class), in testNonPrivateSpaceCall_noConsentDialogShown() 135 when(mCallsManager.isSelfManaged(any(), eq(PRIVATE_SPACE_USERHANDLE))).thenReturn(true); in testPrivateSpaceCall_isSelfManaged_noDialogShown() 143 verify(mCallsManager).startOutgoingCall(any(Uri.class), any(), any(Bundle.class), in testPrivateSpaceCall_isSelfManaged_noDialogShown() 161 when(mCallsManager.isSelfManaged(any(), eq(PRIVATE_SPACE_USERHANDLE))).thenReturn(false); in testPrivateSpaceCall_isEmergency_noDialogShown() 179 when(mCallsManager.isSelfManaged(any(), eq(PRIVATE_SPACE_USERHANDLE))).thenReturn(false); in testPrivateSpaceCall_showConsentDialog() [all …]
|
D | DisconnectedCallNotifierTest.java | 49 @Mock private CallsManager mCallsManager; field in DisconnectedCallNotifierTest 66 doReturn(mCallerInfoLookupHelper).when(mCallsManager).getCallerInfoLookupHelper(); in setUp() 81 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testNotificationShownAfterEmergencyCall() 87 doReturn(Collections.EMPTY_LIST).when(mCallsManager).getCalls(); in testNotificationShownAfterEmergencyCall() 104 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testNotificationShownForDisconnectedEmergencyCall() 110 doReturn(Collections.EMPTY_LIST).when(mCallsManager).getCalls(); in testNotificationShownForDisconnectedEmergencyCall() 127 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testNotificationNotShownAfterCall() 132 doReturn(Collections.EMPTY_LIST).when(mCallsManager).getCalls(); in testNotificationNotShownAfterCall() 144 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testNotificationClearedForEmergencyCall() 156 DisconnectedCallNotifier notifier = new DisconnectedCallNotifier(mContext, mCallsManager); in testGetCountryIsoWithNoTelephony()
|
D | ProximitySensorManagerTest.java | 45 @Mock CallsManager mCallsManager; field in ProximitySensorManagerTest 58 mProximitySensorManager = new ProximitySensorManager(telecomWakeLock, mCallsManager); in setUp() 71 when(mCallsManager.getCalls()).thenReturn(List.of(mCall)); in testTurnOnProximityWithCallsActive() 82 when(mCallsManager.getCalls()).thenReturn(List.of()); in testTurnOnProximityWithNoCallsActive() 104 when(mCallsManager.getCalls()).thenReturn(List.of(mCall)); in testCallRemovedFromCallsManagerCallsActive() 115 when(mCallsManager.getCalls()).thenReturn(List.of()); in testCallRemovedFromCallsManagerNoCallsActive()
|
D | CallScreeningServiceFilterTest.java | 77 @Mock CallsManager mCallsManager; field in CallScreeningServiceFilterTest 131 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT); in setUp() 153 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testNoPackageName() 167 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testContextFailToBind() 181 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testNoResolveEntries() 194 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testBadResolveEntry() 213 CallScreeningServiceFilter.PACKAGE_TYPE_USER_CHOSEN, mContext, mCallsManager, in testNoBindingCondition() 225 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testBindingCondition() 239 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testUnbindingException() 254 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testBindingFailed() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomBroadcastIntentProcessor.java | 115 private final CallsManager mCallsManager; field in TelecomBroadcastIntentProcessor 119 mCallsManager = callsManager; in TelecomBroadcastIntentProcessor() 135 MissedCallNotifier missedCallNotifier = mCallsManager.getMissedCallNotifier(); in processIntent() 165 mCallsManager.getDisconnectedCallNotifier(); in processIntent() 185 Call incomingCall = mCallsManager.getIncomingCallNotifier().getIncomingCall(); in processIntent() 187 mCallsManager.answerCall(incomingCall, incomingCall.getVideoState()); in processIntent() 197 Call incomingCall = mCallsManager.getIncomingCallNotifier().getIncomingCall(); in processIntent() 199 mCallsManager.rejectCall(incomingCall, false /* isRejectWithMessage */, null); in processIntent() 209 mCallsManager.confirmPendingCall(callId); in processIntent() 218 mCallsManager.cancelPendingCall(callId); in processIntent() [all …]
|
D | InCallAdapter.java | 38 private final CallsManager mCallsManager; field in InCallAdapter 47 mCallsManager = callsManager; in InCallAdapter() 64 mCallsManager.answerCall(call, videoState); in answerCall() 87 mCallsManager.deflectCall(call, address); in deflectCall() 112 if (!mCallsManager.isReplyWithSmsAllowed(callingUid)) { in rejectCall() 120 mCallsManager.rejectCall(call, rejectWithMessage, textMessage); in rejectCall() 146 mCallsManager.rejectCall(call, rejectReason); in rejectCallWithReason() 169 mCallsManager.transferCall(call, targetNumber, isConfirmationRequired); in transferCall() 194 mCallsManager.transferCall(call, otherCall); in consultativeTransfer() 218 mCallsManager.playDtmfTone(call, digit); in playDtmfTone() [all …]
|
D | TelecomSystem.java | 133 private final CallsManager mCallsManager; field in TelecomSystem 154 mCallsManager.onUserSwitch(currentUserHandle); 170 mCallsManager.onUserStarting(addingUserHandle); 185 mCallsManager.onBootCompleted(); 335 return mCallsManager.getCurrentUserHandle(); in TelecomSystem() 387 mCallsManager = new CallsManager( in TelecomSystem() 437 return mCallsManager.hasUnholdableCallsForOtherConnectionService( in TelecomSystem() 444 return mCallsManager.getNumUnholdableCallsForOtherConnectionService( in TelecomSystem() 450 return mCallsManager.getActiveCall(); in TelecomSystem() 453 mCallsManager.setIncomingCallNotifier(mIncomingCallNotifier); in TelecomSystem() [all …]
|
D | TransactionalServiceWrapper.java | 84 private final CallsManager mCallsManager; field in TransactionalServiceWrapper 114 mCallsManager = callsManager; in TransactionalServiceWrapper() 121 mStreamingController = mCallsManager.getCallStreamingController(); in TransactionalServiceWrapper() 122 mLock = mCallsManager.getLock(); in TransactionalServiceWrapper() 174 mCallsManager.markCallAsDisconnected(call, in cleanupTransactionalServiceWrapper() 176 mCallsManager.removeCall(call); // This will clear mTrackedCalls && ClientTWS in cleanupTransactionalServiceWrapper() 246 new SetMuteStateTransaction(mCallsManager, isMuted), callback); 294 addTransactionsToManager(new EndCallTransaction(mCallsManager, 299 new HoldCallTransaction(mCallsManager, call), callback); 302 … addTransactionsToManager(mStreamingController.getStartStreamingTransaction(mCallsManager, [all …]
|
D | CallEndpointController.java | 52 private final CallsManager mCallsManager; field in CallEndpointController 64 mCallsManager = callsManager; in CallEndpointController() 125 mCallsManager.getCallAudioManager().setAudioRoute(route, bluetoothAddress); in requestCallEndpointChange() 129 if (mCallsManager.getCallAudioManager() == null in isCurrentEndpointRequestedEndpoint() 130 || mCallsManager.getCallAudioManager().getCallAudioState() == null) { in isCurrentEndpointRequestedEndpoint() 133 CallAudioState currentAudioState = mCallsManager.getCallAudioManager().getCallAudioState(); in isCurrentEndpointRequestedEndpoint() 198 mCallsManager.updateCallEndpoint(mActiveCallEndpoint); in notifyCallEndpointChange() 200 Set<Call> calls = mCallsManager.getTrackedCalls(); in notifyCallEndpointChange() 228 mCallsManager.updateAvailableCallEndpoints(mAvailableCallEndpoints); in notifyAvailableCallEndpointsChange() 230 Set<Call> calls = mCallsManager.getTrackedCalls(); in notifyAvailableCallEndpointsChange() [all …]
|
D | PhoneStateBroadcaster.java | 40 private final CallsManager mCallsManager; field in PhoneStateBroadcaster 45 mCallsManager = callsManager; in PhoneStateBroadcaster() 99 if (mCallsManager.hasRingingOrSimulatedRingingCall()) { in updateStates() 101 } else if (mCallsManager.getFirstCallWithState(CallState.DIALING, CallState.PULLING, in updateStates() 133 TelephonyManager tm = mCallsManager.getContext().getSystemService(TelephonyManager.class); in sendOutgoingEmergencyCallEvent() 156 mCallsManager.getContext().getSystemService(SubscriptionManager.class); in sendOutgoingEmergencyCallEvent()
|
D | ProximitySensorManager.java | 30 private final CallsManager mCallsManager; field in ProximitySensorManager 36 mCallsManager = callsManager; in ProximitySensorManager() 45 if (mCallsManager.getCalls().isEmpty()) { in onCallRemoved() 57 if (mCallsManager.getCalls().isEmpty()) { in turnOn()
|
D | HeadsetMediaButton.java | 150 private final CallsManager mCallsManager; field in HeadsetMediaButton 171 mCallsManager = callsManager; in HeadsetMediaButton() 190 mCallsManager = callsManager; in HeadsetMediaButton() 212 return mCallsManager.onMediaButton(LONG_PRESS); in handleCallMediaButton() 218 return mCallsManager.onMediaButton(SHORT_PRESS); in handleCallMediaButton() 258 if (!mCallsManager.hasAnyCalls()) { in handleCallRemoval()
|
D | TelecomServiceImpl.java | 218 mCallsManager, extras, mFeatureFlags); 222 mCallsManager, extras, mFeatureFlags); 247 callEventCallback, mCallsManager, call); 1068 Set<UserHandle> userHandles = mCallsManager.getCallAudioManager(). 1071 mCallsManager.getInCallController().silenceRinger(userHandles); 1187 return mCallsManager.hasOngoingCalls(Binder.getCallingUserHandle(), 1229 return mCallsManager.hasOngoingManagedCalls(Binder.getCallingUserHandle(), 1260 return mCallsManager.hasRingingOrSimulatedRingingCall(); 1286 return mCallsManager.getCallState(); 1327 return mCallsManager.getCallState(); [all …]
|
D | CallAudioManager.java | 63 private final CallsManager mCallsManager; field in CallAudioManager 108 mCallsManager = callsManager; in CallAudioManager() 234 if (mCallsManager.isSpeakerphoneAutoEnabledForVideoCalls(call.getVideoState())) { in onExternalCallChanged() 404 mCallsManager.isSpeakerphoneAutoEnabledForVideoCalls(newVideoState)) { in onVideoStateChanged() 431 if (mCallsManager.isInEmergencyCall()) { in toggleMute() 450 if (mCallsManager.isInEmergencyCall()) { in mute() 513 synchronized (mCallsManager.getLock()) { in silenceRingers() 519 if (!hasCrossUserPermission && !mCallsManager in silenceRingers() 543 synchronized (mCallsManager.getLock()) { in startRinging() 556 synchronized (mCallsManager.getLock()) { in startCallWaiting() [all …]
|
D | StatusBarNotifier.java | 36 private final CallsManager mCallsManager; field in StatusBarNotifier 44 mCallsManager = callsManager; in StatusBarNotifier() 51 if (!mCallsManager.hasAnyCalls()) { in onCallRemoved() 60 if (!mCallsManager.hasAnyCalls()) { in notifyMute()
|
/packages/services/Telecomm/src/com/android/server/telecom/voip/ |
D | HoldCallTransaction.java | 31 private final CallsManager mCallsManager; field in HoldCallTransaction 36 mCallsManager = callsManager; in HoldCallTransaction() 45 if (mCallsManager.canHold(mCall)) { in processTransaction() 46 mCallsManager.markCallAsOnHold(mCall); in processTransaction()
|
D | EndCallTransaction.java | 34 private final CallsManager mCallsManager; field in EndCallTransaction 40 mCallsManager = callsManager; in EndCallTransaction() 55 mCallsManager.markCallAsDisconnected(mCall, mCause); in processTransaction() 56 mCallsManager.markCallAsRemoved(mCall); in processTransaction()
|
D | RequestNewActiveCallTransaction.java | 48 private final CallsManager mCallsManager; field in RequestNewActiveCallTransaction 53 mCallsManager = callsManager; in RequestNewActiveCallTransaction() 73 mCallsManager.getActiveCall() != null) { in processTransaction() 80 mCallsManager.requestNewCallFocusAndVerify(mCall, new OutcomeReceiver<>() { in processTransaction()
|