Merge "Expose internal representation of transport types." am: c745e52e04 am: 246958a796
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2567453 Change-Id: I5bd043d00b361747fede941d3cede6cbe72a06ea Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
cedcc69717
1 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue