Searched refs:foregroundCall (Results 1 – 5 of 5) sorted by relevance
97 public void startRinging(Call foregroundCall) { in startRinging() argument102 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()
990 Call foregroundCall = getForegroundCall(); in answerCall() local993 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 …]
664 Call foregroundCall = getForegroundCall(); in shouldPlayHoldTone() local666 if (foregroundCall == null) { in shouldPlayHoldTone()677 if (!foregroundCall.isActive()) { in shouldPlayHoldTone()681 return foregroundCall.isRemotelyHeld(); in shouldPlayHoldTone()
308 final Call foregroundCall = mock(Call.class); in testListCurrentCallsCdmaHold() local311 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() local691 add(foregroundCall); in testProcessChldHoldActiveSwapConference()[all …]
449 final Call foregroundCall = phone.getForegroundCall(); in onCreateUnknownConnection() local450 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()451 && (foregroundCall.hasConnections())) { in onCreateUnknownConnection()452 allConnections.addAll(foregroundCall.getConnections()); in onCreateUnknownConnection()