Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java401 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel() local
405 doReturn(2).when(networkSelectionStatus).getDisableReasonCounter( in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
409 doReturn(now - (60 * 60 + 2 * 60 + 3) * 1000).when(networkSelectionStatus).getDisableTime(); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
410 when(wifiConfig.getNetworkSelectionStatus()).thenReturn(networkSelectionStatus); in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel()
DStandardWifiEntryTest.java974 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue() local
979 doReturn(1).when(networkSelectionStatus).getDisableReasonCounter( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
981 doReturn(true).when(networkSelectionStatus).hasEverConnected(); in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
982 doReturn(networkSelectionStatus).when(wifiConfig).getNetworkSelectionStatus(); in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
987 networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
991 doReturn(1).when(networkSelectionStatus).getDisableReasonCounter( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
997 networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
1001 doReturn(1).when(networkSelectionStatus).getDisableReasonCounter( in testShouldEditBeforeConnect_authenticationFailure_returnTrue()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java607 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in getNetworkSelectionDescription() local
609 if (networkSelectionStatus.getNetworkSelectionStatus() != NETWORK_SELECTION_ENABLED) { in getNetworkSelectionDescription()
610 description.append(" (" + networkSelectionStatus.getNetworkStatusString()); in getNetworkSelectionDescription()
611 if (networkSelectionStatus.getDisableTime() > 0) { in getNetworkSelectionDescription()
613 long elapsedSeconds = (now - networkSelectionStatus.getDisableTime()) / 1000; in getNetworkSelectionDescription()
622 int disableReasonCounter = networkSelectionStatus.getDisableReasonCounter(reason); in getNetworkSelectionDescription()
DStandardWifiEntry.java634 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in shouldEditBeforeConnect() local
635 if (networkSelectionStatus.getNetworkSelectionStatus() != NETWORK_SELECTION_ENABLED) { in shouldEditBeforeConnect()
636 if (networkSelectionStatus.getDisableReasonCounter(DISABLED_AUTHENTICATION_FAILURE) > 0 in shouldEditBeforeConnect()
637 || networkSelectionStatus.getDisableReasonCounter( in shouldEditBeforeConnect()
639 || networkSelectionStatus.getDisableReasonCounter( in shouldEditBeforeConnect()