summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-04-20 11:41:26 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-20 11:41:26 -0700
commitaf3eb5fcbaf22762db1dcfe6ff95ec11a70bed7c (patch)
treee252d3d626946ba59658e7844cccbf1231dcbc38
parent6c28e35b82c843c1acdcef3b82ef28291de9f375 (diff)
parentac706b987bad5b46c4f10be0284ae1ed4453261b (diff)
downloadpackages_apps_Settings-af3eb5fcbaf22762db1dcfe6ff95ec11a70bed7c.zip
packages_apps_Settings-af3eb5fcbaf22762db1dcfe6ff95ec11a70bed7c.tar.gz
packages_apps_Settings-af3eb5fcbaf22762db1dcfe6ff95ec11a70bed7c.tar.bz2
am ac706b98: am 2c3ec092: Remove getCurrentDataConnectionList.
* commit 'ac706b987bad5b46c4f10be0284ae1ed4453261b': Remove getCurrentDataConnectionList.
-rw-r--r--src/com/android/settings/RadioInfo.java70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/com/android/settings/RadioInfo.java b/src/com/android/settings/RadioInfo.java
index 4f8b374..ba07fb5 100644
--- a/src/com/android/settings/RadioInfo.java
+++ b/src/com/android/settings/RadioInfo.java
@@ -755,41 +755,41 @@ public class RadioInfo extends Activity {
private final void updatePdpList() {
StringBuilder sb = new StringBuilder("========DATA=======\n");
- List<DataConnection> dcs = phone.getCurrentDataConnectionList();
-
- for (DataConnection dc : dcs) {
- sb.append(" State=").append(dc.getStateAsString()).append("\n");
- if (dc.isActive()) {
- long timeElapsed =
- (System.currentTimeMillis() - dc.getConnectionTime())/1000;
- sb.append(" connected at ")
- .append(DateUtils.timeString(dc.getConnectionTime()))
- .append(" and elapsed ")
- .append(DateUtils.formatElapsedTime(timeElapsed));
-
- if (dc instanceof GsmDataConnection) {
- GsmDataConnection pdp = (GsmDataConnection)dc;
- sb.append("\n to ")
- .append(pdp.getApn().toString());
- }
- sb.append("\nLinkProperties: ");
- sb.append(phone.getLinkProperties(phone.getActiveApnTypes()[0]).toString());
- } else if (dc.isInactive()) {
- sb.append(" disconnected with last try at ")
- .append(DateUtils.timeString(dc.getLastFailTime()))
- .append("\n fail because ")
- .append(dc.getLastFailCause().toString());
- } else {
- if (dc instanceof GsmDataConnection) {
- GsmDataConnection pdp = (GsmDataConnection)dc;
- sb.append(" is connecting to ")
- .append(pdp.getApn().toString());
- } else {
- sb.append(" is connecting");
- }
- }
- sb.append("\n===================");
- }
+// List<DataConnection> dcs = phone.getCurrentDataConnectionList();
+//
+// for (DataConnection dc : dcs) {
+// sb.append(" State=").append(dc.getStateAsString()).append("\n");
+// if (dc.isActive()) {
+// long timeElapsed =
+// (System.currentTimeMillis() - dc.getConnectionTime())/1000;
+// sb.append(" connected at ")
+// .append(DateUtils.timeString(dc.getConnectionTime()))
+// .append(" and elapsed ")
+// .append(DateUtils.formatElapsedTime(timeElapsed));
+//
+// if (dc instanceof GsmDataConnection) {
+// GsmDataConnection pdp = (GsmDataConnection)dc;
+// sb.append("\n to ")
+// .append(pdp.getApn().toString());
+// }
+// sb.append("\nLinkProperties: ");
+// sb.append(phone.getLinkProperties(phone.getActiveApnTypes()[0]).toString());
+// } else if (dc.isInactive()) {
+// sb.append(" disconnected with last try at ")
+// .append(DateUtils.timeString(dc.getLastFailTime()))
+// .append("\n fail because ")
+// .append(dc.getLastFailCause().toString());
+// } else {
+// if (dc instanceof GsmDataConnection) {
+// GsmDataConnection pdp = (GsmDataConnection)dc;
+// sb.append(" is connecting to ")
+// .append(pdp.getApn().toString());
+// } else {
+// sb.append(" is connecting");
+// }
+// }
+// sb.append("\n===================");
+// }
disconnects.setText(sb.toString());
}