Skip to content

Commit e12aec9

Browse files
author
Robert Greenwalt
committed
Add some network types that OEM's are asking for.
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
1 parent fa809db commit e12aec9

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

core/java/android/net/ConnectivityManager.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,15 @@ public class ConnectivityManager
209209
* default connections.
210210
*/
211211
public static final int TYPE_WIMAX = 6;
212+
/**
213+
* Bluetooth data connection.
214+
* @hide
215+
*/
216+
public static final int TYPE_BLUETOOTH = 7;
217+
/** {@hide} */
218+
public static final int TYPE_DUMMY = 8;
219+
/** {@hide} */
220+
public static final int TYPE_ETHERNET = 9;
212221
/** {@hide} TODO: Need to adjust this for WiMAX. */
213222
public static final int MAX_RADIO_TYPE = TYPE_WIFI;
214223
/** {@hide} TODO: Need to adjust this for WiMAX. */

telephony/java/android/telephony/TelephonyManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@ public String getNetworkCountryIso() {
393393
public static final int NETWORK_TYPE_IDEN = 11;
394394
/** Current network is EVDO revision B*/
395395
public static final int NETWORK_TYPE_EVDO_B = 12;
396-
396+
/** @hide */
397+
public static final int NETWORK_TYPE_LTE = 13;
398+
/** @hide */
399+
public static final int NETWORK_TYPE_EHRPD = 14;
397400

398401
/**
399402
* Returns a constant indicating the radio technology (network type)

0 commit comments

Comments
 (0)