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

Commit c54a65a0 authored by Koushik Dutta's avatar Koushik Dutta Committed by Gerrit Code Review
Browse files

Merge "CdmaLteServiceStateTracker: simultaneous voice and data support on CDMA...

Merge "CdmaLteServiceStateTracker: simultaneous voice and data support on CDMA (e.g: SVDO)" into jellybean
parents 76320c18 d4a37348
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -192,4 +192,9 @@ public interface TelephonyProperties
     * Ignore RIL_UNSOL_NITZ_TIME_RECEIVED completely, used for debugging/testing.
     */
    static final String PROPERTY_IGNORE_NITZ = "telephony.test.ignore.nitz";

    /**
     * Set to true to indicates support for simultaneous voice and data.
     */
    static final String PROPERTY_SVDATA = "ro.config.svlte1x";
}
+7 −4
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {

    private ServiceState  mLteSS;  // The last LTE state from Voice Registration

    private boolean getSVDO = SystemProperties.getBoolean(TelephonyProperties.PROPERTY_SVDATA, false);

    public CdmaLteServiceStateTracker(CDMALTEPhone phone) {
        super(phone);
        mCdmaLtePhone = phone;
@@ -492,10 +494,11 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {

    @Override
    public boolean isConcurrentVoiceAndDataAllowed() {
        // Note: it needs to be confirmed which CDMA network types
        // can support voice and data calls concurrently.
        // For the time-being, the return value will be false.
        return (mRilRadioTechnology == ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
        if (mLteSS.getRadioTechnology() !=
                    ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT)
            return getSVDO;
        else
            return (mLteSS.getCssIndicator() == 1);
    }

    /**