Searched refs:networkSelectionStatus (Results 1 – 7 of 7) sorted by relevance
733 NetworkSelectionStatus networkSelectionStatus = in testShouldEditBeforeConnect_securedNetwork_returnTrueIfNeverConnected() local735 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() local760 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 …]
423 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel() local427 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()
516 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in getNetworkSelectionDescription() local518 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()
652 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in shouldEditBeforeConnect() local653 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()
110 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in createFilteredQnsCandidates() local112 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in createFilteredQnsCandidates()113 when(networkSelectionStatus.hasEverConnected()).thenReturn(true); in createFilteredQnsCandidates()134 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in createFilteredQnsCandidates() local136 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in createFilteredQnsCandidates()137 when(networkSelectionStatus.hasEverConnected()) in createFilteredQnsCandidates()1619 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testUpdateNetworkWithNullConfig() local1621 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testUpdateNetworkWithNullConfig()1622 when(networkSelectionStatus.hasEverConnected()) in testUpdateNetworkWithNullConfig()
4495 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testNoWpa3UpgradeWithPskCandidate() local4497 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testNoWpa3UpgradeWithPskCandidate()4511 when(networkSelectionStatus.getCandidate()).thenReturn(scanResult); in testNoWpa3UpgradeWithPskCandidate()4544 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testWpa3UpgradeWithSaeCandidate() local4546 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testWpa3UpgradeWithSaeCandidate()4561 when(networkSelectionStatus.getCandidate()).thenReturn(scanResult); in testWpa3UpgradeWithSaeCandidate()4594 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testWpa3UpgradeWithSaeCandidateAndPskApInRange() local4596 when(config.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testWpa3UpgradeWithSaeCandidateAndPskApInRange()4616 when(networkSelectionStatus.getCandidate()).thenReturn(scanResultSae); in testWpa3UpgradeWithSaeCandidateAndPskApInRange()4668 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testWpa3UpgradeWithNoCandidate() local[all …]
1963 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in testLogWifiConnectionResultStatsd() local1967 when(networkSelectionStatus.getCandidate()).thenReturn(scanResult); in testLogWifiConnectionResultStatsd()1968 network.setNetworkSelectionStatus(networkSelectionStatus); in testLogWifiConnectionResultStatsd()