Home
last modified time | relevance | path

Searched refs:mCall (Results 1 – 25 of 31) sorted by relevance

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DIncomingCallFilterTest.java56 @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 …]
DDtmfLocalTonePlayerTest.java42 @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 …]
DParcelableCallUtilsTest.java50 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 …]
DCallRedirectionProcessorTest.java78 @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 …]
DInCallWakeLockControllerTest.java44 @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()
DVideoProviderProxyTest.java51 @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()
DCallScreeningServiceFilterTest.java69 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 …]
DNewOutgoingCallIntentBroadcasterTest.java88 @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 …]
DIncomingCallFilterGraphTest.java49 @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()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java117 private final Call mCall; field in CreateConnectionProcessor
134 mCall = call; in CreateConnectionProcessor()
164 if (mCall.getTargetPhoneAccount() != null) { in process()
166 mCall.getTargetPhoneAccount(), mCall.getTargetPhoneAccount())); in process()
168 if (!mCall.isSelfManaged()) { in process()
170 adjustAttemptsForEmergency(mCall.getTargetPhoneAccount()); in process()
197 ConnectionServiceWrapper service = mCall.getConnectionService(); in abort()
199 service.abort(mCall); in abort()
200 mCall.clearConnectionService(); in abort()
245 mCall.setConnectionManagerPhoneAccount(attempt.connectionManagerPhoneAccount); in attemptNextPhoneAccount()
[all …]
DVideoProviderProxy.java89 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 …]
DNewOutgoingCallIntentBroadcaster.java76 private Call mCall; field in NewOutgoingCallIntentBroadcaster
132 Log.i(this, "Received new-outgoing-call-broadcast for %s with data %s", mCall, in onReceive()
151 if (mCall != null) { in onReceive()
152 mCall.disconnect(disconnectTimeout); in onReceive()
158 if (mCall.isDisconnected()) { in onReceive()
160 " ignore the broadcast Call %s", mCall); in onReceive()
185 placeOutgoingCallImmediately(mCall, resultHandleUri, gatewayInfo, in onReceive()
334 mCall = call; in processCall()
341 placeOutgoingCallImmediately(mCall, disposition.callingAddress, null, in processCall()
353 mContext, mCallsManager, mCall, disposition.callingAddress, in processCall()
[all …]
DRingbackPlayer.java38 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()
DCreateConnectionTimeout.java37 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()
DDtmfLocalTonePlayer.java128 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()
DCallScreeningServiceHelper.java85 private final Call mCall; field in CallScreeningServiceHelper
99 mCall = call; in CallScreeningServiceHelper()
133 mParcelableCallUtilsConverter.toParcelableCallForScreening(mCall, in bindAndGetCallIdentification()
163 Log.addEvent(mCall, LogUtils.Events.BIND_SCREENING, mPackageName); in bindAndGetCallIdentification()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DCallScreeningServiceFilter.java49 private final Call mCall; field in CallScreeningServiceFilter
71 if (mCall == null || (!mCall.getId().equals(callId))) { in allowCall()
74 Log.addEvent(mCall, LogUtils.Events.SCREENING_COMPLETED, mPriorStageResult); in allowCall()
90 if (mCall != null && mCall.getId().equals(callId)) { in disallowCall()
103 Log.addEvent(mCall, LogUtils.Events.SCREENING_COMPLETED, result); in disallowCall()
121 if (mCall != null && mCall.getId().equals(callId)) { in silenceCall()
130 Log.addEvent(mCall, LogUtils.Events.SCREENING_COMPLETED, result); in silenceCall()
154 if (mCall != null && mCall.getId().equals(callId)) { in screenCallFurther()
163 Log.addEvent(mCall, LogUtils.Events.SCREENING_COMPLETED, result); in screenCallFurther()
191 toParcelableCallForScreening(mCall, isSystemDialer())); in onServiceConnected()
[all …]
DBlockCheckerFilter.java40 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()
DIncomingCallFilter.java53 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()
DDirectToVoicemailFilter.java33 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()
DIncomingCallFilterGraph.java47 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/
DCallRedirectionProcessor.java100 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/
DCallTime.java46 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/
DTestCallList.java52 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/
DCarModeCallList.java52 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()

12