Home
last modified time | relevance | path

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

/art/runtime/interpreter/
Dinterpreter.cc62 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/
Dproxy_test.h50 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()
Dreference_table_test.cc197 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()
Dreflection_test.cc142 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 …]
Dhidden_api.cc312 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()
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
Dreflection.cc455 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()
Dclass_loader_context.cc887 soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateClassLoader()
888 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateClassLoader()
Dclass_loader_context_test.cc1270 JNIEnv* env = soa.Env(); in CreateForeignClassLoader()
/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/runtime/entrypoints/
Dentrypoint_utils.cc64 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/
Dti_threadgroup.cc98 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()
Dti_stack.cc581 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()
Dti_thread.cc238 } else if (!soa.Env()->IsInstanceOf(thread, art::WellKnownClasses::java_lang_Thread)) { in GetNativeThread()
Devents.cc1467 soa.Env(), thread != nullptr ? nullptr : soa.AddLocalReference<jthread>(target->GetPeer())); in SetInternalEvent()
/art/adbconnection/
Dadbconnection.cc277 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/
Dreference_processor.cc286 soa.Env()->DeleteGlobalRef(cleared_references_); in Run()
/art/runtime/native/
Ddalvik_system_VMDebug.cc282 soa.Env()->DumpReferenceTables(LOG_STREAM(INFO)); in VMDebug_dumpReferenceTables()
/art/dex2oat/
Ddex2oat.cc1978 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/
Djni_internal.cc666 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/
Dquick_trampoline_entrypoints.cc1024 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()