/libcore/luni/src/test/java/libcore/libcore/reflect/ |
D | InternalNamesTest.java | 24 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/ |
D | BaseDexClassLoaderTest.java | 431 private void checkResources(ClassLoader loader) throws Exception { in checkResources() argument 432 List<String> resources = readResources(loader, "resource.txt"); in checkResources() 438 resources = readResources(loader, "resource2.txt"); in checkResources() 459 ClassLoader loader = new PathClassLoader("", null, parent, sharedLibraries); in testGetResourceSharedLibraries1() local 460 assertEquals("parent", readResource(loader, "resource.txt")); in testGetResourceSharedLibraries1() 461 checkResources(loader); in testGetResourceSharedLibraries1() 464 loader = new DelegateLastClassLoader("", null, parent, sharedLibraries); in testGetResourceSharedLibraries1() 465 assertEquals("parent", readResource(loader, "resource.txt")); in testGetResourceSharedLibraries1() 466 checkResources(loader); in testGetResourceSharedLibraries1() 469 loader = new PathClassLoader("", null, parent, null, sharedLibraries); in testGetResourceSharedLibraries1() [all …]
|
/libcore/ojluni/src/test/java/lang/ClassLoader/ |
D | AssertTest.java | 77 ClassLoader loader = SetAssertionSwitches(switches); in testAssert() local 78 loader.clearAssertionStatus(); // Clearing also does nothing in testAssert() 88 ClassLoader loader = ClassLoader.getSystemClassLoader(); in SetAssertionSwitches() local 91 loader.setDefaultAssertionStatus(switches[0]==2); in SetAssertionSwitches() 93 loader.setPackageAssertionStatus("package1", switches[1]==2); in SetAssertionSwitches() 95 loader.setPackageAssertionStatus("package2", switches[2]==2); in SetAssertionSwitches() 97 loader.setPackageAssertionStatus("package1.package3", switches[3]==2); in SetAssertionSwitches() 99 loader.setClassAssertionStatus("package1.Class1", switches[4]==2); in SetAssertionSwitches() 101 loader.setClassAssertionStatus("package2.Class2", switches[5]==2); in SetAssertionSwitches() 103 loader.setClassAssertionStatus("package1.package3.Class3", switches[6]==2); in SetAssertionSwitches() [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/dalvik/src/main/java/dalvik/system/ |
D | DexFile.java | 99 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 101 this(file.getPath(), loader, elements); in DexFile() 126 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 128 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile() 134 DexFile(ByteBuffer[] bufs, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 136 mCookie = openInMemoryDexFiles(bufs, loader, elements); in DexFile() 156 private DexFile(String sourceName, String outputName, int flags, ClassLoader loader, in DexFile() argument 171 mCookie = openDexFile(sourceName, outputName, flags, loader, elements); in DexFile() 222 int flags, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in loadDex() argument 231 return new DexFile(sourcePathName, outputPathName, flags, loader, elements); in loadDex() [all …]
|
D | BaseDexClassLoader.java | 235 for (ClassLoader loader : sharedLibraryLoaders) { in findClass() 237 return loader.loadClass(name); in findClass() 251 for (ClassLoader loader : sharedLibraryLoadersAfter) { in findClass() 253 return loader.loadClass(name); in findClass() 306 for (ClassLoader loader : sharedLibraryLoaders) { in findResource() 307 URL url = loader.getResource(name); in findResource() 318 for (ClassLoader loader : sharedLibraryLoadersAfter) { in findResource() 319 URL url2 = loader.getResource(name); in findResource()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | BytecodeDescriptor.java | 40 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/luni/src/test/java/tests/java/lang/ |
D | ClassLoaderTest.java | 42 private TestClassLoader loader; field in ClassLoaderTest 46 loader = new TestClassLoader(); in setUp() 52 loader.findSystemClassWrapper("java.lang.String"); in test_findSystemClass() 57 loader.findSystemClassWrapper("nonexistentclass"); in test_findSystemClass() 67 loader.defineClassWrapper("java.lang.String", b, 0, 0); in test_defineClass() 78 loader.setSignersWrapper(Object.class, signers); in test_setSigners()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Runtime.java | 909 void load(String absolutePath, ClassLoader loader) { in load() argument 917 String error = nativeLoad(absolutePath, loader); in load() 1026 void loadLibrary0(ClassLoader loader, String libname) { in loadLibrary0() argument 1029 loadLibrary0(loader, null, libname); in loadLibrary0() 1045 … private synchronized void loadLibrary0(ClassLoader loader, Class<?> callerClass, String libname) { in loadLibrary0() argument 1054 if (loader != null && !(loader instanceof BootClassLoader)) { in loadLibrary0() 1055 String filename = loader.findLibrary(libraryName); in loadLibrary0() 1057 (loader.getClass() == PathClassLoader.class || in loadLibrary0() 1058 loader.getClass() == DelegateLastClassLoader.class)) { in loadLibrary0() 1076 throw new UnsatisfiedLinkError(loader + " couldn't find \"" + in loadLibrary0() [all …]
|
D | Package.java | 388 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;
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | XMLReaderFactory.java | 113 ClassLoader loader = NewInstance.getClassLoader (); in createXMLReader() local 126 if (loader == null) in createXMLReader() 129 in = loader.getResourceAsStream (service); in createXMLReader() 156 return loadClass (loader, className); in createXMLReader() 192 private static XMLReader loadClass (ClassLoader loader, String className) in loadClass() argument 196 return (XMLReader) NewInstance.newInstance (loader, className); in loadClass()
|
/libcore/ojluni/src/main/java/java/lang/runtime/ |
D | ObjectMethods.java | 86 ClassLoader loader = ObjectMethods.class.getClassLoader(); 93 … MethodType.fromMethodDescriptorString("()I", loader)); 108 … MethodType.fromMethodDescriptorString("(II)I", loader)); 111 … MethodType.fromMethodDescriptorString("(BB)Z", loader))); in primitiveEquals.put() argument 113 … MethodType.fromMethodDescriptorString("(SS)Z", loader))); in primitiveEquals.put() argument 115 … MethodType.fromMethodDescriptorString("(CC)Z", loader))); in primitiveEquals.put() argument 117 … MethodType.fromMethodDescriptorString("(II)Z", loader))); in primitiveEquals.put() argument 119 … MethodType.fromMethodDescriptorString("(JJ)Z", loader))); in primitiveEquals.put() argument 121 … MethodType.fromMethodDescriptorString("(FF)Z", loader))); in primitiveEquals.put() argument 123 … MethodType.fromMethodDescriptorString("(DD)Z", loader))); in primitiveEquals.put() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 33 …ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.c… in test_implementations() local 34 Iterator<ServiceLoaderTestInterface> it = loader.iterator(); in test_implementations() 43 ServiceLoader<ServiceLoaderTestInterface> loader in test_findFirst_nonEmptyLoader() local 46 var first = loader.findFirst(); in test_findFirst_nonEmptyLoader() 88 ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.loadInstalled( in testLoadInstalled() local 90 Iterator<ServiceLoaderTestInterface> it = loader.iterator(); in testLoadInstalled()
|
/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() 67 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 null /* ownerType */, qualIdent.toString(), typeArgs, loader); in parseClassTypeSignature() 329 type = new ParameterizedTypeImpl(ownerType, qualIdent.toString(), typeArgs, loader); in parseClassTypeSignature()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | URLClassPath.java | 157 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/ojluni/src/main/java/java/nio/file/ |
D | FileSystems.java | 318 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/java/util/ |
D | ResourceBundle.java | 525 private static final ClassLoader loader = ClassLoader.getSystemClassLoader(); field in ResourceBundle.RBClassLoader 530 if (loader != null) { in loadClass() 531 return loader.loadClass(name); in loadClass() 536 if (loader != null) { in getResource() 537 return loader.getResource(name); in getResource() 542 if (loader != null) { in getResourceAsStream() 543 return loader.getResourceAsStream(name); in getResourceAsStream() 631 CacheKey(String baseName, Locale locale, ClassLoader loader) { in CacheKey() argument 640 if (loader == null) { in CacheKey() 643 this.loaderRef = new KeyElementReference<>(loader, referenceQueue, this); in CacheKey() [all …]
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactoryFinder.java | 110 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/ojluni/src/main/java/java/lang/reflect/ |
D | Proxy.java | 371 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/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/javax/xml/validation/ |
D | SchemaFactoryFinder.java | 114 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/ |
D | SealedObject.java | 479 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/src/test/java/time/test/java/time/chrono/ |
D | TestServiceLoader.java | 82 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class, in test_copticServiceLoader() local 84 for (Chronology chrono : loader) { in test_copticServiceLoader()
|