Home
last modified time | relevance | path

Searched refs:getNetworkSelectionStatus (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java218 configs[netId].getNetworkSelectionStatus().setCandidate(null); in prepareConfigStore()
219 configs[netId].getNetworkSelectionStatus() in prepareConfigStore()
221 configs[netId].getNetworkSelectionStatus() in prepareConfigStore()
234 configs[netId].getNetworkSelectionStatus().setCandidate(scanResult); in prepareConfigStore()
235 configs[netId].getNetworkSelectionStatus().setCandidateScore(score); in prepareConfigStore()
236 configs[netId].getNetworkSelectionStatus() in prepareConfigStore()
248 configs[netId].getNetworkSelectionStatus().setConnectChoice(null); in prepareConfigStore()
249 configs[netId].getNetworkSelectionStatus() in prepareConfigStore()
263 configs[netId].getNetworkSelectionStatus().setConnectChoice(configKey); in prepareConfigStore()
264 configs[netId].getNetworkSelectionStatus().setConnectChoiceTimestamp( in prepareConfigStore()
[all …]
DWifiConfigurationTestUtil.java512 expected.getNetworkSelectionStatus(), actual.getNetworkSelectionStatus()); in assertConfigurationEqualForConfigStore()
537 expected.getNetworkSelectionStatus(), actual.getNetworkSelectionStatus()); in assertConfigurationEqualForConfigManagerAddOrUpdate()
551 assertEquals(expected.getNetworkSelectionStatus().getNetworkSelectionBSSID(), in assertConfigurationEqualForSupplicant()
552 actual.getNetworkSelectionStatus().getNetworkSelectionBSSID()); in assertConfigurationEqualForSupplicant()
588 actual.getNetworkSelectionStatus()); in assertNetworkSelectionStatusEqualForConfigStore()
593 assertEquals(expected.getNetworkSelectionStatus(), actual.getNetworkSelectionStatus()); in assertNetworkSelectionStatusEqualForConfigStore()
DWifiConfigurationUtilTest.java562 network.getNetworkSelectionStatus().setNetworkSelectionBSSID(TEST_BSSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
564 network1.getNetworkSelectionStatus().setNetworkSelectionBSSID(TEST_BSSID_1); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
642 enabledNetwork1.getNetworkSelectionStatus().setNetworkSelectionStatus( in testPnoListComparator()
645 enabledNetwork2.getNetworkSelectionStatus().setNetworkSelectionStatus( in testPnoListComparator()
648 tempDisabledNetwork1.getNetworkSelectionStatus().setNetworkSelectionStatus( in testPnoListComparator()
651 tempDisabledNetwork2.getNetworkSelectionStatus().setNetworkSelectionStatus( in testPnoListComparator()
654 permDisabledNetwork.getNetworkSelectionStatus().setNetworkSelectionStatus( in testPnoListComparator()
DWakeupControllerTest.java313 openNetwork.getNetworkSelectionStatus().setHasEverConnected(true); in startInitializesWakeupLockWithSavedScanResults()
315 wepNetwork.getNetworkSelectionStatus().setHasEverConnected(true); in startInitializesWakeupLockWithSavedScanResults()
347 openNetworkDfs.getNetworkSelectionStatus().setHasEverConnected(true); in startFiltersOutDfsScanResults()
350 openNetwork24.getNetworkSelectionStatus().setHasEverConnected(true); in startFiltersOutDfsScanResults()
380 openNetwork.getNetworkSelectionStatus().setHasEverConnected(true); in onResultsUpdatesWakeupLock()
DWifiConfigManagerTest.java723 assertFalse(retrievedNetwork.getNetworkSelectionStatus().isNotRecommended()); in testUpdateNetworkNotRecommended()
731 assertTrue(retrievedNetwork.getNetworkSelectionStatus().isNotRecommended()); in testUpdateNetworkNotRecommended()
739 assertFalse(retrievedNetwork.getNetworkSelectionStatus().isNotRecommended()); in testUpdateNetworkNotRecommended()
770 .getNetworkSelectionStatus(); in testTryEnableNetwork()
783 .getNetworkSelectionStatus(); in testTryEnableNetwork()
802 NetworkSelectionStatus retrievedStatus = retrievedNetwork.getNetworkSelectionStatus(); in testEnableDisableNetwork()
810 retrievedStatus = retrievedNetwork.getNetworkSelectionStatus(); in testEnableDisableNetwork()
831 NetworkSelectionStatus retrievedStatus = retrievedNetwork.getNetworkSelectionStatus(); in testEnableDisableNetworkFailedDueToPermissionDenied()
842 .getNetworkSelectionStatus(); in testEnableDisableNetworkFailedDueToPermissionDenied()
1252 openNetwork.getNetworkSelectionStatus().setHasEverConnected(true); in testAddNetworkOverridesHasEverConnectedWhenTrueInNewConfig()
[all …]
DWifiNetworkSelectorTest.java586 selectedWifiConfig.getNetworkSelectionStatus() in setUserConnectChoice()
588 selectedWifiConfig.getNetworkSelectionStatus().setNetworkSelectionStatus( in setUserConnectChoice()
590 selectedWifiConfig.getNetworkSelectionStatus().setConnectChoice("bogusKey"); in setUserConnectChoice()
593 configInLastNetworkSelection.getNetworkSelectionStatus() in setUserConnectChoice()
635 networkSelectorChoice.getNetworkSelectionStatus() in userConnectChoiceOverridesNetworkEvaluators()
639 userChoice.getNetworkSelectionStatus() in userConnectChoiceOverridesNetworkEvaluators()
DWifiLastResortWatchdogTest.java84 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in createFilteredQnsCandidates()
108 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in createFilteredQnsCandidates()
1573 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testUpdateNetworkWithNullConfig()
1609 when(configHasEverConnectedFalse.getNetworkSelectionStatus()) in testUpdateNetworkWithHasEverConnectedTrue()
1628 when(configHasEverConnectedTrue.getNetworkSelectionStatus()) in testUpdateNetworkWithHasEverConnectedTrue()
1657 when(configHasEverConnectedTrue.getNetworkSelectionStatus()) in testUpdateNetworkWithHasEverConnectedFalse()
1676 when(configHasEverConnectedFalse.getNetworkSelectionStatus()) in testUpdateNetworkWithHasEverConnectedFalse()
1703 when(configHasEverConnectedTrue.getNetworkSelectionStatus()) in testHasEverConnectedValueInAvailableNetworkFailureCountToString()
1715 when(configHasEverConnectedFalse.getNetworkSelectionStatus()) in testHasEverConnectedValueInAvailableNetworkFailureCountToString()
1876 when(candidates.get(0).second.getNetworkSelectionStatus().getHasEverConnected()) in testWatchdogVerifiesAtLeastOneNetworkIsConnectedBeforeTriggeringBugreport()
DWifiMetricsTest.java1062 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStat); in testScanDetailAndWifiConfigurationUsage()
1806 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStat); in generateRssiDelta()
1867 config.getNetworkSelectionStatus().setHasEverConnected(true); in createComplexWifiConfig()
1871 config.getNetworkSelectionStatus().setCandidate(candidate); in createComplexWifiConfig()
1885 assertEquals(config.getNetworkSelectionStatus().getHasEverConnected(), in assertConfigInfoEqualsWifiConfig()
1887 assertEquals(config.getNetworkSelectionStatus().getCandidate().level, info.scanRssi); in assertConfigInfoEqualsWifiConfig()
1888 assertEquals(config.getNetworkSelectionStatus().getCandidate().frequency, info.scanFreq); in assertConfigInfoEqualsWifiConfig()
DWifiConnectivityManagerTest.java279 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult); in mockWifiNetworkSelector()
1686 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
1740 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
1830 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
1870 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
DSupplicantStaIfaceHalTest.java645 testBssid, config.getNetworkSelectionStatus().getNetworkSelectionBSSID())); in connectToNetworkWithSameNetworkButDifferentBssidUpdatesNetworkFromSupplicant()
646 config.getNetworkSelectionStatus().setNetworkSelectionBSSID(testBssid); in connectToNetworkWithSameNetworkButDifferentBssidUpdatesNetworkFromSupplicant()
751 roamingConfig.getNetworkSelectionStatus().setNetworkSelectionBSSID("45:34:23:23:ab:ed"); in testRoamFailureDueToBssidSet()
818 roamingConfig.getNetworkSelectionStatus().setNetworkSelectionBSSID("45:34:23:23:ab:ed"); in testRoamFailureDueToReassociate()
1859 roamingConfig.getNetworkSelectionStatus().setNetworkSelectionBSSID(roamBssid); in executeAndValidateRoamSequence()
DWifiStateMachineTest.java1152 config.getNetworkSelectionStatus().setHasEverConnected(true); in testWrongPasswordWithPreviouslyConnected()
1184 config.getNetworkSelectionStatus().setHasEverConnected(false); in testWrongPasswordWithNeverConnected()
1241 config.getNetworkSelectionStatus().setHasEverConnected(true); in testEapSimErrorVendorSpecific()
1269 config.getNetworkSelectionStatus().setHasEverConnected(true); in testEapTlsErrorVendorSpecific()
2298 when(config.getNetworkSelectionStatus()) in testDoNotSetMacWhenInvalid()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java41 if (config != null && !config.getNetworkSelectionStatus().isNetworkEnabled()) { in buildLoggingSummary()
42 summary.append(" (" + config.getNetworkSelectionStatus().getNetworkStatusString()); in buildLoggingSummary()
43 if (config.getNetworkSelectionStatus().getDisableTime() > 0) { in buildLoggingSummary()
45 long diff = (now - config.getNetworkSelectionStatus().getDisableTime()) / 1000; in buildLoggingSummary()
59 config.getNetworkSelectionStatus(); in buildLoggingSummary()
DAccessPoint.java845 && config.getNetworkSelectionStatus().isNetworkEnabled()) { in getSettingsSummary()
849 int messageID = config.getNetworkSelectionStatus().isNetworkPermanentlyDisabled() in getSettingsSummary()
853 } else if (config != null && !config.getNetworkSelectionStatus().isNetworkEnabled()) { in getSettingsSummary()
855 config.getNetworkSelectionStatus(); in getSettingsSummary()
871 } else if (config != null && config.getNetworkSelectionStatus().isNotRecommended()) { in getSettingsSummary()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkSelector.java428 if (!selected.getNetworkSelectionStatus().isNetworkEnabled()) { in setUserConnectChoice()
440 WifiConfiguration.NetworkSelectionStatus status = network.getNetworkSelectionStatus(); in setUserConnectChoice()
475 ScanResult scanResultCandidate = candidate.getNetworkSelectionStatus().getCandidate(); in overrideCandidateWithUserConnectChoice()
477 while (tempConfig.getNetworkSelectionStatus().getConnectChoice() != null) { in overrideCandidateWithUserConnectChoice()
478 String key = tempConfig.getNetworkSelectionStatus().getConnectChoice(); in overrideCandidateWithUserConnectChoice()
483 tempConfig.getNetworkSelectionStatus(); in overrideCandidateWithUserConnectChoice()
562 + selectedNetwork.getNetworkSelectionStatus().getCandidate().BSSID); in selectNetwork()
DWifiConfigManager.java229 a.getNetworkSelectionStatus()
232 b.getNetworkSelectionStatus()
901 configuration.getNetworkSelectionStatus().setNetworkSelectionStatus( in setDefaultsInWifiConfiguration()
903 configuration.getNetworkSelectionStatus().setNetworkSelectionDisableReason( in setDefaultsInWifiConfiguration()
1050 newInternalConfig.getNetworkSelectionStatus().setHasEverConnected(false); in addOrUpdateNetworkInternal()
1283 NetworkSelectionStatus status = config.getNetworkSelectionStatus(); in setNetworkSelectionEnabled()
1300 NetworkSelectionStatus status = config.getNetworkSelectionStatus(); in setNetworkSelectionTemporarilyDisabled()
1316 NetworkSelectionStatus status = config.getNetworkSelectionStatus(); in setNetworkSelectionPermanentlyDisabled()
1349 NetworkSelectionStatus networkStatus = config.getNetworkSelectionStatus(); in setNetworkSelectionStatus()
1380 NetworkSelectionStatus networkStatus = config.getNetworkSelectionStatus(); in updateNetworkSelectionStatus()
[all …]
DWifiNetworkHistory.java145 NetworkSelectionStatus status = config.getNetworkSelectionStatus(); in writeKnownNetworkHistory()
152 if (config.getNetworkSelectionStatus().isNetworkEnabled()) { in writeKnownNetworkHistory()
156 config.getNetworkSelectionStatus().getDisableTime()); in writeKnownNetworkHistory()
252 + status.getNetworkSelectionStatus() + NL); in writeKnownNetworkHistory()
374 NetworkSelectionStatus networkStatus = config.getNetworkSelectionStatus(); in readNetworkHistory()
DSavedNetworkEvaluator.java117 WifiConfiguration.NetworkSelectionStatus status = network.getNetworkSelectionStatus(); in updateSavedNetworkSelectionStatus()
261 network.getNetworkSelectionStatus(); in evaluateNetworks()
DWifiConfigurationUtil.java589 if (config.getNetworkSelectionStatus().isNetworkEnabled()) { in getNetworkStatusScore()
591 } else if (config.getNetworkSelectionStatus().isNetworkTemporaryDisabled()) { in getNetworkStatusScore()
DWifiLastResortWatchdog.java379 && entry.getValue().config.getNetworkSelectionStatus().getHasEverConnected()) { in checkIfAtleastOneNetworkHasEverConnected()
593 ? config.getNetworkSelectionStatus().getHasEverConnected() : "null_config") in toString()
DNetworkListStoreData.java184 NetworkSelectionStatusXmlUtil.writeToXml(out, config.getNetworkSelectionStatus()); in serializeNetwork()
DWakeupController.java250 || !config.getNetworkSelectionStatus().getHasEverConnected()) { in getGoodSavedNetworks()
DScoredNetworkEvaluator.java167 if (!configuredNetwork.getNetworkSelectionStatus().isNetworkEnabled()) { in evaluateNetworks()
DSupplicantStaIfaceHal.java666 String networkSelectionBSSID = config.getNetworkSelectionStatus() in connectToNetwork()
669 currentConfig.getNetworkSelectionStatus().getNetworkSelectionBSSID(); in connectToNetwork()
676 config.getNetworkSelectionStatus().getNetworkSelectionBSSID())) { in connectToNetwork()
728 String bssid = config.getNetworkSelectionStatus().getNetworkSelectionBSSID(); in roamToNetwork()
DWifiMetrics.java256 ScanResult candidate = config.getNetworkSelectionStatus().getCandidate(); in updateFromWifiConfiguration()
648 ScanResult candidate = config.getNetworkSelectionStatus().getCandidate(); in startConnectionEvent()
2700 info.hasEverConnected = config.getNetworkSelectionStatus().getHasEverConnected(); in createConfigInfo()
2701 ScanResult candidate = config.getNetworkSelectionStatus().getCandidate(); in createConfigInfo()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java1196 public int getNetworkSelectionStatus() { in getNetworkSelectionStatus() method in WifiConfiguration.NetworkSelectionStatus
1378 dest.writeInt(getNetworkSelectionStatus()); in writeToParcel()
1475 public NetworkSelectionStatus getNetworkSelectionStatus() { in getNetworkSelectionStatus() method in WifiConfiguration
2027 mNetworkSelectionStatus.copy(source.getNetworkSelectionStatus()); in WifiConfiguration()

12