Home
last modified time | relevance | path

Searched refs:scanResults (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeScanTest.java127 Collection<ScanResult> scanResults = scan(); in basicBleScan() local
129 Log.d(TAG, "scan result size:" + scanResults.size()); in basicBleScan()
130 assertTrue("Scan results shouldn't be empty", !scanResults.isEmpty()); in basicBleScan()
131 verifyTimestamp(scanResults, scanStartMillis, scanEndMillis); in basicBleScan()
161 Collection<ScanResult> scanResults = filterLeScanCallback.getScanResults(); in scanFilter() local
162 for (ScanResult result : scanResults) { in scanFilter()
183 Collection<ScanResult> scanResults = filterLeScanCallback.getScanResults(); in scanFromSourceWithoutFilters() local
184 Log.d(TAG, "scan result size " + scanResults.size()); in scanFromSourceWithoutFilters()
185 assertTrue("scan results should not be empty", !scanResults.isEmpty()); in scanFromSourceWithoutFilters()
207 Collection<ScanResult> scanResults = filterLeScanCallback.getScanResults(); in scanFromSourceWithFilters() local
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java377 private static ScanResult getRandomScanResult(Collection<ScanResult> scanResults) { in getRandomScanResult() argument
378 if (scanResults.isEmpty()) { in getRandomScanResult()
381 int index = new Random().nextInt(scanResults.size()); in getRandomScanResult()
382 return new ArrayList<>(scanResults).get(index); in getRandomScanResult()
384 private static ScanResult getHighestRssiScanResult(Collection<ScanResult> scanResults) { in getHighestRssiScanResult() argument
385 if (scanResults.isEmpty()) { in getHighestRssiScanResult()
388 return scanResults.stream().max(Comparator.comparingInt(a -> a.level)).get(); in getHighestRssiScanResult()
DWifiRttTest.java542 List<ScanResult> scanResults = new ArrayList<>(); in testRequestTooLarge() local
544 scanResults.add(testAp); in testRequestTooLarge()
546 builder.addAccessPoints(scanResults); in testRequestTooLarge()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java163 List<ScanResult> scanResults = mWifiManager.getScanResults(); in startScanAndFindAnyMatchingNetworkInResults() local
164 for (ScanResult scanResult : scanResults) { in startScanAndFindAnyMatchingNetworkInResults()
185 List<ScanResult> scanResults = mWifiManager.getScanResults(); in findNetworkInScanResultsResults() local
186 for (ScanResult scanResult : scanResults) { in findNetworkInScanResultsResults()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java418 public void onScanResultsAvailable(List<ScanResult> scanResults) { in testMockPnoScanResultsOnMockWifi()
419 mScanResults.set(scanResults); in testMockPnoScanResultsOnMockWifi()
533 List<ScanResult> scanResults = sWifiManager.getScanResults(); in testZeroLengthSubElementIEOnMockWifi()
534 if (scanResults.size() == 0) { in testZeroLengthSubElementIEOnMockWifi()
537 return (scanResults.get(0).getWifiSsid().equals( in testZeroLengthSubElementIEOnMockWifi()
539 && MacAddress.fromString(scanResults.get(0).BSSID).equals( in testZeroLengthSubElementIEOnMockWifi()
541 && scanResults.get(0).frequency == mockScanData[0].getFrequencyMhz() in testZeroLengthSubElementIEOnMockWifi()
542 && (scanResults.get(0).getApMloLinkId() == -1) in testZeroLengthSubElementIEOnMockWifi()
543 && (scanResults.get(0).getApMldMacAddress() == null)); in testZeroLengthSubElementIEOnMockWifi()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DScanResultTest.java290 List<ScanResult> scanResults = sWifiManager.getScanResults(); in testScanResultTimeStamp() local
291 for (ScanResult result : scanResults) { in testScanResultTimeStamp()
300 scanResults = sWifiManager.getScanResults(); in testScanResultTimeStamp()
301 for (ScanResult result : scanResults) { in testScanResultTimeStamp()
347 final List<ScanResult> scanResults = sWifiManager.getScanResults(); in testScanResultMatchesWifiInfo() local
348 currentNetwork = scanResults.stream().filter(r -> r.BSSID.equals(wifiInfo.getBSSID())) in testScanResultMatchesWifiInfo()
DTestHelper.java749 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument
756 matchedScanResults = scanResults; in onMatch()
DWifiManagerTest.java1536 public void onScanResultsAvailable(List<ScanResult> scanResults) { in onScanResultsAvailable() argument
1537 mScanResults = scanResults; in onScanResultsAvailable()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt452 val results = wifiManager.scanResults in nativeNoteOp()