Lines Matching refs:env
31 JNIEnv *env = 0; in JNI_OnLoad() local
33 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
37 ASSERT(env); in JNI_OnLoad()
38 if (!env) { in JNI_OnLoad()
42 if (!latinime::register_BinaryDictionary(env)) { in JNI_OnLoad()
46 if (!latinime::register_BinaryDictionaryUtils(env)) { in JNI_OnLoad()
50 if (!latinime::register_DicTraverseSession(env)) { in JNI_OnLoad()
54 if (!latinime::register_ProximityInfo(env)) { in JNI_OnLoad()
63 int registerNativeMethods(JNIEnv *env, const char *const className, const JNINativeMethod *methods, in registerNativeMethods() argument
65 jclass clazz = env->FindClass(className); in registerNativeMethods()
70 if (env->RegisterNatives(clazz, methods, numMethods) != 0) { in registerNativeMethods()
72 env->DeleteLocalRef(clazz); in registerNativeMethods()
75 env->DeleteLocalRef(clazz); in registerNativeMethods()