Searched refs:heldCall (Results 1 – 7 of 7) sorted by relevance
/packages/services/Telecomm/src/com/android/server/telecom/callsequencing/ |
D | CallSequencingController.java | 293 Call heldCall = mCallsManager.getFirstCallWithState(CallState.ON_HOLD); in holdActiveCallForNewCallWithSequencing() local 297 if (heldCall != null) { in holdActiveCallForNewCallWithSequencing() 304 if (isManagedCall(heldCall) && isVoipCall(call) && requestOrigin in holdActiveCallForNewCallWithSequencing() 309 heldCall); in holdActiveCallForNewCallWithSequencing() 313 heldCall, activeCall); in holdActiveCallForNewCallWithSequencing() 314 disconnectFutureHandler = heldCall.disconnect(); in holdActiveCallForNewCallWithSequencing() 317 heldCall.getId(), activeCall.getId()); in holdActiveCallForNewCallWithSequencing() 639 Call heldCall = mCallsManager.getFirstCallWithState(CallState.ON_HOLD); in makeRoomForOutgoingEmergencyCall() local 641 && !disconnectedCalls.contains(heldCall)) { in makeRoomForOutgoingEmergencyCall() 663 } else if (heldCall != null) { // Dual sim case in makeRoomForOutgoingEmergencyCall() [all …]
|
/packages/modules/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/telephony/ |
D | BluetoothInCallServiceTest.java | 356 final BluetoothCall heldCall = createHeldCall(UUID.randomUUID()); in listCurrentCallsCdmaHold() local 357 doReturn(Uri.parse("tel:555-0002")).when(heldCall).getHandle(); in listCurrentCallsCdmaHold() 360 mBluetoothInCallService.onCallAdded(mHeadsetService, heldCall); in listCurrentCallsCdmaHold() 362 doReturn(List.of(parentCall, foregroundCall, heldCall)) in listCurrentCallsCdmaHold() 366 doReturn(Call.STATE_ACTIVE).when(heldCall).getState(); in listCurrentCallsCdmaHold() 367 doReturn(true).when(heldCall).isIncoming(); in listCurrentCallsCdmaHold() 372 .when(heldCall) in listCurrentCallsCdmaHold() 380 List<Integer> childrenIds = Arrays.asList(foregroundCall.getId(), heldCall.getId()); in listCurrentCallsCdmaHold() 385 doReturn(parentId).when(heldCall).getParentId(); in listCurrentCallsCdmaHold() 1189 BluetoothCall heldCall = createHeldCall(UUID.randomUUID()); in processChldHoldActiveUnhold() local [all …]
|
D | CallInfoTest.java | 106 BluetoothCall heldCall = getMockCall(); in getHeldCall() local 107 when(heldCall.getState()).thenReturn(Call.STATE_HOLDING); in getHeldCall() 109 calls.add(heldCall); in getHeldCall() 113 assertThat(mMockCallInfo.getHeldCall()).isEqualTo(heldCall); in getHeldCall()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallsManagerTest.java | 977 Call heldCall = addSpyCall(); in testUnholdCallWhenOngoingCallCanBeHeld() local 980 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld() 984 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanBeHeld() 987 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanBeHeld() 1000 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() local 1003 mCallsManager.unholdCall(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() 1007 verifyFocusRequestAndExecuteCallback(heldCall); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() 1010 verify(heldCall).unhold(any()); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() 1027 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testDontUnholdCallsBetweenConnectionServices() local 1034 verify(heldCall, never()).unhold(); in testDontUnholdCallsBetweenConnectionServices() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/ |
D | BluetoothInCallService.java | 1148 BluetoothCall heldCall = mCallInfo.getHeldCall(); in processChldLocked() local 1157 + heldCall in processChldLocked() 1167 } else if (!mCallInfo.isNullCall(heldCall)) { in processChldLocked() 1168 heldCall.disconnect(); in processChldLocked() 1174 && mCallInfo.isNullCall(heldCall)) { in processChldLocked() 1189 } else if (!mCallInfo.isNullCall(heldCall)) { in processChldLocked() 1190 heldCall.unhold(); in processChldLocked() 1203 } else if (!mCallInfo.isNullCall(heldCall)) { in processChldLocked() 1206 heldCall.unhold(); in processChldLocked() 1246 BluetoothCall heldCall = mCallInfo.getHeldCall(); in updateHeadsetWithCallState() local [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallPresenter.java | 1367 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/ |
D | CallsManager.java | 1502 Call heldCall = getFirstCallWithState(call, true /* skipSelfManaged */, CallState.ON_HOLD); in onCallResumeFailed() local 1503 if (heldCall != null) { in onCallResumeFailed() 1504 mCallSequencingAdapter.handleCallResumeFailed(call, heldCall); in onCallResumeFailed() 4142 Call heldCall = getHeldCallByConnectionService(call.getTargetPhoneAccount()); 4143 if (heldCall != null) { 4144 heldCall.disconnect(); 4147 heldCall.getId(), activeCall.getId()); 4666 Optional<Call> heldCall = mCalls.stream() 4672 return heldCall.isPresent() ? heldCall.get() : null;
|