Home
last modified time | relevance | path

Searched refs:call (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/packages/apps/Dialer/java/com/android/incallui/call/
DCallList.java17 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/
DCallsManager.java165 void onCallAdded(Call call); in onCallAdded() argument
166 void onCallRemoved(Call call); in onCallRemoved() argument
167 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() argument
169 Call call, in onConnectionServiceChanged() argument
172 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered() argument
173 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected() argument
175 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested() argument
176 void onIsConferencedChanged(Call call); in onIsConferencedChanged() argument
177 void onIsVoipAudioModeChanged(Call call); in onIsVoipAudioModeChanged() argument
178 void onVideoStateChanged(Call call, int previousVideoState, int newVideoState); in onVideoStateChanged() argument
[all …]
DCallAudioManager.java105 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
106 if (shouldIgnoreCallForAudio(call)) { in onCallStateChanged()
114 Log.d(LOG_TAG, "Call state changed for TC@%s: %s -> %s", call.getId(), in onCallStateChanged()
117 removeCallFromAllBins(call); in onCallStateChanged()
118 HashSet<Call> newBinForCall = getBinForCall(call); in onCallStateChanged()
120 newBinForCall.add(call); in onCallStateChanged()
126 playToneForDisconnectedCall(call); in onCallStateChanged()
129 onCallLeavingState(call, oldState); in onCallStateChanged()
130 onCallEnteringState(call, newState); in onCallStateChanged()
134 public void onCallAdded(Call call) { in onCallAdded() argument
[all …]
DCallDiagnosticServiceController.java76 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 …]
DInCallAdapter.java59 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 …]
DConnectionServiceWrapper.java159 Call call = mCallIdMapper.getCall(callId); in setActive() local
160 if (call != null) { in setActive()
161 mCallsManager.markCallAsActive(call); in setActive()
182 Call call = mCallIdMapper.getCall(callId); in setRinging() local
183 if (call != null) { in setRinging()
184 mCallsManager.markCallAsRinging(call); in setRinging()
205 Call call = mCallIdMapper.getCall(callId); in resetConnectionTime() local
206 if (call != null) { in resetConnectionTime()
207 mCallsManager.resetConnectionTime(call); in resetConnectionTime()
226 Call call = mCallIdMapper.getCall(callId); in setVideoProvider() local
[all …]
DCallLogManager.java117 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 …]
DParcelableCallUtils.java69 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 …]
DInCallController.java111 public void onDisconnect(InCallServiceConnection conn, Call call) {} in onDisconnect() argument
116 public int connect(Call call) { return CONNECTION_FAILED; } in connect() argument
287 public int connect(Call call) { in connect() argument
289 Log.addEvent(call, LogUtils.Events.INFO, "Already connected, ignoring request: " in connect()
291 if (call != null) { in connect()
293 addCall(call); in connect()
296 sendCallToService(call, mInCallServiceInfo, in connect()
302 if (call != null && call.isSelfManaged() && in connect()
304 || !call.visibleToInCallService())) { in connect()
313 if (call != null && !call.isIncoming() && !call.isExternalCall()) { in connect()
[all …]
DConnectionServiceFocusManager.java135 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/
DVideoCallPresenter.java38 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 …]
DCallButtonPresenter.java42 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 …]
DVideoPauseController.java25 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 …]
DReturnToCallActionReceiver.java28 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 …]
DStatusBarNotifier.java90 import com.android.incallui.call.CallList;
91 import com.android.incallui.call.DialerCall;
92 import com.android.incallui.call.DialerCallListener;
93 import com.android.incallui.call.TelecomAdapter;
94 import com.android.incallui.call.state.DialerCallState;
241 final DialerCall call = getCallToShow(CallList.getInstance()); in updateInCallNotification() local
243 if (call != null) { in updateInCallNotification()
244 showNotification(call); in updateInCallNotification()
251 private void showNotification(final DialerCall call) { in showNotification() argument
254 (call.getState() == DialerCallState.INCOMING in showNotification()
[all …]
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java205 Call call = readCallFromData(data); in onRestore() local
206 if (call != null && call.type != Calls.VOICEMAIL_TYPE) { in onRestore()
207 writeCallToProvider(call); in onRestore()
209 Log.d(TAG, "Restored call: " + call); in onRestore()
222 for (Call call : calls) { in runBackup()
223 if (!state.callIds.contains(call.id)) { in runBackup()
226 Log.d(TAG, "Adding call to backup: " + call); in runBackup()
230 addCallToBackup(data, call); in runBackup()
231 state.callIds.add(call.id); in runBackup()
235 callsToRemove.remove(call.id); in runBackup()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java214 public void onStateChanged(BluetoothCall call, int state) { in onStateChanged() argument
215 if (mCallInfo.isNullCall(call)) { in onStateChanged()
218 if (call.isExternalCall()) { in onStateChanged()
226 Integer tbsCallState = getTbsCallState(call); in onStateChanged()
228 mBluetoothLeCallControl.onCallStateChanged(call.getTbsCallId(), tbsCallState); in onStateChanged()
260 public void onStateChanged(Call call, int state) { in onStateChanged() argument
261 super.onStateChanged(call, state); in onStateChanged()
262 onStateChanged(getBluetoothCallById(System.identityHashCode(call)), state); in onStateChanged()
265 public void onDetailsChanged(BluetoothCall call, Call.Details details) { in onDetailsChanged() argument
266 if (mCallInfo.isNullCall(call)) { in onDetailsChanged()
[all …]
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamCallListListener.java52 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/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeCallList.java39 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/
DTestCallList.java40 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientCallTest.java46 boolean isMultiParty, boolean isOutgoing, boolean isInBandRing, HfpClientCall call) { in assertCall() argument
47 assertThat(call).isNotNull(); in assertCall()
48 assertThat(call.getDevice()).isEqualTo(device); in assertCall()
49 assertThat(call.getId()).isEqualTo(id); in assertCall()
50 assertThat(call.getUUID()).isNotNull(); in assertCall()
51 assertThat(call.getState()).isEqualTo(state); in assertCall()
52 assertThat(call.getNumber()).isEqualTo(number); in assertCall()
53 assertThat(call.isMultiParty()).isEqualTo(isMultiParty); in assertCall()
54 assertThat(call.isOutgoing()).isEqualTo(isOutgoing); in assertCall()
55 assertThat(call.getCreationElapsedMilli()).isGreaterThan(0); in assertCall()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallTest.java113 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 …]
DCallAudioManagerTest.java116 Call call = createIncomingCall(); in testUnmuteOfSecondIncomingCall() local
118 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall()
120 when(call.getId()).thenReturn("1"); in testUnmuteOfSecondIncomingCall()
123 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
124 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
125 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
155 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
179 Call call = createIncomingCall();
181 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO))
185 mCallAudioManager.onIncomingCallAnswered(call);
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DDisconnectedCallNotifier.java126 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/
DImsVideoTech.java40 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 …]

12345678910>>...22