Lines Matching refs:data_offset
218 ALOGW_IF(event->data_size != 0 && event->data_offset != in prepareRecognitionEvent()
221 event->data_offset); in prepareRecognitionEvent()
222 event->data_offset = sizeof(struct sound_trigger_phrase_recognition_event); in prepareRecognitionEvent()
225 ALOGW_IF(event->data_size != 0 && event->data_offset != in prepareRecognitionEvent()
228 event->data_offset); in prepareRecognitionEvent()
229 event->data_offset = sizeof(struct sound_trigger_generic_recognition_event); in prepareRecognitionEvent()
232 ALOGW_IF(event->data_size != 0 && event->data_offset != in prepareRecognitionEvent()
235 event->data_offset); in prepareRecognitionEvent()
236 event->data_offset = sizeof(struct sound_trigger_recognition_event); in prepareRecognitionEvent()
242 size_t size = event->data_offset + event->data_size; in prepareRecognitionEvent()
291 size_t size = event->data_offset + event->data_size; in prepareSoundModelEvent()
579 if (sound_model->data_offset < structSize || in loadSoundModel()
580 sound_model->data_size > (UINT_MAX - sound_model->data_offset) || in loadSoundModel()
581 modelMemory->size() < sound_model->data_offset || in loadSoundModel()
582 sound_model->data_size > (modelMemory->size() - sound_model->data_offset)) { in loadSoundModel()
671 if (config->data_offset < sizeof(struct sound_trigger_recognition_config) || in startRecognition()
672 config->data_size > (UINT_MAX - config->data_offset) || in startRecognition()
673 dataMemory->size() < config->data_offset || in startRecognition()
674 config->data_size > (dataMemory->size() - config->data_offset)) { in startRecognition()