Searched refs:bucketSettings (Results 1 – 8 of 8) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | KnownBandsChannelHelperTest.java | 341 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty() local 342 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in empty() 343 assertThat(bucketSettings, channelsAre()); in empty() 362 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear() local 363 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in clear() 364 assertThat(bucketSettings, channelsAre()); in clear() 382 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand() local 383 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addBand() 384 assertThat(bucketSettings, bandIs(WifiScanner.WIFI_BAND_24_GHZ)); in addBand() 402 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single() local [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 157 public void addChannels(WifiNative.BucketSettings bucketSettings) { in addChannels() argument 158 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels() 159 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels() 160 addChannel(bucketSettings.channels[j].frequency); in addChannels() 163 addBand(bucketSettings.band); in addChannels() 271 public static String toString(WifiNative.BucketSettings bucketSettings) { in toString() argument 272 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in toString() 273 return toString(bucketSettings.channels, bucketSettings.num_channels); in toString() 275 return bandToString(bucketSettings.band); in toString()
|
D | KnownBandsChannelHelper.java | 352 public void fillBucketSettings(WifiNative.BucketSettings bucketSettings, int maxChannels) { in fillBucketSettings() argument 355 bucketSettings.band = mAllBands; in fillBucketSettings() 356 bucketSettings.num_channels = 0; in fillBucketSettings() 357 bucketSettings.channels = null; in fillBucketSettings() 359 bucketSettings.band = WIFI_BAND_UNSPECIFIED; in fillBucketSettings() 360 bucketSettings.num_channels = mChannels.size(); in fillBucketSettings() 361 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings() 365 bucketSettings.channels[i] = channelSettings; in fillBucketSettings()
|
D | BackgroundScanScheduler.java | 234 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()
|
D | WificondScannerImpl.java | 163 WifiNative.BucketSettings bucketSettings = settings.buckets[i]; in startSingleScan() local 164 if ((bucketSettings.report_events in startSingleScan() 168 allFreqs.addChannels(bucketSettings); in startSingleScan()
|
D | WifiScanningServiceImpl.java | 1180 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in tryToStartNewScan() local 1181 bucketSettings.bucket = 0; in tryToStartNewScan() 1182 bucketSettings.period_ms = 0; in tryToStartNewScan() 1183 bucketSettings.report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN; in tryToStartNewScan() 1197 bucketSettings.report_events |= WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT; in tryToStartNewScan() 1208 channels.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in tryToStartNewScan() 1210 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in tryToStartNewScan()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 441 public boolean matchesSafely(WifiNative.BucketSettings bucketSettings, in bandIs() 443 if (bucketSettings.band != expectedBand) { in bandIs() 446 .appendText(", was ").appendValue(bucketSettings.band); in bandIs() 466 public boolean matchesSafely(WifiNative.BucketSettings bucketSettings, 468 if (bucketSettings.band != WifiScanner.WIFI_BAND_UNSPECIFIED) { 470 .appendValue(bucketSettings.band); 472 } else if (bucketSettings.num_channels != expectedChannels.length) { 476 .appendText(", was ").appendValue(bucketSettings.num_channels); 478 } else if (bucketSettings.channels == null) { 481 } else if (bucketSettings.channels.length != expectedChannels.length) { [all …]
|
D | WifiVendorHalTest.java | 3278 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in startBgScan() local 3279 bucketSettings.bucket = 0; in startBgScan() 3280 bucketSettings.period_ms = 16000; in startBgScan() 3281 bucketSettings.report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN; in startBgScan() 3282 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in startBgScan()
|