Home
last modified time | relevance | path

Searched refs:heldCall (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java352 final BluetoothCall heldCall = createHeldCall(); in testListCurrentCallsCdmaHold() local
355 calls.add(heldCall); in testListCurrentCallsCdmaHold()
358 mBluetoothInCallService.onCallAdded(heldCall); in testListCurrentCallsCdmaHold()
362 when(heldCall.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaHold()
364 when(heldCall.isIncoming()).thenReturn(true); in testListCurrentCallsCdmaHold()
367 when(heldCall.getGatewayInfo()).thenReturn( in testListCurrentCallsCdmaHold()
377 heldCall.getTelecomCallId()); in testListCurrentCallsCdmaHold()
382 when(heldCall.getParentId()).thenReturn(parentId); in testListCurrentCallsCdmaHold()
730 BluetoothCall heldCall = createHeldCall(); in testProcessChldReleaseActiveHold() local
754 BluetoothCall heldCall = createHeldCall(); in testProcessChldHoldActiveUnhold() local
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallsManagerTest.java564 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() local
567 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
571 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
574 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanBeHeld()
587 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() local
590 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
594 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
597 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
612 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService() local
615 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java716 BluetoothCall heldCall = mCallInfo.getHeldCall(); in _processChld() local
720 + " Held: " + heldCall); in _processChld()
729 } else if (!mCallInfo.isNullCall(heldCall)) { in _processChld()
730 heldCall.disconnect(); in _processChld()
736 && mCallInfo.isNullCall(heldCall)) { in _processChld()
751 } else if (!mCallInfo.isNullCall(heldCall)) { in _processChld()
752 heldCall.unhold(); in _processChld()
765 } else if (!mCallInfo.isNullCall(heldCall)) { in _processChld()
768 heldCall.unhold(); in _processChld()
803 BluetoothCall heldCall = mCallInfo.getHeldCall(); in updateHeadsetWithCallState() local
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DInCallPresenter.java1367 final DialerCall heldCall = calls.getBackgroundCall(); in handleCallKey() local
1368 if (heldCall != null) { in handleCallKey()
1371 final boolean canHold = heldCall.can(android.telecom.Call.Details.CAPABILITY_HOLD); in handleCallKey()
1373 LogUtil.v("InCallPresenter.handleCallKey", "heldCall: " + heldCall + ", canHold: " + canHold); in handleCallKey()
1376 if (heldCall.getState() == DialerCallState.ONHOLD && canHold) { in handleCallKey()
1377 heldCall.unhold(); in handleCallKey()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java3041 Call heldCall = getHeldCallByConnectionService(call.getTargetPhoneAccount());
3042 if (heldCall != null) {
3043 heldCall.disconnect();
3046 heldCall.getId(), activeCall.getId());
3436 Optional<Call> heldCall = mCalls.stream()
3442 return heldCall.isPresent() ? heldCall.get() : null;