Lines Matching refs:client
53 sp<SoundTriggerHw::SoundModelClient> client = in soundModelCallback_() local
56 if (client == 0) { in soundModelCallback_()
60 if (halEvent->model != client->getHalHandle()) { in soundModelCallback_()
62 (int)halEvent->model, (int)client->getHalHandle()); in soundModelCallback_()
66 client->soundModelCallback(halEvent); in soundModelCallback_()
75 sp<SoundTriggerHw::SoundModelClient> client = in recognitionCallback_() local
78 if (client == 0) { in recognitionCallback_()
83 client->recognitionCallback(halEvent); in recognitionCallback_()
110 sp<SoundTriggerHw::SoundModelClient> client) { in doLoadSoundModel() argument
128 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback_, client.get(), in doLoadSoundModel()
137 client->setHalHandle(halHandle); in doLoadSoundModel()
140 mClients.add(client->getId(), client); in doLoadSoundModel()
151 sp<SoundTriggerHw::SoundModelClient> client = in loadSoundModel() local
153 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
162 sp<SoundTriggerHw::SoundModelClient> client = in loadPhraseSoundModel() local
164 _hidl_cb(doLoadSoundModel((const V2_0::ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
165 client->getId()); in loadPhraseSoundModel()
171 sp<SoundTriggerHw::SoundModelClient> client; in unloadSoundModel() local
180 client = mClients.valueFor(modelHandle); in unloadSoundModel()
181 if (client == 0) { in unloadSoundModel()
187 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
199 sp<SoundTriggerHw::SoundModelClient> client; in startRecognition() local
209 client = mClients.valueFor(modelHandle); in startRecognition()
210 if (client == 0) { in startRecognition()
223 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
224 recognitionCallback_, client.get()); in startRecognition()
234 sp<SoundTriggerHw::SoundModelClient> client; in stopRecognition() local
242 client = mClients.valueFor(modelHandle); in stopRecognition()
243 if (client == 0) { in stopRecognition()
249 ret = mHwDevice->stop_recognition(mHwDevice, client->getHalHandle()); in stopRecognition()
611 sp<SoundModelClient> client = in loadSoundModel_2_1() local
613 _hidl_cb(doLoadSoundModel(soundModel_2_0, client), client->getId()); in loadSoundModel_2_1()
633 sp<SoundModelClient> client = in loadPhraseSoundModel_2_1() local
635 _hidl_cb(doLoadSoundModel((const V2_0::ISoundTriggerHw::SoundModel&)soundModel_2_0, client), in loadPhraseSoundModel_2_1()
636 client->getId()); in loadPhraseSoundModel_2_1()
694 sp<SoundModelClient> client; in getModelState() local
701 client = mClients.valueFor(modelHandle); in getModelState()
702 if (client == 0) { in getModelState()
717 return mHwDevice->get_model_state(mHwDevice, client->getHalHandle()); in getModelState()