Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DRinger.java211 public boolean startRinging(Call foregroundCall, boolean isHfpDeviceAttached) { in startRinging() argument
212 if (foregroundCall == null) { in startRinging()
217 if (foregroundCall.getState() != CallState.RINGING in startRinging()
218 && foregroundCall.getState() != CallState.SIMULATED_RINGING) { in startRinging()
222 foregroundCall.getId()); in startRinging()
230 .supplyAsync(() -> getRingerAttributes(foregroundCall, isHfpDeviceAttached), in startRinging()
243 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "RingerAttributes error"); in startRinging()
249 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Dialer handles"); in startRinging()
252 Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Silent ringing " in startRinging()
266 boolean isVibratorEnabled = isVibratorEnabled(mContext, foregroundCall); in startRinging()
[all …]
DCallAudioManager.java843 Call foregroundCall = getForegroundCall(); in shouldPlayHoldTone() local
845 if (foregroundCall == null) { in shouldPlayHoldTone()
856 if (!foregroundCall.isActive()) { in shouldPlayHoldTone()
860 return foregroundCall.isRemotelyHeld(); in shouldPlayHoldTone()
DCallsManager.java1699 Call foregroundCall = getForegroundCall(); in startOutgoingCall()
1701 if (foregroundCall.isSelfManaged()) { in startOutgoingCall()
3203 Call foregroundCall = mCallAudioManager.getPossiblyHeldForegroundCall();
3212 if (!isDisconnectingChildCall && foregroundCall != null
3213 && foregroundCall.getState() == CallState.ON_HOLD) {
3214 foregroundCall.unhold();
3216 } else if (foregroundCall != null &&
3217 !foregroundCall.can(Connection.CAPABILITY_SUPPORT_HOLD) &&
3218 foregroundCall.getState() == CallState.ON_HOLD) {
3225 foregroundCall.unhold();
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java1020 BluetoothCall foregroundCall; in getForegroundCall() local
1023 foregroundCall = getCallByStates(states); in getForegroundCall()
1024 if (!mCallInfo.isNullCall(foregroundCall)) { in getForegroundCall()
1025 return foregroundCall; in getForegroundCall()
1032 foregroundCall = getCallByStates(states); in getForegroundCall()
1033 if (!mCallInfo.isNullCall(foregroundCall)) { in getForegroundCall()
1034 return foregroundCall; in getForegroundCall()
1039 foregroundCall = getCallByStates(states); in getForegroundCall()
1040 if (!mCallInfo.isNullCall(foregroundCall)) { in getForegroundCall()
1041 return foregroundCall; in getForegroundCall()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java351 final BluetoothCall foregroundCall = getMockCall(); in testListCurrentCallsCdmaHold() local
354 calls.add(foregroundCall); in testListCurrentCallsCdmaHold()
357 mBluetoothInCallService.onCallAdded(foregroundCall); in testListCurrentCallsCdmaHold()
361 when(foregroundCall.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaHold()
363 when(foregroundCall.isIncoming()).thenReturn(false); in testListCurrentCallsCdmaHold()
365 when(foregroundCall.getGatewayInfo()).thenReturn( in testListCurrentCallsCdmaHold()
373 String foregroundCallId = foregroundCall.getTelecomCallId(); in testListCurrentCallsCdmaHold()
376 List<String> childrenIds = Arrays.asList(foregroundCall.getTelecomCallId(), in testListCurrentCallsCdmaHold()
381 when(foregroundCall.getParentId()).thenReturn(parentId); in testListCurrentCallsCdmaHold()
808 final BluetoothCall foregroundCall = getMockCall(); in testProcessChldHoldActiveSwapConference() local
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java1412 final Call foregroundCall = phone.getForegroundCall(); in onCreateUnknownConnection() local
1413 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()
1414 && (foregroundCall.hasConnections())) { in onCreateUnknownConnection()
1415 allConnections.addAll(foregroundCall.getConnections()); in onCreateUnknownConnection()
DTelephonyConnection.java1847 ImsPhoneCall foregroundCall = ((ImsPhone) phone).getForegroundCall(); in shouldSetDisableAddCallExtra() local
1848 if (foregroundCall != null) { in shouldSetDisableAddCallExtra()
1849 ImsCall call = foregroundCall.getImsCall(); in shouldSetDisableAddCallExtra()