Searched refs:scanResults (Results 1 – 9 of 9) sorted by relevance
127 Collection<ScanResult> scanResults = scan(); in basicBleScan() local129 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() local162 for (ScanResult result : scanResults) { in scanFilter()183 Collection<ScanResult> scanResults = filterLeScanCallback.getScanResults(); in scanFromSourceWithoutFilters() local184 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 …]
377 private static ScanResult getRandomScanResult(Collection<ScanResult> scanResults) { in getRandomScanResult() argument378 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() argument385 if (scanResults.isEmpty()) { in getHighestRssiScanResult()388 return scanResults.stream().max(Comparator.comparingInt(a -> a.level)).get(); in getHighestRssiScanResult()
542 List<ScanResult> scanResults = new ArrayList<>(); in testRequestTooLarge() local544 scanResults.add(testAp); in testRequestTooLarge()546 builder.addAccessPoints(scanResults); in testRequestTooLarge()
163 List<ScanResult> scanResults = mWifiManager.getScanResults(); in startScanAndFindAnyMatchingNetworkInResults() local164 for (ScanResult scanResult : scanResults) { in startScanAndFindAnyMatchingNetworkInResults()185 List<ScanResult> scanResults = mWifiManager.getScanResults(); in findNetworkInScanResultsResults() local186 for (ScanResult scanResult : scanResults) { in findNetworkInScanResultsResults()
418 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()
290 List<ScanResult> scanResults = sWifiManager.getScanResults(); in testScanResultTimeStamp() local291 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() local348 currentNetwork = scanResults.stream().filter(r -> r.BSSID.equals(wifiInfo.getBSSID())) in testScanResultMatchesWifiInfo()
749 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument756 matchedScanResults = scanResults; in onMatch()
1536 public void onScanResultsAvailable(List<ScanResult> scanResults) { in onScanResultsAvailable() argument1537 mScanResults = scanResults; in onScanResultsAvailable()
452 val results = wifiManager.scanResults in nativeNoteOp()