Home
last modified time | relevance | path

Searched refs:metadataOffset (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/radio/
DRadio.cpp248 uint32_t metadataOffset = sizeof(struct radio_event) + sizeof(uint32_t); in onEvent() local
249 uint32_t metadataSize = *(uint32_t *)((uint8_t *)event + metadataOffset - sizeof(uint32_t)); in onEvent()
257 (radio_metadata_t *)((uint8_t *)event + metadataOffset); in onEvent()
265 (radio_metadata_t *)((uint8_t *)event + metadataOffset); in onEvent()
/frameworks/av/services/radio/
DRadioService.cpp293 uint32_t metadataOffset = sizeof(struct radio_event) + sizeof(uint32_t); in prepareEvent() local
313 eventMemory = mMemoryDealer->allocate(metadataOffset + metadataSize); in prepareEvent()
321 *(uint32_t *)((uint8_t *)event + metadataOffset - sizeof(uint32_t)) = metadataSize; in prepareEvent()
334 memcpy((uint8_t *)event + metadataOffset, halEvent->info.metadata, metadataSize); in prepareEvent()
345 memcpy((uint8_t *)event + metadataOffset, halEvent->metadata, metadataSize); in prepareEvent()