/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ParcelableCallUtils.java | 19 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 …]
|
D | CallsManager.java | 148 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 …]
|
D | Call.java | 85 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 …]
|
D | CallAudioManager.java | 45 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 …]
|
D | CallsManagerListenerBase.java | 28 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 …]
|
D | ConnectionServiceWrapper.java | 140 Call call = mCallIdMapper.getCall(callId); in setActive() 163 Call call = mCallIdMapper.getCall(callId); in setRinging() 186 Call call = mCallIdMapper.getCall(callId); in resetConnectionTime() 207 Call call = mCallIdMapper.getCall(callId); in setVideoProvider() 228 Call call = mCallIdMapper.getCall(callId); in setDialing() 251 Call call = mCallIdMapper.getCall(callId); in setPulling() 273 Call call = mCallIdMapper.getCall(callId); in setDisconnected() 297 Call call = mCallIdMapper.getCall(callId); in setOnHold() 321 Call call = mCallIdMapper.getCall(callId); in setRingbackRequested() 344 Call call = mCallIdMapper.getCall(callId); in removeCall() [all …]
|
D | InCallAdapter.java | 57 Call call = mCallIdMapper.getCall(callId); in answerCall() 80 Call call = mCallIdMapper.getCall(callId); in deflectCall() 113 Call call = mCallIdMapper.getCall(callId); in rejectCall() 130 @android.telecom.Call.RejectReason int rejectReason) { in rejectCallWithReason() 139 Call call = mCallIdMapper.getCall(callId); in rejectCallWithReason() 162 Call call = mCallIdMapper.getCall(callId); in transferCall() 185 Call call = mCallIdMapper.getCall(callId); in consultativeTransfer() 186 Call otherCall = mCallIdMapper.getCall(otherCallId); in consultativeTransfer() 210 Call call = mCallIdMapper.getCall(callId); in playDtmfTone() 233 Call call = mCallIdMapper.getCall(callId); in stopDtmfTone() [all …]
|
D | InCallController.java | 96 public void onDisconnect(InCallServiceConnection conn, Call call) {} in onDisconnect() 101 public int connect(Call call) { return CONNECTION_FAILED; } in connect() 110 public Call mCall; 272 public int connect(Call call) { in connect() 399 public void onDisconnect(InCallServiceConnection subConnection, Call call) { 425 public int connect(Call call) { in connect() 444 extras.putLong(android.telecom.Call.EXTRA_LAST_EMERGENCY_CALLBACK_TIME_MILLIS, in connect() 446 call.putExtras(Call.SOURCE_CONNECTION_SERVICE, extras); in connect() 619 public int connect(Call call) { in connect() 698 public int connect(Call call) { in connect() [all …]
|
D | BluetoothPhoneServiceImpl.java | 90 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/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/ |
D | InCallViewModel.java | 25 import android.telecom.Call; 60 private final MutableLiveData<List<Call>> mCallListLiveData; 61 private final MutableLiveData<List<Call>> mOngoingCallListLiveData; 62 private final Comparator<Call> mCallComparator; 64 private final MutableLiveData<Call> mIncomingCallLiveData; 68 private final LiveData<Call> mPrimaryCallLiveData; 69 private final LiveData<Call> mSecondaryCallLiveData; 86 for (Call call : mInCallService.getCalls()) { 102 private final Call.Callback mCallStateChangedCallback = new Call.Callback() { 104 public void onStateChanged(Call call, int state) { [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothPhoneServiceTest.java | 37 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 …]
|
D | CallsManagerTest.java | 62 import com.android.server.telecom.Call; 293 Call ongoingCall = new Call( in testConstructPossiblePhoneAccountsMultiSimActive() 304 Call.CALL_DIRECTION_INCOMING, in testConstructPossiblePhoneAccountsMultiSimActive() 511 Call callSpy = addSpyCall(); in testPlayDtmfWhenActive() 523 Call callSpy = addSpyCall(); in testSuppessDtmfWhenHeld() 537 Call callSpy = addSpyCall(); in testCancelDtmfWhenHeld() 547 Call ongoingCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() 553 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() 570 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() 576 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() [all …]
|
D | CallTest.java | 41 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 …]
|
D | BasicCallTests.java | 43 import android.telecom.Call; 106 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect() 107 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect() 112 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallLocalDisconnect() 114 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallLocalDisconnect() 137 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallRemoteDisconnect() 139 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallRemoteDisconnect() 156 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall() 157 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall() 183 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingVideoCall() [all …]
|
D | CallAudioManagerTest.java | 25 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 …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestCallList.java | 20 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 …]
|
D | CallListAdapter.java | 23 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 …]
|
D | TestInCallUI.java | 25 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/ |
D | CarModeCallList.java | 20 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 …]
|
D | CallListAdapter.java | 23 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/ |
D | InCallViewModelTest.java | 28 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/ |
D | CallDetailLiveData.java | 19 import android.telecom.Call; 34 private final Call mTelecomCall; 36 public CallDetailLiveData(@NonNull Call telecomCall) { in CallDetailLiveData() 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, [all …]
|
D | CallStateLiveData.java | 19 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/ |
D | ExternalCallList.java | 22 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 …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | ImsConferenceTest.java | 31 import android.telecom.Call; 85 Call.Details.DIRECTION_OUTGOING); in testSinglePartyEmulation() 91 Call.Details.DIRECTION_INCOMING); in testSinglePartyEmulation() 104 assertEquals(Call.Details.DIRECTION_OUTGOING, imsConference.getCallDirection()); in testSinglePartyEmulation() 136 Call.Details.DIRECTION_INCOMING); in testDisconnectParticipantViaDisconnectState() 142 Call.Details.DIRECTION_INCOMING); in testDisconnectParticipantViaDisconnectState() 149 Call.Details.DIRECTION_INCOMING); in testDisconnectParticipantViaDisconnectState() 164 Call.Details.DIRECTION_INCOMING); in testDisconnectParticipantViaDisconnectState() 200 Call.Details.DIRECTION_INCOMING); in testDisconnectParticipantViaRemoval() 206 Call.Details.DIRECTION_INCOMING); in testDisconnectParticipantViaRemoval() [all …]
|