/libcore/luni/src/main/java/libcore/util/ |
D | NativeAllocationRegistry.java | 53 private final ClassLoader classLoader; field in NativeAllocationRegistry 94 @NonNull ClassLoader classLoader, long freeFunction, long size) { in createNonmalloced() 95 return new NativeAllocationRegistry(classLoader, freeFunction, size, false); in createNonmalloced() 126 @NonNull ClassLoader classLoader, long freeFunction, long size) { in createMalloced() 127 return new NativeAllocationRegistry(classLoader, freeFunction, size, true); in createMalloced() 148 @NonNull ClassLoader classLoader, long freeFunction) { in createMalloced() 149 return new NativeAllocationRegistry(classLoader, freeFunction, DEFAULT_SIZE, true); in createMalloced() 180 private NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size, in NativeAllocationRegistry() argument 185 this.classLoader = classLoader; in NativeAllocationRegistry() 219 … public NativeAllocationRegistry(@NonNull ClassLoader classLoader, long freeFunction, long size) { in NativeAllocationRegistry() argument [all …]
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactory.java | 143 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() local 144 if (classLoader == null) { in newInstance() 146 classLoader = XPathFactory.class.getClassLoader(); in newInstance() 148 XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).newFactory(uri); in newInstance() 166 ClassLoader classLoader) throws XPathFactoryConfigurationException { in newInstance() argument 178 if (classLoader == null) { in newInstance() 179 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 181 … XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName); in newInstance()
|
D | XPathFactoryFinder.java | 97 private final ClassLoader classLoader; field in XPathFactoryFinder 111 this.classLoader = loader; in XPathFactoryFinder() 118 if (classLoader == Thread.currentThread().getContextClassLoader()) { in debugDisplayClassLoader() 119 debugPrintln("using thread context class loader (" + classLoader + ") for search"); in debugDisplayClassLoader() 123 if (classLoader==ClassLoader.getSystemClassLoader()) { in debugDisplayClassLoader() 124 debugPrintln("using system class loader (" + classLoader + ") for search"); in debugDisplayClassLoader() 128 debugPrintln("using class loader (" + classLoader + ") for search"); in debugDisplayClassLoader() 236 if( classLoader!=null ) in createInstance() 237 clazz = classLoader.loadClass(className); in createInstance() 327 if (classLoader == null) { in createServiceFileIterator() [all …]
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 119 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in findClassLoader() local 123 + classLoader); in findClassLoader() 125 if (classLoader == null) { in findClassLoader() 128 classLoader = FactoryFinder.class.getClassLoader(); in findClassLoader() 131 + classLoader); in findClassLoader() 134 return classLoader; in findClassLoader() 149 ClassLoader classLoader) in newInstance() argument 154 if (classLoader == null) { in newInstance() 157 spiClass = classLoader.loadClass(className); in newInstance() 188 ClassLoader classLoader = findClassLoader(); in find() local [all …]
|
D | DatatypeFactory.java | 117 public static DatatypeFactory newInstance(String factoryClassName, ClassLoader classLoader) in newInstance() argument 122 if (classLoader == null) { in newInstance() 123 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 126 Class<?> type = classLoader != null in newInstance() 127 ? classLoader.loadClass(factoryClassName) in newInstance()
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SchemaFactoryFinder.java | 101 private final ClassLoader classLoader; field in SchemaFactoryFinder 115 this.classLoader = loader; in SchemaFactoryFinder() 122 if (classLoader == Thread.currentThread().getContextClassLoader()) { in debugDisplayClassLoader() 123 debugPrintln("using thread context class loader ("+classLoader+") for search"); in debugDisplayClassLoader() 127 if (classLoader == ClassLoader.getSystemClassLoader()) { in debugDisplayClassLoader() 128 debugPrintln("using system class loader ("+classLoader+") for search"); in debugDisplayClassLoader() 132 debugPrintln("using class loader (" + classLoader + ") for search"); in debugDisplayClassLoader() 261 if( classLoader!=null ) in createInstance() 262 clazz = classLoader.loadClass(className); in createInstance() 293 if (classLoader == null) { in createServiceFileIterator() [all …]
|
D | SchemaFactory.java | 205 ClassLoader classLoader) { in newInstance() argument 211 if (classLoader == null) { in newInstance() 212 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 215 Class<?> type = classLoader != null in newInstance() 216 ? classLoader.loadClass(factoryClassName) in newInstance()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassTest.java | 451 ClassLoader classLoader = createClassLoaderForResource("core-tests-smali.dex"); in nestMate() local 453 Class hostClass = classLoader.loadClass("libcore.java.lang.nestgroup.NestGroupHost"); in nestMate() 454 … Class innerAClass = classLoader.loadClass("libcore.java.lang.nestgroup.NestGroupInnerA"); in nestMate() 455 Class bClass = classLoader.loadClass("libcore.java.lang.nestgroup.NestGroupB"); in nestMate() 456 … Class innerFakeClass = classLoader.loadClass("libcore.java.lang.nestgroup.NestGroupInnerFake"); in nestMate() 457 Class selfClass = classLoader.loadClass("libcore.java.lang.nestgroup.NestGroupSelf"); in nestMate() 505 ClassLoader classLoader = createClassLoaderForResource("core-tests-smali.dex"); in sealedClass() local 507 … Class sealedBaseClass = classLoader.loadClass("libcore.java.lang.sealedclasses.SealedBaseClass"); in sealedClass() 508 …Class finalDerivedClass = classLoader.loadClass("libcore.java.lang.sealedclasses.FinalDerivedClass… in sealedClass() 509 …Class sealedDerivedClass = classLoader.loadClass("libcore.java.lang.sealedclasses.SealedDerivedCla… in sealedClass() [all …]
|
/libcore/luni/src/test/java/libcore/javax/xml/xpath/ |
D | XPathFactoryTest.java | 59 final ClassLoader classLoader = XPathFactoryForTest.class.getClassLoader(); in newInstanceWithUriAndFactoryAndClassLoader() local 66 classLoader); in newInstanceWithUriAndFactoryAndClassLoader() 74 classLoader); in newInstanceWithUriAndFactoryAndClassLoader() 81 XPathFactory factory = XPathFactory.newInstance(null, factoryName, classLoader); in newInstanceWithUriAndFactoryAndClassLoader() 89 XPathFactory factory = XPathFactory.newInstance("", factoryName, classLoader); in newInstanceWithUriAndFactoryAndClassLoader() 100 classLoader); in newInstanceWithUriAndFactoryAndClassLoader() 107 XPathFactory factory = XPathFactory.newInstance(SUPPORTED_URI, null, classLoader); in newInstanceWithUriAndFactoryAndClassLoader()
|
/libcore/luni/src/main/java/javax/xml/transform/ |
D | TransformerFactory.java | 91 public static TransformerFactory newInstance(String factoryClassName, ClassLoader classLoader) in newInstance() argument 96 if (classLoader == null) { in newInstance() 97 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 100 Class<?> type = classLoader != null in newInstance() 101 ? classLoader.loadClass(factoryClassName) in newInstance()
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | SAXParserFactory.java | 77 ClassLoader classLoader) { in newInstance() argument 81 if (classLoader == null) { in newInstance() 82 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 85 Class<?> type = classLoader != null in newInstance() 86 ? classLoader.loadClass(factoryClassName) in newInstance()
|
D | DocumentBuilderFactory.java | 65 ClassLoader classLoader) { in newInstance() argument 69 if (classLoader == null) { in newInstance() 70 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 73 Class<?> type = classLoader != null in newInstance() 74 ? classLoader.loadClass(factoryClassName) in newInstance()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | RetentionPolicyTest.java | 64 private static ClassLoader classLoader; field in RetentionPolicyTest 79 classLoader = new PathClassLoader(jarFile.getAbsolutePath(), myClassLoader); in openClassLoader() 85 classLoader = null; in closeClassLoader() 90 return (Class<? extends Annotation>) classLoader.loadClass(name); in getAnnotationClass() 94 return classLoader.loadClass("libcore.tests.annotations.RetentionAnnotations"); in getRetentionAnnotationsClass()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | InMemoryDexClassLoaderTest.java | 377 InMemoryDexClassLoader classLoader = createLoaderWithLibPath(dex1, applicationLibPath); in testLibraryPath() local 379 String path = classLoader.findLibrary("testlibpath"); in testLibraryPath() 390 InMemoryDexClassLoader classLoader = createLoaderWithLibPath(dex1, applicationLibPath); in testLibraryPathSearchOrder() local 392 String path = classLoader.findLibrary("duplicated"); in testLibraryPathSearchOrder() 399 InMemoryDexClassLoader classLoader = new InMemoryDexClassLoader( in testNullParent() local 404 Class<?> objectClass = classLoader.loadClass("java.lang.Object"); in testNullParent() 408 classLoader.loadClass("test.TestMethods"); in testNullParent() 414 InMemoryDexClassLoader classLoader = new InMemoryDexClassLoader( in testNonZeroBufferOffsetDirect() local 417 classLoader.loadClass("test.TestMethods"); in testNonZeroBufferOffsetDirect() 423 InMemoryDexClassLoader classLoader = new InMemoryDexClassLoader( in testNonZeroBufferOffsetIndirect() local [all …]
|
D | DexClassLoaderTest.java | 368 DexClassLoader classLoader = (DexClassLoader) createLoader(dex1); in test_oneDex_addNative_findsLibrary() local 371 isLibraryFound(classLoader, "fake")); in test_oneDex_addNative_findsLibrary() 373 classLoader.addNativePath(Collections.singletonList(path)); in test_oneDex_addNative_findsLibrary() 376 isLibraryFound(classLoader, "fake")); in test_oneDex_addNative_findsLibrary()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | NativeAllocationRegistryTest.java | 29 private ClassLoader classLoader = NativeAllocationRegistryTest.class.getClassLoader(); field in NativeAllocationRegistryTest 81 classLoader, getNativeFinalizer(), nativeSize); in testNativeAllocation() 84 classLoader, getNativeFinalizer(), nativeSize); in testNativeAllocation() 151 classLoader, getNativeFinalizer(), -8); in testBadSize() 164 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), size); in testEarlyFree() 202 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), 1024); in testNullArguments()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | NewInstance.java | 41 static Object newInstance (ClassLoader classLoader, String className) in newInstance() argument 46 if (classLoader == null) { in newInstance() 49 driverClass = classLoader.loadClass(className); in newInstance()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | InternalNames.java | 28 public static Class<?> getClass(ClassLoader classLoader, String internalName) { in getClass() argument 30 Class<?> componentClass = getClass(classLoader, internalName.substring(1)); in getClass() 53 return classLoader.loadClass(name); in getClass()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOM4JTestDocumentBuilderFactory.java | 68 ClassLoader classLoader = ClassLoader.getSystemClassLoader(); in DOM4JTestDocumentBuilderFactory() local 69 Class domFactoryClass = classLoader.loadClass( in DOM4JTestDocumentBuilderFactory() 74 Class saxReaderClass = classLoader.loadClass("org.dom4j.io.SAXReader"); in DOM4JTestDocumentBuilderFactory() 76 new Class[] {classLoader.loadClass("org.dom4j.DocumentFactory")}); in DOM4JTestDocumentBuilderFactory()
|
D | XercesHTMLDocumentBuilderFactory.java | 55 ClassLoader classLoader = ClassLoader.getSystemClassLoader(); in XercesHTMLDocumentBuilderFactory() local 57 classLoader.loadClass("org.apache.html.dom.HTMLBuilder"); in XercesHTMLDocumentBuilderFactory() 66 classLoader.loadClass( in XercesHTMLDocumentBuilderFactory() 73 classLoader.loadClass( in XercesHTMLDocumentBuilderFactory()
|
D | XercesHTML2DocumentBuilderFactory.java | 55 ClassLoader classLoader = ClassLoader.getSystemClassLoader(); in XercesHTML2DocumentBuilderFactory() local 57 classLoader.loadClass("org.apache.html2.dom.HTMLBuilder"); in XercesHTML2DocumentBuilderFactory() 66 classLoader.loadClass( in XercesHTML2DocumentBuilderFactory() 73 classLoader.loadClass( in XercesHTML2DocumentBuilderFactory()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLClassLoaderTest.java | 32 URLClassLoader classLoader = new URLClassLoader(urls); in testClose() local 33 classLoader.close(); in testClose()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureClassLoaderTest.java | 168 MyClassLoader classLoader = new MyClassLoader(ucl); in testSecureClassLoaderClassLoader() local 171 classLoader.tryDefineClass("ClassA", new byte[0], 0, 0, null); in testSecureClassLoaderClassLoader() 176 classLoader.tryDefineClass("ClassB", ByteBuffer.wrap(new byte[0]), null); in testSecureClassLoaderClassLoader()
|
/libcore/luni/src/test/java/libcore/javax/xml/validation/ |
D | SchemaFactoryTest.java | 87 ClassLoader classLoader = mock(ClassLoader.class); in newInstance3_ClassNotFoundException() local 88 when(classLoader.loadClass(eq("factoryClassName"))) in newInstance3_ClassNotFoundException() 91 SchemaFactory.newInstance("schemaLanguage", "factoryClassName", classLoader); in newInstance3_ClassNotFoundException()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 203 private static void assertGetResourceAsStreamNotNull(ClassLoader classLoader, in assertGetResourceAsStreamNotNull() argument 207 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull() 216 private static void assertGetResourceIsValid(ClassLoader classLoader, String resourceName) { in assertGetResourceIsValid() argument 217 java.net.URL u = classLoader.getResource(resourceName); in assertGetResourceIsValid()
|