Home
last modified time | relevance | path

Searched refs:Call (Results 1 – 25 of 189) sorted by relevance

12345678

/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallViewModel.java25 import android.telecom.Call;
60 private final MutableLiveData<List<Call>> mCallListLiveData;
61 private final MutableLiveData<List<Call>> mOngoingCallListLiveData;
62 private final MutableLiveData<List<Call>> mConferenceCallListLiveData;
64 private final Comparator<Call> mCallComparator;
66 private final MutableLiveData<Call> mIncomingCallLiveData;
70 private final LiveData<Call> mPrimaryCallLiveData;
71 private final LiveData<Call> mSecondaryCallLiveData;
73 private final LiveData<Pair<Call, Call>> mOngoingCallPairLiveData;
90 for (Call call : mInCallService.getCalls()) {
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DParcelableCallUtils.java19 import static android.telecom.Call.Details.DIRECTION_INCOMING;
20 import static android.telecom.Call.Details.DIRECTION_OUTGOING;
21 import static android.telecom.Call.Details.DIRECTION_UNKNOWN;
67 public ParcelableCall toParcelableCall(Call call, boolean includeVideoProvider, in toParcelableCall()
73 public ParcelableCall toParcelableCallForScreening(Call call, in toParcelableCallForScreening()
99 Call call, in toParcelableCall()
130 Call call, in toParcelableCall()
148 properties |= android.telecom.Call.Details.PROPERTY_CONFERENCE; in toParcelableCall()
152 properties |= android.telecom.Call.Details.PROPERTY_ENTERPRISE_CALL; in toParcelableCall()
156 properties |= android.telecom.Call.Details.PROPERTY_VOIP_AUDIO_MODE; in toParcelableCall()
[all …]
DCallsManager.java148 public class CallsManager extends Call.ListenerBase
154 void onCallAdded(Call call); in onCallAdded()
155 void onCallRemoved(Call call); in onCallRemoved()
156 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged()
158 Call call, in onConnectionServiceChanged()
161 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered()
162 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected()
164 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested()
165 void onIsConferencedChanged(Call call); in onIsConferencedChanged()
166 void onIsVoipAudioModeChanged(Call call); in onIsVoipAudioModeChanged()
[all …]
DCall.java85 public class Call implements CreateConnectionResponse, EventManager.Loggable, class
112 void onSuccessfulOutgoingCall(Call call, int callState); in onSuccessfulOutgoingCall()
113 void onFailedOutgoingCall(Call call, DisconnectCause disconnectCause); in onFailedOutgoingCall()
114 void onSuccessfulIncomingCall(Call call); in onSuccessfulIncomingCall()
115 void onFailedIncomingCall(Call call); in onFailedIncomingCall()
116 void onSuccessfulUnknownCall(Call call, int callState); in onSuccessfulUnknownCall()
117 void onFailedUnknownCall(Call call); in onFailedUnknownCall()
118 void onRingbackRequested(Call call, boolean ringbackRequested); in onRingbackRequested()
119 void onPostDialWait(Call call, String remaining); in onPostDialWait()
120 void onPostDialChar(Call call, char nextChar); in onPostDialChar()
[all …]
DCallAudioManager.java45 private final LinkedHashSet<Call> mActiveDialingOrConnectingCalls;
46 private final LinkedHashSet<Call> mRingingCalls;
47 private final LinkedHashSet<Call> mHoldingCalls;
48 private final LinkedHashSet<Call> mAudioProcessingCalls;
49 private final Set<Call> mCalls;
50 private final SparseArray<LinkedHashSet<Call>> mCallStateToCalls;
61 private Call mForegroundCall;
79 mCallStateToCalls = new SparseArray<LinkedHashSet<Call>>() {{ in CallAudioManager()
105 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged()
114 HashSet<Call> newBinForCall = getBinForCall(call); in onCallStateChanged()
[all …]
DCallsManagerListenerBase.java28 public void onCallAdded(Call call) { in onCallAdded()
32 public void onCallRemoved(Call call) { in onCallRemoved()
36 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged()
41 Call call, in onConnectionServiceChanged()
47 public void onIncomingCallAnswered(Call call) { in onIncomingCallAnswered()
51 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { in onIncomingCallRejected()
60 public void onRingbackRequested(Call call, boolean ringback) { in onRingbackRequested()
64 public void onIsConferencedChanged(Call call) { in onIsConferencedChanged()
68 public void onIsVoipAudioModeChanged(Call call) { in onIsVoipAudioModeChanged()
72 public void onVideoStateChanged(Call call, int previousVideoState, int newVideoState) { in onVideoStateChanged()
[all …]
DConnectionServiceWrapper.java145 Call call = mCallIdMapper.getCall(callId); in setActive()
168 Call call = mCallIdMapper.getCall(callId); in setRinging()
191 Call call = mCallIdMapper.getCall(callId); in resetConnectionTime()
212 Call call = mCallIdMapper.getCall(callId); in setVideoProvider()
233 Call call = mCallIdMapper.getCall(callId); in setDialing()
256 Call call = mCallIdMapper.getCall(callId); in setPulling()
279 Call call = mCallIdMapper.getCall(callId); in setDisconnected()
303 Call call = mCallIdMapper.getCall(callId); in setOnHold()
327 Call call = mCallIdMapper.getCall(callId); in setRingbackRequested()
350 Call call = mCallIdMapper.getCall(callId); in removeCall()
[all …]
DInCallAdapter.java59 Call call = mCallIdMapper.getCall(callId); in answerCall()
82 Call call = mCallIdMapper.getCall(callId); in deflectCall()
115 Call call = mCallIdMapper.getCall(callId); in rejectCall()
132 @android.telecom.Call.RejectReason int rejectReason) { in rejectCallWithReason()
141 Call call = mCallIdMapper.getCall(callId); in rejectCallWithReason()
164 Call call = mCallIdMapper.getCall(callId); in transferCall()
188 Call call = mCallIdMapper.getCall(callId); in consultativeTransfer()
189 Call otherCall = mCallIdMapper.getCall(otherCallId); in consultativeTransfer()
213 Call call = mCallIdMapper.getCall(callId); in playDtmfTone()
236 Call call = mCallIdMapper.getCall(callId); in stopDtmfTone()
[all …]
DInCallController.java91 public void onDisconnect(InCallServiceConnection conn, Call call) {} in onDisconnect()
96 public int connect(Call call) { return CONNECTION_FAILED; } in connect()
105 public Call mCall;
267 public int connect(Call call) { in connect()
391 public void onDisconnect(InCallServiceConnection subConnection, Call call) {
417 public int connect(Call call) { in connect()
436 extras.putLong(android.telecom.Call.EXTRA_LAST_EMERGENCY_CALLBACK_TIME_MILLIS, in connect()
438 call.putExtras(Call.SOURCE_CONNECTION_SERVICE, extras); in connect()
611 public int connect(Call call) { in connect()
690 public int connect(Call call) { in connect()
[all …]
DBluetoothPhoneServiceImpl.java90 private Call mOldHeldCall = null;
107 Call call = mCallsManager.getRingingOrSimulatedRingingCall();
129 Call call = mCallsManager.getForegroundCall();
150 Call call = mCallsManager.getForegroundCall();
302 public void onCallAdded(Call call) {
310 public void onCallRemoved(Call call) {
326 public void onExternalCallChanged(Call call, boolean isExternalCall) {
335 public void onCallStateChanged(Call call, int oldState, int newState) {
345 for (Call otherCall : mCallsManager.getCalls()) {
364 public void onIsConferencedChanged(Call call) {
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothPhoneServiceTest.java37 import com.android.server.telecom.Call;
139 Call mockCall = createRingingCall(); in testHeadsetAnswerCall()
154 verify(mMockCallsManager,never()).answerCall(any(Call.class), any(int.class)); in testHeadsetAnswerCallNull()
161 Call mockCall = createForegroundCall(); in testHeadsetHangupCall()
176 verify(mMockCallsManager,never()).disconnectCall(any(Call.class)); in testHeadsetHangupCallNull()
183 Call mockCall = createForegroundCall(); in testHeadsetSendDTMF()
199 verify(mMockCallsManager,never()).playDtmfTone(any(Call.class), anyChar()); in testHeadsetSendDTMFNull()
200 verify(mMockCallsManager,never()).stopDtmfTone(any(Call.class)); in testHeadsetSendDTMFNull()
207 Call mockCall = createForegroundCall(); in testGetNetworkOperator()
230 Call mockCall = createForegroundCall(); in testGetSubscriberNumber()
[all …]
DCallsManagerTest.java62 import com.android.server.telecom.Call;
294 Call ongoingCall = new Call( in testConstructPossiblePhoneAccountsMultiSimActive()
305 Call.CALL_DIRECTION_INCOMING, in testConstructPossiblePhoneAccountsMultiSimActive()
512 Call callSpy = addSpyCall(); in testPlayDtmfWhenActive()
524 Call callSpy = addSpyCall(); in testSuppessDtmfWhenHeld()
538 Call callSpy = addSpyCall(); in testCancelDtmfWhenHeld()
548 Call ongoingCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld()
554 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld()
571 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
577 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
[all …]
DCallTest.java41 import com.android.server.telecom.Call;
100 Call call = new Call( in testSetHasGoneActive()
111 Call.CALL_DIRECTION_INCOMING, in testSetHasGoneActive()
127 Call call = new Call( in testDisconnectCauseWhenAudioProcessing()
138 Call.CALL_DIRECTION_INCOMING, in testDisconnectCauseWhenAudioProcessing()
152 Call call = new Call( in testDisconnectCauseWhenAudioProcessingAfterActive()
163 Call.CALL_DIRECTION_INCOMING, in testDisconnectCauseWhenAudioProcessingAfterActive()
179 Call call = new Call( in testDisconnectCauseWhenSimulatedRingingAndDisconnect()
190 Call.CALL_DIRECTION_INCOMING, in testDisconnectCauseWhenSimulatedRingingAndDisconnect()
204 Call call = new Call( in testDisconnectCauseWhenSimulatedRingingAndReject()
[all …]
DBasicCallTests.java43 import android.telecom.Call;
106 assertEquals(Call.STATE_DISCONNECTING, in testSingleOutgoingCallLocalDisconnect()
108 assertEquals(Call.STATE_DISCONNECTING, in testSingleOutgoingCallLocalDisconnect()
114 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallLocalDisconnect()
116 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallLocalDisconnect()
139 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallRemoteDisconnect()
141 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallRemoteDisconnect()
158 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall()
159 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall()
185 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingVideoCall()
[all …]
DCallAudioManagerTest.java25 import com.android.server.telecom.Call;
115 Call call = createIncomingCall(); in testUnmuteOfSecondIncomingCall()
117 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall()
146 Call call2 = mock(Call.class); in testUnmuteOfSecondIncomingCall()
148 when(call2.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall()
178 Call call = createIncomingCall();
180 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO))
214 Call call = createIncomingCall();
216 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO))
251 Call call = mock(Call.class);
[all …]
DRingerTest.java35 import com.android.server.telecom.Call;
114 @Mock Call mockCall1;
115 @Mock Call mockCall2;
141 when(mockRingtonePlayer.play(any(RingtoneFactory.class), any(Call.class), in setUp()
166 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionInTheaterMode()
184 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWithExternalRinger()
200 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWhenDialerRings()
217 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testAudioFocusStillAcquiredWhenDialerRings()
233 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWhenCallIsSelfManaged()
252 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testCallWaitingButNoRingForSpecificContacts()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCallList.java20 import android.telecom.Call;
37 public class TestCallList extends Call.Callback {
40 public void onCallAdded(Call call) {} in onCallAdded()
41 public void onCallRemoved(Call call) {} in onCallRemoved()
42 public void onRttStarted(Call call) {} in onRttStarted()
43 public void onRttStopped(Call call) {} in onRttStopped()
44 public void onRttInitiationFailed(Call call, int reason) {} in onRttInitiationFailed()
45 public void onRttRequest(Call call, int id) {} in onRttRequest()
52 private Call mCall;
54 public TestVideoCallListener(Call call) { in TestVideoCallListener()
[all …]
DCallListAdapter.java23 import android.telecom.Call;
37 public void onCallAdded(Call call) {
42 public void onCallRemoved(Call call) {
104 Call call = mCallList.getCall(position); in getView()
133 private static String getStateString(Call call) { in getStateString()
135 case Call.STATE_ACTIVE: in getStateString()
137 case Call.STATE_CONNECTING: in getStateString()
139 case Call.STATE_DIALING: in getStateString()
141 case Call.STATE_DISCONNECTED: in getStateString()
143 case Call.STATE_DISCONNECTING: in getStateString()
[all …]
DTestInCallUI.java25 import android.telecom.Call;
88 public void onCallRemoved(Call call) { in onCreate()
96 public void onRttStarted(Call call) { in onCreate()
101 public void onRttStopped(Call call) { in onCreate()
106 public void onRttInitiationFailed(Call call, int reason) { in onCreate()
112 public void onRttRequest(Call call, int id) { in onCreate()
141 Call call = mCallList.getCall(0); in onCreate()
150 Call call = mCallList.getCall(0); in onCreate()
152 if (call.getState() == Call.STATE_HOLDING) { in onCreate()
163 Call call = mCallList.getCall(0); in onCreate()
[all …]
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeCallList.java20 import android.telecom.Call;
36 public class CarModeCallList extends Call.Callback {
39 public void onCallAdded(Call call) {} in onCallAdded()
40 public void onCallRemoved(Call call) {} in onCallRemoved()
41 public void onRttStarted(Call call) {} in onRttStarted()
42 public void onRttStopped(Call call) {} in onRttStopped()
43 public void onRttInitiationFailed(Call call, int reason) {} in onRttInitiationFailed()
44 public void onRttRequest(Call call, int id) {} in onRttRequest()
52 private Call mCall;
54 public TestVideoCallListener(Call call) { in TestVideoCallListener()
[all …]
DCallListAdapter.java23 import android.telecom.Call;
37 public void onCallAdded(Call call) {
42 public void onCallRemoved(Call call) {
99 Call call = mCallList.getCall(position); in getView()
128 private static String getStateString(Call call) { in getStateString()
130 case Call.STATE_ACTIVE: in getStateString()
132 case Call.STATE_CONNECTING: in getStateString()
134 case Call.STATE_DIALING: in getStateString()
136 case Call.STATE_DISCONNECTED: in getStateString()
138 case Call.STATE_DISCONNECTING: in getStateString()
[all …]
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/activecall/
DInCallViewModelTest.java28 import android.telecom.Call;
61 private List<Call> mListForMockCalls;
69 private Call mMockActiveCall;
71 private Call mMockDialingCall;
73 private Call mMockHoldingCall;
75 private Call mMockRingingCall;
77 private Call.Details mMockDetails;
86 when(mMockActiveCall.getState()).thenReturn(Call.STATE_ACTIVE); in setup()
87 when(mMockDialingCall.getState()).thenReturn(Call.STATE_DIALING); in setup()
88 when(mMockHoldingCall.getState()).thenReturn(Call.STATE_HOLDING); in setup()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/livedata/
DCallDetailLiveData.java19 import android.telecom.Call;
34 private Call mTelecomCall;
53 private Call.Callback mCallback = new Call.Callback() {
55 public void onStateChanged(Call telecomCall, int state) {
60 public void onParentChanged(Call telecomCall, Call parent) {
65 public void onCallDestroyed(Call telecomCall) {
70 public void onDetailsChanged(Call telecomCall, Call.Details details) {
75 public void onVideoCallChanged(Call telecomCall, InCallService.VideoCall videoCall) {
80 public void onCannedTextResponsesLoaded(Call telecomCall,
86 public void onChildrenChanged(Call telecomCall, List<Call> children) {
[all …]
DCallStateLiveData.java19 import android.telecom.Call;
31 private final Call mTelecomCall;
33 public CallStateLiveData(Call telecomCall) { in CallStateLiveData()
51 private Call.Callback mCallback = new Call.Callback() {
53 public void onStateChanged(Call telecomCall, int state) {
58 public void onParentChanged(Call telecomCall, Call parent) {
63 public void onCallDestroyed(Call telecomCall) {
68 public void onDetailsChanged(Call telecomCall, Call.Details details) {
73 public void onVideoCallChanged(Call telecomCall, InCallService.VideoCall videoCall) {
78 public void onCannedTextResponsesLoaded(Call telecomCall,
[all …]
/packages/apps/Dialer/java/com/android/incallui/call/
DExternalCallList.java22 import android.telecom.Call;
38 private final Set<Call> externalCalls = new ArraySet<>();
42 private final Call.Callback telecomCallCallback =
43 new Call.Callback() {
45 public void onDetailsChanged(Call call, Call.Details details) {
51 public void onCallAdded(Call telecomCall) { in onCallAdded()
60 public void onCallRemoved(Call telecomCall) { in onCallRemoved()
86 public boolean isCallTracked(@NonNull android.telecom.Call telecomCall) { in isCallTracked()
91 private void notifyExternalCallAdded(Call call) { in notifyExternalCallAdded()
98 private void notifyExternalCallRemoved(Call call) { in notifyExternalCallRemoved()
[all …]

12345678