diff options
author | Wink Saville <wink@google.com> | 2011-04-20 11:41:26 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-20 11:41:26 -0700 |
commit | af3eb5fcbaf22762db1dcfe6ff95ec11a70bed7c (patch) | |
tree | e252d3d626946ba59658e7844cccbf1231dcbc38 | |
parent | 6c28e35b82c843c1acdcef3b82ef28291de9f375 (diff) | |
parent | ac706b987bad5b46c4f10be0284ae1ed4453261b (diff) | |
download | packages_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.java | 70 |
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()); } |