Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +1 −0 Original line number Diff line number Diff line Loading @@ -1073,6 +1073,7 @@ public class ImsPhoneConnection extends Connection implements mAudioCodec = localCallProfile.mMediaProfile.mAudioQuality; mMetrics.writeAudioCodecIms(mOwner.mPhone.getPhoneId(), imsCall.getCallSession()); mOwner.getPhone().getVoiceCallSessionStats().onAudioCodecChanged(this, mAudioCodec); changed = true; } if (localCallProfile != null Loading tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneConnectionTest.java +10 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,16 @@ public class ImsPhoneConnectionTest extends TelephonyTest { eq(Call.State.ACTIVE)); } @Test @SmallTest public void testUpdateCodec() { // MO Foreground Connection dailing -> active mConnectionUT = new ImsPhoneConnection(mImsPhone, "+1 (700).555-41NN1234", mImsCT, mForeGroundCall, false); doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState(); assertTrue(mConnectionUT.updateMediaCapabilities(mImsCall)); } @Test @SmallTest public void testImsUpdateStateBackGround() { Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +1 −0 Original line number Diff line number Diff line Loading @@ -1073,6 +1073,7 @@ public class ImsPhoneConnection extends Connection implements mAudioCodec = localCallProfile.mMediaProfile.mAudioQuality; mMetrics.writeAudioCodecIms(mOwner.mPhone.getPhoneId(), imsCall.getCallSession()); mOwner.getPhone().getVoiceCallSessionStats().onAudioCodecChanged(this, mAudioCodec); changed = true; } if (localCallProfile != null Loading
tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneConnectionTest.java +10 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,16 @@ public class ImsPhoneConnectionTest extends TelephonyTest { eq(Call.State.ACTIVE)); } @Test @SmallTest public void testUpdateCodec() { // MO Foreground Connection dailing -> active mConnectionUT = new ImsPhoneConnection(mImsPhone, "+1 (700).555-41NN1234", mImsCT, mForeGroundCall, false); doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState(); assertTrue(mConnectionUT.updateMediaCapabilities(mImsCall)); } @Test @SmallTest public void testImsUpdateStateBackGround() { Loading