Home
last modified time | relevance | path

Searched refs:ringingCall (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java667 BluetoothCall ringingCall = createForegroundCall(UUID.randomUUID()); in testRingingCallClccResponse() local
668 calls.add(ringingCall); in testRingingCallClccResponse()
669 mBluetoothInCallService.onCallAdded(ringingCall); in testRingingCallClccResponse()
671 when(ringingCall.getState()).thenReturn(Call.STATE_RINGING); in testRingingCallClccResponse()
672 when(ringingCall.isIncoming()).thenReturn(true); in testRingingCallClccResponse()
673 when(ringingCall.isConference()).thenReturn(false); in testRingingCallClccResponse()
674 when(ringingCall.getHandle()).thenReturn(Uri.parse("tel:555-0000")); in testRingingCallClccResponse()
675 when(ringingCall.getGatewayInfo()) in testRingingCallClccResponse()
705 BluetoothCall ringingCall = createForegroundCall(UUID.randomUUID()); in testCallClccCache() local
706 calls.add(ringingCall); in testCallClccCache()
[all …]
DCallInfoTest.java121 BluetoothCall ringingCall = getMockCall(); in getRingingOrSimulatedRingingCall() local
122 when(ringingCall.getState()).thenReturn(Call.STATE_SIMULATED_RINGING); in getRingingOrSimulatedRingingCall()
124 calls.add(ringingCall); in getRingingOrSimulatedRingingCall()
128 assertThat(mMockCallInfo.getRingingOrSimulatedRingingCall()).isEqualTo(ringingCall); in getRingingOrSimulatedRingingCall()
188 BluetoothCall ringingCall = getMockCall(); in getForegroundCall_withRingingCall() local
189 when(ringingCall.getState()).thenReturn(Call.STATE_CONNECTING); in getForegroundCall_withRingingCall()
191 calls.add(ringingCall); in getForegroundCall_withRingingCall()
195 assertThat(mMockCallInfo.getForegroundCall()).isEqualTo(ringingCall); in getForegroundCall_withRingingCall()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java553 BluetoothCall ringingCall = mCallInfo.getRingingOrSimulatedRingingCall(); in isHighDefCallInProgress() local
558 if (ringingCall != null) { in isHighDefCallInProgress()
559 isHighDef = ringingCall.isHighDefAudio(); in isHighDefCallInProgress()
1068 BluetoothCall ringingCall = mCallInfo.getRingingOrSimulatedRingingCall(); in _processChld() local
1069 if (ringingCall == null) { in _processChld()
1072 Log.i(TAG, "ringingCall hashcode: " + ringingCall.hashCode()); in _processChld()
1082 + ringingCall in _processChld()
1090 if (!mCallInfo.isNullCall(ringingCall)) { in _processChld()
1091 Log.i(TAG, "reject ringing call " + ringingCall.hashCode()); in _processChld()
1092 ringingCall.reject(false, null); in _processChld()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallWakeLockController.java73 Call ringingCall = mCallsManager.getRingingOrSimulatedRingingCall(); in handleWakeLock() local
74 if (ringingCall != null && !ringingCall.isExternalCall()) { in handleWakeLock()
DCallsManager.java4283 Call ringingCall = getFirstCallWithState(CallState.RINGING,
4286 if (ringingCall == null) {
4306 answerCall(ringingCall, VideoProfile.STATE_AUDIO_ONLY);
4310 if (ringingCall != null) {
4313 ringingCall.reject(false, null);
5187 Call ringingCall = getRingingOrSimulatedRingingCall();
5188 ringingCall.getAnalytics().setCallIsAdditional(true);
5189 ringingCall.getAnalytics().setCallIsInterrupted(true);
5190 if (ringingCall.getState() == CallState.SIMULATED_RINGING) {
5191 if (!ringingCall.hasGoneActiveBefore()) {
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java1970 final Call ringingCall = phone.getRingingCall(); in onCreateUnknownConnection() local
1971 if (ringingCall.hasConnections()) { in onCreateUnknownConnection()
1972 allConnections.addAll(ringingCall.getConnections()); in onCreateUnknownConnection()
3807 Call ringingCall = phone.getRingingCall(); in checkAndRejectIncomingCall() local
3808 if (ringingCall == null in checkAndRejectIncomingCall()
3809 || ringingCall.getState() == Call.State.IDLE in checkAndRejectIncomingCall()
3810 || ringingCall.getState() == Call.State.DISCONNECTED) { in checkAndRejectIncomingCall()
3814 ringingCall = imsPhone.getRingingCall(); in checkAndRejectIncomingCall()
3816 if (imsPhone == null || ringingCall == null in checkAndRejectIncomingCall()
3817 || ringingCall.getState() == Call.State.IDLE in checkAndRejectIncomingCall()
[all …]
DTelephonyConnection.java1324 Call ringingCall = phone.getRingingCall(); in performHold() local
1336 if (ringingCall.getState() != Call.State.WAITING) { in performHold()
2343 Call ringingCall = getPhone().getRingingCall(); in isValidRingingCall() local
2344 if (!ringingCall.getState().isRinging()) { in isValidRingingCall()
2349 if (ringingCall.getEarliestConnection() != mOriginalConnection) { in isValidRingingCall()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallsManagerTest.java1971 Call ringingCall = addSpyCall(SIM_1_HANDLE, CallState.RINGING); in testMakeRoomForEmergencyCallDuringActiveAndRingingCallDisconnectRinging() local
1980 verify(ringingCall).reject(anyBoolean(), any(), any()); in testMakeRoomForEmergencyCallDuringActiveAndRingingCallDisconnectRinging()