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:
Chalard Jean
2021-09-18 12:50:52 +00:00
committed by Automerger Merge Worker
6 changed files with 280 additions and 12 deletions

View File

@@ -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;
}