Lines Matching refs:version
51 static bool IsBadJniVersion(int version) { in IsBadJniVersion() argument
53 return version != JNI_VERSION_1_2 && version != JNI_VERSION_1_4 && version != JNI_VERSION_1_6; in IsBadJniVersion()
286 static jint GetEnv(JavaVM* vm, void** env, jint version) { in GetEnv() argument
290 if (IsBadJniVersion(version) && version != JNI_VERSION_1_1) { in GetEnv()
291 LOG(ERROR) << "Bad JNI version passed to GetEnv: " << version; in GetEnv()
331 if (IsBadJniVersion(args->version)) { in AttachCurrentThreadInternal()
334 << args->version; in AttachCurrentThreadInternal()
711 int version = (*jni_on_load)(this, nullptr); in LoadNativeLibrary() local
719 if (version == JNI_ERR) { in LoadNativeLibrary()
721 } else if (IsBadJniVersion(version)) { in LoadNativeLibrary()
723 path.c_str(), version); in LoadNativeLibrary()
794 if (IsBadJniVersion(args->version)) { in JNI_CreateJavaVM()
795 LOG(ERROR) << "Bad JNI version passed to CreateJavaVM: " << args->version; in JNI_CreateJavaVM()