/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 | 312 ScopedLocalRef<jobject> consumer_object(soa.Env(), in NotifyHiddenApiListener() 313 soa.Env()->GetStaticObjectField( in NotifyHiddenApiListener() 323 soa.Env(), in NotifyHiddenApiListener() 324 soa.Env()->NewStringUTF(member_signature_str.str().c_str())); in NotifyHiddenApiListener() 327 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 | class_loader_context.cc | 887 soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateClassLoader() 888 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateClassLoader()
|
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 | 64 DCHECK(soa.Env()->IsInstanceOf(rcvr_jobj, WellKnownClasses::java_lang_reflect_Proxy)); in InvokeProxyInvocationHandler() 73 args_jobj = soa.Env()->NewObjectArray(args.size(), WellKnownClasses::java_lang_Object, nullptr); in InvokeProxyInvocationHandler() 81 soa.Env()->SetObjectArrayElement(args_jobj, i, val); in InvokeProxyInvocationHandler() 101 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 | 1467 soa.Env(), thread != nullptr ? nullptr : soa.AddLocalReference<jthread>(target->GetPeer())); in SetInternalEvent()
|
/art/adbconnection/ |
D | adbconnection.cc | 277 ScopedLocalRef<jobject> thr(soa.Env(), CreateAdbConnectionThread(soa.Self())); in StartDebuggerThreads() 280 std::unique_ptr<CallbackData> data(new CallbackData { this, soa.Env()->NewGlobalRef(thr.get()) }); in StartDebuggerThreads() 292 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 | 282 soa.Env()->DumpReferenceTables(LOG_STREAM(INFO)); in VMDebug_dumpReferenceTables()
|
/art/dex2oat/ |
D | dex2oat.cc | 1978 jweak weak_class_loader = soa.Env()->GetVm()->AddWeakGlobalRef( in CompileDexFilesIndividually() 1981 soa.Env()->GetVm()->DeleteGlobalRef(soa.Self(), class_loader); in CompileDexFilesIndividually() 3125 soa.Env()->GetVm()->DeleteGlobalRef(soa.Self(), obj_); in ~ScopedGlobalRef()
|
/art/runtime/jni/ |
D | jni_internal.cc | 666 soa.Env()->PopFrame(); in PopLocalFrame() 2459 soa.Env()->monitors_.Add(o); in MonitorEnter() 2474 soa.Env()->monitors_.Remove(o); in MonitorExit() 2564 if (!soa.Env()->locals_.EnsureFreeCapacity(static_cast<size_t>(desired_capacity), &error_msg)) { in EnsureLocalCapacityInternal()
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 1024 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()
|