Home
last modified time | relevance | path

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

/hardware/libhardware/modules/soundtrigger/
Dsound_trigger_hw.c205 struct recognition_context *model_context = NULL; in fetch_model_with_handle() local
209 model_context = last_model_context; in fetch_model_with_handle()
214 return model_context; in fetch_model_with_handle()
311 struct recognition_context *model_context = fetch_model_with_handle(stdev, model_handle_str); in send_event_with_handle() local
312 if (model_context) { in send_event_with_handle()
314 if (model_context->recognition_callback == NULL) { in send_event_with_handle()
319 if (model_context->model_type == SOUND_MODEL_TYPE_KEYPHRASE) { in send_event_with_handle()
322 sound_trigger_keyphrase_event_alloc(model_context->model_handle, in send_event_with_handle()
323 model_context->config, status); in send_event_with_handle()
325 model_context->recognition_callback(event, model_context->recognition_cookie); in send_event_with_handle()
[all …]