Home
last modified time | relevance | path

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

12

/art/runtime/
Djni_internal_test.cc42 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp()
46 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp()
51 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp()
94 EXPECT_NE(env_->FindClass(name), nullptr) << name; in ExpectClassFound()
100 EXPECT_EQ(env_->FindClass(name), nullptr) << name; in ExpectClassNotFound()
114 env_->FindClass(nullptr); in FindClassTest()
132 EXPECT_EQ(env_->FindClass("java.lang.String"), nullptr); in FindClassTest()
136 EXPECT_EQ(env_->FindClass("[Ljava.lang.String;"), nullptr); in FindClassTest()
170 jclass c = env_->FindClass("java/lang/String"); in GetFieldIdBadArgumentTest()
193 jclass c = env_->FindClass("java/lang/String"); in GetStaticFieldIdBadArgumentTest()
[all …]
Dclass_linker_test.cc110 hs.NewHandle(class_linker_->FindClass(self, array_descriptor.c_str(), loader))); in AssertArrayClass()
670 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
675 mirror::Class* inner = class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
695 TEST_F(ClassLinkerTest, FindClass) { in TEST_F() argument
742 mirror::Class* MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
843 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Boolean;", class_loader); in TEST_F()
845 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Byte;", class_loader); in TEST_F()
847 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Character;", class_loader); in TEST_F()
849 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Double;", class_loader); in TEST_F()
851 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Float;", class_loader); in TEST_F()
[all …]
Dproxy_test.cc111 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
113 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
145 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
147 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
Dwell_known_classes.cc161 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); in CacheClass()
203 ScopedLocalRef<jclass> boxed_class(env, env->FindClass(boxed_name)); in CachePrimitiveBoxingMethod()
254 …ScopedLocalRef<jclass> java_lang_ref_FinalizerReference(env, env->FindClass("java/lang/ref/Finaliz… in Init()
256 …ScopedLocalRef<jclass> java_lang_ref_ReferenceQueue(env, env->FindClass("java/lang/ref/ReferenceQu… in Init()
371 ScopedLocalRef<jclass> java_lang_Runtime(env, env->FindClass("java/lang/Runtime")); in LateInit()
Dtransaction_test.cc56 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort()
63 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
177 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F()
275 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LInstanceFieldsTest;", class_loader))); in TEST_F()
377 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticArrayFieldsTest;", class_loader))); in TEST_F()
494 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LTransaction$EmptyStatic;", in TEST_F()
518 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LTransaction$StaticFieldClass;", in TEST_F()
Dreflection_test.cc43 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp()
47 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp()
52 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp()
106 mirror::Class* c = class_linker_->FindClass(self, DotToDescriptor(class_name).c_str(), in ReflectionTestMakeExecutable()
515 mirror::Class* klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader); in TEST_F()
Dclass_linker-inl.h33 return FindClass(self, descriptor, NullHandle<mirror::ClassLoader>()); in FindSystemClass()
51 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
Dexception_test.cc46 my_klass_ = class_linker_->FindClass(soa.Self(), "LExceptionHandle;", class_loader); in SetUp()
Dinstrumentation_test.cc438 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
485 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
/art/test/004-JniTest/
Djni_test.cc64 jclass clazz = env->FindClass("Main"); in testFindClassOnAttachedNativeThread()
79 jclass clazz = env->FindClass("Main"); in testFindFieldOnAttachedNativeThread()
96 jclass clazz = env->FindClass("Main"); in testReflectFieldGetFromAttachedNativeThread()
100 jclass class_clazz = env->FindClass("java/lang/Class"); in testReflectFieldGetFromAttachedNativeThread()
117 jclass field_clazz = env->FindClass("java/lang/reflect/Field"); in testReflectFieldGetFromAttachedNativeThread()
141 jclass super_class = env->FindClass("Main$testCallStaticVoidMethodOnSubClass_SuperClass"); in Java_Main_testCallStaticVoidMethodOnSubClassNative()
147 jclass sub_class = env->FindClass("Main$testCallStaticVoidMethodOnSubClass_SubClass"); in Java_Main_testCallStaticVoidMethodOnSubClassNative()
154 jclass abstract_class = env->FindClass("Main$testGetMirandaMethod_MirandaAbstract"); in Java_Main_testGetMirandaMethodNative()
274 jclass vmstack_clazz = env->FindClass("dalvik/system/VMStack"); in testShallowGetCallingClassLoader()
292 jclass system_clazz = env->FindClass("java/lang/System"); in testShallowGetCallingClassLoader()
[all …]
/art/runtime/gc/
Dreference_queue_test.cc37 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/WeakReference;", in TEST_F()
67 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/WeakReference;", in TEST_F()
71 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/FinalizerReference;", in TEST_F()
/art/compiler/driver/
Dcompiler_driver_test.cc58 class_ = env_->FindClass(class_name); in EnsureCompiled()
86 mirror::Class* c = class_linker->FindClass(soa.Self(), descriptor, loader); in MakeDexFileExecutable()
162 jclass c_class = env_->FindClass("ConcreteClass"); in TEST_F()
175 jclass jlame = env_->FindClass("java/lang/AbstractMethodError"); in TEST_F()
216 mirror::Class* klass = class_linker->FindClass(self, "LStaticLeafMethods;", h_loader); in TEST_F()
Dcompiler_driver.cc521 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationlevel()
1901 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor, class_loader))); in VerifyClass()
1966 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor, class_loader))); in SetVerifiedClass()
2017 hs.NewHandle(manager->GetClassLinker()->FindClass(soa.Self(), descriptor, class_loader))); in InitializeClass()
2151 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor, class_loader))); in CompileClass()
/art/test/044-proxy/
Dnative_proxy.cc25 jclass native_inf_class = env->FindClass("NativeInterface"); in Java_NativeProxy_nativeCall()
/art/runtime/mirror/
Dobject_test.cc368 Class* klass = class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader); in TEST_F()
506 Class* klass1 = linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1); in TEST_F()
508 Class* klass2 = linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2); in TEST_F()
548 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
549 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
584 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
585 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
622 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
623 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
627 Class* YA = class_linker_->FindClass(soa.Self(), "[LY;", class_loader); in TEST_F()
[all …]
/art/compiler/
Dcommon_compiler_test.cc136 mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), loader); in MakeExecutable()
230 mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), loader); in CompileClass()
255 mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), class_loader); in CompileDirectMethod()
269 mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), class_loader); in CompileVirtualMethod()
Doat_test.cc155 mirror::Class* klass = class_linker->FindClass(soa.Self(), descriptor, in TEST_F()
/art/dalvikvm/
Ddalvikvm.cc40 jclass method_class = env->FindClass("java/lang/reflect/Method"); in IsMethodPublic()
75 ScopedLocalRef<jclass> klass(env, env->FindClass(class_name.c_str())); in InvokeMain()
/art/runtime/native/
Ddalvik_system_DexFile.cc306 ScopedLocalRef<jclass> fnfe(env, env->FindClass("java/io/FileNotFoundException")); in GetDexOptNeeded()
314 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in GetDexOptNeeded()
Djava_lang_Class.cc77 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
Ddalvik_system_VMRuntime.cc582 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in VMRuntime_isBootClassPathOnDisk()
/art/test/115-native-bridge/
Dnativebridge.cc54 jclass klass = env->FindClass("Main"); in trampoline_JNI_OnLoad()
/art/runtime/arch/
Dstub_test.cc2059 jclass jc = env->FindClass("AllFields"); in TestFields()
2236 jclass arraylist_jclass = env->FindClass("java/util/ArrayList"); in TEST_F()
2258 jclass list_jclass = env->FindClass("java/util/List"); in TEST_F()
2269 jclass obj_jclass = env->FindClass("java/lang/Object"); in TEST_F()
/art/compiler/jni/
Djni_compiler_test.cc67 mirror::Class* c = class_linker_->FindClass(soa.Self(), "LMyClassNatives;", loader); in CompileForTest()
100 jklass_ = env_->FindClass("MyClassNatives"); in SetUpForTest()
702 jclass c = env->FindClass("java/lang/RuntimeException"); in JNI_TEST()
731 ScopedLocalRef<jclass> jlre(env_, env_->FindClass("java/lang/RuntimeException")); in ExceptionHandlingImpl()
777 jclass jklass = env->FindClass("MyClassNatives"); in JNI_TEST()
/art/runtime/verifier/
Dreg_type_cache.cc149 klass = class_linker->FindClass(self, descriptor, class_loader); in ResolveClass()

12