Home
last modified time | relevance | path

Searched refs:activeCall (Results 1 – 15 of 15) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/callsequencing/
DCallSequencingController.java262 Call activeCall = (Call) mCallsManager.getConnectionServiceFocusManager() in holdActiveCallForNewCallWithSequencing() local
266 (activeCall == null ? "<none>" : activeCall.getId())); in holdActiveCallForNewCallWithSequencing()
267 if (activeCall != null && activeCall != call) { in holdActiveCallForNewCallWithSequencing()
268 boolean isSequencingRequiredActiveAndCall = !arePhoneAccountsSame(call, activeCall); in holdActiveCallForNewCallWithSequencing()
269 if (mCallsManager.canHold(activeCall)) { in holdActiveCallForNewCallWithSequencing()
270 CompletableFuture<Boolean> holdFuture = activeCall.hold("swap to " + call.getId()); in holdActiveCallForNewCallWithSequencing()
274 } else if (mCallsManager.supportsHold(activeCall)) { in holdActiveCallForNewCallWithSequencing()
308 + "disconnect carrier call %s for voip call %s.", activeCall, in holdActiveCallForNewCallWithSequencing()
313 heldCall, activeCall); in holdActiveCallForNewCallWithSequencing()
317 heldCall.getId(), activeCall.getId()); in holdActiveCallForNewCallWithSequencing()
[all …]
DCallsManagerCallSequencingAdapter.java193 Call activeCall = (Call) mCallsManager.getConnectionServiceFocusManager() in transactionHoldPotentialActiveCallForNewCall() local
195 Log.i(this, mTag + "newCall=[%s], activeCall=[%s]", newCall, activeCall); in transactionHoldPotentialActiveCallForNewCall()
197 if (activeCall == null || activeCall == newCall) { in transactionHoldPotentialActiveCallForNewCall()
208 && !mCallsManager.canHoldOrSwapActiveCall(activeCall, newCall)) { in transactionHoldPotentialActiveCallForNewCall()
223 activeCall, callback); in transactionHoldPotentialActiveCallForNewCall()
227 mCallsManager.transactionHoldPotentialActiveCallForNewCallUnflagged(activeCall, in transactionHoldPotentialActiveCallForNewCall()
303 public void maybeAddAnsweringCallDropsFg(Call activeCall, Call incomingCall) { in maybeAddAnsweringCallDropsFg() argument
305 mSequencingController.maybeAddAnsweringCallDropsFg(activeCall, incomingCall); in maybeAddAnsweringCallDropsFg()
307 mCallsManager.maybeAddAnsweringCallDropsFgOld(activeCall, incomingCall); in maybeAddAnsweringCallDropsFg()
/packages/modules/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java217 BluetoothCall activeCall = createActiveCall(UUID.randomUUID()); in listCurrentCallsOneCall() local
218 doReturn(Call.STATE_ACTIVE).when(activeCall).getState(); in listCurrentCallsOneCall()
219 doReturn(Uri.parse("tel:555-000")).when(activeCall).getHandle(); in listCurrentCallsOneCall()
221 doReturn(List.of(activeCall)).when(mMockCallInfo).getBluetoothCalls(); in listCurrentCallsOneCall()
222 mBluetoothInCallService.onCallAdded(mHeadsetService, activeCall); in listCurrentCallsOneCall()
237 BluetoothCall activeCall = createForegroundCall(UUID.randomUUID()); in bluetoothCallQualityReport() local
238 mBluetoothInCallService.onCallAdded(mHeadsetService, activeCall); in bluetoothCallQualityReport()
250 verify(activeCall) in bluetoothCallQualityReport()
506 BluetoothCall activeCall = createForegroundCall(UUID.randomUUID()); in listCurrentCallsCallHandleChanged() local
507 doReturn(List.of(activeCall)).when(mMockCallInfo).getBluetoothCalls(); in listCurrentCallsCallHandleChanged()
[all …]
DCallInfoTest.java94 BluetoothCall activeCall = getMockCall(); in getActiveCall() local
95 when(activeCall.getState()).thenReturn(Call.STATE_ACTIVE); in getActiveCall()
97 calls.add(activeCall); in getActiveCall()
101 assertThat(mMockCallInfo.getActiveCall()).isEqualTo(activeCall); in getActiveCall()
150 BluetoothCall activeCall = getMockCall(); in hasOnlyDisconnectedCalls_withConnectedCall() local
151 when(activeCall.getState()).thenReturn(Call.STATE_ACTIVE); in hasOnlyDisconnectedCalls_withConnectedCall()
153 calls.add(activeCall); in hasOnlyDisconnectedCalls_withConnectedCall()
222 BluetoothCall activeCall = getMockCall(); in getCallByState_withNoMatchingCall() local
223 when(activeCall.getState()).thenReturn(Call.STATE_ACTIVE); in getCallByState_withNoMatchingCall()
225 calls.add(activeCall); in getCallByState_withNoMatchingCall()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DAnswerScreenPresenter.java184 DialerCall activeCall = CallList.getInstance().getActiveCall(); in onAnswerAndReleaseCall() local
185 if (activeCall == null) { in onAnswerAndReleaseCall()
189 activeCall.setReleasedByAnsweringSecondCall(true); in onAnswerAndReleaseCall()
190 activeCall.addListener(new AnswerOnDisconnected(activeCall)); in onAnswerAndReleaseCall()
191 activeCall.disconnect(); in onAnswerAndReleaseCall()
198 DialerCall activeCall = CallList.getInstance().getActiveCall(); in onAnswerAndReleaseButtonDisabled() local
199 if (activeCall != null) { in onAnswerAndReleaseButtonDisabled()
200 activeCall.increaseSecondCallWithoutAnswerAndReleasedButtonTimes(); in onAnswerAndReleaseButtonDisabled()
206 DialerCall activeCall = CallList.getInstance().getActiveCall(); in onAnswerAndReleaseButtonEnabled() local
207 if (activeCall != null) { in onAnswerAndReleaseButtonEnabled()
[all …]
DProximitySensor.java114 DialerCall activeCall = callList.getActiveCall(); in onStateChange() local
115 boolean isVideoCall = activeCall != null && activeCall.isVideoCall(); in onStateChange()
116 boolean isRttCall = activeCall != null && activeCall.isActiveRttCall(); in onStateChange()
DInCallPresenter.java1343 final DialerCall activeCall = calls.getActiveCall(); in handleCallKey() local
1344 if (activeCall != null) { in handleCallKey()
1348 activeCall.can(android.telecom.Call.Details.CAPABILITY_MERGE_CONFERENCE); in handleCallKey()
1350 activeCall.can(android.telecom.Call.Details.CAPABILITY_SWAP_CONFERENCE); in handleCallKey()
1354 "activeCall: " + activeCall + ", canMerge: " + canMerge + ", canSwap: " + canSwap); in handleCallKey()
1358 TelecomAdapter.getInstance().merge(activeCall.getId()); in handleCallKey()
1361 TelecomAdapter.getInstance().swap(activeCall.getId()); in handleCallKey()
DVideoCallPresenter.java201 final DialerCall activeCall = CallList.getInstance().getActiveCall(); in updateCameraSelection() local
222 else if (isVideoCall(activeCall) && isIncomingVideoCall(call)) { in updateCameraSelection()
223 cameraDir = activeCall.getCameraDir(); in updateCameraSelection()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallSourceService.java34 void onMuteStateChanged(Call activeCall, boolean isMuted); in onMuteStateChanged() argument
36 void onCallEndpointChanged(Call activeCall, CallEndpoint callEndpoint); in onCallEndpointChanged() argument
38 void onAvailableCallEndpointsChanged(Call activeCall, Set<CallEndpoint> availableCallEndpoints); in onAvailableCallEndpointsChanged() argument
40 void onVideoStateChanged(Call activeCall, int videoState); in onVideoStateChanged() argument
42 void sendCallEvent(Call activeCall, String event, Bundle extras); in sendCallEvent() argument
DCallsManager.java1690 Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall(); in processIncomingCallIntent() local
1700 mCallSequencingAdapter.maybeAddAnsweringCallDropsFg(activeCall, call); in processIncomingCallIntent()
1883 public void maybeAddAnsweringCallDropsFgOld(Call activeCall, Call incomingCall) { in maybeAddAnsweringCallDropsFgOld() argument
1888 if (!incomingCall.isSelfManaged() && activeCall != null && !canHold(activeCall) in maybeAddAnsweringCallDropsFgOld()
1889 && activeCall.isSelfManaged()) { in maybeAddAnsweringCallDropsFgOld()
1894 CharSequence droppedApp = activeCall.getTargetPhoneAccountLabel(); in maybeAddAnsweringCallDropsFgOld()
3336 Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall();
3337 Log.d(this, "answerCall: Incoming call = %s Ongoing call %s", call, activeCall);
3350 Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall();
3351 if (activeCall != null && activeCall != call) {
[all …]
DConnectionServiceWrapper.java2087 public void onCallAudioStateChanged(Call activeCall, CallAudioState audioState) { in onCallAudioStateChanged() argument
2088 final String callId = mCallIdMapper.getCallId(activeCall); in onCallAudioStateChanged()
2102 public void onCallEndpointChanged(Call activeCall, CallEndpoint callEndpoint) { in onCallEndpointChanged() argument
2103 final String callId = mCallIdMapper.getCallId(activeCall); in onCallEndpointChanged()
2118 public void onAvailableCallEndpointsChanged(Call activeCall, in onAvailableCallEndpointsChanged() argument
2120 final String callId = mCallIdMapper.getCallId(activeCall); in onAvailableCallEndpointsChanged()
2142 public void onMuteStateChanged(Call activeCall, boolean isMuted) { in onMuteStateChanged() argument
2143 final String callId = mCallIdMapper.getCallId(activeCall); in onMuteStateChanged()
2157 public void onUsingAlternativeUi(Call activeCall, boolean isUsingAlternativeUi) { in onUsingAlternativeUi() argument
2158 final String callId = mCallIdMapper.getCallId(activeCall); in onUsingAlternativeUi()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java283 BluetoothCall activeCall = mCallInfo.getActiveCall(); in onStateChanged() local
284 if (!mCallInfo.isNullCall(activeCall) in onStateChanged()
591 BluetoothCall activeCall = mCallInfo.getActiveCall(); in isHighDefCallInProgress() local
609 } else if (activeCall != null) { in isHighDefCallInProgress()
610 isHighDef = activeCall.isHighDefAudio(); in isHighDefCallInProgress()
1140 BluetoothCall activeCall = mCallInfo.getActiveCall(); in processChldLocked() local
1153 + activeCall in processChldLocked()
1172 if (mCallInfo.isNullCall(activeCall) in processChldLocked()
1177 if (!mCallInfo.isNullCall(activeCall)) { in processChldLocked()
1178 BluetoothCall conferenceCall = getBluetoothCallById(activeCall.getParentId()); in processChldLocked()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DConnectionServiceFocusManagerTest.java208 CallFocus activeCall = createFakeCall(mActiveConnectionService, CallState.ACTIVE); in testCallStateChangedAffectCallFocus() local
210 requestFocus(activeCall, null); in testCallStateChangedAffectCallFocus()
213 int previousState = activeCall.getState(); in testCallStateChangedAffectCallFocus()
214 when(activeCall.getState()).thenReturn(CallState.ON_HOLD); in testCallStateChangedAffectCallFocus()
216 (Call) activeCall, previousState, activeCall.getState()); in testCallStateChangedAffectCallFocus()
DCallsManagerTest.java2128 Call activeCall = addSpyCall(SELF_MANAGED_HANDLE, null /* connMgr */, in testMakeRoomForOutgoingCallForSameVoipApp() local
2135 verify(activeCall).hold(anyString()); in testMakeRoomForOutgoingCallForSameVoipApp()
2145 Call activeCall = addSpyCall(SELF_MANAGED_HANDLE, null /* connMgr */, in testMakeRoomForOutgoingCallForSameVoipAppDifferentConnectionService() local
2152 verify(activeCall).hold(anyString()); in testMakeRoomForOutgoingCallForSameVoipAppDifferentConnectionService()
2162 Call activeCall = addSpyCall(SIM_1_HANDLE, null /* connMgr */, in testMakeRoomForOutgoingCallForSameNonVoipApp() local
2169 verify(activeCall, never()).hold(anyString()); in testMakeRoomForOutgoingCallForSameNonVoipApp()
3999 Call activeCall, in assertHoldActiveCallForNewCall() argument
4005 when(mConnectionSvrFocusMgr.getCurrentFocusCall()).thenReturn(activeCall); in assertHoldActiveCallForNewCall()
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java406 for (ActiveCallInfo activeCall : activeCalls) { in isSelectable()
407 if (Objects.equals(phoneAccountHandle, activeCall.phoneAccountHandle().orNull())) { in isSelectable()
422 ActiveCallInfo activeCall = activeCalls.get(0); in getActiveCallLabel() local
423 if (!activeCall.phoneAccountHandle().isPresent()) { in getActiveCallLabel()
430 .getPhoneAccount(activeCall.phoneAccountHandle().get()); in getActiveCallLabel()