/packages/apps/InCallUI/src/com/android/incallui/ |
D | CallList.java | 52 private final HashMap<String, Call> mCallById = new HashMap<>(); 53 private final HashMap<android.telecom.Call, Call> mCallByTelecommCall = new HashMap<>(); 64 private final Set<Call> mPendingDisconnectCalls = Collections.newSetFromMap( 65 new ConcurrentHashMap<Call, Boolean>(8, 0.9f, 1)); 82 public void onCallAdded(android.telecom.Call telecommCall) { in onCallAdded() 84 Call call = new Call(telecommCall); in onCallAdded() 86 if (call.getState() == Call.State.INCOMING || in onCallAdded() 87 call.getState() == Call.State.CALL_WAITING) { in onCallAdded() 95 public void onCallRemoved(android.telecom.Call telecommCall) { in onCallRemoved() 97 Call call = mCallByTelecommCall.get(telecommCall); in onCallRemoved() [all …]
|
D | Call.java | 47 public class Call { class 177 private static final String ID_PREFIX = Call.class.getSimpleName() + "_"; 180 private android.telecom.Call.Callback mTelecomCallCallback = 181 new android.telecom.Call.Callback() { 183 public void onStateChanged(android.telecom.Call call, int newState) { 190 public void onParentChanged(android.telecom.Call call, 191 android.telecom.Call newParent) { 198 public void onChildrenChanged(android.telecom.Call call, 199 List<android.telecom.Call> children) { 204 public void onDetailsChanged(android.telecom.Call call, [all …]
|
D | CallCardPresenter.java | 29 import android.telecom.Call.Details; 72 private Call mPrimary; 73 private Call mSecondary; 118 public void init(Context context, Call call) { in init() 134 startContactInfoSearch(call, true, call.getState() == Call.State.INCOMING); in init() 178 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() 191 Call primary = null; in onStateChange() 192 Call secondary = null; in onStateChange() 213 final boolean primaryChanged = !(Call.areSame(mPrimary, primary) && in onStateChange() 214 Call.areSameNumber(mPrimary, primary)); in onStateChange() [all …]
|
D | StatusBarNotifier.java | 30 import android.telecom.Call.Details; 64 private int mCallState = Call.State.INVALID; 155 final Call call = getCallToShow(callList); in updateInCallNotification() 164 private void showNotification(final Call call) { in showNotification() 165 final boolean isIncoming = (call.getState() == Call.State.INCOMING || in showNotification() 166 call.getState() == Call.State.CALL_WAITING); in showNotification() 182 Call call = CallList.getInstance().getCallById(callId); in showNotification() 190 Call call = CallList.getInstance().getCallById(callId); in showNotification() 201 private void buildAndSendNotification(Call originalCall, ContactCacheEntry contactInfo) { in buildAndSendNotification() 206 final Call call = getCallToShow(CallList.getInstance()); in buildAndSendNotification() [all …]
|
D | VideoCallPresenter.java | 134 private Call mPrimaryCall; 150 private int mCurrentCallState = Call.State.INVALID; 241 mCurrentCallState = Call.State.INVALID; in onUiReady() 378 InCallPresenter.InCallState newState, Call call) { in onIncomingCall() 406 Call primary = null; in onStateChange() 412 Call currentCall = null; in onStateChange() 461 private void checkForVideoStateChange(Call call) { in checkForVideoStateChange() 484 private void checkForCallStateChange(Call call) { in checkForCallStateChange() 522 private void onPrimaryCallChanged(Call newPrimaryCall) { in onPrimaryCallChanged() 546 private void updateCallCache(Call call) { in updateCallCache() [all …]
|
D | InCallPresenter.java | 120 private final android.telecom.Call.Callback mCallCallback = 121 new android.telecom.Call.Callback() { 123 public void onPostDialWait(android.telecom.Call telecomCall, 125 final Call call = mCallList.getCallByTelecommCall(telecomCall); 134 public void onDetailsChanged(android.telecom.Call telecomCall, 135 android.telecom.Call.Details details) { 136 final Call call = mCallList.getCallByTelecommCall(telecomCall); 147 public void onConferenceableCallsChanged(android.telecom.Call telecomCall, 148 List<android.telecom.Call> conferenceableCalls) { 394 public void onCallAdded(android.telecom.Call call) { in onCallAdded() [all …]
|
D | VideoPauseController.java | 32 import com.android.incallui.Call.State; 51 public CallContext(Call call) { in CallContext() 56 public void update(Call call) { in update() 75 public Call getCall() { in getCall() 81 private Call mCall; 157 Call call = null; in onStateChange() 203 private void onPrimaryCallChanged(Call call) { in onPrimaryCallChanged() 233 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() 248 private void updatePrimaryCallContext(Call call) { in updatePrimaryCallContext() 282 public void onUpgradeToVideoRequest(Call call, int videoState) { in onUpgradeToVideoRequest() [all …]
|
D | AnswerPresenter.java | 45 private Call mCall = null; 52 Call call; in onUiShowing() 72 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() 74 Call modifyCall = CallList.getInstance().getVideoUpgradeRequestCall(); in onIncomingCall() 88 public void onIncomingCall(Call call) { in onIncomingCall() 96 public void onDisconnect(Call call) { in onDisconnect() 102 Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST; in onSessionModificationStateChange() 121 private boolean isVideoUpgradePending(Call call) { in isVideoUpgradePending() 123 == Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST; in isVideoUpgradePending() 127 public void onUpgradeToVideo(Call call) { in onUpgradeToVideo() [all …]
|
D | CallUtils.java | 37 public static boolean isVideoCall(Call call) { in isVideoCall() 46 public static boolean isIncomingVideoCall(Call call) { in isIncomingVideoCall() 51 return (state == Call.State.INCOMING) || (state == Call.State.CALL_WAITING); in isIncomingVideoCall() 54 public static boolean isActiveVideoCall(Call call) { in isActiveVideoCall() 55 return CallUtils.isVideoCall(call) && call.getState() == Call.State.ACTIVE; in isActiveVideoCall() 58 public static boolean isOutgoingVideoCall(Call call) { in isOutgoingVideoCall() 63 return Call.State.isDialing(state) || state == Call.State.CONNECTING in isOutgoingVideoCall() 64 || state == Call.State.SELECT_PHONE_ACCOUNT; in isOutgoingVideoCall() 67 public static boolean isAudioCall(Call call) { in isAudioCall() 72 public static boolean canVideoPause(Call call) { in canVideoPause() [all …]
|
D | TelecomAdapter.java | 56 private android.telecom.Call getTelecommCallById(String callId) { in getTelecommCallById() 57 Call call = CallList.getInstance().getCallById(callId); in getTelecommCallById() 62 android.telecom.Call call = getTelecommCallById(callId); in answerCall() 71 android.telecom.Call call = getTelecommCallById(callId); in rejectCall() 80 android.telecom.Call call = getTelecommCallById(callId); in disconnectCall() 89 android.telecom.Call call = getTelecommCallById(callId); in holdCall() 98 android.telecom.Call call = getTelecommCallById(callId); in unholdCall() 123 android.telecom.Call call = getTelecommCallById(callId); in separateCall() 132 android.telecom.Call call = getTelecommCallById(callId); in merge() 134 List<android.telecom.Call> conferenceable = call.getConferenceableCalls(); in merge() [all …]
|
D | InCallVideoCallCallbackNotifier.java | 130 public void upgradeToVideoRequest(Call call, int videoState) { in upgradeToVideoRequest() 142 public void upgradeToVideoSuccess(Call call) { in upgradeToVideoSuccess() 153 public void upgradeToVideoFail(int status, Call call) { in upgradeToVideoFail() 164 public void downgradeToAudio(Call call) { in downgradeToAudio() 187 public void peerPausedStateChanged(Call call, boolean paused) { in peerPausedStateChanged() 199 public void videoQualityChanged(Call call, int videoQuality) { in videoQualityChanged() 212 public void peerDimensionsChanged(Call call, int width, int height) { in peerDimensionsChanged() 225 public void cameraDimensionsChanged(Call call, int width, int height) { in cameraDimensionsChanged() 253 public void onUpgradeToVideoRequest(Call call, int videoState); in onUpgradeToVideoRequest() 261 public void onUpgradeToVideoSuccess(Call call); in onUpgradeToVideoSuccess() [all …]
|
D | CallButtonPresenter.java | 47 private Call mCall; 126 public void onDetailsChanged(Call call, android.telecom.Call.Details details) { in onDetailsChanged() 134 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() 274 mCall.setSessionModificationState(Call.SessionModificationState.WAITING_FOR_RESPONSE); in changeToVideoClicked() 294 ? Call.VideoSettings.CAMERA_DIRECTION_FRONT_FACING in switchCameraClicked() 295 : Call.VideoSettings.CAMERA_DIRECTION_BACK_FACING; in switchCameraClicked() 326 mCall.setSessionModificationState(Call.SessionModificationState.WAITING_FOR_RESPONSE); in pauseVideoClicked() 331 private void updateUi(InCallState state, Call call) { in updateUi() 355 private void updateButtonsState(Call call) { in updateButtonsState() 366 android.telecom.Call.Details.CAPABILITY_SWAP_CONFERENCE); in updateButtonsState() [all …]
|
D | ConferenceManagerPresenter.java | 62 final Call call = callList.getActiveOrBackgroundCall(); in onStateChange() 77 public void onDetailsChanged(Call call, android.telecom.Call.Details details) { in onDetailsChanged() 79 android.telecom.Call.Details.CAPABILITY_DISCONNECT_FROM_CONFERENCE); in onDetailsChanged() 81 android.telecom.Call.Details.CAPABILITY_SEPARATE_FROM_CONFERENCE); in onDetailsChanged() 83 if (call.can(android.telecom.Call.Details.CAPABILITY_DISCONNECT_FROM_CONFERENCE) in onDetailsChanged() 85 || call.can(android.telecom.Call.Details.CAPABILITY_SEPARATE_FROM_CONFERENCE) in onDetailsChanged() 91 android.telecom.Call.Details.CAPABILITY_MANAGE_CONFERENCE)) { in onDetailsChanged() 97 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() 118 final Call currentCall = callList.getActiveOrBackgroundCall(); in update() 123 ArrayList<Call> calls = new ArrayList<>(currentCall.getChildCallIds().size()); in update() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallsManager.java | 64 public class CallsManager extends Call.ListenerBase implements VideoProviderProxy.Listener { 68 void onCallAdded(Call call); in onCallAdded() 69 void onCallRemoved(Call call); in onCallRemoved() 70 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() 72 Call call, in onConnectionServiceChanged() 75 void onIncomingCallAnswered(Call call); in onIncomingCallAnswered() 76 void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage); in onIncomingCallRejected() 77 void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall); in onForegroundCallChanged() 79 void onRingbackRequested(Call call, boolean ringback); in onRingbackRequested() 80 void onIsConferencedChanged(Call call); in onIsConferencedChanged() [all …]
|
D | InCallController.java | 81 private final Call.Listener mCallListener = new Call.ListenerBase() { 83 public void onConnectionCapabilitiesChanged(Call call) { 88 public void onCannedSmsResponsesLoaded(Call call) { 93 public void onVideoCallProviderChanged(Call call) { 98 public void onStatusHintsChanged(Call call) { 103 public void onExtrasChanged(Call call) { 108 public void onHandleChanged(Call call) { 113 public void onCallerDisplayNameChanged(Call call) { 118 public void onVideoStateChanged(Call call) { 123 public void onTargetPhoneAccountChanged(Call call) { [all …]
|
D | Call.java | 66 public class Call implements CreateConnectionResponse { class 71 void onSuccessfulOutgoingCall(Call call, int callState); in onSuccessfulOutgoingCall() 72 void onFailedOutgoingCall(Call call, DisconnectCause disconnectCause); in onFailedOutgoingCall() 73 void onSuccessfulIncomingCall(Call call); in onSuccessfulIncomingCall() 74 void onFailedIncomingCall(Call call); in onFailedIncomingCall() 75 void onSuccessfulUnknownCall(Call call, int callState); in onSuccessfulUnknownCall() 76 void onFailedUnknownCall(Call call); in onFailedUnknownCall() 77 void onRingbackRequested(Call call, boolean ringbackRequested); in onRingbackRequested() 78 void onPostDialWait(Call call, String remaining); in onPostDialWait() 79 void onPostDialChar(Call call, char nextChar); in onPostDialChar() [all …]
|
D | ConnectionServiceWrapper.java | 91 Call call = mCallIdMapper.getCall(callId); in setActive() 111 Call call = mCallIdMapper.getCall(callId); in setRinging() 132 Call call = mCallIdMapper.getCall(callId); in setVideoProvider() 150 Call call = mCallIdMapper.getCall(callId); in setDialing() 171 Call call = mCallIdMapper.getCall(callId); in setDisconnected() 193 Call call = mCallIdMapper.getCall(callId); in setOnHold() 213 Call call = mCallIdMapper.getCall(callId); in setRingbackRequested() 234 Call call = mCallIdMapper.getCall(callId); in removeCall() 258 Call call = mCallIdMapper.getCall(callId); in setConnectionCapabilities() 278 Call childCall = mCallIdMapper.getCall(callId); in setIsConferenced() [all …]
|
D | BluetoothPhoneServiceImpl.java | 76 private Call mOldHeldCall = null; 91 Call call = mCallsManager.getRingingCall(); 112 Call call = mCallsManager.getForegroundCall(); 132 Call call = mCallsManager.getForegroundCall(); 276 public void onCallAdded(Call call) { 281 public void onCallRemoved(Call call) { 287 public void onCallStateChanged(Call call, int oldState, int newState) { 294 for (Call otherCall : mCallsManager.getCalls()) { 312 public void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall) { 318 public void onIsConferencedChanged(Call call) { [all …]
|
D | Ringer.java | 62 private final List<Call> mRingingCalls = new LinkedList<>(); 96 public void onCallAdded(final Call call) { in onCallAdded() 107 public void onCallRemoved(Call call) { in onCallRemoved() 112 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() 119 public void onIncomingCallAnswered(Call call) { in onIncomingCallAnswered() 124 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { in onIncomingCallRejected() 129 public void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall) { in onForegroundCallChanged() 130 Call ringingCall = null; in onForegroundCallChanged() 150 private void onRespondedToIncomingCall(Call call) { in onRespondedToIncomingCall() 157 private Call getTopMostUnansweredCall() { in getTopMostUnansweredCall() [all …]
|
D | CallAudioManager.java | 167 private Call mCallToSpeedUpMTAudio = null; 197 public void onCallAdded(Call call) { in onCallAdded() 211 public void onCallRemoved(Call call) { in onCallRemoved() 225 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() 231 public void onIncomingCallAnswered(Call call) { in onIncomingCallAnswered() 246 if (call.can(android.telecom.Call.Details.CAPABILITY_SPEED_UP_MT_AUDIO)) { in onIncomingCallAnswered() 254 public void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall) { in onForegroundCallChanged() 261 public void onIsVoipAudioModeChanged(Call call) { in onIsVoipAudioModeChanged() 283 Call call = getForegroundCall(); in onWiredHeadsetPluggedInChanged() 395 void setIsRinging(Call call, boolean isRinging) { in setIsRinging() [all …]
|
D | CallsManagerListenerBase.java | 28 public void onCallAdded(Call call) { in onCallAdded() 32 public void onCallRemoved(Call call) { in onCallRemoved() 36 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() 41 Call call, in onConnectionServiceChanged() 47 public void onIncomingCallAnswered(Call call) { in onIncomingCallAnswered() 51 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { in onIncomingCallRejected() 55 public void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall) { in onForegroundCallChanged() 64 public void onRingbackRequested(Call call, boolean ringback) { in onRingbackRequested() 68 public void onIsConferencedChanged(Call call) { in onIsConferencedChanged() 72 public void onIsVoipAudioModeChanged(Call call) { in onIsVoipAudioModeChanged() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneUtils.java | 52 import com.android.internal.telephony.Call; 137 private Call fgCall; 138 private Call ringing; 139 public FgRingCalls(Call fg, Call ring) { in FgRingCalls() 162 (frC.fgCall.getState() == Call.State.DISCONNECTING) && in handleMessage() 210 /* package */ static boolean answerCall(Call ringingCall) { in answerCall() 222 if (ringingCall.getState() == Call.State.WAITING) { in answerCall() 300 final Call ringing = cm.getFirstActiveRingingCall(); in hangupAllCalls() 301 final Call fg = cm.getActiveFgCall(); in hangupAllCalls() 302 final Call bg = cm.getFirstActiveBgCall(); in hangupAllCalls() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomSystemTest.java | 41 import android.telecom.Call; 500 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall() 501 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall() 504 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall() 505 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall() 517 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect() 518 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect() 521 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallLocalDisconnect() 523 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallLocalDisconnect() 534 assertEquals(Call.STATE_DISCONNECTED, in testSingleOutgoingCallRemoteDisconnect() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestCallList.java | 19 import android.telecom.Call; 33 public class TestCallList extends Call.Listener { 38 private Call mCall; 40 public TestVideoCallListener(Call call) { in TestVideoCallListener() 88 private Set<Call> mCalls = new ArraySet<Call>(); 89 private Map<Call, TestVideoCallListener> mVideoCallListeners = 90 new ArrayMap<Call, TestVideoCallListener>(); 99 public void addCall(Call call) { in addCall() 109 public void removeCall(Call call) { in removeCall() 121 for (Call call : mVideoCallListeners.keySet()) { in clearCalls() [all …]
|
/packages/providers/CallLogProvider/src/com/android/calllogbackup/ |
D | CallLogBackupAgent.java | 65 static class Call { class in CallLogBackupAgent 184 Call call = readCallFromData(data); in onRestore() 195 void runBackup(CallLogBackupState state, BackupDataOutput data, Iterable<Call> calls) { in runBackup() 201 for (Call call : calls) { in runBackup() 229 private Iterable<Call> getAllCallLogEntries() { in getAllCallLogEntries() 230 List<Call> calls = new LinkedList<>(); in getAllCallLogEntries() 241 Call call = readCallFromCursor(cursor); in getAllCallLogEntries() 254 private void writeCallToProvider(Call call) { in writeCallToProvider() 307 Call readCallFromData(BackupDataInput data) { in readCallFromData() 321 Call call = new Call(); in readCallFromData() [all …]
|