Home
last modified time | relevance | path

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

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DProxyTest.java73 .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()
DGenericSignatureFormatErrorTest.java73 getClass().getClassLoader()); in test_signatureFormatError()
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java29 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
DSupport_ClassLoaderDalvik.java40 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() method in Support_ClassLoaderDalvik
/libcore/benchmarks/src/benchmarks/
DClassLoaderResourceBenchmark.java27 ClassLoader currentClassLoader = getClass().getClassLoader(); in timeGetBootResource_hit()
36 ClassLoader currentClassLoader = getClass().getClassLoader(); in timeGetBootResource_miss()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java53 applicationLibPath.toString(), getClass().getClassLoader()); in testLibraryPathSearchOrder()
70 ClassLoader pcl = PathClassLoaderTest.class.getClassLoader(); in extractResourceJar()
84 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()
DDelegateLastClassLoaderTest.java108 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()
DBaseDexClassLoaderTest.java87 pcl = BaseDexClassLoaderTest.class.getClassLoader(); in extractTestJars()
332 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries1()
357 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries2()
382 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries3()
410 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries4()
438 ClassLoader parentParent = Object.class.getClassLoader(); in testGetResourceSharedLibraries5()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNewInstance.java58 static ClassLoader getClassLoader () in getClassLoader() method in NewInstance
66 return NewInstance.class.getClassLoader(); in getClassLoader()
DXMLReaderFactory.java113 ClassLoader loader = NewInstance.getClassLoader (); in createXMLReader()
188 return loadClass (NewInstance.getClassLoader (), className); in createXMLReader()
DParserFactory.java124 NewInstance.getClassLoader (), className); in makeParser()
/libcore/dalvik/src/main/java/dalvik/system/
DDelegateLastClassLoader.java156 return Object.class.getClassLoader().loadClass(name); in loadClass()
185 URL resource = Object.class.getClassLoader().getResource(name); in getResource()
206 Object.class.getClassLoader().getResources(name), in getResources()
/libcore/luni/src/test/etc/loading-test-jar/
DTestMethods.java127 ClassLoader cl = TestMethods.class.getClassLoader(); in test_getResourceAsStream()
183 ClassLoader cl = TestMethods.class.getClassLoader(); in test_diff_getResourceAsStream()
/libcore/ojluni/src/main/java/java/security/
DProtectionDomain.java47 public final ClassLoader getClassLoader() { return null; } in getClassLoader() method in ProtectionDomain
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java128 classLoader = FactoryFinder.class.getClassLoader(); in findClassLoader()
242 cl = FactoryFinder.class.getClassLoader(); in findJarServiceProvider()
325 ClassLoader loader = clazz.getClassLoader(); in which()
/libcore/ojluni/src/main/java/java/net/
DInetAddress.java1556 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/security/
DProtectionDomainTest.java57 ProtectionDomainTest.class.getClassLoader(), new Principal[0]); in setUp()
63 assertNull(domain.getClassLoader()); in testGetClassLoader()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java254 ClassLoader pcl = getClass().getClassLoader(); in test_forNameLjava_lang_StringLbooleanLClassLoader()
315 URL url = getClass().getClassLoader().getResource( in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly()
319 getClass().getClassLoader()); in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly()
334 true, getClass().getClassLoader()); in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly()
488 getClass().getClassLoader()); in test_getPackage()
556 getClass().getClassLoader()); in test_getPackageName()
675 assertEquals(ExtendTestClass.class.getClassLoader(), in test_getClassLoader()
676 PublicTestClass.class.getClassLoader()); in test_getClassLoader()
678 assertNull(int.class.getClassLoader()); in test_getClassLoader()
679 assertNull(void.class.getClassLoader()); in test_getClassLoader()
[all …]
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java290 if (class1.getClassLoader() != class2.getClassLoader()) in isSamePackage()
/libcore/ojluni/src/main/java/sun/reflect/
DReflection.java214 return isSameClassPackage(c1.getClassLoader(), c1.getName(), in isSameClassPackage()
215 c2.getClassLoader(), c2.getName()); in isSameClassPackage()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestServiceLoader.java83 getClass().getClassLoader()); in test_copticServiceLoader()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java160 .getClassLoader(), new Class[] { Runnable.class }); in test_specialTypes()
292 InputStream dexIs = this.getClass().getClassLoader(). in testClassWithSameFieldName()
299 Class<?> clazz = dexFile.loadClass("sameFieldNames", getClass().getClassLoader()); in testClassWithSameFieldName()
/libcore/ojluni/src/test/java/util/concurrent/tck/
Dtck.policy4 permission java.lang.RuntimePermission "getClassLoader";
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactory.java146 classLoader = XPathFactory.class.getClassLoader(); in newInstance()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemsTest.java97 FileSystems.newFileSystem(testPath.toUri(), stubEnv, getClass().getClassLoader()); in test_newFileSystem$URI$Map$ClassLoader()
190 return new PathClassLoader(jarFile.getAbsolutePath(), getClass().getClassLoader()); in createClassLoaderForTestFileSystems()

1234