Home
last modified time | relevance | path

Searched refs:weak_ref_class (Results 1 – 3 of 3) sorted by relevance

/art/runtime/gc/
Dreference_queue_test.cc74 auto weak_ref_class = hs.NewHandle( in TEST_F() local
77 ASSERT_TRUE(weak_ref_class != nullptr); in TEST_F()
82 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference())); in TEST_F()
/art/runtime/
Dreference_table_test.cc213 jclass weak_ref_class = soa.Env()->FindClass("java/lang/ref/WeakReference"); in TEST_F() local
214 ASSERT_TRUE(weak_ref_class != nullptr); in TEST_F()
215 jmethodID init = soa.Env()->GetMethodID(weak_ref_class, in TEST_F()
220 jobject result = soa.Env()->NewObject(weak_ref_class, init, referent); in TEST_F()
/art/test/912-classes/
Dclasses.cc508 ScopedLocalRef<jclass> weak_ref_class(jni_env, jni_env->FindClass(kWeakClassName)); in SetOrCompare() local
509 CHECK(weak_ref_class.get() != nullptr); in SetOrCompare()
516 jmethodID weak_init = jni_env->GetMethodID(weak_ref_class.get(), "<init>", kWeakInitSig); in SetOrCompare()
518 ScopedLocalRef<jobject> weak_obj(jni_env, jni_env->NewObject(weak_ref_class.get(), in SetOrCompare()
526 jmethodID get_referent = jni_env->GetMethodID(weak_ref_class.get(), "get", kWeakGetSig); in SetOrCompare()