public abstract class WifiScannerImpl extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
WifiScannerImpl.WifiScannerImplFactory
A factory that create a
WifiScannerImpl |
Modifier and Type | Field and Description |
---|---|
static WifiScannerImpl.WifiScannerImplFactory |
DEFAULT_FACTORY
Factory that create the implementation that is most appropriate for the system.
|
protected static Comparator<ScanResult> |
SCAN_RESULT_SORT_COMPARATOR
A comparator that implements the sort order that is expected for scan results
|
Constructor and Description |
---|
WifiScannerImpl() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanup()
Cleanup any ongoing operations.
|
abstract ChannelHelper |
getChannelHelper()
Get a ChannelHelper that can be used to perform operations on scan channels
|
abstract WifiScanner.ScanData[] |
getLatestBatchedScanResults(boolean flush)
Get the latest cached scan results from the last scan event.
|
abstract WifiScanner.ScanData |
getLatestSingleScanResults()
Get the scan results of the most recent single scan.
|
abstract boolean |
getScanCapabilities(WifiNative.ScanCapabilities capabilities)
Get the supported scan capabilities.
|
abstract boolean |
isHwPnoSupported(boolean isConnectedPno)
This returns whether HW PNO is supported or not.
|
abstract void |
pauseBatchedScan()
Pause the currently active background scan
|
abstract void |
resetHotlist()
Reset any active hotlist
|
abstract boolean |
resetHwPnoList()
Reset PNO list to terminate PNO background scan.
|
abstract void |
restartBatchedScan()
Restart the currently paused background scan
|
abstract boolean |
setHotlist(WifiScanner.HotlistSettings settings,
WifiNative.HotlistEventHandler eventHandler)
Set a new hotlist
|
abstract boolean |
setHwPnoList(WifiNative.PnoSettings settings,
WifiNative.PnoEventHandler eventHandler)
Set PNO list to start PNO background scan.
|
abstract boolean |
shouldScheduleBackgroundScanForHwPno()
This returns whether a background scan should be running for HW PNO scan or not.
|
abstract boolean |
startBatchedScan(WifiNative.ScanSettings settings,
WifiNative.ScanEventHandler eventHandler)
Start a background scan.
|
abstract boolean |
startSingleScan(WifiNative.ScanSettings settings,
WifiNative.ScanEventHandler eventHandler)
Start a one time scan.
|
abstract void |
stopBatchedScan()
Stop the currently active background scan
|
abstract boolean |
trackSignificantWifiChange(WifiScanner.WifiChangeSettings settings,
WifiNative.SignificantWifiChangeEventHandler handler)
Start tracking significant wifi changes
|
abstract void |
untrackSignificantWifiChange()
Stop tracking significant wifi changes
|
public static final WifiScannerImpl.WifiScannerImplFactory DEFAULT_FACTORY
protected static final Comparator<ScanResult> SCAN_RESULT_SORT_COMPARATOR
public abstract void cleanup()
public abstract boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities)
capabilities
- Object that will be filled with the supported capabilities if successfulpublic abstract ChannelHelper getChannelHelper()
public abstract boolean startSingleScan(WifiNative.ScanSettings settings, WifiNative.ScanEventHandler eventHandler)
public abstract WifiScanner.ScanData getLatestSingleScanResults()
public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, WifiNative.ScanEventHandler eventHandler)
public abstract void stopBatchedScan()
public abstract void pauseBatchedScan()
public abstract void restartBatchedScan()
public abstract WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush)
public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, WifiNative.PnoEventHandler eventHandler)
settings
- PNO settings for this scan.eventHandler
- Event handler for notifying the scan results.public abstract boolean resetHwPnoList()
public abstract boolean isHwPnoSupported(boolean isConnectedPno)
isConnectedPno
- Whether this is connected PNO vs disconnected PNO.public abstract boolean shouldScheduleBackgroundScanForHwPno()
public abstract boolean setHotlist(WifiScanner.HotlistSettings settings, WifiNative.HotlistEventHandler eventHandler)
public abstract void resetHotlist()
public abstract boolean trackSignificantWifiChange(WifiScanner.WifiChangeSettings settings, WifiNative.SignificantWifiChangeEventHandler handler)
public abstract void untrackSignificantWifiChange()