Searched refs:env_ (Results 1 – 6 of 6) sorted by relevance
/art/runtime/ |
D | jni_internal_test.cc | 38 vm_->AttachCurrentThread(&env_, nullptr); in SetUp() 40 ScopedLocalRef<jclass> aioobe(env_, in SetUp() 41 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp() 43 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 45 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp() 47 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 49 ScopedLocalRef<jclass> sioobe(env_, in SetUp() 50 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp() 52 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp() 56 EXPECT_TRUE(env_->ExceptionCheck()); in ExpectException() [all …]
|
D | reflection_test.cc | 40 vm_->AttachCurrentThread(&env_, NULL); 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 | 110 return env_; in Env() 186 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->vm) { in ScopedObjectAccessAlreadyRunnable() 191 : self_(self), env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable() 192 vm_(env_ != nullptr ? env_->vm : nullptr) { in ScopedObjectAccessAlreadyRunnable() 198 : self_(nullptr), env_(nullptr), vm_(down_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 207 JNIEnvExt* const env_; variable
|
D | jni_internal.h | 201 explicit ScopedJniEnvLocalRefState(JNIEnvExt* env) : env_(env) { in ScopedJniEnvLocalRefState() 207 env_->locals.SetSegmentState(env_->local_ref_cookie); in ~ScopedJniEnvLocalRefState() 208 env_->local_ref_cookie = saved_local_ref_cookie_; in ~ScopedJniEnvLocalRefState() 212 JNIEnvExt* env_;
|
/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 167 jclass c_class = env_->FindClass("ConcreteClass"); in TEST_F() 168 jmethodID constructor = env_->GetMethodID(c_class, "<init>", "()V"); in TEST_F() 169 jobject jobj_ = env_->NewObject(c_class, constructor); in TEST_F() 173 env_->CallNonvirtualVoidMethod(jobj_, class_, mid_); in TEST_F() 174 EXPECT_EQ(env_->ExceptionCheck(), JNI_TRUE); in TEST_F() [all …]
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 106 env_ = Thread::Current()->GetJniEnv(); in SetUpForTest() 107 jklass_ = env_->FindClass("MyClassNatives"); in SetUpForTest() 111 jmethod_ = env_->GetStaticMethodID(jklass_, method_name, method_sig); in SetUpForTest() 113 jmethod_ = env_->GetMethodID(jklass_, method_name, method_sig); in SetUpForTest() 119 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest() 122 env_->UnregisterNatives(jklass_); in SetUpForTest() 125 jmethodID constructor = env_->GetMethodID(jklass_, "<init>", "()V"); in SetUpForTest() 126 jobj_ = env_->NewObject(jklass_, constructor); in SetUpForTest() 175 JNIEnv* env_; member in art::JniCompilerTest 213 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl() [all …]
|