Home
last modified time | relevance | path

Searched refs:scanSettings (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java149 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels() argument
150 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels()
151 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels()
152 addChannel(scanSettings.channels[j].frequency); in addChannels()
157 if (scanSettings.is6GhzPscOnlyEnabled() && is6GhzBandIncluded(scanSettings.band)) { in addChannels()
159 int band = scanSettings.band & (~WifiScanner.WIFI_BAND_6_GHZ); in addChannels()
165 addBand(scanSettings.band); in addChannels()
184 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings() argument
185 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in containsSettings()
186 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings()
[all …]
DWifiScanningServiceImpl.java194 ScanSettings scanSettings = in shouldIgnoreLocationSettingsForSingleScan() local
196 if (scanSettings == null) return false; in shouldIgnoreLocationSettingsForSingleScan()
197 return scanSettings.ignoreLocationSettings; in shouldIgnoreLocationSettingsForSingleScan()
209 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldHideFromAppsForSingleScan() local
210 return scanSettings.hideFromAppOps; in shouldHideFromAppsForSingleScan()
775 public boolean startSingleScan(WifiNative.ScanSettings scanSettings) { in startSingleScan() argument
782 scanSettings, new ScanEventHandler(ifaceName)); in startSingleScan()
866 ScanSettings scanSettings = null; in handleScanStartMessage() local
869 scanSettings = in handleScanStartMessage()
883 if (validateScanRequest(ci, handler, scanSettings)) { in handleScanStartMessage()
[all …]
DBackgroundScanScheduler.java162 public boolean addSettings(ScanSettings scanSettings) { in addSettings() argument
163 mChannelCollection.addChannels(scanSettings); in addSettings()
164 return mScanSettingsList.add(scanSettings); in addSettings()
167 public boolean removeSettings(ScanSettings scanSettings) { in removeSettings() argument
168 if (mScanSettingsList.remove(scanSettings)) { in removeSettings()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiScannerTest.java256 WifiScanner.ScanSettings scanSettings = new WifiScanner.ScanSettings(); in testSetRnrSetting() local
257 scanSettings.setRnrSetting(-1); in testSetRnrSetting()
263 WifiScanner.ScanSettings scanSettings = new WifiScanner.ScanSettings(); in testSetRnrSetting() local
264 scanSettings.setRnrSetting(WifiScanner.WIFI_RNR_NOT_NEEDED); in testSetRnrSetting()
265 assertEquals(WifiScanner.WIFI_RNR_NOT_NEEDED, scanSettings.getRnrSetting()); in testSetRnrSetting()
274 ScanSettings scanSettings = new ScanSettings(); in testStartScan() local
277 mWifiScanner.startScan(scanSettings, scanListener); in testStartScan()
288 assertEquals(scanSettings, in testStartScan()
304 ScanSettings scanSettings = new ScanSettings(); in testStopScan() local
307 mWifiScanner.startScan(scanSettings, scanListener); in testStopScan()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DChannelHelperTest.java58 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in scanSettings_band() local
60 assertEquals("24Ghz & 5Ghz (no DFS)", ChannelHelper.toString(scanSettings)); in scanSettings_band()
68 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400), in scanSettings_channels() local
70 assertEquals("[5150,2400]", ChannelHelper.toString(scanSettings)); in scanSettings_channels()
78 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ, in bucketSettings_band() local
80 assertEquals("5Ghz (no DFS)", ChannelHelper.toString(scanSettings)); in bucketSettings_band()
89 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(2400, 5100), in bucketSettings_channels() local
91 assertEquals("[2400,5100]", ChannelHelper.toString(scanSettings)); in bucketSettings_channels()
DWifiScanningServiceTest.java2480 int scanRequestId, WifiScanner.ScanSettings scanSettings, in sendPnoScanRequest() argument
2483 scanSettings.isPnoScan = true; in sendPnoScanRequest()
2484 pnoParams.putParcelable(WifiScanner.PNO_PARAMS_SCAN_SETTINGS_KEY, scanSettings); in sendPnoScanRequest()
2573 Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings = in testSuccessfulHwPnoScanWithNoBackgroundScan() local
2578 sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first); in testSuccessfulHwPnoScanWithNoBackgroundScan()
2596 Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings = in rejectHwPnoScanRequestWhenScannerImplCreateFails() local
2601 sendPnoScanRequest(controlChannel, 122, scanSettings.first, pnoSettings.first); in rejectHwPnoScanRequestWhenScannerImplCreateFails()
2798 Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings = in hwPnoScanScanAfterDuplicateScanEnable() local
2803 sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first); in hwPnoScanScanAfterDuplicateScanEnable()
2933 WifiScanner.ScanSettings scanSettings = in verifyIgnoreLocationSettingsFromNonPrivilegedAppsForSingleScan() local
[all …]
DWificondPnoScannerTest.java202 private void startSuccessfulPnoScan(WifiNative.ScanSettings scanSettings, in startSuccessfulPnoScan() argument
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java107 ScanSettings scanSettings = new ScanSettings.Builder() in testBleScanOpportunistic() local
109 performBleScan(scanSettings, null,false); in testBleScanOpportunistic()
114 ScanSettings scanSettings = new ScanSettings.Builder() in testBleScanUnoptimized() local
116 performBleScan(scanSettings, null, false); in testBleScanUnoptimized()
121 ScanSettings scanSettings = new ScanSettings.Builder() in testBleScanResult() local
124 performBleScan(scanSettings, Arrays.asList(scanFilter.build()), true); in testBleScanResult()
130 ScanSettings scanSettings = new ScanSettings.Builder() in testBleScanInterrupted() local
161 bleScanner.startScan(null, scanSettings, scanCallback); in testBleScanInterrupted()
233 …private static void performBleScan(ScanSettings scanSettings, List<ScanFilter> scanFilters, boolea… in performBleScan() argument
253 bleScanner.startScan(scanFilters, scanSettings, scanCallback); in performBleScan()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java993 private void validateScanSettings(WifiScanner.ScanSettings scanSettings, in validateScanSettings() argument
995 validateScanSettings(scanSettings, expectHiddenNetworks, false); in validateScanSettings()
998 private void validateScanSettings(WifiScanner.ScanSettings scanSettings, in validateScanSettings() argument
1001 assertNotNull(scanSettings); in validateScanSettings()
1002 assertEquals(WifiScanner.WIFI_BAND_ALL, scanSettings.band); in validateScanSettings()
1004 assertEquals(WifiScanner.SCAN_TYPE_HIGH_ACCURACY, scanSettings.type); in validateScanSettings()
1006 assertEquals(WifiScanner.SCAN_TYPE_LOW_LATENCY, scanSettings.type); in validateScanSettings()
1009 | WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT, scanSettings.reportEvents); in validateScanSettings()
1015 assertEquals(hiddenNetworkList.size(), scanSettings.hiddenNetworks.size()); in validateScanSettings()
1016 for (HiddenNetwork hiddenNetwork : scanSettings.hiddenNetworks) { in validateScanSettings()
[all …]
DWifiNetworkFactoryTest.java3574 ScanSettings scanSettings = mScanSettingsArgumentCaptor.getValue(); in validateScanSettings() local
3575 assertNotNull(scanSettings); in validateScanSettings()
3576 assertEquals(WifiScanner.WIFI_BAND_ALL, scanSettings.band); in validateScanSettings()
3577 assertEquals(WifiScanner.SCAN_TYPE_HIGH_ACCURACY, scanSettings.type); in validateScanSettings()
3578 assertEquals(WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN, scanSettings.reportEvents); in validateScanSettings()
3580 assertEquals(Collections.emptyList(), scanSettings.hiddenNetworks); in validateScanSettings()
3582 assertNotNull(scanSettings.hiddenNetworks.get(0)); in validateScanSettings()
3583 assertEquals(scanSettings.hiddenNetworks.get(0).ssid, addEnclosingQuotes(hiddenSsid)); in validateScanSettings()
DWifiConnectivityManagerTest.java1562 public boolean matches(ScanSettings scanSettings) { in matches() argument
1563 return scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED in matches()
1564 && scanSettings.channels[0].frequency == TEST_FREQUENCY; in matches()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java250 ScanSettings scanSettings = new ScanSettings(); in startGscan() local
257 scanSettings.channels = channels; in startGscan()
260 scanSettings.band = band; in startGscan()
264 this, scanSettings, mIntervalMillis, mAlarmManager, mPIGScan); in startGscan()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java60 ScanSettings scanSettings = new ScanSettings.Builder() in doUnoptimizedBleScan() local
92 bleScanner.startScan(null, scanSettings, scanCallback); in doUnoptimizedBleScan()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiScanner.java1292 private void startPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, int key) { in startPnoScan() argument
1296 scanSettings.isPnoScan = true; in startPnoScan()
1297 pnoParams.putParcelable(PNO_PARAMS_SCAN_SETTINGS_KEY, scanSettings); in startPnoScan()
1313 public void startConnectedPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, in startConnectedPnoScan() argument
1321 startPnoScan(scanSettings, pnoSettings, key); in startConnectedPnoScan()
1335 public void startDisconnectedPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, in startDisconnectedPnoScan() argument
1343 startPnoScan(scanSettings, pnoSettings, key); in startDisconnectedPnoScan()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java1933 ScanSettings scanSettings = new ScanSettings(); in startDisconnectedPnoScan() local
1934 scanSettings.band = getScanBand(); in startDisconnectedPnoScan()
1935 scanSettings.reportEvents = WifiScanner.REPORT_EVENT_NO_BATCH; in startDisconnectedPnoScan()
1936 scanSettings.numBssidsPerScan = 0; in startDisconnectedPnoScan()
1937 scanSettings.periodInMs = deviceMobilityStateToPnoScanIntervalMs(mDeviceMobilityState); in startDisconnectedPnoScan()
1940 scanSettings, pnoSettings, new HandlerExecutor(mEventHandler), mPnoScanListener); in startDisconnectedPnoScan()