Home
last modified time | relevance | path

Searched refs:loader (Results 1 – 25 of 46) sorted by relevance

12

/libcore/luni/src/test/java/libcore/libcore/reflect/
DInternalNamesTest.java24 private final ClassLoader loader = InternalNames.class.getClassLoader(); field in InternalNamesTest
28 InternalNames.getClass(loader, null); in testGetClassNull()
43 assertEquals(byte.class, InternalNames.getClass(loader, "B")); in testInternalNameToPrimitive()
44 assertEquals(char.class, InternalNames.getClass(loader, "C")); in testInternalNameToPrimitive()
45 assertEquals(double.class, InternalNames.getClass(loader, "D")); in testInternalNameToPrimitive()
46 assertEquals(float.class, InternalNames.getClass(loader, "F")); in testInternalNameToPrimitive()
47 assertEquals(int.class, InternalNames.getClass(loader, "I")); in testInternalNameToPrimitive()
48 assertEquals(long.class, InternalNames.getClass(loader, "J")); in testInternalNameToPrimitive()
49 assertEquals(short.class, InternalNames.getClass(loader, "S")); in testInternalNameToPrimitive()
50 assertEquals(boolean.class, InternalNames.getClass(loader, "Z")); in testInternalNameToPrimitive()
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DBaseDexClassLoaderTest.java194 private void checkResources(ClassLoader loader) throws Exception { in checkResources() argument
195 List<String> resources = readResources(loader, "resource.txt"); in checkResources()
201 resources = readResources(loader, "resource2.txt"); in checkResources()
222 ClassLoader loader = new PathClassLoader("", null, parent, sharedLibraries); in testGetResourceSharedLibraries1() local
223 assertEquals("parent", readResource(loader, "resource.txt")); in testGetResourceSharedLibraries1()
224 checkResources(loader); in testGetResourceSharedLibraries1()
227 loader = new DelegateLastClassLoader("", null, parent, sharedLibraries); in testGetResourceSharedLibraries1()
228 assertEquals("parent", readResource(loader, "resource.txt")); in testGetResourceSharedLibraries1()
229 checkResources(loader); in testGetResourceSharedLibraries1()
247 ClassLoader loader = new PathClassLoader("", null, parent, sharedLibraries); in testGetResourceSharedLibraries2() local
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java78 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
80 this(file.getPath(), loader, elements); in DexFile()
105 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
107 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile()
113 DexFile(ByteBuffer[] bufs, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
115 mCookie = openInMemoryDexFiles(bufs, loader, elements); in DexFile()
135 private DexFile(String sourceName, String outputName, int flags, ClassLoader loader, in DexFile() argument
150 mCookie = openDexFile(sourceName, outputName, flags, loader, elements); in DexFile()
201 int flags, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in loadDex() argument
210 return new DexFile(sourcePathName, outputPathName, flags, loader, elements); in loadDex()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java31 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 …]
DClassLoaderReflectionTest.java54 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/ojluni/src/main/java/sun/invoke/util/
DBytecodeDescriptor.java40 public static List<Class<?>> parseMethod(String bytecodeSignature, ClassLoader loader) { in parseMethod() argument
41 return parseMethod(bytecodeSignature, 0, bytecodeSignature.length(), loader); in parseMethod()
45 int start, int end, ClassLoader loader) { in parseMethod() argument
46 if (loader == null) in parseMethod()
47 loader = ClassLoader.getSystemClassLoader(); in parseMethod()
54 Class<?> pt = parseSig(str, i, end, loader); in parseMethod()
63 Class<?> rtype = parseSig(str, i, end, loader); in parseMethod()
74 static private Class<?> parseSig(String str, int[] i, int end, ClassLoader loader) { in parseSig() argument
83 return loader.loadClass(name); in parseSig()
88 Class<?> t = parseSig(str, i, end, loader); in parseSig()
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java914 void load(String absolutePath, ClassLoader loader) { in load() argument
922 String error = nativeLoad(absolutePath, loader); in load()
1030 void loadLibrary0(ClassLoader loader, String libname) { in loadLibrary0() argument
1033 loadLibrary0(loader, null, libname); in loadLibrary0()
1050 … private synchronized void loadLibrary0(ClassLoader loader, Class<?> callerClass, String libname) { in loadLibrary0() argument
1059 if (loader != null && !(loader instanceof BootClassLoader)) { in loadLibrary0()
1060 String filename = loader.findLibrary(libraryName); in loadLibrary0()
1066 throw new UnsatisfiedLinkError(loader + " couldn't find \"" + in loadLibrary0()
1069 String error = nativeLoad(filename, loader); in loadLibrary0()
1080 String error = nativeLoad(filename, loader, callerClass); in loadLibrary0()
[all …]
DPackage.java388 packageInfo = Class.forName(pkgName + ".package-info", false, loader); in getPackageInfo()
471 URL sealbase, ClassLoader loader) in Package() argument
481 this.loader = loader; in Package()
491 private Package(String name, Manifest man, URL url, ClassLoader loader) { in Package() argument
546 this.loader = loader; in Package()
655 private transient final ClassLoader loader;
DClassLoader.java183 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); field in ClassLoader.SystemClassLoader
733 ClassLoader loader; in findLoadedClass() local
735 loader = null; in findLoadedClass()
737 loader = this; in findLoadedClass()
738 return VMClassLoader.findLoadedClass(loader, name); in findLoadedClass()
1098 return SystemClassLoader.loader; in getSystemClassLoader()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderFactory.java111 ClassLoader loader = NewInstance.getClassLoader (); in createXMLReader() local
124 if (loader == null) in createXMLReader()
127 in = loader.getResourceAsStream (service); in createXMLReader()
154 return loadClass (loader, className); in createXMLReader()
190 private static XMLReader loadClass (ClassLoader loader, String className) in loadClass() argument
194 return (XMLReader) NewInstance.newInstance (loader, className); in loadClass()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java193 private final ClassLoader loader; field in ServiceLoader
218 lookupIterator = new LazyIterator(service, loader); in reload()
223 loader = (cl == null) ? ClassLoader.getSystemClassLoader() : cl; in ServiceLoader()
329 ClassLoader loader; field in ServiceLoader.LazyIterator
334 private LazyIterator(Class<S> service, ClassLoader loader) { in LazyIterator() argument
336 this.loader = loader; in LazyIterator()
346 if (loader == null) in hasNextService()
349 configs = loader.getResources(fullName); in hasNextService()
371 c = Class.forName(cn, false, loader); in nextService()
522 ClassLoader loader) in load() argument
[all …]
DResourceBundle.java495 private static final ClassLoader loader = ClassLoader.getSystemClassLoader(); field in ResourceBundle.RBClassLoader
500 if (loader != null) { in loadClass()
501 return loader.loadClass(name); in loadClass()
506 if (loader != null) { in getResource()
507 return loader.getResource(name); in getResource()
512 if (loader != null) { in getResourceAsStream()
513 return loader.getResourceAsStream(name); in getResourceAsStream()
565 CacheKey(String baseName, Locale locale, ClassLoader loader) { in CacheKey() argument
568 if (loader == null) { in CacheKey()
571 loaderRef = new LoaderReference(loader, referenceQueue, this); in CacheKey()
[all …]
/libcore/luni/src/main/java/libcore/reflect/
DParameterizedTypeImpl.java30 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()
DGenericSignatureParser.java79 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/ojluni/src/main/java/java/nio/file/
DFileSystems.java318 public static FileSystem newFileSystem(URI uri, Map<String,?> env, ClassLoader loader) in newFileSystem() argument
331 if (loader != null) { in newFileSystem()
333 .load(FileSystemProvider.class, loader); in newFileSystem()
380 ClassLoader loader) in newFileSystem() argument
396 if (loader != null) { in newFileSystem()
398 .load(FileSystemProvider.class, loader); in newFileSystem()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java157 for (Loader loader : loaders) { in closeLoaders()
159 loader.close(); in closeLoaders()
212 Loader loader; in findResource() local
214 for (int i = 0; (loader = getNextLoader(cache, i)) != null; i++) { in findResource()
215 URL url = loader.findResource(name, check); in findResource()
236 Loader loader; in getResource() local
238 for (int i = 0; (loader = getNextLoader(cache, i)) != null; i++) { in getResource()
239 Resource res = loader.getResource(name, check); in getResource()
265 Loader loader; in findResources() local
266 while ((loader = getNextLoader(cache, index++)) != null) { in findResources()
[all …]
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java110 public XPathFactoryFinder(ClassLoader loader) { in XPathFactoryFinder() argument
111 this.classLoader = loader; in XPathFactoryFinder()
363 private static String which(String classname, ClassLoader loader) { in which() argument
365 if (loader==null) loader = ClassLoader.getSystemClassLoader(); in which()
367 URL it = loader.getResource(classnameAsResource); in which()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DLoadLocaleProviderTestHelper.java28 URLClassLoader loader = new URLClassLoader(classpathes); in LoadLocaleProviderTestHelper() local
30 thread.setContextClassLoader(loader); in LoadLocaleProviderTestHelper()
/libcore/ojluni/src/main/java/java/lang/reflect/
DProxy.java371 public static Class<?> getProxyClass(ClassLoader loader, in getProxyClass() argument
386 return getProxyClass0(loader, interfaces); in getProxyClass()
429 private static Class<?> getProxyClass0(ClassLoader loader, in getProxyClass0() argument
438 return proxyClassCache.get(loader, interfaces); in getProxyClass0()
612 public Class<?> apply(ClassLoader loader, Class<?>[] interfaces) { in apply() argument
622 interfaceClass = Class.forName(intf.getName(), false, loader); in apply()
692 return generateProxy(proxyName, interfaces, loader, methodsArray, in apply()
803 ClassLoader loader, Method[] methods, in generateProxy() argument
854 public static Object newProxyInstance(ClassLoader loader, in newProxyInstance() argument
873 Class<?> cl = getProxyClass0(loader, intfs); in newProxyInstance()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestServiceLoader.java82 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class, in test_copticServiceLoader() local
84 for (Chronology chrono : loader) { in test_copticServiceLoader()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java114 public SchemaFactoryFinder(ClassLoader loader) { in SchemaFactoryFinder() argument
115 this.classLoader = loader; in SchemaFactoryFinder()
403 private static String which(String classname, ClassLoader loader) { in which() argument
406 if (loader == null) loader = ClassLoader.getSystemClassLoader(); in which()
408 URL it = loader.getResource(classnameAsResource); in which()
/libcore/ojluni/src/main/java/javax/crypto/
DSealedObject.java479 ClassLoader loader = Thread.currentThread().getContextClassLoader(); in resolveClass()
480 if (loader == null) { in resolveClass()
484 loader = systemClassLoader; in resolveClass()
485 if (loader == null) { in resolveClass()
490 return Class.forName(v.getName(), false, loader); in resolveClass()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DProxy.java43 java.lang.ClassLoader loader, java.lang.Class<?>... interfaces) in getProxyClass() argument
49 java.lang.ClassLoader loader, java.lang.Class<?>... interfaces) { in getProxyClass0() argument
80 java.lang.ClassLoader loader, in generateProxy() argument
85 java.lang.ClassLoader loader, in newProxyInstance() argument
250 java.lang.ClassLoader loader, java.lang.Class<?>[] interfaces) { in apply() argument
/libcore/luni/src/test/java/libcore/java/util/
DServiceLoaderTest.java32 …ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.c… in test_implementations() local
33 Iterator<ServiceLoaderTestInterface> it = loader.iterator(); in test_implementations()
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DProxy.annotated.java37 …lang.Class<?> getProxyClass(@libcore.util.Nullable java.lang.ClassLoader loader, java.lang.@libcor… in getProxyClass() argument
39 …ang.Object newProxyInstance(@libcore.util.Nullable java.lang.ClassLoader loader, java.lang.@libcor… in newProxyInstance() argument

12