Searched refs:nais (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkRankerTest.kt | 43 val nais = scores.map { makeNai(true, it) } in testGetBestNetwork() constant 44 val bestNetwork = nais[2] // The one with the top score in testGetBestNetwork() 46 assertEquals(bestNetwork, ranker.getBestNetwork(someRequest, nais)) in testGetBestNetwork() 51 val nais = listOf(makeNai(true, 20), makeNai(true, 50), makeNai(false, 90), in testIgnoreNonSatisfying() constant 53 val bestNetwork = nais[1] // Top score that's satisfying in testIgnoreNonSatisfying() 55 assertEquals(bestNetwork, ranker.getBestNetwork(someRequest, nais)) in testIgnoreNonSatisfying() 60 val nais = listOf(makeNai(false, 20), makeNai(false, 50), makeNai(false, 90)) in testNoMatch() constant 62 assertNull(ranker.getBestNetwork(someRequest, nais)) in testNoMatch()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkRanker.java | 38 @NonNull final Collection<NetworkAgentInfo> nais) { in getBestNetwork() argument 41 for (final NetworkAgentInfo nai : nais) { in getBestNetwork()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 6844 final ArrayList<NetworkAgentInfo> nais = new ArrayList<>(); in computeNetworkReassignment() local 6847 nais.add(nai); in computeNetworkReassignment() 6852 final NetworkAgentInfo bestNetwork = mNetworkRanker.getBestNetwork(nri.request, nais); in computeNetworkReassignment() 6880 final Collection<NetworkAgentInfo> nais = mNetworkAgentInfos.values(); in applyNetworkReassignment() local 6885 for (final NetworkAgentInfo nai : nais) { in applyNetworkReassignment() 6942 for (final NetworkAgentInfo nai : nais) { in applyNetworkReassignment() 6953 for (final NetworkAgentInfo nai : nais) { in applyNetworkReassignment() 6970 updateLegacyTypeTrackerAndVpnLockdownForRematch(oldDefaultNetwork, newDefaultNetwork, nais); in applyNetworkReassignment() 7015 @NonNull final Collection<NetworkAgentInfo> nais) { in updateLegacyTypeTrackerAndVpnLockdownForRematch() argument 7053 for (NetworkAgentInfo nai : nais) { in updateLegacyTypeTrackerAndVpnLockdownForRematch()
|