Lines Matching refs:Model
511 sp<Model> model = mModels.valueAt(i); in detach()
513 if (model->mState == Model::STATE_ACTIVE) { in detach()
569 sp<Model> model = new Model(*handle, session, ioHandle, device, sound_model->type); in loadSoundModel()
592 sp<Model> model = mModels.valueAt(index); in unloadSoundModel_l()
594 if (model->mState == Model::STATE_ACTIVE) { in unloadSoundModel_l()
596 model->mState = Model::STATE_IDLE; in unloadSoundModel_l()
619 sp<Model> model = getModel(handle); in startRecognition()
628 if (model->mState == Model::STATE_ACTIVE) { in startRecognition()
643 model->mState = Model::STATE_ACTIVE; in startRecognition()
658 sp<Model> model = getModel(handle); in stopRecognition()
663 if (model->mState != Model::STATE_ACTIVE) { in stopRecognition()
667 model->mState = Model::STATE_IDLE; in stopRecognition()
693 sp<Model> model = getModel(recognitionEvent->model); in onCallbackEvent()
698 if (model->mState != Model::STATE_ACTIVE) { in onCallbackEvent()
704 model->mState = Model::STATE_IDLE; in onCallbackEvent()
717 sp<Model> model = getModel(soundmodelEvent->model); in onCallbackEvent()
743 sp<SoundTriggerHwService::Model> SoundTriggerHwService::Module::getModel( in getModel()
746 sp<Model> model; in getModel()
797 sp<Model> model = mModels.valueAt(i); in setCaptureState_l()
798 if (model->mState == Model::STATE_ACTIVE) { in setCaptureState_l()
857 SoundTriggerHwService::Model::Model(sound_model_handle_t handle, audio_session_t session, in Model() function in android::SoundTriggerHwService::Model