Home
last modified time | relevance | path

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

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DIncomingCallFilterTest.java53 @Mock private Call mCall; field in IncomingCallFilterTest
116 when(mCall.getHandle()).thenReturn(TEST_HANDLE); in setUp()
123 IncomingCallFilter testFilter = new IncomingCallFilter(mContext, mResultCallback, mCall, in testAsyncBlockCallResultFilter()
126 verify(mFilter1).startFilterLookup(mCall, testFilter); in testAsyncBlockCallResultFilter()
128 testFilter.onCallFilteringComplete(mCall, ASYNC_BLOCK_CHECK_BLOCK_RESULT); in testAsyncBlockCallResultFilter()
130 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq in testAsyncBlockCallResultFilter()
137 IncomingCallFilter testFilter = new IncomingCallFilter(mContext, mResultCallback, mCall, in testDirectToVoiceMailCallResultFilter()
140 verify(mFilter1).startFilterLookup(mCall, testFilter); in testDirectToVoiceMailCallResultFilter()
142 testFilter.onCallFilteringComplete(mCall, DIRECT_TO_VOICEMAIL_CALL_BLOCK_RESULT); in testDirectToVoiceMailCallResultFilter()
144 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq in testDirectToVoiceMailCallResultFilter()
[all …]
DCallScreeningServiceControllerTest.java73 @Mock Call mCall; field in CallScreeningServiceControllerTest
141 when(mCall.getId()).thenReturn(CALL_ID); in setUp()
157 eq(mCall), anyBoolean(), eq(mPhoneAccountRegistrar))).thenReturn(null); in setUp()
160 when(mCall.getHandle()).thenReturn(TEST_HANDLE); in setUp()
173 controller.startFilterLookup(mCall, mCallback); in testAllAllowCall()
175 controller.onCallScreeningFilterComplete(mCall, PASS_RESULT, in testAllAllowCall()
183 controller.onCallScreeningFilterComplete(mCall, PASS_RESULT, in testAllAllowCall()
185 controller.onCallScreeningFilterComplete(mCall, PASS_RESULT, USER_CHOSEN_CALL_SCREENING in testAllAllowCall()
193 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testAllAllowCall()
204 controller.startFilterLookup(mCall, mCallback); in testCarrierAllowCallAndContactExists()
[all …]
DCallScreeningServiceFilterTest.java79 @Mock Call mCall; field in CallScreeningServiceFilterTest
144 when(mCall.getId()).thenReturn(CALL_ID); in setUp()
160 eq(mCall), anyBoolean(), eq(mPhoneAccountRegistrar))).thenReturn(null); in setUp()
168 mFilter.startCallScreeningFilter(mCall, mCallback, null, null, in testNoPackageName()
170 verify(mCallback).onCallScreeningFilterComplete(eq(mCall), eq(PASS_RESULT), eq(null)); in testNoPackageName()
178 mFilter.startCallScreeningFilter(mCall, mCallback, PKG_NAME, APP_NAME, in testNoResolveEntries()
180 verify(mCallback).onCallScreeningFilterComplete(eq(mCall), eq(PASS_RESULT), eq(PKG_NAME)); in testNoResolveEntries()
187 mFilter.startCallScreeningFilter(mCall, mCallback, PKG_NAME, APP_NAME, in testBadResolveEntry()
189 verify(mCallback).onCallScreeningFilterComplete(eq(mCall), eq(PASS_RESULT), eq(PKG_NAME)); in testBadResolveEntry()
196 mFilter.startCallScreeningFilter(mCall, mCallback, PKG_NAME, APP_NAME, in testPermissionlessFilterService()
[all …]
DDtmfLocalTonePlayerTest.java41 @Mock Call mCall; field in DtmfLocalTonePlayerTest
50 when(mCall.getContext()).thenReturn(mContext); in setUp()
58 mPlayer.onForegroundCallChanged(null, mCall); in testSupportedStart()
68 mPlayer.onForegroundCallChanged(null, mCall); in testUnsupportedStart()
78 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenUninitialized()
79 mPlayer.playTone(mCall, '9'); in testPlayToneWhenUninitialized()
89 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenInitialized()
90 mPlayer.playTone(mCall, '9'); in testPlayToneWhenInitialized()
100 mPlayer.onForegroundCallChanged(null, mCall); in testStopToneWhenUninitialized()
101 mPlayer.stopTone(mCall); in testStopToneWhenUninitialized()
[all …]
DCallRedirectionProcessorTest.java67 @Mock private Call mCall; field in CallRedirectionProcessorTest
110 when(mCall.getTargetPhoneAccount()).thenReturn(mPhoneAccountHandle); in setUp()
154 mProcessor = new CallRedirectionProcessor(mContext, mCallsManager, mCall, mHandle, in startProcessWithNoGateWayInfo()
160 mProcessor = new CallRedirectionProcessor(mContext, mCallsManager, mCall, mHandle, in startProcessWithGateWayInfo()
173 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), eq(mHandle), in testNoUserDefinedServiceNoCarrierSerivce()
188 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService()
193 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService()
208 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService()
214 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService()
221 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService()
[all …]
DInCallWakeLockControllerTest.java44 @Mock Call mCall; field in InCallWakeLockControllerTest
69 when(mCallsManager.getRingingCall()).thenReturn(mCall); in testRingingCallAdded()
72 mInCallWakeLockController.onCallAdded(mCall); in testRingingCallAdded()
83 mInCallWakeLockController.onCallAdded(mCall); in testNonRingingCallAdded()
91 when(mCallsManager.getRingingCall()).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.getRingingCall()).thenReturn(mCall); in testAcquireWakeLockWhenHeld()
DParcelableCallUtilsTest.java51 private Call mCall; field in ParcelableCallUtilsTest
64 mCall = new Call("1", in setUp()
84 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForNonSystemDialer()
85 ParcelableCall call = ParcelableCallUtils.toParcelableCall(mCall, in testParcelForNonSystemDialer()
101 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForSystemDialer()
102 ParcelableCall call = ParcelableCallUtils.toParcelableCall(mCall, in testParcelForSystemDialer()
118 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForSystemCallScreening()
119 ParcelableCall call = ParcelableCallUtils.toParcelableCallForScreening(mCall, in testParcelForSystemCallScreening()
131 mCall.putExtras(Call.SOURCE_CONNECTION_SERVICE, getSomeExtras()); in testParcelForSystemNonSystemCallScreening()
132 ParcelableCall call = ParcelableCallUtils.toParcelableCallForScreening(mCall, in testParcelForSystemNonSystemCallScreening()
DVideoProviderProxyTest.java50 @Mock private Call mCall; field in VideoProviderProxyTest
64 when(mCall.getAnalytics()).thenReturn(mCallInfo); in setUp()
66 doNothing().when(mCall).maybeEnableSpeakerForVideoUpgrade(anyInt()); in setUp()
67 mVideoProviderProxy = new VideoProviderProxy(mLock, mVideoProvider, mCall, in setUp()
86 when(mCall.isLocallyVideoCapable()).thenReturn(false); in testReceiveUpgradeRequestWhenLocalDoesntSupportVideo()
87 when(mCall.isVideoCallingSupportedByPhoneAccount()).thenReturn(true); in testReceiveUpgradeRequestWhenLocalDoesntSupportVideo()
108 when(mCall.isLocallyVideoCapable()).thenReturn(true); in testReceiveUpgradeRequestWhenVideoIsSupported()
109 when(mCall.isVideoCallingSupportedByPhoneAccount()).thenReturn(true); in testReceiveUpgradeRequestWhenVideoIsSupported()
132 verify(mCall).maybeEnableSpeakerForVideoUpgrade(eq(VideoProfile.STATE_BIDIRECTIONAL)); in testTryToEnableSpeakerOnVideoUpgrade()
DAsyncBlockCheckFilterTest.java57 @Mock private Call mCall; field in AsyncBlockCheckFilterTest
88 when(mCall.getHandle()).thenReturn(TEST_HANDLE); in setUp()
105 mFilter.startFilterLookup(mCall, mCallback); in testBlockNumber()
109 .onCallFilteringComplete(eq(mCall), eq(BLOCK_RESULT)); in testBlockNumber()
129 .onCallFilteringComplete(eq(mCall), eq(BLOCK_RESULT)); in testBlockNumber_enhancedBlockingEnabled()
144 mFilter.startFilterLookup(mCall, mCallback); in testDontBlockNumber()
148 .onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testDontBlockNumber()
168 .onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testDontBlockNumber_enhancedBlockingEnabled()
183 when(mCall.getHandlePresentation()).thenReturn(TelecomManager.PRESENTATION_ALLOWED); in verifyEnhancedLookupStart()
184 mFilter.startFilterLookup(mCall, mCallback); in verifyEnhancedLookupStart()
DDirectToVoicemailCallFilterTest.java45 @Mock private Call mCall; field in DirectToVoicemailCallFilterTest
64 verify(mCallback).onCallFilteringComplete(mCall, in testSendToVoicemail()
85 verify(mCallback).onCallFilteringComplete(mCall, in testDontSendToVoicemail()
100 verify(mCallback).onCallFilteringComplete(mCall, in testNullResponseFromLookupHelper()
114 when(mCall.getHandle()).thenReturn(handle); in verifyLookupStart()
117 filter.startFilterLookup(mCall, mCallback); in verifyLookupStart()
DNewOutgoingCallIntentBroadcasterTest.java84 @Mock private Call mCall; field in NewOutgoingCallIntentBroadcasterTest
98 when(mCall.getInitiatingUser()).thenReturn(UserHandle.CURRENT); in setUp()
129 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(Uri.parse(voicemailNumber)), in testVoicemailCall()
165 doReturn(true).when(mCall).isDisconnected(); in testAlreadyDisconnectedCall()
282 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), isNull(GatewayInfo.class), in emergencyCallTestHelper()
306 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), isNull(GatewayInfo.class), in testUnmodifiedRegularCall()
324 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(encHandle), isNull(GatewayInfo.class), in testUnmodifiedSipCall()
344 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), in testCallWithGatewayInfo()
360 verify(mCall).disconnect(timeoutCaptor.capture()); in testCallNumberModifiedToNull()
380 verify(mCall).disconnect(timeoutCaptor.capture()); in testCallNumberModifiedToNullWithLongCustomTimeout()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java115 private final Call mCall; field in CreateConnectionProcessor
132 mCall = call; in CreateConnectionProcessor()
162 if (mCall.getTargetPhoneAccount() != null) { in process()
164 mCall.getTargetPhoneAccount(), mCall.getTargetPhoneAccount())); in process()
166 if (!mCall.isSelfManaged()) { in process()
168 adjustAttemptsForEmergency(mCall.getTargetPhoneAccount()); in process()
195 ConnectionServiceWrapper service = mCall.getConnectionService(); in abort()
197 service.abort(mCall); in abort()
198 mCall.clearConnectionService(); in abort()
243 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.java74 private final Call mCall; field in NewOutgoingCallIntentBroadcaster
105 mCall = call; in NewOutgoingCallIntentBroadcaster()
129 Log.i(this, "Received new-outgoing-call-broadcast for %s with data %s", mCall, in onReceive()
149 if (mCall != null) { in onReceive()
150 mCall.disconnect(disconnectTimeout); in onReceive()
156 if (mCall.isDisconnected()) { in onReceive()
158 " ignore the broadcast Call %s", mCall); in onReceive()
183 placeOutgoingCallImmediately(mCall, resultHandleUri, gatewayInfo, in onReceive()
338 placeOutgoingCallImmediately(mCall, disposition.callingAddress, null, in processCall()
350 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.java79 private final Call mCall; field in CallScreeningServiceHelper
93 mCall = call; in CallScreeningServiceHelper()
127 mParcelableCallUtilsConverter.toParcelableCallForScreening(mCall, in bindAndGetCallIdentification()
157 Log.addEvent(mCall, LogUtils.Events.BIND_SCREENING, mPackageName); in bindAndGetCallIdentification()
DServiceBinder.java138 private Call mCall; field in ServiceBinder.ServiceBinderConnection
141 mCall = call; in ServiceBinderConnection()
151 Log.addEvent(mCall, LogUtils.Events.CS_BOUND, componentName); in onServiceConnected()
152 mCall = null; in onServiceConnected()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DCallScreeningServiceFilter.java67 Log.addEvent(mCall, LogUtils.Events.SCREENING_BOUND, componentName); in onServiceConnected()
98 if (mCall != null && mCall.getId().equals(callId)) { in allowCall()
133 if (mCall != null && mCall.getId().equals(callId)) { in disallowCall()
162 if (mCall != null && mCall.getId().equals(callId)) { in silenceCall()
188 private Call mCall; field in CallScreeningServiceFilter
228 mCall = call; in startCallScreeningFilter()
246 Log.addEvent(mCall, LogUtils.Events.SCREENING_COMPLETED, mResult); in finishCallScreening()
247 mCallback.onCallScreeningFilterComplete(mCall, mResult, mPackageName); in finishCallScreening()
273 mParcelableCallUtilsConverter.toParcelableCallForScreening(mCall, in onServiceBound()
DIncomingCallFilter.java43 private final Call mCall; field in IncomingCallFilter
62 mCall = call; in IncomingCallFilter()
70 Log.addEvent(mCall, LogUtils.Events.FILTERING_INITIATED); in performFiltering()
72 filter.startFilterLookup(mCall, this); in performFiltering()
80 Log.addEvent(mCall, LogUtils.Events.FILTERING_TIMED_OUT); in performFiltering()
81 mListener.onCallFilteringComplete(mCall, mResult); in performFiltering()
98 Log.addEvent(mCall, LogUtils.Events.FILTERING_COMPLETED, mResult); in onCallFilteringComplete()
99 mListener.onCallFilteringComplete(mCall, mResult); in onCallFilteringComplete()
DCallScreeningServiceController.java66 private Call mCall; field in CallScreeningServiceController
102 mCall = call; in startFilterLookup()
162 createCallScreeningServiceFilter().startCallScreeningFilter(mCall, this, in bindCarrierService()
189 createCallScreeningServiceFilter().startCallScreeningFilter(mCall, in bindDefaultDialerAndUserChosenService()
198 createCallScreeningServiceFilter().startCallScreeningFilter(mCall, in bindDefaultDialerAndUserChosenService()
221 mCallerInfoLookupHelper.startLookup(mCall.getHandle(), in checkContactExistsAndBindService()
244 Log.addEvent(mCall, LogUtils.Events.CONTROLLER_SCREENING_COMPLETED, mResult); in finishCallScreening()
245 mCallback.onCallFilteringComplete(mCall, mResult); in finishCallScreening()
/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
279 mCall = call; in CallRedirectionProcessor()
305 Log.addEvent(mCall, LogUtils.Events.REDIRECTION_COMPLETED_USER); in onCallRedirectionComplete()
308 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in onCallRedirectionComplete()
316 Log.addEvent(mCall, LogUtils.Events.REDIRECTION_COMPLETED_CARRIER); in onCallRedirectionComplete()
318 mCallsManager.onCallRedirectionComplete(mCall, mDestinationUri, in onCallRedirectionComplete()
367 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()

12