Lines Matching refs:soundModel

91 int SoundTriggerHalImpl::doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,  in doLoadSoundModel()  argument
96 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size()); in doLoadSoundModel()
103 halSoundModel = convertSoundModelToHal(&soundModel); in doLoadSoundModel()
129 Return<void> SoundTriggerHalImpl::loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel() argument
134 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
139 const ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel() argument
143 _hidl_cb(doLoadSoundModel((const ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
350 const ISoundTriggerHw::SoundModel* soundModel) { in convertSoundModelToHal() argument
352 if (soundModel->type == SoundModelType::KEYPHRASE) { in convertSoundModelToHal()
354 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
362 reinterpret_cast<const ISoundTriggerHw::PhraseSoundModel*>(soundModel); in convertSoundModelToHal()
372 size_t allocSize = sizeof(struct sound_trigger_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
380 halModel->type = (sound_trigger_sound_model_type_t)soundModel->type; in convertSoundModelToHal()
381 convertUuidToHal(&halModel->uuid, &soundModel->uuid); in convertSoundModelToHal()
382 convertUuidToHal(&halModel->vendor_uuid, &soundModel->vendorUuid); in convertSoundModelToHal()
383 halModel->data_size = soundModel->data.size(); in convertSoundModelToHal()
385 const uint8_t* src = reinterpret_cast<const uint8_t*>(&soundModel->data[0]); in convertSoundModelToHal()
386 memcpy(dst, src, soundModel->data.size()); in convertSoundModelToHal()