Lines Matching refs:module
350 static sp<SoundTrigger> setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module)
355 if (module.get()) {
356 module->incStrong((void*)setSoundTrigger);
361 env->SetLongField(thiz, gModuleFields.mNativeContext, (jlong)module.get());
409 ALOGV("listModules module %zu id %d description %s maxSoundModels %d",
452 sp<SoundTrigger> module = SoundTrigger::attach(handle, callback);
453 if (module == 0) {
457 setSoundTrigger(env, thiz, module);
464 sp<SoundTrigger> module = setSoundTrigger(env, thiz, 0);
465 ALOGV("detach module %p", module.get());
466 if (module != 0) {
467 ALOGV("detach module->detach()");
468 module->detach();
476 sp<SoundTrigger> module = getSoundTrigger(env, thiz);
477 if (module != 0) {
500 sp<SoundTrigger> module = getSoundTrigger(env, thiz);
501 if (module == NULL) {
632 status = module->loadSoundModel(memory, &handle);
652 sp<SoundTrigger> module = getSoundTrigger(env, thiz);
653 if (module == NULL) {
656 status = module->unloadSoundModel((sound_model_handle_t)jHandle);
667 sp<SoundTrigger> module = getSoundTrigger(env, thiz);
668 if (module == NULL) {
750 status = module->startRecognition(jHandle, memory);
760 sp<SoundTrigger> module = getSoundTrigger(env, thiz);
761 if (module == NULL) {
764 status = module->stopRecognition(jHandle);