Searched refs:foregroundCall (Results 1 – 5 of 5) sorted by relevance
207 public boolean startRinging(Call foregroundCall, boolean isHfpDeviceAttached) { in startRinging() argument208 if (foregroundCall == null) { in startRinging()213 if (foregroundCall.getState() != CallState.RINGING) { in startRinging()217 foregroundCall.getId()); in startRinging()224 boolean shouldRingForContact = shouldRingForContact(foregroundCall.getContactUri()); in startRinging()225 boolean isRingtonePresent = !(mRingtoneFactory.getRingtone(foregroundCall) == null); in startRinging()226 boolean isSelfManaged = foregroundCall.isSelfManaged(); in startRinging()227 boolean isSilentRingingRequested = foregroundCall.isSilentRingingRequested(); in startRinging()230 boolean hasExternalRinger = hasExternalRinger(foregroundCall); in startRinging()247 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Dialer handles"); in startRinging()[all …]
775 Call foregroundCall = getForegroundCall(); in shouldPlayHoldTone() local777 if (foregroundCall == null) { in shouldPlayHoldTone()788 if (!foregroundCall.isActive()) { in shouldPlayHoldTone()792 return foregroundCall.isRemotelyHeld(); in shouldPlayHoldTone()
1398 Call foregroundCall = getForegroundCall(); in startOutgoingCall()1400 if (foregroundCall.isSelfManaged()) { in startOutgoingCall()2486 Call foregroundCall = mCallAudioManager.getPossiblyHeldForegroundCall();2495 if (!isDisconnectingChildCall && foregroundCall != null2496 && foregroundCall.getState() == CallState.ON_HOLD) {2497 foregroundCall.unhold();2499 } else if (foregroundCall != null &&2500 !foregroundCall.can(Connection.CAPABILITY_SUPPORT_HOLD) &&2501 foregroundCall.getState() == CallState.ON_HOLD) {2507 foregroundCall.unhold();[all …]
352 final Call foregroundCall = mock(Call.class); in testListCurrentCallsCdmaHold() local355 calls.add(foregroundCall); in testListCurrentCallsCdmaHold()358 when(foregroundCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold()360 when(foregroundCall.isIncoming()).thenReturn(false); in testListCurrentCallsCdmaHold()362 when(foregroundCall.getGatewayInfo()).thenReturn(new GatewayInfo(null, null, in testListCurrentCallsCdmaHold()369 when(parentCall.getConferenceLevelActiveCall()).thenReturn(foregroundCall); in testListCurrentCallsCdmaHold()372 add(foregroundCall); in testListCurrentCallsCdmaHold()376 when(foregroundCall.getParentCall()).thenReturn(parentCall); in testListCurrentCallsCdmaHold()780 final Call foregroundCall = mock(Call.class); in testProcessChldHoldActiveSwapConference() local787 add(foregroundCall); in testProcessChldHoldActiveSwapConference()[all …]
991 final Call foregroundCall = phone.getForegroundCall(); in onCreateUnknownConnection() local992 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()993 && (foregroundCall.hasConnections())) { in onCreateUnknownConnection()994 allConnections.addAll(foregroundCall.getConnections()); in onCreateUnknownConnection()