Home
last modified time | relevance | path

Searched refs:ClassLoader (Results 1 – 25 of 63) sorted by relevance

123

/art/runtime/mirror/
Dclass_loader.h29 class MANAGED ClassLoader : public Object {
33 return sizeof(ClassLoader); in InstanceSize()
35 ClassLoader* GetParent() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetParent()
36 return GetFieldObject<ClassLoader>(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); in GetParent()
42 HeapReference<ClassLoader> parent_;
46 DISALLOW_IMPLICIT_CONSTRUCTORS(ClassLoader);
Dobject_test.cc332 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader*>(class_loader))); in TEST_F()
466 Handle<ClassLoader> class_loader_1(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader_1))); in TEST_F()
467 Handle<ClassLoader> class_loader_2(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader_2))); in TEST_F()
529 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F()
564 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F()
602 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F()
/art/test/071-dexfile/src/
DMain.java68 ClassLoader dexClassLoader = getDexClassLoader(); in testDexClassLoader()
80 private static ClassLoader getDexClassLoader() throws Exception { in getDexClassLoader()
81 ClassLoader classLoader = Main.class.getClassLoader(); in getDexClassLoader()
86 ClassLoader.class); in getDexClassLoader()
88 …return (ClassLoader) DexClassLoader_init.newInstance(CLASS_PATH, getOdexDir(), LIB_DIR, classLoade… in getDexClassLoader()
92 ClassLoader classLoader = Main.class.getClassLoader(); in testDexFile()
/art/test/086-null-super/src/
DMain.java47 static class BrokenDexLoader extends ClassLoader {
60 public BrokenDexLoader(ClassLoader parent) { in BrokenDexLoader()
78 Class mDexClass = ClassLoader.getSystemClassLoader(). in findDexClass()
85 new Class[] { String.class, ClassLoader.class }); in findDexClass()
152 loader = new BrokenDexLoader(ClassLoader.getSystemClassLoader()); in testFailLoadAndGc()
/art/compiler/
Dcommon_compiler_test.h28 class ClassLoader; variable
51 void MakeExecutable(mirror::ClassLoader* class_loader, const char* class_name)
61 void CompileClass(mirror::ClassLoader* class_loader, const char* class_name)
66 void CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name,
70 void CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name,
Dcommon_compiler_test.cc267 void CommonCompilerTest::MakeExecutable(mirror::ClassLoader* class_loader, const char* class_name) { in MakeExecutable()
271 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in MakeExecutable()
348 void CommonCompilerTest::CompileClass(mirror::ClassLoader* class_loader, const char* class_name) { in CompileClass()
352 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in CompileClass()
372 void CommonCompilerTest::CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, in CompileDirectMethod()
385 void CommonCompilerTest::CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char*… in CompileVirtualMethod()
/art/test/087-gc-after-link/src/
DMain.java47 static class BrokenDexLoader extends ClassLoader {
60 public BrokenDexLoader(ClassLoader parent) { in BrokenDexLoader()
81 dexClass = ClassLoader.getSystemClassLoader(). in findDexClass()
87 new Class[] { String.class, ClassLoader.class }); in findDexClass()
161 loader = new BrokenDexLoader(ClassLoader.getSystemClassLoader()); in testFailLoadAndGc()
/art/test/068-classloader/src/
DMain.java27 loader = new FancyLoader(ClassLoader.getSystemClassLoader()); in main()
67 static void testAccess1(ClassLoader loader) { in testAccess1()
97 static void testAccess2(ClassLoader loader) { in testAccess2()
117 static void testAccess3(ClassLoader loader) { in testAccess3()
137 static void testExtend(ClassLoader loader) { in testExtend()
186 static void testExtendOkay(ClassLoader loader) { in testExtendOkay()
234 static void testInterface(ClassLoader loader) { in testInterface()
280 static void testAbstract(ClassLoader loader) { in testAbstract()
325 static void testImplement(ClassLoader loader) { in testImplement()
383 static void testIfaceImplement(ClassLoader loader) { in testIfaceImplement()
DFancyLoader.java36 public class FancyLoader extends ClassLoader {
52 public FancyLoader(ClassLoader parent) { in FancyLoader()
115 new Class[] { String.class, ClassLoader.class }); in findClassDalvik()
/art/compiler/driver/
Dcompiler_driver-inl.h38 inline mirror::ClassLoader* CompilerDriver::GetClassLoader(ScopedObjectAccess& soa, in GetClassLoader()
40 return soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()); in GetClassLoader()
45 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit) { in ResolveCompilingMethodsClass()
47 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader())); in ResolveCompilingMethodsClass()
62 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, in ResolveField()
65 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader())); in ResolveField()
169 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, in ResolveMethod()
172 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader())); in ResolveMethod()
211 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, in IsFastInvoke()
Dcompiler_driver_test.cc85 Handle<mirror::ClassLoader> loader( in MakeDexFileExecutable()
86 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(class_loader))); in MakeDexFileExecutable()
158 CompileVirtualMethod(NullHandle<mirror::ClassLoader>(), "java.lang.Class", "isFinalizable", in TEST_F()
160 CompileDirectMethod(NullHandle<mirror::ClassLoader>(), "java.lang.Object", "<init>", "()V"); in TEST_F()
Dcompiler_driver.cc520 Thread* self, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, in GetDexToDexCompilationlevel()
583 Handle<mirror::ClassLoader> class_loader( in CompileOne()
584 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in CompileOne()
757 NullHandle<mirror::ClassLoader>()))); in LoadImageClasses()
1075 Handle<mirror::ClassLoader> class_loader_handle( in ComputeInstanceFieldInfo()
1076 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()))); in ComputeInstanceFieldInfo()
1127 Handle<mirror::ClassLoader> class_loader_handle( in ComputeStaticFieldInfo()
1128 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()))); in ComputeStaticFieldInfo()
1293 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in ComputeInvokeInfo()
1294 soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()))); in ComputeInvokeInfo()
[all …]
/art/runtime/
Dclass_linker.h43 class ClassLoader; variable
76 Handle<mirror::ClassLoader> class_loader)
83 Handle<mirror::ClassLoader> class_loader)
100 Handle<mirror::ClassLoader> class_loader,
107 mirror::ClassLoader* class_loader)
120 bool RemoveClass(const char* descriptor, mirror::ClassLoader* class_loader)
169 Handle<mirror::ClassLoader> class_loader)
180 Handle<mirror::ClassLoader> class_loader,
206 Handle<mirror::ClassLoader> class_loader,
216 Handle<mirror::ClassLoader> class_loader)
[all …]
Dclass_linker-inl.h33 return FindClass(self, descriptor, NullHandle<mirror::ClassLoader>()); in FindSystemClass()
49 Handle<mirror::ClassLoader> class_loader(hs.NewHandle((*element_class)->GetClassLoader())); in FindArrayClass()
82 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
98 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
127 Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveMethod()
149 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveField()
Dclass_linker_test.cc103 mirror::ClassLoader* class_loader) in AssertArrayClass()
107 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass()
322 void AssertDexFileClass(mirror::ClassLoader* class_loader, const std::string& descriptor) in AssertDexFileClass()
342 void AssertDexFile(const DexFile* dex, mirror::ClassLoader* class_loader) in AssertDexFile()
556 struct ClassLoaderOffsets : public CheckOffsets<mirror::ClassLoader> {
557 ClassLoaderOffsets() : CheckOffsets<mirror::ClassLoader>(false, "Ljava/lang/ClassLoader;") { in ClassLoaderOffsets()
558 offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::ClassLoader, packages_), "packages")); in ClassLoaderOffsets()
559 offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::ClassLoader, parent_), "parent")); in ClassLoaderOffsets()
560 offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::ClassLoader, proxyCache_), "proxyCache")); in ClassLoaderOffsets()
627 Handle<mirror::ClassLoader> class_loader( in TEST_F()
[all …]
Dtransaction_test.cc106 Handle<mirror::ClassLoader> class_loader( in TEST_F()
107 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Transaction")))); in TEST_F()
201 Handle<mirror::ClassLoader> class_loader( in TEST_F()
202 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Transaction")))); in TEST_F()
301 Handle<mirror::ClassLoader> class_loader( in TEST_F()
302 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Transaction")))); in TEST_F()
415 Handle<mirror::ClassLoader> class_loader( in TEST_F()
416 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Transaction")))); in TEST_F()
435 Handle<mirror::ClassLoader> class_loader( in TEST_F()
436 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Transaction")))); in TEST_F()
[all …]
Dproxy_test.cc113 Handle<mirror::ClassLoader> class_loader( in TEST_F()
114 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
147 Handle<mirror::ClassLoader> class_loader( in TEST_F()
148 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
/art/runtime/verifier/
Dreg_type_cache.h33 class ClassLoader; variable
55 RegType& From(mirror::ClassLoader* loader, const char* descriptor, bool precise)
65 RegType& FromDescriptor(mirror::ClassLoader* loader, const char* descriptor, bool precise)
143 RegType& GetComponentType(RegType& array, mirror::ClassLoader* loader)
154 mirror::Class* ResolveClass(const char* descriptor, mirror::ClassLoader* loader)
Dmethod_verifier.h145 Handle<mirror::ClassLoader> class_loader,
153 Handle<mirror::ClassLoader> class_loader,
207 Handle<mirror::ClassLoader>* class_loader, const DexFile::ClassDef* class_def, in MethodVerifier()
232 mirror::ClassLoader* GetClassLoader() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
245 Handle<mirror::ClassLoader>* class_loader, const DexFile::ClassDef* class_def,
270 Handle<mirror::ClassLoader> class_loader,
657 Handle<mirror::ClassLoader>* class_loader_ GUARDED_BY(Locks::mutator_lock_);
/art/runtime/native/
Djava_lang_Runtime.cc71 Handle<mirror::ClassLoader> classLoader( in Runtime_nativeLoad()
72 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader))); in Runtime_nativeLoad()
Djava_lang_VMClassLoader.cc29 mirror::ClassLoader* loader = soa.Decode<mirror::ClassLoader*>(javaLoader); in VMClassLoader_findLoadedClass()
Djava_lang_Class.cc64 …Handle<mirror::ClassLoader> class_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader)… in Class_classForName()
/art/test/029-assert/src/
DMain.java31 ClassLoader.getSystemClassLoader().setDefaultAssertionStatus(true); in main()
/art/test/086-null-super/
Dinfo.txt1 ClassLoader.loadClass() is expected to throw an exception, usually
/art/compiler/dex/
Dmir_field_info.cc48 Handle<mirror::ClassLoader> class_loader( in Resolve()
95 Handle<mirror::ClassLoader> class_loader( in Resolve()

123