Lines Matching refs:data_offset

237         ALOGW_IF(event->data_size != 0 && event->data_offset !=  in prepareRecognitionEvent()
240 event->data_offset); in prepareRecognitionEvent()
241 event->data_offset = sizeof(struct sound_trigger_phrase_recognition_event); in prepareRecognitionEvent()
244 ALOGW_IF(event->data_size != 0 && event->data_offset != in prepareRecognitionEvent()
247 event->data_offset); in prepareRecognitionEvent()
248 event->data_offset = sizeof(struct sound_trigger_generic_recognition_event); in prepareRecognitionEvent()
251 ALOGW_IF(event->data_size != 0 && event->data_offset != in prepareRecognitionEvent()
254 event->data_offset); in prepareRecognitionEvent()
255 event->data_offset = sizeof(struct sound_trigger_recognition_event); in prepareRecognitionEvent()
261 size_t size = event->data_offset + event->data_size; in prepareRecognitionEvent()
310 size_t size = event->data_offset + event->data_size; in prepareSoundModelEvent()
601 if (sound_model->data_offset < structSize || in loadSoundModel()
602 sound_model->data_size > (UINT_MAX - sound_model->data_offset) || in loadSoundModel()
603 immutableMemory.second < sound_model->data_offset || in loadSoundModel()
605 (immutableMemory.second - sound_model->data_offset)) { in loadSoundModel()
694 if (config->data_offset < sizeof(struct sound_trigger_recognition_config) || in startRecognition()
695 config->data_size > (UINT_MAX - config->data_offset) || in startRecognition()
696 immutableMemory.second < config->data_offset || in startRecognition()
698 (immutableMemory.second - config->data_offset)) { in startRecognition()