NetworkCapabilities: Added support for TRANSPORT_LOWPAN
This change simply adds a new constant, `TRANSPORT_LOWPAN`, for
identifying low-power wireless networks like Thread.
Bug: b/33073713
Test: builds
Change-Id: I50d9b8df1a0270e06c28f001adf6c52a142a85af
Merged-In: Ie4aa77496f8ff466fa1a5fbc556e9c029457a689
(cherry pick from commit 103292d0b7)
This commit is contained in:
committed by
Hugo Benichi
parent
93e1941b43
commit
f1132ede8c
@@ -419,10 +419,16 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
*/
|
||||
public static final int TRANSPORT_WIFI_AWARE = 5;
|
||||
|
||||
/**
|
||||
* Indicates this network uses a LoWPAN transport.
|
||||
* @hide
|
||||
*/
|
||||
public static final int TRANSPORT_LOWPAN = 6;
|
||||
|
||||
/** @hide */
|
||||
public static final int MIN_TRANSPORT = TRANSPORT_CELLULAR;
|
||||
/** @hide */
|
||||
public static final int MAX_TRANSPORT = TRANSPORT_WIFI_AWARE;
|
||||
public static final int MAX_TRANSPORT = TRANSPORT_LOWPAN;
|
||||
|
||||
/** @hide */
|
||||
public static boolean isValidTransport(int transportType) {
|
||||
@@ -435,7 +441,8 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
"BLUETOOTH",
|
||||
"ETHERNET",
|
||||
"VPN",
|
||||
"WIFI_AWARE"
|
||||
"WIFI_AWARE",
|
||||
"LOWPAN"
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user