Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DRinger.java207 public boolean startRinging(Call foregroundCall, boolean isHfpDeviceAttached) { in startRinging() argument
208 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 …]
DCallAudioManager.java775 Call foregroundCall = getForegroundCall(); in shouldPlayHoldTone() local
777 if (foregroundCall == null) { in shouldPlayHoldTone()
788 if (!foregroundCall.isActive()) { in shouldPlayHoldTone()
792 return foregroundCall.isRemotelyHeld(); in shouldPlayHoldTone()
DCallsManager.java1398 Call foregroundCall = getForegroundCall(); in startOutgoingCall()
1400 if (foregroundCall.isSelfManaged()) { in startOutgoingCall()
2486 Call foregroundCall = mCallAudioManager.getPossiblyHeldForegroundCall();
2495 if (!isDisconnectingChildCall && foregroundCall != null
2496 && 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 …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothPhoneServiceTest.java352 final Call foregroundCall = mock(Call.class); in testListCurrentCallsCdmaHold() local
355 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() local
787 add(foregroundCall); in testProcessChldHoldActiveSwapConference()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java991 final Call foregroundCall = phone.getForegroundCall(); in onCreateUnknownConnection() local
992 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()
993 && (foregroundCall.hasConnections())) { in onCreateUnknownConnection()
994 allConnections.addAll(foregroundCall.getConnections()); in onCreateUnknownConnection()