/frameworks/base/wifi/java/android/net/wifi/ |
D | BatchedScanResult.java | 41 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));
|
D | INetworkRequestMatchCallback.aidl | 34 void onMatch(in List<ScanResult> scanResults); in onMatch() argument
|
D | WifiManager.java | 1240 @NonNull List<ScanResult> scanResults) { in getAllMatchingWifiConfigs() 1245 scanResults); in getAllMatchingWifiConfigs() 1283 @Nullable List<ScanResult> scanResults) { in getMatchingOsuProviders() 1284 if (scanResults == null) { in getMatchingOsuProviders() 1288 return mService.getMatchingOsuProviders(scanResults); in getMatchingOsuProviders() 1469 void onMatch(@NonNull List<ScanResult> scanResults); in onMatch() argument 1568 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument 1571 + scanResults); in onMatch() 1574 mCallback.onMatch(scanResults); in onMatch()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WakeupEvaluatorTest.java | 117 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()
|
D | OpenNetworkNotifierTest.java | 397 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 …]
|
D | CarrierNetworkNotifierTest.java | 400 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 …]
|
D | WifiNetworkFactoryTest.java | 2491 ScanResult[] scanResults = mTestScanDatas[0].getResults(); in setupScanData() local 2492 assertEquals(4, scanResults.length); in setupScanData() 2497 scanResults[0].SSID = ssid1; in setupScanData() 2498 scanResults[0].BSSID = TEST_BSSID_1; in setupScanData() 2499 scanResults[0].capabilities = caps; in setupScanData() 2500 scanResults[0].level = -45; in setupScanData() 2501 scanResults[1].SSID = ssid2; in setupScanData() 2502 scanResults[1].BSSID = TEST_BSSID_2; in setupScanData() 2503 scanResults[1].capabilities = caps; in setupScanData() 2504 scanResults[1].level = -35; in setupScanData() [all …]
|
D | ScoredNetworkEvaluatorTest.java | 374 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()
|
D | ScanResults.java | 44 ScanResult[] scanResults) { in ScanResults() argument 48 mScanResults = scanResults; in ScanResults()
|
D | WifiConnectivityManagerTest.java | 232 final ScanResult[] scanResults = new ScanResult[1]; in mockWifiScanner() local 233 scanResults[0] = new ScanResult(WifiSsid.createFromAsciiEncoded(CANDIDATE_SSID), in mockWifiScanner() 236 scanResults[0].informationElements = new InformationElement[1]; in mockWifiScanner() 237 scanResults[0].informationElements[0] = new InformationElement(); in mockWifiScanner() 238 scanResults[0].informationElements[0].id = InformationElement.EID_SSID; in mockWifiScanner() 239 scanResults[0].informationElements[0].bytes = in mockWifiScanner() 245 listener.onPnoNetworkFound(scanResults); in mockWifiScanner() 251 listener.onPnoNetworkFound(scanResults); in mockWifiScanner()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondPnoScannerTest.java | 98 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()
|
D | WifiScanningServiceTest.java | 1787 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/ |
D | WakeupController.java | 245 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()
|
D | WakeupEvaluator.java | 46 public ScanResult findViableNetwork(Collection<ScanResult> scanResults, in findViableNetwork() argument 50 for (ScanResult scanResult : scanResults) { in findViableNetwork()
|
D | ScanRequestProxy.java | 130 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()
|
D | WifiNetworkFactory.java | 225 ScanResult[] scanResults = scanData.getResults(); in onResults() local 227 Log.v(TAG, "Received " + scanResults.length + " scan results"); in onResults() 230 getNetworksMatchingActiveNetworkRequest(scanResults); in onResults() 1088 ScanResult[] scanResults) { in getNetworksMatchingActiveNetworkRequest() argument 1096 for (ScanResult scanResult : scanResults) { in getNetworksMatchingActiveNetworkRequest()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiUtilsTest.java | 80 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/ |
D | ScanResultUtil.java | 170 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/ |
D | WifiTracker.java | 702 List<ScanResult> scanResults, in getCachedOrCreate() argument 704 AccessPoint accessPoint = getCachedByKey(cache, AccessPoint.getKey(scanResults.get(0))); in getCachedOrCreate() 706 accessPoint = new AccessPoint(mContext, scanResults); in getCachedOrCreate() 708 accessPoint.setScanResults(scanResults); in getCachedOrCreate() 730 List<ScanResult> scanResults, in getCachedOrCreateOsu() argument 734 accessPoint = new AccessPoint(mContext, provider, scanResults); in getCachedOrCreateOsu() 736 accessPoint.setScanResults(scanResults); in getCachedOrCreateOsu() 1085 private List<ScanResult> filterScanResultsByCapabilities(List<ScanResult> scanResults) { in filterScanResultsByCapabilities() argument 1086 if (scanResults == null) { in filterScanResultsByCapabilities() 1099 for (ScanResult scanResult : scanResults) { in filterScanResultsByCapabilities()
|
D | TestAccessPointBuilder.java | 239 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/ |
D | PasspointProvisioner.java | 257 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()
|
D | PasspointManager.java | 879 List<ScanResult> scanResults) { in getAllMatchingFqdnsForScanResults() argument 880 if (scanResults == null) { in getAllMatchingFqdnsForScanResults() 886 for (ScanResult scanResult : scanResults) { in getAllMatchingFqdnsForScanResults() 923 List<ScanResult> scanResults) { in getMatchingOsuProviders() argument 924 if (scanResults == null) { in getMatchingOsuProviders() 930 for (ScanResult scanResult : scanResults) { in getMatchingOsuProviders()
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | DeviceDiscoveryService.java | 488 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/ |
D | BaseWifiService.java | 94 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/ |
D | PasspointProvisionerTest.java | 471 List<ScanResult> scanResults = new ArrayList<>(); in verifySelectBestOsuProviderForProvisioning() local 479 scanResults.add(scanResult); in verifySelectBestOsuProviderForProvisioning() 487 scanResults.add(scanResult2); in verifySelectBestOsuProviderForProvisioning() 495 scanResults.add(scanResult3); in verifySelectBestOsuProviderForProvisioning() 497 when(mWifiManager.getScanResults()).thenReturn(scanResults); in verifySelectBestOsuProviderForProvisioning()
|