Searched refs:env_ (Results 1 – 7 of 7) sorted by relevance
/art/runtime/ |
D | jni_internal_test.cc | 39 vm_->AttachCurrentThread(&env_, nullptr); in SetUp() 41 ScopedLocalRef<jclass> aioobe(env_, in SetUp() 42 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp() 44 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 46 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp() 48 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 50 ScopedLocalRef<jclass> sioobe(env_, in SetUp() 51 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp() 53 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp() 57 ScopedObjectAccess soa(env_); in ExpectException() [all …]
|
D | jni_env_ext.h | 102 explicit ScopedJniEnvLocalRefState(JNIEnvExt* env) : env_(env) { in ScopedJniEnvLocalRefState() 108 env_->locals.SetSegmentState(env_->local_ref_cookie); in ~ScopedJniEnvLocalRefState() 109 env_->local_ref_cookie = saved_local_ref_cookie_; in ~ScopedJniEnvLocalRefState() 113 JNIEnvExt* const env_;
|
D | reflection_test.cc | 40 vm_->AttachCurrentThread(&env_, nullptr); in SetUp() 42 ScopedLocalRef<jclass> aioobe(env_, in SetUp() 43 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp() 45 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 47 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp() 49 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 51 ScopedLocalRef<jclass> sioobe(env_, in SetUp() 52 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp() 54 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp() 59 env_->DeleteGlobalRef(aioobe_); in CleanUpJniEnv() [all …]
|
D | scoped_thread_state_change.h | 112 return env_; in Env() 180 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->vm) { in ScopedObjectAccessAlreadyRunnable() 185 : self_(self), env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable() 186 vm_(env_ != nullptr ? env_->vm : nullptr) { in ScopedObjectAccessAlreadyRunnable() 192 : self_(nullptr), env_(nullptr), vm_(down_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 201 JNIEnvExt* const env_; variable
|
/art/test/004-JniTest/ |
D | jni_test.cc | 365 : env_(env), in JniCallNonvirtualVoidMethodTest() 385 JNIEnv* const env_; member in JniCallNonvirtualVoidMethodTest 405 jclass c = env_->FindClass(class_name); in GetClass() 406 if (env_->ExceptionCheck()) { in GetClass() 407 env_->ExceptionDescribe(); in GetClass() 408 env_->FatalError(__FUNCTION__); in GetClass() 410 assert(!env_->ExceptionCheck()); in GetClass() 417 env_->GetMethodID(c, method_name, "()V") : in GetMethodID() 418 env_->GetStaticMethodID(c, method_name, "()V")); in GetMethodID() 419 if (env_->ExceptionCheck()) { in GetMethodID() [all …]
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 99 env_ = Thread::Current()->GetJniEnv(); in SetUpForTest() 100 jklass_ = env_->FindClass("MyClassNatives"); in SetUpForTest() 104 jmethod_ = env_->GetStaticMethodID(jklass_, method_name, method_sig); in SetUpForTest() 106 jmethod_ = env_->GetMethodID(jklass_, method_name, method_sig); in SetUpForTest() 112 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest() 115 env_->UnregisterNatives(jklass_); in SetUpForTest() 118 jmethodID constructor = env_->GetMethodID(jklass_, "<init>", "()V"); in SetUpForTest() 119 jobj_ = env_->NewObject(jklass_, constructor); in SetUpForTest() 170 JNIEnv* env_; member in art::JniCompilerTest 207 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl() [all …]
|
/art/compiler/driver/ |
D | compiler_driver_test.cc | 57 env_ = Thread::Current()->GetJniEnv(); in EnsureCompiled() 58 class_ = env_->FindClass(class_name); in EnsureCompiled() 61 mid_ = env_->GetMethodID(class_, method, signature); in EnsureCompiled() 63 mid_ = env_->GetStaticMethodID(class_, method, signature); in EnsureCompiled() 98 JNIEnv* env_; member in art::CompilerDriverTest 162 jclass c_class = env_->FindClass("ConcreteClass"); in TEST_F() 164 jmethodID constructor = env_->GetMethodID(c_class, "<init>", "()V"); in TEST_F() 166 jobject jobj_ = env_->NewObject(c_class, constructor); in TEST_F() 170 env_->CallNonvirtualVoidMethod(jobj_, class_, mid_); in TEST_F() 172 EXPECT_EQ(env_->ExceptionCheck(), JNI_TRUE); in TEST_F() [all …]
|