Lines Matching refs:SoundModel
111 int SoundTriggerHalImpl::doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
121 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size());
128 halSoundModel = convertSoundModelToHal(&soundModel);
163 Return<void> SoundTriggerHalImpl::loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
169 int32_t ret = doLoadSoundModel(soundModel, callback, cookie, &modelId);
176 const ISoundTriggerHw::PhraseSoundModel& soundModel,
182 int32_t ret = doLoadSoundModel((const ISoundTriggerHw::SoundModel&)soundModel,
403 const ISoundTriggerHw::SoundModel *soundModel)
406 if (soundModel->type == SoundModelType::KEYPHRASE) {
408 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size();
415 reinterpret_cast<const ISoundTriggerHw::PhraseSoundModel *>(soundModel);
427 sizeof(struct sound_trigger_sound_model) + soundModel->data.size();
435 halModel->type = (sound_trigger_sound_model_type_t)soundModel->type;
436 convertUuidToHal(&halModel->uuid, &soundModel->uuid);
437 convertUuidToHal(&halModel->vendor_uuid, &soundModel->vendorUuid);
438 halModel->data_size = soundModel->data.size();
440 const uint8_t *src = reinterpret_cast<const uint8_t *>(&soundModel->data[0]);
441 memcpy(dst, src, soundModel->data.size());