Home
last modified time | relevance | path

Searched refs:call (Results 1 – 25 of 540) 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.java126 void onCallAdded(Call call); in onCallAdded() argument
127 void onCallRemoved(Call call); in onCallRemoved() argument
128 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() argument
130 Call call, in onConnectionServiceChanged() argument
133 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered() argument
134 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected() argument
136 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested() argument
137 void onIsConferencedChanged(Call call); in onIsConferencedChanged() argument
138 void onIsVoipAudioModeChanged(Call call); in onIsVoipAudioModeChanged() argument
139 void onVideoStateChanged(Call call, int previousVideoState, int newVideoState); in onVideoStateChanged() argument
[all …]
DCallAudioManager.java100 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
101 if (shouldIgnoreCallForAudio(call)) { in onCallStateChanged()
105 Log.d(LOG_TAG, "Call state changed for TC@%s: %s -> %s", call.getId(), in onCallStateChanged()
108 removeCallFromAllBins(call); in onCallStateChanged()
109 HashSet<Call> newBinForCall = getBinForCall(call); in onCallStateChanged()
111 newBinForCall.add(call); in onCallStateChanged()
116 playToneForDisconnectedCall(call); in onCallStateChanged()
119 onCallLeavingState(call, oldState); in onCallStateChanged()
120 onCallEnteringState(call, newState); in onCallStateChanged()
124 public void onCallAdded(Call call) { in onCallAdded() argument
[all …]
DConnectionServiceWrapper.java108 Call call = mCallIdMapper.getCall(callId); in setActive() local
109 if (call != null) { in setActive()
110 mCallsManager.markCallAsActive(call); in setActive()
131 Call call = mCallIdMapper.getCall(callId); in setRinging() local
132 if (call != null) { in setRinging()
133 mCallsManager.markCallAsRinging(call); in setRinging()
154 Call call = mCallIdMapper.getCall(callId); in resetConnectionTime() local
155 if (call != null) { in resetConnectionTime()
156 mCallsManager.resetConnectionTime(call); in resetConnectionTime()
175 Call call = mCallIdMapper.getCall(callId); in setVideoProvider() local
[all …]
DInCallController.java89 public int connect(Call call) { return CONNECTION_FAILED; } in connect() argument
210 public int connect(Call call) { in connect() argument
212 Log.addEvent(call, LogUtils.Events.INFO, "Already connected, ignoring request."); in connect()
216 if (call != null && call.isSelfManaged() && in connect()
226 if (call != null && !call.isIncoming() && !call.isExternalCall()){ in connect()
228 call.getIntentExtras()); in connect()
230 call.getTargetPhoneAccount()); in connect()
243 if (call != null && mIsConnected) { in connect()
244 call.getAnalytics().addInCallService( in connect()
338 public int connect(Call call) { in connect() argument
[all …]
DInCallAdapter.java57 Call call = mCallIdMapper.getCall(callId); in answerCall() local
58 if (call != null) { in answerCall()
59 mCallsManager.answerCall(call, videoState); in answerCall()
80 Call call = mCallIdMapper.getCall(callId); in deflectCall() local
81 if (call != null) { in deflectCall()
82 mCallsManager.deflectCall(call, address); in deflectCall()
113 Call call = mCallIdMapper.getCall(callId); in rejectCall() local
114 if (call != null) { in rejectCall()
115 mCallsManager.rejectCall(call, rejectWithMessage, textMessage); in rejectCall()
136 Call call = mCallIdMapper.getCall(callId); in playDtmfTone() local
[all …]
DParcelableCallUtils.java67 public ParcelableCall toParcelableCall(Call call, boolean includeVideoProvider, in toParcelableCall() argument
70 call, includeVideoProvider, phoneAccountRegistrar, false, false, false); in toParcelableCall()
73 public ParcelableCall toParcelableCallForScreening(Call call, in toParcelableCallForScreening() argument
75 return ParcelableCallUtils.toParcelableCallForScreening(call, in toParcelableCallForScreening()
99 Call call, in toParcelableCall() argument
105 return toParcelableCall(call, includeVideoProvider, phoneAccountRegistrar, in toParcelableCall()
130 Call call, in toParcelableCall() argument
139 state = getParcelableState(call, supportsExternalCalls); in toParcelableCall()
143 int capabilities = convertConnectionToCallCapabilities(call.getConnectionCapabilities()); in toParcelableCall()
144 int properties = convertConnectionToCallProperties(call.getConnectionProperties()); in toParcelableCall()
[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 …]
DCallLogManager.java160 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
161 int disconnectCause = call.getDisconnectCause().getCode(); in onCallStateChanged()
170 if (shouldLogDisconnectedCall(call, oldState, isCallCanceled)) { in onCallStateChanged()
172 if (!call.isIncoming()) { in onCallStateChanged()
185 boolean showNotification = !call.isSelfManaged(); in onCallStateChanged()
186 logCall(call, type, showNotification, null /*result*/); in onCallStateChanged()
203 public boolean shouldLogDisconnectedCall(Call call, int oldState, boolean isCallCancelled) { in shouldLogDisconnectedCall() argument
209 if (call.isConference() && call.hadChildren() && in shouldLogDisconnectedCall()
210 !call.hasProperty(Connection.PROPERTY_REMOTELY_HOSTED)) { in shouldLogDisconnectedCall()
216 if (call.getParentCall() != null && call.hasProperty(Connection.PROPERTY_REMOTELY_HOSTED)) { in shouldLogDisconnectedCall()
[all …]
DBluetoothPhoneServiceImpl.java104 Call call = mCallsManager.getRingingCall();
105 if (call != null) {
106 mCallsManager.answerCall(call, VideoProfile.STATE_AUDIO_ONLY);
126 Call call = mCallsManager.getForegroundCall();
127 if (call != null) {
128 mCallsManager.disconnectCall(call);
147 Call call = mCallsManager.getForegroundCall();
148 if (call != null) {
151 mCallsManager.playDtmfTone(call, (char) dtmf);
152 mCallsManager.stopDtmfTone(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.TelecomAdapter;
46 import com.android.incallui.call.state.DialerCallState;
69 private DialerCall call; field in CallButtonPresenter
115 call = callList.getOutgoingCall(); in onStateChange()
117 call = callList.getActiveOrBackgroundCall(); in onStateChange()
123 if (oldState == InCallState.OUTGOING && call != null) { in onStateChange()
124 if (call.isVoiceMailNumber() && getActivity() != 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 …]
DStatusBarNotifier.java86 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 …]
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 …]
DInCallActivity.java81 import com.android.incallui.call.CallList;
82 import com.android.incallui.call.DialerCall;
83 import com.android.incallui.call.TelecomAdapter;
84 import com.android.incallui.call.state.DialerCallState;
349 DialerCall call = CallList.getInstance().getActiveOrBackgroundCall(); in relaunchedFromDialer() local
350 if (call != null && call.getState() == DialerCallState.ONHOLD) { in relaunchedFromDialer()
351 call.unhold(); in relaunchedFromDialer()
1091 DialerCall call = CallList.getInstance().getCallById(answerScreen.getCallId()); in newAnswerScreenDelegate() local
1092 if (call == null) { in newAnswerScreenDelegate()
1134 public void showDialogOrToastForWifiHandoverFailure(DialerCall call) { in showDialogOrToastForWifiHandoverFailure() argument
[all …]
DAnswerScreenPresenter.java35 import com.android.incallui.call.CallList;
36 import com.android.incallui.call.DialerCall;
37 import com.android.incallui.call.DialerCallListener;
50 @NonNull private final DialerCall call; field in AnswerScreenPresenter
54 @NonNull Context context, @NonNull AnswerScreen answerScreen, @NonNull DialerCall call) { in AnswerScreenPresenter() argument
58 this.call = Assert.isNotNull(call); in AnswerScreenPresenter()
59 if (isSmsResponseAllowed(call)) { in AnswerScreenPresenter()
60 answerScreen.setTextResponses(call.getCannedSmsResponses()); in AnswerScreenPresenter()
62 call.addCannedTextResponsesLoadedListener(this); in AnswerScreenPresenter()
65 if (AnswerProximitySensor.shouldUse(context, call)) { in AnswerScreenPresenter()
[all …]
DInCallPresenter.java65 import com.android.incallui.call.CallList;
66 import com.android.incallui.call.DialerCall;
67 import com.android.incallui.call.ExternalCallList;
68 import com.android.incallui.call.TelecomAdapter;
69 import com.android.incallui.call.state.DialerCallState;
152 final DialerCall call = callList.getDialerCallFromTelecomCall(telecomCall);
153 if (call == null) {
159 onPostDialCharWait(call.getId(), remainingPostDialSequence);
165 final DialerCall call = callList.getDialerCallFromTelecomCall(telecomCall);
166 if (call == null) {
[all …]
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java188 Call call = readCallFromData(data); in onRestore() local
189 if (call != null && call.type != Calls.VOICEMAIL_TYPE) { in onRestore()
190 writeCallToProvider(call); in onRestore()
192 Log.d(TAG, "Restored call: " + call); in onRestore()
205 for (Call call : calls) { in runBackup()
206 if (!state.callIds.contains(call.id)) { in runBackup()
209 Log.d(TAG, "Adding call to backup: " + call); in runBackup()
213 addCallToBackup(data, call); in runBackup()
214 state.callIds.add(call.id); in runBackup()
218 callsToRemove.remove(call.id); in runBackup()
[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/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/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientDeviceBlock.java82 for (BluetoothHeadsetClientCall call : calls) { in HfpClientDeviceBlock()
83 handleCall(call); in HfpClientDeviceBlock()
90 synchronized Connection onCreateIncomingConnection(BluetoothHeadsetClientCall call) { in onCreateIncomingConnection() argument
91 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateIncomingConnection()
96 Log.e(mTAG, "Call " + call + " ignored: connection does not exist"); in onCreateIncomingConnection()
109 synchronized Connection onCreateUnknownConnection(BluetoothHeadsetClientCall call) { in onCreateUnknownConnection() argument
110 Uri number = Uri.fromParts(PhoneAccount.SCHEME_TEL, call.getNumber(), null); in onCreateUnknownConnection()
111 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateUnknownConnection()
117 Log.e(mTAG, "Call " + call + " ignored: connection does not exist"); in onCreateUnknownConnection()
146 synchronized void handleCall(BluetoothHeadsetClientCall call) { in handleCall() argument
[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 …]
/packages/apps/Dialer/java/com/android/dialer/logging/
Ddialer_impression.proto29 // button in the call log
32 // Number identified as spam and the user tapped on the block number call
36 // User tapped on the unblock number in the call log
69 // blocking the number via call log. This is for case where the user wants
108 // User added the number to contacts from the after call notification
113 // User marked the number as spam on the after call notification flow
143 // User is in a active call i.e either incoming or outgoing
144 // This is mainly so we can assign an impression event to a call event i.e
147 // a call event
152 // Incoming call is a spam call
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioManagerTest.java99 Call call = createIncomingCall(); in testUnmuteOfSecondIncomingCall() local
100 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall()
102 when(call.getId()).thenReturn("1"); in testUnmuteOfSecondIncomingCall()
107 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
108 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
109 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
138 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
162 Call call = createIncomingCall();
163 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO))
169 mCallAudioManager.onIncomingCallAnswered(call);
[all …]

12345678910>>...22