Home
last modified time | relevance | path

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

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallsManagerTest.java511 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() local
514 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
518 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
521 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanBeHeld()
534 Call heldCall = addSpyCall(VOIP_1_HANDLE); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() local
537 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
541 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
544 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
559 Call heldCall = addSpyCall(VOIP_1_HANDLE); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService() local
562 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService()
[all …]
DBluetoothPhoneServiceTest.java353 final Call heldCall = createHeldCall(); in testListCurrentCallsCdmaHold() local
356 calls.add(heldCall); in testListCurrentCallsCdmaHold()
359 when(heldCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold()
361 when(heldCall.isIncoming()).thenReturn(true); in testListCurrentCallsCdmaHold()
364 when(heldCall.getGatewayInfo()).thenReturn(new GatewayInfo(null, null, in testListCurrentCallsCdmaHold()
373 add(heldCall); in testListCurrentCallsCdmaHold()
377 when(heldCall.getParentCall()).thenReturn(parentCall); in testListCurrentCallsCdmaHold()
699 Call heldCall = createHeldCall(); in testProcessChldReleaseActiveHold() local
725 Call heldCall = createHeldCall(); in testProcessChldHoldActiveUnhold() local
730 verify(mMockCallsManager).unholdCall(eq(heldCall)); in testProcessChldHoldActiveUnhold()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothPhoneServiceImpl.java497 Call heldCall = mCallsManager.getHeldCall(); in processChld() local
500 Log.i(TAG, "Active: %s\nRinging: %s\nHeld: %s", activeCall, ringingCall, heldCall); in processChld()
506 } else if (heldCall != null) { in processChld()
507 mCallsManager.disconnectCall(heldCall); in processChld()
511 if (activeCall == null && ringingCall == null && heldCall == null) in processChld()
522 } else if (heldCall != null) { in processChld()
523 mCallsManager.unholdCall(heldCall); in processChld()
535 } else if (heldCall != null) { in processChld()
538 mCallsManager.unholdCall(heldCall); in processChld()
703 Call heldCall = mCallsManager.getHeldCall(); in updateHeadsetWithCallState() local
[all …]
DCallsManager.java2406 Call heldCall = getHeldCallByConnectionService(call.getTargetPhoneAccount());
2407 if (heldCall != null) {
2408 heldCall.disconnect();
2411 heldCall.getId(), activeCall.getId());
2707 Optional<Call> heldCall = mCalls.stream()
2713 return heldCall.isPresent() ? heldCall.get() : null;
/packages/apps/Dialer/java/com/android/incallui/
DInCallPresenter.java1362 final DialerCall heldCall = calls.getBackgroundCall(); in handleCallKey() local
1363 if (heldCall != null) { in handleCallKey()
1366 final boolean canHold = heldCall.can(android.telecom.Call.Details.CAPABILITY_HOLD); in handleCallKey()
1368 LogUtil.v("InCallPresenter.handleCallKey", "heldCall: " + heldCall + ", canHold: " + canHold); in handleCallKey()
1371 if (heldCall.getState() == DialerCallState.ONHOLD && canHold) { in handleCallKey()
1372 heldCall.unhold(); in handleCallKey()