Home
last modified time | relevance | path

Searched refs:POLICY_YIELD_TO_BAD_WIFI (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DNetworkScore.java85 public static final int POLICY_YIELD_TO_BAD_WIFI = 1; field in NetworkScore
94 public static final int MIN_AGENT_MANAGED_POLICY = POLICY_YIELD_TO_BAD_WIFI;
162 return hasPolicy(POLICY_YIELD_TO_BAD_WIFI); in shouldYieldToBadWifi()
269 mPolicies |= (1L << POLICY_YIELD_TO_BAD_WIFI); in setShouldYieldToBadWifi()
271 mPolicies &= ~(1L << POLICY_YIELD_TO_BAD_WIFI); in setShouldYieldToBadWifi()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java24 import static android.net.NetworkScore.POLICY_YIELD_TO_BAD_WIFI;
121 0x00000000FFFFFFFFL & ~(1L << POLICY_YIELD_TO_BAD_WIFI);
283 | (yieldToBadWiFi ? 1L << POLICY_YIELD_TO_BAD_WIFI : 0) in withPolicies()
294 return new FullScore(newYield ? mPolicies | (1L << POLICY_YIELD_TO_BAD_WIFI) in withYieldToBadWiFi()
295 : mPolicies & ~(1L << POLICY_YIELD_TO_BAD_WIFI), in withYieldToBadWiFi()
DNetworkRanker.java26 import static android.net.NetworkScore.POLICY_YIELD_TO_BAD_WIFI;
199 if (!CollectionUtils.any(accepted, n -> n.getScore().hasPolicy(POLICY_YIELD_TO_BAD_WIFI))) { in applyYieldToBadWifiPolicy()
207 if (CollectionUtils.all(accepted, n -> n.getScore().hasPolicy(POLICY_YIELD_TO_BAD_WIFI))) { in applyYieldToBadWifiPolicy()
219 partitionInto(acceptedWithYielders, n -> !n.getScore().hasPolicy(POLICY_YIELD_TO_BAD_WIFI), in applyYieldToBadWifiPolicy()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRankerTest.kt26 import android.net.NetworkScore.POLICY_YIELD_TO_BAD_WIFI as YIELD_TO_BAD_WIFI in <lambda>()