Merge "Revert "Allow network providers to set yield to bad wifi"" into sc-dev am: e8b35336f4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15443464

Change-Id: Iba26d5779df32c9a94b216f10fb6cc665e29cd18
This commit is contained in:
Chalard Jean
2021-08-05 11:41:42 +00:00
committed by Automerger Merge Worker

View File

@@ -108,10 +108,9 @@ public class FullScore {
// and all bits managed by FullScore unset. As bits are handled from 0 up in NetworkScore and
// from 63 down in FullScore, cut at the 32nd bit for simplicity, but change this if some day
// there are more than 32 bits handled on either side.
// YIELD_TO_BAD_WIFI is temporarily handled by ConnectivityService, but the factory is still
// allowed to set it, so that it's possible to transition from handling it in CS to handling
// it in the factory.
private static final long EXTERNAL_POLICIES_MASK = 0x00000000FFFFFFFFL;
// YIELD_TO_BAD_WIFI is temporarily handled by ConnectivityService.
private static final long EXTERNAL_POLICIES_MASK =
0x00000000FFFFFFFFL & ~(1L << POLICY_YIELD_TO_BAD_WIFI);
@VisibleForTesting
static @NonNull String policyNameOf(final int policy) {