/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
D | TestUtils.java | 113 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/ |
D | NetworkRequestTestCase.java | 88 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 …]
|
D | NetworkSuggestionTestCase.java | 111 private WifiNetworkSuggestion createNetworkSuggestion(@NonNull ScanResult scanResult) { in createNetworkSuggestion() argument 112 mNetworkSuggestionBuilder.setSsid(scanResult.SSID); in createNetworkSuggestion() 114 mNetworkSuggestionBuilder.setBssid(MacAddress.fromString(scanResult.BSSID)); in createNetworkSuggestion() 121 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSuggestion() 123 } else if (TestUtils.isScanResultForWpa3Network(scanResult)) { in createNetworkSuggestion() 127 if (TestUtils.isScanResultForWpa2Network(scanResult)) { in createNetworkSuggestion() 129 } else if (TestUtils.isScanResultForWpa3Network(scanResult)) { in createNetworkSuggestion()
|
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/ |
D | TestBase.java | 304 for (ScanResult scanResult : scanAps()) { in scanForTestAp() 305 if (!scanResult.is80211mcResponder() && !scanResult.is80211azNtbResponder()) { in scanForTestAp() 306 if (scanResult.centerFreq0 < FREQUENCY_OF_5GHZ_BAND_IN_MHZ) { in scanForTestAp() 310 || scanResult.level > sLegacyScanResult.level) { in scanForTestAp() 311 sLegacyScanResult = scanResult; in scanForTestAp() 315 if (scanResult.level < -70) { in scanForTestAp() 318 if (is24Ghz(scanResult.frequency)) { in scanForTestAp() 319 if (scanResult.is80211azNtbResponder()) { in scanForTestAp() 320 ap24Ghz11Az.put(scanResult.BSSID, scanResult); in scanForTestAp() 322 ap24Ghz11Mc.put(scanResult.BSSID, scanResult); in scanForTestAp() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/ble/ |
D | BleScanner.java | 48 public void onScanResult(int callbackType, ScanResult scanResult) { 49 super.onScanResult(callbackType, scanResult); 50 if (scanResult == null) { 55 BluetoothDevice bluetoothDevice = scanResult.getDevice(); 59 byte[] data = scanResult.getScanRecord().getServiceData(Const.PARCEL_UUID); 68 List<ParcelUuid> uuids = scanResult.getScanRecord().getServiceUuids(); 79 scanResult.getRssi());
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ScanResultTest.java | 224 for (ScanResult scanResult : sWifiManager.getScanResults()) { in testScanResultProperties() 225 assertThat(scanResult.toString()).isNotNull(); in testScanResultProperties() 227 for (InformationElement ie : scanResult.getInformationElements()) { in testScanResultProperties() 232 assertThat(scanResult.getWifiStandard()).isAnyOf( in testScanResultProperties() 242 scanResult.isPasspointNetwork(); in testScanResultProperties() 313 ScanResult scanResult = new ScanResult(); in testScanResultConstructors() local 314 scanResult.SSID = TEST_SSID; in testScanResultConstructors() 315 scanResult.setWifiSsid(WifiSsid.fromBytes(TEST_SSID.getBytes(StandardCharsets.UTF_8))); in testScanResultConstructors() 316 scanResult.BSSID = TEST_BSSID; in testScanResultConstructors() 317 scanResult.capabilities = TEST_CAPS; in testScanResultConstructors() [all …]
|
D | WifiScannerTest.java | 170 ScanResult scanResult = new ScanResult(); in testParcelableScanData() local 171 scanResult.SSID = TEST_SSID; in testParcelableScanData() 172 scanResult.setWifiSsid(WifiSsid.fromBytes(TEST_SSID.getBytes(StandardCharsets.UTF_8))); in testParcelableScanData() 173 scanResult.BSSID = TEST_BSSID; in testParcelableScanData() 174 scanResult.capabilities = TEST_CAPS; in testParcelableScanData() 175 scanResult.level = TEST_LEVEL; in testParcelableScanData() 176 scanResult.frequency = TEST_FREQUENCY; in testParcelableScanData() 177 scanResult.timestamp = TEST_TIMESTAMP; in testParcelableScanData() 180 new ScanResult[]{scanResult}); in testParcelableScanData() 188 assertThat(scanResult1.getWifiSsid()).isEqualTo(scanResult.getWifiSsid()); in testParcelableScanData()
|
D | TestHelper.java | 198 public static boolean isMatchedScanResult(ScanResult scanResult, long capabilities) { in isMatchedScanResult() argument 201 scanResult.getWifiStandard() in isMatchedScanResult() 206 && !scanResult.isTwtResponder()) { in isMatchedScanResult() 250 for (ScanResult scanResult : sScanResults) { in findMatchingSavedNetworksWithBssidByBand() 251 if (!isMatchedScanResult(scanResult, capabilities) || bssidSet.contains( in findMatchingSavedNetworksWithBssidByBand() 252 scanResult.BSSID)) { in findMatchingSavedNetworksWithBssidByBand() 257 scanResult.SSID, WifiInfo.sanitizeSsid(network.SSID))) in findMatchingSavedNetworksWithBssidByBand() 263 matchingNetworkCopy.BSSID = scanResult.BSSID; in findMatchingSavedNetworksWithBssidByBand() 264 bssidSet.add(scanResult.BSSID); in findMatchingSavedNetworksWithBssidByBand() 267 scanResult.getBand(), k -> new ArrayList<>()); in findMatchingSavedNetworksWithBssidByBand() [all …]
|
D | WifiManagerTest.java | 4879 ScanResult scanResult = new ScanResult(); in testGetAllWifiConfigForMatchedNetworkSuggestion() local 4880 scanResult.SSID = TEST_SSID; in testGetAllWifiConfigForMatchedNetworkSuggestion() 4881 scanResult.capabilities = TEST_PSK_CAP; in testGetAllWifiConfigForMatchedNetworkSuggestion() 4882 scanResult.BSSID = TEST_BSSID; in testGetAllWifiConfigForMatchedNetworkSuggestion() 4883 List<ScanResult> testList = Arrays.asList(scanResult); in testGetAllWifiConfigForMatchedNetworkSuggestion() 4907 ScanResult scanResult = new ScanResult(); in testGetMatchingScanResults() local 4908 scanResult.SSID = TEST_SSID; in testGetMatchingScanResults() 4909 scanResult.capabilities = TEST_PSK_CAP; in testGetMatchingScanResults() 4910 scanResult.BSSID = TEST_BSSID; in testGetMatchingScanResults() 4916 .getMatchingScanResults(Arrays.asList(suggestion), Arrays.asList(scanResult)); in testGetMatchingScanResults() [all …]
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2020_0018.java | 61 Scanner scanResult = new Scanner(cmdOut).useDelimiter("\\n+"); in testPocCVE_2020_0018() local 62 while (scanResult.hasNext()) { in testPocCVE_2020_0018() 63 String eventEntry = scanResult.nextLine(); in testPocCVE_2020_0018()
|
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/ |
D | MockWifiTest.java | 362 NativeScanResult scanResult = new NativeScanResult(); in getMockNativeResults() local 363 scanResult.ssid = testSsid; in getMockNativeResults() 364 scanResult.bssid = testBssid; in getMockNativeResults() 365 scanResult.infoElement = testInfoElement; in getMockNativeResults() 366 scanResult.frequency = sTestAccessPointFrequency; in getMockNativeResults() 371 scanResult.tsf = (SystemClock.elapsedRealtime() + 4 * 1000) * 1000; in getMockNativeResults() 372 scanResult.capability = testCapability; in getMockNativeResults() 373 scanResult.radioChainInfos = new ArrayList<>(Arrays.asList( in getMockNativeResults() 378 nativeScanResults[0] = scanResult; in getMockNativeResults()
|