/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | IncomingCallFilterTest.java | 56 @Mock private Call mCall; field in IncomingCallFilterTest 121 when(mCall.getHandle()).thenReturn(TEST_HANDLE); in setUp() 136 IncomingCallFilter testFilter = new IncomingCallFilter(mContext, mResultCallback, mCall, in testAsyncBlockCallResultFilter() 139 verify(mFilter1).startFilterLookup(mCall, testFilter); in testAsyncBlockCallResultFilter() 141 testFilter.onCallFilteringComplete(mCall, ASYNC_BLOCK_CHECK_BLOCK_RESULT); in testAsyncBlockCallResultFilter() 143 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq in testAsyncBlockCallResultFilter() 150 IncomingCallFilter testFilter = new IncomingCallFilter(mContext, mResultCallback, mCall, in testDirectToVoiceMailCallResultFilter() 153 verify(mFilter1).startFilterLookup(mCall, testFilter); in testDirectToVoiceMailCallResultFilter() 155 testFilter.onCallFilteringComplete(mCall, DIRECT_TO_VOICEMAIL_CALL_BLOCK_RESULT); in testDirectToVoiceMailCallResultFilter() 157 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq in testDirectToVoiceMailCallResultFilter() [all …]
|
D | DtmfLocalTonePlayerTest.java | 42 @Mock Call mCall; field in DtmfLocalTonePlayerTest 52 when(mCall.getContext()).thenReturn(mContext); in setUp() 66 mPlayer.onForegroundCallChanged(null, mCall); in testSupportedStart() 76 mPlayer.onForegroundCallChanged(null, mCall); in testUnsupportedStart() 86 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenUninitialized() 87 mPlayer.playTone(mCall, '9'); in testPlayToneWhenUninitialized() 97 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenInitialized() 98 mPlayer.playTone(mCall, '9'); in testPlayToneWhenInitialized() 108 mPlayer.onForegroundCallChanged(null, mCall); in testStopToneWhenUninitialized() 109 mPlayer.stopTone(mCall); in testStopToneWhenUninitialized() [all …]
|
D | ParcelableCallUtilsTest.java | 50 private Call mCall; field in ParcelableCallUtilsTest 64 mCall = new Call("1", in setUp() 91 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForNonSystemDialer() 92 ParcelableCall call = ParcelableCallUtils.toParcelableCall(mCall, in testParcelForNonSystemDialer() 108 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForSystemDialer() 109 ParcelableCall call = ParcelableCallUtils.toParcelableCall(mCall, in testParcelForSystemDialer() 125 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForSystemCallScreening() 126 ParcelableCall call = ParcelableCallUtils.toParcelableCallForScreening(mCall, in testParcelForSystemCallScreening() 138 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForSystemNonSystemCallScreening() 139 ParcelableCall call = ParcelableCallUtils.toParcelableCallForScreening(mCall, in testParcelForSystemNonSystemCallScreening() [all …]
|
D | CallRedirectionProcessorTest.java | 78 @Mock private Call mCall; field in CallRedirectionProcessorTest 126 when(mCall.getTargetPhoneAccount()).thenReturn(mPhoneAccountHandle); 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() 221 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 236 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() 242 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() 249 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() [all …]
|
D | InCallWakeLockControllerTest.java | 44 @Mock Call mCall; field in InCallWakeLockControllerTest 69 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testRingingCallAdded() 72 mInCallWakeLockController.onCallAdded(mCall); in testRingingCallAdded() 83 mInCallWakeLockController.onCallAdded(mCall); in testNonRingingCallAdded() 91 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testRingingCallTransition() 94 mInCallWakeLockController.onCallStateChanged(mCall, CallState.NEW, CallState.RINGING); in testRingingCallTransition() 105 mInCallWakeLockController.onCallRemoved(mCall); in testRingingCallRemoved() 116 mInCallWakeLockController.onCallRemoved(mCall); in testWakeLockReleased() 124 when(mCallsManager.getRingingOrSimulatedRingingCall()).thenReturn(mCall); in testAcquireWakeLockWhenHeld()
|
D | VideoProviderProxyTest.java | 51 @Mock private Call mCall; field in VideoProviderProxyTest 65 when(mCall.getAnalytics()).thenReturn(mCallInfo); in setUp() 67 doNothing().when(mCall).maybeEnableSpeakerForVideoUpgrade(anyInt()); in setUp() 68 mVideoProviderProxy = new VideoProviderProxy(mLock, mVideoProvider, mCall, in setUp() 93 when(mCall.isLocallyVideoCapable()).thenReturn(false); in testReceiveUpgradeRequestWhenLocalDoesntSupportVideo() 94 when(mCall.isVideoCallingSupportedByPhoneAccount()).thenReturn(true); in testReceiveUpgradeRequestWhenLocalDoesntSupportVideo() 115 when(mCall.isLocallyVideoCapable()).thenReturn(true); in testReceiveUpgradeRequestWhenVideoIsSupported() 116 when(mCall.isVideoCallingSupportedByPhoneAccount()).thenReturn(true); in testReceiveUpgradeRequestWhenVideoIsSupported() 139 verify(mCall).maybeEnableSpeakerForVideoUpgrade(eq(VideoProfile.STATE_BIDIRECTIONAL)); in testTryToEnableSpeakerOnVideoUpgrade()
|
D | CallScreeningServiceFilterTest.java | 69 static @Mock Call mCall; field in CallScreeningServiceFilterTest 114 when(mCall.getId()).thenReturn(CALL_ID); in setUp() 121 eq(mCall), anyBoolean(), eq(mPhoneAccountRegistrar))).thenReturn(null); in setUp() 132 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, null, in testNoPackageName() 146 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testContextFailToBind() 160 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoResolveEntries() 173 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testBadResolveEntry() 192 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoBindingCondition() 204 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testBindingCondition() 215 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testAllowCall() [all …]
|
D | NewOutgoingCallIntentBroadcasterTest.java | 88 @Mock private Call mCall; field in NewOutgoingCallIntentBroadcasterTest 102 when(mCall.getInitiatingUser()).thenReturn(UserHandle.CURRENT); in setUp() 157 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(Uri.parse(voicemailNumber)), in testVoicemailCall() 193 doReturn(true).when(mCall).isDisconnected(); in testAlreadyDisconnectedCall() 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() 378 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), in testCallWithGatewayInfo() 394 verify(mCall).disconnect(timeoutCaptor.capture()); in testCallNumberModifiedToNull() 414 verify(mCall).disconnect(timeoutCaptor.capture()); in testCallNumberModifiedToNullWithLongCustomTimeout() [all …]
|
D | IncomingCallFilterGraphTest.java | 49 @Mock private Call mCall; field in IncomingCallFilterGraphTest 117 IncomingCallFilterGraph graph = new IncomingCallFilterGraph(mCall, listener, mContext, in testEmptyGraph() 130 IncomingCallFilterGraph graph = new IncomingCallFilterGraph(mCall, listener, mContext, in testFiltersPerformOrder() 148 IncomingCallFilterGraph graph = new IncomingCallFilterGraph(mCall, listener, mContext, in testFiltersPerformInParallel() 167 IncomingCallFilterGraph graph = new IncomingCallFilterGraph(mCall, listener, mContext, in testFiltersTimeout()
|
D | BlockCheckerFilterTest.java | 60 @Mock Call mCall; field in BlockCheckerFilterTest 88 when(mCall.getHandle()).thenReturn(TEST_HANDLE); in setUp() 89 mFilter = new BlockCheckerFilter(mContext, mCall, mCallerInfoLookupHelper, in setUp() 152 when(mCall.getHandlePresentation()).thenReturn(TelecomManager.PRESENTATION_ALLOWED); in setEnhancedBlockingEnabled()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 116 private final Call mCall; field in CreateConnectionProcessor 133 mCall = call; in CreateConnectionProcessor() 163 if (mCall.getTargetPhoneAccount() != null) { in process() 165 mCall.getTargetPhoneAccount(), mCall.getTargetPhoneAccount())); in process() 167 if (!mCall.isSelfManaged()) { in process() 169 adjustAttemptsForEmergency(mCall.getTargetPhoneAccount()); in process() 196 ConnectionServiceWrapper service = mCall.getConnectionService(); in abort() 198 service.abort(mCall); in abort() 199 mCall.clearConnectionService(); in abort() 244 mCall.setConnectionManagerPhoneAccount(attempt.connectionManagerPhoneAccount); in attemptNextPhoneAccount() [all …]
|
D | VideoProviderProxy.java | 89 private Call mCall; field in VideoProviderProxy 126 mCall = call; in VideoProviderProxy() 159 Log.addEvent(mCall, LogUtils.Events.RECEIVE_VIDEO_REQUEST, in receiveSessionModifyRequest() 162 mCall.getAnalytics().addVideoEvent( in receiveSessionModifyRequest() 166 if ((!mCall.isVideoCallingSupportedByPhoneAccount() in receiveSessionModifyRequest() 167 || !mCall.isLocallyVideoCapable()) in receiveSessionModifyRequest() 172 Log.addEvent(mCall, LogUtils.Events.SEND_VIDEO_RESPONSE, in receiveSessionModifyRequest() 188 listener.onSessionModifyRequestReceived(mCall, videoProfile); in receiveSessionModifyRequest() 213 Log.addEvent(mCall, LogUtils.Events.RECEIVE_VIDEO_RESPONSE, eventMessage); in receiveSessionModifyResponse() 216 mCall.getAnalytics().addVideoEvent( in receiveSessionModifyResponse() [all …]
|
D | NewOutgoingCallIntentBroadcaster.java | 75 private Call mCall; field in NewOutgoingCallIntentBroadcaster 131 Log.i(this, "Received new-outgoing-call-broadcast for %s with data %s", mCall, in onReceive() 150 if (mCall != null) { in onReceive() 151 mCall.disconnect(disconnectTimeout); in onReceive() 157 if (mCall.isDisconnected()) { in onReceive() 159 " ignore the broadcast Call %s", mCall); in onReceive() 184 placeOutgoingCallImmediately(mCall, resultHandleUri, gatewayInfo, in onReceive() 333 mCall = call; in processCall() 340 placeOutgoingCallImmediately(mCall, disposition.callingAddress, null, in processCall() 352 mContext, mCallsManager, mCall, disposition.callingAddress, in processCall() [all …]
|
D | RingbackPlayer.java | 38 private Call mCall; field in RingbackPlayer 57 if (mCall == call) { in startRingbackForCall() 62 if (mCall != null) { in startRingbackForCall() 68 mCall = call; in startRingbackForCall() 83 if (mCall == call) { in stopRingbackForCall() 86 mCall = null; in stopRingbackForCall()
|
D | CreateConnectionTimeout.java | 37 private final Call mCall; field in CreateConnectionTimeout 48 mCall = call; in CreateConnectionTimeout() 54 if (!mCall.isEmergencyCall()) { in isTimeoutNeededForCall() 61 mPhoneAccountRegistrar.getSimCallManagerFromCall(mCall); in isTimeoutNeededForCall() 107 if (mIsRegistered && isCallBeingPlaced(mCall)) { in loggedRun() 110 mConnectionService.disconnect(mCall); in loggedRun()
|
D | DtmfLocalTonePlayer.java | 128 private Call mCall; field in DtmfLocalTonePlayer 161 if (mCall != call) { in playTone() 176 if (mCall != call) { in stopTone() 202 mCall = call; in startDtmfSession() 217 if (call != null && mCall == call) { in endDtmfSession() 221 mCall = null; in endDtmfSession()
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
D | CallScreeningServiceFilter.java | 48 private final Call mCall; field in CallScreeningServiceFilter 70 if (mCall == null || (!mCall.getId().equals(callId))) { in allowCall() 88 if (mCall != null && mCall.getId().equals(callId)) { in disallowCall() 117 if (mCall != null && mCall.getId().equals(callId)) { in silenceCall() 148 if (mCall != null && mCall.getId().equals(callId)) { in screenCallFurther() 183 toParcelableCallForScreening(mCall, isSystemDialer())); in onServiceConnected() 220 mCall = call; in CallScreeningServiceFilter()
|
D | BlockCheckerFilter.java | 40 private final Call mCall; field in BlockCheckerFilter 54 mCall = call; in BlockCheckerFilter() 66 Log.addEvent(mCall, LogUtils.Events.BLOCK_CHECK_INITIATED); in startFilterLookup() 70 int presentation = mCall.getHandlePresentation(); in startFilterLookup() 73 mCallerInfoLookupHelper.startLookup(mCall.getHandle(), in startFilterLookup() 102 int presentation = mCall.getHandlePresentation(); in getBlockStatus() 110 final String number = mCall.getHandle() == null ? null : in getBlockStatus() 111 mCall.getHandle().getSchemeSpecificPart(); in getBlockStatus() 144 Log.addEvent(mCall, LogUtils.Events.BLOCK_CHECK_FINISHED, in completeResult()
|
D | IncomingCallFilter.java | 53 private final Call mCall; field in IncomingCallFilter 72 mCall = call; in IncomingCallFilter() 81 Log.addEvent(mCall, LogUtils.Events.FILTERING_INITIATED); in performFiltering() 83 filter.startFilterLookup(mCall, this); in performFiltering() 91 Log.addEvent(mCall, LogUtils.Events.FILTERING_TIMED_OUT); in performFiltering() 92 mListener.onCallFilteringComplete(mCall, mResult); in performFiltering() 109 Log.addEvent(mCall, LogUtils.Events.FILTERING_COMPLETED, mResult); in onCallFilteringComplete() 110 mListener.onCallFilteringComplete(mCall, mResult); in onCallFilteringComplete()
|
D | DirectToVoicemailFilter.java | 33 private final Call mCall; field in DirectToVoicemailFilter 37 mCall = call; in DirectToVoicemailFilter() 43 Log.addEvent(mCall, LogUtils.Events.DIRECT_TO_VM_INITIATED); in startFilterLookup() 45 mCallerInfoLookupHelper.startLookup(mCall.getHandle(), in startFilterLookup() 49 if ((handle != null) && Objects.equals(mCall.getHandle(), handle) in startFilterLookup() 68 mCall.getHandle()); in startFilterLookup() 72 Log.addEvent(mCall, LogUtils.Events.DIRECT_TO_VM_FINISHED); in startFilterLookup()
|
D | IncomingCallFilterGraph.java | 47 private final Call mCall; field in IncomingCallFilterGraph 76 mListener.onCallFilteringComplete(mCall, result); in whenDone() 77 Log.addEvent(mCall, LogUtils.Events.FILTERING_COMPLETED, result); in whenDone() 88 mCall = call; in IncomingCallFilterGraph() 106 Log.addEvent(mCall, LogUtils.Events.FILTERING_INITIATED); in performFiltering() 124 Log.addEvent(mCall, LogUtils.Events.FILTERING_TIMED_OUT); in performFiltering() 125 mListener.onCallFilteringComplete(mCall, mCurrentResult); in performFiltering()
|
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/ |
D | CallRedirectionProcessor.java | 100 Log.addEvent(mCall, mServiceType.equals(SERVICE_TYPE_USER_DEFINED) in onServiceBound() 123 onCallRedirectionComplete(mCall); in finishCallRedirection() 133 Log.addEvent(mCall, mServiceType.equals(SERVICE_TYPE_USER_DEFINED) in onServiceConnected() 222 private final Call mCall; field in CallRedirectionProcessor 285 mCall = call; in CallRedirectionProcessor() 312 Log.addEvent(mCall, LogUtils.Events.REDIRECTION_COMPLETED_USER); in onCallRedirectionComplete() 315 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in onCallRedirectionComplete() 323 Log.addEvent(mCall, LogUtils.Events.REDIRECTION_COMPLETED_CARRIER); in onCallRedirectionComplete() 325 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in onCallRedirectionComplete() 374 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in performCarrierCallRedirection() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallTime.java | 46 private Call mCall; field in CallTime 72 mCall = call; in setActiveCallMode() 98 if (mCall != null) { in periodicUpdateTimer() 99 Call.State state = mCall.getState(); in periodicUpdateTimer() 102 updateElapsedTime(mCall); in periodicUpdateTimer()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestCallList.java | 52 private Call mCall; field in TestCallList.TestVideoCallListener 55 mCall = call; in TestVideoCallListener() 62 + " call = " + mCall); in onSessionModifyRequestReceived() 71 + " call = " + mCall); in onSessionModifyResponseReceived() 87 "onVideoQualityChanged: videoQuality = " + videoQuality + " call = " + mCall); in onVideoQualityChanged()
|
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/ |
D | CarModeCallList.java | 52 private Call mCall; field in CarModeCallList.TestVideoCallListener 55 mCall = call; in TestVideoCallListener() 62 + " call = " + mCall); in onSessionModifyRequestReceived() 71 + " call = " + mCall); in onSessionModifyResponseReceived() 87 "onVideoQualityChanged: videoQuality = " + videoQuality + " call = " + mCall); in onVideoQualityChanged()
|