/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ProxyTest.java | 73 .getClassLoader(), new Class[] { Support_Proxy_I1.class }); in test_getProxyClassLjava_lang_ClassLoader$Ljava_lang_Class() 85 Proxy.getProxyClass(Support_Proxy_I1.class.getClassLoader(), in test_getProxyClassLjava_lang_ClassLoader$Ljava_lang_Class() 92 Proxy.getProxyClass(Support_Proxy_I1.class.getClassLoader(), in test_getProxyClassLjava_lang_ClassLoader$Ljava_lang_Class() 120 .getClassLoader(), new Class[] { Support_Proxy_I1.class, in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 175 .getClassLoader(), new Class[] { Broken1.class }, in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 187 .getClassLoader(), new Class[] { Support_Proxy_I1.class }); in test_isProxyClassLjava_lang_Class() 228 .getClassLoader(), new Class[] { Support_Proxy_I1.class }, in test_getInvocationHandlerLjava_lang_Object() 243 .newProxyInstance(this.getClass().getClassLoader(), in test_newProxyInstance_withCompatibleReturnTypes() 252 Proxy.newProxyInstance(this.getClass().getClassLoader(), in test_newProxyInstance_withNonCompatibleReturnTypes() 266 …Class<?> c = Proxy.getProxyClass(myImpl.getClass().getClassLoader(), myImpl.getClass().getInterfac… in test_ProxyClass_withParentAndSubInThrowList()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ClassLoader.java | 29 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); in getClassLoader() method in Support_ClassLoader 44 return factory.getClassLoader(url, parent); in getInstance() 56 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() method in Support_ClassLoader.RefImpl
|
D | Support_ClassLoaderDalvik.java | 40 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() method in Support_ClassLoaderDalvik
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | PathClassLoaderTest.java | 52 applicationLibPath.toString(), getClass().getClassLoader()); in testLibraryPathSearchOrder() 69 ClassLoader pcl = PathClassLoaderTest.class.getClassLoader(); in extractResourceJar() 83 PathClassLoader cl = new PathClassLoader(jar.getPath(), Object.class.getClassLoader()); in testAppUseOfPathClassLoader() 101 f.getAbsolutePath(), this.getClass().getClassLoader()); in test_classLoader_tampered_certificate_loadsOK_nullCertificates() 127 Object.class.getClassLoader()); in test_classLoader_exceptionDuringLoading()
|
D | DelegateLastClassLoaderTest.java | 108 Object.class.getClassLoader()); in createClassLoader() 116 assertSame(cl, clazz.getClassLoader()); in callMethod() 145 assertSame(delegate, child.getClassLoader()); in testLookupOrder_foundInParent() 148 assertSame(delegate.getParent(), parent.getClassLoader()); in testLookupOrder_foundInParent() 260 assertNotSame(cl, clazz.getClassLoader()); in testLookupOrder_bootOverride()
|
D | BaseDexClassLoaderTest.java | 98 pcl = BaseDexClassLoaderTest.class.getClassLoader(); in extractTestJars() 451 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries1() 486 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries2() 521 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries3() 559 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries4() 597 ClassLoader parentParent = Object.class.getClassLoader(); in testGetResourceSharedLibraries5() 637 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries6() 694 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries7() 731 ClassLoader parent = Object.class.getClassLoader(); in testLookupOrder_loadClass() 745 assertSame(sharedLibrary1[0], parentClass.getClassLoader()); in testLookupOrder_loadClass() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | ClassLoaderResourceBenchmark.java | 27 ClassLoader currentClassLoader = getClass().getClassLoader(); in timeGetBootResource_hit() 36 ClassLoader currentClassLoader = getClass().getClassLoader(); in timeGetBootResource_miss()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | NewInstance.java | 58 static ClassLoader getClassLoader () in getClassLoader() method in NewInstance 66 return NewInstance.class.getClassLoader(); in getClassLoader()
|
D | XMLReaderFactory.java | 113 ClassLoader loader = NewInstance.getClassLoader (); in createXMLReader() 188 return loadClass (NewInstance.getClassLoader (), className); in createXMLReader()
|
D | ParserFactory.java | 124 NewInstance.getClassLoader (), className); in makeParser()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DelegateLastClassLoader.java | 191 return Object.class.getClassLoader().loadClass(name); in loadClass() 220 URL resource = Object.class.getClassLoader().getResource(name); in getResource() 241 Object.class.getClassLoader().getResources(name), in getResources()
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 127 ClassLoader cl = TestMethods.class.getClassLoader(); in test_getResourceAsStream() 183 ClassLoader cl = TestMethods.class.getClassLoader(); in test_diff_getResourceAsStream()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 128 classLoader = FactoryFinder.class.getClassLoader(); in findClassLoader() 242 cl = FactoryFinder.class.getClassLoader(); in findJarServiceProvider() 325 ClassLoader loader = clazz.getClassLoader(); in which()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 257 ClassLoader pcl = getClass().getClassLoader(); in test_forNameLjava_lang_StringLbooleanLClassLoader() 318 URL url = getClass().getClassLoader().getResource( in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly() 322 getClass().getClassLoader()); in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly() 337 true, getClass().getClassLoader()); in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly() 492 getClass().getClassLoader()); in test_getPackage() 560 getClass().getClassLoader()); in test_getPackageName() 679 assertEquals(ExtendTestClass.class.getClassLoader(), in test_getClassLoader() 680 PublicTestClass.class.getClassLoader()); in test_getClassLoader() 682 assertNull(int.class.getClassLoader()); in test_getClassLoader() 683 assertNull(void.class.getClassLoader()); in test_getClassLoader() [all …]
|
D | StackWalkerTest.java | 74 try (InputStream is = ThreadTest.class.getClassLoader() in loadPrebuiltDexClassLoader() 78 ThreadTest.class.getClassLoader()); in loadPrebuiltDexClassLoader()
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetAddress.java | 1556 if (getClass().getClassLoader() != BOOT_CLASSLOADER) { in readObjectNoData() 1562 private static final ClassLoader BOOT_CLASSLOADER = Object.class.getClassLoader(); 1567 if (getClass().getClassLoader() != BOOT_CLASSLOADER) { in readObject() 1593 if (getClass().getClassLoader() != BOOT_CLASSLOADER) { in writeObject()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ResourceBundleTest.java | 57 ClassLoader resClassLoader = Support_Resources.class.getClassLoader(); in testGetBundle_withControl() 92 assertEquals(resClassLoader, ResourceBundleTest.class.getClassLoader()); in testGetBundle_withControl()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProtectionDomainTest.java | 57 ProtectionDomainTest.class.getClassLoader(), new Principal[0]); in setUp() 63 assertNull(domain.getClassLoader()); in testGetClassLoader()
|
/libcore/ojluni/src/main/java/jdk/internal/reflect/ |
D | Reflection.java | 214 return isSameClassPackage(c1.getClassLoader(), c1.getName(), in isSameClassPackage() 215 c2.getClassLoader(), c2.getName()); in isSameClassPackage()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | VerifyAccess.java | 290 if (class1.getClassLoader() != class2.getClassLoader()) in isSamePackage()
|
/libcore/ojluni/src/main/java/sun/reflect/ |
D | Reflection.java | 214 return isSameClassPackage(c1.getClassLoader(), c1.getName(), in isSameClassPackage() 215 c2.getClassLoader(), c2.getName()); in isSameClassPackage()
|
/libcore/ojluni/src/main/java/java/security/ |
D | ProtectionDomain.java | 47 public final ClassLoader getClassLoader() { return null; } in getClassLoader() method in ProtectionDomain
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectStreamClassTest.java | 163 .getClassLoader(), new Class[] { Runnable.class }); in test_specialTypes() 295 InputStream dexIs = this.getClass().getClassLoader(). in testClassWithSameFieldName() 303 Class<?> clazz = dexFile.loadClass("sameFieldNames", getClass().getClassLoader()); in testClassWithSameFieldName()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestServiceLoader.java | 83 getClass().getClassLoader()); in test_copticServiceLoader()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | tck.policy | 4 permission java.lang.RuntimePermission "getClassLoader";
|