/art/test/ti-agent/ |
D | scoped_local_ref.h | 29 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);
|
D | jni_helper.h | 35 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()
|
D | jni_binder.cc | 146 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()
|
D | trace_helper.cc | 32 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 …]
|
D | locals_helper.cc | 157 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/ |
D | native_bind.cc | 37 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/ |
D | local_instance.cc | 38 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/test/1940-ddms-ext/ |
D | ddm_ext.cc | 64 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/runtime/interpreter/ |
D | interpreter.cc | 62 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/904-object-allocation/ |
D | tracking.cc | 41 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName() 43 ScopedLocalRef<jstring> str( in GetClassName() 93 ScopedLocalRef<jclass> object_klass2(jni_env, jni_env->GetObjectClass(object)); in ObjectAllocated() 133 ScopedLocalRef<jthread> thr(env, ev.thr_.Get(env)); in Java_art_Test904_getTrackingEventMessages() 136 ScopedLocalRef<jclass> klass(env, ev.object_klass.Get(env)); in Java_art_Test904_getTrackingEventMessages() 137 ScopedLocalRef<jclass> klass2(env, ev.object_klass2.Get(env)); in Java_art_Test904_getTrackingEventMessages()
|
/art/test/1900-track-alloc/ |
D | alloc.cc | 72 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/1941-dispose-stress/ |
D | dispose_stress.cc | 47 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/1946-list-descriptors/ |
D | descriptors.cc | 59 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/931-agent-thread/ |
D | agent_thread.cc | 95 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/983-source-transform-verify/ |
D | source_transform.cc | 35 ScopedLocalRef<jclass> test_klass(env, env->FindClass("art/Test983")); in Println() 39 ScopedLocalRef<jstring> data(env, env->NewStringUTF(msg)); in Println()
|
/art/test/1909-per-agent-tls/ |
D | agent_tls.cc | 61 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/ |
D | owned_monitors.cc | 45 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/ |
D | reflection_test.cc | 47 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/ |
D | dalvikvm.cc | 33 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/openjdkjvmti/ |
D | ti_search.cc | 103 ScopedLocalRef<jobject> defaults_jobj(self->GetJniEnv(), nullptr); in Update() 134 ScopedLocalRef<jobject> cp_jobj(self->GetJniEnv(), nullptr); in Update() 149 ScopedLocalRef<jobject> old_value(self->GetJniEnv(), in Update() 170 ScopedLocalRef<jobject> new_val_jobj(self->GetJniEnv(), nullptr); in Update() 184 ScopedLocalRef<jobject> res_obj(self->GetJniEnv(), in Update() 360 ScopedLocalRef<jstring> dex_path(env, env->NewStringUTF(segment)); in AddToDexClassLoader()
|
/art/test/1932-monitor-events-misc/ |
D | monitor_misc.cc | 52 ScopedLocalRef<jobject> exc(env, env->ExceptionOccurred()); in Java_art_Test1932_doNativeLockPrint()
|
/art/test/987-agent-bind/ |
D | agent_bind.cc | 37 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test987")); in doUpPrintCall()
|
/art/runtime/native/ |
D | native_util.h | 32 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); in RegisterNativeMethodsInternal()
|
D | dalvik_system_DexFile.cc | 515 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList() 534 ScopedLocalRef<jclass> fnfe(env, env->FindClass("java/io/FileNotFoundException")); in GetDexOptNeeded() 542 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded() 550 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded() 561 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded() 604 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in DexFile_getDexFileStatus() 634 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in DexFile_getDexFileOptimizationStatus() 645 ScopedLocalRef<jstring> j_compilation_filter(env, env->NewStringUTF(compilation_filter.c_str())); in DexFile_getDexFileOptimizationStatus() 649 ScopedLocalRef<jstring> j_compilation_reason(env, env->NewStringUTF(compilation_reason.c_str())); in DexFile_getDexFileOptimizationStatus() 711 ScopedLocalRef<jclass> fnfe(env, env->FindClass("java/io/FileNotFoundException")); in DexFile_isDexOptNeeded() [all …]
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 134 ScopedLocalRef<jobject> cur_thiz(env, obj_list[i]); in DataDumpRequestCb() 135 ScopedLocalRef<jobject> obj(env, env->GetObjectField(cur_thiz.get(), field)); in DataDumpRequestCb() 144 ScopedLocalRef<jclass> obj_klass(env, env->GetObjectClass(obj.get())); in DataDumpRequestCb() 161 ScopedLocalRef<jobject> obj(env, ref_list[i]); in DataDumpRequestCb() 166 ScopedLocalRef<jclass> obj_klass(env, env->GetObjectClass(obj.get())); in DataDumpRequestCb()
|