Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DAdbQrCodeTest.java32 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_validCode()
37 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_validCode()
42 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_validCode()
51 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_invalidCodeButShouldWork()
56 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_invalidCodeButShouldWork()
61 assertThat(config.getSecurity()).isEqualTo("ADB"); in testZxParsing_invalidCodeButShouldWork()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DAccessPoint.java131 return getKey(result.SSID, result.BSSID, getSecurity(result)); in getKey()
150 return getKey(getSsidStr(), mWifiEntry.getMacAddress(), getSecurity()); in getKey()
176 public static int getSecurity(WifiEntry wifiEntry) { in getSecurity() method in AccessPoint
214 public int getSecurity() { in getSecurity() method in AccessPoint
215 return getSecurity(mWifiEntry); in getSecurity()
261 private static int getSecurity(ScanResult result) { in getSecurity() method in AccessPoint
DWifiDetailsState.java163 && mAccessPoint.getSecurity() == accessPoint.getSecurity()) { in onWifiListChanged()
DAccessPointPreferenceController.java86 .putExtra(EXTRA_WIFI_SECURITY_NAME, mAccessPoint.getSecurity()); in init()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiEntryListPreferenceControllerTest.java115 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in setUp()
117 when(mMockWifiEntry2.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in setUp()
178 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in performClick_noSecurityNotConnectedWifiEntry_connect()
191 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in performClick_shouldEditBeforeConnect_launchDialog()
250 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in performButtonClick_savedWifiEntry_forgetsNetwork()
271 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in callChangeListener_newSecureWifiEntry_wifiConnected()
290 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in fetchWifiEntries_getSavedWifiEntries()
317 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in fetchWifiEntries_getAllWifiEntries()
340 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in fetchWifiEntries_restrictionByDpm_returnsNoEntries()
DLimitedWifiEntryListPreferenceControllerTest.java95 when(mMockWifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in setUp()
97 when(mMockWifiEntry2.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in setUp()
99 when(mMockWifiEntry3.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in setUp()
101 when(mMockWifiEntry4.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java95 when(mWifiEntry.getSecurity()).thenReturn(SECURITY_PSK); in setUp()
206 when(wifiEntry1.getSecurity()).thenReturn(WifiEntry.SECURITY_WEP); in createWifiEntryList()
211 when(wifiEntry2.getSecurity()).thenReturn(WifiEntry.SECURITY_WEP); in createWifiEntryList()
216 when(wifiEntry3.getSecurity()).thenReturn(WifiEntry.SECURITY_WEP); in createWifiEntryList()
221 when(wifiEntry4.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in createWifiEntryList()
226 when(wifiEntry5.getSecurity()).thenReturn(WifiEntry.SECURITY_WEP); in createWifiEntryList()
231 when(wifiEntry6.getSecurity()).thenReturn(WifiEntry.SECURITY_WEP); in createWifiEntryList()
DWifiConfigControllerTest.java104 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in setUp()
235 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in isSubmittable_caCertWithoutDomain_shouldReturnFalse()
249 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in isSubmittable_caCertWithDomain_shouldReturnTrue()
569 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
630 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in loadSims_noSim_simSpinnerDefaultNoSim()
646 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in loadSims_oneSim_simSpinnerDefaultSubscription()
DWifiConfigController2Test.java144 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in setUp()
288 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in isSubmittable_caCertWithoutDomain_shouldReturnFalse()
301 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in isSubmittable_caCertWithDomain_shouldReturnTrue()
870 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in setUpModifyingSavedPeapConfigController()
883 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in loadSims_noSim_simSpinnerDefaultNoSim()
895 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in loadSims_oneSim_simSpinnerDefaultSubscription()
919 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in loadSims_twoSimsWithDifferentCarrierId_showTwoSims()
935 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in loadSims_twoSimsWithSameCarrierId_showOneDefaultDataSim()
1059 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in setUpModifyingSavedCertificateConfigController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragmentTest.java96 when(wifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in onSavedWifiEntriesChanged_openSavedWifiEntry_onlyAddNetworkPreference()
109 when(wifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in onSavedWifiEntriesChanged_pskSavedWifiEntry_add2Preferences()
121 when(wifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_SAE); in onSavedWifiEntriesChanged_saeSavedWifiEntry_add2Preferences()
DWifiDppUtilsTest.java72 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DTvAccessPointPreference.java78 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in onBindViewHolder()
79 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in onBindViewHolder()
DAccessPointPreference.java185 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in bindFrictionImage()
186 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in bindFrictionImage()
262 ap.getSecurity() == AccessPoint.SECURITY_NONE in buildContentDescription()
/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/Settings/src/com/android/settings/wifi/slice/
DWifiSliceItem.java62 mSecurity = wifiEntry.getSecurity(); in WifiSliceItem()
114 public int getSecurity() { in getSecurity() method in WifiSliceItem
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEntryPreference.java262 if ((mWifiEntry.getSecurity() != WifiEntry.SECURITY_NONE) in bindFrictionImage()
263 && (mWifiEntry.getSecurity() != WifiEntry.SECURITY_OWE)) { in bindFrictionImage()
287 mWifiEntry.getSecurity() == WifiEntry.SECURITY_NONE in buildContentDescription()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/
DWifiSecurityHelper.java77 public static Integer getSecurity(FragmentActivity context) { in getSecurity() method in WifiSecurityHelper
102 switch (getSecurity(context)) { in getConfig()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConnectionActivity.java182 AccessPoint.getSecurity(wifiEntry))); in onCreate()
183 userChoiceInfo.setWifiSecurity(AccessPoint.getSecurity(wifiEntry)); in onCreate()
DWifiDetailsFragment.java140 && mAccessPoint.getSecurity() == accessPoint.getSecurity()) { in onWifiListChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java129 mIconResource = AccessPoint.SECURITY_NONE == WifiSecurityUtil.getSecurity(scanResult) in ListItem()
213 && WifiSecurityUtil.getSecurity(mScanResult) in equals()
214 == WifiSecurityUtil.getSecurity(li.mScanResult)); in equals()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsHeaderPreferenceController.java89 WifiUtil.isOpenNetwork(getWifiEntry().getSecurity()) in getWifiEntryIcon()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntryPreference.java99 WifiUtil.isOpenNetwork(mWifiEntry.getSecurity()) in getWifiEntryIcon()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java196 final int security = wifiEntry.getSecurity(); in getSecurityString()
487 return isSupportZxing(context, accessPoint.getSecurity()); in isSupportConfiguratorQrCodeGenerator()
DAdbQrCode.java88 if (!SECURITY_ADB.equals(mAdbConfig.getSecurity())) { in AdbQrCode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java1650 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in refreshEapSimSubscription_nonEapSecurity_invisibleEapSimSubscriptionPref()
1656 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_OWE); in refreshEapSimSubscription_nonEapSecurity_invisibleEapSimSubscriptionPref()
1662 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in refreshEapSimSubscription_nonEapSecurity_invisibleEapSimSubscriptionPref()
1668 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_SAE); in refreshEapSimSubscription_nonEapSecurity_invisibleEapSimSubscriptionPref()
1679 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in refreshEapSimSubscription_nonSimEapMethod_invisibleEapSimSubscriptionPref()
1694 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in refreshEapSimSubscription_simEapMethod_visibleEapSimSubscriptionPref()
1709 when(mMockWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_EAP); in refreshEapSimSubscription_unknownCarrierId_noSimEapSimSubscriptionPref()

12