Lines Matching refs:halEvent
33 void Tuner::onCallback(radio_hal_event_t *halEvent)
40 switch(halEvent->type) {
42 Utils::convertBandConfigFromHal(&config, &halEvent->config);
43 mCallback->configChange(Utils::convertHalResult(halEvent->status), config);
46 mCallback->antennaStateChange(halEvent->on);
49 Utils::convertProgramInfoFromHal(&info, &halEvent->info);
50 mCallback->tuneComplete(Utils::convertHalResult(halEvent->status), info);
55 if (radio_metadata_get_channel(halEvent->metadata, &channel, &sub_channel) == 0) {
56 Utils::convertMetaDataFromHal(metadata, halEvent->metadata);
61 mCallback->trafficAnnouncement(halEvent->on);
64 Utils::convertProgramInfoFromHal(&info, &halEvent->info);
68 mCallback->emergencyAnnouncement(halEvent->on);
79 void Tuner::callback(radio_hal_event_t *halEvent, void *cookie)
84 tuner->onCallback(halEvent);