Merge "Expose internal representation of transport types."
This commit is contained in:
@@ -1347,6 +1347,18 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
return BitUtils.unpackBits(mTransportTypes);
|
return BitUtils.unpackBits(mTransportTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the transports as an int. Internal callers only.
|
||||||
|
*
|
||||||
|
* Prefer getTransportTypes/hasTransportType if not immediately collapsing back into a scalar.
|
||||||
|
*
|
||||||
|
* @return a long integer representing the transport types.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public long getTransportTypesInternal() {
|
||||||
|
return mTransportTypes;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets all the transports set on this {@code NetworkCapability} instance.
|
* Sets all the transports set on this {@code NetworkCapability} instance.
|
||||||
* This overwrites any existing transports.
|
* This overwrites any existing transports.
|
||||||
|
|||||||
Reference in New Issue
Block a user