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

Commit f32ebb8b authored by Allen Su's avatar Allen Su Committed by Gerrit Code Review
Browse files

Merge "[AudioCodec] Export API to get audio codec"

parents 027287ae 3d9f41a7
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -217,6 +217,9 @@ public abstract class Connection {
    protected int mCause = DisconnectCause.NOT_DISCONNECTED;
    protected PostDialState mPostDialState = PostDialState.NOT_STARTED;

    // Store the current audio code
    protected int mAudioCodec;

    @UnsupportedAppUsage
    private static String LOG_TAG = "Connection";

@@ -1355,4 +1358,12 @@ public abstract class Connection {
                .append(" post dial state: " + getPostDialState());
        return str.toString();
    }

    /**
     * Get current audio codec.
     * @return current audio codec.
     */
    public int getAudioCodec() {
        return mAudioCodec;
    }
}
+0 −3
Original line number Diff line number Diff line
@@ -76,9 +76,6 @@ public class GsmCdmaConnection extends Connection {
    // The cached delay to be used between DTMF tones fetched from carrier config.
    private int mDtmfToneDelay = 0;

    // Store the current audio codec
    private int mAudioCodec = DriverCall.AUDIO_QUALITY_UNSPECIFIED;

    private TelephonyMetrics mMetrics = TelephonyMetrics.getInstance();

    //***** Event Constants
+0 −3
Original line number Diff line number Diff line
@@ -132,9 +132,6 @@ public class ImsPhoneConnection extends Connection implements
     */
    private boolean mIsLocalVideoCapable = true;

    // Store the current audio codec
    private int mAudioCodec = ImsStreamMediaProfile.AUDIO_QUALITY_NONE;

    //***** Event Constants
    private static final int EVENT_DTMF_DONE = 1;
    private static final int EVENT_PAUSE_DONE = 2;