• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Révision4281817f6b624cb51926eb24fa78c68cd9431dce (tree)
l'heure2011-07-25 00:10:53
AuteurKazuhiro Ondo <kazuhiro.ondo@moto...>
CommiterWink Saville

Message de Log

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

Change Summary

Modification

--- a/telephony/java/com/android/internal/telephony/RILConstants.java
+++ b/telephony/java/com/android/internal/telephony/RILConstants.java
@@ -31,6 +31,8 @@ public interface RILConstants {
3131 // From the top of ril.cpp
3232 int RIL_ERRNO_INVALID_RESPONSE = -1;
3333
34+ int MAX_INT = 0x7FFFFFFF;
35+
3436 // from RIL_Errno
3537 int SUCCESS = 0;
3638 int RADIO_NOT_AVAILABLE = 1; /* If radio did not start or is resetting */
--- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
@@ -1834,7 +1834,11 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
18341834 retryOverride =
18351835 ((DataConnection.CallSetupException)ar.exception).getRetryOverride();
18361836 }
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+ }
18381842 }
18391843 } else {
18401844 if (DBG) log("onDataSetupComplete: Try next APN");