Home
last modified time | relevance | path

Searched refs:cl (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/main/java/java/io/
DObjectStreamField.java60 public ObjectStreamField(String name, Class<?> cl) { in ObjectStreamField() argument
63 } else if (cl == null) { in ObjectStreamField()
67 this.type = new WeakReference<Class<?>>(cl); in ObjectStreamField()
85 public ObjectStreamField(String name, Class<?> cl, boolean unshared) { in ObjectStreamField() argument
88 } else if (cl == null) { in ObjectStreamField()
92 this.type = (cl.getClassLoader() == null) ? cl : new WeakReference<Class<?>>(cl); in ObjectStreamField()
180 Class<?> cl = getTypeInternal(); in getType() local
181 if (isDeserialized && !cl.isPrimitive()) { in getType()
184 return cl; in getType()
311 Class<?> cl = Class.forName(className, false, loader); in resolve() local
[all …]
DObjectStreamClass.java252 private static ObjectStreamClass createClassDesc(Class<?> cl) { in createClassDesc() argument
256 boolean isArray = cl.isArray(); in createClassDesc()
257 boolean serializable = isSerializable(cl); in createClassDesc()
258 boolean externalizable = isExternalizable(cl); in createClassDesc()
264 result.setName(cl.getName()); in createClassDesc()
265 result.setClass(cl); in createClassDesc()
266 Class<?> superclass = cl.getSuperclass(); in createClassDesc()
278 declaredFields = cl.getDeclaredFields(); in createClassDesc()
279 result.setSerialVersionUID(computeSerialVersionUID(cl, declaredFields)); in createClassDesc()
286 declaredFields = cl.getDeclaredFields(); in createClassDesc()
[all …]
/libcore/luni/src/main/java/javax/net/ssl/
DSSLSocketFactory.java65 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in getDefault() local
66 if (cl == null) { in getDefault()
67 cl = ClassLoader.getSystemClassLoader(); in getDefault()
70 final Class<?> sfc = Class.forName(newName, true, cl); in getDefault()
74 + cl.toString() + ": " + e.getMessage()); in getDefault()
DSSLServerSocketFactory.java58 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in getDefault() local
59 if (cl == null) { in getDefault()
60 cl = ClassLoader.getSystemClassLoader(); in getDefault()
63 final Class<?> ssfc = Class.forName(defaultName, true, cl); in getDefault()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DMethodTest.java289 Class cl = TestMethod.class; in test_getModifiers() local
294 mth = cl.getMethod("pustatic", new Class[0]); in test_getModifiers()
302 mth = cl.getDeclaredMethod("prstatic", new Class[0]); in test_getModifiers()
310 mth = cl.getDeclaredMethod("pustatsynch", new Class[0]); in test_getModifiers()
318 mth = cl.getDeclaredMethod("pustatsynchnat", new Class[0]); in test_getModifiers()
326 cl = AbstractTestMethod.class; in test_getModifiers()
328 mth = cl.getDeclaredMethod("puabs", new Class[0]); in test_getModifiers()
519 Class cl = TestMethod.class; in test_getParameterTypes() local
527 mth = cl.getMethod("voidMethod", new Class[0]); in test_getParameterTypes()
535 mth = cl.getMethod("parmTest", plist); in test_getParameterTypes()
[all …]
DGenericSignatureFormatErrorTest.java75 ClassLoader cl = Support_ClassLoader.getInstance(tf.toURL(), in test_signatureFormatError() local
78 Class clazz = cl.loadClass("demo/HelloWorld"); in test_signatureFormatError()
DConstructorTest.java233 Class[] cl = { int.class }; in test_getModifiers() local
235 .getDeclaredConstructor(cl); in test_getModifiers()
244 Class[] cl = { long.class }; in test_getModifiers() local
246 .getDeclaredConstructor(cl); in test_getModifiers()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java232 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in findJarServiceProvider() local
233 if (cl != null) { in findJarServiceProvider()
234 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
238 cl = FactoryFinder.class.getClassLoader(); in findJarServiceProvider()
239 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
247 if (debug) debugPrintln("found jar resource=" + serviceId + " using ClassLoader: " + cl); in findJarServiceProvider()
273 return newInstance(factoryClassName, cl); in findJarServiceProvider()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactory.java181 ClassLoader cl; in newInstance() local
182 cl = Thread.currentThread().getContextClassLoader(); in newInstance()
184 if (cl == null) { in newInstance()
187 cl = SchemaFactory.class.getClassLoader(); in newInstance()
190 SchemaFactory f = new SchemaFactoryFinder(cl).newFactory(schemaLanguage); in newInstance()
/libcore/luni/src/test/etc/loading-test-jar/
DTestMethods.java127 ClassLoader cl = TestMethods.class.getClassLoader(); in test_getResourceAsStream() local
128 InputStream in = cl.getResourceAsStream("test/Resource1.txt"); in test_getResourceAsStream()
183 ClassLoader cl = TestMethods.class.getClassLoader(); in test_diff_getResourceAsStream() local
184 InputStream in = cl.getResourceAsStream("test2/Resource2.txt"); in test_diff_getResourceAsStream()
/libcore/luni/src/main/java/java/util/
DServiceLoader.java152 ClassLoader cl = ClassLoader.getSystemClassLoader(); in loadInstalled() local
153 if (cl != null) { in loadInstalled()
154 while (cl.getParent() != null) { in loadInstalled()
155 cl = cl.getParent(); in loadInstalled()
158 return ServiceLoader.load(service, cl); in loadInstalled()
DArrays.java1308 Class<?> cl; in deepHashCodeElement() local
1313 cl = element.getClass().getComponentType(); in deepHashCodeElement()
1315 if (cl == null) { in deepHashCodeElement()
1324 } else if (cl == int.class) { in deepHashCodeElement()
1326 } else if (cl == char.class) { in deepHashCodeElement()
1328 } else if (cl == boolean.class) { in deepHashCodeElement()
1330 } else if (cl == byte.class) { in deepHashCodeElement()
1332 } else if (cl == long.class) { in deepHashCodeElement()
1334 } else if (cl == float.class) { in deepHashCodeElement()
1336 } else if (cl == double.class) { in deepHashCodeElement()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java47 ClassLoader cl = ClassLoader.getSystemClassLoader(); in test_getSystemClassLoader() local
48 assertNotNull(cl); in test_getSystemClassLoader()
52 assertNotNull(cl.getParent()); in test_getSystemClassLoader()
54 assertSame(cl.getParent(), libcoreClass.getClassLoader()); in test_getSystemClassLoader()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMissingClassesTest.java28 ClassLoader cl = new ClassLoaderBuilder() in setUp() local
32 loadableClass = cl.loadClass(prefix + "$Loadable"); in setUp()
/libcore/luni/src/main/java/libcore/reflect/
DTypeVariableImpl.java86 Class cl = (Class)decl; in nextLayer() local
87 decl = (GenericDeclaration) AnnotationAccess.getEnclosingMethodOrConstructor(cl); in nextLayer()
91 return cl.getEnclosingClass(); in nextLayer()
/libcore/luni/src/main/java/java/security/
DProtectionDomain.java26 …public ProtectionDomain(CodeSource cs, PermissionCollection permissions, ClassLoader cl, Principal… in ProtectionDomain() argument
DKeyStoreSpi.java517 Class<?> cl = Class.forName(clName); in getPasswordFromCallBack() local
518 CallbackHandler cbHand = (CallbackHandler) cl.newInstance(); in getPasswordFromCallBack()
/libcore/luni/src/test/java/dalvik/system/
DDexClassLoaderTest.java105 ClassLoader cl = DexClassLoaderTest.class.getClassLoader(); in setUp() local
106 copyResource(cl, JAR_NAME, JAR_FILE); in setUp()
107 copyResource(cl, DEX_NAME, DEX_FILE); in setUp()
108 copyResource(cl, JAR2_NAME, JAR2_FILE); in setUp()
109 copyResource(cl, DEX2_NAME, DEX2_FILE); in setUp()
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectStreamFieldTest.java51 public MyObjectStreamField(String name, Class<?> cl) { in MyObjectStreamField() argument
52 super(name, cl); in MyObjectStreamField()
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/
DServices.java73 ClassLoader cl = ClassLoader.getSystemClassLoader();
77 Class<?> providerClass = Class.forName(providerClassName.trim(), true, cl);
/libcore/libart/src/main/java/java/lang/
DVMClassLoader.java71 native static Class findLoadedClass(ClassLoader cl, String name); in findLoadedClass() argument
/libcore/luni/src/main/java/javax/security/cert/
DX509Certificate.java52 Class cl = Class.forName(classname);
53 constructor = cl.getConstructor(new Class[] {InputStream.class});
/libcore/luni/src/main/java/java/util/logging/
DLogger.java270 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in loadResourceBundle() local
271 if (cl != null) { in loadResourceBundle()
273 return ResourceBundle.getBundle(resourceBundleName, Locale.getDefault(), cl); in loadResourceBundle()
279 cl = ClassLoader.getSystemClassLoader(); in loadResourceBundle()
280 if (cl != null) { in loadResourceBundle()
282 return ResourceBundle.getBundle(resourceBundleName, Locale.getDefault(), cl); in loadResourceBundle()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java487 ClassLoader cl = t.getContextClassLoader();
488 if (ccl == cl) {
495 t.setContextClassLoader(cl);
/libcore/support/src/test/java/tests/support/
DSupport_Configuration.java135 Class<?> cl = Class in loadProperties() local
137 in = cl.getResourceAsStream(iniName); in loadProperties()

12