/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | NetworkRequestDialogActivityTest.java | 171 final List<ScanResult> scanResults = new ArrayList<>(); in specifiedSsid_onMatch_shouldShowDialogFragment() local 172 scanResults.add(getScanResult(TEST_SSID, TEST_CAPABILITY)); in specifiedSsid_onMatch_shouldShowDialogFragment() 174 mActivity.onMatch(scanResults); in specifiedSsid_onMatch_shouldShowDialogFragment() 195 final List<ScanResult> scanResults = new ArrayList<>(); in onUserSelectionConnectFailure_shouldShowDialogFragment() local 196 scanResults.add(getScanResult(TEST_SSID, TEST_CAPABILITY)); in onUserSelectionConnectFailure_shouldShowDialogFragment() 197 mActivity.onMatch(scanResults); in onUserSelectionConnectFailure_shouldShowDialogFragment() 210 final List<ScanResult> scanResults = new ArrayList<>(); in onClickConnectButton_shouldShowProgressDialog() local 211 scanResults.add(getScanResult(TEST_SSID, TEST_CAPABILITY)); in onClickConnectButton_shouldShowProgressDialog() 212 mActivity.onMatch(scanResults); in onClickConnectButton_shouldShowProgressDialog() 224 final List<ScanResult> scanResults = new ArrayList<>(); in onCancel_shouldCloseAllUI() local [all …]
|
D | NetworkRequestDialogFragmentTest.java | 141 final List<ScanResult> scanResults = new ArrayList<>(); in onWifiStateChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() local 142 networkRequestDialogFragment.mMatchedScanResults = scanResults; in onWifiStateChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() 145 networkRequestDialogFragment.onMatch(scanResults); in onWifiStateChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() 155 final List<ScanResult> scanResults = new ArrayList<>(); in onWifiEntriesChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() local 156 networkRequestDialogFragment.mMatchedScanResults = scanResults; in onWifiEntriesChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() 159 networkRequestDialogFragment.onMatch(scanResults); in onWifiEntriesChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() 221 final List<ScanResult> scanResults = new ArrayList<>(); in onMatchManyResult_showNeutralButton() local 226 scanResults.add(scanResult); in onMatchManyResult_showNeutralButton() 228 networkRequestDialogFragment.onMatch(scanResults); in onMatchManyResult_showNeutralButton() 241 final List<ScanResult> scanResults = new ArrayList<>(); in clickNeutralButton_hideNeutralButton() local [all …]
|
/packages/modules/Wifi/framework/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));
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | OpenNetworkNotifierTest.java | 405 List<ScanDetail> scanResults = mOpenNetworks; in userDismissedNotification_shouldBlacklistNetwork() local 406 mNotificationController.handleScanResults(scanResults); in userDismissedNotification_shouldBlacklistNetwork() 431 List<ScanDetail> scanResults = mOpenNetworks; in userConnectedNotification_shouldBlacklistNetwork() local 432 mNotificationController.handleScanResults(scanResults); in userConnectedNotification_shouldBlacklistNetwork() 740 List<ScanDetail> scanResults = new ArrayList<>(); in createOpenScanResults() local 745 scanResults.add(new ScanDetail(scanResult, null /* networkDetail */)); in createOpenScanResults() 747 return scanResults; in createOpenScanResults() 753 List<ScanDetail> scanResults = createOpenScanResults(TEST_SSID_1); in onlyNetworkIsRecommended() local 754 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in onlyNetworkIsRecommended() 756 ScanResult actual = mNotificationController.recommendNetwork(scanResults); in onlyNetworkIsRecommended() [all …]
|
D | WakeupEvaluatorTest.java | 159 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() local 162 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() 172 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold() local 175 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold() 185 Set<ScanResult> scanResults = Collections.singleton(savedScanResult); in findViableNetwork_returnsConnectableScanResult() local 187 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResult() 198 Set<ScanResult> scanResults = Sets.newArraySet(savedScanResultLow, savedScanResultHigh); in findViableNetwork_returnsConnectableScanResultWithHighestRssi() local 200 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResultWithHighestRssi()
|
D | WifiNetworkFactoryTest.java | 3509 ScanResult[] scanResults = testScanDatas[0].getResults(); in setupScanData() local 3510 assertEquals(4, scanResults.length); in setupScanData() 3515 scanResults[0].SSID = ssid1; in setupScanData() 3516 scanResults[0].wifiSsid = WifiSsid.createFromAsciiEncoded(ssid1); in setupScanData() 3517 scanResults[0].BSSID = TEST_BSSID_1; in setupScanData() 3518 scanResults[0].capabilities = caps; in setupScanData() 3519 scanResults[0].level = -45; in setupScanData() 3520 scanResults[1].SSID = ssid2; in setupScanData() 3521 scanResults[1].wifiSsid = WifiSsid.createFromAsciiEncoded(ssid2); in setupScanData() 3522 scanResults[1].BSSID = TEST_BSSID_2; in setupScanData() [all …]
|
D | ScanResults.java | 45 ScanResult[] scanResults) { in ScanResults() argument 49 mScanResults = scanResults; in ScanResults()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondPnoScannerTest.java | 100 ScanResults scanResults = createDummyScanResults(); in startHwDisconnectedPnoScan() local 105 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in startHwDisconnectedPnoScan() 157 ScanResults scanResults = createDummyScanResults(); in ignoreHwDisconnectedPnoScanStopFailure() local 158 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in ignoreHwDisconnectedPnoScanStopFailure() 237 ScanResults scanResults) { in expectSuccessfulHwDisconnectedPnoScan() argument 242 .thenReturn(scanResults.getScanDetailArrayList()); in expectSuccessfulHwDisconnectedPnoScan() 244 .thenReturn(scanResults.getScanDetailArrayList()); in expectSuccessfulHwDisconnectedPnoScan() 250 order.verify(eventHandler).onPnoNetworkFound(scanResults.getRawScanResults()); in expectSuccessfulHwDisconnectedPnoScan()
|
D | WifiScanningServiceTest.java | 2067 ScanResults scanResults = in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() local 2074 scanResults.getRawScanResults()[0].timestamp = (currentTimeInMillis - 1) * 1000; in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() 2075 scanResults.getRawScanResults()[1].timestamp = (currentTimeInMillis - 2) * 1000; in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() 2076 scanResults.getRawScanResults()[2].timestamp = in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() 2079 add(scanResults.getRawScanResults()[0]); in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() 2080 add(scanResults.getRawScanResults()[1]); in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() 2084 computeSingleScanNativeSettings(requestSettings), scanResults); in doesNotRetrieveStaleScanResultsFromLastFullSingleScan() 2572 ScanResults scanResults = createScanResultsForPno(); in testSuccessfulHwPnoScanWithNoBackgroundScan() local 2576 createPnoSettings(scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan() 2579 expectHwPnoScan(order, handler, requestId, pnoSettings.second, scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WakeupController.java | 277 List<ScanResult> scanResults = filterDfsScanResults( in start() local 280 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in start() 337 private List<ScanResult> filterDfsScanResults(Collection<ScanResult> scanResults) { in filterDfsScanResults() argument 347 return scanResults.stream() in filterDfsScanResults() 396 private void handleScanResults(Collection<ScanResult> scanResults) { in handleScanResults() argument 413 Set<ScanResultMatchInfo> matchInfos = toMatchInfos(scanResults); in handleScanResults() 421 ScanResult network = mWakeupEvaluator.findViableNetwork(scanResults, goodNetworks); in handleScanResults() 432 private static Set<ScanResultMatchInfo> toMatchInfos(Collection<ScanResult> scanResults) { in toMatchInfos() argument 433 return scanResults.stream() in toMatchInfos()
|
D | BaseWifiService.java | 106 List<ScanResult> scanResults) { in getAllMatchingFqdnsForScanResults() argument 112 List<ScanResult> scanResults) { in getMatchingOsuProviders() argument 695 List<ScanResult> scanResults) { in getWifiConfigForMatchedNetworkSuggestionsSharedWithUser() argument 713 List<ScanResult> scanResults, in getMatchingScanResults() argument 730 getAllMatchingPasspointProfilesForScanResults(List<ScanResult> scanResults) { in getAllMatchingPasspointProfilesForScanResults() argument
|
D | WakeupEvaluator.java | 46 public ScanResult findViableNetwork(Collection<ScanResult> scanResults, in findViableNetwork() argument 50 for (ScanResult scanResult : scanResults) { in findViableNetwork()
|
D | WifiNetworkSuggestionsManager.java | 1806 List<ScanResult> scanResults) { in getWifiConfigForMatchedNetworkSuggestionsSharedWithUser() argument 1817 for (ScanResult scanResult : scanResults) { in getWifiConfigForMatchedNetworkSuggestionsSharedWithUser() 2330 @NonNull List<ScanResult> scanResults) { in getMatchingScanResults() argument 2333 || scanResults == null || scanResults.isEmpty()) { in getMatchingScanResults() 2341 getMatchingScanResultsForSuggestion(suggestion, scanResults)); in getMatchingScanResults() 2348 List<ScanResult> scanResults) { in getMatchingScanResultsForSuggestion() argument 2351 suggestion.passpointConfiguration, scanResults); in getMatchingScanResultsForSuggestion() 2353 return getMatchingScanResults(suggestion.wifiConfiguration, scanResults); in getMatchingScanResultsForSuggestion() 2366 @NonNull List<ScanResult> scanResults) { in getMatchingScanResults() argument 2373 for (ScanResult scanResult : scanResults) { in getMatchingScanResults() [all …]
|
D | WifiNetworkFactory.java | 260 ScanResult[] scanResults = scanData.getResults(); in onResults() local 262 Log.v(TAG, "Received " + scanResults.length + " scan results"); in onResults() 264 handleScanResults(scanResults); in onResults() 1442 ScanResult[] scanResults) { in getNetworksMatchingActiveNetworkRequest() argument 1450 for (ScanResult scanResult : scanResults) { in getNetworksMatchingActiveNetworkRequest() 1732 private void handleScanResults(ScanResult[] scanResults) { in handleScanResults() argument 1734 getNetworksMatchingActiveNetworkRequest(scanResults); in handleScanResults()
|
D | ScanRequestProxy.java | 145 ScanResult[] scanResults = scanData.getResults(); in onResults() local 147 Log.d(TAG, "Received " + scanResults.length + " scan results"); in onResults() 153 Arrays.stream(scanResults).forEach(s -> mLastScanResultsMap.put(s.BSSID, s)); in onResults()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ScanResultUtil.java | 404 public static void dumpScanResults(PrintWriter pw, List<ScanResult> scanResults, long nowMs) { in dumpScanResults() argument 405 if (scanResults != null && scanResults.size() != 0) { in dumpScanResults() 408 for (ScanResult r : scanResults) { in dumpScanResults() 450 public static boolean validateScanResultList(List<ScanResult> scanResults) { in validateScanResultList() argument 451 if (scanResults == null || scanResults.isEmpty()) { in validateScanResultList() 455 for (ScanResult scanResult : scanResults) { in validateScanResultList()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/ |
D | NetworkRequestDialogFragment.java | 430 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument 432 if (scanResults != null && scanResults.size() > 0) { in onMatch() 434 renewWifiEntryList(scanResults); in onMatch() 442 private void renewWifiEntryList(@Nullable List<ScanResult> scanResults) { in renewWifiEntryList() argument 449 if (scanResults != null) { in renewWifiEntryList() 450 mFilterWifiTracker.updateKeys(scanResults); in renewWifiEntryList() 494 void updateKeys(List<ScanResult> scanResults) { in updateKeys() argument 495 mMatchedScanResults = scanResults; in updateKeys()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | NetworkRequestDialogFragment.java | 413 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument 415 if (scanResults != null && scanResults.size() > 0) { in onMatch() 417 renewAccessPointList(scanResults); in onMatch() 425 private void renewAccessPointList(List<ScanResult> scanResults) { in renewAccessPointList() argument 432 if (scanResults != null) { in renewAccessPointList() 433 mFilterWifiTracker.updateKeys(scanResults); in renewAccessPointList() 482 public void updateKeys(List<ScanResult> scanResults) { in updateKeys() argument 483 for (ScanResult scanResult : scanResults) { in updateKeys()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 451 List<ScanResult> scanResults = new ArrayList<>(); in testValidateScanResultList() local 453 assertFalse(ScanResultUtil.validateScanResultList(scanResults)); in testValidateScanResultList() 454 scanResults.add(null); in testValidateScanResultList() 455 assertFalse(ScanResultUtil.validateScanResultList(scanResults)); in testValidateScanResultList() 457 scanResults.clear(); in testValidateScanResultList() 458 scanResults.add(scanResult); in testValidateScanResultList() 459 assertFalse(ScanResultUtil.validateScanResultList(scanResults)); in testValidateScanResultList() 463 assertTrue(ScanResultUtil.validateScanResultList(scanResults)); in testValidateScanResultList()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | NetworkRequestDialogActivity.java | 186 public void onMatch(List<ScanResult> scanResults) { in onMatch() argument 197 mMatchedConfig = WifiUtils.getWifiConfig(null /* wifiEntry */, scanResults.get(0)); in onMatch() 204 mDialogFragment.onMatch(scanResults); in onMatch()
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 272 final List<ScanResult> scanResults = getWifiScanResults(); in maybeAddVirtualWifiConfiguration() local 273 final WifiConfiguration virtualConfig = maybeConfigureVirtualNetwork(scanResults); in maybeAddVirtualWifiConfiguration() 306 private WifiConfiguration maybeConfigureVirtualNetwork(List<ScanResult> scanResults) { in maybeConfigureVirtualNetwork() argument 309 Log.d(TAG, "Wifi scan results: " + scanResults); in maybeConfigureVirtualNetwork() 310 final ScanResult virtualScanResult = scanResults.stream().filter( in maybeConfigureVirtualNetwork()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioner.java | 260 List<ScanResult> scanResults = mWifiManager.getScanResults(); in startProvisioning() local 261 mOsuProvider = getBestMatchingOsuProvider(scanResults, mOsuProvider); in startProvisioning() 1009 List<ScanResult> scanResults, in getBestMatchingOsuProvider() argument 1011 if (scanResults == null) { in getBestMatchingOsuProvider() 1026 scanResults = scanResults.stream() in getBestMatchingOsuProvider() 1031 for (ScanResult scanResult : scanResults) { in getBestMatchingOsuProvider()
|
D | PasspointManager.java | 1035 getAllMatchingPasspointProfilesForScanResults(List<ScanResult> scanResults) { in getAllMatchingPasspointProfilesForScanResults() argument 1036 if (scanResults == null) { in getAllMatchingPasspointProfilesForScanResults() 1042 for (ScanResult scanResult : scanResults) { in getAllMatchingPasspointProfilesForScanResults() 1074 List<ScanResult> scanResults) { in getMatchingOsuProviders() argument 1075 if (scanResults == null) { in getMatchingOsuProviders() 1081 for (ScanResult scanResult : scanResults) { in getMatchingOsuProviders() 1347 @NonNull List<ScanResult> scanResults) { in getMatchingScanResults() argument 1351 for (ScanResult scanResult : scanResults) { in getMatchingScanResults()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 192 List<ScanResult> scanResults = new ArrayList<>(); in test802llmcCapableAccessPointFailsForNon11mcBuilderMethods() local 193 scanResults.add(scanResult1); in test802llmcCapableAccessPointFailsForNon11mcBuilderMethods() 194 scanResults.add(scanResult2); in test802llmcCapableAccessPointFailsForNon11mcBuilderMethods() 199 builder.addNon80211mcCapableAccessPoints(scanResults); in test802llmcCapableAccessPointFailsForNon11mcBuilderMethods()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisionerTest.java | 467 List<ScanResult> scanResults = new ArrayList<>(); in verifySelectBestOsuProviderForProvisioning() local 475 scanResults.add(scanResult); in verifySelectBestOsuProviderForProvisioning() 483 scanResults.add(scanResult2); in verifySelectBestOsuProviderForProvisioning() 491 scanResults.add(scanResult3); in verifySelectBestOsuProviderForProvisioning() 493 when(mWifiManager.getScanResults()).thenReturn(scanResults); in verifySelectBestOsuProviderForProvisioning()
|