Home
last modified time | relevance | path

Searched refs:ScopedLocalRef (Results 1 – 25 of 74) sorted by relevance

123

/art/test/ti-agent/
Dscoped_local_ref.h29 class ScopedLocalRef {
31 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() function
34 ~ScopedLocalRef() { in ~ScopedLocalRef()
61 DISALLOW_COPY_AND_ASSIGN(ScopedLocalRef);
Djni_helper.h35 ScopedLocalRef<jclass> obj_class(env, env->FindClass(component_type_descriptor)); in CreateObjectArray()
40 ScopedLocalRef<jobjectArray> ret(env, env->NewObjectArray(length, obj_class.get(), nullptr)); in CreateObjectArray()
62 ScopedLocalRef<jclass> exc_class(env, env->FindClass("java/lang/NullPointerException")); in JniThrowNullPointerException()
Djni_binder.cc146 ScopedLocalRef<jclass> cl_klass(env, env->FindClass("java/lang/ClassLoader")); in GetSystemClassLoader()
159 ScopedLocalRef<jstring> name_str(env, env->NewStringUTF(dot_name.c_str())); in FindClassWithClassLoader()
162 ScopedLocalRef<jclass> c_klass(env, env->FindClass("java/lang/Class")); in FindClassWithClassLoader()
188 ScopedLocalRef<jobject> system_class_loader(env, GetSystemClassLoader(env)); in GetClass()
254 ScopedLocalRef<jclass> klass(env, GetClass(jvmti_env, env, class_name, class_loader)); in BindFunctions()
Dtrace_helper.cc32 ScopedLocalRef<jthrowable> exc(env, env->ExceptionOccurred()); in IsInCallback()
46 ScopedLocalRef<jthrowable> exc(env, env->ExceptionOccurred()); in SetInCallback()
106 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadStartCB()
121 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadEndCB()
142 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in singleStepCB()
174 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in fieldAccessCB()
212 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in fieldModificationCB()
255 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in methodExitCB()
291 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in methodEntryCB()
508 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Trace_enableTracing2()
[all …]
Dlocals_helper.cc157 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Locals$VariableDescription")); in Java_art_Locals_GetLocalVariableTable()
180 ScopedLocalRef<jstring> name_string(env, env->NewStringUTF(vars[i].name)); in Java_art_Locals_GetLocalVariableTable()
181 ScopedLocalRef<jstring> sig_string(env, env->NewStringUTF(vars[i].signature)); in Java_art_Locals_GetLocalVariableTable()
182 ScopedLocalRef<jstring> generic_sig_string(env, env->NewStringUTF(vars[i].generic_signature)); in Java_art_Locals_GetLocalVariableTable()
/art/test/986-native-method-bind/
Dnative_bind.cc37 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test986")); in doUpPrintCall()
62 ScopedLocalRef<jclass> method_class(env, env->FindClass("java/lang/reflect/Method")); in doJvmtiMethodBind()
63 ScopedLocalRef<jobject> method_obj(env, env->ToReflectedMethod(method_class.get(), m, false)); in doJvmtiMethodBind()
66 ScopedLocalRef<jclass> exception_class(env, env->FindClass("java/lang/Exception")); in doJvmtiMethodBind()
70 ScopedLocalRef<jstring> sym_name(env, env->NewStringUTF(addr_info.dli_sname)); in doJvmtiMethodBind()
71 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test986")); in doJvmtiMethodBind()
79 ScopedLocalRef<jstring> new_symbol(env, in doJvmtiMethodBind()
89 ScopedLocalRef<jclass> exception_class(env, env->FindClass("java/lang/Exception")); in doJvmtiMethodBind()
/art/test/1914-get-local-instance/
Dlocal_instance.cc38 ScopedLocalRef<jclass> runnable(env, env->FindClass("java/lang/Runnable")); in Java_art_Test1914_00024TargetClass_NativeInstanceMethod()
44 ScopedLocalRef<jclass> Test1914(env, env->FindClass("art/Test1914")); in Java_art_Test1914_00024TargetClass_NativeInstanceMethod()
53 ScopedLocalRef<jclass> runnable(env, env->FindClass("java/lang/Runnable")); in Java_art_Test1914_NativeStaticMethod()
59 ScopedLocalRef<jclass> Test1914(env, env->FindClass("art/Test1914")); in Java_art_Test1914_NativeStaticMethod()
/art/runtime/interpreter/
Dinterpreter.cc62 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
73 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
80 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
87 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
94 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
101 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
103 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni()
114 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
122 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
124 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni()
[all …]
/art/test/1940-ddms-ext/
Dddm_ext.cc64 ScopedLocalRef<jclass> chunk_class(env, env->FindClass("org/apache/harmony/dalvik/ddmc/Chunk")); in Java_art_Test1940_processChunk()
75 ScopedLocalRef<jbyteArray> chunk_buf( in Java_art_Test1940_processChunk()
93 ScopedLocalRef<jbyteArray> chunk_data(env, env->NewByteArray(out_size)); in Java_art_Test1940_processChunk()
96 ScopedLocalRef<jobject> res(env, env->NewObject(chunk_class.get(), in Java_art_Test1940_processChunk()
120 ScopedLocalRef<jbyteArray> res(jnienv, jnienv->NewByteArray(size)); in PublishCB()
133 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1940_initializeTest()
168 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1940_initializeTest()
195 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1940_initializeTest()
/art/test/1900-track-alloc/
Dalloc.cc72 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1900_getAmountAllocated()
102 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1900_newJvmtiEnv()
108 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1900_newJvmtiEnv()
120 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1900_initializeTest()
150 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1900_initializeTest()
/art/test/1946-list-descriptors/
Ddescriptors.cc59 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1946_getClassloaderDescriptors()
71 ScopedLocalRef<jobjectArray> arr(env, env->NewObjectArray(cnt, in Java_art_Test1946_getClassloaderDescriptors()
101 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1946_initializeTest()
131 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1946_initializeTest()
/art/test/1941-dispose-stress/
Ddispose_stress.cc47 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1941_AllocEnv()
53 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1941_AllocEnv()
/art/test/931-agent-thread/
Dagent_thread.cc95 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("Agent Thread")); in Java_art_Test931_testAgentThread()
100 ScopedLocalRef<jclass> thread_klass(env, env->FindClass("java/lang/Thread")); in Java_art_Test931_testAgentThread()
104 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get())); in Java_art_Test931_testAgentThread()
118 ScopedLocalRef<jobject> thread_group(env, cur_thread_info.thread_group); in Java_art_Test931_testAgentThread()
/art/test/904-object-allocation/
Dtracking.cc41 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
43 ScopedLocalRef<jstring> str( in GetClassName()
92 ScopedLocalRef<jclass> object_klass2(jni_env, jni_env->GetObjectClass(object)); in ObjectAllocated()
135 ScopedLocalRef<jthread> thr(env, ev.thr_.Get(env)); in Java_art_Test904_getTrackingEventMessages()
/art/test/983-source-transform-verify/
Dsource_transform.cc35 ScopedLocalRef<jclass> test_klass(env, env->FindClass("art/Test983")); in Println()
39 ScopedLocalRef<jstring> data(env, env->NewStringUTF(msg)); in Println()
/art/openjdkjvmti/
Dti_search.cc97 ScopedLocalRef<jobject> defaults_jobj(self->GetJniEnv(), nullptr); in Update()
128 ScopedLocalRef<jobject> cp_jobj(self->GetJniEnv(), nullptr); in Update()
143 ScopedLocalRef<jobject> old_value(self->GetJniEnv(), in Update()
164 ScopedLocalRef<jobject> new_val_jobj(self->GetJniEnv(), nullptr); in Update()
178 ScopedLocalRef<jobject> res_obj(self->GetJniEnv(), in Update()
293 ScopedLocalRef<jstring> dex_path(env, env->NewStringUTF(segment)); in AddToSystemClassLoaderSearch()
Devents.cc252 ScopedLocalRef<jthread> thread_jni(jnienv, AddLocalRef<jthread>(jnienv, self->GetPeer())); in RunEventCallback()
310 ScopedLocalRef<jobject> object( in ObjectAllocated()
312 ScopedLocalRef<jclass> klass( in ObjectAllocated()
349 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocking()
363 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocked()
377 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, obj.Get())); in ObjectWaitStart()
404 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorWaitFinished()
459 ScopedLocalRef<jobject> blocker(jnienv, AddLocalRef<jobject>(jnienv, blocker_obj.Ptr())); in ThreadParkStart()
491 ScopedLocalRef<jobject> blocker(jnienv, AddLocalRef<jobject>(jnienv, blocker_obj.Ptr())); in ThreadParkFinished()
607 ScopedLocalRef<jobject> return_jobj(jnienv, AddLocalRef<jobject>(jnienv, return_value.Get())); in MethodExited()
[all …]
/art/test/1909-per-agent-tls/
Dagent_tls.cc61 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1909_newJvmtiEnv()
67 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1909_newJvmtiEnv()
/art/test/1922-owned-monitors-info/
Downed_monitors.cc45 ScopedLocalRef<jclass> run_class(env, env->FindClass("java/lang/Runnable")); in doCallRunnable()
99 ScopedLocalRef<jclass> ret_class(env, env->FindClass("art/Test1922$MonitorStackDepthInfo")); in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
125 ScopedLocalRef<jclass> obj_class(env, env->FindClass("java/lang/Object")); in Java_art_Test1922_getOwnedMonitors()
/art/runtime/
Dreflection_test.cc47 ScopedLocalRef<jclass> aioobe(env_, in SetUp()
52 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp()
56 ScopedLocalRef<jclass> sioobe(env_, in SetUp()
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()
[all …]
/art/dalvikvm/
Ddalvikvm.cc33 ScopedLocalRef<jobject> reflected(env, env->ToReflectedMethod(c, method_id, JNI_FALSE)); in IsMethodPublic()
63 ScopedLocalRef<jobjectArray> args(env, toStringArray(env, argv + 1)); in InvokeMain()
75 ScopedLocalRef<jclass> klass(env, env->FindClass(class_name.c_str())); in InvokeMain()
/art/runtime/native/
Ddalvik_system_DexFile.cc514 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList()
533 ScopedLocalRef<jclass> fnfe(env, env->FindClass("java/io/FileNotFoundException")); in GetDexOptNeeded()
541 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded()
549 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded()
560 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded()
601 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in DexFile_getDexFileStatus()
631 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in DexFile_getDexFileOptimizationStatus()
642 ScopedLocalRef<jstring> j_compilation_filter(env, env->NewStringUTF(compilation_filter.c_str())); in DexFile_getDexFileOptimizationStatus()
646 ScopedLocalRef<jstring> j_compilation_reason(env, env->NewStringUTF(compilation_reason.c_str())); in DexFile_getDexFileOptimizationStatus()
708 ScopedLocalRef<jclass> fnfe(env, env->FindClass("java/io/FileNotFoundException")); in DexFile_isDexOptNeeded()
[all …]
Dnative_util.h32 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); in RegisterNativeMethodsInternal()
/art/test/1932-monitor-events-misc/
Dmonitor_misc.cc52 ScopedLocalRef<jobject> exc(env, env->ExceptionOccurred()); in Java_art_Test1932_doNativeLockPrint()
/art/test/987-agent-bind/
Dagent_bind.cc37 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test987")); in doUpPrintCall()

123