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.java553 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() local
556 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
560 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld()
563 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanBeHeld()
576 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() local
579 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
583 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
586 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
601 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService() local
604 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService()
[all …]
DBluetoothPhoneServiceTest.java354 final Call heldCall = createHeldCall(); in testListCurrentCallsCdmaHold() local
357 calls.add(heldCall); in testListCurrentCallsCdmaHold()
360 when(heldCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold()
362 when(heldCall.isIncoming()).thenReturn(true); in testListCurrentCallsCdmaHold()
365 when(heldCall.getGatewayInfo()).thenReturn(new GatewayInfo(null, null, in testListCurrentCallsCdmaHold()
374 add(heldCall); in testListCurrentCallsCdmaHold()
378 when(heldCall.getParentCall()).thenReturn(parentCall); in testListCurrentCallsCdmaHold()
700 Call heldCall = createHeldCall(); in testProcessChldReleaseActiveHold() local
726 Call heldCall = createHeldCall(); in testProcessChldHoldActiveUnhold() local
731 verify(mMockCallsManager).unholdCall(eq(heldCall)); in testProcessChldHoldActiveUnhold()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothPhoneServiceImpl.java501 Call heldCall = mCallsManager.getHeldCall(); in processChld() local
504 Log.i(TAG, "Active: %s\nRinging: %s\nHeld: %s", activeCall, ringingCall, heldCall); in processChld()
510 } else if (heldCall != null) { in processChld()
511 mCallsManager.disconnectCall(heldCall); in processChld()
515 if (activeCall == null && ringingCall == null && heldCall == null) in processChld()
526 } else if (heldCall != null) { in processChld()
527 mCallsManager.unholdCall(heldCall); in processChld()
539 } else if (heldCall != null) { in processChld()
542 mCallsManager.unholdCall(heldCall); in processChld()
707 Call heldCall = mCallsManager.getHeldCall(); in updateHeadsetWithCallState() local
[all …]
DCallsManager.java2885 Call heldCall = getHeldCallByConnectionService(call.getTargetPhoneAccount());
2886 if (heldCall != null) {
2887 heldCall.disconnect();
2890 heldCall.getId(), activeCall.getId());
3207 Optional<Call> heldCall = mCalls.stream()
3213 return heldCall.isPresent() ? heldCall.get() : null;
/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()