/libcore/luni/src/test/java/libcore/reflect/ |
D | InternalNamesTest.java | 22 private final ClassLoader loader = InternalNames.class.getClassLoader(); field in InternalNamesTest 26 InternalNames.getClass(loader, null); in testGetClassNull() 41 assertEquals(byte.class, InternalNames.getClass(loader, "B")); in testInternalNameToPrimitive() 42 assertEquals(char.class, InternalNames.getClass(loader, "C")); in testInternalNameToPrimitive() 43 assertEquals(double.class, InternalNames.getClass(loader, "D")); in testInternalNameToPrimitive() 44 assertEquals(float.class, InternalNames.getClass(loader, "F")); in testInternalNameToPrimitive() 45 assertEquals(int.class, InternalNames.getClass(loader, "I")); in testInternalNameToPrimitive() 46 assertEquals(long.class, InternalNames.getClass(loader, "J")); in testInternalNameToPrimitive() 47 assertEquals(short.class, InternalNames.getClass(loader, "S")); in testInternalNameToPrimitive() 48 assertEquals(boolean.class, InternalNames.getClass(loader, "Z")); in testInternalNameToPrimitive() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ProxyTest.java | 31 private final ClassLoader loader = getClass().getClassLoader(); field in ProxyTest 71 Proxy.newProxyInstance(loader, new Class[] {ReturnsInt.class, ReturnsFloat.class}, in testIncompatibleReturnTypesPrimitiveAndPrimitive() 80 Proxy.newProxyInstance(loader, new Class[] {ReturnsInt.class, ReturnsInteger.class}, in testIncompatibleReturnTypesPrimitiveAndWrapper() 89 Proxy.newProxyInstance(loader, new Class[] {ReturnsInt.class, ReturnsVoid.class}, in testIncompatibleReturnTypesPrimitiveAndVoid() 98 Proxy.newProxyInstance(loader, new Class[] {ReturnsInteger.class, ReturnsString.class }, in testIncompatibleReturnTypesIncompatibleObjects() 106 Proxy.newProxyInstance(loader, new Class[] {ReturnsString.class, ReturnsCharSequence.class}, in testCompatibleReturnTypesImplementedInterface() 108 Proxy.newProxyInstance(loader, new Class[]{ReturnsObject.class, ReturnsCharSequence.class, in testCompatibleReturnTypesImplementedInterface() 110 Proxy.newProxyInstance(loader, new Class[]{ReturnsObject.class, ReturnsCharSequence.class, in testCompatibleReturnTypesImplementedInterface() 117 Proxy.newProxyInstance(loader, new Class[] {ReturnsString.class, ReturnsObject.class}, in testCompatibleReturnTypesSuperclass() 122 ThrowsIOException instance = (ThrowsIOException) Proxy.newProxyInstance(loader, in testDeclaredExceptionIntersectionIsSubtype() [all …]
|
D | ClassLoaderReflectionTest.java | 54 ClassLoader loader = new ClassLoaderBuilder().withPrivateCopy(prefix).build(); in setUp() local 55 aClass = loader.loadClass(prefix + "$A"); in setUp() 56 bClass = loader.loadClass(prefix + "$B"); in setUp() 57 cClass = loader.loadClass(prefix + "$C"); in setUp() 58 dClass = loader.loadClass(prefix + "$D"); in setUp() 59 eClass = loader.loadClass(prefix + "$E"); in setUp() 60 fClass = loader.loadClass(prefix + "$F"); in setUp() 61 aListClass = loader.loadClass(prefix + "$AList"); in setUp() 62 bStringClass = loader.loadClass(prefix + "$BString"); in setUp()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | XMLReaderFactory.java | 110 ClassLoader loader = NewInstance.getClassLoader (); in createXMLReader() local 123 if (loader == null) in createXMLReader() 126 in = loader.getResourceAsStream (service); in createXMLReader() 150 return loadClass (loader, className); in createXMLReader() 185 private static XMLReader loadClass (ClassLoader loader, String className) in loadClass() argument 189 return (XMLReader) NewInstance.newInstance (loader, className); in loadClass()
|
/libcore/luni/src/main/java/java/lang/ |
D | Runtime.java | 325 void load(String absolutePath, ClassLoader loader) { in load() argument 329 String error = doLoad(absolutePath, loader); in load() 358 void loadLibrary(String libraryName, ClassLoader loader) { in loadLibrary() argument 359 if (loader != null) { in loadLibrary() 360 String filename = loader.findLibrary(libraryName); in loadLibrary() 366 throw new UnsatisfiedLinkError(loader + " couldn't find \"" + in loadLibrary() 369 String error = doLoad(filename, loader); in loadLibrary() 384 String error = doLoad(candidate, loader); in loadLibrary() 400 private String doLoad(String name, ClassLoader loader) { in doLoad() argument 421 if (loader != null && loader instanceof BaseDexClassLoader) { in doLoad() [all …]
|
/libcore/libart/src/main/java/java/lang/reflect/ |
D | Proxy.java | 109 public static Class<?> getProxyClass(ClassLoader loader, Class<?>... interfaces) in getProxyClass() argument 111 if (loader == null) { in getProxyClass() 112 loader = ClassLoader.getSystemClassLoader(); in getProxyClass() 137 synchronized (loader.proxyCache) { in getProxyClass() 138 Class<?> proxy = loader.proxyCache.get(interfaceList); in getProxyClass() 149 if (!isVisibleToClassLoader(loader, c)) { in getProxyClass() 181 synchronized (loader.proxyCache) { in getProxyClass() 182 result = loader.proxyCache.get(interfaceSet); in getProxyClass() 185 result = generateProxy(name, interfaces, loader, methodsArray, exceptionsArray); in getProxyClass() 186 loader.proxyCache.put(interfaceList, result); in getProxyClass() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | ResourceBundle.java | 212 ClassLoader loader) throws MissingResourceException { in getBundle() argument 213 if (loader == null) { in getBundle() 225 bundle = handleGetBundle(false, bundleName, locale, loader); in getBundle() 228 bundle = handleGetBundle(true, bundleName, defaultLocale, loader); in getBundle() 298 Locale targetLocale, ClassLoader loader, in getBundle() argument 302 Object cacheKey = loader != null ? loader : "null"; in getBundle() 318 ResourceBundle ret = processGetBundle(baseName, targetLocale, loader, in getBundle() 331 Locale targetLocale, ClassLoader loader, in processGetBundle() argument 352 loader, control.needsReload(baseName, locale, in processGetBundle() 353 format, loader, result, System in processGetBundle() [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | ParameterizedTypeImpl.java | 30 private final ClassLoader loader; field in ParameterizedTypeImpl 33 ListOfTypes args, ClassLoader loader) { in ParameterizedTypeImpl() argument 40 this.loader = loader; in ParameterizedTypeImpl() 65 rawType = Class.forName(rawTypeName, false, loader); in getRawType()
|
D | GenericSignatureParser.java | 79 public ClassLoader loader; field in GenericSignatureParser 100 public GenericSignatureParser(ClassLoader loader) { in GenericSignatureParser() argument 101 this.loader = loader; in GenericSignatureParser() 319 new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader); in parseClassTypeSignature() 329 loader); in parseClassTypeSignature()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexFile.java | 206 public Class loadClass(String name, ClassLoader loader) { in loadClass() argument 208 return loadClassBinaryName(slashName, loader, null); in loadClass() 218 public Class loadClassBinaryName(String name, ClassLoader loader, List<Throwable> suppressed) { in loadClassBinaryName() argument 219 return defineClass(name, loader, mCookie, suppressed); in loadClassBinaryName() 222 private static Class defineClass(String name, ClassLoader loader, long cookie, in defineClass() argument 226 result = defineClassNative(name, loader, cookie); in defineClass() 301 private static native Class defineClassNative(String name, ClassLoader loader, long cookie) in defineClassNative() argument
|
/libcore/libart/src/main/java/java/lang/ |
D | ClassLoader.java | 81 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); field in ClassLoader.SystemClassLoader 137 return SystemClassLoader.loader; in getSystemClassLoader() 151 return SystemClassLoader.loader.getResource(resName); in getSystemResource() 167 return SystemClassLoader.loader.getResources(resName); in getSystemResources() 182 return SystemClassLoader.loader.getResourceAsStream(resName); in getSystemResourceAsStream() 357 ClassLoader loader; in findLoadedClass() local 359 loader = null; in findLoadedClass() 361 loader = this; in findLoadedClass() 362 return VMClassLoader.findLoadedClass(loader, className); in findLoadedClass()
|
D | Class.java | 410 ClassLoader loader = getClassLoaderImpl(); in getClassLoader() local 411 if (loader == null) { in getClassLoader() 412 loader = BootClassLoader.getInstance(); in getClassLoader() 414 return loader; in getClassLoader() 427 ClassLoader loader = classLoader; in getClassLoaderImpl() local 428 return loader == null ? BootClassLoader.getInstance() : loader; in getClassLoaderImpl() 1334 ClassLoader loader = getClassLoader(); in getResource() local 1335 if (loader != null) { in getResource() 1336 return loader.getResource(resourceName); in getResource() 1366 ClassLoader loader = getClassLoader(); in getResourceAsStream() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | LoadLocaleProviderTestHelper.java | 28 URLClassLoader loader = new URLClassLoader(classpathes); in LoadLocaleProviderTestHelper() local 30 thread.setContextClassLoader(loader); in LoadLocaleProviderTestHelper()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | MemoryHandler.java | 91 ClassLoader loader = Thread.currentThread().getContextClassLoader(); in MemoryHandler() local 92 if (loader == null) { in MemoryHandler() 93 loader = ClassLoader.getSystemClassLoader(); in MemoryHandler() 95 Class<?> targetClass = loader.loadClass(targetName); in MemoryHandler()
|
D | Handler.java | 80 ClassLoader loader = Thread.currentThread().getContextClassLoader(); in getCustomizeInstance() local 81 if (loader == null) { in getCustomizeInstance() 82 loader = ClassLoader.getSystemClassLoader(); in getCustomizeInstance() 84 Class<?> c = loader.loadClass(className); in getCustomizeInstance()
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactoryFinder.java | 95 public XPathFactoryFinder(ClassLoader loader) { in XPathFactoryFinder() argument 96 this.classLoader = loader; in XPathFactoryFinder() 366 private static String which(String classname, ClassLoader loader) { in which() argument 368 if (loader==null) loader = ClassLoader.getSystemClassLoader(); in which() 370 URL it = loader.getResource(classnameAsResource); in which()
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SchemaFactoryFinder.java | 99 public SchemaFactoryFinder(ClassLoader loader) { in SchemaFactoryFinder() argument 100 this.classLoader = loader; in SchemaFactoryFinder() 406 private static String which(String classname, ClassLoader loader) { in which() argument 409 if (loader == null) loader = ClassLoader.getSystemClassLoader(); in which() 411 URL it = loader.getResource(classnameAsResource); in which()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 32 …ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.c… in test_implementations() local 33 Iterator<ServiceLoaderTestInterface> it = loader.iterator(); in test_implementations()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 321 ClassLoader loader = clazz.getClassLoader(); in which() local 325 if (loader != null) { in which() 326 it = loader.getResource(classnameAsResource); in which()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ResourceBundleTest.java | 122 URLClassLoader loader = new URLClassLoader(urls, null); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader() local 129 bundle = ResourceBundle.getBundle(name, Locale.getDefault(), loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader() 134 ResourceBundle.getBundle(null, Locale.getDefault(), loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader() 141 ResourceBundle.getBundle(name, null, loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader() 155 ResourceBundle.getBundle("", Locale.getDefault(), loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
|
/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamField.java | 293 void resolve(ClassLoader loader) { in resolve() argument 311 Class<?> cl = Class.forName(className, false, loader); in resolve()
|
D | ObjectInputStream.java | 1655 ClassLoader loader = newClassDesc.forClass() == null ? callerClassLoader in readNewClassDesc() local 1658 element.resolve(loader); in readNewClassDesc() 1742 ClassLoader loader = callerClassLoader; in resolveProxyClass() local 1745 interfaces[i] = Class.forName(interfaceNames[i], false, loader); in resolveProxyClass() 1748 return Proxy.getProxyClass(loader, interfaces); in resolveProxyClass()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/ |
D | FileURLConnectionTest.java | 38 private final ClassLoader loader = FileURLConnectionTest.class.getClassLoader(); field in FileURLConnectionTest 44 final URL url = loader.getResource(resourceName); in createTempFileWithContent()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestCase.java | 66 ClassLoader loader = ClassLoader.getSystemClassLoader(); in doMain() local 68 Class runnerClass = loader.loadClass("org.w3c.domts.JUnitRunner"); in doMain() 79 Class argsClass = loader.loadClass("[Ljava.lang.String;"); in doMain()
|
/libcore/luni/src/test/java/dalvik/system/ |
D | DexClassLoaderTest.java | 132 private static void copyResource(ClassLoader loader, String resourceName, in copyResource() argument 139 loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
|