Home
last modified time | relevance | path

Searched refs:getClassLoader (Results 1 – 25 of 107) sorted by relevance

12345

/art/test/688-shared-library/src-art/
DMain.java24 static ClassLoader bootLoader = Object.class.getClassLoader();
46 assertIdentical(loader, cls.getClassLoader()); in testNoLibrary()
56 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
58 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
63 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
65 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
75 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testTwoLibraries1()
77 assertIdentical(sharedLibraries[1], cls.getClassLoader()); in testTwoLibraries1()
82 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testTwoLibraries1()
84 assertIdentical(sharedLibraries[1], cls.getClassLoader()); in testTwoLibraries1()
[all …]
/art/test/936-search-onload/src/
DMain.java33 expectedClassLoader = Object.class.getClassLoader(); in doTest()
39 if (c.getClassLoader() != expectedClassLoader) { in doTest()
41 c.getClassLoader() + " vs " + expectedClassLoader); in doTest()
/art/test/1901-get-bytecodes/src/art/
DTest1901.java103 public static ClassLoader getClassLoader() throws Exception { in getClassLoader() method in Test1901
109 ByteBuffer.wrap(DEX_BYTES), Test1901.class.getClassLoader()); in getClassLoader()
112 return new ClassLoader(Test1901.class.getClassLoader()) { in getClassLoader()
140 Class<?> target = getClassLoader().loadClass("art.Target"); in run()
/art/test/1946-list-descriptors/src-art/art/
DTest1946.java81 getClassloaderDescriptors(Object.class.getClassLoader()), "Object not in bcp!"); in run()
83 checkSubset(getClassloaderDescriptors(Test1946.class.getClassLoader()), in run()
97 Object.class.getClassLoader())), in run()
101 Test1946.class.getClassLoader())), in run()
106 Test1946.class.getClassLoader())), in run()
/art/test/929-search/src/
DMain.java33 expectedClassLoader = Object.class.getClassLoader(); in doTest()
41 if (c.getClassLoader() != expectedClassLoader) { in doTest()
43 c.getClassLoader() + " vs " + expectedClassLoader); in doTest()
/art/test/613-inlining-dex-cache/src/
DMain.java47 ClassLoader loader = new DelegateLastPathClassLoader(DEX_FILE, Main.class.getClassLoader()); in main()
56 if (bLoader != Main.class.getClassLoader()) { in main()
74 return OtherClass.getB().getClassLoader(); in areYouB()
/art/test/912-classes/src-art/art/
DTest912.java158 Object cl = getClassLoader(c); in testClassLoader()
161 if (c.getClassLoader() != null && !IsBootClassLoader(c.getClassLoader())) { in testClassLoader()
162 throw new RuntimeException("Expected " + c.getClassLoader() + ", but got null."); in testClassLoader()
169 if (cl != c.getClassLoader()) { in testClassLoader()
170 throw new RuntimeException("Unexpected classloader: " + c.getClassLoader() + " vs " + cl); in testClassLoader()
248 ByteBuffer.wrap(DEX_BYTES), Test912.class.getClassLoader())).loadClass("Transform"); in testClassVersion()
253 ClassLoader cl = Main.class.getClassLoader(); in testClassEvents()
336 Proxy.getProxyClass(Main.class.getClassLoader(), new Class[] { Comparable.class, I0.class }); in testClassEvents()
389 private static native Object getClassLoader(Class<?> c); in getClassLoader() method in Test912
417 ByteBuffer.wrap(DEX_BYTES), Test912.class.getClassLoader())).loadClass("Transform"); in TestRecursiveClassPrepareEvents()
[all …]
/art/test/506-verify-aput/src/
DMain.java25 } catch (Error e) { System.out.println(e.getClass() + " " + e.getClass().getClassLoader()); } in main()
30 } catch (Error e) { System.out.println(e.getClass() + " " + e.getClass().getClassLoader()); } in main()
/art/test/626-const-class-linking/src/
DClassPair.java27 String first_loader_name = first.getClassLoader().getClass().getName(); in print()
29 String second_loader_name = second.getClassLoader().getClass().getName(); in print()
/art/test/1963-add-to-dex-classloader-in-memory/src/art/
DTest1963.java183 ClassLoader cl = getClassLoader(); in run()
201 super(ExtensibleClassLoader.class.getClassLoader()); in ExtensibleClassLoader()
220 public static ClassLoader getClassLoader() throws Exception { in getClassLoader() method in Test1963
227 Test1963.class.getClassLoader()); in getClassLoader()
/art/test/1964-add-to-dex-classloader-file/src/
DMain.java153 ClassLoader cl = getClassLoader(); in run()
171 super(new URL[] {}, ExtensibleClassLoader.class.getClassLoader()); in ExtensibleClassLoader()
188 public static ClassLoader getClassLoader() throws Exception { in getClassLoader() method in Main
194 return (ClassLoader)ctor.newInstance(ByteBuffer.wrap(DEX_BYTES), Main.class.getClassLoader()); in getClassLoader()
/art/test/1964-add-to-dex-classloader-file/src-ex/foobar/
DNewClass.java40 if (NewClass.class.getClassLoader() != caller.method.getDeclaringClass().getClassLoader()) { in sayHi()
/art/test/044-proxy/src/
DClash.java32 Proxy.newProxyInstance(Clash.class.getClassLoader(), in main()
41 Proxy.newProxyInstance(Clash.class.getClassLoader(), in main()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatPlaceHolderClassObj.java68 @Override public AhatInstance getClassLoader() { in getClassLoader() method in AhatPlaceHolderClassObj
69 return getBaseline().asClassObj().getClassLoader().getBaseline(); in getClassLoader()
/art/test/691-hiddenapi-proxy/src/
DMain.java29 Class<?> klass = Object.class.getClassLoader().loadClass("MyInterface"); in main()
31 klass.getClassLoader(), in main()
/art/test/1911-get-local-var-table/src/art/
DTest1911.java216 public static ClassLoader getClassLoader() throws Exception { in getClassLoader() method in Test1911
222 ByteBuffer.wrap(DEX_BYTES), Test1911.class.getClassLoader()); in getClassLoader()
225 return new ClassLoader(Test1911.class.getClassLoader()) { in getClassLoader()
255 Class<?> target = getClassLoader().loadClass("art.Target"); in run()
/art/test/612-jit-dex-cache/src/
DMain.java46 ClassLoader loader = new DelegateLastPathClassLoader(DEX_FILE, Main.class.getClassLoader()); in classFromDifferentLoader()
61 if (loader != cls.getClassLoader()) { in main()
/art/test/156-register-dex-file-multi-loader/src/
DMain.java24 super(MyClassLoader.class.getClassLoader()); in MyClassLoader()
27 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader()
/art/test/142-classloader2/src/
DMain.java77 Class<?> badClass = Main.class.getClassLoader().loadClass("B"); in main()
88 Class<?> badClass = Main.class.getClassLoader().loadClass("B"); in main()
/art/test/071-dexfile/src/
DMain.java81 ClassLoader classLoader = Main.class.getClassLoader(); in getDexClassLoader()
95 ClassLoader classLoader = Main.class.getClassLoader(); in testDexFile()
/art/test/496-checker-inlining-class-loader/src/
DMain.java24 super(MyClassLoader.class.getClassLoader()); in MyClassLoader()
27 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader()
/art/test/612-jit-dex-cache/src-ex/
DLoadedByAppClassLoader.java27 return OtherClass.getB().getClassLoader(); in areYouB()
/art/test/542-unresolved-access-check/src/
DMain.java27 super(MyClassLoader.class.getClassLoader()); in MyClassLoader()
30 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader()
/art/test/676-resolve-field-type/src/
DMain.java22 ClassLoader parentLoader = Main.class.getClassLoader(); in main()
/art/test/071-dexfile-map-clean/src/
DMain.java113 ClassLoader classLoader = Main.class.getClassLoader(); in testDexFile()
131 "Another", Main.class.getClassLoader()); in testDexFile()

12345