Searched refs:scanResult (Results 1 – 8 of 8) sorted by relevance
113 public static boolean isScanResultForOpenNetwork(@NonNull ScanResult scanResult) { in isScanResultForOpenNetwork() argument114 String capabilities = scanResult.capabilities; in isScanResultForOpenNetwork()123 public static boolean isScanResultForWpa2Network(@NonNull ScanResult scanResult) { in isScanResultForWpa2Network() argument124 String capabilities = scanResult.capabilities; in isScanResultForWpa2Network()131 public static boolean isScanResultForWpa3Network(@NonNull ScanResult scanResult) { in isScanResultForWpa3Network() argument132 String capabilities = scanResult.capabilities; in isScanResultForWpa3Network()137 ScanResult scanResult, @ScanResultType int type) { in doesScanResultMatchType() argument140 return isScanResultForOpenNetwork(scanResult); in doesScanResultMatchType()142 return isScanResultForWpa2Network(scanResult) in doesScanResultMatchType()143 || isScanResultForWpa3Network(scanResult); in doesScanResultMatchType()[all …]
88 private NetworkSpecifier createNetworkSpecifier(@NonNull ScanResult scanResult) in createNetworkSpecifier() argument93 configBuilder.setSsid(scanResult.SSID); in createNetworkSpecifier()94 configBuilder.setBssid(MacAddress.fromString(scanResult.BSSID)); in createNetworkSpecifier()96 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSpecifier()98 } else if (TestUtils.isScanResultForWpa3Network(scanResult)) { in createNetworkSpecifier()104 String ssidPrefix = scanResult.SSID.substring(0, scanResult.SSID.length() - 1); in createNetworkSpecifier()108 configBuilder.setBssidPattern(MacAddress.fromString(scanResult.BSSID), bssidMask); in createNetworkSpecifier()110 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSpecifier()112 } else if (TestUtils.isScanResultForWpa3Network(scanResult)) { in createNetworkSpecifier()128 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSpecifier()[all …]
112 private WifiNetworkSuggestion createNetworkSuggestion(@NonNull ScanResult scanResult) { in createNetworkSuggestion() argument113 mNetworkSuggestionBuilder.setSsid(scanResult.SSID); in createNetworkSuggestion()115 mNetworkSuggestionBuilder.setBssid(MacAddress.fromString(scanResult.BSSID)); in createNetworkSuggestion()122 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSuggestion()124 } else if (TestUtils.isScanResultForWpa3Network(scanResult)) { in createNetworkSuggestion()128 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSuggestion()130 } else if (TestUtils.isScanResultForWpa3Network(scanResult)) { in createNetworkSuggestion()
189 for (ScanResult scanResult : mWifiManager.getScanResults()) { in testScanResultProperties()190 assertThat(scanResult.toString()).isNotNull(); in testScanResultProperties()192 for (InformationElement ie : scanResult.getInformationElements()) { in testScanResultProperties()197 assertThat(scanResult.getWifiStandard()).isAnyOf( in testScanResultProperties()205 scanResult.isPasspointNetwork(); in testScanResultProperties()284 ScanResult scanResult = new ScanResult(); in testScanResultConstructors() local285 scanResult.SSID = TEST_SSID; in testScanResultConstructors()286 scanResult.BSSID = TEST_BSSID; in testScanResultConstructors()287 scanResult.capabilities = TEST_CAPS; in testScanResultConstructors()288 scanResult.level = TEST_LEVEL; in testScanResultConstructors()[all …]
150 for (ScanResult scanResult : scanResults) { in findMatchingSavedNetworksWithBssid()153 scanResult.SSID, WifiInfo.sanitizeSsid(network.SSID))) in findMatchingSavedNetworksWithBssid()159 matchingNetworkCopy.BSSID = scanResult.BSSID; in findMatchingSavedNetworksWithBssid()
3812 ScanResult scanResult = new ScanResult(); in testGetAllWifiConfigForMatchedNetworkSuggestion() local3813 scanResult.SSID = TEST_SSID; in testGetAllWifiConfigForMatchedNetworkSuggestion()3814 scanResult.capabilities = TEST_PSK_CAP; in testGetAllWifiConfigForMatchedNetworkSuggestion()3815 scanResult.BSSID = TEST_BSSID; in testGetAllWifiConfigForMatchedNetworkSuggestion()3816 List<ScanResult> testList = Arrays.asList(scanResult); in testGetAllWifiConfigForMatchedNetworkSuggestion()3843 ScanResult scanResult = new ScanResult(); in testGetMatchingScanResults() local3844 scanResult.SSID = TEST_SSID; in testGetMatchingScanResults()3845 scanResult.capabilities = TEST_PSK_CAP; in testGetMatchingScanResults()3846 scanResult.BSSID = TEST_BSSID; in testGetMatchingScanResults()3852 .getMatchingScanResults(Arrays.asList(suggestion), Arrays.asList(scanResult)); in testGetMatchingScanResults()[all …]
256 for (ScanResult scanResult : scanAps()) { in scanForTest11mcCapableAp()257 if (!scanResult.is80211mcResponder()) { in scanForTest11mcCapableAp()260 if (bestTestAp == null || scanResult.level > bestTestAp.level) { in scanForTest11mcCapableAp()261 bestTestAp = scanResult; in scanForTest11mcCapableAp()287 for (ScanResult scanResult : scanAps()) { in scanForTestNon11mcCapableAp()289 if (scanResult.is80211mcResponder() in scanForTestNon11mcCapableAp()290 || scanResult.centerFreq0 < FREQUENCY_OF_5GHZ_BAND_IN_MHZ) { in scanForTestNon11mcCapableAp()293 if (bestTestAp == null || scanResult.level > bestTestAp.level) { in scanForTestNon11mcCapableAp()294 bestTestAp = scanResult; in scanForTestNon11mcCapableAp()
57 Scanner scanResult = new Scanner(cmdOut).useDelimiter("\\n+"); in testPocCVE_2020_0018() local58 while (scanResult.hasNext()) { in testPocCVE_2020_0018()59 String eventEntry = scanResult.nextLine(); in testPocCVE_2020_0018()