NetworkCapabilities: convert ALL_VALID_CAPABILITIES to long am: 200bd72898
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2661475 Change-Id: I9959e113b27302bce83a4843489f124595a9aaff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -693,11 +693,11 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
private static final int MIN_NET_CAPABILITY = NET_CAPABILITY_MMS;
|
||||
private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_PRIORITIZE_BANDWIDTH;
|
||||
|
||||
private static final int ALL_VALID_CAPABILITIES;
|
||||
private static final long ALL_VALID_CAPABILITIES;
|
||||
static {
|
||||
int caps = 0;
|
||||
long caps = 0;
|
||||
for (int i = MIN_NET_CAPABILITY; i <= MAX_NET_CAPABILITY; ++i) {
|
||||
caps |= 1 << i;
|
||||
caps |= 1L << i;
|
||||
}
|
||||
ALL_VALID_CAPABILITIES = caps;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user