summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/RadioInfo.java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-04-20 10:24:36 -0700
committerWink Saville <wink@google.com>2011-04-20 10:24:36 -0700
commit2c3ec09261bf1503e75328175b5286af5676845e (patch)
treeb271408ea72b8f286db19148ce171426a2d3080a /src/com/android/settings/RadioInfo.java
parent20a44118ddce65bcb1a86a38ab17d82083528930 (diff)
downloadpackages_apps_settings-2c3ec09261bf1503e75328175b5286af5676845e.zip
packages_apps_settings-2c3ec09261bf1503e75328175b5286af5676845e.tar.gz
packages_apps_settings-2c3ec09261bf1503e75328175b5286af5676845e.tar.bz2
Remove getCurrentDataConnectionList.
I'll add another mechanism which will probably use an asynchronous interface with the DataConnectionTracker. Change-Id: I71f80bb9fe0496c42ff9b1ddbf4e36a68d3f1592
Diffstat (limited to 'src/com/android/settings/RadioInfo.java')
-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());
}