• Home
  • Raw
  • Download

Lines Matching refs:client

36     sp<SoundModelClient> client =  in soundModelCallback()  local
38 if (client == 0) { in soundModelCallback()
42 if (halEvent->model != client->getHalHandle()) { in soundModelCallback()
44 (int)halEvent->model, (int)client->getHalHandle()); in soundModelCallback()
48 client->soundModelCallback(halEvent); in soundModelCallback()
58 sp<SoundModelClient> client = in recognitionCallback() local
60 if (client == 0) { in recognitionCallback()
65 client->recognitionCallback(halEvent); in recognitionCallback()
92 sp<SoundModelClient> client) { in doLoadSoundModel() argument
110 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback, client.get(), in doLoadSoundModel()
119 client->setHalHandle(halHandle); in doLoadSoundModel()
122 mClients.add(client->getId(), client); in doLoadSoundModel()
133 sp<SoundModelClient> client = new SoundModelClient_2_0(nextUniqueModelId(), cookie, callback); in loadSoundModel() local
134 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
142 sp<SoundModelClient> client = new SoundModelClient_2_0(nextUniqueModelId(), cookie, callback); in loadPhraseSoundModel() local
143 _hidl_cb(doLoadSoundModel((const ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
144 client->getId()); in loadPhraseSoundModel()
150 sp<SoundModelClient> client; in unloadSoundModel() local
159 client = mClients.valueFor(modelHandle); in unloadSoundModel()
160 if (client == 0) { in unloadSoundModel()
166 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
177 sp<SoundModelClient> client; in startRecognition() local
187 client = mClients.valueFor(modelHandle); in startRecognition()
188 if (client == 0) { in startRecognition()
200 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
201 recognitionCallback, client.get()); in startRecognition()
211 sp<SoundModelClient> client; in stopRecognition() local
219 client = mClients.valueFor(modelHandle); in stopRecognition()
220 if (client == 0) { in stopRecognition()
226 ret = mHwDevice->stop_recognition(mHwDevice, client->getHalHandle()); in stopRecognition()