Searched refs:NewWeakGlobalRef (Results 1 – 8 of 8) sorted by relevance
323 std::make_pair(env->NewWeakGlobalRef(class_loader), *app_ns)); in Create()
273 inf->NewWeakGlobalRef = [](JNIEnv*, jobject obj) -> jobject { return obj; }; in CreateJNINativeInterface()
135 return static_cast<jlong>(reinterpret_cast<intptr_t>(env->NewWeakGlobalRef(r))); in Java_art_Test1974_GetWeakGlobalJniRef()
1459 jweak weak_global = env_->NewWeakGlobalRef(local); in TEST_F()1483 jweak weak_global = env_->NewWeakGlobalRef(local_ref); in TEST_F()2154 EXPECT_EQ(env_->NewWeakGlobalRef(nullptr), nullptr); in TEST_F()2157 TEST_F(JniInternalTest, NewWeakGlobalRef) { in TEST_F() argument2160 jobject o = env_->NewWeakGlobalRef(s); in TEST_F()2178 jobject o = env_->NewWeakGlobalRef(s); in TEST_F()2197 jobject o1 = env_->NewWeakGlobalRef(s); in TEST_F()2199 jobject o2 = env_->NewWeakGlobalRef(s); in TEST_F()
78 class_loader_(env->NewWeakGlobalRef(class_loader)), in SharedLibrary()
688 static jweak NewWeakGlobalRef(JNIEnv* env, jobject obj) { in NewWeakGlobalRef() function in art::JNI2952 JNIImpl::NewWeakGlobalRef,
458 weakly_stored_class_ = jni_env->NewWeakGlobalRef(klass); in ClassLoadCallback()
647 s6 = reinterpret_cast<jstring>(env->NewWeakGlobalRef(s6)); in Java_Main_testNewStringObject()