Home | History | Annotate | Download | only in scanner

Lines Matching refs:band

53      * Get the channels that are available for scanning on the supplied band.
56 public abstract WifiScanner.ChannelSpec[] getAvailableScanChannels(int band);
83 * Add all channels in the band to the collection
85 public abstract void addBand(int band);
91 * @return true if the collection contains all the channels of the supplied band
93 public abstract boolean containsBand(int band);
95 * @return true if the collection contains some of the channels of the supplied band
97 public abstract boolean partiallyContainsBand(int band);
111 * Retrieves a list of channels from the band which are missing in the channel collection.
113 public abstract Set<Integer> getMissingChannelsFromBand(int band);
115 * Retrieves a list of channels from the band which are contained in the channel collection.
117 public abstract Set<Integer> getContainingChannelsFromBand(int band);
120 * an empty set if an entire Band if specified or if the list is empty.
128 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
133 addBand(scanSettings.band);
141 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
146 addBand(bucketSettings.band);
154 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
162 return containsBand(scanSettings.band);
170 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
178 return partiallyContainsBand(scanSettings.band);
186 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
195 return getMissingChannelsFromBand(scanSettings.band);
204 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
213 return getContainingChannelsFromBand(scanSettings.band);
219 * exceeded or a band better describes the channels then a band is specified instead of a
233 * Utility methods for converting band/channels to strings
239 * the band is returned.
242 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
245 return toString(scanSettings.band);
252 * the band is returned.
255 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
258 return toString(bucketSettings.band);
296 private static String toString(int band) {
297 switch (band) {
314 return "invalid band";