Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DRinger.java215 public boolean startRinging(Call foregroundCall, boolean isHfpDeviceAttached) { in startRinging() argument
216 if (foregroundCall == null) { in startRinging()
221 if (foregroundCall.getState() != CallState.RINGING in startRinging()
222 && foregroundCall.getState() != CallState.SIMULATED_RINGING) { in startRinging()
226 foregroundCall.getId()); in startRinging()
234 .supplyAsync(() -> getRingerAttributes(foregroundCall, isHfpDeviceAttached), in startRinging()
247 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "RingerAttributes error"); in startRinging()
253 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Dialer handles"); in startRinging()
256 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Silent ringing " in startRinging()
270 boolean isVibratorEnabled = isVibratorEnabled(mContext, foregroundCall); in startRinging()
[all …]
DCallAudioManager.java831 Call foregroundCall = getForegroundCall(); in shouldPlayHoldTone() local
833 if (foregroundCall == null) { in shouldPlayHoldTone()
844 if (!foregroundCall.isActive()) { in shouldPlayHoldTone()
848 return foregroundCall.isRemotelyHeld(); in shouldPlayHoldTone()
DCallsManager.java1569 Call foregroundCall = getForegroundCall(); in startOutgoingCall()
1571 if (foregroundCall.isSelfManaged()) { in startOutgoingCall()
2979 Call foregroundCall = mCallAudioManager.getPossiblyHeldForegroundCall();
2988 if (!isDisconnectingChildCall && foregroundCall != null
2989 && foregroundCall.getState() == CallState.ON_HOLD) {
2990 foregroundCall.unhold();
2992 } else if (foregroundCall != null &&
2993 !foregroundCall.can(Connection.CAPABILITY_SUPPORT_HOLD) &&
2994 foregroundCall.getState() == CallState.ON_HOLD) {
3000 foregroundCall.unhold();
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothPhoneServiceTest.java353 final Call foregroundCall = mock(Call.class); in testListCurrentCallsCdmaHold() local
356 calls.add(foregroundCall); in testListCurrentCallsCdmaHold()
359 when(foregroundCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold()
361 when(foregroundCall.isIncoming()).thenReturn(false); in testListCurrentCallsCdmaHold()
363 when(foregroundCall.getGatewayInfo()).thenReturn(new GatewayInfo(null, null, in testListCurrentCallsCdmaHold()
370 when(parentCall.getConferenceLevelActiveCall()).thenReturn(foregroundCall); in testListCurrentCallsCdmaHold()
373 add(foregroundCall); in testListCurrentCallsCdmaHold()
377 when(foregroundCall.getParentCall()).thenReturn(parentCall); in testListCurrentCallsCdmaHold()
781 final Call foregroundCall = mock(Call.class); in testProcessChldHoldActiveSwapConference() local
788 add(foregroundCall); in testProcessChldHoldActiveSwapConference()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java1423 final Call foregroundCall = phone.getForegroundCall(); in onCreateUnknownConnection() local
1424 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()
1425 && (foregroundCall.hasConnections())) { in onCreateUnknownConnection()
1426 allConnections.addAll(foregroundCall.getConnections()); in onCreateUnknownConnection()
DTelephonyConnection.java1580 ImsPhoneCall foregroundCall = ((ImsPhone) phone).getForegroundCall(); in shouldSetDisableAddCallExtra() local
1581 if (foregroundCall != null) { in shouldSetDisableAddCallExtra()
1582 ImsCall call = foregroundCall.getImsCall(); in shouldSetDisableAddCallExtra()