public abstract class ChannelHelper.ChannelCollection extends Object
Constructor and Description |
---|
ChannelCollection() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addBand(int band)
Add all channels in the band to the collection
|
abstract void |
addChannel(int channel)
Add a channel to the collection
|
void |
addChannels(WifiNative.BucketSettings bucketSettings)
Add all channels in the BucketSettings to the collection
|
void |
addChannels(WifiScanner.ScanSettings scanSettings)
Add all channels in the ScanSetting to the collection
|
abstract void |
clear()
Remove all channels from the collection
|
abstract boolean |
containsBand(int band) |
abstract boolean |
containsChannel(int channel) |
boolean |
containsSettings(WifiScanner.ScanSettings scanSettings)
Checks if all channels in ScanSetting is in the collection
|
abstract void |
fillBucketSettings(WifiNative.BucketSettings bucket,
int maxChannels)
Store the channels in this collection in the supplied BucketSettings.
|
abstract Set<Integer> |
getChannelSet()
Gets a list of channels specified in the current channel collection.
|
abstract Set<Integer> |
getContainingChannelsFromBand(int band)
Retrieves a list of channels from the band which are contained in the channel collection.
|
Set<Integer> |
getContainingChannelsFromSettings(WifiScanner.ScanSettings scanSettings)
Retrieves a list of containing channels in the collection from the provided settings.
|
abstract Set<Integer> |
getMissingChannelsFromBand(int band)
Retrieves a list of channels from the band which are missing in the channel collection.
|
Set<Integer> |
getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings)
Retrieves a list of missing channels in the collection from the provided settings.
|
abstract Set<Integer> |
getSupplicantScanFreqs()
Gets the list of channels that should be supplied to supplicant for a scan.
|
abstract boolean |
isAllChannels() |
abstract boolean |
isEmpty() |
abstract boolean |
partiallyContainsBand(int band) |
boolean |
partiallyContainsSettings(WifiScanner.ScanSettings scanSettings)
Checks if at least some of the channels in ScanSetting is in the collection
|
public abstract void addChannel(int channel)
public abstract void addBand(int band)
public abstract boolean containsChannel(int channel)
public abstract boolean containsBand(int band)
public abstract boolean partiallyContainsBand(int band)
public abstract boolean isEmpty()
public abstract boolean isAllChannels()
public abstract void clear()
public abstract Set<Integer> getMissingChannelsFromBand(int band)
public abstract Set<Integer> getContainingChannelsFromBand(int band)
public abstract Set<Integer> getChannelSet()
public void addChannels(WifiScanner.ScanSettings scanSettings)
public void addChannels(WifiNative.BucketSettings bucketSettings)
public boolean containsSettings(WifiScanner.ScanSettings scanSettings)
public boolean partiallyContainsSettings(WifiScanner.ScanSettings scanSettings)
public Set<Integer> getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings)
public Set<Integer> getContainingChannelsFromSettings(WifiScanner.ScanSettings scanSettings)
public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels)