Home
last modified time | relevance | path

Searched refs:bucketSettings (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DKnownBandsChannelHelperTest.java284 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty() local
285 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in empty()
286 assertThat(bucketSettings, channelsAre()); in empty()
305 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear() local
306 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in clear()
307 assertThat(bucketSettings, channelsAre()); in clear()
325 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand() local
326 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addBand()
327 assertThat(bucketSettings, bandIs(WifiScanner.WIFI_BAND_24_GHZ)); in addBand()
345 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java140 public void addChannels(WifiNative.BucketSettings bucketSettings) { in addChannels() argument
141 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels()
142 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels()
143 addChannel(bucketSettings.channels[j].frequency); in addChannels()
146 addBand(bucketSettings.band); in addChannels()
254 public static String toString(WifiNative.BucketSettings bucketSettings) { in toString() argument
255 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in toString()
256 return toString(bucketSettings.channels, bucketSettings.num_channels); in toString()
258 return bandToString(bucketSettings.band); in toString()
DKnownBandsChannelHelper.java247 public void fillBucketSettings(WifiNative.BucketSettings bucketSettings, int maxChannels) { in fillBucketSettings() argument
250 bucketSettings.band = mAllBands; in fillBucketSettings()
251 bucketSettings.num_channels = 0; in fillBucketSettings()
252 bucketSettings.channels = null; in fillBucketSettings()
254 bucketSettings.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in fillBucketSettings()
255 bucketSettings.num_channels = mChannels.size(); in fillBucketSettings()
256 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
260 bucketSettings.channels[i] = channelSettings; in fillBucketSettings()
DBackgroundScanScheduler.java234 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in createBucketSettings() local
235 bucketSettings.bucket = bucketId; in createBucketSettings()
236 bucketSettings.report_events = reportEvents; in createBucketSettings()
237 bucketSettings.period_ms = period; in createBucketSettings()
238 bucketSettings.max_period_ms = maxPeriodInMs; in createBucketSettings()
239 bucketSettings.step_count = stepCount; in createBucketSettings()
240 mChannelCollection.fillBucketSettings(bucketSettings, maxChannels); in createBucketSettings()
241 return bucketSettings; in createBucketSettings()
DWificondScannerImpl.java168 WifiNative.BucketSettings bucketSettings = settings.buckets[i]; in startSingleScan() local
169 if ((bucketSettings.report_events in startSingleScan()
173 allFreqs.addChannels(bucketSettings); in startSingleScan()
DWifiScanningServiceImpl.java943 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in tryToStartNewScan() local
944 bucketSettings.bucket = 0; in tryToStartNewScan()
945 bucketSettings.period_ms = 0; in tryToStartNewScan()
946 bucketSettings.report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN; in tryToStartNewScan()
963 bucketSettings.report_events |= WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT; in tryToStartNewScan()
974 channels.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in tryToStartNewScan()
976 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in tryToStartNewScan()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java458 public boolean matchesSafely(WifiNative.BucketSettings bucketSettings, in bandIs()
460 if (bucketSettings.band != expectedBand) { in bandIs()
463 .appendText(", was ").appendValue(bucketSettings.band); in bandIs()
483 public boolean matchesSafely(WifiNative.BucketSettings bucketSettings,
485 if (bucketSettings.band != WifiScanner.WIFI_BAND_UNSPECIFIED) {
487 .appendValue(bucketSettings.band);
489 } else if (bucketSettings.num_channels != expectedChannels.length) {
493 .appendText(", was ").appendValue(bucketSettings.num_channels);
495 } else if (bucketSettings.channels == null) {
498 } else if (bucketSettings.channels.length != expectedChannels.length) {
[all …]
DWifiVendorHalTest.java3286 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in startBgScan() local
3287 bucketSettings.bucket = 0; in startBgScan()
3288 bucketSettings.period_ms = 16000; in startBgScan()
3289 bucketSettings.report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN; in startBgScan()
3290 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in startBgScan()