/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamField.java | 60 public ObjectStreamField(String name, Class<?> cl) { in ObjectStreamField() argument 61 this(name, cl, false); in ObjectStreamField() 79 public ObjectStreamField(String name, Class<?> cl, boolean unshared) { in ObjectStreamField() argument 82 } else if (cl == null) { in ObjectStreamField() 86 this.type = (cl.getClassLoader() == null) ? cl : new WeakReference<Class<?>>(cl); in ObjectStreamField() 174 Class<?> cl = getTypeInternal(); in getType() local 175 if (isDeserialized && !cl.isPrimitive()) { in getType() 178 return cl; in getType() 305 Class<?> cl = Class.forName(className, false, loader); in resolve() local 306 type = (cl.getClassLoader() == null) ? cl : new WeakReference<Class<?>>(cl); in resolve()
|
D | ObjectStreamClass.java | 252 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/ |
D | SSLSocketFactory.java | 65 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()
|
D | SSLServerSocketFactory.java | 58 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/ |
D | MethodTest.java | 289 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 …]
|
D | GenericSignatureFormatErrorTest.java | 75 ClassLoader cl = Support_ClassLoader.getInstance(tf.toURL(), in test_signatureFormatError() local 78 Class clazz = cl.loadClass("demo/HelloWorld"); in test_signatureFormatError()
|
D | ConstructorTest.java | 233 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/ |
D | FactoryFinder.java | 236 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in findJarServiceProvider() local 237 if (cl != null) { in findJarServiceProvider() 238 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider() 242 cl = FactoryFinder.class.getClassLoader(); in findJarServiceProvider() 243 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider() 251 if (debug) debugPrintln("found jar resource=" + serviceId + " using ClassLoader: " + cl); in findJarServiceProvider() 277 return newInstance(factoryClassName, cl); in findJarServiceProvider()
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SchemaFactory.java | 181 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/ |
D | TestMethods.java | 127 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/ |
D | ServiceLoader.java | 152 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()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 47 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/dalvik/system/ |
D | DexClassLoaderTest.java | 132 ClassLoader cl = createLoader(files); in createLoaderAndCallMethod() local 133 Class c = cl.loadClass(className); in createLoaderAndCallMethod() 147 ClassLoader cl = createLoader(files); in createLoaderAndGetResource() local 148 InputStream in = cl.getResourceAsStream(resourceName); in createLoaderAndGetResource() 166 ClassLoader cl = createLoader(jar1); in test_oneJar_init() local 209 ClassLoader cl = createLoader(dex1); in test_oneDex_init() local 243 ClassLoader cl = createLoader(jar1, jar2); in test_twoJar_init() local 297 ClassLoader cl = createLoader(dex1, dex2); in test_twoDex_init() local
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MissingClassesTest.java | 28 ClassLoader cl = new ClassLoaderBuilder() in setUp() local 32 loadableClass = cl.loadClass(prefix + "$Loadable"); in setUp()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | TypeVariableImpl.java | 86 Class cl = (Class)decl; in nextLayer() local 87 decl = (GenericDeclaration) AnnotationAccess.getEnclosingMethodOrConstructor(cl); in nextLayer() 91 return cl.getEnclosingClass(); in nextLayer()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | PathClassLoaderTest.java | 68 PathClassLoader cl = new PathClassLoader(jar.getPath(), pcl); in testAppUseOfPathClassLoader() local 69 Class c = cl.loadClass("test.Test1"); in testAppUseOfPathClassLoader()
|
/libcore/luni/src/main/java/java/security/ |
D | ProtectionDomain.java | 26 …public ProtectionDomain(CodeSource cs, PermissionCollection permissions, ClassLoader cl, Principal… in ProtectionDomain() argument
|
D | KeyStoreSpi.java | 517 Class<?> cl = Class.forName(clName); in getPasswordFromCallBack() local 518 CallbackHandler cbHand = (CallbackHandler) cl.newInstance(); in getPasswordFromCallBack()
|
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/ |
D | Services.java | 80 ClassLoader cl = Services.class.getClassLoader(); 83 if (!initProvider(providerClassName, cl)) {
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldObjectStreamFieldTest.java | 51 public MyObjectStreamField(String name, Class<?> cl) { in MyObjectStreamField() argument 52 super(name, cl); in MyObjectStreamField()
|
/libcore/libart/src/main/java/java/lang/ |
D | VMClassLoader.java | 71 native static Class findLoadedClass(ClassLoader cl, String name); in findLoadedClass() argument
|
/libcore/luni/src/main/java/javax/security/cert/ |
D | X509Certificate.java | 52 Class cl = Class.forName(classname); 53 constructor = cl.getConstructor(new Class[] {InputStream.class});
|
/libcore/luni/src/main/java/java/util/logging/ |
D | Logger.java | 270 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/libart/src/main/java/java/lang/reflect/ |
D | Field.java | 223 ClassLoader cl = declaringClass.getClassLoader(); in getGenericType() local 224 GenericSignatureParser parser = new GenericSignatureParser(cl); in getGenericType()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Executors.java | 488 ClassLoader cl = t.getContextClassLoader(); 489 if (ccl == cl) { 496 t.setContextClassLoader(cl);
|