Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkRanker.java39 NetworkAgentInfo bestNetwork = null; in getBestNetwork() local
44 bestNetwork = nai; in getBestNetwork()
48 return bestNetwork; in getBestNetwork()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkRankerTest.kt44 val bestNetwork = nais[2] // The one with the top score in testGetBestNetwork() constant
46 assertEquals(bestNetwork, ranker.getBestNetwork(someRequest, nais)) in testGetBestNetwork()
53 val bestNetwork = nais[1] // Top score that's satisfying in testIgnoreNonSatisfying() constant
55 assertEquals(bestNetwork, ranker.getBestNetwork(someRequest, nais)) in testIgnoreNonSatisfying()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java155 PasspointNetworkCandidate bestNetwork = in evaluateNetworks() local
160 ScanResultUtil.createQuotedSSID(bestNetwork.mScanDetail.getSSID()))) { in evaluateNetworks()
165 bestNetwork.mScanDetail.getScanResult(), 0); in evaluateNetworks()
167 bestNetwork.mScanDetail); in evaluateNetworks()
168 onConnectableListener.onConnectable(bestNetwork.mScanDetail, currentNetwork, 0); in evaluateNetworks()
172 WifiConfiguration config = createWifiConfigForProvider(bestNetwork); in evaluateNetworks()
174 onConnectableListener.onConnectable(bestNetwork.mScanDetail, config, 0); in evaluateNetworks()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java6852 final NetworkAgentInfo bestNetwork = mNetworkRanker.getBestNetwork(nri.request, nais); in computeNetworkReassignment() local
6853 if (bestNetwork != nri.mSatisfier) { in computeNetworkReassignment()
6856 nri, nri.mSatisfier, bestNetwork)); in computeNetworkReassignment()