Merge "NetworkCapabilities: Added support for TRANSPORT_LOWPAN" into stage-aosp-master
This commit is contained in:
@@ -419,10 +419,16 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
public static final int TRANSPORT_WIFI_AWARE = 5;
|
public static final int TRANSPORT_WIFI_AWARE = 5;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates this network uses a LoWPAN transport.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final int TRANSPORT_LOWPAN = 6;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final int MIN_TRANSPORT = TRANSPORT_CELLULAR;
|
public static final int MIN_TRANSPORT = TRANSPORT_CELLULAR;
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final int MAX_TRANSPORT = TRANSPORT_WIFI_AWARE;
|
public static final int MAX_TRANSPORT = TRANSPORT_LOWPAN;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static boolean isValidTransport(int transportType) {
|
public static boolean isValidTransport(int transportType) {
|
||||||
@@ -435,7 +441,8 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
"BLUETOOTH",
|
"BLUETOOTH",
|
||||||
"ETHERNET",
|
"ETHERNET",
|
||||||
"VPN",
|
"VPN",
|
||||||
"WIFI_AWARE"
|
"WIFI_AWARE",
|
||||||
|
"LOWPAN"
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user