Home
last modified time | relevance | path

Searched refs:sound_model (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp591 struct sound_trigger_sound_model* sound_model = in loadSoundModel() local
595 if (sound_model->type == SOUND_MODEL_TYPE_KEYPHRASE) { in loadSoundModel()
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()
604 sound_model->data_size > in loadSoundModel()
605 (immutableMemory.second - sound_model->data_offset)) { in loadSoundModel()
630 status = mHalInterface->loadSoundModel(sound_model, in loadSoundModel()
637 sp<Model> model = new Model(*handle, session, ioHandle, device, sound_model->type, in loadSoundModel()
DSoundTriggerHalHidl.cpp139 int SoundTriggerHalHidl::loadSoundModel(struct sound_trigger_sound_model *sound_model, in loadSoundModel() argument
172 if (sound_model->type == SOUND_MODEL_TYPE_KEYPHRASE) { in loadSoundModel()
175 auto result = convertPhraseSoundModelToHal(&halSoundModel, sound_model); in loadSoundModel()
189 auto result = convertPhraseSoundModelToHal(&halSoundModel, sound_model); in loadSoundModel()
203 convertPhraseSoundModelToHal(&halSoundModel, sound_model); in loadSoundModel()
215 auto result = convertSoundModelToHal(&halSoundModel, sound_model); in loadSoundModel()
228 auto result = convertSoundModelToHal(&halSoundModel, sound_model); in loadSoundModel()
241 convertSoundModelToHal(&halSoundModel, sound_model); in loadSoundModel()
DSoundTriggerHalInterface.h43 virtual int loadSoundModel(struct sound_trigger_sound_model *sound_model,
DSoundTriggerHalHidl.h67 virtual int loadSoundModel(struct sound_trigger_sound_model *sound_model,