Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java430 final BluetoothCall heldCall = createHeldCall(UUID.randomUUID()); in testListCurrentCallsCdmaHold() local
431 when(heldCall.getHandle()).thenReturn(Uri.parse("tel:555-0002")); in testListCurrentCallsCdmaHold()
434 calls.add(heldCall); in testListCurrentCallsCdmaHold()
437 mBluetoothInCallService.onCallAdded(heldCall); in testListCurrentCallsCdmaHold()
441 when(heldCall.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaHold()
443 when(heldCall.isIncoming()).thenReturn(true); in testListCurrentCallsCdmaHold()
446 when(heldCall.getGatewayInfo()) in testListCurrentCallsCdmaHold()
455 List<Integer> childrenIds = Arrays.asList(foregroundCall.getId(), heldCall.getId()); in testListCurrentCallsCdmaHold()
460 when(heldCall.getParentId()).thenReturn(parentId); in testListCurrentCallsCdmaHold()
1185 BluetoothCall heldCall = createHeldCall(UUID.randomUUID()); in testProcessChldHoldActiveUnhold() local
[all …]
DCallInfoTest.java96 BluetoothCall heldCall = getMockCall(); in getHeldCall() local
97 when(heldCall.getState()).thenReturn(Call.STATE_HOLDING); in getHeldCall()
99 calls.add(heldCall); in getHeldCall()
103 assertThat(mMockCallInfo.getHeldCall()).isEqualTo(heldCall); in getHeldCall()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallsManagerTest.java970 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() local
973 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
977 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
980 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanBeHeld()
993 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() local
996 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
1000 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
1003 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
1020 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testDontUnholdCallsBetweenConnectionServices() local
1027 verify(heldCall, never()).unhold(); in testDontUnholdCallsBetweenConnectionServices()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java1075 BluetoothCall heldCall = mCallInfo.getHeldCall(); in _processChld() local
1084 + heldCall in _processChld()
1094 } else if (!mCallInfo.isNullCall(heldCall)) { in _processChld()
1095 heldCall.disconnect(); in _processChld()
1101 && mCallInfo.isNullCall(heldCall)) { in _processChld()
1116 } else if (!mCallInfo.isNullCall(heldCall)) { in _processChld()
1117 heldCall.unhold(); in _processChld()
1130 } else if (!mCallInfo.isNullCall(heldCall)) { in _processChld()
1133 heldCall.unhold(); in _processChld()
1168 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.java3852 Call heldCall = getHeldCallByConnectionService(call.getTargetPhoneAccount());
3853 if (heldCall != null) {
3854 heldCall.disconnect();
3857 heldCall.getId(), activeCall.getId());
4393 Optional<Call> heldCall = mCalls.stream()
4399 return heldCall.isPresent() ? heldCall.get() : null;