Loading src/java/com/android/internal/telephony/dataconnection/ApnContext.java +11 −2 Original line number Diff line number Diff line Loading @@ -229,7 +229,7 @@ public class ApnContext { * @return The delay in milliseconds */ public long getDelayForNextApn(boolean failFastEnabled) { return mRetryManager.getDelayForNextApn(failFastEnabled); return mRetryManager.getDelayForNextApn(failFastEnabled || isFastRetryReason()); } /** Loading Loading @@ -338,6 +338,15 @@ public class ApnContext { || (mState == DctConstants.State.FAILED)); } /** * Check if apn reason is fast retry reason which should apply shorter delay between apn re-try. * @return True if it is fast retry reason, otherwise false. */ private boolean isFastRetryReason() { return mReason.equals(Phone.REASON_NW_TYPE_CHANGED) || mReason.equals(Phone.REASON_APN_CHANGED); } /** Check if the data call is in connected or connecting state. * @return True if the data call is in connected or connecting state */ Loading Loading @@ -525,7 +534,7 @@ public class ApnContext { } public long getInterApnDelay(boolean failFastEnabled) { return mRetryManager.getInterApnDelay(failFastEnabled); return mRetryManager.getInterApnDelay(failFastEnabled || isFastRetryReason()); } public static int apnIdForType(int networkType) { Loading Loading
src/java/com/android/internal/telephony/dataconnection/ApnContext.java +11 −2 Original line number Diff line number Diff line Loading @@ -229,7 +229,7 @@ public class ApnContext { * @return The delay in milliseconds */ public long getDelayForNextApn(boolean failFastEnabled) { return mRetryManager.getDelayForNextApn(failFastEnabled); return mRetryManager.getDelayForNextApn(failFastEnabled || isFastRetryReason()); } /** Loading Loading @@ -338,6 +338,15 @@ public class ApnContext { || (mState == DctConstants.State.FAILED)); } /** * Check if apn reason is fast retry reason which should apply shorter delay between apn re-try. * @return True if it is fast retry reason, otherwise false. */ private boolean isFastRetryReason() { return mReason.equals(Phone.REASON_NW_TYPE_CHANGED) || mReason.equals(Phone.REASON_APN_CHANGED); } /** Check if the data call is in connected or connecting state. * @return True if the data call is in connected or connecting state */ Loading Loading @@ -525,7 +534,7 @@ public class ApnContext { } public long getInterApnDelay(boolean failFastEnabled) { return mRetryManager.getInterApnDelay(failFastEnabled); return mRetryManager.getInterApnDelay(failFastEnabled || isFastRetryReason()); } public static int apnIdForType(int networkType) { Loading