Lines Matching refs:env
80 static jclass FindClass(JNIEnv* env, const char* signature, bool androidOnly) {
81 jclass cls = (*env)->FindClass(env, signature);
86 return (*env)->NewGlobalRef(env, cls);
89 static jmethodID FindMethod(JNIEnv* env, jclass cls, in FindMethod() argument
93 method = (*env)->GetStaticMethodID(env, cls, name, signature); in FindMethod()
95 method = (*env)->GetMethodID(env, cls, name, signature); in FindMethod()
101 static jfieldID FindField(JNIEnv* env, jclass cls, in FindField() argument
105 field = (*env)->GetStaticFieldID(env, cls, name, signature); in FindField()
107 field = (*env)->GetFieldID(env, cls, name, signature); in FindField()
138 void EnsureInitialized(JNIEnv* env) { in EnsureInitialized() argument
142 g_init_env = env; in EnsureInitialized()
176 jclass JniConstants_ ## cls ## Class(JNIEnv* env) { \
177 EnsureInitialized(env); \
184 jmethodID JniConstants_ ## cls ## _ ## method(JNIEnv* env) { \
185 EnsureInitialized(env); \
191 jfieldID JniConstants_ ## cls ## _ ## field(JNIEnv* env) { \
192 EnsureInitialized(env); \