Home
last modified time | relevance | path

Searched refs:withPolicies (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DFullScoreTest.kt55 fun FullScore.withPolicies( in <lambda>() method in com.android.server.connectivity.FullScoreTest
95 .withPolicies(vpn = true, acceptUnvalidated = true).toString() in <lambda>()
123 assertTrue(ns.withPolicies(validated = true).hasPolicy(POLICY_IS_VALIDATED)) in <lambda>()
124 assertTrue(ns.withPolicies(vpn = true).hasPolicy(POLICY_IS_VPN)) in <lambda>()
125 assertTrue(ns.withPolicies(onceChosen = true).hasPolicy(POLICY_EVER_USER_SELECTED)) in <lambda>()
126 assertTrue(ns.withPolicies(acceptUnvalidated = true).hasPolicy(POLICY_ACCEPT_UNVALIDATED)) in <lambda>()
127 assertTrue(ns.withPolicies(destroyed = true).hasPolicy(POLICY_IS_DESTROYED)) in <lambda>()
128 assertTrue(ns.withPolicies(everEvaluated = true).hasPolicy(POLICY_EVER_EVALUATED)) in <lambda>()
151 assertNotEquals(ns1.withPolicies(validated = true), ns1) in <lambda>()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java171 return withPolicies(score.getPolicies(), in fromNetworkScore()
223 return withPolicies(score.getPolicies(), KEEP_CONNECTED_NONE, in makeProspectiveScore()
246 return withPolicies(mPolicies, mKeepConnectedReason, in mixInScore()
262 private static FullScore withPolicies(final long externalPolicies, in withPolicies() method in FullScore