Home
last modified time | relevance | path

Searched refs:halModel (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.cpp351 struct sound_trigger_sound_model* halModel = NULL; in convertSoundModelToHal() local
369 halModel = reinterpret_cast<struct sound_trigger_sound_model*>(halKeyPhraseModel); in convertSoundModelToHal()
370 halModel->data_offset = sizeof(struct sound_trigger_phrase_sound_model); in convertSoundModelToHal()
373 halModel = static_cast<struct sound_trigger_sound_model*>(malloc(allocSize)); in convertSoundModelToHal()
374 LOG_ALWAYS_FATAL_IF(halModel == NULL, in convertSoundModelToHal()
378 halModel->data_offset = sizeof(struct sound_trigger_sound_model); 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()
[all …]
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp373 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()
[all …]
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.cpp381 struct sound_trigger_sound_model* halModel = NULL; in convertSoundModelToHal() local
399 halModel = reinterpret_cast<struct sound_trigger_sound_model*>(halKeyPhraseModel); in convertSoundModelToHal()
400 halModel->data_offset = sizeof(struct sound_trigger_phrase_sound_model); in convertSoundModelToHal()
403 halModel = static_cast<struct sound_trigger_sound_model*>(malloc(allocSize)); in convertSoundModelToHal()
404 LOG_ALWAYS_FATAL_IF(halModel == NULL, in convertSoundModelToHal()
408 halModel->data_offset = sizeof(struct sound_trigger_sound_model); 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()
[all …]