Home
last modified time | relevance | path

Searched refs:FindClass (Results 1 – 25 of 125) sorted by relevance

12345

/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/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()
66 ScopedLocalRef<jclass> exception_class(env, env->FindClass("java/lang/Exception")); in doJvmtiMethodBind()
71 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test986")); in doJvmtiMethodBind()
89 ScopedLocalRef<jclass> exception_class(env, env->FindClass("java/lang/Exception")); in doJvmtiMethodBind()
/art/test/2009-structural-local-ref/
Dlocal-ref.cc37 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalCallStatic()
51 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalCallVirtual()
63 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalGetIField()
76 jmethodID run_meth = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test2009_NativeLocalGetSField()
/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/runtime/jni/
Djni_internal_test.cc48 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp()
52 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp()
57 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp()
100 EXPECT_NE(env_->FindClass(name), nullptr) << name; in ExpectClassFound()
106 EXPECT_EQ(env_->FindClass(name), nullptr) << name; in ExpectClassNotFound()
120 env_->FindClass(nullptr); in FindClassTest()
138 EXPECT_EQ(env_->FindClass("java.lang.String"), nullptr); in FindClassTest()
142 EXPECT_EQ(env_->FindClass("[Ljava.lang.String;"), nullptr); in FindClassTest()
176 jclass c = env_->FindClass("java/lang/String"); in GetFieldIdBadArgumentTest()
199 jclass c = env_->FindClass("java/lang/String"); in GetStaticFieldIdBadArgumentTest()
[all …]
/art/test/1946-list-descriptors/
Ddescriptors.cc59 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test1946_getClassloaderDescriptors()
72 env->FindClass("java/lang/String"), 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/984-obsolete-invoke/
Dobsolete_invoke.cc59 return env->ToReflectedMethod(env->FindClass("java/lang/reflect/Method"), in Java_art_Test984_getFirstObsoleteMethod984()
64 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Test984_getFirstObsoleteMethod984()
/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/004-JniTest/
Djni_test.cc84 jclass clazz = env->FindClass("Main"); in testFindClassOnAttachedNativeThread()
136 jclass clazz = env->FindClass("Main"); in testFindFieldOnAttachedNativeThread()
153 jclass clazz = env->FindClass("Main"); in testReflectFieldGetFromAttachedNativeThread()
157 jclass class_clazz = env->FindClass("java/lang/Class"); in testReflectFieldGetFromAttachedNativeThread()
174 jclass field_clazz = env->FindClass("java/lang/reflect/Field"); in testReflectFieldGetFromAttachedNativeThread()
198 jclass super_class = env->FindClass("Main$testCallStaticVoidMethodOnSubClass_SuperClass"); in Java_Main_testCallStaticVoidMethodOnSubClassNative()
204 jclass sub_class = env->FindClass("Main$testCallStaticVoidMethodOnSubClass_SubClass"); in Java_Main_testCallStaticVoidMethodOnSubClassNative()
211 jclass abstract_class = env->FindClass("Main$testGetMirandaMethod_MirandaAbstract"); in Java_Main_testGetMirandaMethodNative()
331 jclass vmstack_clazz = env->FindClass("dalvik/system/VMStack"); in testShallowGetCallingClassLoader()
349 jclass system_clazz = env->FindClass("java/lang/System"); in testShallowGetCallingClassLoader()
[all …]
/art/test/980-redefine-object/
Dredef_object.cc56 env->ThrowNew(env->FindClass("java/lang/RuntimeException"), in RedefineObjectHook()
71 env->ThrowNew(env->FindClass("java/lang/RuntimeException"), in RedefineObjectHook()
101 env->ThrowNew(env->FindClass("java/lang/RuntimeException"), in RedefineObjectHook()
/art/test/ti-agent/
Djni_helper.h35 ScopedLocalRef<jclass> obj_class(env, env->FindClass(component_type_descriptor)); in CreateObjectArray()
62 ScopedLocalRef<jclass> exc_class(env, env->FindClass("java/lang/NullPointerException")); in JniThrowNullPointerException()
/art/test/1974-resize-array/
Dresize_array.cc79 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in FindExtensionEvent()
105 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in FindExtensionMethod()
122 env->FindClass("java/util/function/Supplier"), "get", "()Ljava/lang/Object;"); in Java_art_Test1974_ResizeArray()
152 jobjectArray ret = env->NewObjectArray(cnt, env->FindClass("java/lang/Object"), nullptr); in Java_art_Test1974_GetObjectsWithTag()
169 jmethodID run = env->GetMethodID(env->FindClass("java/lang/Runnable"), "run", "()V"); in Java_art_Test1974_runNativeTest()
171 env->FindClass("java/util/function/Consumer"), "accept", "(Ljava/lang/Object;)V"); in Java_art_Test1974_runNativeTest()
/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/gc/
Dreference_queue_test.cc45 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/WeakReference;", in TEST_F()
80 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/WeakReference;", in TEST_F()
84 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/FinalizerReference;", in TEST_F()
/art/runtime/mirror/
Dmethod_type_test.cc41 ObjPtr<mirror::Class> FindClass(Thread* self, ClassLinker* const cl, const std::string& shorthand) in FindClass() function
48 return cl->FindClass(self, FullyQualifiedType(shorthand).c_str(), boot_class_loader); in FindClass()
50 return cl->FindClass(self, shorthand.c_str(), boot_class_loader); in FindClass()
63 Handle<mirror::Class> return_clazz = hs.NewHandle(FindClass(self, class_linker, return_type)); in CreateMethodType()
71 ObjPtr<mirror::Class> param = FindClass(self, class_linker, param_types[i]); in CreateMethodType()
/art/runtime/
Dclass_linker_test.cc185 hs.NewHandle(class_linker_->FindClass(self, array_descriptor.c_str(), loader))); in AssertArrayClass()
913 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
919 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
939 TEST_F(ClassLinkerTest, FindClass) { in TEST_F() argument
949 ObjPtr<mirror::Class> MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
998 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
1019 = class_linker_->FindClass(soa.Self(), "LAllFields;", class_loader); in TEST_F()
1032 = class_linker_->FindClass(soa.Self(), "[Ljava/lang/Object;", class_loader); in TEST_F()
1053 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LErroneousInit;", class_loader)); in TEST_F()
1147 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Boolean;", class_loader); in TEST_F()
[all …]
Dproxy_test.cc47 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
49 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
81 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
83 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
/art/test/945-obsolete-native/
Dobsolete_native.cc36 jclass runnable_klass = env->FindClass("java/lang/Runnable"); in Java_art_Test945_00024Transform_doExecute()
/art/test/1959-redefine-object-instrument/
Dfake_redef_object.cc57 env->ThrowNew(env->FindClass("java/lang/RuntimeException"), in RedefineObjectHook()
88 env->ThrowNew(env->FindClass("java/lang/RuntimeException"), in RedefineObjectHook()
/art/test/044-proxy/
Dnative_proxy.cc25 jclass native_inf_class = env->FindClass("NativeInterface"); in Java_NativeProxy_nativeCall()
/art/dex2oat/driver/
Dcompiler_driver_test.cc62 class_ = env_->FindClass(class_name); in EnsureCompiled()
108 ObjPtr<mirror::Class> c = class_linker->FindClass(soa.Self(), descriptor, loader); in MakeDexFileExecutable()
175 jclass c_class = env_->FindClass("ConcreteClass"); in TEST_F()
188 jclass jlame = env_->FindClass("java/lang/AbstractMethodError"); in TEST_F()
240 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckCompiledMethods()
301 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckVerifiedClass()
/art/test/2263-method-trace-jit/
Dtrace_fib.cc24 env->ThrowNew(env->FindClass("java/lang/Error"), "bad argument"); in Java_art_Test988_nativeFibonacci()
/art/test/988-method-trace/
Dtrace_fib.cc24 env->ThrowNew(env->FindClass("java/lang/Error"), "bad argument"); in Java_art_Test988_nativeFibonacci()
/art/test/common/
Dstack_inspect.cc109 env->ThrowNew(env->FindClass("java/lang/NullPointerException"), "method is null!"); in Java_Main_isInterpretedFunction()
114 env->ThrowNew(env->FindClass("java/lang/Error"), "Unable to interpret method argument!"); in Java_Main_isInterpretedFunction()
122 env->ThrowNew(env->FindClass("java/lang/Error"), "Unable to find given method in stack!"); in Java_Main_isInterpretedFunction()

12345