Lines Matching refs:jenv
248 JNIEnv *jenv; in make_env_key() local
249 (*globVM)->GetEnv(globVM, (void **)&jenv, JNI_VERSION_1_8); in make_env_key()
251 jclass rcls = (*jenv)->FindClass(jenv, "java/lang/Runnable"); in make_env_key()
252 jmethodID runm = (*jenv)->GetMethodID(jenv, rcls, "run", "()V"); in make_env_key()
254 runGlobal = (jmethodID)(*jenv)->NewGlobalRef(jenv, (jobject)runm); in make_env_key()
261 JNIEnv *jenv = (JNIEnv *) pthread_getspecific(env_key); in mraa_java_isr_callback() local
262 (*jenv)->CallVoidMethod(jenv, (jobject)data, runGlobal); in mraa_java_isr_callback()
296 JNIEnv *jenv; in mraa_gpio_interrupt_handler() local
298 jint err = (*globVM)->AttachCurrentThreadAsDaemon(globVM, (void **)&jenv, NULL); in mraa_gpio_interrupt_handler()
307 pthread_setspecific(env_key, jenv); in mraa_gpio_interrupt_handler()
399 (*jenv)->DeleteGlobalRef(jenv, (jobject)dev->isr_args); in mraa_gpio_interrupt_handler()
471 JNIEnv *jenv; in mraa_gpio_isr() local
475 (*globVM)->GetEnv(globVM, (void **)&jenv, JNI_VERSION_1_8); in mraa_gpio_isr()
476 jobject grunnable = (*jenv)->NewGlobalRef(jenv, (jobject) args); in mraa_gpio_isr()