Home
last modified time | relevance | path

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

12345678910>>...27

/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/tests/src/com/android/server/telecom/tests/
DCallTest.java147 Call call = createCall("1", Call.CALL_DIRECTION_INCOMING); in testSetHasGoneActive() local
148 assertFalse(call.hasGoneActiveBefore()); in testSetHasGoneActive()
149 call.setState(CallState.ACTIVE, ""); in testSetHasGoneActive()
150 assertTrue(call.hasGoneActiveBefore()); in testSetHasGoneActive()
151 call.setState(CallState.AUDIO_PROCESSING, ""); in testSetHasGoneActive()
152 assertTrue(call.hasGoneActiveBefore()); in testSetHasGoneActive()
162 Call call = createCall("1", Call.CALL_DIRECTION_INCOMING); in testSetVideoStateForTransactionalCalls() local
164 call.setIsTransactionalCall(true); in testSetVideoStateForTransactionalCalls()
165 call.setTransactionServiceWrapper(tsw); in testSetVideoStateForTransactionalCalls()
166 assertTrue(call.isTransactionalCall()); in testSetVideoStateForTransactionalCalls()
[all …]
DCallAudioManagerTest.java129 Call call = createIncomingCall(); in testUnmuteOfSecondIncomingCall() local
131 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall()
133 when(call.getId()).thenReturn("1"); in testUnmuteOfSecondIncomingCall()
136 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
137 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
138 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
168 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
192 Call call = createIncomingCall();
194 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO))
198 mCallAudioManager.onIncomingCallAnswered(call);
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAnomalyWatchdog.java165 public void onStartCreateConnection(Call call) { in onStartCreateConnection() argument
166 maybeTrackCall(call); in onStartCreateConnection()
167 call.addListener(this); in onStartCreateConnection()
171 public void onCallAdded(Call call) { in onCallAdded() argument
172 maybeTrackCall(call); in onCallAdded()
181 public void onCreateConnectionFailed(Call call) { in onCreateConnectionFailed() argument
182 Log.i(this, "onCreateConnectionFailed: call=%s", call.toString()); in onCreateConnectionFailed()
183 stopTrackingCall(call); in onCreateConnectionFailed()
191 public void onCallRemoved(Call call) { in onCallRemoved() argument
192 Log.i(this, "onCallRemoved: call=%s", call.toString()); in onCallRemoved()
[all …]
DCallsManager.java192 default void onStartCreateConnection(Call call) {} in onStartCreateConnection() argument
193 void onCallAdded(Call call); in onCallAdded() argument
194 void onCreateConnectionFailed(Call call); in onCreateConnectionFailed() argument
195 void onCallRemoved(Call call); in onCallRemoved() argument
196 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() argument
198 Call call, in onConnectionServiceChanged() argument
201 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered() argument
202 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected() argument
207 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested() argument
208 void onIsConferencedChanged(Call call); in onIsConferencedChanged() argument
[all …]
DCallAudioManager.java125 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
126 if (shouldIgnoreCallForAudio(call)) { in onCallStateChanged()
134 Log.i(this, "onCallStateChanged: Call state changed for TC@%s: %s -> %s", call.getId(), in onCallStateChanged()
137 removeCallFromAllBins(call); in onCallStateChanged()
138 HashSet<Call> newBinForCall = getBinForCall(call); in onCallStateChanged()
140 newBinForCall.add(call); in onCallStateChanged()
146 playToneForDisconnectedCall(call); in onCallStateChanged()
149 onCallLeavingState(call, oldState); in onCallStateChanged()
150 onCallEnteringState(call, newState); in onCallStateChanged()
154 public void onCallAdded(Call call) { in onCallAdded() argument
[all …]
DCallDiagnosticServiceController.java75 public void onConnectionCapabilitiesChanged(Call call) {
76 updateCall(call);
80 public void onConnectionPropertiesChanged(Call call, boolean didRttChange) {
81 updateCall(call);
98 public void onExtrasChanged(Call call, int source, Bundle extras,
104 updateCall(call);
119 public void onExtrasRemoved(Call call, int source, List<String> keys) {
124 updateCall(call);
134 public void onVideoStateChanged(Call call, int previousVideoState, int newVideoState) {
135 updateCall(call);
[all …]
DTransactionalServiceWrapper.java110 CallsManager callsManager, PhoneAccountHandle phoneAccountHandle, Call call, in TransactionalServiceWrapper() argument
116 mTrackedCalls.put(call.getId(), call); // service is now tracking its first call in TransactionalServiceWrapper() local
140 public void trackCall(Call call) { in trackCall() argument
142 if (call != null) { in trackCall()
143 mTrackedCalls.put(call.getId(), call); in trackCall() local
149 public boolean untrackCall(Call call) { in untrackCall() argument
152 if (call != null) { in untrackCall()
153 removedCall = mTrackedCalls.remove(call.getId()); in untrackCall()
173 for (Call call : mTrackedCalls.values()) { in cleanupTransactionalServiceWrapper()
174 mCallsManager.markCallAsDisconnected(call, in cleanupTransactionalServiceWrapper()
[all …]
DInCallAdapter.java62 Call call = mCallIdMapper.getCall(callId); in answerCall() local
63 if (call != null) { in answerCall()
64 mCallsManager.answerCall(call, videoState); in answerCall()
85 Call call = mCallIdMapper.getCall(callId); in deflectCall() local
86 if (call != null) { in deflectCall()
87 mCallsManager.deflectCall(call, address); in deflectCall()
118 Call call = mCallIdMapper.getCall(callId); in rejectCall() local
119 if (call != null) { in rejectCall()
120 mCallsManager.rejectCall(call, rejectWithMessage, textMessage); in rejectCall()
144 Call call = mCallIdMapper.getCall(callId); in rejectCallWithReason() local
[all …]
DCallLogManager.java85 @NonNull Call call) { in AddCallArgs() argument
89 this.call = call; in AddCallArgs()
96 public final Call call; field in CallLogManager.AddCallArgs
145 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
146 int disconnectCause = call.getDisconnectCause().getCode(); in onCallStateChanged()
155 if (shouldLogDisconnectedCall(call, oldState, isCallCanceled)) { in onCallStateChanged()
157 if (!call.isIncoming()) { in onCallStateChanged()
170 boolean showNotification = !call.isSelfManaged(); in onCallStateChanged()
171 logCall(call, type, showNotification, null /*result*/); in onCallStateChanged()
189 public boolean shouldLogDisconnectedCall(Call call, int oldState, boolean isCallCanceled) { in shouldLogDisconnectedCall() argument
[all …]
DConnectionServiceWrapper.java131 Call call = mCallIdMapper.getCall(callId); in handleCreateConnectionComplete() local
132 if (mScheduledFutureMap.containsKey(call)) { in handleCreateConnectionComplete()
133 ScheduledFuture<?> existingTimeout = mScheduledFutureMap.get(call); in handleCreateConnectionComplete()
135 mScheduledFutureMap.remove(call); in handleCreateConnectionComplete()
181 Call call = mCallIdMapper.getCall(callId); in handleCreateConferenceComplete() local
182 if (mScheduledFutureMap.containsKey(call)) { in handleCreateConferenceComplete()
183 ScheduledFuture<?> existingTimeout = mScheduledFutureMap.get(call); in handleCreateConferenceComplete()
185 mScheduledFutureMap.remove(call); in handleCreateConferenceComplete()
217 Call call = mCallIdMapper.getCall(callId); in setActive() local
218 if (call != null) { in setActive()
[all …]
DParcelableCallUtils.java70 public ParcelableCall toParcelableCall(Call call, boolean includeVideoProvider, in toParcelableCall() argument
73 call, includeVideoProvider, phoneAccountRegistrar, false, false, false); in toParcelableCall()
76 public ParcelableCall toParcelableCallForScreening(Call call, in toParcelableCallForScreening() argument
78 return ParcelableCallUtils.toParcelableCallForScreening(call, in toParcelableCallForScreening()
102 Call call, in toParcelableCall() argument
108 return toParcelableCall(call, includeVideoProvider, phoneAccountRegistrar, in toParcelableCall()
133 Call call, in toParcelableCall() argument
142 state = getParcelableState(call, supportsExternalCalls); in toParcelableCall()
146 int capabilities = convertConnectionToCallCapabilities(call.getConnectionCapabilities()); in toParcelableCall()
147 int properties = convertConnectionToCallProperties(call.getConnectionProperties()); in toParcelableCall()
[all …]
DCallsManagerListenerBase.java30 public void onCallAdded(Call call) { in onCallAdded() argument
34 public void onCallRemoved(Call call) { in onCallRemoved() argument
38 public void onCreateConnectionFailed(Call call) { in onCreateConnectionFailed() argument
42 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
47 Call call, in onConnectionServiceChanged() argument
53 public void onIncomingCallAnswered(Call call) { in onIncomingCallAnswered() argument
57 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { in onIncomingCallRejected() argument
78 public void onRingbackRequested(Call call, boolean ringback) { in onRingbackRequested() argument
82 public void onIsConferencedChanged(Call call) { in onIsConferencedChanged() argument
86 public void onIsVoipAudioModeChanged(Call call) { in onIsVoipAudioModeChanged() argument
[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 …]
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java286 Call call = readCallFromData(data); in onRestore() local
287 if (call != null && call.type != Calls.VOICEMAIL_TYPE) { in onRestore()
288 writeCallToProvider(call); in onRestore()
291 Log.d(TAG, "Restored call: " + call); in onRestore()
304 for (Call call : calls) { in runBackup()
305 if (!state.callIds.contains(call.id)) { in runBackup()
308 Log.d(TAG, "Adding call to backup: " + call); in runBackup()
312 addCallToBackup(data, call); in runBackup()
313 state.callIds.add(call.id); in runBackup()
317 callsToRemove.remove(call.id); in runBackup()
[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.java53 HfpClientCall call) { in assertCall() argument
54 assertThat(call).isNotNull(); in assertCall()
55 assertThat(call.getDevice()).isEqualTo(device); in assertCall()
56 assertThat(call.getId()).isEqualTo(id); in assertCall()
57 assertThat(call.getUUID()).isNotNull(); in assertCall()
58 assertThat(call.getState()).isEqualTo(state); in assertCall()
59 assertThat(call.getNumber()).isEqualTo(number); in assertCall()
60 assertThat(call.isMultiParty()).isEqualTo(isMultiParty); in assertCall()
61 assertThat(call.isOutgoing()).isEqualTo(isOutgoing); in assertCall()
62 assertThat(call.getCreationElapsedMilli()).isGreaterThan(0); in assertCall()
[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/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java219 public void onStateChanged(BluetoothCall call, int state) { in onStateChanged() argument
220 if (mCallInfo.isNullCall(call)) { in onStateChanged()
223 if (call.isExternalCall()) { in onStateChanged()
231 Integer tbsCallState = getTbsCallState(call); in onStateChanged()
233 mBluetoothLeCallControl.onCallStateChanged(call.getTbsCallId(), tbsCallState); in onStateChanged()
265 public void onStateChanged(Call call, int state) { in onStateChanged() argument
266 super.onStateChanged(call, state); in onStateChanged()
267 onStateChanged(getBluetoothCallById(System.identityHashCode(call)), state); in onStateChanged()
270 public void onDetailsChanged(BluetoothCall call, Call.Details details) { in onDetailsChanged() argument
271 if (mCallInfo.isNullCall(call)) { in onDetailsChanged()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DVoipCallMonitor.java98 for (Call call : mNotificationPendingCalls) { in VoipCallMonitor()
99 if (info.matchesCall(call)) { in VoipCallMonitor()
103 call.getId(), sbn.getId()); in VoipCallMonitor()
104 mNotificationPendingCalls.remove(call); in VoipCallMonitor()
105 mNotificationInfoToCallMap.put(info, call); in VoipCallMonitor()
132 Call call = mNotificationInfoToCallMap.getOrDefault(info, null); in VoipCallMonitor()
133 if (call != null) { in VoipCallMonitor()
135 mNotificationInfoToCallMap.remove(info, call); in VoipCallMonitor()
136 stopFGSDelegation(call); in VoipCallMonitor()
163 public void onCallAdded(Call call) { in onCallAdded() argument
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DDisconnectedCallNotifier.java127 public void onCallRemoved(Call call) { in onCallRemoved() argument
136 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
137 DisconnectCause cause = call.getDisconnectCause(); in onCallStateChanged()
147 UserHandle userHandle = call.getAssociatedUser(); 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()
160 final CharSequence expandedText = call.isEmergency in showDisconnectedNotification()
[all …]

12345678910>>...27