Lines Matching refs:soundModel

110 int SoundTriggerHw::doLoadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel,  in doLoadSoundModel()  argument
115 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size()); in doLoadSoundModel()
122 halSoundModel = convertSoundModelToHal(&soundModel); in doLoadSoundModel()
148 Return<void> SoundTriggerHw::loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel() argument
154 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
159 const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel() argument
165 _hidl_cb(doLoadSoundModel((const V2_0::ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
380 const V2_0::ISoundTriggerHw::SoundModel* soundModel) { in convertSoundModelToHal() argument
382 if (soundModel->type == V2_0::SoundModelType::KEYPHRASE) { in convertSoundModelToHal()
384 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
392 reinterpret_cast<const V2_0::ISoundTriggerHw::PhraseSoundModel*>(soundModel); in convertSoundModelToHal()
402 size_t allocSize = sizeof(struct sound_trigger_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
410 halModel->type = (sound_trigger_sound_model_type_t)soundModel->type; in convertSoundModelToHal()
411 convertUuidToHal(&halModel->uuid, &soundModel->uuid); in convertSoundModelToHal()
412 convertUuidToHal(&halModel->vendor_uuid, &soundModel->vendorUuid); in convertSoundModelToHal()
413 halModel->data_size = soundModel->data.size(); in convertSoundModelToHal()
415 const uint8_t* src = reinterpret_cast<const uint8_t*>(&soundModel->data[0]); in convertSoundModelToHal()
416 memcpy(dst, src, soundModel->data.size()); in convertSoundModelToHal()
660 const V2_1::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel_2_1() argument
664 V2_0::ISoundTriggerHw::SoundModel soundModel_2_0(soundModel.header); in loadSoundModel_2_1()
665 auto result = memoryAsVector(soundModel.data, &soundModel_2_0.data); in loadSoundModel_2_1()
677 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel_2_1() argument
682 soundModel_2_0.common = soundModel.common.header; in loadPhraseSoundModel_2_1()
685 const_cast<V2_0::ISoundTriggerHw::Phrase*>(soundModel.phrases.data()), in loadPhraseSoundModel_2_1()
686 soundModel.phrases.size()); in loadPhraseSoundModel_2_1()
687 auto result = memoryAsVector(soundModel.common.data, &soundModel_2_0.common.data); in loadPhraseSoundModel_2_1()