Home
last modified time | relevance | path

Searched refs:Env (Results 1 – 24 of 24) 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.cc318 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()
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()
Dthread.cc649 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 …]
Dclass_loader_context.cc888 soa.Env(), soa.Env()->AddLocalReference<jobject>(loader)); in CreateClassLoader()
889 return soa.Env()->NewGlobalRef(local_ref.get()); in CreateClassLoader()
Dclass_linker.cc3145 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()
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.cc67 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/
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.cc1466 soa.Env(), thread != nullptr ? nullptr : soa.AddLocalReference<jthread>(target->GetPeer())); in SetInternalEvent()
/art/adbconnection/
Dadbconnection.cc275 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/
Dreference_processor.cc286 soa.Env()->DeleteGlobalRef(cleared_references_); in Run()
/art/runtime/native/
Ddalvik_system_VMDebug.cc272 soa.Env()->DumpReferenceTables(LOG_STREAM(INFO)); in VMDebug_dumpReferenceTables()
/art/dex2oat/
Ddex2oat.cc2008 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/
Djni_internal.cc665 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/
Dquick_trampoline_entrypoints.cc1023 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()