Commit d009ecff authored by Jack Yu's avatar Jack Yu
Browse files

Update the proto and service state logging.

1. Update the proto so the version used on the device is
in sync with the version on the server.
2. Added CDMA service state logging in pollStateDoneCdma() and
pollStateDoneCdmaLte().

bug: 31224848
Change-Id: I7c56f4c23ebc0db126d44e9a119ad71289781ca1
parent 722f9a0f
......@@ -309,6 +309,8 @@ enum RadioAccessTechnology {
RAT_TD_SCDMA = 17;
RAT_IWLAN = 18;
RAT_LTE_CA = 19;
}
// The information about IMS errors
......@@ -785,14 +787,19 @@ message TelephonyEvent {
// RIL error code
optional RilErrno error = 9;
// Setup data call request
optional RilSetupDataCall setup_data_call = 10;
// Setup data call response
optional RilSetupDataCallResponse setup_data_call_response = 11;
// Deactivate data call request
optional RilDeactivateDataCall deactivate_data_call = 12;
// Data call stall recovery action
optional int32 data_stall_action = 13;
// Modem restart event
optional ModemRestart modem_restart = 14;
// NITZ time in milliseconds
......
......@@ -2970,6 +2970,8 @@ public class ServiceStateTracker extends Handler {
setRoamingType(mSS);
log("Broadcasting ServiceState : " + mSS);
mPhone.notifyServiceStateChanged(mSS);
TelephonyMetrics.getInstance().writeServiceStateChanged(mPhone.getPhoneId(), mSS);
}
if (hasCdmaDataConnectionAttached || hasCdmaDataConnectionDetached || hasRegistered) {
......@@ -3204,6 +3206,8 @@ public class ServiceStateTracker extends Handler {
setRoamingType(mSS);
log("Broadcasting ServiceState : " + mSS);
mPhone.notifyServiceStateChanged(mSS);
TelephonyMetrics.getInstance().writeServiceStateChanged(mPhone.getPhoneId(), mSS);
}
if (hasCdmaDataConnectionAttached || has4gHandoff || hasCdmaDataConnectionDetached ||
......
......@@ -269,6 +269,8 @@ public class TelephonyMetrics {
return "IMS_CALL_HANDOVER_FAILED";
case TelephonyCallSession.Event.Type.PHONE_STATE_CHANGED:
return "PHONE_STATE_CHANGED";
case TelephonyCallSession.Event.Type.NITZ_TIME:
return "NITZ_TIME";
default:
return Integer.toString(event);
}
......@@ -325,7 +327,12 @@ public class TelephonyMetrics {
if (event.hasType()) {
pw.print("T=");
pw.print(telephonyEventToString(event.getType()));
if (event.getType() == TelephonyEvent.Type.RIL_SERVICE_STATE_CHANGED) {
pw.print(telephonyEventToString(event.getType())
+ "(" + event.serviceState.getDataRat() + ")");
} else {
pw.print(telephonyEventToString(event.getType()));
}
}
pw.println("");
}
......@@ -347,7 +354,12 @@ public class TelephonyMetrics {
for (TelephonyCallSession.Event event : callSession.events) {
pw.print(event.getDelay());
pw.print(" T=");
pw.println(callSessionEventToString(event.getType()));
if (event.getType() == TelephonyCallSession.Event.Type.RIL_SERVICE_STATE_CHANGED) {
pw.println(callSessionEventToString(event.getType())
+ "(" + event.serviceState.getDataRat() + ")");
} else {
pw.println(callSessionEventToString(event.getType()));
}
}
pw.decreaseIndent();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment