OSDN Git Service

Add some network types that OEM's are asking for.
authorRobert Greenwalt <rgreenwalt@google.com>
Fri, 28 Jan 2011 22:48:37 +0000 (14:48 -0800)
committerRobert Greenwalt <rgreenwalt@google.com>
Fri, 28 Jan 2011 22:48:37 +0000 (14:48 -0800)
Adding them hidden so that if OEM's are rolling their own at least they can
use the same values.  Will mark them unhidden in a future sdk release.

bug:3395729
Change-Id: I90eabe036a96e1aa7c8cac49ca51efd9b1776a0c

core/java/android/net/ConnectivityManager.java
telephony/java/android/telephony/TelephonyManager.java

index 3968191..711c6cd 100644 (file)
@@ -209,6 +209,15 @@ public class ConnectivityManager
      * default connections.
      */
     public static final int TYPE_WIMAX       = 6;
+    /**
+     * Bluetooth data connection.
+     * @hide
+     */
+    public static final int TYPE_BLUETOOTH   = 7;
+    /** {@hide} */
+    public static final int TYPE_DUMMY       = 8;
+    /** {@hide} */
+    public static final int TYPE_ETHERNET    = 9;
     /** {@hide} TODO: Need to adjust this for WiMAX. */
     public static final int MAX_RADIO_TYPE   = TYPE_WIFI;
     /** {@hide} TODO: Need to adjust this for WiMAX. */
index 27e08d4..69673b1 100644 (file)
@@ -393,7 +393,10 @@ public class TelephonyManager {
     public static final int NETWORK_TYPE_IDEN = 11;
     /** Current network is EVDO revision B*/
     public static final int NETWORK_TYPE_EVDO_B = 12;
-
+    /** @hide */
+    public static final int NETWORK_TYPE_LTE = 13;
+    /** @hide */
+    public static final int NETWORK_TYPE_EHRPD = 14;
 
     /**
      * Returns a constant indicating the radio technology (network type)