Searched refs:loader (Results 1 - 25 of 67) sorted by relevance

123

/art/test/626-const-class-linking/src/
H A DRacyMisbehavingHelper.java25 ClassLoader loader = helper1_class.getClassLoader();
26 Method reportAfterLoading = loader.getClass().getDeclaredMethod("reportAfterLoading");
27 reportAfterLoading.invoke(loader);
/art/tools/amm/AmmTest/src/com/android/amm/test/
H A DBitmapUse.java30 ClassLoader loader = BitmapUse.class.getClassLoader();
31 mBitmap = BitmapFactory.decodeStream(loader.getResourceAsStream("aahat.png"), null, null);
/art/test/949-in-memory-transform/src/art/
H A DTest949.java90 ClassLoader loader;
93 loader = (ClassLoader)Class.forName("dalvik.system.InMemoryDexClassLoader")
99 loader = new ClassLoader() {
109 doTest(loader);
112 public static void doTest(ClassLoader loader) throws Exception { argument
114 Class<?> transform_class = loader.loadClass("Transform");
/art/test/068-classloader/src/
H A DMain.java21 * Class loader test.
28 FancyLoader loader;
30 loader = new FancyLoader(ClassLoader.getSystemClassLoader());
32 //System.out.println("ALTERN: " + loader);
43 * name in the "fancy" class loader -- but the VM thinks it has a
54 testAccess1(loader);
55 testAccess2(loader);
56 testAccess3(loader);
58 testExtend(loader);
59 testExtendOkay(loader);
150 testAccess1(ClassLoader loader) argument
180 testAccess2(ClassLoader loader) argument
200 testAccess3(ClassLoader loader) argument
220 testExtend(ClassLoader loader) argument
269 testExtendOkay(ClassLoader loader) argument
317 testInterface(ClassLoader loader) argument
363 testAbstract(ClassLoader loader) argument
408 testImplement(ClassLoader loader) argument
466 testIfaceImplement(ClassLoader loader) argument
[all...]
/art/test/141-class-unload/src/
H A DMain.java33 throw new AssertionError("Couldn't find path class loader class");
50 // Test that objects keep class loader live for sticky GC.
97 // No strong references to class loader, should get unloaded.
108 WeakReference<ClassLoader> loader = setUpUnloadLoader(constructor, true);
109 // No strong references to class loader, should get unloaded.
112 System.out.println(loader.get());
128 WeakReference<ClassLoader> loader = setUpLoadLibrary(constructor);
129 // No strong references to class loader, should get unloaded.
132 System.out.println(loader.get());
135 private static Object testNoUnloadHelper(ClassLoader loader) throw argument
[all...]
/art/runtime/native/
H A Djava_lang_reflect_Proxy.cc33 jobject loader, jobjectArray methods, jobjectArray throws) {
37 soa, name, interfaces, loader, methods, throws));
32 Proxy_generateProxy(JNIEnv* env, jclass, jstring name, jobjectArray interfaces, jobject loader, jobjectArray methods, jobjectArray throws) argument
/art/test/612-jit-dex-cache/src-art/
H A DMain.java35 // Ignore and fall through to parent class loader.
46 ClassLoader loader = new DelegateLastPathClassLoader(DEX_FILE, Main.class.getClassLoader());
47 return loader.loadClass("LoadedByAppClassLoader");
60 ClassLoader loader = (ClassLoader) m.invoke(null);
61 if (loader != cls.getClassLoader()) {
62 throw new Error("Wrong class loader");
/art/test/071-dexfile-get-static-size/src/
H A DMain.java21 ClassLoader loader = Main.class.getClassLoader();
22 Class<?> DexFile = loader.loadClass("dalvik.system.DexFile");
/art/test/138-duplicate-classes-check/src-art/
H A DMain.java37 DexClassLoader loader = new DexClassLoader(dexPath, optimizedDirectory, librarySearchPath,
41 Class<?> testEx = loader.loadClass("TestEx");
/art/test/636-wrong-static-access/src/
H A DMain.java27 throw new AssertionError("Couldn't find path class loader class");
31 ClassLoader loader = (ClassLoader) constructor.newInstance(
33 Class<?> foo = loader.loadClass("Foo");
/art/test/661-classloader-allocator/src/
H A DMain.java48 throw new AssertionError("Couldn't find path class loader class");
52 ClassLoader loader = (ClassLoader) constructor.newInstance(
54 Class<?> otherClass = loader.loadClass("p1.OtherClass");
/art/openjdkjvmti/
H A Dti_class_loader.h74 art::Handle<art::mirror::ClassLoader> loader,
82 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader)
85 // Calls visitor on each java.lang.DexFile associated with the given loader. The visitor should
89 art::Handle<art::mirror::ClassLoader> loader,
107 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader)
H A Dti_class_loader-inl.h48 art::Handle<art::mirror::ClassLoader> loader,
55 hs.NewHandle(GetDexElementList(self, loader)));
47 VisitDexFileObjects(art::Thread* self, art::Handle<art::mirror::ClassLoader> loader, const Visitor& visitor) argument
H A Dti_class_loader.cc62 art::Handle<art::mirror::ClassLoader> loader,
66 if (art::ClassLinker::IsBootClassLoader(soa, loader.Get())) {
71 hs.NewHandle(FindSourceDexFileObject(self, loader)));
139 art::Handle<art::mirror::ClassLoader> loader) {
152 // Check if loader is a BaseDexClassLoader
153 art::Handle<art::mirror::Class> loader_class(hs.NewHandle(loader->GetClass()));
155 // future we should make sure to support all class loader types.
159 << "supported class loader type!";
162 // Start navigating the fields of the loader (now known to be a BaseDexClassLoader derivative)
164 hs.NewHandle(path_list_field->GetObject(loader
61 AddToClassLoader(art::Thread* self, art::Handle<art::mirror::ClassLoader> loader, const art::DexFile* dex_file) argument
137 GetDexElementList( art::Thread* self, art::Handle<art::mirror::ClassLoader> loader) argument
172 FindSourceDexFileObject( art::Thread* self, art::Handle<art::mirror::ClassLoader> loader) argument
[all...]
/art/runtime/
H A Ddebug_print.h29 std::string DescribeLoaders(ObjPtr<mirror::ClassLoader> loader, const char* class_descriptor)
H A Ddebug_print.cc63 std::string DescribeLoaders(ObjPtr<mirror::ClassLoader> loader, const char* class_descriptor) { argument
73 // Print the class loader chain.
76 if (loader == nullptr) {
79 for (; loader != nullptr; loader = loader->GetParent()) {
80 ClassTable* table = Runtime::Current()->GetClassLinker()->ClassTableForClassLoader(loader);
81 oss << loader_separator << loader->GetClass()->PrettyDescriptor()
84 // If we didn't find the class yet, try to find it in the current class loader.
96 if (loader
[all...]
/art/test/616-cha-unloading/src-art/
H A DMain.java53 WeakReference<ClassLoader> loader = result.cl;
56 if (loader.get() != null) {
57 throw new Error("Expected class loader to be unloaded");
60 // Reuse the linear alloc used by the unloaded class loader.
78 ClassLoader loader = sConstructor.newInstance(
80 Class<?> concreteCHATester = loader.loadClass("ConcreteCHATester");
93 return new CHAUnloaderRetType(new WeakReference(loader), ret, artMethod);
/art/test/086-null-super/src/
H A DMain.java22 * Class loader test.
35 * A class loader which loads classes from the dex file
40 * a BrokenDexLoader will be the defining loader for the class
41 * Inaccessible. The VM will call the defining loader for
148 BrokenDexLoader loader;
150 loader = new BrokenDexLoader(ClassLoader.getSystemClassLoader());
151 loader.findBrokenClass();
/art/test/087-gc-after-link/src/
H A DMain.java22 * Class loader test.
35 * A class loader which loads classes from the dex file
40 * a BrokenDexLoader will be the defining loader for the class
41 * Inaccessible. The VM will call the defining loader for
164 BrokenDexLoader loader;
166 loader = new BrokenDexLoader(ClassLoader.getSystemClassLoader());
167 loader.findBrokenClass();
/art/test/156-register-dex-file-multi-loader/src/
H A DMain.java27 ClassLoader loader = getClass().getClassLoader();
28 Class<?> baseDexClassLoader = loader.getClass().getSuperclass();
31 Object pathList = f.get(loader);
/art/test/496-checker-inlining-class-loader/src/
H A DMain.java27 ClassLoader loader = getClass().getClassLoader();
28 Class<?> baseDexClassLoader = loader.getClass().getSuperclass();
31 Object pathList = f.get(loader);
/art/test/626-const-class-linking/
H A Dclear_dex_cache_types.cc59 mirror::ClassLoader* loader = as_class->GetClassLoader(); local
63 << " definingLoader:" << static_cast<const void*>(loader)
65 << (loader != nullptr ? loader->GetClass()->PrettyDescriptor() : "N/A");
/art/test/613-inlining-dex-cache/src-art/
H A DMain.java35 // Ignore and fall through to parent class loader.
47 ClassLoader loader = new DelegateLastPathClassLoader(DEX_FILE, Main.class.getClassLoader());
48 Class cls = loader.loadClass("LoadedByAppClassLoader");
57 throw new Error("Wrong class loader");
63 // method but used to pass the wrong class loader. As a result,
65 // class loader's B class.
82 // This used to return the B class of another class loader.
/art/tools/ahat/src/main/com/android/ahat/
H A DStaticHandler.java38 ClassLoader loader = StaticHandler.class.getClassLoader();
39 InputStream is = loader.getResourceAsStream(mResourceName);
/art/test/497-inlining-and-class-loader/src/
H A DMain.java26 ClassLoader loader = getClass().getClassLoader();
27 Class<?> baseDexClassLoader = loader.getClass().getSuperclass();
30 Object pathList = f.get(loader);
122 // classes again, which require to use the correct class loader

Completed in 667 milliseconds

123