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

Commit d4a37348 authored by Richard Ross's avatar Richard Ross Committed by Shareef Ali
Browse files

CdmaLteServiceStateTracker: simultaneous voice and data support on CDMA (e.g: SVDO)



Forward port from CM9 commit I246fe1f609f494006dfa6e98589a62cb859146a4

Change-Id: Ife6fdf67931b48863dea8ced90d6898318249907
Signed-off-by: default avatardhacker29 <davidhackerdvm@gmail.com>
parent 9dd84b3f
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);
    }

    /**