frameworks/base
Révision | 4281817f6b624cb51926eb24fa78c68cd9431dce (tree) |
---|---|
l'heure | 2011-07-25 00:10:53 |
Auteur | Kazuhiro Ondo <kazuhiro.ondo@moto...> |
Commiter | Wink Saville |
Allow suggestedRetryTime to indicate no retry is needed.
If suggestedRetryTime is 0x7fffffff then no retry is needed
and the framework should not initiate a retry.
Bug: 4949208
Change-Id: I3756ef6a3e93beec4ee95863cbc111b9952e5e06
@@ -31,6 +31,8 @@ public interface RILConstants { | ||
31 | 31 | // From the top of ril.cpp |
32 | 32 | int RIL_ERRNO_INVALID_RESPONSE = -1; |
33 | 33 | |
34 | + int MAX_INT = 0x7FFFFFFF; | |
35 | + | |
34 | 36 | // from RIL_Errno |
35 | 37 | int SUCCESS = 0; |
36 | 38 | int RADIO_NOT_AVAILABLE = 1; /* If radio did not start or is resetting */ |
@@ -1834,7 +1834,11 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { | ||
1834 | 1834 | retryOverride = |
1835 | 1835 | ((DataConnection.CallSetupException)ar.exception).getRetryOverride(); |
1836 | 1836 | } |
1837 | - startDelayedRetry(cause, apnContext, retryOverride); | |
1837 | + if (retryOverride == RILConstants.MAX_INT) { | |
1838 | + if (DBG) log("No retry is suggested."); | |
1839 | + } else { | |
1840 | + startDelayedRetry(cause, apnContext, retryOverride); | |
1841 | + } | |
1838 | 1842 | } |
1839 | 1843 | } else { |
1840 | 1844 | if (DBG) log("onDataSetupComplete: Try next APN"); |