Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DNoBandChannelHelperTest.java219 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty() local
220 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in empty()
221 assertThat(bucketSettings, channelsAre()); in empty()
239 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear() local
240 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in clear()
241 assertThat(bucketSettings, channelsAre()); in clear()
258 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand() local
259 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addBand()
260 assertThat(bucketSettings, bandIs(ALL_BANDS)); in addBand()
277 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single() local
[all …]
DKnownBandsChannelHelperTest.java283 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty() local
284 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in empty()
285 assertThat(bucketSettings, channelsAre()); in empty()
304 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear() local
305 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in clear()
306 assertThat(bucketSettings, channelsAre()); in clear()
324 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand() local
325 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addBand()
326 assertThat(bucketSettings, bandIs(WifiScanner.WIFI_BAND_24_GHZ)); in addBand()
344 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DNoBandChannelHelper.java151 public void fillBucketSettings(WifiNative.BucketSettings bucketSettings, int maxChannels) { in fillBucketSettings() argument
153 bucketSettings.band = WifiScanner.WIFI_BAND_BOTH_WITH_DFS; in fillBucketSettings()
154 bucketSettings.num_channels = 0; in fillBucketSettings()
155 bucketSettings.channels = null; in fillBucketSettings()
157 bucketSettings.band = WifiScanner.WIFI_BAND_UNSPECIFIED; in fillBucketSettings()
158 bucketSettings.num_channels = mChannels.size(); in fillBucketSettings()
159 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
163 bucketSettings.channels[i] = channelSettings; in fillBucketSettings()
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 toString(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.java399 WifiNative.BucketSettings bucketSettings = in processPendingScans() local
401 if ((bucketSettings.report_events in processPendingScans()
405 singleScanFreqs.addChannels(bucketSettings); in processPendingScans()
406 allFreqs.addChannels(bucketSettings); in processPendingScans()
DWifiScanningServiceImpl.java798 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in tryToStartNewScan() local
799 bucketSettings.bucket = 0; in tryToStartNewScan()
800 bucketSettings.period_ms = 0; in tryToStartNewScan()
801 bucketSettings.report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN; in tryToStartNewScan()
816 bucketSettings.report_events |= WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT; in tryToStartNewScan()
827 channels.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in tryToStartNewScan()
829 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in tryToStartNewScan()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java403 public boolean matchesSafely(WifiNative.BucketSettings bucketSettings, in bandIs()
405 if (bucketSettings.band != expectedBand) { in bandIs()
408 .appendText(", was ").appendValue(bucketSettings.band); in bandIs()
428 public boolean matchesSafely(WifiNative.BucketSettings bucketSettings,
430 if (bucketSettings.band != WifiScanner.WIFI_BAND_UNSPECIFIED) {
432 .appendValue(bucketSettings.band);
434 } else if (bucketSettings.num_channels != expectedChannels.length) {
438 .appendText(", was ").appendValue(bucketSettings.num_channels);
440 } else if (bucketSettings.channels == null) {
443 } else if (bucketSettings.channels.length != expectedChannels.length) {
[all …]
DWifiVendorHalTest.java1916 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in startBgScan() local
1917 bucketSettings.bucket = 0; in startBgScan()
1918 bucketSettings.period_ms = 16000; in startBgScan()
1919 bucketSettings.report_events = WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN; in startBgScan()
1920 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in startBgScan()