summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2013-08-16 17:17:28 -0700
committerWink Saville <wink@google.com>2013-08-16 17:17:28 -0700
commitdce52cdbf1eab8bd979bf4676973699c39f7b32e (patch)
tree69d49b7aae589d8ed0b26ef952d482170dbfc272 /core/java
parente63411f28b81a0c9f7fee1d0b3a0765606c9a6f2 (diff)
downloadframeworks_base-dce52cdbf1eab8bd979bf4676973699c39f7b32e.zip
frameworks_base-dce52cdbf1eab8bd979bf4676973699c39f7b32e.tar.gz
frameworks_base-dce52cdbf1eab8bd979bf4676973699c39f7b32e.tar.bz2
DO NOT MERGE: MDST is not ready until connected to DcTracker.
When the system becomes loaded the PhoneApp can be delayed significantly and a call to setEnableFailFastMobileData may not occur because the channel between the MobileDataStateTracker (MDST) and DcTracker (DCT) is not connected. Solution: Add a isReady to MDST and isMobileDataStateTrackerReady to ConnectivityService and call it from isMobileOk. Bug: 10351868 Change-Id: I92f9d58121b88186b636cd71c2fd2ef9a28f7cf6
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/net/MobileDataStateTracker.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java
index adad8de..98cccb8 100644
--- a/core/java/android/net/MobileDataStateTracker.java
+++ b/core/java/android/net/MobileDataStateTracker.java
@@ -375,6 +375,13 @@ public class MobileDataStateTracker implements NetworkStateTracker {
return (setEnableApn(mApnType, false) != PhoneConstants.APN_REQUEST_FAILED);
}
+ /**
+ * @return true if this is ready to operate
+ */
+ public boolean isReady() {
+ return mDataConnectionTrackerAc != null;
+ }
+
@Override
public void captivePortalCheckComplete() {
// not implemented