Merge "Reveal some network constants." into honeycomb-mr2
This commit is contained in:
committed by
Android (Google) Code Review
commit
8de47a2f25
@@ -114498,6 +114498,28 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="TYPE_BLUETOOTH"
|
||||||
|
type="int"
|
||||||
|
transient="false"
|
||||||
|
volatile="false"
|
||||||
|
value="7"
|
||||||
|
static="true"
|
||||||
|
final="true"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</field>
|
||||||
|
<field name="TYPE_ETHERNET"
|
||||||
|
type="int"
|
||||||
|
transient="false"
|
||||||
|
volatile="false"
|
||||||
|
value="9"
|
||||||
|
static="true"
|
||||||
|
final="true"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</field>
|
||||||
<field name="TYPE_MOBILE"
|
<field name="TYPE_MOBILE"
|
||||||
type="int"
|
type="int"
|
||||||
transient="false"
|
transient="false"
|
||||||
@@ -184537,6 +184559,17 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="NETWORK_TYPE_HSPAP"
|
||||||
|
type="int"
|
||||||
|
transient="false"
|
||||||
|
volatile="false"
|
||||||
|
value="15"
|
||||||
|
static="true"
|
||||||
|
final="true"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</field>
|
||||||
<field name="NETWORK_TYPE_HSUPA"
|
<field name="NETWORK_TYPE_HSUPA"
|
||||||
type="int"
|
type="int"
|
||||||
transient="false"
|
transient="false"
|
||||||
|
|||||||
@@ -165,14 +165,12 @@ public class ConnectivityManager
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The Default Mobile data connection. When active, all data traffic
|
* The Default Mobile data connection. When active, all data traffic
|
||||||
* will use this connection by default. Should not coexist with other
|
* will use this connection by default.
|
||||||
* default connections.
|
|
||||||
*/
|
*/
|
||||||
public static final int TYPE_MOBILE = 0;
|
public static final int TYPE_MOBILE = 0;
|
||||||
/**
|
/**
|
||||||
* The Default WIFI data connection. When active, all data traffic
|
* The Default WIFI data connection. When active, all data traffic
|
||||||
* will use this connection by default. Should not coexist with other
|
* will use this connection by default.
|
||||||
* default connections.
|
|
||||||
*/
|
*/
|
||||||
public static final int TYPE_WIFI = 1;
|
public static final int TYPE_WIFI = 1;
|
||||||
/**
|
/**
|
||||||
@@ -208,20 +206,22 @@ public class ConnectivityManager
|
|||||||
public static final int TYPE_MOBILE_HIPRI = 5;
|
public static final int TYPE_MOBILE_HIPRI = 5;
|
||||||
/**
|
/**
|
||||||
* The Default WiMAX data connection. When active, all data traffic
|
* The Default WiMAX data connection. When active, all data traffic
|
||||||
* will use this connection by default. Should not coexist with other
|
* will use this connection by default.
|
||||||
* default connections.
|
|
||||||
*/
|
*/
|
||||||
public static final int TYPE_WIMAX = 6;
|
public static final int TYPE_WIMAX = 6;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bluetooth data connection. This is used for Bluetooth reverse tethering.
|
* The Default Bluetooth data connection. When active, all data traffic
|
||||||
* @hide
|
* will use this connection by default.
|
||||||
*/
|
*/
|
||||||
public static final int TYPE_BLUETOOTH = 7;
|
public static final int TYPE_BLUETOOTH = 7;
|
||||||
|
|
||||||
/** {@hide} */
|
/** {@hide} */
|
||||||
public static final int TYPE_DUMMY = 8;
|
public static final int TYPE_DUMMY = 8;
|
||||||
/** {@hide} */
|
/**
|
||||||
|
* The Default Ethernet data connection. When active, all data traffic
|
||||||
|
* will use this connection by default.
|
||||||
|
*/
|
||||||
public static final int TYPE_ETHERNET = 9;
|
public static final int TYPE_ETHERNET = 9;
|
||||||
/** {@hide} TODO: Need to adjust this for WiMAX. */
|
/** {@hide} TODO: Need to adjust this for WiMAX. */
|
||||||
public static final int MAX_RADIO_TYPE = TYPE_ETHERNET;
|
public static final int MAX_RADIO_TYPE = TYPE_ETHERNET;
|
||||||
|
|||||||
@@ -427,8 +427,7 @@ public class TelephonyManager {
|
|||||||
public static final int NETWORK_TYPE_LTE = 13;
|
public static final int NETWORK_TYPE_LTE = 13;
|
||||||
/** Current network is eHRPD */
|
/** Current network is eHRPD */
|
||||||
public static final int NETWORK_TYPE_EHRPD = 14;
|
public static final int NETWORK_TYPE_EHRPD = 14;
|
||||||
/** Current network is HSPA+
|
/** Current network is HSPA+ */
|
||||||
* @hide */
|
|
||||||
public static final int NETWORK_TYPE_HSPAP = 15;
|
public static final int NETWORK_TYPE_HSPAP = 15;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -451,6 +450,7 @@ public class TelephonyManager {
|
|||||||
* @see #NETWORK_TYPE_IDEN
|
* @see #NETWORK_TYPE_IDEN
|
||||||
* @see #NETWORK_TYPE_LTE
|
* @see #NETWORK_TYPE_LTE
|
||||||
* @see #NETWORK_TYPE_EHRPD
|
* @see #NETWORK_TYPE_EHRPD
|
||||||
|
* @see #NETWORK_TYPE_HSPAP
|
||||||
*/
|
*/
|
||||||
public int getNetworkType() {
|
public int getNetworkType() {
|
||||||
try{
|
try{
|
||||||
@@ -507,6 +507,8 @@ public class TelephonyManager {
|
|||||||
return "CDMA - eHRPD";
|
return "CDMA - eHRPD";
|
||||||
case NETWORK_TYPE_IDEN:
|
case NETWORK_TYPE_IDEN:
|
||||||
return "iDEN";
|
return "iDEN";
|
||||||
|
case NETWORK_TYPE_HSPAP:
|
||||||
|
return "HSPA+";
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user