Loading src/java/com/android/internal/telephony/RetryManager.java +9 −6 Original line number Diff line number Diff line Loading @@ -22,11 +22,10 @@ import android.os.PersistableBundle; import android.os.SystemProperties; import android.telephony.CarrierConfigManager; import android.telephony.Rlog; import android.telephony.data.ApnSetting; import android.text.TextUtils; import android.util.Pair; import com.android.internal.telephony.dataconnection.ApnSetting; import java.util.ArrayList; import java.util.Random; Loading Loading @@ -506,7 +505,9 @@ public class RetryManager { if (++index == mWaitingApns.size()) index = 0; // Stop if we find the non-failed APN. if (mWaitingApns.get(index).permanentFailed == false) break; if (!mWaitingApns.get(index).getPermanentFailed()) { break; } // If we've already cycled through all the APNs, that means there is no APN we can try if (index == mCurrentApnIndex) return null; Loading Loading @@ -553,7 +554,9 @@ public class RetryManager { if (++index >= mWaitingApns.size()) index = 0; // Stop if we find the non-failed APN. if (mWaitingApns.get(index).permanentFailed == false) break; if (!mWaitingApns.get(index).getPermanentFailed()) { break; } // If we've already cycled through all the APNs, that means all APNs have // permanently failed Loading Loading @@ -594,7 +597,7 @@ public class RetryManager { * */ public void markApnPermanentFailed(ApnSetting apn) { if (apn != null) { apn.permanentFailed = true; apn.setPermanentFailed(true); } } Loading Loading @@ -627,7 +630,7 @@ public class RetryManager { configureRetry(); for (ApnSetting apn : mWaitingApns) { apn.permanentFailed = false; apn.setPermanentFailed(false); } log("Setting " + mWaitingApns.size() + " waiting APNs."); Loading src/java/com/android/internal/telephony/dataconnection/ApnContext.java +11 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.net.NetworkCapabilities; import android.net.NetworkConfig; import android.net.NetworkRequest; import android.telephony.Rlog; import android.telephony.data.ApnSetting; import android.text.TextUtils; import android.util.LocalLog; import android.util.SparseIntArray; Loading Loading @@ -128,6 +129,14 @@ public class ApnContext { return mApnType; } /** * Gets the APN type bitmask. * @return The APN type bitmask */ public int getApnTypeBitmask() { return ApnSetting.getApnTypesBitmaskFromString(mApnType); } /** * Get the data call async channel. * @return The data call async channel Loading Loading @@ -392,8 +401,8 @@ public class ApnContext { String provisioningApn = mPhone.getContext().getResources() .getString(R.string.mobile_provisioning_apn); if (!TextUtils.isEmpty(provisioningApn) && (mApnSetting != null) && (mApnSetting.apn != null)) { return (mApnSetting.apn.equals(provisioningApn)); (mApnSetting != null) && (mApnSetting.getApnName() != null)) { return (mApnSetting.getApnName().equals(provisioningApn)); } else { return false; } Loading Loading
src/java/com/android/internal/telephony/RetryManager.java +9 −6 Original line number Diff line number Diff line Loading @@ -22,11 +22,10 @@ import android.os.PersistableBundle; import android.os.SystemProperties; import android.telephony.CarrierConfigManager; import android.telephony.Rlog; import android.telephony.data.ApnSetting; import android.text.TextUtils; import android.util.Pair; import com.android.internal.telephony.dataconnection.ApnSetting; import java.util.ArrayList; import java.util.Random; Loading Loading @@ -506,7 +505,9 @@ public class RetryManager { if (++index == mWaitingApns.size()) index = 0; // Stop if we find the non-failed APN. if (mWaitingApns.get(index).permanentFailed == false) break; if (!mWaitingApns.get(index).getPermanentFailed()) { break; } // If we've already cycled through all the APNs, that means there is no APN we can try if (index == mCurrentApnIndex) return null; Loading Loading @@ -553,7 +554,9 @@ public class RetryManager { if (++index >= mWaitingApns.size()) index = 0; // Stop if we find the non-failed APN. if (mWaitingApns.get(index).permanentFailed == false) break; if (!mWaitingApns.get(index).getPermanentFailed()) { break; } // If we've already cycled through all the APNs, that means all APNs have // permanently failed Loading Loading @@ -594,7 +597,7 @@ public class RetryManager { * */ public void markApnPermanentFailed(ApnSetting apn) { if (apn != null) { apn.permanentFailed = true; apn.setPermanentFailed(true); } } Loading Loading @@ -627,7 +630,7 @@ public class RetryManager { configureRetry(); for (ApnSetting apn : mWaitingApns) { apn.permanentFailed = false; apn.setPermanentFailed(false); } log("Setting " + mWaitingApns.size() + " waiting APNs."); Loading
src/java/com/android/internal/telephony/dataconnection/ApnContext.java +11 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.net.NetworkCapabilities; import android.net.NetworkConfig; import android.net.NetworkRequest; import android.telephony.Rlog; import android.telephony.data.ApnSetting; import android.text.TextUtils; import android.util.LocalLog; import android.util.SparseIntArray; Loading Loading @@ -128,6 +129,14 @@ public class ApnContext { return mApnType; } /** * Gets the APN type bitmask. * @return The APN type bitmask */ public int getApnTypeBitmask() { return ApnSetting.getApnTypesBitmaskFromString(mApnType); } /** * Get the data call async channel. * @return The data call async channel Loading Loading @@ -392,8 +401,8 @@ public class ApnContext { String provisioningApn = mPhone.getContext().getResources() .getString(R.string.mobile_provisioning_apn); if (!TextUtils.isEmpty(provisioningApn) && (mApnSetting != null) && (mApnSetting.apn != null)) { return (mApnSetting.apn.equals(provisioningApn)); (mApnSetting != null) && (mApnSetting.getApnName() != null)) { return (mApnSetting.getApnName().equals(provisioningApn)); } else { return false; } Loading