• Home
  • Raw
  • Download

Lines Matching refs:soundModel

109 int SoundTriggerHw::doLoadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel,  in doLoadSoundModel()  argument
114 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size()); in doLoadSoundModel()
121 halSoundModel = convertSoundModelToHal(&soundModel); in doLoadSoundModel()
147 Return<void> SoundTriggerHw::loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel() argument
153 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
158 const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel() argument
164 _hidl_cb(doLoadSoundModel((const V2_0::ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
372 const V2_0::ISoundTriggerHw::SoundModel* soundModel) { in convertSoundModelToHal() argument
374 if (soundModel->type == V2_0::SoundModelType::KEYPHRASE) { in convertSoundModelToHal()
376 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
384 reinterpret_cast<const V2_0::ISoundTriggerHw::PhraseSoundModel*>(soundModel); in convertSoundModelToHal()
394 size_t allocSize = sizeof(struct sound_trigger_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
402 halModel->type = (sound_trigger_sound_model_type_t)soundModel->type; in convertSoundModelToHal()
403 convertUuidToHal(&halModel->uuid, &soundModel->uuid); in convertSoundModelToHal()
404 convertUuidToHal(&halModel->vendor_uuid, &soundModel->vendorUuid); in convertSoundModelToHal()
405 halModel->data_size = soundModel->data.size(); in convertSoundModelToHal()
407 const uint8_t* src = reinterpret_cast<const uint8_t*>(&soundModel->data[0]); in convertSoundModelToHal()
408 memcpy(dst, src, soundModel->data.size()); in convertSoundModelToHal()
604 const V2_1::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel_2_1() argument
608 V2_0::ISoundTriggerHw::SoundModel soundModel_2_0(soundModel.header); in loadSoundModel_2_1()
609 auto result = memoryAsVector(soundModel.data, &soundModel_2_0.data); in loadSoundModel_2_1()
621 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel_2_1() argument
626 soundModel_2_0.common = soundModel.common.header; in loadPhraseSoundModel_2_1()
629 const_cast<V2_0::ISoundTriggerHw::Phrase*>(soundModel.phrases.data()), in loadPhraseSoundModel_2_1()
630 soundModel.phrases.size()); in loadPhraseSoundModel_2_1()
631 auto result = memoryAsVector(soundModel.common.data, &soundModel_2_0.common.data); in loadPhraseSoundModel_2_1()