Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java78 private static synchronized Cleaner add(Cleaner cl) { in add() argument
80 cl.next = first; in add()
81 first.prev = cl; in add()
83 first = cl; in add()
84 return cl; in add()
87 private static synchronized boolean remove(Cleaner cl) { in remove() argument
90 if (cl.next == cl) in remove()
94 if (first == cl) { in remove()
95 if (cl.next != null) in remove()
96 first = cl.next; in remove()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectStreamField.java288 private static String getClassSignature(Class<?> cl) { in getClassSignature() argument
290 while (cl.isArray()) { in getClassSignature()
292 cl = cl.getComponentType(); in getClassSignature()
294 if (cl.isPrimitive()) { in getClassSignature()
295 if (cl == Integer.TYPE) { in getClassSignature()
297 } else if (cl == Byte.TYPE) { in getClassSignature()
299 } else if (cl == Long.TYPE) { in getClassSignature()
301 } else if (cl == Float.TYPE) { in getClassSignature()
303 } else if (cl == Double.TYPE) { in getClassSignature()
305 } else if (cl == Short.TYPE) { in getClassSignature()
[all …]
DObjectStreamClass.java102 private Class<?> cl; field in ObjectStreamClass
198 public static ObjectStreamClass lookup(Class<?> cl) { in lookup() argument
199 return lookup(cl, false); in lookup()
210 public static ObjectStreamClass lookupAny(Class<?> cl) { in lookupAny() argument
211 return lookup(cl, true); in lookupAny()
239 return computeDefaultSUID(cl); in getSerialVersionUID()
255 if (cl == null) { in forClass()
260 cl.getClassLoader())) { in forClass()
261 ReflectUtil.checkPackageAccess(cl); in forClass()
264 return cl; in forClass()
[all …]
DObjectOutputStream.java537 protected void annotateClass(Class<?> cl) throws IOException { in annotateClass() argument
561 protected void annotateProxyClass(Class<?> cl) throws IOException { in annotateProxyClass() argument
1057 Class<?> cl = getClass(); in verifySubclass() local
1058 if (cl == ObjectOutputStream.class) { in verifySubclass()
1066 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue); in verifySubclass()
1069 result = Boolean.valueOf(auditSubclass(cl)); in verifySubclass()
1087 for (Class<?> cl = subcl; in auditSubclass()
1088 cl != ObjectOutputStream.class; in auditSubclass()
1089 cl = cl.getSuperclass()) in auditSubclass()
1092 cl.getDeclaredMethod( in auditSubclass()
[all …]
DObjectInputStream.java631 Class<?> cl = primClasses.get(name); in resolveClass()
632 if (cl != null) { in resolveClass()
633 return cl; in resolveClass()
701 Class<?> cl = Class.forName(interfaces[i], false, latestLoader); in resolveProxyClass() local
702 if ((cl.getModifiers() & Modifier.PUBLIC) == 0) { in resolveProxyClass()
704 if (nonPublicLoader != cl.getClassLoader()) { in resolveProxyClass()
709 nonPublicLoader = cl.getClassLoader(); in resolveProxyClass()
713 classObjs[i] = cl; in resolveProxyClass()
1239 Class<?> cl = getClass(); in verifySubclass() local
1240 if (cl == ObjectInputStream.class) { in verifySubclass()
[all …]
/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.java72 ClassLoader cl = Support_ClassLoader.getInstance(tf.toURL(), in test_signatureFormatError() local
75 Class clazz = cl.loadClass("demo/HelloWorld"); in test_signatureFormatError()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java221 private ServiceLoader(Class<S> svc, ClassLoader cl) { in ServiceLoader() argument
223 loader = (cl == null) ? ClassLoader.getSystemClassLoader() : cl; in ServiceLoader()
551 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in load() local
552 return ServiceLoader.load(service, cl); in load()
582 ClassLoader cl = ClassLoader.getSystemClassLoader(); in loadInstalled() local
584 while (cl != null) { in loadInstalled()
585 prev = cl; in loadInstalled()
586 cl = cl.getParent(); in loadInstalled()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLServerSocketFactory.java112 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in getDefault()
113 if (cl == null) { in getDefault()
114 cl = ClassLoader.getSystemClassLoader(); in getDefault()
117 if (cl != null) { in getDefault()
118 cls = Class.forName(clsName, true, cl); in getDefault()
DSSLSocketFactory.java117 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in getDefault()
118 if (cl == null) { in getDefault()
119 cl = ClassLoader.getSystemClassLoader(); in getDefault()
122 if (cl != null) { in getDefault()
123 cls = Class.forName(clsName, true, cl); in getDefault()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java236 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/
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/ojluni/src/main/java/java/lang/
DThread.java1470 public void setContextClassLoader(ClassLoader cl) { in setContextClassLoader() argument
1471 contextClassLoader = cl; in setContextClassLoader()
1615 private static boolean isCCLOverridden(Class<?> cl) { in isCCLOverridden() argument
1616 if (cl == Thread.class) in isCCLOverridden()
1620 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue); in isCCLOverridden()
1623 result = Boolean.valueOf(auditSubclass(cl)); in isCCLOverridden()
1639 for (Class<?> cl = subcl; in auditSubclass()
1640 cl != Thread.class; in auditSubclass()
1641 cl = cl.getSuperclass()) in auditSubclass()
1644 cl.getDeclaredMethod("getContextClassLoader", new Class<?>[0]); in auditSubclass()
[all …]
/libcore/luni/src/test/java/dalvik/system/
DDexClassLoaderTest.java137 ClassLoader cl = createLoader(files); in createLoaderAndCallMethod() local
138 Class c = cl.loadClass(className); in createLoaderAndCallMethod()
152 ClassLoader cl = createLoader(files); in createLoaderAndGetResource() local
153 InputStream in = cl.getResourceAsStream(resourceName); in createLoaderAndGetResource()
171 ClassLoader cl = createLoader(jar1); in test_oneJar_init() local
211 ClassLoader cl = createLoader(dex1); in test_oneDex_init() local
242 ClassLoader cl = createLoader(jar1, jar2); in test_twoJar_init() local
293 ClassLoader cl = createLoader(dex1, dex2); in test_twoDex_init() local
DInMemoryDexClassLoaderTest.java157 ClassLoader cl = createLoaderDirect(files); in createLoaderDirectAndCallMethod() local
158 Class c = cl.loadClass(className); in createLoaderDirectAndCallMethod()
175 ClassLoader cl = createLoaderIndirect(files); in createLoaderIndirectAndCallMethod() local
176 Class c = cl.loadClass(className); in createLoaderIndirectAndCallMethod()
/libcore/luni/src/main/java/libcore/reflect/
DTypeVariableImpl.java86 Class cl = (Class)decl; in nextLayer() local
87 Method m = cl.getEnclosingMethod(); in nextLayer()
88 decl = (GenericDeclaration) m != null ? m : cl.getEnclosingConstructor(); in nextLayer()
92 return cl.getEnclosingClass(); in nextLayer()
/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java108 private static boolean isAncestor(ClassLoader p, ClassLoader cl) { in isAncestor() argument
109 ClassLoader acl = cl; in isAncestor()
172 ClassLoader cl = intf.getClassLoader(); in checkProxyPackageAccess() local
173 if (needsPackageAccessCheck(ccl, cl)) { in checkProxyPackageAccess()
/libcore/ojluni/src/main/native/
DObjectStreamClass.c38 jclass cl = (*env)->FindClass(env, "java/lang/NoSuchMethodError"); in ObjectStreamClass_initNative() local
39 if (cl == NULL) { /* exception thrown */ in ObjectStreamClass_initNative()
42 noSuchMethodErrCl = (*env)->NewGlobalRef(env, cl); in ObjectStreamClass_initNative()
DNativeThread.c80 NativeThread_current(JNIEnv *env, jclass cl) in NativeThread_current() argument
90 NativeThread_signal(JNIEnv *env, jclass cl, jlong thread) in NativeThread_signal() argument
/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/ojluni/src/main/java/sun/security/provider/certpath/
DCertStoreHelper.java73 final String cl = classMap.get(type); in getInstance() local
74 if (cl == null) { in getInstance()
82 Class<?> c = Class.forName(cl, true, null); in getInstance()
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java133 Class<?> cl = ptypes[i]; in of() local
134 if (!cl.isPrimitive()) { in of()
137 stackFrameStart += getSize(cl); in of()
142 Class<?> cl = ptypes[i]; in of() local
143 if (!cl.isPrimitive()) { in of()
146 numBytes += getSize(cl); in of()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java52 ClassLoader cl = ClassLoader.getSystemClassLoader(); in test_getSystemClassLoader() local
53 assertNotNull(cl); in test_getSystemClassLoader()
57 assertNotNull(cl.getParent()); in test_getSystemClassLoader()
59 assertSame(cl.getParent(), libcoreClass.getClassLoader()); in test_getSystemClassLoader()
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderConfig.java245 private Provider initProvider(String className, ClassLoader cl) throws Exception {
247 if (cl != null) {
248 provClass = cl.loadClass(className);

123