/art/runtime/interpreter/ |
D | interpreter.cc | 60 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 65 jresult = fn(soa.Env(), klass.get()); in InterpreterJni() 71 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 74 fn(soa.Env(), klass.get()); in InterpreterJni() 78 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 81 result->SetZ(fn(soa.Env(), klass.get())); in InterpreterJni() 85 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 88 result->SetB(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni() 92 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 95 result->SetI(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni() [all …]
|
/art/runtime/ |
D | proxy_test.h | 51 soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, /* initialElement= */ nullptr); in GenerateProxyClass() 54 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, in GenerateProxyClass() 63 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( in GenerateProxyClass() 78 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 85 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 93 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 99 soa.Env()->SetObjectArrayElement( in GenerateProxyClass() 107 jobjectArray proxyClassThrows = soa.Env()->NewObjectArray(0, javaLangClass, nullptr); in GenerateProxyClass() 112 soa.Env()->NewStringUTF(className), in GenerateProxyClass()
|
D | reflection_test.cc | 141 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod() 150 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod() 176 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityIntMethod() 201 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityDoubleMethod() 226 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntMethod() 255 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntIntMethod() 294 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntIntIntMethod() 338 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumIntIntIntIntIntMethod() 387 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumDoubleDoubleMethod() 421 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeSumDoubleDoubleDoubleMethod() [all …]
|
D | reference_table_test.cc | 212 jclass weak_ref_class = soa.Env()->FindClass("java/lang/ref/WeakReference"); in TEST_F() 214 jmethodID init = soa.Env()->GetMethodID(weak_ref_class, in TEST_F() 218 jobject referent = soa.Env()->AddLocalReference<jobject>(h_with_trace.Get()); in TEST_F() 219 jobject result = soa.Env()->NewObject(weak_ref_class, init, referent); in TEST_F()
|
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 | class_loader_context.cc | 909 ScopedLocalRef<jobject> local_ref(soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateClassLoader() 910 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateClassLoader()
|
D | thread.cc | 3386 wait_jobject_(soaa_in.Env(), nullptr), in CreateAnnotatedStackTrace() 3387 block_jobject_(soaa_in.Env(), nullptr), in CreateAnnotatedStackTrace() 3398 stack_trace_elements_.emplace_back(soaa_.Env(), soaa_.AddLocalReference<jobject>(obj.Ptr())); in CreateAnnotatedStackTrace() 3429 frame_lock_objects_.emplace_back(soaa_.Env(), soaa_.AddLocalReference<jobject>(obj)); in CreateAnnotatedStackTrace() 3499 ScopedLocalRef<jobjectArray> result(soa.Env(), soa.Env()->AddLocalReference<jobjectArray>(array)); in CreateAnnotatedStackTrace() 3543 ScopedLocalRef<jobject> elem(soa.Env(), soa.AddLocalReference<jobject>(handle.Get())); in CreateAnnotatedStackTrace() 3544 soa.Env()->SetObjectArrayElement(result.get(), static_cast<jsize>(i), elem.get()); in CreateAnnotatedStackTrace() 3680 ScopedLocalRef<jobject> ref(soa.Env(), soa.AddLocalReference<jobject>(exception.Get())); in ThrowNewWrappedException()
|
D | common_runtime_test.cc | 312 return soa.Env()->GetVm()->AddGlobalRef(soa.Self(), result); in LoadDexInWellKnownClassLoader()
|
D | reflection.cc | 455 if (UNLIKELY(soa.Env()->IsCheckJniEnabled())) { in InvokeWithArgArray()
|
/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/libarttools/ |
D | art_exec_test.cc | 183 TEST_F(ArtExecTest, Env) { in TEST_F() argument
|
/art/runtime/gc/ |
D | reference_processor.cc | 368 soa.Env()->DeleteGlobalRef(cleared_references_); in Run()
|
/art/adbconnection/ |
D | adbconnection.cc | 382 jobject thr = soa.Env()->GetVm()->AddGlobalRef(self, CreateAdbConnectionThread(soa.Self())); in StartDebuggerThreads() 399 soa.Env()->DeleteGlobalRef(thr); in StartDebuggerThreads()
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 250 soa.Env()->DumpReferenceTables(LOG_STREAM(INFO)); in VMDebug_dumpReferenceTables()
|
/art/runtime/jni/ |
D | jni_internal.cc | 844 soa.Env()->PopFrame(); in PopLocalFrame() 2731 soa.Env()->monitors_.Add(o); in MonitorEnter() 2746 soa.Env()->monitors_.Remove(o); in MonitorExit() 2871 if (!soa.Env()->locals_.EnsureFreeCapacity(static_cast<size_t>(desired_capacity), in EnsureLocalCapacityInternal() 2921 ScopedLocalRef<jobject> jclass_loader(soa.Env(), soa.AddLocalReference<jobject>(class_loader)); in IsClassLoaderNamespaceNativelyBridged() 2923 android::FindNativeLoaderNamespaceByClassLoader(soa.Env(), jclass_loader.get()); in IsClassLoaderNamespaceNativelyBridged()
|
D | check_jni.cc | 62 JavaVMExt* vm = soa.Env()->GetVm(); in GetIndirectReferenceTable() 71 return &soa.Env()->locals_; in GetLocalReferenceTable() 895 obj = soa.Env()->GetVm()->DecodeGlobal(ref); in CheckInstance() 897 obj = soa.Env()->GetVm()->DecodeWeakGlobal(soa.Self(), ref); in CheckInstance()
|
/art/openjdkjvmti/ |
D | ti_stack.cc | 669 stack_info[i].thread = reinterpret_cast<JNIEnv*>(soa.Env())->NewLocalRef(thread_list[i]); in GetThreadListStackTraces() 681 new_stack_info.thread = reinterpret_cast<JNIEnv*>(soa.Env())->NewLocalRef(thread_list[i]); in GetThreadListStackTraces()
|
D | events.cc | 1450 soa.Env(), thread != nullptr ? nullptr : soa.AddLocalReference<jthread>(target->GetPeer())); in SetInternalEvent()
|
/art/dex2oat/ |
D | dex2oat.cc | 1802 jweak weak_class_loader = soa.Env()->GetVm()->AddWeakGlobalRef( in CompileDexFilesIndividually() 1805 soa.Env()->GetVm()->DeleteGlobalRef(soa.Self(), class_loader); in CompileDexFilesIndividually() 3049 soa.Env()->GetVm()->DeleteGlobalRef(soa.Self(), obj_); in ~ScopedGlobalRef()
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 1035 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()
|