public abstract class ChannelHelper extends Object
Modifier and Type | Class and Description |
---|---|
class |
ChannelHelper.ChannelCollection
Object that supports accumulation of channels and bands
|
Modifier and Type | Field and Description |
---|---|
protected static WifiScanner.ChannelSpec[] |
NO_CHANNELS |
static int |
SCAN_PERIOD_PER_CHANNEL_MS
The estimated period spent scanning each channel.
|
Constructor and Description |
---|
ChannelHelper() |
Modifier and Type | Method and Description |
---|---|
abstract ChannelHelper.ChannelCollection |
createChannelCollection()
Create a new collection that can be used to store channels
|
abstract int |
estimateScanDuration(WifiScanner.ScanSettings settings)
Estimates the duration that the chip will spend scanning with the given settings
|
abstract WifiScanner.ChannelSpec[] |
getAvailableScanChannels(int band)
Get the channels that are available for scanning on the supplied band.
|
abstract boolean |
settingsContainChannel(WifiScanner.ScanSettings settings,
int channel)
Return true if the specified channel is expected for a scan with the given settings
|
static String |
toString(WifiNative.BucketSettings bucketSettings)
Create a string representation of the channels in the BucketSettings.
|
static String |
toString(WifiScanner.ScanSettings scanSettings)
Create a string representation of the channels in the ScanSettings.
|
void |
updateChannels()
Update the channel information that this object has.
|
public static final int SCAN_PERIOD_PER_CHANNEL_MS
protected static final WifiScanner.ChannelSpec[] NO_CHANNELS
public abstract ChannelHelper.ChannelCollection createChannelCollection()
public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel)
public abstract WifiScanner.ChannelSpec[] getAvailableScanChannels(int band)
public abstract int estimateScanDuration(WifiScanner.ScanSettings settings)
public void updateChannels()
createChannelCollection
is
undefined after calling this method until the clear
method
is called on it.public static String toString(WifiScanner.ScanSettings scanSettings)
public static String toString(WifiNative.BucketSettings bucketSettings)