Home | History | Annotate | Download | only in soundtrigger

Lines Matching refs:SoundModel

89             sp<SoundModel> model = mSoundModels.valueFor(modelId);
97 ISoundTriggerHw::SoundModel *halSoundModel =
131 sp<SoundModel> model = new SoundModel(*handle, callback, cookie, halHandle);
149 sp<SoundModel> model = removeModel(handle);
179 sp<SoundModel> model = getModel(handle);
213 sp<SoundModel> model = getModel(handle);
278 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::getModel(sound_model_handle_t handle)
284 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::removeModel(sound_model_handle_t handle)
287 sp<SoundModel> model = mSoundModels.valueFor(handle);
350 ISoundTriggerHw::SoundModel *SoundTriggerHalHidl::convertSoundModelToHal(
351 const struct sound_trigger_sound_model *soundModel)
353 ISoundTriggerHw::SoundModel *halModel = NULL;
354 if (soundModel->type == SOUND_MODEL_TYPE_KEYPHRASE) {
358 (struct sound_trigger_phrase_sound_model *)soundModel;
373 halModel = (ISoundTriggerHw::SoundModel *)halKeyPhraseModel;
375 halModel = new ISoundTriggerHw::SoundModel();
377 halModel->type = (SoundModelType)soundModel->type;
378 convertUuidToHal(&halModel->uuid, &soundModel->uuid);
379 convertUuidToHal(&halModel->vendorUuid, &soundModel->vendor_uuid);
380 halModel->data.setToExternal((uint8_t *)soundModel + soundModel->data_offset, soundModel->data_size);
381 halModel->data.resize(soundModel->data_size);
441 sp<SoundModel> model;
465 sp<SoundModel> model;
492 sp<SoundModel> model;