Package: android.hardware.broadcastradio@1.0

ITunerCallback

interface ITunerCallback

Methods

hardwareFailure

oneway hardwareFailure ()

Method called by the HAL when a HW failure occurs.The framework MUST close the ITuner interface and open a new one.

Details
RPC mode
oneway

configChange

oneway configChange (Result result, BandConfig config)

Method called by the HAL when a new configuration is applied in response to IDevice.openTuner() or ITuner.setConfiguration().

Details
RPC mode
oneway
Parameters
result
OK if the configuration has been applied, INVALID_ARGUMENTS if not or TIMEOUT in case of time out.
config
A BandConfig structure describing the new configuration applied.

tuneComplete

oneway tuneComplete (Result result, ProgramInfo info)

Method called by the HAL when a tuning operation completes following a step(), scan() or tune() command.

Details
RPC mode
oneway
Parameters
result
OK if tune succeeded or TIMEOUT in case of time out.
info
A ProgramInfo structure describing the tuned station.

afSwitch

oneway afSwitch (ProgramInfo info)

Method called by the HAL when a frequency switch occurs.

Details
RPC mode
oneway
Parameters
info
A ProgramInfo structure describing the new tuned station.

antennaStateChange

oneway antennaStateChange (bool connected)

Method called by the HAL when the antenna connection state changes.

Details
RPC mode
oneway
Parameters
connected
True if the antenna is connected, false otherwise.

trafficAnnouncement

oneway trafficAnnouncement (bool active)

Method called by the HAL when a traffic announcement starts or stops.

Details
RPC mode
oneway
Parameters
active
True if the announcement starts, false if it stops.

emergencyAnnouncement

oneway emergencyAnnouncement (bool active)

Method called by the HAL when an emergency announcement starts or stops.

Details
RPC mode
oneway
Parameters
active
True if the announcement starts, false if it stops.

newMetadata

oneway newMetadata (uint32_t channel, uint32_t subChannel, vec<MetaData> metadata)

Method called by the HAL when metadata for current station are updated.

Details
RPC mode
oneway
Parameters
channel
The channel the metadata is associated with.
subChannel
The sub channel the metadata is associated with.
metadata
A list of all updated metada.