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

Commit 98be81d9 authored by Sooraj Sasindran's avatar Sooraj Sasindran Committed by Android (Google) Code Review
Browse files

Merge "Remove unused gsm.defaultpdpcontext.active"

parents 7954a15c 902a520f
Loading
Loading
Loading
Loading
+6 −28
Original line number Original line Diff line number Diff line
@@ -690,11 +690,6 @@ public class DcTracker extends Handler {


    //***** Constants
    //***** Constants


    // Used by puppetmaster/*/radio_stress.py
    private static final String PUPPET_MASTER_RADIO_STRESS_TEST = "gsm.defaultpdpcontext.active";

    private static final int POLL_PDP_MILLIS = 5 * 1000;

    private static final int PROVISIONING_SPINNER_TIMEOUT_MILLIS = 120 * 1000;
    private static final int PROVISIONING_SPINNER_TIMEOUT_MILLIS = 120 * 1000;


    static final Uri PREFERAPN_NO_UPDATE_URI_USING_SUBID =
    static final Uri PREFERAPN_NO_UPDATE_URI_USING_SUBID =
@@ -2802,26 +2797,14 @@ public class DcTracker extends Handler {
                }
                }


                // everything is setup
                // everything is setup
                if (TextUtils.equals(apnContext.getApnType(), PhoneConstants.APN_TYPE_DEFAULT)) {
                if (TextUtils.equals(apnContext.getApnType(), PhoneConstants.APN_TYPE_DEFAULT)
                    try {
                        && mCanSetPreferApn && mPreferredApn == null) {
                        SystemProperties.set(PUPPET_MASTER_RADIO_STRESS_TEST, "true");
                    } catch (RuntimeException ex) {
                        log("Failed to set PUPPET_MASTER_RADIO_STRESS_TEST to true");
                    }
                    if (mCanSetPreferApn && mPreferredApn == null) {
                    if (DBG) log("onDataSetupComplete: PREFERRED APN is null");
                    if (DBG) log("onDataSetupComplete: PREFERRED APN is null");
                    mPreferredApn = apn;
                    mPreferredApn = apn;
                    if (mPreferredApn != null) {
                    if (mPreferredApn != null) {
                        setPreferredApn(mPreferredApn.getId());
                        setPreferredApn(mPreferredApn.getId());
                    }
                    }
                }
                }
                } else {
                    try {
                        SystemProperties.set(PUPPET_MASTER_RADIO_STRESS_TEST, "false");
                    } catch (RuntimeException ex) {
                        log("Failed to set PUPPET_MASTER_RADIO_STRESS_TEST to false");
                    }
                }


                // A connection is setup
                // A connection is setup
                apnContext.setState(DctConstants.State.CONNECTED);
                apnContext.setState(DctConstants.State.CONNECTED);
@@ -3026,11 +3009,6 @@ public class DcTracker extends Handler {
        }
        }
        // If APN is still enabled, try to bring it back up automatically
        // If APN is still enabled, try to bring it back up automatically
        if (mAttached.get() && apnContext.isReady() && retryAfterDisconnected(apnContext)) {
        if (mAttached.get() && apnContext.isReady() && retryAfterDisconnected(apnContext)) {
            try {
                SystemProperties.set(PUPPET_MASTER_RADIO_STRESS_TEST, "false");
            } catch (RuntimeException ex) {
                log("Failed to set PUPPET_MASTER_RADIO_STRESS_TEST to false");
            }
            // Wait a bit before trying the next APN, so that
            // Wait a bit before trying the next APN, so that
            // we're not tying up the RIL command channel.
            // we're not tying up the RIL command channel.
            // This also helps in any external dependency to turn off the context.
            // This also helps in any external dependency to turn off the context.