Change type name of mobile from "Cellular" to "MOBILE".
Sreeram Ramachandran [Thu, 25 Sep 2014 03:05:15 +0000 (20:05 -0700)]
Bug: 17609932
Change-Id: I22331426e04a5b45e73f9e768b7d88c1d4282c78

src/java/com/android/internal/telephony/dataconnection/DataConnection.java

index 5303e29..e1072b8 100644 (file)
@@ -93,6 +93,8 @@ public final class DataConnection extends StateMachine {
     private static final String SECONDARY_DATA_RETRY_CONFIG =
             "max_retries=3, 5000, 5000, 5000";
 
+    private static final String NETWORK_TYPE = "MOBILE";
+
     // The data connection controller
     private DcController mDcController;
 
@@ -419,7 +421,7 @@ public final class DataConnection extends StateMachine {
         mDataRegState = mPhone.getServiceState().getDataRegState();
         int networkType = ss.getDataNetworkType();
         mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_MOBILE,
-                networkType, "Cellular", TelephonyManager.getNetworkTypeName(networkType));
+                networkType, NETWORK_TYPE, TelephonyManager.getNetworkTypeName(networkType));
         mNetworkInfo.setRoaming(ss.getRoaming());
         mNetworkInfo.setIsAvailable(true);