OSDN Git Service

normalize the DATA_STATE_RADIO_OFF event log id definition
authorTammo Spalink <tammo@google.com>
Tue, 21 Apr 2009 07:14:49 +0000 (15:14 +0800)
committerTammo Spalink <tammo@google.com>
Wed, 22 Apr 2009 03:41:20 +0000 (11:41 +0800)
Was this different intentionally?  It looks internal, and with very limited usage, and so easy to bring in line with the others...

telephony/java/com/android/internal/telephony/ServiceStateTracker.java
telephony/java/com/android/internal/telephony/TelephonyEventLog.java
telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java

index a4bf0dd..28a9968 100644 (file)
@@ -114,7 +114,6 @@ public abstract class ServiceStateTracker extends Handler {
 
     // Event Log Tags
     protected static final int EVENT_LOG_CGREG_FAIL = 50107;
-    protected static final int EVENT_DATA_STATE_RADIO_OFF = 50108;
 
     //***** Time Zones
     protected static final String TIMEZONE_PROPERTY = "persist.sys.timezone";
@@ -241,4 +240,3 @@ public abstract class ServiceStateTracker extends Handler {
         pollingContext = new int[1];
     }
 }
-
index 1ef3c6c..97f9d7d 100644 (file)
@@ -28,6 +28,6 @@ public final class TelephonyEventLog {
     public static final int EVENT_LOG_RADIO_PDP_SETUP_FAIL = 50105;
     public static final int EVENT_LOG_CALL_DROP = 50106;
     public static final int EVENT_LOG_CGREG_FAIL = 50107;
-    public static final int EVENT_DATA_STATE_RADIO_OFF = 50108;
+    public static final int EVENT_LOG_DATA_STATE_RADIO_OFF = 50108;
     public static final int EVENT_LOG_PDP_NETWORK_DROP = 50109;
 }
index ca40e76..6f344b9 100644 (file)
@@ -388,7 +388,7 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
                 EventLog.List val = new EventLog.List(
                         dcTracker.getStateInString(),
                         (dcTracker.getAnyDataEnabled() ? 1 : 0) );
-                EventLog.writeEvent(TelephonyEventLog.EVENT_DATA_STATE_RADIO_OFF, val);
+                EventLog.writeEvent(TelephonyEventLog.EVENT_LOG_DATA_STATE_RADIO_OFF, val);
             }
             dcTracker.cleanConnectionBeforeRadioOff();
             
index 8ecf245..9ab1002 100644 (file)
@@ -539,7 +539,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
                 EventLog.List val = new EventLog.List(
                         dcTracker.getStateInString(),
                         (dcTracker.getAnyDataEnabled() ? 1 : 0) );
-                EventLog.writeEvent(TelephonyEventLog.EVENT_DATA_STATE_RADIO_OFF, val);
+                EventLog.writeEvent(TelephonyEventLog.EVENT_LOG_DATA_STATE_RADIO_OFF, val);
             }
             dcTracker.cleanConnectionBeforeRadioOff();