Home
last modified time | relevance | path

Searched refs:networkSelectionStatus (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardWifiEntryTest.java733 NetworkSelectionStatus networkSelectionStatus = in testShouldEditBeforeConnect_securedNetwork_returnTrueIfNeverConnected() local
735 doReturn(networkSelectionStatus).when(wifiConfig).getNetworkSelectionStatus(); in testShouldEditBeforeConnect_securedNetwork_returnTrueIfNeverConnected()
740 doReturn(true).when(networkSelectionStatus).hasEverConnected(); in testShouldEditBeforeConnect_securedNetwork_returnTrueIfNeverConnected()
755 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue() local
760 doReturn(1).when(networkSelectionStatus).getDisableReasonCounter( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
762 doReturn(true).when(networkSelectionStatus).hasEverConnected(); in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
763 doReturn(networkSelectionStatus).when(wifiConfig).getNetworkSelectionStatus(); in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
768 networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
772 doReturn(1).when(networkSelectionStatus).getDisableReasonCounter( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
778 networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
[all …]
DUtilsTest.java423 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel() local
427 doReturn(2).when(networkSelectionStatus).getDisableReasonCounter( in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
431 doReturn(now - (60 * 60 + 2 * 60 + 3) * 1000).when(networkSelectionStatus).getDisableTime(); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
432 when(wifiConfig.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java516 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in getNetworkSelectionDescription() local
518 if (networkSelectionStatus.getNetworkSelectionStatus() != NETWORK_SELECTION_ENABLED) { in getNetworkSelectionDescription()
519 description.append(" (" + networkSelectionStatus.getNetworkStatusString()); in getNetworkSelectionDescription()
520 if (networkSelectionStatus.getDisableTime() > 0) { in getNetworkSelectionDescription()
522 long elapsedSeconds = (now - networkSelectionStatus.getDisableTime()) / 1000; in getNetworkSelectionDescription()
531 int disableReasonCounter = networkSelectionStatus.getDisableReasonCounter(reason); in getNetworkSelectionDescription()
DStandardWifiEntry.java652 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in shouldEditBeforeConnect() local
653 if (networkSelectionStatus.getNetworkSelectionStatus() != NETWORK_SELECTION_ENABLED) { in shouldEditBeforeConnect()
654 if (networkSelectionStatus.getDisableReasonCounter(DISABLED_AUTHENTICATION_FAILURE) > 0 in shouldEditBeforeConnect()
655 || networkSelectionStatus.getDisableReasonCounter( in shouldEditBeforeConnect()
657 || networkSelectionStatus.getDisableReasonCounter( in shouldEditBeforeConnect()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLastResortWatchdogTest.java110 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in createFilteredQnsCandidates() local
112 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in createFilteredQnsCandidates()
113 when(networkSelectionStatus.hasEverConnected()).thenReturn(true); in createFilteredQnsCandidates()
134 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in createFilteredQnsCandidates() local
136 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in createFilteredQnsCandidates()
137 when(networkSelectionStatus.hasEverConnected()) in createFilteredQnsCandidates()
1619 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testUpdateNetworkWithNullConfig() local
1621 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testUpdateNetworkWithNullConfig()
1622 when(networkSelectionStatus.hasEverConnected()) in testUpdateNetworkWithNullConfig()
DClientModeImplTest.java4495 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testNoWpa3UpgradeWithPskCandidate() local
4497 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testNoWpa3UpgradeWithPskCandidate()
4511 when(networkSelectionStatus.getCandidate()).thenReturn(scanResult); in testNoWpa3UpgradeWithPskCandidate()
4544 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testWpa3UpgradeWithSaeCandidate() local
4546 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testWpa3UpgradeWithSaeCandidate()
4561 when(networkSelectionStatus.getCandidate()).thenReturn(scanResult); in testWpa3UpgradeWithSaeCandidate()
4594 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testWpa3UpgradeWithSaeCandidateAndPskApInRange() local
4596 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testWpa3UpgradeWithSaeCandidateAndPskApInRange()
4616 when(networkSelectionStatus.getCandidate()).thenReturn(scanResultSae); in testWpa3UpgradeWithSaeCandidateAndPskApInRange()
4668 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testWpa3UpgradeWithNoCandidate() local
[all …]
DWifiMetricsTest.java1963 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testLogWifiConnectionResultStatsd() local
1967 when(networkSelectionStatus.getCandidate()).thenReturn(scanResult); in testLogWifiConnectionResultStatsd()
1968 network.setNetworkSelectionStatus(networkSelectionStatus); in testLogWifiConnectionResultStatsd()