Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +4 −1 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ import android.telephony.TelephonyLocalConnection; import android.telephony.TelephonyManager; import android.telephony.emergency.EmergencyNumber; import android.telephony.ims.ImsCallProfile; import android.telephony.ims.ImsCallSession; import android.telephony.ims.ImsConferenceState; import android.telephony.ims.ImsMmTelManager; import android.telephony.ims.ImsReasonInfo; Loading Loading @@ -2798,7 +2799,9 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { private void maybeSetVideoCallProvider(ImsPhoneConnection conn, ImsCall imsCall) { android.telecom.Connection.VideoProvider connVideoProvider = conn.getVideoProvider(); if (connVideoProvider != null || imsCall.getCallSession().getVideoCallProvider() == null) { ImsCallSession callSession = imsCall.getCallSession(); if (connVideoProvider != null || callSession == null || callSession.getVideoCallProvider() == null) { return; } Loading tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneCallTrackerTest.java +16 −0 Original line number Diff line number Diff line Loading @@ -1878,6 +1878,22 @@ public class ImsPhoneCallTrackerTest extends TelephonyTest { assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); } @Test @SmallTest public void testCallSessionUpdatedAfterSrvccCompleted() throws RemoteException { startOutgoingCall(); // Move the connection to the handover state. mCTUT.notifySrvccState(Call.SrvccState.COMPLETED); try { // When trigger CallSessionUpdated after Srvcc completes, checking no exception. mImsCallListener.onCallUpdated(mSecondImsCall); } catch (Exception ex) { Assert.fail("unexpected exception thrown" + ex.getMessage()); } } private void sendCarrierConfigChanged() { Intent intent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); intent.putExtra(CarrierConfigManager.EXTRA_SUBSCRIPTION_INDEX, mPhone.getSubId()); Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +4 −1 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ import android.telephony.TelephonyLocalConnection; import android.telephony.TelephonyManager; import android.telephony.emergency.EmergencyNumber; import android.telephony.ims.ImsCallProfile; import android.telephony.ims.ImsCallSession; import android.telephony.ims.ImsConferenceState; import android.telephony.ims.ImsMmTelManager; import android.telephony.ims.ImsReasonInfo; Loading Loading @@ -2798,7 +2799,9 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { private void maybeSetVideoCallProvider(ImsPhoneConnection conn, ImsCall imsCall) { android.telecom.Connection.VideoProvider connVideoProvider = conn.getVideoProvider(); if (connVideoProvider != null || imsCall.getCallSession().getVideoCallProvider() == null) { ImsCallSession callSession = imsCall.getCallSession(); if (connVideoProvider != null || callSession == null || callSession.getVideoCallProvider() == null) { return; } Loading
tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneCallTrackerTest.java +16 −0 Original line number Diff line number Diff line Loading @@ -1878,6 +1878,22 @@ public class ImsPhoneCallTrackerTest extends TelephonyTest { assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); } @Test @SmallTest public void testCallSessionUpdatedAfterSrvccCompleted() throws RemoteException { startOutgoingCall(); // Move the connection to the handover state. mCTUT.notifySrvccState(Call.SrvccState.COMPLETED); try { // When trigger CallSessionUpdated after Srvcc completes, checking no exception. mImsCallListener.onCallUpdated(mSecondImsCall); } catch (Exception ex) { Assert.fail("unexpected exception thrown" + ex.getMessage()); } } private void sendCarrierConfigChanged() { Intent intent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); intent.putExtra(CarrierConfigManager.EXTRA_SUBSCRIPTION_INDEX, mPhone.getSubId()); Loading