Lines Matching refs:module

99     sp<Module> module = new Module(this, halInterface, descriptor);  in onFirstRef()  local
100 mModules.add(descriptor.handle, module); in onFirstRef()
155 sp<Module> module = mModules.valueAt(index); in attach() local
157 sp<ModuleClient> moduleClient = module->addClient(client, opPackageName); in attach()
216 Module *module = (Module *)cookie; in recognitionCallback() local
217 if (module == NULL) { in recognitionCallback()
220 sp<SoundTriggerHwService> service = module->service().promote(); in recognitionCallback()
225 service->sendRecognitionEvent(event, module); in recognitionCallback()
273 Module *module) in sendRecognitionEvent() argument
275 if (module == NULL) { in sendRecognitionEvent()
285 callbackEvent->setModule(module); in sendRecognitionEvent()
293 Module *module = (Module *)cookie; in soundModelCallback() local
294 if (module == NULL) { in soundModelCallback()
297 sp<SoundTriggerHwService> service = module->service().promote(); in soundModelCallback()
302 service->sendSoundModelEvent(event, module); in soundModelCallback()
322 Module *module) in sendSoundModelEvent() argument
330 callbackEvent->setModule(module); in sendSoundModelEvent()
351 Module *module) in sendServiceStateEvent() argument
359 callbackEvent->setModule(module); in sendServiceStateEvent()
384 sp<Module> module; in onCallbackEvent() local
389 module = event->mModule.promote(); in onCallbackEvent()
390 if (module == 0) { in onCallbackEvent()
399 if (mModules.valueAt(i).get() == module.get()) { in onCallbackEvent()
410 if (module != 0) { in onCallbackEvent()
412 module->onCallbackEvent(event); in onCallbackEvent()
958 SoundTriggerHwService::ModuleClient::ModuleClient(const sp<Module>& module, in ModuleClient() argument
961 : mModule(module), mClient(client), mOpPackageName(opPackageName) in ModuleClient()
999 sp<Module> module = mModule.promote(); in detach() local
1000 if (module == 0) { in detach()
1003 module->detach(this); in detach()
1019 sp<Module> module = mModule.promote(); in loadSoundModel() local
1020 if (module == 0) { in loadSoundModel()
1023 return module->loadSoundModel(modelMemory, this, handle); in loadSoundModel()
1035 sp<Module> module = mModule.promote(); in unloadSoundModel() local
1036 if (module == 0) { in unloadSoundModel()
1039 return module->unloadSoundModel(handle); in unloadSoundModel()
1055 sp<Module> module = mModule.promote(); in startRecognition() local
1056 if (module == 0) { in startRecognition()
1059 return module->startRecognition(handle, dataMemory); in startRecognition()
1071 sp<Module> module = mModule.promote(); in stopRecognition() local
1072 if (module == 0) { in stopRecognition()
1075 return module->stopRecognition(handle); in stopRecognition()
1087 sp<Module> module = mModule.promote(); in getModelState() local
1088 if (module == 0) { in getModelState()
1091 return module->getModelState(handle); in getModelState()
1100 sp<Module> module = mModule.promote(); in setCaptureState_l() local
1101 if (module == 0) { in setCaptureState_l()
1106 state = (active && !module->isConcurrentCaptureAllowed()) ? in setCaptureState_l()
1109 service = module->service().promote(); in setCaptureState_l()