Loading telephony/java/com/android/internal/telephony/EventLogTags.logtags +15 −0 Original line number Diff line number Diff line Loading @@ -56,3 +56,18 @@ option java_package com.android.internal.telephony; # Bad IP address 50117 bad_ip_address (ip_address|3) # Data Stall Recovery mode DATA_STALL_RECOVERY_GET_DATA_CALL_LIST 50118 data_stall_recovery_get_data_call_list (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_CLEANUP 50119 data_stall_recovery_cleanup (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_REREGISTER 50120 data_stall_recovery_reregister (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_RADIO_RESTART 50121 data_stall_recovery_radio_restart (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_RADIO_RESTART_WITH_PROP 50122 data_stall_recovery_radio_restart_with_prop (out_packet_count|1|1) telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +12 −10 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { public static final int CLEANUP = 1; public static final int REREGISTER = 2; public static final int RADIO_RESTART = 3; public static final int RADIO_RESET = 4; public static final int RADIO_RESTART_WITH_PROP = 4; } public int getRecoveryAction() { int action = Settings.System.getInt(mPhone.getContext().getContentResolver(), Loading Loading @@ -1302,25 +1302,27 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { putRecoveryAction(RecoveryAction.REREGISTER); break; case RecoveryAction.REREGISTER: EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_REREGISTER, mSentSinceLastRecv); EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_REREGISTER, mSentSinceLastRecv); if (DBG) log("doRecovery() re-register"); mPhone.getServiceStateTracker().reRegisterNetwork(null); putRecoveryAction(RecoveryAction.RADIO_RESTART); break; case RecoveryAction.RADIO_RESTART: EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RESTART, mSentSinceLastRecv); EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RADIO_RESTART, mSentSinceLastRecv); if (DBG) log("restarting radio"); putRecoveryAction(RecoveryAction.RADIO_RESET); putRecoveryAction(RecoveryAction.RADIO_RESTART_WITH_PROP); restartRadio(); break; case RecoveryAction.RADIO_RESET: case RecoveryAction.RADIO_RESTART_WITH_PROP: // This is in case radio restart has not recovered the data. // It will set an additional "gsm.radioreset" property to tell // RIL or system to take further action. // The implementation of hard reset recovery action is up to OEM product. // Once gsm.radioreset property is consumed, it is expected to set back // to false by RIL. EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RESTART_WITH_PROP, -1); EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RADIO_RESTART_WITH_PROP, -1); if (DBG) log("restarting radio with gsm.radioreset to true"); SystemProperties.set("gsm.radioreset", "true"); // give 1 sec so property change can be notified. Loading Loading
telephony/java/com/android/internal/telephony/EventLogTags.logtags +15 −0 Original line number Diff line number Diff line Loading @@ -56,3 +56,18 @@ option java_package com.android.internal.telephony; # Bad IP address 50117 bad_ip_address (ip_address|3) # Data Stall Recovery mode DATA_STALL_RECOVERY_GET_DATA_CALL_LIST 50118 data_stall_recovery_get_data_call_list (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_CLEANUP 50119 data_stall_recovery_cleanup (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_REREGISTER 50120 data_stall_recovery_reregister (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_RADIO_RESTART 50121 data_stall_recovery_radio_restart (out_packet_count|1|1) # Data Stall Recovery mode DATA_STALL_RECOVERY_RADIO_RESTART_WITH_PROP 50122 data_stall_recovery_radio_restart_with_prop (out_packet_count|1|1)
telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +12 −10 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { public static final int CLEANUP = 1; public static final int REREGISTER = 2; public static final int RADIO_RESTART = 3; public static final int RADIO_RESET = 4; public static final int RADIO_RESTART_WITH_PROP = 4; } public int getRecoveryAction() { int action = Settings.System.getInt(mPhone.getContext().getContentResolver(), Loading Loading @@ -1302,25 +1302,27 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { putRecoveryAction(RecoveryAction.REREGISTER); break; case RecoveryAction.REREGISTER: EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_REREGISTER, mSentSinceLastRecv); EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_REREGISTER, mSentSinceLastRecv); if (DBG) log("doRecovery() re-register"); mPhone.getServiceStateTracker().reRegisterNetwork(null); putRecoveryAction(RecoveryAction.RADIO_RESTART); break; case RecoveryAction.RADIO_RESTART: EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RESTART, mSentSinceLastRecv); EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RADIO_RESTART, mSentSinceLastRecv); if (DBG) log("restarting radio"); putRecoveryAction(RecoveryAction.RADIO_RESET); putRecoveryAction(RecoveryAction.RADIO_RESTART_WITH_PROP); restartRadio(); break; case RecoveryAction.RADIO_RESET: case RecoveryAction.RADIO_RESTART_WITH_PROP: // This is in case radio restart has not recovered the data. // It will set an additional "gsm.radioreset" property to tell // RIL or system to take further action. // The implementation of hard reset recovery action is up to OEM product. // Once gsm.radioreset property is consumed, it is expected to set back // to false by RIL. EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RESTART_WITH_PROP, -1); EventLog.writeEvent(EventLogTags.DATA_STALL_RECOVERY_RADIO_RESTART_WITH_PROP, -1); if (DBG) log("restarting radio with gsm.radioreset to true"); SystemProperties.set("gsm.radioreset", "true"); // give 1 sec so property change can be notified. Loading