Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aca90aa5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Ensure ImsCallProfile updates with only codec change updates to...

Merge "Ensure ImsCallProfile updates with only codec change updates to telecom." am: 25147fda am: 6a0becd2

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1532540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9590ff32b2c859f0bdd290f7f2beb0545cb8faa5
parents bac3cdd7 6a0becd2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+10 −0
Original line number Diff line number Diff line
@@ -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() {