• Home
  • Raw
  • Download

Lines Matching refs:env

35     JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) {  in Java_art_Test2009_NativeLocalCallStatic()  argument
36 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalCallStatic()
37 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalCallStatic()
38 env->CallVoidMethod(thnk, run_meth); in Java_art_Test2009_NativeLocalCallStatic()
40 env->GetStaticMethodID(obj_klass, "getGreetingStatic", "()Ljava/lang/String;"); in Java_art_Test2009_NativeLocalCallStatic()
41 if (env->ExceptionCheck()) { in Java_art_Test2009_NativeLocalCallStatic()
44 return reinterpret_cast<jstring>(env->CallStaticObjectMethod(obj_klass, new_method)); in Java_art_Test2009_NativeLocalCallStatic()
49 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalCallVirtual() argument
50 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalCallVirtual()
51 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalCallVirtual()
52 env->CallVoidMethod(thnk, run_meth); in Java_art_Test2009_NativeLocalCallVirtual()
53 jmethodID new_method = env->GetMethodID(obj_klass, "getGreeting", "()Ljava/lang/String;"); in Java_art_Test2009_NativeLocalCallVirtual()
54 if (env->ExceptionCheck()) { in Java_art_Test2009_NativeLocalCallVirtual()
57 return reinterpret_cast<jstring>(env->CallObjectMethod(obj, new_method)); in Java_art_Test2009_NativeLocalCallVirtual()
61 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalGetIField() argument
62 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalGetIField()
63 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalGetIField()
64 env->CallVoidMethod(thnk, run_meth); in Java_art_Test2009_NativeLocalGetIField()
65 jfieldID new_field = env->GetFieldID(obj_klass, "greeting", "Ljava/lang/String;"); in Java_art_Test2009_NativeLocalGetIField()
66 if (env->ExceptionCheck()) { in Java_art_Test2009_NativeLocalGetIField()
69 env->SetObjectField(obj, new_field, env->NewStringUTF("VirtualString")); in Java_art_Test2009_NativeLocalGetIField()
70 return reinterpret_cast<jstring>(env->GetObjectField(obj, new_field)); in Java_art_Test2009_NativeLocalGetIField()
74 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalGetSField() argument
75 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalGetSField()
76 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalGetSField()
77 env->CallVoidMethod(thnk, run_meth); in Java_art_Test2009_NativeLocalGetSField()
78 jfieldID new_field = env->GetStaticFieldID(obj_klass, "static_greeting", "Ljava/lang/String;"); in Java_art_Test2009_NativeLocalGetSField()
79 if (env->ExceptionCheck()) { in Java_art_Test2009_NativeLocalGetSField()
82 env->SetStaticObjectField(obj_klass, new_field, env->NewStringUTF("StaticString")); in Java_art_Test2009_NativeLocalGetSField()
83 return reinterpret_cast<jstring>(env->GetStaticObjectField(obj_klass, new_field)); in Java_art_Test2009_NativeLocalGetSField()