/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/tests/src/com/android/server/telecom/tests/ |
D | CallTest.java | 130 Call call = createCall("1", Call.CALL_DIRECTION_INCOMING); in testSetHasGoneActive() local 131 assertFalse(call.hasGoneActiveBefore()); in testSetHasGoneActive() 132 call.setState(CallState.ACTIVE, ""); in testSetHasGoneActive() 133 assertTrue(call.hasGoneActiveBefore()); in testSetHasGoneActive() 134 call.setState(CallState.AUDIO_PROCESSING, ""); in testSetHasGoneActive() 135 assertTrue(call.hasGoneActiveBefore()); in testSetHasGoneActive() 188 Call call = new Call( in testIsCreateConnectionComplete() local 206 assertFalse(call.isCreateConnectionComplete()); in testIsCreateConnectionComplete() 212 call.handleCreateConnectionSuccess(Mockito.mock(CallIdMapper.class), connection); in testIsCreateConnectionComplete() 213 assertTrue(call.isCreateConnectionComplete()); in testIsCreateConnectionComplete() [all …]
|
D | CallAudioManagerTest.java | 117 Call call = createIncomingCall(); in testUnmuteOfSecondIncomingCall() local 119 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) in testUnmuteOfSecondIncomingCall() 121 when(call.getId()).thenReturn("1"); in testUnmuteOfSecondIncomingCall() 124 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall() 125 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall() 126 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall() 156 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall() 180 Call call = createIncomingCall(); 182 when(call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) 186 mCallAudioManager.onIncomingCallAnswered(call); [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAnomalyWatchdog.java | 165 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 …]
|
D | CallsManager.java | 190 default void onStartCreateConnection(Call call) {} in onStartCreateConnection() argument 191 void onCallAdded(Call call); in onCallAdded() argument 192 void onCreateConnectionFailed(Call call); in onCreateConnectionFailed() argument 193 void onCallRemoved(Call call); in onCallRemoved() argument 194 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() argument 196 Call call, in onConnectionServiceChanged() argument 199 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered() argument 200 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected() argument 205 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested() argument 206 void onIsConferencedChanged(Call call); in onIsConferencedChanged() argument [all …]
|
D | CallAudioManager.java | 110 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument 111 if (shouldIgnoreCallForAudio(call)) { in onCallStateChanged() 119 Log.d(LOG_TAG, "Call state changed for TC@%s: %s -> %s", call.getId(), in onCallStateChanged() 122 removeCallFromAllBins(call); in onCallStateChanged() 123 HashSet<Call> newBinForCall = getBinForCall(call); in onCallStateChanged() 125 newBinForCall.add(call); in onCallStateChanged() 131 playToneForDisconnectedCall(call); in onCallStateChanged() 134 onCallLeavingState(call, oldState); in onCallStateChanged() 135 onCallEnteringState(call, newState); in onCallStateChanged() 139 public void onCallAdded(Call call) { in onCallAdded() argument [all …]
|
D | InCallAdapter.java | 61 Call call = mCallIdMapper.getCall(callId); in answerCall() local 62 if (call != null) { in answerCall() 63 mCallsManager.answerCall(call, videoState); in answerCall() 84 Call call = mCallIdMapper.getCall(callId); in deflectCall() local 85 if (call != null) { in deflectCall() 86 mCallsManager.deflectCall(call, address); in deflectCall() 117 Call call = mCallIdMapper.getCall(callId); in rejectCall() local 118 if (call != null) { in rejectCall() 119 mCallsManager.rejectCall(call, rejectWithMessage, textMessage); in rejectCall() 143 Call call = mCallIdMapper.getCall(callId); in rejectCallWithReason() local [all …]
|
D | CallDiagnosticServiceController.java | 75 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 …]
|
D | TransactionalServiceWrapper.java | 107 CallsManager callsManager, PhoneAccountHandle phoneAccountHandle, Call call, in TransactionalServiceWrapper() argument 113 mTrackedCalls.put(call.getId(), call); // service is now tracking its first call in TransactionalServiceWrapper() local 136 public void trackCall(Call call) { in trackCall() argument 138 if (call != null) { in trackCall() 139 mTrackedCalls.put(call.getId(), call); in trackCall() local 145 public boolean untrackCall(Call call) { in untrackCall() argument 148 if (call != null) { in untrackCall() 149 removedCall = mTrackedCalls.remove(call.getId()); in untrackCall() 169 for (Call call : mTrackedCalls.values()) { in cleanupTransactionalServiceWrapper() 170 mCallsManager.markCallAsDisconnected(call, in cleanupTransactionalServiceWrapper() [all …]
|
D | CallLogManager.java | 132 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument 133 int disconnectCause = call.getDisconnectCause().getCode(); in onCallStateChanged() 142 if (shouldLogDisconnectedCall(call, oldState, isCallCanceled)) { in onCallStateChanged() 144 if (!call.isIncoming()) { in onCallStateChanged() 157 boolean showNotification = !call.isSelfManaged(); in onCallStateChanged() 158 logCall(call, type, showNotification, null /*result*/); in onCallStateChanged() 175 public boolean shouldLogDisconnectedCall(Call call, int oldState, boolean isCallCanceled) { in shouldLogDisconnectedCall() argument 176 boolean shouldCallSelfManagedLogged = call.isLoggedSelfManaged() in shouldLogDisconnectedCall() 177 && (call.getHandoverState() == HandoverState.HANDOVER_NONE in shouldLogDisconnectedCall() 178 || call.getHandoverState() == HandoverState.HANDOVER_COMPLETE); in shouldLogDisconnectedCall() [all …]
|
D | ConnectionServiceWrapper.java | 176 Call call = mCallIdMapper.getCall(callId); in setActive() local 177 if (call != null) { in setActive() 178 mCallsManager.markCallAsActive(call); in setActive() 199 Call call = mCallIdMapper.getCall(callId); in setRinging() local 200 if (call != null) { in setRinging() 201 mCallsManager.markCallAsRinging(call); in setRinging() 222 Call call = mCallIdMapper.getCall(callId); in resetConnectionTime() local 223 if (call != null) { in resetConnectionTime() 224 mCallsManager.resetConnectionTime(call); in resetConnectionTime() 243 Call call = mCallIdMapper.getCall(callId); in setVideoProvider() local [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 | InCallController.java | 125 public void onDisconnect(InCallServiceConnection conn, Call call) {} in onDisconnect() argument 130 public int connect(Call call) { return CONNECTION_FAILED; } in connect() argument 316 public int connect(Call call) { in connect() argument 317 UserHandle userFromCall = getUserFromCall(call); in connect() 320 Log.addEvent(call, LogUtils.Events.INFO, "Already connected, ignoring request: " in connect() 322 if (call != null) { in connect() 324 addCall(call); in connect() 327 sendCallToService(call, mInCallServiceInfo, in connect() 333 if (call != null && call.isSelfManaged() && in connect() 335 || !call.visibleToInCallService())) { in connect() [all …]
|
D | ConnectionServiceFocusManager.java | 144 void onRequestFocusDone(CallFocus call); in onRequestFocusDone() argument 185 public void onCallAdded(Call call) { 186 if (callShouldBeIgnored(call)) { 195 call)) 200 public void onCallRemoved(Call call) { 201 if (callShouldBeIgnored(call)) { 210 call)) 215 public void onCallStateChanged(Call call, int oldState, int newState) { 216 if (callShouldBeIgnored(call)) { 225 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 …]
|
/packages/providers/CallLogProvider/src/com/android/calllogbackup/ |
D | CallLogBackupAgent.java | 273 Call call = readCallFromData(data); in onRestore() local 274 if (call != null && call.type != Calls.VOICEMAIL_TYPE) { in onRestore() 275 writeCallToProvider(call); in onRestore() 278 Log.d(TAG, "Restored call: " + call); in onRestore() 291 for (Call call : calls) { in runBackup() 292 if (!state.callIds.contains(call.id)) { in runBackup() 295 Log.d(TAG, "Adding call to backup: " + call); in runBackup() 299 addCallToBackup(data, call); in runBackup() 300 state.callIds.add(call.id); in runBackup() 304 callsToRemove.remove(call.id); in runBackup() [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/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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientCallTest.java | 46 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/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/ |
D | BluetoothInCallService.java | 233 public void onStateChanged(BluetoothCall call, int state) { in onStateChanged() argument 234 if (mCallInfo.isNullCall(call)) { in onStateChanged() 237 if (call.isExternalCall()) { in onStateChanged() 245 Integer tbsCallState = getTbsCallState(call); in onStateChanged() 247 mBluetoothLeCallControl.onCallStateChanged(call.getTbsCallId(), tbsCallState); in onStateChanged() 279 public void onStateChanged(Call call, int state) { in onStateChanged() argument 280 super.onStateChanged(call, state); in onStateChanged() 281 onStateChanged(getBluetoothCallById(System.identityHashCode(call)), state); in onStateChanged() 284 public void onDetailsChanged(BluetoothCall call, Call.Details details) { in onDetailsChanged() argument 285 if (mCallInfo.isNullCall(call)) { in onDetailsChanged() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/voip/ |
D | VoipCallMonitor.java | 92 for (Call call : mNotificationPendingCalls) { in VoipCallMonitor() 93 if (info.matchesCall(call)) { in VoipCallMonitor() 97 call.getId(), sbn.getId()); in VoipCallMonitor() 98 mNotificationPendingCalls.remove(call); in VoipCallMonitor() 99 mNotificationInfoToCallMap.put(info, call); in VoipCallMonitor() 126 Call call = mNotificationInfoToCallMap.getOrDefault(info, null); in VoipCallMonitor() 127 if (call != null) { in VoipCallMonitor() 129 mNotificationInfoToCallMap.remove(info, call); in VoipCallMonitor() 130 stopFGSDelegation(call); in VoipCallMonitor() 157 public void onCallAdded(Call call) { in onCallAdded() argument [all …]
|