Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiQrCodeTest.java107 assertEquals(SECURITY_OF_VALID_ZXING_WIFI_QR_CODE_WPA, config.getSecurity()); in parseValidZxingWifiQrCode()
120 assertEquals(SECURITY_OF_VALID_ZXING_WIFI_QR_CODE_SAE, config.getSecurity()); in parseValidZxingWifiQrCodeSae()
133 assertEquals(SECURITY_OF_VALID_ZXING_WIFI_QR_CODE_NOPASS, config.getSecurity()); in parseValidZxingWifiQrCode_noPass_and_no_password()
146 assertEquals("", config.getSecurity()); in parseValidZxingWifiQrCode_no_security_and_no_password()
159 assertEquals(SECURITY_OF_VALID_ZXING_WIFI_QR_CODE_WPA, config.getSecurity()); in parseValidZxingWifiQrCode_specialCharacters()
DWifiDppConfiguratorActivityTest.java171 assertThat(restoredWifiNetworkConfig.getSecurity()).isEqualTo("WPA"); in rotateScreen_shouldGetCorrectWifiNetworkConfig()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DAccessPointListPreferenceControllerTest.java91 when(mMockAccessPoint1.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in setUp()
93 when(mMockAccessPoint2.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in setUp()
148 when(mMockAccessPoint1.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in performClick_noSecurityNotConnectedAccessPoint_connect()
190 when(mMockAccessPoint1.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in performButtonClick_savedAccessPoint_wrongPassword_forgetsNetwork()
214 when(mMockAccessPoint1.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in callChangeListener_newSecureAccessPoint_wifiAdded()
234 when(mMockAccessPoint1.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in callChangeListener_newSecureAccessPoint_wifiEnabled()
DAccessPointPreferenceTest.java67 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in onClick_securityTypeNone_doesntOpenDialog()
79 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog()
96 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog()
111 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isNotSaved_opensDialog()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java155 security = accessPoint.getSecurity(); in getWifiConfig()
270 } else if ((accessPoint.getSecurity() == AccessPoint.SECURITY_NONE) || in getConnectingType()
271 (accessPoint.getSecurity() == AccessPoint.SECURITY_OWE) || in getConnectingType()
272 (accessPoint.getSecurity() == AccessPoint.SECURITY_OWE_TRANSITION)) { in getConnectingType()
DWifiSettings.java496 } else if ((mSelectedAccessPoint.getSecurity() == AccessPoint.SECURITY_NONE) || in onContextItemSelected()
497 (mSelectedAccessPoint.getSecurity() == AccessPoint.SECURITY_OWE) || in onContextItemSelected()
498 (mSelectedAccessPoint.getSecurity() in onContextItemSelected()
752 && (accessPoint.getSecurity() != AccessPoint.SECURITY_NONE && in updateAccessPointPreferences()
753 accessPoint.getSecurity() != AccessPoint.SECURITY_OWE && in updateAccessPointPreferences()
754 accessPoint.getSecurity() != AccessPoint.SECURITY_OWE_TRANSITION)) { in updateAccessPointPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DConnectToWifiHandlerTest.java68 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in connect_shouldConnectToUnsavedOpenNetwork()
99 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in connect_shouldConnectToSavedSecuredNetwork()
112 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in connect_shouldNotConnectToUnsavedSecuredNetwork()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiUtils.java155 security = accessPoint.getSecurity(); in getWifiConfig()
270 } else if ((accessPoint.getSecurity() == AccessPoint.SECURITY_NONE) || in getConnectingType()
271 (accessPoint.getSecurity() == AccessPoint.SECURITY_OWE)) { in getConnectingType()
DWifiSettings.java493 } else if ((mSelectedAccessPoint.getSecurity() == AccessPoint.SECURITY_NONE) || in onContextItemSelected()
494 (mSelectedAccessPoint.getSecurity() == AccessPoint.SECURITY_OWE)) { in onContextItemSelected()
747 && (accessPoint.getSecurity() != AccessPoint.SECURITY_NONE && in updateAccessPointPreferences()
748 accessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in updateAccessPointPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DWifiSecurityUtil.java36 public static int getSecurity(ScanResult result) { in getSecurity() method in WifiSecurityUtil
53 public static int getSecurity(WifiConfiguration config) { in getSecurity() method in WifiSecurityUtil
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DAccessPointPreference.java77 return mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE && (!mAccessPoint.isSaved() in shouldShowPasswordDialog()
87 (mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in getAccessPointIcon()
DAccessPointListPreferenceController.java100 if (accessPoint.getSecurity() == AccessPoint.SECURITY_NONE in onPreferenceClick()
116 accessPoint.getSecurity(), newValue.toString(), /* hidden= */ false); in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java209 if (accessPoint.getSecurity() == AccessPoint.SECURITY_PSK_SAE_TRANSITION) { in getConfiguratorQrCodeGeneratorIntentOrNull()
356 return isSupportWifiDpp(context, accessPoint.getSecurity()); in isSupportConfiguratorQrCodeScanner()
370 return isSupportZxing(context, accessPoint.getSecurity()); in isSupportConfiguratorQrCodeGenerator()
DWifiNetworkConfig.java185 public String getSecurity() { in getSecurity() method in WifiNetworkConfig
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiDetailsFragment.java128 && mAccessPoint.getSecurity() == accessPoint.getSecurity()) { in onWifiListChanged()
DWifiConnectionActivity.java65 final int security = result.getSecurity(); in createIntent()
70 final int security = WifiSecurityUtil.getSecurity(configuration); in createIntent()
DWifiConfigHelper.java224 int configuredSecurity = WifiSecurityUtil.getSecurity(configuredNetwork); in getFromConfiguredNetworks()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java130 mIconResource = AccessPoint.SECURITY_NONE == WifiSecurityUtil.getSecurity(scanResult) in ListItem()
214 && WifiSecurityUtil.getSecurity(mScanResult) in equals()
215 == WifiSecurityUtil.getSecurity(li.mScanResult)); in equals()
DSelectWifiState.java172 new Pair<>(result.SSID, WifiSecurityUtil.getSecurity(result)); in getNetworks()
179 int iconResource = AccessPoint.SECURITY_NONE == WifiSecurityUtil.getSecurity(result) in getNetworks()
DAddPageBasedOnNetworkState.java63 int wifiSecurity = WifiSecurityUtil.getSecurity(scanResult); in processForward()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiDppUtils.java343 return isSupportWifiDpp(context, accessPoint.getSecurity()); in isSupportConfiguratorQrCodeScanner()
354 return isSupportZxing(context, accessPoint.getSecurity()); in isSupportConfiguratorQrCodeGenerator()
DWifiNetworkConfig.java185 public String getSecurity() { in getSecurity() method in WifiNetworkConfig
DWifiDppConfiguratorActivity.java361 outState.putString(KEY_WIFI_SECURITY, mWifiNetworkConfig.getSecurity()); in onSaveInstanceState()
DWifiNetworkListFragment.java255 final int security = accessPoint.getSecurity(); in isValidForDppConfiguration()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java88 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in setUp()
254 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in loadCertificates_keyStoreListFail_shouldNotCrash()

12