Package: android.hardware.wifi.offload@1.0

IOffload

interface IOffload

Methods

configureScans

configureScans (ScanParam param, ScanFilter filter)
generates (OffloadStatus status)

Configure the offload module to perform scans and filter results Scans must not be triggered due to configuration of the module.

Details
Parameters
param
filter
Generates
status
Annotations
entry
callflow
next= { "setEventCallback" , "subscribeScanResults" }

getScanStats

getScanStats ()
generates (OffloadStatus status, ScanStats scanStats)

Get scan statistics

Details
Generates
status
scanStats
Annotations
exit
callflow
next= { "subscribeScanResults" , "unsubscribeScanResults" , "getScanStats" }

subscribeScanResults

subscribeScanResults (uint32_t delayMs)
generates (OffloadStatus status)

Subscribe to asynchronous scan events sent by offload module.This enables offload scans to be performed as per scan parameters, filtering the scan results based on configured scan filter and delivering the results after at least delayMs milliseconds from this call.If the client is already subscribed to the scan results, a call to this API must be a no-op.

Details
Parameters
delayMs
an integer expressing the minimum delay in mS after subscribing when scan results must be delivered to the client
Generates
status
Annotations
callflow
next= { "unsubscribeScanResults" , "getScanStats" }

unsubscribeScanResults

unsubscribeScanResults ()

Unsubscribe to scan events sent by the offload module, hence disabling scans.If the client is already unsubscribed, a call to this API will be a no-op.

Details
Annotations
exit
callflow
next= { "*" }

setEventCallback

setEventCallback (IOffloadCallback cb)

Setup the HIDL interface for reporting asynchronous scan events.A maximum of one callback interface is supported.Only one callback must be registered at any given time.If two consecutive calls are made with different callback interface objects, the latest one must be used to deliver events to client.

Details
Parameters
cb
An instance of the |IOffloadCallback| HIDL interface object
Annotations
entry
callflow
next= { "subscribeScanStats" , "configureScans" }