Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/java/android/net/wifi/
DBatchedScanResult.java41 public final List<ScanResult> scanResults = new ArrayList<ScanResult>(); field in BatchedScanResult
49 for (ScanResult s : source.scanResults) scanResults.add(new ScanResult(s)); in BatchedScanResult()
59 for (ScanResult s : scanResults) { in toString()
74 dest.writeInt(scanResults.size()); in writeToParcel()
75 for (ScanResult s : scanResults) { in writeToParcel()
88 result.scanResults.add(ScanResult.CREATOR.createFromParcel(in));
DINetworkRequestMatchCallback.aidl34 void onMatch(in List<ScanResult> scanResults); in onMatch() argument
DWifiManager.java1272 @NonNull List<ScanResult> scanResults) { in getAllMatchingWifiConfigs()
1277 scanResults); in getAllMatchingWifiConfigs()
1315 @Nullable List<ScanResult> scanResults) { in getMatchingOsuProviders()
1316 if (scanResults == null) { in getMatchingOsuProviders()
1320 return mService.getMatchingOsuProviders(scanResults); in getMatchingOsuProviders()
1501 void onMatch(@NonNull List<ScanResult> scanResults); in onMatch() argument
1600 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument
1603 + scanResults); in onMatch()
1606 mCallback.onMatch(scanResults); in onMatch()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupEvaluatorTest.java117 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() local
120 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
130 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold() local
133 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold()
143 Set<ScanResult> scanResults = Collections.singleton(savedScanResult); in findViableNetwork_returnsConnectableScanResult() local
145 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResult()
156 Set<ScanResult> scanResults = Sets.newArraySet(savedScanResultLow, savedScanResultHigh); in findViableNetwork_returnsConnectableScanResultWithHighestRssi() local
158 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResultWithHighestRssi()
DCarrierNetworkNotifierTest.java400 List<ScanDetail> scanResults = mCarrierNetworks; in userDismissedNotification_shouldBlacklistNetwork() local
401 mNotificationController.handleScanResults(scanResults); in userDismissedNotification_shouldBlacklistNetwork()
426 List<ScanDetail> scanResults = mCarrierNetworks; in userConnectedNotification_shouldBlacklistNetwork() local
427 mNotificationController.handleScanResults(scanResults); in userConnectedNotification_shouldBlacklistNetwork()
736 List<ScanDetail> scanResults = new ArrayList<>(); in createCarrierScanResults() local
741 scanResults.add(new ScanDetail(scanResult, null /* networkDetail */)); in createCarrierScanResults()
743 return scanResults; in createCarrierScanResults()
749 List<ScanDetail> scanResults = createCarrierScanResults(TEST_SSID_1); in onlyNetworkIsRecommended() local
750 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in onlyNetworkIsRecommended()
752 ScanResult actual = mNotificationController.recommendNetwork(scanResults); in onlyNetworkIsRecommended()
[all …]
DOpenNetworkNotifierTest.java397 List<ScanDetail> scanResults = mOpenNetworks; in userDismissedNotification_shouldBlacklistNetwork() local
398 mNotificationController.handleScanResults(scanResults); in userDismissedNotification_shouldBlacklistNetwork()
423 List<ScanDetail> scanResults = mOpenNetworks; in userConnectedNotification_shouldBlacklistNetwork() local
424 mNotificationController.handleScanResults(scanResults); in userConnectedNotification_shouldBlacklistNetwork()
730 List<ScanDetail> scanResults = new ArrayList<>(); in createOpenScanResults() local
735 scanResults.add(new ScanDetail(scanResult, null /* networkDetail */)); in createOpenScanResults()
737 return scanResults; in createOpenScanResults()
743 List<ScanDetail> scanResults = createOpenScanResults(TEST_SSID_1); in onlyNetworkIsRecommended() local
744 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in onlyNetworkIsRecommended()
746 ScanResult actual = mNotificationController.recommendNetwork(scanResults); in onlyNetworkIsRecommended()
[all …]
DWifiNetworkFactoryTest.java2757 ScanResult[] scanResults = mTestScanDatas[0].getResults(); in setupScanData() local
2758 assertEquals(4, scanResults.length); in setupScanData()
2763 scanResults[0].SSID = ssid1; in setupScanData()
2764 scanResults[0].BSSID = TEST_BSSID_1; in setupScanData()
2765 scanResults[0].capabilities = caps; in setupScanData()
2766 scanResults[0].level = -45; in setupScanData()
2767 scanResults[1].SSID = ssid2; in setupScanData()
2768 scanResults[1].BSSID = TEST_BSSID_2; in setupScanData()
2769 scanResults[1].capabilities = caps; in setupScanData()
2770 scanResults[1].level = -35; in setupScanData()
[all …]
DScoredNetworkEvaluatorTest.java374 ScanResult[] scanResults = new ScanResult[2]; in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork() local
387 scanResults[i] = scanDetails.get(i).getScanResult(); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
397 scanResults[1], candidate); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
647 ScanResult[] scanResults = new ScanResult[2]; in testEvaluateNetworks_chooseActiveEphemeralNetwork() local
661 scanResults[i] = scanDetails.get(i).getScanResult(); in testEvaluateNetworks_chooseActiveEphemeralNetwork()
672 scanResults[1], candidate); in testEvaluateNetworks_chooseActiveEphemeralNetwork()
DScanResults.java44 ScanResult[] scanResults) { in ScanResults() argument
48 mScanResults = scanResults; in ScanResults()
DWifiConnectivityManagerTest.java237 final ScanResult[] scanResults = new ScanResult[1]; in mockWifiScanner() local
238 scanResults[0] = new ScanResult(WifiSsid.createFromAsciiEncoded(CANDIDATE_SSID), in mockWifiScanner()
241 scanResults[0].informationElements = new InformationElement[1]; in mockWifiScanner()
242 scanResults[0].informationElements[0] = new InformationElement(); in mockWifiScanner()
243 scanResults[0].informationElements[0].id = InformationElement.EID_SSID; in mockWifiScanner()
244 scanResults[0].informationElements[0].bytes = in mockWifiScanner()
250 listener.onPnoNetworkFound(scanResults); in mockWifiScanner()
256 listener.onPnoNetworkFound(scanResults); in mockWifiScanner()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java98 ScanResults scanResults = createDummyScanResults(); in startHwDisconnectedPnoScan() local
103 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in startHwDisconnectedPnoScan()
133 ScanResults scanResults = createDummyScanResults(); in ignoreHwDisconnectedPnoScanStopFailure() local
134 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in ignoreHwDisconnectedPnoScanStopFailure()
211 ScanResults scanResults) { in expectSuccessfulHwDisconnectedPnoScan() argument
216 .thenReturn(scanResults.getScanDetailArrayList()); in expectSuccessfulHwDisconnectedPnoScan()
218 .thenReturn(scanResults.getScanDetailArrayList()); in expectSuccessfulHwDisconnectedPnoScan()
224 order.verify(eventHandler).onPnoNetworkFound(scanResults.getRawScanResults()); in expectSuccessfulHwDisconnectedPnoScan()
DWifiScanningServiceTest.java1787 ScanResults scanResults = in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() local
1794 scanResults.getRawScanResults()[0].timestamp = (currentTimeInMillis - 1) * 1000; in doesNotRetrieveStaleScanResultsFromLastFullSingleScan()
1795 scanResults.getRawScanResults()[1].timestamp = (currentTimeInMillis - 2) * 1000; in doesNotRetrieveStaleScanResultsFromLastFullSingleScan()
1796 scanResults.getRawScanResults()[2].timestamp = in doesNotRetrieveStaleScanResultsFromLastFullSingleScan()
1799 add(scanResults.getRawScanResults()[0]); in doesNotRetrieveStaleScanResultsFromLastFullSingleScan()
1800 add(scanResults.getRawScanResults()[1]); in doesNotRetrieveStaleScanResultsFromLastFullSingleScan()
1804 computeSingleScanNativeSettings(requestSettings), scanResults); in doesNotRetrieveStaleScanResultsFromLastFullSingleScan()
2256 ScanResults scanResults = createScanResultsForPno(); in testSuccessfulHwPnoScanWithNoBackgroundScan() local
2260 createPnoSettings(scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan()
2263 expectHwPnoScan(order, handler, requestId, pnoSettings.second, scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupController.java245 List<ScanResult> scanResults = in start() local
247 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in start()
301 private List<ScanResult> filterDfsScanResults(Collection<ScanResult> scanResults) { in filterDfsScanResults() argument
311 return scanResults.stream() in filterDfsScanResults()
362 private void handleScanResults(Collection<ScanResult> scanResults) { in handleScanResults() argument
379 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in handleScanResults()
387 ScanResult network = mWakeupEvaluator.findViableNetwork(scanResults, goodNetworks); in handleScanResults()
398 private static Set<ScanResultMatchInfo> toMatchInfos(Collection<ScanResult> scanResults) { in toMatchInfos() argument
399 return scanResults.stream() in toMatchInfos()
DWakeupEvaluator.java46 public ScanResult findViableNetwork(Collection<ScanResult> scanResults, in findViableNetwork() argument
50 for (ScanResult scanResult : scanResults) { in findViableNetwork()
DScanRequestProxy.java130 ScanResult[] scanResults = scanData.getResults(); in onResults() local
132 Log.d(TAG, "Received " + scanResults.length + " scan results"); in onResults()
138 mLastScanResults.addAll(Arrays.asList(scanResults)); in onResults()
DWifiNetworkFactory.java231 ScanResult[] scanResults = scanData.getResults(); in onResults() local
233 Log.v(TAG, "Received " + scanResults.length + " scan results"); in onResults()
235 if (!handleScanResultsAndTriggerConnectIfUserApprovedMatchFound(scanResults)) { in onResults()
1115 ScanResult[] scanResults) { in getNetworksMatchingActiveNetworkRequest() argument
1123 for (ScanResult scanResult : scanResults) { in getNetworksMatchingActiveNetworkRequest()
1335 ScanResult[] scanResults) { in handleScanResultsAndTriggerConnectIfUserApprovedMatchFound() argument
1337 getNetworksMatchingActiveNetworkRequest(scanResults); in handleScanResultsAndTriggerConnectIfUserApprovedMatchFound()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java80 ArrayList<ScanResult> scanResults = buildScanResultCache(); in testVerboseSummaryString_showsScanResultSpeedLabel() local
82 scanResults.toArray(new Parcelable[0])); in testVerboseSummaryString_showsScanResultSpeedLabel()
91 String summary = WifiUtils.verboseScanResultSummary(ap, scanResults.get(0), null, 0); in testVerboseSummaryString_showsScanResultSpeedLabel()
152 ArrayList<ScanResult> scanResults = new ArrayList<>(); in buildScanResultCache() local
155 scanResults.add(scanResult); in buildScanResultCache()
157 return scanResults; in buildScanResultCache()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java170 public static void dumpScanResults(PrintWriter pw, List<ScanResult> scanResults, long nowMs) { in dumpScanResults() argument
171 if (scanResults != null && scanResults.size() != 0) { in dumpScanResults()
174 for (ScanResult r : scanResults) { in dumpScanResults()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java720 List<ScanResult> scanResults, in getCachedOrCreate() argument
723 AccessPoint.getKey(mContext, scanResults.get(0))); in getCachedOrCreate()
725 accessPoint = new AccessPoint(mContext, scanResults); in getCachedOrCreate()
727 accessPoint.setScanResults(scanResults); in getCachedOrCreate()
749 List<ScanResult> scanResults, in getCachedOrCreateOsu() argument
753 accessPoint = new AccessPoint(mContext, provider, scanResults); in getCachedOrCreateOsu()
755 accessPoint.setScanResults(scanResults); in getCachedOrCreateOsu()
1104 private List<ScanResult> filterScanResultsByCapabilities(List<ScanResult> scanResults) { in filterScanResultsByCapabilities() argument
1105 if (scanResults == null) { in filterScanResultsByCapabilities()
1118 for (ScanResult scanResult : scanResults) { in filterScanResultsByCapabilities()
DTestAccessPointBuilder.java239 public TestAccessPointBuilder setScanResults(ArrayList<ScanResult> scanResults) { in setScanResults() argument
240 mScanResults = scanResults; in setScanResults()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvisioner.java257 List<ScanResult> scanResults = mWifiManager.getScanResults(); in startProvisioning() local
258 mOsuProvider = getBestMatchingOsuProvider(scanResults, mOsuProvider); in startProvisioning()
987 List<ScanResult> scanResults, in getBestMatchingOsuProvider() argument
989 if (scanResults == null) { in getBestMatchingOsuProvider()
1004 scanResults = scanResults.stream() in getBestMatchingOsuProvider()
1009 for (ScanResult scanResult : scanResults) { in getBestMatchingOsuProvider()
DPasspointManager.java936 List<ScanResult> scanResults) { in getAllMatchingFqdnsForScanResults() argument
937 if (scanResults == null) { in getAllMatchingFqdnsForScanResults()
943 for (ScanResult scanResult : scanResults) { in getAllMatchingFqdnsForScanResults()
980 List<ScanResult> scanResults) { in getMatchingOsuProviders() argument
981 if (scanResults == null) { in getMatchingOsuProviders()
987 for (ScanResult scanResult : scanResults) { in getMatchingOsuProviders()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java488 List<android.net.wifi.ScanResult> scanResults = mWifiManager.getScanResults(); in onReceive() local
491 Log.i(LOG_TAG, "Wifi scan results: " + TextUtils.join("\n", scanResults)); in onReceive()
494 for (int i = 0; i < scanResults.size(); i++) { in onReceive()
495 onDeviceFound(DeviceFilterPair.findMatch(scanResults.get(i), mWifiFilters)); in onReceive()
/frameworks/base/wifi/java/com/android/server/wifi/
DBaseWifiService.java94 List<ScanResult> scanResults) { in getAllMatchingFqdnsForScanResults() argument
100 List<ScanResult> scanResults) { in getMatchingOsuProviders() argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisionerTest.java470 List<ScanResult> scanResults = new ArrayList<>(); in verifySelectBestOsuProviderForProvisioning() local
478 scanResults.add(scanResult); in verifySelectBestOsuProviderForProvisioning()
486 scanResults.add(scanResult2); in verifySelectBestOsuProviderForProvisioning()
494 scanResults.add(scanResult3); in verifySelectBestOsuProviderForProvisioning()
496 when(mWifiManager.getScanResults()).thenReturn(scanResults); in verifySelectBestOsuProviderForProvisioning()

12