/art/test/928-jni-table/ |
D | jni_table.cc | 39 return gOriginalEnv->NewGlobalRef(env, o); in CountNewGlobalRef() 57 env_override->NewGlobalRef = CountNewGlobalRef; in Java_art_Test928_doJNITableTest() 66 jobject global = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest() 76 jobject global2 = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.cc | 62 list->events.push_back({ "ThreadStart", env->NewGlobalRef(thread) }); in ThreadStartCallback() 74 list->events.push_back({ "Test1919AgentThread", env->NewGlobalRef(cur) }); in Test1919AgentThread() 99 the_thread = static_cast<jthread>(env->NewGlobalRef(thread.get())); in CreateAgentThread() 112 list->events.push_back({ "VMInit", env->NewGlobalRef(thread) }); in VMInitCallback()
|
/art/runtime/ |
D | non_debuggable_classes.cc | 39 non_debuggable_classes.push_back(reinterpret_cast<jclass>(env->NewGlobalRef(klass))); in AddNonDebuggableClass()
|
D | reflection_test.cc | 50 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 54 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 59 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp()
|
D | well_known_classes.cc | 168 return reinterpret_cast<jclass>(env->NewGlobalRef(c.get())); in CacheClass()
|
D | runtime.cc | 780 return env->NewGlobalRef(system_class_loader.get()); in CreateSystemClassLoader() 1855 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups() 1860 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups()
|
/art/test/1950-unprepared-transform/ |
D | unprepared_transform.cc | 57 kMainClass = reinterpret_cast<jclass>(env->NewGlobalRef(main)); in Java_Main_setupClassLoadHook()
|
/art/test/904-object-allocation/ |
D | tracking.cc | 52 ScopedGlobalRef(JNIEnv* env, T obj) : obj_(env->NewGlobalRef(obj)) {} in ScopedGlobalRef() 54 : obj_(GetEnv()->NewGlobalRef(src.obj_)) {} in ScopedGlobalRef()
|
/art/runtime/jni/ |
D | java_vm_ext_test.cc | 156 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F() 169 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F()
|
D | jni_internal_test.cc | 49 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 53 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 58 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp() 1456 jobject global = env_->NewGlobalRef(local); in TEST_F() 1488 jobject new_global_ref = env_->NewGlobalRef(weak_global); in TEST_F() 2101 EXPECT_EQ(env_->NewGlobalRef(nullptr), nullptr); in TEST_F() 2104 TEST_F(JniInternalTest, NewGlobalRef) { in TEST_F() argument 2107 jobject o = env_->NewGlobalRef(s); in TEST_F() 2125 jobject o = env_->NewGlobalRef(s); in TEST_F() 2144 jobject o1 = env_->NewGlobalRef(s); in TEST_F() [all …]
|
/art/test/169-threadgroup-jni/ |
D | jni_daemon_thread.cc | 54 jobject global_thread_group = env->NewGlobalRef(thread_group); in Java_Main_testNativeThread()
|
/art/test/ti-agent/ |
D | exceptions_helper.cc | 129 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Exceptions_setupExceptionTracing() 130 data->exception_klass = reinterpret_cast<jclass>(env->NewGlobalRef(except)); in Java_art_Exceptions_setupExceptionTracing()
|
D | monitors_helper.cc | 165 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(test_klass)); in Java_art_Monitors_setupMonitorEvents() 170 data->monitor_klass = reinterpret_cast<jclass>(env->NewGlobalRef(monitor_klass)); in Java_art_Monitors_setupMonitorEvents()
|
D | frame_pop_helper.cc | 71 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_FramePop_enableFramePopEvent()
|
D | breakpoint_helper.cc | 159 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(method_klass)); in Java_art_Breakpoint_startBreakpointWatch()
|
D | trace_helper.cc | 493 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Trace_enableTracing2()
|
/art/test/1962-multi-thread-events/ |
D | multi_thread_events.cc | 79 data->events = env->NewGlobalRef(events); in Java_art_Test1962_setupThread()
|
/art/test/931-agent-thread/ |
D | agent_thread.cc | 147 data.main_thread = env->NewGlobalRef(main_thread); in Java_art_Test931_testAgentThread()
|
/art/test/912-classes/ |
D | classes.cc | 457 stored_class_ = jni_env->NewGlobalRef(klass); in ClassLoadCallback() 460 agent_thread_ = static_cast<jthread>(jni_env->NewGlobalRef(RunEventThread<jobject>( in ClassLoadCallback() 582 reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Test912_setEqualityEventStorageClass()
|
/art/test/1940-ddms-ext/ |
D | ddm_ext.cc | 145 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(method_klass)); in Java_art_Test1940_initializeTest()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 54 env->NewGlobalRef(env->FindClass(class_name.substr(1, class_name.size() - 2).c_str()))); in SplitField()
|
/art/runtime/jdwp/ |
D | object_registry.cc | 236 entry.jni_reference = env->NewGlobalRef(entry.jni_reference); in Promote()
|
/art/adbconnection/ |
D | adbconnection.cc | 255 std::unique_ptr<CallbackData> data(new CallbackData { this, soa.Env()->NewGlobalRef(thr.get()) }); in StartDebuggerThreads()
|
/art/test/004-JniTest/ |
D | jni_test.cc | 644 s5 = reinterpret_cast<jstring>(env->NewGlobalRef(s5)); in Java_Main_testNewStringObject()
|
/art/test/1953-pop-frame/ |
D | pop_frame.cc | 64 target_klass(reinterpret_cast<jclass>(env->NewGlobalRef(klass))), in TestData()
|