Lines Matching refs:env
30 JNIEnv *env = 0;
32 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) {
36 ASSERT(env);
37 if (!env) {
41 if (!latinime::register_BinaryDictionary(env)) {
45 if (!latinime::register_DicTraverseSession(env)) {
49 if (!latinime::register_ProximityInfo(env)) {
58 int registerNativeMethods(JNIEnv *env, const char *className, JNINativeMethod *methods,
60 jclass clazz = env->FindClass(className);
65 if (env->RegisterNatives(clazz, methods, numMethods) < 0) {
67 env->DeleteLocalRef(clazz);
70 env->DeleteLocalRef(clazz);