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.java97 public void startRinging(Call foregroundCall) { in startRinging() argument
102 if (foregroundCall == null) { in startRinging()
108 Log.event(foregroundCall, Log.Events.SKIP_RINGING); in startRinging()
114 if (!shouldRingForContact(foregroundCall.getContactUri())) { in startRinging()
121 mRingingCall = foregroundCall; in startRinging()
122 Log.event(foregroundCall, Log.Events.START_RINGER); in startRinging()
127 mRingtonePlayer.play(mRingtoneFactory, foregroundCall); in startRinging()
DCallsManager.java990 Call foregroundCall = getForegroundCall(); in answerCall() local
993 if (foregroundCall != null && foregroundCall != call && in answerCall()
994 (foregroundCall.isActive() || in answerCall()
995 foregroundCall.getState() == CallState.DIALING)) { in answerCall()
996 if (0 == (foregroundCall.getConnectionCapabilities() in answerCall()
1001 if (foregroundCall.getConnectionService() != call.getConnectionService()) { in answerCall()
1002 foregroundCall.disconnect(); in answerCall()
1013 foregroundCall, call); in answerCall()
1014 foregroundCall.hold(); in answerCall()
1363 Call foregroundCall = mCallAudioManager.getPossiblyHeldForegroundCall(); in markCallAsRemoved() local
[all …]
DCallAudioManager.java664 Call foregroundCall = getForegroundCall(); in shouldPlayHoldTone() local
666 if (foregroundCall == null) { in shouldPlayHoldTone()
677 if (!foregroundCall.isActive()) { in shouldPlayHoldTone()
681 return foregroundCall.isRemotelyHeld(); in shouldPlayHoldTone()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothPhoneServiceTest.java308 final Call foregroundCall = mock(Call.class); in testListCurrentCallsCdmaHold() local
311 calls.add(foregroundCall); in testListCurrentCallsCdmaHold()
314 when(foregroundCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold()
316 when(foregroundCall.isIncoming()).thenReturn(false); in testListCurrentCallsCdmaHold()
318 when(foregroundCall.getGatewayInfo()).thenReturn(new GatewayInfo(null, null, in testListCurrentCallsCdmaHold()
325 when(parentCall.getConferenceLevelActiveCall()).thenReturn(foregroundCall); in testListCurrentCallsCdmaHold()
328 add(foregroundCall); in testListCurrentCallsCdmaHold()
332 when(foregroundCall.getParentCall()).thenReturn(parentCall); in testListCurrentCallsCdmaHold()
684 final Call foregroundCall = mock(Call.class); in testProcessChldHoldActiveSwapConference() local
691 add(foregroundCall); in testProcessChldHoldActiveSwapConference()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java449 final Call foregroundCall = phone.getForegroundCall(); in onCreateUnknownConnection() local
450 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()
451 && (foregroundCall.hasConnections())) { in onCreateUnknownConnection()
452 allConnections.addAll(foregroundCall.getConnections()); in onCreateUnknownConnection()