Searched refs:networkSelectionStatus (Results 1 – 4 of 4) sorted by relevance
401 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testGetNetworkSelectionDescription_disabledWrongPassword_showsWrongPasswordLabel() local405 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()
974 NetworkSelectionStatus networkSelectionStatus = spy(statusBuilder.setNetworkSelectionStatus( in testShouldEditBeforeConnect_authenticationFailure_returnTrue() local979 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()
607 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in getNetworkSelectionDescription() local609 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()
634 NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); in shouldEditBeforeConnect() local635 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()