Lines Matching refs:halModel
373 struct sound_trigger_sound_model* halModel = NULL; in convertSoundModelToHal() local
391 halModel = reinterpret_cast<struct sound_trigger_sound_model*>(halKeyPhraseModel); in convertSoundModelToHal()
392 halModel->data_offset = sizeof(struct sound_trigger_phrase_sound_model); in convertSoundModelToHal()
395 halModel = static_cast<struct sound_trigger_sound_model*>(malloc(allocSize)); in convertSoundModelToHal()
396 LOG_ALWAYS_FATAL_IF(halModel == NULL, in convertSoundModelToHal()
400 halModel->data_offset = sizeof(struct sound_trigger_sound_model); 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()
406 uint8_t* dst = reinterpret_cast<uint8_t*>(halModel) + halModel->data_offset; in convertSoundModelToHal()
410 return halModel; in convertSoundModelToHal()