Lines Matching refs:env
33 JNIEnv *env = 0; in JNI_OnLoad() local
35 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
39 ASSERT(env); in JNI_OnLoad()
40 if (!env) { in JNI_OnLoad()
45 if (!latinime::register_BinaryDictionary(env)) { in JNI_OnLoad()
49 if (!latinime::register_DicTraverseSession(env)) { in JNI_OnLoad()
53 if (!latinime::register_ProximityInfo(env)) { in JNI_OnLoad()
58 if (!latinime::register_Ver3DictDecoder(env)) { in JNI_OnLoad()
67 int registerNativeMethods(JNIEnv *env, const char *const className, const JNINativeMethod *methods, in registerNativeMethods() argument
69 jclass clazz = env->FindClass(className); in registerNativeMethods()
74 if (env->RegisterNatives(clazz, methods, numMethods) < 0) { in registerNativeMethods()
76 env->DeleteLocalRef(clazz); in registerNativeMethods()
79 env->DeleteLocalRef(clazz); in registerNativeMethods()