Home
last modified time | relevance | path

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

1234

/libcore/ojluni/src/main/java/jdk/internal/ref/
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/sun/misc/
DCleaner.java77 private static synchronized Cleaner add(Cleaner cl) { in add() argument
79 cl.next = first; in add()
80 first.prev = cl; in add()
82 first = cl; in add()
83 return cl; in add()
86 private static synchronized boolean remove(Cleaner cl) { in remove() argument
89 if (cl.next == cl) in remove()
93 if (first == cl) { in remove()
94 if (cl.next != null) in remove()
95 first = cl.next; in remove()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectStreamField.java137 private static String getPrimitiveSignature(Class<?> cl) { in getPrimitiveSignature() argument
138 if (cl == Integer.TYPE) in getPrimitiveSignature()
140 else if (cl == Byte.TYPE) in getPrimitiveSignature()
142 else if (cl == Long.TYPE) in getPrimitiveSignature()
144 else if (cl == Float.TYPE) in getPrimitiveSignature()
146 else if (cl == Double.TYPE) in getPrimitiveSignature()
148 else if (cl == Short.TYPE) in getPrimitiveSignature()
150 else if (cl == Character.TYPE) in getPrimitiveSignature()
152 else if (cl == Boolean.TYPE) in getPrimitiveSignature()
154 else if (cl == Void.TYPE) in getPrimitiveSignature()
[all …]
DObjectStreamClass.java116 private Class<?> cl; field in ObjectStreamClass
237 public static ObjectStreamClass lookup(Class<?> cl) { in lookup() argument
238 return lookup(cl, false); in lookup()
249 public static ObjectStreamClass lookupAny(Class<?> cl) { in lookupAny() argument
250 return lookup(cl, true); in lookupAny()
281 return computeDefaultSUID(cl); in getSerialVersionUID()
297 if (cl == null) { in forClass()
303 if (ReflectUtil.needsPackageAccessCheck(caller.getClassLoader(), cl.getClassLoader())) { in forClass()
304 ReflectUtil.checkPackageAccess(cl); in forClass()
307 return cl; in forClass()
[all …]
DObjectOutputStream.java544 protected void annotateClass(Class<?> cl) throws IOException { in annotateClass() argument
568 protected void annotateProxyClass(Class<?> cl) throws IOException { in annotateProxyClass() argument
1064 Class<?> cl = getClass(); in verifySubclass() local
1065 if (cl == ObjectOutputStream.class) { in verifySubclass()
1073 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue); in verifySubclass()
1076 result = Boolean.valueOf(auditSubclass(cl)); in verifySubclass()
1094 for (Class<?> cl = subcl; in auditSubclass()
1095 cl != ObjectOutputStream.class; in auditSubclass()
1096 cl = cl.getSuperclass()) in auditSubclass()
1099 cl.getDeclaredMethod( in auditSubclass()
[all …]
DObjectInputStream.java687 Class<?> cl = primClasses.get(name); in resolveClass()
688 if (cl != null) { in resolveClass()
689 return cl; in resolveClass()
757 Class<?> cl = Class.forName(interfaces[i], false, latestLoader); in resolveProxyClass() local
758 if ((cl.getModifiers() & Modifier.PUBLIC) == 0) { in resolveProxyClass()
760 if (nonPublicLoader != cl.getClassLoader()) { in resolveProxyClass()
765 nonPublicLoader = cl.getClassLoader(); in resolveProxyClass()
769 classObjs[i] = cl; in resolveProxyClass()
1325 Class<?> cl = getClass(); in verifySubclass() local
1326 if (cl == ObjectInputStream.class) { in verifySubclass()
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DDelegateLastClassLoaderTest.java114 private static String callMethod(ClassLoader cl, String name) throws Exception { in callMethod() argument
115 Class<?> clazz = cl.loadClass("libcore.test.delegatelast.A"); in callMethod()
116 assertSame(cl, clazz.getClassLoader()); in callMethod()
123 private static String readResource(ClassLoader cl, String resourceName) throws Exception { in readResource() argument
124 return BaseDexClassLoaderTest.readResource(cl, resourceName); in readResource()
127 private static List<String> readResources(ClassLoader cl, String resourceName) in readResources() argument
129 return BaseDexClassLoaderTest.readResources(cl, resourceName); in readResources()
256 ClassLoader cl = new DelegateLastClassLoader(override.getAbsolutePath(), null); in testLookupOrder_bootOverride() local
258 Class<?> clazz = cl.loadClass("java.util.HashMap"); in testLookupOrder_bootOverride()
260 assertNotSame(cl, clazz.getClassLoader()); in testLookupOrder_bootOverride()
[all …]
DDexClassLoaderTest.java94 ClassLoader cl = createLoader(files); in createLoaderAndCallMethod() local
95 Class c = cl.loadClass(className); in createLoaderAndCallMethod()
109 ClassLoader cl = createLoader(files); in createLoaderAndGetResource() local
110 InputStream in = cl.getResourceAsStream(resourceName); in createLoaderAndGetResource()
128 ClassLoader cl = createLoader(jar1); in test_oneJar_init() local
168 ClassLoader cl = createLoader(dex1); in test_oneDex_init() local
199 ClassLoader cl = createLoader(jar1, jar2); in test_twoJar_init() local
250 ClassLoader cl = createLoader(dex1, dex2); in test_twoDex_init() local
/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 …]
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectStreamClass.java33 private ObjectStreamClass(java.lang.Class<?> cl) { in ObjectStreamClass() argument
41 public static java.io.ObjectStreamClass lookup(java.lang.Class<?> cl) { in lookup() argument
45 public static java.io.ObjectStreamClass lookupAny(java.lang.Class<?> cl) { in lookupAny() argument
73 static java.io.ObjectStreamClass lookup(java.lang.Class<?> cl, boolean all) { in lookup() argument
78 java.lang.Class<?> cl, in initProxy() argument
87 java.lang.Class<?> cl, in initNonProxy() argument
265 private java.io.ObjectStreamClass getVariantFor(java.lang.Class<?> cl) in getVariantFor() argument
271 java.lang.Class<?> cl) { in getExternalizableConstructor() argument
276 java.lang.Class<?> cl) { in getSerializableConstructor() argument
281 java.lang.Class<?> cl, in getInheritableMethod() argument
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DDelegateLastClassLoader.java184 Class<?> cl = findLoadedClass(name); in loadClass() local
185 if (cl != null) { in loadClass()
186 return cl; in loadClass()
231 final ClassLoader cl = getParent(); in getResource() local
232 return (cl == null) ? null : cl.getResource(name); in getResource()
/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/ojluni/src/main/java/java/lang/
DThread.java1748 public void setContextClassLoader(ClassLoader cl) { in setContextClassLoader() argument
1754 contextClassLoader = cl; in setContextClassLoader()
1939 private static boolean isCCLOverridden(Class<?> cl) { in isCCLOverridden() argument
1940 if (cl == Thread.class) in isCCLOverridden()
1944 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue); in isCCLOverridden()
1947 result = Boolean.valueOf(auditSubclass(cl)); in isCCLOverridden()
1963 for (Class<?> cl = subcl; in auditSubclass()
1964 cl != Thread.class; in auditSubclass()
1965 cl = cl.getSuperclass()) in auditSubclass()
1968 cl.getDeclaredMethod("getContextClassLoader", new Class<?>[0]); in auditSubclass()
[all …]
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLServerSocketFactory.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()
124 cls = Class.forName(clsName, true, cl); in getDefault()
DSSLSocketFactory.java127 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in getDefault()
128 if (cl == null) { in getDefault()
129 cl = ClassLoader.getSystemClassLoader(); in getDefault()
132 if (cl != null) { in getDefault()
134 cls = Class.forName(clsName, true, cl); in getDefault()
/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/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/test/java/io/Serializable/records/
DSerialVersionUIDTest.java111 .map(cl -> new Object[] {cl, suid}) in recordClasses()
121 public void testSerializeFromClass(Class<? extends Record> cl, long suid) in testSerializeFromClass() argument
125 byte[] bytes = byteStreamFor(cl.getName(), suid); in testSerializeFromClass()
127 assertEquals(obj.getClass(), cl); in testSerializeFromClass() local
/libcore/ojluni/src/main/java/java/lang/ref/
DReferenceQueue.java121 if (reference instanceof sun.misc.Cleaner cl) { in enqueue()
126 cl.clean(); in enqueue()
248 sun.misc.Cleaner cl = (sun.misc.Cleaner) list; in enqueuePending() local
249 currentTarget = cl; in enqueuePending()
250 cl.clean(); // Idempotent. No need to check queueNext first. Handles all in enqueuePending()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java405 private ServiceLoader(Class<?> caller, Class<S> svc, ClassLoader cl) { in ServiceLoader() argument
410 if (cl == null) { in ServiceLoader()
411 cl = ClassLoader.getSystemClassLoader(); in ServiceLoader()
429 cl = null; in ServiceLoader()
436 this.loader = cl; in ServiceLoader()
1613 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in load() local
1614 return new ServiceLoader<>(Reflection.getCallerClass(), service, cl); in load()
1649 ClassLoader cl = ClassLoader.getSystemClassLoader(); in loadInstalled() local
1651 while (cl != null) { in loadInstalled()
1652 prev = cl; in loadInstalled()
[all …]
/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()
/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java169 private static boolean isAncestor(ClassLoader p, ClassLoader cl) { in isAncestor() argument
170 ClassLoader acl = cl; in isAncestor()
233 ClassLoader cl = intf.getClassLoader(); in checkProxyPackageAccess() local
234 if (needsPackageAccessCheck(ccl, cl)) { in checkProxyPackageAccess()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinWorkerThread.java208 public void setContextClassLoader(ClassLoader cl) { in setContextClassLoader() argument
209 if (cl != null && ClassLoader.getSystemClassLoader() != cl) in setContextClassLoader()
/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()

1234