/libcore/libdvm/src/main/java/dalvik/system/ |
H A D | VMStack.java | 27 * Returns the defining class loader of the caller's caller. 29 * @return the requested class loader, or {@code null} if this is the 30 * bootstrap class loader. 69 ClassLoader loader = stackClass.getClassLoader(); 70 if (loader != null && loader != bootstrap && loader != system) { 71 return loader;
|
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | ParameterizedTypeImpl.java | 28 private ClassLoader loader; field in class:ParameterizedTypeImpl 31 ListOfTypes args, ClassLoader loader) { 35 this.loader = loader; 61 rawType = Class.forName(rawTypeName, false, loader); 30 ParameterizedTypeImpl(ParameterizedTypeImpl ownerType, String rawTypeName, ListOfTypes args, ClassLoader loader) argument
|
H A D | GenericSignatureParser.java | 79 public ClassLoader loader; field in class:GenericSignatureParser 100 public GenericSignatureParser(ClassLoader loader) { argument 101 this.loader = loader; 319 new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader); 329 loader);
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
H A D | XMLReaderFactory.java | 110 ClassLoader loader = NewInstance.getClassLoader (); 123 if (loader == null) 126 in = loader.getResourceAsStream (service); 150 return loadClass (loader, className); 185 private static XMLReader loadClass (ClassLoader loader, String className) argument 189 return (XMLReader) NewInstance.newInstance (loader, className);
|
/libcore/libdvm/src/main/java/java/lang/reflect/ |
H A D | Proxy.java | 71 * must be visible from the supplied class loader; no duplicates are 74 * @param loader 75 * the class loader that will define the proxy class 88 public static Class<?> getProxyClass(ClassLoader loader, argument 104 if (loader != next.getClassLoader()) { 106 if (next != Class.forName(name, false, loader)) { 108 " is not visible from class loader"); 111 throw new IllegalArgumentException(name + " is not visible from class loader"); 131 // search cache for matching proxy class using the class loader 134 .get(loader); 205 newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) argument 270 generateProxy(String name, Class[] interfaces, ClassLoader loader) argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | Runtime.java | 327 void load(String pathName, ClassLoader loader) { argument 331 String error = doLoad(pathName, loader); 354 void loadLibrary(String libraryName, ClassLoader loader) { argument 355 if (loader != null) { 356 String filename = loader.findLibrary(libraryName); 359 " from loader " + loader + 362 String error = doLoad(filename, loader); 377 String error = doLoad(candidate, loader); 393 private String doLoad(String name, ClassLoader loader) { argument 426 nativeLoad(String filename, ClassLoader loader, String ldLibraryPath) argument [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexFile.java | 126 * application; instead, use a class loader such as 185 * If you are not calling this from a class loader, this is most likely not 195 * @param loader 196 * the class loader that tries to load the class (in most cases 202 public Class loadClass(String name, ClassLoader loader) { argument 204 return loadClassBinaryName(slashName, loader, null); 214 public Class loadClassBinaryName(String name, ClassLoader loader, List<Throwable> suppressed) { argument 215 return defineClass(name, loader, mCookie, suppressed); 218 private static Class defineClass(String name, ClassLoader loader, int cookie, argument 222 result = defineClassNative(name, loader, cooki 235 defineClassNative(String name, ClassLoader loader, int cookie) argument [all...] |
/libcore/libart/src/main/java/java/lang/reflect/ |
H A D | Proxy.java | 93 * must be visible from the supplied class loader; no duplicates are 96 * @param loader 97 * the class loader that will define the proxy class 110 public static Class<?> getProxyClass(ClassLoader loader, Class<?>... interfaces) argument 112 if (loader == null) { 113 loader = ClassLoader.getSystemClassLoader(); 122 Class<?> proxy = loader.proxyCache.get(interfacesSet); 139 if (!isVisibleToClassLoader(loader, c)) { 140 throw new IllegalArgumentException(c + " is not visible from class loader"); 170 Class<?> result = generateProxy(name, interfaces, loader, methodsArra 175 isVisibleToClassLoader(ClassLoader loader, Class<?> c) argument 205 newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler invocationHandler) argument 367 generateProxy(String name, Class<?>[] interfaces, ClassLoader loader, ArtMethod[] methods, Class<?>[][] exceptions) argument [all...] |
/libcore/libdvm/src/main/java/java/lang/ |
H A D | ClassLoader.java | 53 * parent class loaders. Only if the parent class loader cannot satisfy the 54 * request, the child class loader itself tries to handle it. 69 * classes from the classpath. It is not equal to the bootstrap class loader - 74 * creation of the system class loader until first use. We use a static 81 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); field in class:ClassLoader.SystemClassLoader 90 * The packages known to the class loader. 95 * Create the system class loader. Note this is NOT the bootstrap class 96 * loader (which is managed by the VM). We use a null value for the parent 97 * to indicate that the bootstrap loader is our parent. 120 * Returns the system class loader [all...] |
H A D | Class.java | 203 * first. This is done through either the class loader of the calling class 225 * <p>If the class has not yet been loaded, it is loaded first, using the given class loader. 388 * Returns the class loader which was used to load the class represented by 390 * classes that were loaded by the bootstrap class loader. The Android 392 * class loader. 399 ClassLoader loader = getClassLoaderImpl(); 400 if (loader == null) { 401 loader = BootClassLoader.getInstance(); 403 return loader; 416 ClassLoader loader [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | MemoryHandler.java | 91 ClassLoader loader = Thread.currentThread().getContextClassLoader(); 92 if (loader == null) { 93 loader = ClassLoader.getSystemClassLoader(); 95 Class<?> targetClass = loader.loadClass(targetName);
|
H A D | Handler.java | 80 ClassLoader loader = Thread.currentThread().getContextClassLoader(); 81 if (loader == null) { 82 loader = ClassLoader.getSystemClassLoader(); 84 Class<?> c = loader.loadClass(className);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ClassLoaderReflectionTest.java | 33 * This class creates another class loader to load multiple copies of various 35 * class names using the correct class loader. 41 * than the one in the application class loader! 54 ClassLoader loader = new ClassLoaderBuilder().withPrivateCopy(prefix).build(); 55 aClass = loader.loadClass(prefix + "$A"); 56 bClass = loader.loadClass(prefix + "$B"); 57 cClass = loader.loadClass(prefix + "$C"); 58 dClass = loader.loadClass(prefix + "$D"); 59 eClass = loader.loadClass(prefix + "$E"); 60 fClass = loader [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ServiceLoaderTest.java | 32 ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.class); 33 Iterator<ServiceLoaderTestInterface> it = loader.iterator();
|
/libcore/luni/src/main/java/java/util/ |
H A D | ResourceBundle.java | 205 * @param loader 212 ClassLoader loader) throws MissingResourceException { 213 if (loader == null) { 214 throw new NullPointerException("loader == null"); 225 bundle = handleGetBundle(false, bundleName, locale, loader); 228 bundle = handleGetBundle(true, bundleName, defaultLocale, loader); 289 * @param loader 290 * the class loader to load resource 298 Locale targetLocale, ClassLoader loader, 302 Object cacheKey = loader ! 211 getBundle(String bundleName, Locale locale, ClassLoader loader) argument 297 getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control) argument 330 processGetBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control, boolean expired, ResourceBundle result) argument 476 handleGetBundle(boolean loadBase, String base, Locale locale, ClassLoader loader) argument 612 clearCache(ClassLoader loader) argument 878 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument 975 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument [all...] |
/libcore/libart/src/main/java/java/lang/ |
H A D | ClassLoader.java | 53 * parent class loaders. Only if the parent class loader cannot satisfy the 54 * request, the child class loader itself tries to handle it. 69 * classes from the classpath. It is not equal to the bootstrap class loader - 74 * creation of the system class loader until first use. We use a static 81 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); field in class:ClassLoader.SystemClassLoader 90 * The packages known to the class loader. 99 * loader. 107 * Create the system class loader. Note this is NOT the bootstrap class 108 * loader (which is managed by the VM). We use a null value for the parent 109 * to indicate that the bootstrap loader i [all...] |
H A D | Class.java | 126 /** defining class loader, or NULL for the "bootstrap" system loader. */ 256 * first. This is done through either the class loader of the calling class 279 * <p>If the class has not yet been loaded, it is loaded first, using the given class loader. 395 * Returns the class loader which was used to load the class represented by 397 * classes that were loaded by the bootstrap class loader. The Android 399 * class loader. 406 ClassLoader loader = getClassLoaderImpl(); 407 if (loader == null) { 408 loader [all...] |
/libcore/luni/src/main/java/javax/xml/validation/ |
H A D | SchemaFactoryFinder.java | 92 * @param loader 96 * If this parameter is null, the default system class loader 99 public SchemaFactoryFinder(ClassLoader loader) { argument 100 this.classLoader = loader; 108 debugPrintln("using thread context class loader ("+classLoader+") for search"); 113 debugPrintln("using system class loader ("+classLoader+") for search"); 117 debugPrintln("using class loader (" + classLoader + ") for search"); 402 * @param loader the classloader to search 406 private static String which(String classname, ClassLoader loader) { argument 409 if (loader [all...] |
/libcore/luni/src/main/java/javax/xml/xpath/ |
H A D | XPathFactoryFinder.java | 88 * @param loader 92 * If this parameter is null, the default system class loader 95 public XPathFactoryFinder(ClassLoader loader) { argument 96 this.classLoader = loader; 104 debugPrintln("using thread context class loader (" + classLoader + ") for search"); 109 debugPrintln("using system class loader (" + classLoader + ") for search"); 113 debugPrintln("using class loader (" + classLoader + ") for search"); 362 * @param loader the classloader to search 366 private static String which(String classname, ClassLoader loader) { argument 368 if (loader [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | ResourceBundleTest.java | 99 @KnownFailure("It's not allowed to pass null as parent class loader to" 122 URLClassLoader loader = new URLClassLoader(urls, null); 129 bundle = ResourceBundle.getBundle(name, Locale.getDefault(), loader); 134 ResourceBundle.getBundle(null, Locale.getDefault(), loader); 141 ResourceBundle.getBundle(name, null, loader); 155 ResourceBundle.getBundle("", Locale.getDefault(), loader);
|
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectStreamField.java | 293 void resolve(ClassLoader loader) { argument 311 Class<?> cl = Class.forName(className, false, loader);
|
H A D | ObjectInputStream.java | 95 // Original caller's class loader, used to perform class lookups 463 * enabled. Only trusted subclasses (loaded with system class loader) are 1648 // Resolve the field signatures using the class loader of the 1652 ClassLoader loader = newClassDesc.forClass() == null ? callerClassLoader 1655 element.resolve(loader); 1741 ClassLoader loader = ClassLoader.getSystemClassLoader(); 1744 interfaces[i] = Class.forName(interfaceNames[i], false, loader); 1747 return Proxy.getProxyClass(loader, interfaces); 1977 // Remember the caller's class loader 1991 // No more need to remember the caller's class loader [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | FactoryFinder.java | 103 "Using context class loader: " 111 "Using the class loader of FactoryFinder: " 321 ClassLoader loader = clazz.getClassLoader(); 325 if (loader != null) { 326 it = loader.getResource(classnameAsResource);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestCase.java | 66 ClassLoader loader = ClassLoader.getSystemClassLoader(); 68 Class runnerClass = loader.loadClass("org.w3c.domts.JUnitRunner"); 79 Class argsClass = loader.loadClass("[Ljava.lang.String;");
|
/libcore/luni/src/test/java/dalvik/system/ |
H A D | DexClassLoaderTest.java | 85 private static void copyResource(ClassLoader loader, String resourceName, argument 92 loader.getResourceAsStream(PACKAGE_PATH + resourceName);
|