diff --git a/res/layout/radio_info.xml b/res/layout/radio_info.xml
index eeb46a03129..d81dad65af8 100644
--- a/res/layout/radio_info.xml
+++ b/res/layout/radio_info.xml
@@ -91,6 +91,13 @@
+
+
+
+
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2fb21f732dc..09bd6d64b3d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -455,6 +455,8 @@
CellInfo:
+ DcRtInfo:
+
Data attempts:
diff --git a/src/com/android/settings/RadioInfo.java b/src/com/android/settings/RadioInfo.java
index df936263fde..4c861440d17 100644
--- a/src/com/android/settings/RadioInfo.java
+++ b/src/com/android/settings/RadioInfo.java
@@ -32,6 +32,7 @@ import android.os.Message;
import android.os.SystemProperties;
import android.telephony.CellInfo;
import android.telephony.CellLocation;
+import android.telephony.DataConnectionRealTimeInfo;
import android.telephony.PhoneStateListener;
import android.telephony.ServiceState;
import android.telephony.TelephonyManager;
@@ -103,6 +104,7 @@ public class RadioInfo extends Activity {
private TextView mLocation;
private TextView mNeighboringCids;
private TextView mCellInfo;
+ private TextView mDcRtInfoTv;
private TextView resets;
private TextView attempts;
private TextView successes;
@@ -171,6 +173,12 @@ public class RadioInfo extends Activity {
log("onCellInfoChanged: arrayCi=" + arrayCi);
updateCellInfoTv(arrayCi);
}
+
+ @Override
+ public void onDataConnectionRealTimeInfoChanged(DataConnectionRealTimeInfo dcRtInfo) {
+ log("onDataConnectionRealTimeInfoChanged: dcRtInfo=" + dcRtInfo);
+ updateDcRtInfoTv(dcRtInfo);
+ }
};
private Handler mHandler = new Handler() {
@@ -264,6 +272,7 @@ public class RadioInfo extends Activity {
mLocation = (TextView) findViewById(R.id.location);
mNeighboringCids = (TextView) findViewById(R.id.neighboring);
mCellInfo = (TextView) findViewById(R.id.cellinfo);
+ mDcRtInfoTv = (TextView) findViewById(R.id.dcrtinfo);
resets = (TextView) findViewById(R.id.resets);
attempts = (TextView) findViewById(R.id.attempts);
@@ -366,7 +375,8 @@ public class RadioInfo extends Activity {
| PhoneStateListener.LISTEN_CELL_LOCATION
| PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR
| PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR
- | PhoneStateListener.LISTEN_CELL_INFO);
+ | PhoneStateListener.LISTEN_CELL_INFO
+ | PhoneStateListener.LISTEN_DATA_CONNECTION_REAL_TIME_INFO);
}
@Override
@@ -541,6 +551,10 @@ public class RadioInfo extends Activity {
mCellInfo.setText(value.toString());
}
+ private final void updateDcRtInfoTv(DataConnectionRealTimeInfo dcRtInfo) {
+ mDcRtInfoTv.setText(dcRtInfo.toString());
+ }
+
private final void
updateMessageWaiting() {
mMwi.setText(String.valueOf(mMwiValue));