Home
last modified time | relevance | path

Searched refs:Env (Results 1 – 21 of 21) sorted by relevance

/art/runtime/interpreter/
Dinterpreter.cc60 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/
Dproxy_test.h51 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()
Dreflection_test.cc141 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 …]
Dreference_table_test.cc212 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()
Dscoped_thread_state_change-inl.h82 return obj == nullptr ? nullptr : Env()->AddLocalReference<T>(obj); in AddLocalReference()
Dscoped_thread_state_change.h77 JNIEnvExt* Env() const { in Env() function
Dclass_loader_context.cc909 ScopedLocalRef<jobject> local_ref(soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateClassLoader()
910 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateClassLoader()
Dthread.cc3386 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()
Dcommon_runtime_test.cc312 return soa.Env()->GetVm()->AddGlobalRef(soa.Self(), result); in LoadDexInWellKnownClassLoader()
Dreflection.cc455 if (UNLIKELY(soa.Env()->IsCheckJniEnabled())) { in InvokeWithArgArray()
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc32 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/
Dart_exec_test.cc183 TEST_F(ArtExecTest, Env) { in TEST_F() argument
/art/runtime/gc/
Dreference_processor.cc368 soa.Env()->DeleteGlobalRef(cleared_references_); in Run()
/art/adbconnection/
Dadbconnection.cc382 jobject thr = soa.Env()->GetVm()->AddGlobalRef(self, CreateAdbConnectionThread(soa.Self())); in StartDebuggerThreads()
399 soa.Env()->DeleteGlobalRef(thr); in StartDebuggerThreads()
/art/runtime/native/
Ddalvik_system_VMDebug.cc250 soa.Env()->DumpReferenceTables(LOG_STREAM(INFO)); in VMDebug_dumpReferenceTables()
/art/runtime/jni/
Djni_internal.cc844 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()
Dcheck_jni.cc62 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/
Dti_stack.cc669 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()
Devents.cc1450 soa.Env(), thread != nullptr ? nullptr : soa.AddLocalReference<jthread>(target->GetPeer())); in SetInternalEvent()
/art/dex2oat/
Ddex2oat.cc1802 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/
Dquick_trampoline_entrypoints.cc1035 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()