Home
last modified time | relevance | path

Searched refs:scanResult (Results 1 – 8 of 8) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java113 public static boolean isScanResultForOpenNetwork(@NonNull ScanResult scanResult) { in isScanResultForOpenNetwork() argument
114 String capabilities = scanResult.capabilities; in isScanResultForOpenNetwork()
123 public static boolean isScanResultForWpa2Network(@NonNull ScanResult scanResult) { in isScanResultForWpa2Network() argument
124 String capabilities = scanResult.capabilities; in isScanResultForWpa2Network()
131 public static boolean isScanResultForWpa3Network(@NonNull ScanResult scanResult) { in isScanResultForWpa3Network() argument
132 String capabilities = scanResult.capabilities; in isScanResultForWpa3Network()
137 ScanResult scanResult, @ScanResultType int type) { in doesScanResultMatchType() argument
140 return isScanResultForOpenNetwork(scanResult); in doesScanResultMatchType()
142 return isScanResultForWpa2Network(scanResult) in doesScanResultMatchType()
143 || isScanResultForWpa3Network(scanResult); in doesScanResultMatchType()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkRequestTestCase.java88 private NetworkSpecifier createNetworkSpecifier(@NonNull ScanResult scanResult) in createNetworkSpecifier() argument
93 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 …]
DNetworkSuggestionTestCase.java112 private WifiNetworkSuggestion createNetworkSuggestion(@NonNull ScanResult scanResult) { in createNetworkSuggestion() argument
113 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()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DScanResultTest.java189 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() local
285 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 …]
DTestHelper.java150 for (ScanResult scanResult : scanResults) { in findMatchingSavedNetworksWithBssid()
153 scanResult.SSID, WifiInfo.sanitizeSsid(network.SSID))) in findMatchingSavedNetworksWithBssid()
159 matchingNetworkCopy.BSSID = scanResult.BSSID; in findMatchingSavedNetworksWithBssid()
DWifiManagerTest.java3812 ScanResult scanResult = new ScanResult(); in testGetAllWifiConfigForMatchedNetworkSuggestion() local
3813 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() local
3844 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 …]
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java256 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()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2020_0018.java57 Scanner scanResult = new Scanner(cmdOut).useDelimiter("\\n+"); in testPocCVE_2020_0018() local
58 while (scanResult.hasNext()) { in testPocCVE_2020_0018()
59 String eventEntry = scanResult.nextLine(); in testPocCVE_2020_0018()