Home
last modified time | relevance | path

Searched refs:classLoader (Results 1 – 25 of 36) sorted by relevance

12

/libcore/luni/src/main/java/libcore/util/
DNativeAllocationRegistry.java47 private final ClassLoader classLoader; field in NativeAllocationRegistry
80 ClassLoader classLoader, long freeFunction, long size) { in createNonmalloced() argument
81 return new NativeAllocationRegistry(classLoader, freeFunction, size, false); in createNonmalloced()
107 ClassLoader classLoader, long freeFunction, long size) { in createMalloced() argument
108 return new NativeAllocationRegistry(classLoader, freeFunction, size, true); in createMalloced()
124 ClassLoader classLoader, long freeFunction) { in createMalloced() argument
125 return new NativeAllocationRegistry(classLoader, freeFunction, 0, true); in createMalloced()
156 private NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size, in NativeAllocationRegistry() argument
161 this.classLoader = classLoader; in NativeAllocationRegistry()
195 public NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size) { in NativeAllocationRegistry() argument
[all …]
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactory.java143 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()
DXPathFactoryFinder.java97 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/
DFactoryFinder.java119 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 …]
DDatatypeFactory.java117 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/
DSchemaFactoryFinder.java101 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 …]
DSchemaFactory.java205 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/main/java/javax/xml/transform/
DTransformerFactory.java91 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/
DSAXParserFactory.java77 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()
DDocumentBuilderFactory.java65 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/libcore/util/
DNativeAllocationRegistryTest.java29 private ClassLoader classLoader = NativeAllocationRegistryTest.class.getClassLoader(); field in NativeAllocationRegistryTest
81 classLoader, getNativeFinalizer(), nativeSize); in testNativeAllocation()
84 classLoader, getNativeFinalizer(), nativeSize); in testNativeAllocation()
141 classLoader, getNativeFinalizer(), -8); in testBadSize()
154 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), size); in testEarlyFree()
176 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), 1024); in testNullArguments()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DRetentionPolicyTest.java60 private static ClassLoader classLoader; field in RetentionPolicyTest
74 classLoader = new PathClassLoader(jarFile.getAbsolutePath(), myClassLoader); in openClassLoader()
80 classLoader = null; in closeClassLoader()
85 return (Class<? extends Annotation>) classLoader.loadClass(name); in getAnnotationClass()
89 return classLoader.loadClass("libcore.tests.annotations.RetentionAnnotations"); in getRetentionAnnotationsClass()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNewInstance.java41 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/test/java/libcore/dalvik/system/
DInMemoryDexClassLoaderTest.java377 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 …]
DDexClassLoaderTest.java368 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/main/java/libcore/reflect/
DInternalNames.java28 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/
DDOM4JTestDocumentBuilderFactory.java68 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()
DXercesHTML2DocumentBuilderFactory.java55 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()
DXercesHTMLDocumentBuilderFactory.java55 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()
DJTidyDocumentBuilderFactory.java47 ClassLoader classLoader = ClassLoader.getSystemClassLoader(); in JTidyDocumentBuilderFactory() local
48 Class tidyClass = classLoader.loadClass("org.w3c.tidy.Tidy"); in JTidyDocumentBuilderFactory()
DBatikTestDocumentBuilderFactory.java83 ClassLoader classLoader = ClassLoader.getSystemClassLoader(); in BatikTestDocumentBuilderFactory() local
85 classLoader.loadClass( in BatikTestDocumentBuilderFactory()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java203 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()
/libcore/test-rules/src/main/java/libcore/junit/util/
DSwitchTargetSdkVersionRule.java123 ClassLoader classLoader = ClassLoader.getSystemClassLoader(); in SwitchVMRuntimeUsingReflection() local
124 Class<?> runtimeClass = classLoader.loadClass(VMRUNTIME); in SwitchVMRuntimeUsingReflection()
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java1007 ClassLoader classLoader = ClassLoader.getClassLoader(fromClass); in loadLibrary0() local
1008 loadLibrary0(classLoader, fromClass, libname); in loadLibrary0()
1021 public void loadLibrary(String libname, ClassLoader classLoader) { in loadLibrary() argument
1027 loadLibrary0(classLoader, null, libname); in loadLibrary()
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java127 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in getApplicationClassPath() local
128 URL manifest = classLoader.getResource(manifestFile); in getApplicationClassPath()

12