Home
last modified time | relevance | path

Searched refs:currentNetwork (Results 1 – 13 of 13) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java108 WifiConfiguration currentNetwork, String currentBssid, in evaluateNetworks() argument
156 findBestNetwork(candidateList, currentNetwork == null ? null : currentNetwork.SSID); in evaluateNetworks()
159 if (currentNetwork != null && TextUtils.equals(currentNetwork.SSID, in evaluateNetworks()
161 localLog("Staying with current Passpoint network " + currentNetwork.SSID); in evaluateNetworks()
164 mWifiConfigManager.setNetworkCandidateScanResult(currentNetwork.networkId, in evaluateNetworks()
166 mWifiConfigManager.updateScanDetailForNetwork(currentNetwork.networkId, in evaluateNetworks()
168 onConnectableListener.onConnectable(bestNetwork.mScanDetail, currentNetwork, 0); in evaluateNetworks()
169 return currentNetwork; in evaluateNetworks()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSavedNetworkEvaluator.java113 WifiConfiguration currentNetwork, String currentBssid, in calculateBssidScore() argument
148 if (currentNetwork != null && network.networkId == currentNetwork.networkId) { in calculateBssidScore()
187 WifiConfiguration currentNetwork, String currentBssid, boolean connected, in evaluateNetworks() argument
239 int score = calculateBssidScore(scanResult, network, currentNetwork, currentBssid, in evaluateNetworks()
DScoredNetworkEvaluator.java128 WifiConfiguration currentNetwork, String currentBssid, boolean connected, in evaluateNetworks() argument
174 boolean isCurrentNetwork = currentNetwork != null in evaluateNetworks()
175 && currentNetwork.networkId == configuredNetwork.networkId in evaluateNetworks()
DWifiNetworkSelector.java194 WifiConfiguration currentNetwork, String currentBssid, in evaluateNetworks() argument
707 WifiConfiguration currentNetwork = in selectNetwork() local
742 if (currentNetwork != null) { in selectNetwork()
743 wifiCandidates.setCurrent(currentNetwork.networkId, currentBssid); in selectNetwork()
748 new ArrayList<>(mFilteredNetworks), currentNetwork, currentBssid, connected, in selectNetwork()
DCarrierNetworkEvaluator.java90 WifiConfiguration currentNetwork, String currentBssid, boolean connected, in evaluateNetworks() argument
DNetworkSuggestionEvaluator.java79 WifiConfiguration currentNetwork, String currentBssid, boolean connected, in evaluateNetworks() argument
DClientModeImpl.java3831 WifiConfiguration currentNetwork = getCurrentWifiConfiguration(); in registerConnected() local
3832 if (currentNetwork != null && currentNetwork.isPasspoint()) { in registerConnected()
3833 mPasspointManager.onPasspointNetworkConnected(currentNetwork.FQDN); in registerConnected()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java349 WifiConfiguration currentNetwork = new WifiConfiguration(); in evaluateScansWithActiveNetworkMatchingHomeProvider() local
350 currentNetwork.networkId = TEST_NETWORK_ID; in evaluateScansWithActiveNetworkMatchingHomeProvider()
351 currentNetwork.SSID = ScanResultUtil.createQuotedSSID(TEST_SSID2); in evaluateScansWithActiveNetworkMatchingHomeProvider()
358 WifiConfiguration config = mEvaluator.evaluateNetworks(scanDetails, currentNetwork, in evaluateScansWithActiveNetworkMatchingHomeProvider()
604 WifiConfiguration currentNetwork = new WifiConfiguration(); in evaluateScansMatchingActiveNetworkWithDifferentBSS() local
605 currentNetwork.networkId = TEST_NETWORK_ID; in evaluateScansMatchingActiveNetworkWithDifferentBSS()
606 currentNetwork.SSID = ScanResultUtil.createQuotedSSID(TEST_SSID1); in evaluateScansMatchingActiveNetworkWithDifferentBSS()
612 assertNotNull(mEvaluator.evaluateNetworks(scanDetails, currentNetwork, in evaluateScansMatchingActiveNetworkWithDifferentBSS()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java3087 WifiConfiguration currentNetwork = new WifiConfiguration(); in verifyAutoConnectedNetworkWithInternetValidationFailure() local
3088 currentNetwork.networkId = FRAMEWORK_NETWORK_ID; in verifyAutoConnectedNetworkWithInternetValidationFailure()
3089 currentNetwork.noInternetAccessExpected = false; in verifyAutoConnectedNetworkWithInternetValidationFailure()
3090 currentNetwork.numNoInternetAccessReports = 1; in verifyAutoConnectedNetworkWithInternetValidationFailure()
3092 .thenReturn(currentNetwork); in verifyAutoConnectedNetworkWithInternetValidationFailure()
3121 WifiConfiguration currentNetwork = new WifiConfiguration(); in verifyLastSelectedNetworkWithInternetValidationFailure() local
3122 currentNetwork.networkId = FRAMEWORK_NETWORK_ID; in verifyLastSelectedNetworkWithInternetValidationFailure()
3123 currentNetwork.noInternetAccessExpected = false; in verifyLastSelectedNetworkWithInternetValidationFailure()
3124 currentNetwork.numNoInternetAccessReports = 1; in verifyLastSelectedNetworkWithInternetValidationFailure()
3126 .thenReturn(currentNetwork); in verifyLastSelectedNetworkWithInternetValidationFailure()
[all …]
DWifiConnectivityManagerTest.java1826 WifiConfiguration currentNetwork = generateWifiConfig(
1828 when(mWifiConfigManager.getConfiguredNetwork(anyInt())).thenReturn(currentNetwork);
1854 WifiConfiguration currentNetwork = generateWifiConfig(
1856 when(mWifiConfigManager.getConfiguredNetwork(anyInt())).thenReturn(currentNetwork);
1917 WifiConfiguration currentNetwork = generateWifiConfig(
1919 when(mWifiConfigManager.getConfiguredNetwork(anyInt())).thenReturn(currentNetwork);
DWifiNetworkSelectorTest.java164 WifiConfiguration currentNetwork, String currentBssid, boolean connected, in evaluateNetworks() argument
/frameworks/base/core/java/android/net/
DConnectivityManager.java1411 if (l.currentNetwork != null) { in startUsingNetworkFeature()
1607 Network currentNetwork; field in ConnectivityManager.LegacyRequest
1611 if (currentNetwork != null) { in clearDnsBinding()
1612 currentNetwork = null; in clearDnsBinding()
1620 currentNetwork = network;
1626 if (network.equals(currentNetwork)) clearDnsBinding();
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java3045 NetworkAgentInfo currentNetwork = getNetworkForRequest(request.requestId); in disconnectAndDestroyNetwork() local
3046 if (currentNetwork != null && currentNetwork.network.netId == nai.network.netId) { in disconnectAndDestroyNetwork()
6218 final NetworkAgentInfo currentNetwork = getNetworkForRequest(nri.request.requestId); in rematchNetworkAndRequests() local
6220 if (newNetwork == currentNetwork && satisfies) { in rematchNetworkAndRequests()
6236 (currentNetwork != null ? currentNetwork.getCurrentScore() : 0) + in rematchNetworkAndRequests()
6239 if (currentNetwork == null || currentNetwork.getCurrentScore() < score) { in rematchNetworkAndRequests()
6241 if (currentNetwork != null) { in rematchNetworkAndRequests()
6243 log(" accepting network in place of " + currentNetwork.name()); in rematchNetworkAndRequests()
6245 currentNetwork.removeRequest(nri.request.requestId); in rematchNetworkAndRequests()
6246 currentNetwork.lingerRequest(nri.request, now, mLingerDelayMs); in rematchNetworkAndRequests()
[all …]