Home
last modified time | relevance | path

Searched refs:FullScore (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DFullScoreTest.kt29 import com.android.server.connectivity.FullScore.MAX_CS_MANAGED_POLICY in <lambda>()
30 import com.android.server.connectivity.FullScore.MIN_CS_MANAGED_POLICY in <lambda>()
31 import com.android.server.connectivity.FullScore.POLICY_ACCEPT_UNVALIDATED in <lambda>()
32 import com.android.server.connectivity.FullScore.POLICY_EVER_EVALUATED in <lambda>()
33 import com.android.server.connectivity.FullScore.POLICY_EVER_USER_SELECTED in <lambda>()
34 import com.android.server.connectivity.FullScore.POLICY_IS_DESTROYED in <lambda>()
35 import com.android.server.connectivity.FullScore.POLICY_IS_UNMETERED in <lambda>()
36 import com.android.server.connectivity.FullScore.POLICY_IS_VALIDATED in <lambda>()
37 import com.android.server.connectivity.FullScore.POLICY_IS_VPN in <lambda>()
55 fun FullScore.withPolicies( in <lambda>() method
[all …]
DNetworkRankerTest.kt30 import com.android.server.connectivity.FullScore.POLICY_AVOIDED_WHEN_UNVALIDATED as AVOIDED_UNVALID in <lambda>()
31 import com.android.server.connectivity.FullScore.POLICY_EVER_EVALUATED as EVER_EVALUATED in <lambda>()
32 import com.android.server.connectivity.FullScore.POLICY_EVER_VALIDATED as EVER_VALIDATED in <lambda>()
33 import com.android.server.connectivity.FullScore.POLICY_IS_VALIDATED as IS_VALIDATED in <lambda>()
41 private fun score(vararg policies: Int) = FullScore( in <lambda>()
53 private class TestScore(private val sc: FullScore, private val nc: NetworkCapabilities)
DNetworkOfferTest.kt45 val score = FullScore(POLICY_NONE, KEEP_CONNECTED_NONE) in testOfferNeededUnneeded()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java49 public class FullScore { class
50 private static final String TAG = FullScore.class.getSimpleName();
124 new Class[]{FullScore.class, NetworkScore.class}, new String[]{"POLICY_"});
146 FullScore(final long policies, @KeepConnectedReason final int keepConnectedReason) { in FullScore() method in FullScore
167 public static FullScore fromNetworkScore(@NonNull final NetworkScore score, in fromNetworkScore()
198 public static FullScore makeProspectiveScore(@NonNull final NetworkScore score, in makeProspectiveScore()
239 public FullScore mixInScore(@NonNull final NetworkCapabilities caps, in mixInScore()
262 private static FullScore withPolicies(final long externalPolicies, in withPolicies()
275 return new FullScore((externalPolicies & EXTERNAL_POLICIES_MASK) in withPolicies()
293 public FullScore withYieldToBadWiFi(final boolean newYield) { in withYieldToBadWiFi()
[all …]
DNetworkRanker.java29 import static com.android.server.connectivity.FullScore.POLICY_ACCEPT_UNVALIDATED;
30 import static com.android.server.connectivity.FullScore.POLICY_AVOIDED_WHEN_UNVALIDATED;
31 import static com.android.server.connectivity.FullScore.POLICY_EVER_EVALUATED;
32 import static com.android.server.connectivity.FullScore.POLICY_EVER_USER_SELECTED;
33 import static com.android.server.connectivity.FullScore.POLICY_EVER_VALIDATED;
34 import static com.android.server.connectivity.FullScore.POLICY_IS_DESTROYED;
35 import static com.android.server.connectivity.FullScore.POLICY_IS_INVINCIBLE;
36 import static com.android.server.connectivity.FullScore.POLICY_IS_VALIDATED;
37 import static com.android.server.connectivity.FullScore.POLICY_IS_VPN;
86 FullScore getScore(); in getScore()
[all …]
DNetworkOffer.java45 @NonNull public final FullScore score;
60 public NetworkOffer(@NonNull final FullScore score, in NetworkOffer()
73 @Override @NonNull public FullScore getScore() { in getScore()
DNetworkAgentInfo.java594 private FullScore mScore;
1284 @Override public FullScore getScore() { in getScore()
1292 final FullScore oldScore = mScore; in setScore()
1293 mScore = FullScore.fromNetworkScore(score, networkCapabilities, networkAgentConfig, in setScore()
1305 final FullScore oldScore = mScore; in updateScoreForNetworkAgentUpdate()
1316 public void maybeLogDifferences(final FullScore oldScore) { in maybeLogDifferences()
1333 @Override public FullScore getScore() { in getValidatedScoreable()
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/
DConnectivitySampleMetricsTest.kt38 import com.android.server.connectivity.FullScore in <lambda>()
39 import com.android.server.connectivity.FullScore.POLICY_IS_UNMETERED in <lambda>()
68 { FullScore.policyNameOf(it) }, "|") }.toString() in Number()
/packages/modules/Connectivity/service/src/com/android/metrics/
Dstats.proto185 // packages/modules/Connectivity/service/src/com/android/server/connectivity/FullScore.java
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java343 import com.android.server.connectivity.FullScore;
4890 final FullScore oldScore = nai.getScore();
8481 FullScore.makeProspectiveScore(score, caps, yieldToBadWiFi),
9657 private void updateCapabilities(final FullScore oldScore, @NonNull final NetworkAgentInfo nai,