Lines Matching refs:halEvent
285 sp<IMemory> RadioService::CallbackThread::prepareEvent(radio_hal_event_t *halEvent) in prepareEvent() argument
296 switch (halEvent->type) { in prepareEvent()
299 if (radio_metadata_check(halEvent->info.metadata) == 0) { in prepareEvent()
300 metadataSize = (uint32_t)radio_metadata_get_size(halEvent->info.metadata); in prepareEvent()
304 if (radio_metadata_check(halEvent->metadata) != 0) { in prepareEvent()
307 metadataSize = (uint32_t)radio_metadata_get_size(halEvent->metadata); in prepareEvent()
323 event->type = halEvent->type; in prepareEvent()
324 event->status = halEvent->status; in prepareEvent()
328 event->config.band = halEvent->config; in prepareEvent()
332 event->info = halEvent->info; in prepareEvent()
334 memcpy((uint8_t *)event + metadataOffset, halEvent->info.metadata, metadataSize); in prepareEvent()
341 event->on = halEvent->on; in prepareEvent()
345 memcpy((uint8_t *)event + metadataOffset, halEvent->metadata, metadataSize); in prepareEvent()
668 void RadioService::ModuleClient::onEvent(radio_hal_event_t *halEvent) in onEvent() argument
670 mCallbackThread->sendEvent(halEvent); in onEvent()