Lines Matching refs:mHwDevice

88     ALOGV("getProperties() mHwDevice %p", mHwDevice);  in getProperties()
93 if (mHwDevice == NULL) { in getProperties()
98 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
117 if (mHwDevice == NULL) { in doLoadSoundModel()
129 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback_, client.get(), in doLoadSoundModel()
174 if (mHwDevice == NULL) { in unloadSoundModel()
188 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
203 if (mHwDevice == NULL) { in startRecognition()
224 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
236 if (mHwDevice == NULL) { in stopRecognition()
250 ret = mHwDevice->stop_recognition(mHwDevice, client->getHalHandle()); in stopRecognition()
258 if (mHwDevice == NULL) { in stopAllRecognitions()
263 ret = mHwDevice->stop_all_recognitions(mHwDevice); in stopAllRecognitions()
269 SoundTriggerHw::SoundTriggerHw() : mModuleName("primary"), mHwDevice(NULL), mNextModelId(1) {} in SoundTriggerHw()
281 rc = sound_trigger_hw_device_open(mod, &mHwDevice); in onFirstRef()
285 mHwDevice = NULL; in onFirstRef()
288 if (mHwDevice->common.version != SOUND_TRIGGER_DEVICE_API_VERSION_1_3) { in onFirstRef()
289 ALOGE("wrong sound trigger hw device version %04x", mHwDevice->common.version); in onFirstRef()
290 sound_trigger_hw_device_close(mHwDevice); in onFirstRef()
291 mHwDevice = NULL; in onFirstRef()
295 ALOGI("onFirstRef() mModuleName %s mHwDevice %p", mModuleName, mHwDevice); in onFirstRef()
299 if (mHwDevice != NULL) { in ~SoundTriggerHw()
300 sound_trigger_hw_device_close(mHwDevice); in ~SoundTriggerHw()
752 if (mHwDevice == NULL) { in getModelState()
764 return mHwDevice->get_model_state(mHwDevice, client->getHalHandle()); in getModelState()
770 ALOGV("getProperties_2_3() mHwDevice %p", mHwDevice); in getProperties_2_3()
775 if (mHwDevice == NULL) { in getProperties_2_3()
780 header = mHwDevice->get_properties_extended(mHwDevice); in getProperties_2_3()
798 if (mHwDevice == NULL) { in startRecognition_2_3()
818 ret = mHwDevice->start_recognition_extended(mHwDevice, client->getHalHandle(), header, in startRecognition_2_3()
830 if (mHwDevice == NULL) { in setParameter()
842 return mHwDevice->set_parameter(mHwDevice, client->getHalHandle(), in setParameter()
849 if (mHwDevice == NULL) { in getParameter()
864 int32_t status = mHwDevice->get_parameter(mHwDevice, client->getHalHandle(), in getParameter()
874 if (mHwDevice == NULL) { in queryParameter()
889 int32_t status = mHwDevice->query_parameter( in queryParameter()
890 mHwDevice, client->getHalHandle(), convertModelParameterToHal(modelParam), &paramRange); in queryParameter()