Lines Matching refs:handle

247 static char *sound_trigger_keyphrase_event_alloc(sound_model_handle_t handle,
258 event->common.model = handle;
286 static char *sound_trigger_generic_event_alloc(sound_model_handle_t handle,
297 event->common.model = handle;
359 ALOGI("No model for this handle");
370 ALOGI("%s Bad sound model handle.", __func__);
371 write_string(conn_socket, "Bad sound model handle.\n");
397 sound_model_handle_t handle) {
402 if (current_model_context->model_handle == handle) {
487 write_vastr(conn_socket, "Model handle: %d\n", last_model_context->model_handle);
488 ALOGI("Model handle: %d", last_model_context->model_handle);
612 sound_model_handle_t *handle) {
618 if (handle == NULL || sound_model == NULL) {
657 *handle = model_context->model_handle;
671 ALOGI("Sound model loaded: Handle %d ", *handle);
683 ALOGI("Deleting model with handle: %d", model_context->model_handle);
693 sound_model_handle_t handle) {
698 ALOGI("unload_sound_model:%d", handle);
706 if (current_model_context->model_handle == handle) {
715 ALOGW("Can't find sound model handle %d in registered list", handle);
731 sound_model_handle_t handle,
742 struct recognition_context *model_context = get_model_context(stdev, handle);
744 ALOGW("Can't find sound model handle %d in registered list", handle);
764 ALOGI("%s done for handle %d", __func__, handle);
769 sound_model_handle_t handle) {
774 struct recognition_context *model_context = get_model_context(stdev, handle);
776 ALOGW("Can't find sound model handle %d in registered list", handle);
788 ALOGI("%s done for handle %d", __func__, handle);
805 ALOGI("%s stopped handle %d", __func__, model_context->model_handle);