Merge "Add a mode for cell radios unable to time share" am: c80a5d56db
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827923 Change-Id: I5ded48c8498c32977adcfe2363599d6cfa246e1b
This commit is contained in:
@@ -1055,6 +1055,14 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
return isValidTransport(transportType) && ((mTransportTypes & (1 << transportType)) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true iff this NetworkCapabilities has the specified transport and no other.
|
||||
* @hide
|
||||
*/
|
||||
public boolean hasSingleTransport(@Transport int transportType) {
|
||||
return mTransportTypes == (1 << transportType);
|
||||
}
|
||||
|
||||
private void combineTransportTypes(NetworkCapabilities nc) {
|
||||
this.mTransportTypes |= nc.mTransportTypes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user