/art/test/688-shared-library/src-art/ |
D | Main.java | 24 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/ |
D | Main.java | 33 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/ |
D | Test1901.java | 103 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/ |
D | Test1946.java | 81 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/ |
D | Main.java | 33 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/ |
D | Main.java | 47 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/ |
D | Test912.java | 158 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/ |
D | Main.java | 25 } 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/ |
D | ClassPair.java | 27 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/ |
D | Test1963.java | 183 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/ |
D | Main.java | 153 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/ |
D | NewClass.java | 40 if (NewClass.class.getClassLoader() != caller.method.getDeclaringClass().getClassLoader()) { in sayHi()
|
/art/test/044-proxy/src/ |
D | Clash.java | 32 Proxy.newProxyInstance(Clash.class.getClassLoader(), in main() 41 Proxy.newProxyInstance(Clash.class.getClassLoader(), in main()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatPlaceHolderClassObj.java | 68 @Override public AhatInstance getClassLoader() { in getClassLoader() method in AhatPlaceHolderClassObj 69 return getBaseline().asClassObj().getClassLoader().getBaseline(); in getClassLoader()
|
/art/test/691-hiddenapi-proxy/src/ |
D | Main.java | 29 Class<?> klass = Object.class.getClassLoader().loadClass("MyInterface"); in main() 31 klass.getClassLoader(), in main()
|
/art/test/1911-get-local-var-table/src/art/ |
D | Test1911.java | 216 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/ |
D | Main.java | 46 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/ |
D | Main.java | 24 super(MyClassLoader.class.getClassLoader()); in MyClassLoader() 27 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader()
|
/art/test/142-classloader2/src/ |
D | Main.java | 77 Class<?> badClass = Main.class.getClassLoader().loadClass("B"); in main() 88 Class<?> badClass = Main.class.getClassLoader().loadClass("B"); in main()
|
/art/test/071-dexfile/src/ |
D | Main.java | 81 ClassLoader classLoader = Main.class.getClassLoader(); in getDexClassLoader() 95 ClassLoader classLoader = Main.class.getClassLoader(); in testDexFile()
|
/art/test/496-checker-inlining-class-loader/src/ |
D | Main.java | 24 super(MyClassLoader.class.getClassLoader()); in MyClassLoader() 27 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader()
|
/art/test/612-jit-dex-cache/src-ex/ |
D | LoadedByAppClassLoader.java | 27 return OtherClass.getB().getClassLoader(); in areYouB()
|
/art/test/542-unresolved-access-check/src/ |
D | Main.java | 27 super(MyClassLoader.class.getClassLoader()); in MyClassLoader() 30 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader()
|
/art/test/676-resolve-field-type/src/ |
D | Main.java | 22 ClassLoader parentLoader = Main.class.getClassLoader(); in main()
|
/art/test/071-dexfile-map-clean/src/ |
D | Main.java | 113 ClassLoader classLoader = Main.class.getClassLoader(); in testDexFile() 131 "Another", Main.class.getClassLoader()); in testDexFile()
|