/art/runtime/interpreter/ |
D | interpreter.cc | 62 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 67 jresult = fn(soa.Env(), klass.get()); in InterpreterJni() 73 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 76 fn(soa.Env(), klass.get()); in InterpreterJni() 80 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 83 result->SetZ(fn(soa.Env(), klass.get())); in InterpreterJni() 87 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 90 result->SetB(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni() 94 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 97 result->SetI(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni() [all …]
|
/art/runtime/ |
D | proxy_test.h | 50 soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, /* initialElement= */ nullptr); in GenerateProxyClass() 53 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, in GenerateProxyClass() 62 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( in GenerateProxyClass() 77 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 84 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 92 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 98 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 106 jobjectArray proxyClassThrows = soa.Env()->NewObjectArray(0, javaLangClass, nullptr); in GenerateProxyClass() 111 soa.Env()->NewStringUTF(className), in GenerateProxyClass()
|
D | reference_table_test.cc | 197 jmethodID substr = soa.Env()->GetMethodID(WellKnownClasses::java_lang_String, in TEST_F() 201 jobject jobj = soa.Env()->AddLocalReference<jobject>(h_without_trace.Get()); in TEST_F() 203 jobject result = soa.Env()->CallObjectMethod(jobj, in TEST_F() 213 jclass weak_ref_class = soa.Env()->FindClass("java/lang/ref/WeakReference"); in TEST_F() 215 jmethodID init = soa.Env()->GetMethodID(weak_ref_class, in TEST_F() 219 jobject referent = soa.Env()->AddLocalReference<jobject>(h_with_trace.Get()); in TEST_F() 220 jobject result = soa.Env()->NewObject(weak_ref_class, init, referent); in TEST_F()
|
D | reflection_test.cc | 142 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod() 151 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod() 177 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityIntMethod() 202 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityDoubleMethod() 227 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntMethod() 256 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntIntMethod() 295 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntIntIntMethod() 339 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntIntIntIntMethod() 388 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumDoubleDoubleMethod() 422 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumDoubleDoubleDoubleMethod() [all …]
|
D | hidden_api.cc | 318 ScopedLocalRef<jobject> consumer_object(soa.Env(), in NotifyHiddenApiListener() 319 soa.Env()->GetStaticObjectField( in NotifyHiddenApiListener() 329 soa.Env(), in NotifyHiddenApiListener() 330 soa.Env()->NewStringUTF(member_signature_str.str().c_str())); in NotifyHiddenApiListener() 333 soa.Env()->CallVoidMethod(consumer_object.get(), in NotifyHiddenApiListener()
|
D | scoped_thread_state_change-inl.h | 82 return obj == nullptr ? nullptr : Env()->AddLocalReference<T>(obj); in AddLocalReference()
|
D | scoped_thread_state_change.h | 77 JNIEnvExt* Env() const { in Env() function
|
D | reflection.cc | 455 if (UNLIKELY(soa.Env()->IsCheckJniEnabled())) { in InvokeWithArgArray() 498 ScopedLocalRef<jthrowable> th(soa.Env(), soa.Env()->ExceptionOccurred()); in InvokeMethodImpl() 501 soa.Env()->NewObject(WellKnownClasses::java_lang_reflect_InvocationTargetException, in InvokeMethodImpl() 508 soa.Env()->Throw(reinterpret_cast<jthrowable>(exception_instance)); in InvokeMethodImpl()
|
D | thread.cc | 649 ScopedLocalRef<jobject> ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in CreateCallback() 2269 soa.Env(), soa.Env()->AddLocalReference<jobject>(Thread::Current()->GetPeer())); in NotifyThreadGroup() 2271 soa.Env(), nullptr); in NotifyThreadGroup() 2276 soa.Env()->GetObjectField(thread_jobject.get(), in NotifyThreadGroup() 2280 CHECK(soa.Env()->IsSameObject(thread_group, thread_group_jobject)); in NotifyThreadGroup() 2283 soa.Env()->CallNonvirtualVoidMethod(thread_group_jobject, in NotifyThreadGroup() 2525 ScopedLocalRef<jobject> group(soa.Env(), soa.AddLocalReference<jobject>(ogroup)); in RemoveFromThreadGroup() 2526 ScopedLocalRef<jobject> peer(soa.Env(), soa.AddLocalReference<jobject>(tlsPtr_.opeer)); in RemoveFromThreadGroup() 2992 wait_jobject_(soaa_in.Env(), nullptr), in CreateAnnotatedStackTrace() 2993 block_jobject_(soaa_in.Env(), nullptr), in CreateAnnotatedStackTrace() [all …]
|
D | class_loader_context.cc | 888 soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateClassLoader() 889 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateClassLoader()
|
D | class_linker.cc | 3145 soa.Env(), soa.AddLocalReference<jobject>(class_loader.Get())); in FindClass() 3146 ScopedLocalRef<jobject> result(soa.Env(), nullptr); in FindClass() 3150 soa.Env(), soa.Env()->NewStringUTF(class_name_string.c_str())); in FindClass() 3156 result.reset(soa.Env()->CallObjectMethod(class_loader_object.get(), in FindClass() 9840 soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateWellKnownClassLoader() 9841 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateWellKnownClassLoader()
|
D | class_loader_context_test.cc | 1270 JNIEnv* env = soa.Env(); in CreateForeignClassLoader()
|
/art/benchmark/jobject-benchmark/ |
D | jobject_benchmark.cc | 32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal() 33 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeAddRemoveLocal() 42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal() 46 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeDecodeLocal()
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.cc | 67 DCHECK(soa.Env()->IsInstanceOf(rcvr_jobj, WellKnownClasses::java_lang_reflect_Proxy)); in InvokeProxyInvocationHandler() 76 args_jobj = soa.Env()->NewObjectArray(args.size(), WellKnownClasses::java_lang_Object, nullptr); in InvokeProxyInvocationHandler() 84 soa.Env()->SetObjectArrayElement(args_jobj, i, val); in InvokeProxyInvocationHandler() 104 soa.Env()->CallStaticObjectMethodA(WellKnownClasses::java_lang_reflect_Proxy, in InvokeProxyInvocationHandler()
|
/art/openjdkjvmti/ |
D | ti_threadgroup.cc | 98 if (soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup) == JNI_FALSE) { in GetThreadGroupInfo() 229 if (!soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup)) { in GetThreadGroupChildren()
|
D | ti_stack.cc | 581 if (!soa.Env()->IsInstanceOf(thread_list[i], art::WellKnownClasses::java_lang_Thread)) { in GetThreadListStackTraces() 668 stack_info[i].thread = reinterpret_cast<JNIEnv*>(soa.Env())->NewLocalRef(thread_list[i]); in GetThreadListStackTraces() 680 new_stack_info.thread = reinterpret_cast<JNIEnv*>(soa.Env())->NewLocalRef(thread_list[i]); in GetThreadListStackTraces()
|
D | ti_thread.cc | 238 } else if (!soa.Env()->IsInstanceOf(thread, art::WellKnownClasses::java_lang_Thread)) { in GetNativeThread()
|
D | events.cc | 1466 soa.Env(), thread != nullptr ? nullptr : soa.AddLocalReference<jthread>(target->GetPeer())); in SetInternalEvent()
|
/art/adbconnection/ |
D | adbconnection.cc | 275 ScopedLocalRef<jobject> thr(soa.Env(), CreateAdbConnectionThread(soa.Self())); in StartDebuggerThreads() 278 std::unique_ptr<CallbackData> data(new CallbackData { this, soa.Env()->NewGlobalRef(thr.get()) }); in StartDebuggerThreads() 290 soa.Env()->DeleteGlobalRef(data->thr_); in StartDebuggerThreads()
|
/art/runtime/gc/ |
D | reference_processor.cc | 286 soa.Env()->DeleteGlobalRef(cleared_references_); in Run()
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 272 soa.Env()->DumpReferenceTables(LOG_STREAM(INFO)); in VMDebug_dumpReferenceTables()
|
/art/dex2oat/ |
D | dex2oat.cc | 2008 jweak weak_class_loader = soa.Env()->GetVm()->AddWeakGlobalRef( in CompileDexFilesIndividually() 2011 soa.Env()->GetVm()->DeleteGlobalRef(soa.Self(), class_loader); in CompileDexFilesIndividually() 3136 soa.Env()->GetVm()->DeleteGlobalRef(soa.Self(), obj_); in ~ScopedGlobalRef()
|
/art/runtime/jni/ |
D | jni_internal.cc | 665 soa.Env()->PopFrame(); in PopLocalFrame() 2460 soa.Env()->monitors_.Add(o); in MonitorEnter() 2475 soa.Env()->monitors_.Remove(o); in MonitorExit() 2597 if (!soa.Env()->locals_.EnsureFreeCapacity(static_cast<size_t>(desired_capacity), &error_msg)) { in EnsureLocalCapacityInternal()
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 1023 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()
|