Lines Matching refs:env_

301     env_ = Thread::Current()->GetJniEnv();  in SetUpForTest()
302 jklass_ = env_->FindClass("MyClassNatives"); in SetUpForTest()
306 jmethod_ = env_->GetStaticMethodID(jklass_, method_name, method_sig); in SetUpForTest()
308 jmethod_ = env_->GetMethodID(jklass_, method_name, method_sig); in SetUpForTest()
314 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest()
317 env_->UnregisterNatives(jklass_); in SetUpForTest()
320 jmethodID constructor = env_->GetMethodID(jklass_, "<init>", "()V"); in SetUpForTest()
321 jobj_ = env_->NewObject(jklass_, constructor); in SetUpForTest()
381 JNIEnv* env_; member in art::JniCompilerTest
646 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl()
648 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl()
662 LoadNativeLibrary(env_, "", class_loader_, nullptr, &reason)) in JNI_TEST()
665 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 24); in JNI_TEST()
678 LoadNativeLibrary(env_, "", class_loader_, nullptr, &reason)) in JNI_TEST_NORMAL_ONLY()
681 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 42); in JNI_TEST_NORMAL_ONLY()
699 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 42); in CompileAndRunIntMethodImpl()
702 result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 0xCAFED00D); in CompileAndRunIntMethodImpl()
722 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 99, 10); in CompileAndRunIntIntMethodImpl()
725 result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 0xCAFEBABE, in CompileAndRunIntIntMethodImpl()
748 jlong result = env_->CallNonvirtualLongMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRunLongLongMethodImpl()
751 result = env_->CallNonvirtualLongMethod(jobj_, jklass_, jmethod_, b, a); in CompileAndRunLongLongMethodImpl()
771 jdouble result = env_->CallNonvirtualDoubleMethod(jobj_, jklass_, jmethod_, in CompileAndRunDoubleDoubleMethodImpl()
777 result = env_->CallNonvirtualDoubleMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRunDoubleDoubleMethodImpl()
797 jlong result = env_->CallNonvirtualLongMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRun_fooJJ_synchronizedImpl()
826 jobject result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 0, nullptr, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
827 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunIntObjectObjectMethodImpl()
830 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 0, nullptr, jklass_); in CompileAndRunIntObjectObjectMethodImpl()
831 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunIntObjectObjectMethodImpl()
833 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 1, nullptr, jklass_); in CompileAndRunIntObjectObjectMethodImpl()
834 EXPECT_TRUE(env_->IsSameObject(nullptr, result)); in CompileAndRunIntObjectObjectMethodImpl()
836 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 2, nullptr, jklass_); in CompileAndRunIntObjectObjectMethodImpl()
837 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunIntObjectObjectMethodImpl()
840 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 0, jklass_, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
841 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunIntObjectObjectMethodImpl()
843 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 1, jklass_, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
844 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunIntObjectObjectMethodImpl()
846 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 2, jklass_, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
847 EXPECT_TRUE(env_->IsSameObject(nullptr, result)); in CompileAndRunIntObjectObjectMethodImpl()
869 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 20, 30); in CompileAndRunStaticIntIntMethodImpl()
892 jdouble result = env_->CallStaticDoubleMethod(jklass_, jmethod_, 99.0, 10.0); in CompileAndRunStaticDoubleDoubleMethodImpl()
897 result = env_->CallStaticDoubleMethod(jklass_, jmethod_, a, b); in CompileAndRunStaticDoubleDoubleMethodImpl()
929 jdouble result = env_->CallStaticDoubleMethod(jklass_, jmethod_, 2.0); in RunStaticLogDoubleMethodImpl()
950 jfloat result = env_->CallStaticFloatMethod(jklass_, jmethod_, 2.0); in RunStaticLogFloatMethodImpl()
971 jboolean result = env_->CallStaticBooleanMethod(jklass_, jmethod_); in RunStaticReturnTrueImpl()
981 jboolean result = env_->CallStaticBooleanMethod(jklass_, jmethod_); in JNI_TEST_CRITICAL()
990 jint result = env_->CallStaticIntMethod(jklass_, jmethod_); in JNI_TEST_CRITICAL()
1005 jdouble result = env_->CallStaticDoubleMethod(jklass_, jmethod_); in RunGenericStaticReturnDoubleImpl()
1021 jlong result = env_->CallStaticLongMethod(jklass_, jmethod_); in RunGenericStaticReturnLongImpl()
1046 jobject result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
1047 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1050 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, jobj_); in CompileAndRunStaticIntObjectObjectMethodImpl()
1051 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1053 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, nullptr, jobj_); in CompileAndRunStaticIntObjectObjectMethodImpl()
1054 EXPECT_TRUE(env_->IsSameObject(nullptr, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1056 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, nullptr, jobj_); in CompileAndRunStaticIntObjectObjectMethodImpl()
1057 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1060 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, jobj_, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
1061 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1063 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, jobj_, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
1064 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1066 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, jobj_, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
1067 EXPECT_TRUE(env_->IsSameObject(nullptr, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
1094 jobject result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1095 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1098 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, jobj_); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1099 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1101 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, nullptr, jobj_); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1102 EXPECT_TRUE(env_->IsSameObject(nullptr, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1104 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, nullptr, jobj_); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1105 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1108 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, jobj_, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1109 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1111 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, jobj_, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1112 EXPECT_TRUE(env_->IsSameObject(jobj_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1114 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, jobj_, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1115 EXPECT_TRUE(env_->IsSameObject(nullptr, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
1149 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in ExceptionHandlingImpl()
1154 ScopedLocalRef<jclass> jlre(env_, env_->FindClass("java/lang/RuntimeException")); in ExceptionHandlingImpl()
1158 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in ExceptionHandlingImpl()
1160 EXPECT_TRUE(env_->ExceptionCheck() == JNI_TRUE); in ExceptionHandlingImpl()
1161 ScopedLocalRef<jthrowable> exception(env_, env_->ExceptionOccurred()); in ExceptionHandlingImpl()
1162 env_->ExceptionClear(); in ExceptionHandlingImpl()
1163 EXPECT_TRUE(env_->IsInstanceOf(exception.get(), jlre.get())); in ExceptionHandlingImpl()
1167 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in ExceptionHandlingImpl()
1222 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 10); in NativeStackTraceElementImpl()
1236 jobject result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, jobj_); in ReturnGlobalRefImpl()
1237 EXPECT_EQ(JNILocalRefType, env_->GetObjectRefType(result)); in ReturnGlobalRefImpl()
1238 EXPECT_TRUE(env_->IsSameObject(result, jobj_)); in ReturnGlobalRefImpl()
1256 jint result = env_->CallIntMethod(jobj_, jmethod_, i); in LocalReferenceTableClearingTestImpl()
1275 env_->CallStaticVoidMethod(jklass_, jmethod_, jobj_, 1234, jklass_, 5678, 9876); in JavaLangSystemArrayCopyImpl()
1292 jboolean result = env_->CallBooleanMethod(jobj_, jmethod_, jobj_, INT64_C(0x12345678ABCDEF88), in CompareAndSwapIntImpl()
1311 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 0x12345678ABCDEF88LL, jobj_, in GetTextImpl()
1335 env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, nullptr)); in GetSinkPropertiesNativeImpl()
1362 env_->CallObjectMethod(jobj_, jmethod_); in UpcallReturnTypeChecking_InstanceImpl()
1369 env_->CallObjectMethod(jobj_, jmethod_); in UpcallReturnTypeChecking_InstanceImpl()
1374 env_->CallStaticObjectMethod(jklass_, jmethod_); in UpcallReturnTypeChecking_InstanceImpl()
1389 env_->CallStaticObjectMethod(jklass_, jmethod_); in JNI_TEST()
1396 env_->CallStaticObjectMethod(jklass_, jmethod_); in JNI_TEST()
1401 env_->CallObjectMethod(jobj_, jmethod_); in JNI_TEST()
1427 env_->CallVoidMethod(jobj_, jmethod_, 123, env_->NewStringUTF("not a class!")); in UpcallArgumentTypeChecking_InstanceImpl()
1444 env_->CallStaticVoidMethod(jklass_, jmethod_, 123, env_->NewStringUTF("not a class!")); in JNI_TEST()
1460 jfloat result = env_->CallNonvirtualFloatMethod(jobj_, jklass_, jmethod_, in CompileAndRunFloatFloatMethodImpl()
1465 result = env_->CallNonvirtualFloatMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRunFloatFloatMethodImpl()
1483 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_, 1234, INT64_C(0x12345678ABCDEF0)); in CheckParameterAlignImpl()
1897 env_->CallNonvirtualVoidMethodA(jobj_, jklass_, jmethod_, args); in MaxParamNumberImpl()
1901 jintArray tmp = env_->NewIntArray(i); in MaxParamNumberImpl()
1906 env_->CallNonvirtualVoidMethodA(jobj_, jklass_, jmethod_, args); in MaxParamNumberImpl()
1917 env_->CallVoidMethod(jobj_, jmethod_); in JNI_TEST()
1920 EXPECT_TRUE(env_->ExceptionCheck() == JNI_TRUE); in JNI_TEST()
1936 env_->CallObjectMethod(jobj_, jmethod_); in JNI_TEST_NORMAL_ONLY()
1939 EXPECT_TRUE(env_->ExceptionCheck() == JNI_TRUE); in JNI_TEST_NORMAL_ONLY()
2009 env_->CallStaticVoidMethod(jklass_, jmethod_, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, f1, f2, in StackArgsIntsFirstImpl()
2079 env_->CallStaticVoidMethod(jklass_, jmethod_, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, i1, i2, i3, in StackArgsFloatsFirstImpl()
2148 env_->CallStaticVoidMethod(jklass_, jmethod_, i1, f1, i2, f2, i3, f3, i4, f4, i5, f5, i6, f6, i7, in StackArgsMixedImpl()
2181 ret = env_->CallStaticLongMethod(jklass_, jmethod_, 1, 2, 3, 4, 5, 6, 7); in StackArgsSignExtendedMips64Impl()
2185 ret = env_->CallStaticLongMethod(jklass_, jmethod_, 1, 2, 3, 4, 5, 6, -8); in StackArgsSignExtendedMips64Impl()
2262 env_->CallStaticVoidMethod(jklass_, jmethod_); in CriticalNativeImpl()