summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-06 17:38:03 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-06 17:38:03 -0400
commit92b5caa4e21d48db6efeddba532d1546c6e686b1 (patch)
tree81c9f29fad111351d59e0bfe633f6e432455d778 /core
parentf65161f159db3d140c62f56d43e732c332af7773 (diff)
parentd8df149cfb82cf02cef7e04c05f229d7caf7fe90 (diff)
downloadframeworks_base-92b5caa4e21d48db6efeddba532d1546c6e686b1.zip
frameworks_base-92b5caa4e21d48db6efeddba532d1546c6e686b1.tar.gz
frameworks_base-92b5caa4e21d48db6efeddba532d1546c6e686b1.tar.bz2
Merge change Id8df149c into eclair
* changes: Turn some logging back on in ConnectionManager
Diffstat (limited to 'core')
-rw-r--r--core/java/android/net/MobileDataStateTracker.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java
index b619fee..e5e6db9 100644
--- a/core/java/android/net/MobileDataStateTracker.java
+++ b/core/java/android/net/MobileDataStateTracker.java
@@ -42,7 +42,7 @@ import android.text.TextUtils;
public class MobileDataStateTracker extends NetworkStateTracker {
private static final String TAG = "MobileDataStateTracker";
- private static final boolean DBG = false;
+ private static final boolean DBG = true;
private Phone.DataState mMobileDataState;
private ITelephony mPhoneService;
@@ -142,11 +142,6 @@ public class MobileDataStateTracker extends NetworkStateTracker {
boolean unavailable = intent.getBooleanExtra(Phone.NETWORK_UNAVAILABLE_KEY,
false);
- if (DBG) Log.d(TAG, mApnType + " Received " + intent.getAction() +
- " broadcast - state = " + state + ", oldstate = " + mMobileDataState +
- ", unavailable = " + unavailable + ", reason = " +
- (reason == null ? "(unspecified)" : reason) +
- ", apnTypeList = " + apnTypeList);
// set this regardless of the apnTypeList. It's all the same radio/network
// underneath
@@ -166,14 +161,17 @@ public class MobileDataStateTracker extends NetworkStateTracker {
" for " + mApnType);
mInterfaceName = intent.getStringExtra(Phone.DATA_IFACE_NAME_KEY);
}
- if (DBG) Log.d(TAG, " dropped - mEnabled = false");
return;
}
} else {
- if (DBG) Log.d(TAG, " dropped - wrong Apn");
return;
}
+ if (DBG) Log.d(TAG, mApnType + " Received state= " + state + ", old= " +
+ mMobileDataState + ", reason= " +
+ (reason == null ? "(unspecified)" : reason) +
+ ", apnTypeList= " + apnTypeList);
+
if (mMobileDataState != state) {
mMobileDataState = state;
switch (state) {