/packages/apps/Dialer/java/com/android/incallui/call/ |
D | CallList.java | 17 package com.android.incallui.call; 45 import com.android.incallui.call.state.DialerCallState; 137 final DialerCall call = in onCallAdded() local 140 logSecondIncomingCall(context, getFirstCall(), call); in onCallAdded() 144 manager.registerCapabilitiesListener(call); in onCallAdded() 145 manager.registerStateChangedListener(call); in onCallAdded() 148 call.addListener(new DialerCallListenerImpl(call)); in onCallAdded() 149 LogUtil.d("CallList.onCallAdded", "callState=" + call.getState()); in onCallAdded() 153 SpamComponent.get(context).spam().checkSpamStatus(number, call.getCountryIso()); in onCallAdded() 161 call.getState() == DialerCallState.INCOMING in onCallAdded() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallsManager.java | 160 void onCallAdded(Call call); in onCallAdded() argument 161 void onCallRemoved(Call call); in onCallRemoved() argument 162 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() argument 164 Call call, in onConnectionServiceChanged() argument 167 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered() argument 168 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected() argument 170 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested() argument 171 void onIsConferencedChanged(Call call); in onIsConferencedChanged() argument 172 void onIsVoipAudioModeChanged(Call call); in onIsVoipAudioModeChanged() argument 173 void onVideoStateChanged(Call call, int previousVideoState, int newVideoState); in onVideoStateChanged() argument [all …]
|
D | CallAudioManager.java | 105 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument 106 if (shouldIgnoreCallForAudio(call)) { in onCallStateChanged() 110 Log.d(LOG_TAG, "Call state changed for TC@%s: %s -> %s", call.getId(), in onCallStateChanged() 113 removeCallFromAllBins(call); in onCallStateChanged() 114 HashSet<Call> newBinForCall = getBinForCall(call); in onCallStateChanged() 116 newBinForCall.add(call); in onCallStateChanged() 122 playToneForDisconnectedCall(call); in onCallStateChanged() 125 onCallLeavingState(call, oldState); in onCallStateChanged() 126 onCallEnteringState(call, newState); in onCallStateChanged() 130 public void onCallAdded(Call call) { in onCallAdded() argument [all …]
|
D | ConnectionServiceWrapper.java | 148 Call call = mCallIdMapper.getCall(callId); in setActive() local 149 if (call != null) { in setActive() 150 mCallsManager.markCallAsActive(call); in setActive() 171 Call call = mCallIdMapper.getCall(callId); in setRinging() local 172 if (call != null) { in setRinging() 173 mCallsManager.markCallAsRinging(call); in setRinging() 194 Call call = mCallIdMapper.getCall(callId); in resetConnectionTime() local 195 if (call != null) { in resetConnectionTime() 196 mCallsManager.resetConnectionTime(call); in resetConnectionTime() 215 Call call = mCallIdMapper.getCall(callId); in setVideoProvider() local [all …]
|
D | CallDiagnosticServiceController.java | 76 public void onConnectionCapabilitiesChanged(Call call) { 77 updateCall(call); 81 public void onConnectionPropertiesChanged(Call call, boolean didRttChange) { 82 updateCall(call); 98 public void onExtrasChanged(Call call, int source, Bundle extras) { 103 updateCall(call); 118 public void onExtrasRemoved(Call call, int source, List<String> keys) { 123 updateCall(call); 133 public void onVideoStateChanged(Call call, int previousVideoState, int newVideoState) { 134 updateCall(call); [all …]
|
D | InCallAdapter.java | 59 Call call = mCallIdMapper.getCall(callId); in answerCall() local 60 if (call != null) { in answerCall() 61 mCallsManager.answerCall(call, videoState); in answerCall() 82 Call call = mCallIdMapper.getCall(callId); in deflectCall() local 83 if (call != null) { in deflectCall() 84 mCallsManager.deflectCall(call, address); in deflectCall() 115 Call call = mCallIdMapper.getCall(callId); in rejectCall() local 116 if (call != null) { in rejectCall() 117 mCallsManager.rejectCall(call, rejectWithMessage, textMessage); in rejectCall() 141 Call call = mCallIdMapper.getCall(callId); in rejectCallWithReason() local [all …]
|
D | CallLogManager.java | 117 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument 118 int disconnectCause = call.getDisconnectCause().getCode(); in onCallStateChanged() 127 if (shouldLogDisconnectedCall(call, oldState, isCallCanceled)) { in onCallStateChanged() 129 if (!call.isIncoming()) { in onCallStateChanged() 142 boolean showNotification = !call.isSelfManaged(); in onCallStateChanged() 143 logCall(call, type, showNotification, null /*result*/); in onCallStateChanged() 160 public boolean shouldLogDisconnectedCall(Call call, int oldState, boolean isCallCanceled) { in shouldLogDisconnectedCall() argument 161 boolean shouldCallSelfManagedLogged = call.isLoggedSelfManaged() in shouldLogDisconnectedCall() 162 && (call.getHandoverState() == HandoverState.HANDOVER_NONE in shouldLogDisconnectedCall() 163 || call.getHandoverState() == HandoverState.HANDOVER_COMPLETE); in shouldLogDisconnectedCall() [all …]
|
D | InCallController.java | 107 public void onDisconnect(InCallServiceConnection conn, Call call) {} in onDisconnect() argument 112 public int connect(Call call) { return CONNECTION_FAILED; } in connect() argument 283 public int connect(Call call) { in connect() argument 285 Log.addEvent(call, LogUtils.Events.INFO, "Already connected, ignoring request: " in connect() 287 if (call != null) { in connect() 289 addCall(call); in connect() 292 sendCallToService(call, mInCallServiceInfo, in connect() 298 if (call != null && call.isSelfManaged() && in connect() 300 || !call.visibleToInCallService())) { in connect() 309 if (call != null && !call.isIncoming() && !call.isExternalCall()) { in connect() [all …]
|
D | ParcelableCallUtils.java | 69 public ParcelableCall toParcelableCall(Call call, boolean includeVideoProvider, in toParcelableCall() argument 72 call, includeVideoProvider, phoneAccountRegistrar, false, false, false); in toParcelableCall() 75 public ParcelableCall toParcelableCallForScreening(Call call, in toParcelableCallForScreening() argument 77 return ParcelableCallUtils.toParcelableCallForScreening(call, in toParcelableCallForScreening() 101 Call call, in toParcelableCall() argument 107 return toParcelableCall(call, includeVideoProvider, phoneAccountRegistrar, in toParcelableCall() 132 Call call, in toParcelableCall() argument 141 state = getParcelableState(call, supportsExternalCalls); in toParcelableCall() 145 int capabilities = convertConnectionToCallCapabilities(call.getConnectionCapabilities()); in toParcelableCall() 146 int properties = convertConnectionToCallProperties(call.getConnectionProperties()); in toParcelableCall() [all …]
|
D | ConnectionServiceFocusManager.java | 135 void onRequestFocusDone(CallFocus call); in onRequestFocusDone() argument 176 public void onCallAdded(Call call) { 177 if (callShouldBeIgnored(call)) { 186 call)) 191 public void onCallRemoved(Call call) { 192 if (callShouldBeIgnored(call)) { 201 call)) 206 public void onCallStateChanged(Call call, int oldState, int newState) { 207 if (callShouldBeIgnored(call)) { 216 call)) [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | VideoCallPresenter.java | 38 import com.android.incallui.call.CallList; 39 import com.android.incallui.call.DialerCall; 40 import com.android.incallui.call.DialerCall.CameraDirection; 41 import com.android.incallui.call.InCallVideoCallCallbackNotifier; 42 import com.android.incallui.call.InCallVideoCallCallbackNotifier.SurfaceChangeListener; 43 import com.android.incallui.call.state.DialerCallState; 197 private static void updateCameraSelection(DialerCall call) { in updateCameraSelection() argument 198 LogUtil.v("VideoCallPresenter.updateCameraSelection", "call=" + call); in updateCameraSelection() 199 LogUtil.v("VideoCallPresenter.updateCameraSelection", "call=" + toSimpleString(call)); in updateCameraSelection() 206 if (call == null) { in updateCameraSelection() [all …]
|
D | CallButtonPresenter.java | 42 import com.android.incallui.call.CallList; 43 import com.android.incallui.call.DialerCall; 44 import com.android.incallui.call.DialerCall.CameraDirection; 45 import com.android.incallui.call.DialerCallListener; 46 import com.android.incallui.call.TelecomAdapter; 47 import com.android.incallui.call.state.DialerCallState; 67 private DialerCall call; field in CallButtonPresenter 106 if (call != null) { in onInCallButtonUiUnready() 107 call.removeListener(this); in onInCallButtonUiUnready() 114 if (call != null) { in onStateChange() [all …]
|
D | VideoPauseController.java | 25 import com.android.incallui.call.CallList; 26 import com.android.incallui.call.DialerCall; 27 import com.android.incallui.call.state.DialerCallState; 75 private static boolean isIncomingCall(DialerCall call) { in isIncomingCall() argument 76 return call != null in isIncomingCall() 77 && (call.getState() == DialerCallState.CALL_WAITING in isIncomingCall() 78 || call.getState() == DialerCallState.INCOMING); in isIncomingCall() 133 DialerCall call; in onStateChange() local 135 call = callList.getIncomingCall(); in onStateChange() 137 call = callList.getWaitingForAccountCall(); in onStateChange() [all …]
|
D | ReturnToCallActionReceiver.java | 28 import com.android.incallui.call.CallList; 29 import com.android.incallui.call.DialerCall; 30 import com.android.incallui.call.TelecomAdapter; 66 DialerCall call = getCall(); in returnToCall() local 70 call != null ? call.getUniqueCallId() : "", in returnToCall() 71 call != null ? call.getTimeAddedMs() : 0); in returnToCall() 89 DialerCall call = getCall(); in toggleSpeaker() local 97 call != null ? call.getUniqueCallId() : "", in toggleSpeaker() 98 call != null ? call.getTimeAddedMs() : 0); in toggleSpeaker() 104 call != null ? call.getUniqueCallId() : "", in toggleSpeaker() [all …]
|
D | StatusBarNotifier.java | 86 import com.android.incallui.call.CallList; 87 import com.android.incallui.call.DialerCall; 88 import com.android.incallui.call.DialerCallListener; 89 import com.android.incallui.call.TelecomAdapter; 90 import com.android.incallui.call.state.DialerCallState; 237 final DialerCall call = getCallToShow(CallList.getInstance()); in updateInCallNotification() local 239 if (call != null) { in updateInCallNotification() 240 showNotification(call); in updateInCallNotification() 247 private void showNotification(final DialerCall call) { in showNotification() argument 250 (call.getState() == DialerCallState.INCOMING in showNotification() [all …]
|
/packages/providers/CallLogProvider/src/com/android/calllogbackup/ |
D | CallLogBackupAgent.java | 182 Call call = readCallFromData(data); in onRestore() local 183 if (call != null && call.type != Calls.VOICEMAIL_TYPE) { in onRestore() 184 writeCallToProvider(call); in onRestore() 186 Log.d(TAG, "Restored call: " + call); in onRestore() 199 for (Call call : calls) { in runBackup() 200 if (!state.callIds.contains(call.id)) { in runBackup() 203 Log.d(TAG, "Adding call to backup: " + call); in runBackup() 207 addCallToBackup(data, call); in runBackup() 208 state.callIds.add(call.id); in runBackup() 212 callsToRemove.remove(call.id); in runBackup() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamCallListListener.java | 52 import com.android.incallui.call.CallList; 53 import com.android.incallui.call.DialerCall; 54 import com.android.incallui.call.DialerCall.CallHistoryStatus; 137 public void onIncomingCall(final DialerCall call) { in onIncomingCall() argument 138 String number = call.getNumber(); in onIncomingCall() 151 new NumberInCallHistoryWorker(context, number, call.getCountryIso()); in onIncomingCall() 154 .onSuccess((result) -> call.setCallHistoryStatus(result)) in onIncomingCall() 160 public void onUpgradeToVideo(DialerCall call) {} in onUpgradeToVideo() argument 163 public void onSessionModificationStateChange(DialerCall call) {} in onSessionModificationStateChange() argument 169 public void onWiFiToLteHandover(DialerCall call) {} in onWiFiToLteHandover() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/telephony/ |
D | BluetoothInCallService.java | 185 public void onStateChanged(BluetoothCall call, int state) { in onStateChanged() argument 186 if (mCallInfo.isNullCall(call)) { in onStateChanged() 189 if (call.isExternalCall()) { in onStateChanged() 222 public void onStateChanged(Call call, int state) { in onStateChanged() argument 223 super.onStateChanged(call, state); in onStateChanged() 224 onStateChanged(getBluetoothCallById(call.getDetails().getTelecomCallId()), state); in onStateChanged() 227 public void onDetailsChanged(BluetoothCall call, Call.Details details) { in onDetailsChanged() argument 228 if (mCallInfo.isNullCall(call)) { in onDetailsChanged() 231 if (call.isExternalCall()) { in onDetailsChanged() 232 onCallRemoved(call); in onDetailsChanged() [all …]
|
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/ |
D | CarModeCallList.java | 39 public void onCallAdded(Call call) {} in onCallAdded() argument 40 public void onCallRemoved(Call call) {} in onCallRemoved() argument 41 public void onRttStarted(Call call) {} in onRttStarted() argument 42 public void onRttStopped(Call call) {} in onRttStopped() argument 43 public void onRttInitiationFailed(Call call, int reason) {} in onRttInitiationFailed() argument 44 public void onRttRequest(Call call, int id) {} in onRttRequest() argument 54 public TestVideoCallListener(Call call) { in TestVideoCallListener() argument 55 mCall = call; in TestVideoCallListener() 130 public void addCall(Call call) { in addCall() argument 131 if (mCalls.contains(call)) { in addCall() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestCallList.java | 40 public void onCallAdded(Call call) {} in onCallAdded() argument 41 public void onCallRemoved(Call call) {} in onCallRemoved() argument 42 public void onRttStarted(Call call) {} in onRttStarted() argument 43 public void onRttStopped(Call call) {} in onRttStopped() argument 44 public void onRttInitiationFailed(Call call, int reason) {} in onRttInitiationFailed() argument 45 public void onRttRequest(Call call, int id) {} in onRttRequest() argument 54 public TestVideoCallListener(Call call) { in TestVideoCallListener() argument 55 mCall = call; in TestVideoCallListener() 130 public void addCall(Call call) { in addCall() argument 131 if (mCalls.contains(call)) { in addCall() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallTest.java | 113 Call call = new Call( in testSetHasGoneActive() local 130 assertFalse(call.hasGoneActiveBefore()); in testSetHasGoneActive() 131 call.setState(CallState.ACTIVE, ""); in testSetHasGoneActive() 132 assertTrue(call.hasGoneActiveBefore()); in testSetHasGoneActive() 133 call.setState(CallState.AUDIO_PROCESSING, ""); in testSetHasGoneActive() 134 assertTrue(call.hasGoneActiveBefore()); in testSetHasGoneActive() 140 Call call = new Call( in testDisconnectCauseWhenAudioProcessing() local 156 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessing() 157 call.disconnect(); in testDisconnectCauseWhenAudioProcessing() 158 call.setDisconnectCause(new DisconnectCause(DisconnectCause.LOCAL)); in testDisconnectCauseWhenAudioProcessing() [all …]
|
D | CallAudioManagerTest.java | 115 Call call = createIncomingCall(); in testUnmuteOfSecondIncomingCall() local 117 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall() 119 when(call.getId()).thenReturn("1"); in testUnmuteOfSecondIncomingCall() 122 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall() 123 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall() 124 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall() 154 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall() 178 Call call = createIncomingCall(); 180 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) 184 mCallAudioManager.onIncomingCallAnswered(call); [all …]
|
/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/ |
D | MockCallManager.java | 107 Call call = createMockCall(id, direction, state); in addCall() local 111 mCallList.add(call); in addCall() 112 mInCallService.onCallAdded(call); in addCall() 120 Call call = findCallById(id); in endCall() local 121 disconnect(call); in endCall() 127 private void hold(Call call) { in hold() argument 128 Log.d(TAG, "Holding " + call); in hold() 129 when(call.getState()).thenReturn(Call.STATE_HOLDING); in hold() 132 if (call.equals(mPrimaryCall) && mSecondaryCall != null) { in hold() 137 List<Call.Callback> callbacks = mCallbacks.get(call); in hold() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | DisconnectedCallNotifier.java | 126 public void onCallRemoved(Call call) { in onCallRemoved() argument 135 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument 136 DisconnectCause cause = call.getDisconnectCause(); in onCallStateChanged() 146 UserHandle userHandle = call.getTargetPhoneAccount() != null ? in onCallStateChanged() 147 call.getTargetPhoneAccount().getUserHandle() : call.getInitiatingUser(); in onCallStateChanged() 150 mPendingCallNotification = new CallInfo(userHandle, call.getHandle(), in onCallStateChanged() 151 call.getCreationTimeMillis() + call.getAgeMillis(), call.getPhotoIcon(), in onCallStateChanged() 152 call.getPhoto(), call.getName(), call.isEmergencyCall()); in onCallStateChanged() 156 private void showDisconnectedNotification(@NonNull CallInfo call) { in showDisconnectedNotification() argument 157 Log.i(this, "showDisconnectedNotification: userHandle=%d", call.userHandle.getIdentifier()); in showDisconnectedNotification() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/videotech/ims/ |
D | ImsVideoTech.java | 40 private final Call call; field in ImsVideoTech 55 public ImsVideoTech(LoggingBindings logger, VideoTechListener listener, Call call) { in ImsVideoTech() argument 58 this.call = call; in ImsVideoTech() 63 if (call.getVideoCall() == null) { in isAvailable() 69 if (VideoProfile.isVideo(call.getDetails().getVideoState())) { in isAvailable() 81 if (!call.getDetails().can(Call.Details.CAPABILITY_SUPPORTS_VT_LOCAL_TX)) { in isAvailable() 87 if (!call.getDetails().can(Call.Details.CAPABILITY_SUPPORTS_VT_REMOTE_RX)) { in isAvailable() 97 return VideoProfile.isVideo(call.getDetails().getVideoState()); in isTransmittingOrReceiving() 132 callback = new ImsVideoCallCallback(logger, call, this, listener, context); in onCallStateChanged() 133 call.getVideoCall().registerCallback(callback); in onCallStateChanged() [all …]
|