Home | History | Annotate | Download | only in soundtrigger

Lines Matching defs:module

63         ALOGE("couldn't load sound trigger module %s.%s (%s)",
87 ALOGI("loaded default module %s, handle %d", descriptor.properties.description,
91 sp<Module> module = new Module(this, dev, descriptor, client);
92 mModules.add(descriptor.handle, module);
130 ALOGV("attach module %d", handle);
144 sp<Module> module = mModules.valueAt(index);
146 module->setClient(client);
147 IInterface::asBinder(client)->linkToDeath(module);
148 moduleInterface = module;
150 module->setCaptureState_l(mCaptureState);
167 void SoundTriggerHwService::detachModule(sp<Module> module)
171 module->clearClient();
219 Module *module = (Module *)cookie;
220 if (module == NULL) {
223 sp<SoundTriggerHwService> service = module->service().promote();
228 service->sendRecognitionEvent(event, module);
275 Module *module)
278 if (module == NULL) {
285 sp<Module> strongModule;
287 if (mModules.valueAt(i).get() == module) {
304 Module *module = (Module *)cookie;
305 if (module == NULL) {
308 sp<SoundTriggerHwService> service = module->service().promote();
313 service->sendSoundModelEvent(event, module);
332 Module *module)
339 sp<Module> strongModule;
341 if (mModules.valueAt(i).get() == module) {
370 Module *module)
376 sp<Module> strongModule;
378 if (mModules.valueAt(i).get() == module) {
399 sp<Module> module;
402 module = event->mModule.promote();
403 if (module == 0) {
407 module->onCallbackEvent(event);
478 wp<Module> module)
479 : mType(type), mMemory(memory), mModule(module)
489 #define LOG_TAG "SoundTriggerHwService::Module"
491 SoundTriggerHwService::Module::Module(const sp<SoundTriggerHwService>& service,
500 SoundTriggerHwService::Module::~Module() {
503 void SoundTriggerHwService::Module::detach() {
530 status_t SoundTriggerHwService::Module::loadSoundModel(const sp<IMemory>& modelMemory,
575 status_t SoundTriggerHwService::Module::unloadSoundModel(sound_model_handle_t handle)
586 status_t SoundTriggerHwService::Module::unloadSoundModel_l(sound_model_handle_t handle)
602 status_t SoundTriggerHwService::Module::startRecognition(sound_model_handle_t handle,
650 status_t SoundTriggerHwService::Module::stopRecognition(sound_model_handle_t handle)
672 void SoundTriggerHwService::Module::onCallbackEvent(const sp<CallbackEvent>& event)
743 sp<SoundTriggerHwService::Model> SoundTriggerHwService::Module::getModel(
754 void SoundTriggerHwService::Module::binderDied(
756 ALOGW("client binder died for module %d", mDescriptor.handle);
761 void SoundTriggerHwService::Module::setCaptureState_l(bool active)
763 ALOGV("Module::setCaptureState_l %d", active);
866 status_t SoundTriggerHwService::Module::dump(int fd __unused,