/packages/services/Telecomm/src/com/android/server/telecom/ |
D | BluetoothPhoneServiceImpl.java | 107 Call call = mCallsManager.getRingingOrSimulatedRingingCall(); 109 mCallsManager.answerCall(call, VideoProfile.STATE_AUDIO_ONLY); 129 Call call = mCallsManager.getForegroundCall(); 131 mCallsManager.disconnectCall(call); 150 Call call = mCallsManager.getForegroundCall(); 154 mCallsManager.playDtmfTone(call, (char) dtmf); 155 mCallsManager.stopDtmfTone(call); 345 for (Call otherCall : mCallsManager.getCalls()) { 355 if (mCallsManager.getActiveCall() != null 459 private final CallsManager mCallsManager; field in BluetoothPhoneServiceImpl [all …]
|
D | InCallAdapter.java | 35 private final CallsManager mCallsManager; field in InCallAdapter 43 mCallsManager = callsManager; in InCallAdapter() 59 mCallsManager.answerCall(call, videoState); in answerCall() 82 mCallsManager.deflectCall(call, address); in deflectCall() 107 if (!mCallsManager.isReplyWithSmsAllowed(callingUid)) { in rejectCall() 115 mCallsManager.rejectCall(call, rejectWithMessage, textMessage); in rejectCall() 141 mCallsManager.rejectCall(call, rejectReason); in rejectCallWithReason() 164 mCallsManager.transferCall(call, targetNumber, isConfirmationRequired); in transferCall() 188 mCallsManager.transferCall(call, otherCall); in consultativeTransfer() 212 mCallsManager.playDtmfTone(call, digit); in playDtmfTone() [all …]
|
D | TelecomSystem.java | 115 private final CallsManager mCallsManager; field in TelecomSystem 136 mCallsManager.onUserSwitch(currentUserHandle); 152 mCallsManager.onUserStarting(addingUserHandle); 167 mCallsManager.onBootCompleted(); 282 mCallsManager = new CallsManager( in TelecomSystem() 318 return mCallsManager.hasUnholdableCallsForOtherConnectionService( in TelecomSystem() 325 return mCallsManager.getNumUnholdableCallsForOtherConnectionService( in TelecomSystem() 331 return mCallsManager.getActiveCall(); in TelecomSystem() 334 mCallsManager.setIncomingCallNotifier(mIncomingCallNotifier); in TelecomSystem() 336 mRespondViaSmsManager = new RespondViaSmsManager(mCallsManager, mLock); in TelecomSystem() [all …]
|
D | TelecomBroadcastIntentProcessor.java | 109 private final CallsManager mCallsManager; field in TelecomBroadcastIntentProcessor 113 mCallsManager = callsManager; in TelecomBroadcastIntentProcessor() 129 MissedCallNotifier missedCallNotifier = mCallsManager.getMissedCallNotifier(); in processIntent() 159 mCallsManager.getDisconnectedCallNotifier(); in processIntent() 179 Call incomingCall = mCallsManager.getIncomingCallNotifier().getIncomingCall(); in processIntent() 181 mCallsManager.answerCall(incomingCall, incomingCall.getVideoState()); in processIntent() 191 Call incomingCall = mCallsManager.getIncomingCallNotifier().getIncomingCall(); in processIntent() 193 mCallsManager.rejectCall(incomingCall, false /* isRejectWithMessage */, null); in processIntent() 203 mCallsManager.confirmPendingCall(callId); in processIntent() 212 mCallsManager.cancelPendingCall(callId); in processIntent() [all …]
|
D | TelecomServiceImpl.java | 680 mCallsManager.getCallAudioManager().silenceRingers(); 681 mCallsManager.getInCallController().silenceRinger(); 796 return mCallsManager.hasOngoingCalls(); 816 return mCallsManager.hasOngoingManagedCalls(); 846 return mCallsManager.hasRingingOrSimulatedRingingCall(); 861 return mCallsManager.getCallState(); 952 mCallsManager.getInCallController().bringToForeground(showDialpad); 974 mCallsManager.getMissedCallNotifier().clearMissedCalls(userHandle); 1099 return mCallsManager.isTtySupported(); 1118 return mCallsManager.getCurrentTtyMode(); [all …]
|
D | CallAudioManager.java | 55 private final CallsManager mCallsManager; field in CallAudioManager 92 mCallsManager = callsManager; in CallAudioManager() 207 if (mCallsManager.isSpeakerphoneAutoEnabledForVideoCalls(call.getVideoState())) { in onExternalCallChanged() 339 mCallsManager.isSpeakerphoneAutoEnabledForVideoCalls(newVideoState)) { in onVideoStateChanged() 366 if (mCallsManager.isInEmergencyCall()) { in toggleMute() 385 if (mCallsManager.isInEmergencyCall()) { in mute() 442 synchronized (mCallsManager.getLock()) { in silenceRingers() 454 synchronized (mCallsManager.getLock()) { in startRinging() 462 synchronized (mCallsManager.getLock()) { in startCallWaiting() 471 synchronized (mCallsManager.getLock()) { in stopRinging() [all …]
|
D | InCallController.java | 438 mCallsManager.getCurrentUserHandle()); in connect() 922 private final CallsManager mCallsManager; field in InCallController 950 mCallsManager = callsManager; in InCallController() 972 mCallsManager.getCurrentUserHandle()); in onCallAdded() 1000 true /* includeVideoProvider */, mCallsManager.getPhoneAccountRegistrar(), in onCallAdded() 1016 if (mCallsManager.getCalls().isEmpty()) { in onCallRemoved() 1024 if (mCallsManager.getCalls().isEmpty()) { in onCallRemoved() 1065 true /* includeVideoProvider */, mCallsManager.getPhoneAccountRegistrar(), in onExternalCallChanged() 1094 mCallsManager.getPhoneAccountRegistrar(), in onExternalCallChanged() 1332 systemInCall.setHasEmergency(mCallsManager.isInEmergencyCall()); in bindToServices() [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() 85 if (!mCallsManager.hasAnyCalls()) { in notifySpeakerphone()
|
D | CallAudioRouteStateMachine.java | 248 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in enter() 251 Log.addEvent(mCallsManager.getForegroundCall(), in enter() 258 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in exit() 273 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in processMessage() 279 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in processMessage() 287 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in processMessage() 291 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in processMessage() 295 Log.addEvent(mCallsManager.getForegroundCall(), LogUtils.Events.AUDIO_ROUTE, in processMessage() 1322 if (mCallsManager.isInEmergencyCall()) { 1381 private final CallsManager mCallsManager; field in CallAudioRouteStateMachine [all …]
|
D | HeadsetMediaButton.java | 103 private final CallsManager mCallsManager; field in HeadsetMediaButton 113 mCallsManager = callsManager; in HeadsetMediaButton() 135 return mCallsManager.onMediaButton(LONG_PRESS); in handleCallMediaButton() 141 return mCallsManager.onMediaButton(SHORT_PRESS); in handleCallMediaButton() 167 if (!mCallsManager.hasAnyCalls()) { in onCallRemoved()
|
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 | PhoneStateBroadcaster.java | 29 private final CallsManager mCallsManager; field in PhoneStateBroadcaster 34 mCallsManager = callsManager; in PhoneStateBroadcaster() 84 if (mCallsManager.hasRingingOrSimulatedRingingCall()) { in updateStates() 86 } else if (mCallsManager.getFirstCallWithState(CallState.DIALING, CallState.PULLING, in updateStates()
|
D | ConnectionServiceWrapper.java | 142 mCallsManager.markCallAsActive(call); in setActive() 165 mCallsManager.markCallAsRinging(call); in setRinging() 188 mCallsManager.resetConnectionTime(call); in resetConnectionTime() 230 mCallsManager.markCallAsDialing(call); in setDialing() 253 mCallsManager.markCallAsPulling(call); in setPulling() 276 mCallsManager.markCallAsDisconnected(call, disconnectCause); in setDisconnected() 299 mCallsManager.markCallAsOnHold(call); in setOnHold() 347 mCallsManager.markCallAsDisconnected( in removeCall() 350 mCallsManager.markCallAsRemoved(call); in removeCall() 541 Call alreadyAddedConnection = mCallsManager in addConferenceCall() [all …]
|
D | NewOutgoingCallIntentBroadcaster.java | 74 private final CallsManager mCallsManager; field in NewOutgoingCallIntentBroadcaster 106 mCallsManager = callsManager; in NewOutgoingCallIntentBroadcaster() 110 mLock = mCallsManager.getLock(); in NewOutgoingCallIntentBroadcaster() 249 mCallsManager.getPhoneAccountRegistrar().getPhoneAccountUnchecked( in evaluateCall() 352 mContext, mCallsManager, mCall, disposition.callingAddress, in processCall() 353 mCallsManager.getPhoneAccountRegistrar(), in processCall() 492 mCallsManager.placeOutgoingCall(call, handle, gatewayInfo, speakerphoneOn, videoState); in placeOutgoingCallImmediately()
|
D | RingtoneFactory.java | 49 private final CallsManager mCallsManager; field in RingtoneFactory 53 mCallsManager = callsManager; in RingtoneFactory() 71 getWorkProfileContextForUser(mCallsManager.getCurrentUserHandle()) : in getRingtone() 72 getContextForUserHandle(mCallsManager.getCurrentUserHandle()); in getRingtone()
|
D | InCallWakeLockController.java | 29 private final CallsManager mCallsManager; field in InCallWakeLockController 33 mCallsManager = callsManager; in InCallWakeLockController() 65 Call ringingCall = mCallsManager.getRingingOrSimulatedRingingCall(); in handleWakeLock()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallsManagerTest.java | 202 private CallsManager mCallsManager; field in CallsManagerTest 229 mCallsManager = new CallsManager( in setUp() 280 … assertEquals(0, mCallsManager.constructPossiblePhoneAccounts(null, null, false, false).size()); in testConstructPossiblePhoneAccounts() 296 mCallsManager, in testConstructPossiblePhoneAccountsMultiSimActive() 310 mCallsManager.addCall(ongoingCall); in testConstructPossiblePhoneAccountsMultiSimActive() 312 List<PhoneAccountHandle> phoneAccountHandles = mCallsManager.constructPossiblePhoneAccounts( in testConstructPossiblePhoneAccountsMultiSimActive() 327 List<PhoneAccountHandle> phoneAccountHandles = mCallsManager.constructPossiblePhoneAccounts( in testConstructPossiblePhoneAccountsMultiSimIdle() 356 List<PhoneAccountHandle> accounts = mCallsManager.findOutgoingCallPhoneAccount( in testFindOutgoingCallPhoneAccountSelfManaged() 378 List<PhoneAccountHandle> accounts = mCallsManager.findOutgoingCallPhoneAccount( in testFindOutgoingCallAccountDefault() 402 List<PhoneAccountHandle> accounts = mCallsManager.findOutgoingCallPhoneAccount( in testFindOutgoingCallAccountNoDefault() [all …]
|
D | CallRedirectionProcessorTest.java | 73 @Mock private CallsManager mCallsManager; field in CallRedirectionProcessorTest 127 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT); in setUp() 131 when(mCallsManager.getSystemStateHelper()).thenReturn(mSystemStateHelper); in setUp() 132 when(mCallsManager.getTimeoutsAdapter()).thenReturn(mTimeoutsAdapter); in setUp() 137 when(mCallsManager.getLock()).thenReturn(mLock); in setUp() 138 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 | 43 @Mock CallsManager mCallsManager; field in InCallWakeLockControllerTest 56 mInCallWakeLockController = new InCallWakeLockController(telecomWakeLock, mCallsManager); in setUp() 69 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testRingingCallAdded() 80 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(null); in testNonRingingCallAdded() 91 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testRingingCallTransition() 102 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(null); in testRingingCallRemoved() 113 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(null); in testWakeLockReleased() 124 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testAcquireWakeLockWhenHeld()
|
D | CallScreeningServiceFilterTest.java | 73 @Mock CallsManager mCallsManager; field in CallScreeningServiceFilterTest 113 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT); in setUp() 133 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testNoPackageName() 147 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testContextFailToBind() 161 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testNoResolveEntries() 174 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testBadResolveEntry() 193 CallScreeningServiceFilter.PACKAGE_TYPE_USER_CHOSEN, mContext, mCallsManager, in testNoBindingCondition() 205 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testBindingCondition() 216 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testAllowCall() 246 CallScreeningServiceFilter.PACKAGE_TYPE_CARRIER, mContext, mCallsManager, in testDisallowCall() [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()
|
D | ProximitySensorManagerTest.java | 44 @Mock CallsManager mCallsManager; field in ProximitySensorManagerTest 57 mProximitySensorManager = new ProximitySensorManager(telecomWakeLock, mCallsManager); in setUp() 70 when(mCallsManager.getCalls()).thenReturn(new ArrayList<Call>(){{ in testTurnOnProximityWithCallsActive() 83 when(mCallsManager.getCalls()).thenReturn(new ArrayList<Call>()); in testTurnOnProximityWithNoCallsActive() 105 when(mCallsManager.getCalls()).thenReturn(new ArrayList<Call>(){{ in testCallRemovedFromCallsManagerCallsActive() 118 when(mCallsManager.getCalls()).thenReturn(new ArrayList<Call>()); in testCallRemovedFromCallsManagerNoCallsActive()
|
D | NewOutgoingCallIntentBroadcasterTest.java | 87 @Mock private CallsManager mCallsManager; field in NewOutgoingCallIntentBroadcasterTest 103 when(mCallsManager.getLock()).thenReturn(new TelecomSystem.SyncRoot() { }); in setUp() 104 when(mCallsManager.getSystemStateHelper()).thenReturn(mSystemStateHelper); in setUp() 105 when(mCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in setUp() 106 when(mCallsManager.getPhoneAccountRegistrar()).thenReturn(mPhoneAccountRegistrar); in setUp() 107 when(mCallsManager.getRoleManagerAdapter()).thenReturn(mRoleManagerAdapter); in setUp() 157 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(Uri.parse(voicemailNumber)), in testVoicemailCall() 316 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), isNull(GatewayInfo.class), in emergencyCallTestHelper() 340 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), isNull(GatewayInfo.class), in testUnmodifiedRegularCall() 358 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(encHandle), isNull(GatewayInfo.class), in testUnmodifiedSipCall() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/ |
D | CallRedirectionProcessorHelper.java | 43 private final CallsManager mCallsManager; field in CallRedirectionProcessorHelper 51 mCallsManager = callsManager; in CallRedirectionProcessorHelper() 57 String packageName = mCallsManager.getRoleManagerAdapter().getDefaultCallRedirectionApp(); in getUserDefinedCallRedirectionService() 100 intent, 0, mCallsManager.getCurrentUserHandle().getIdentifier()); in getComponentName()
|
D | CallRedirectionProcessor.java | 221 private final CallsManager mCallsManager; field in CallRedirectionProcessor 284 mCallsManager = callsManager; in CallRedirectionProcessor() 315 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in onCallRedirectionComplete() 325 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in onCallRedirectionComplete() 374 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in performCarrierCallRedirection()
|