Home
last modified time | relevance | path

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

1234

/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.java297 private static String getClassSignature(Class<?> cl) { in getClassSignature() argument
299 while (cl.isArray()) { in getClassSignature()
301 cl = cl.getComponentType(); in getClassSignature()
303 if (cl.isPrimitive()) { in getClassSignature()
304 if (cl == Integer.TYPE) { in getClassSignature()
306 } else if (cl == Byte.TYPE) { in getClassSignature()
308 } else if (cl == Long.TYPE) { in getClassSignature()
310 } else if (cl == Float.TYPE) { in getClassSignature()
312 } else if (cl == Double.TYPE) { in getClassSignature()
314 } else if (cl == Short.TYPE) { in getClassSignature()
[all …]
DObjectStreamClass.java109 private Class<?> cl; field in ObjectStreamClass
220 public static ObjectStreamClass lookup(Class<?> cl) { in lookup() argument
221 return lookup(cl, false); in lookup()
232 public static ObjectStreamClass lookupAny(Class<?> cl) { in lookupAny() argument
233 return lookup(cl, true); in lookupAny()
261 return computeDefaultSUID(cl); in getSerialVersionUID()
277 if (cl == null) { in forClass()
283 if (ReflectUtil.needsPackageAccessCheck(caller.getClassLoader(), cl.getClassLoader())) { in forClass()
284 ReflectUtil.checkPackageAccess(cl); in forClass()
287 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.java684 Class<?> cl = primClasses.get(name); in resolveClass()
685 if (cl != null) { in resolveClass()
686 return cl; in resolveClass()
754 Class<?> cl = Class.forName(interfaces[i], false, latestLoader); in resolveProxyClass() local
755 if ((cl.getModifiers() & Modifier.PUBLIC) == 0) { in resolveProxyClass()
757 if (nonPublicLoader != cl.getClassLoader()) { in resolveProxyClass()
762 nonPublicLoader = cl.getClassLoader(); in resolveProxyClass()
766 classObjs[i] = cl; in resolveProxyClass()
1295 Class<?> cl = getClass(); in verifySubclass() local
1296 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.java149 Class<?> cl = findLoadedClass(name); in loadClass() local
150 if (cl != null) { in loadClass()
151 return cl; in loadClass()
196 final ClassLoader cl = getParent(); in getResource() local
197 return (cl == null) ? null : cl.getResource(name); in getResource()
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/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/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/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/ojluni/src/main/java/java/lang/
DThread.java1656 public void setContextClassLoader(ClassLoader cl) { in setContextClassLoader() argument
1662 contextClassLoader = cl; in setContextClassLoader()
1830 private static boolean isCCLOverridden(Class<?> cl) { in isCCLOverridden() argument
1831 if (cl == Thread.class) in isCCLOverridden()
1835 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue); in isCCLOverridden()
1838 result = Boolean.valueOf(auditSubclass(cl)); in isCCLOverridden()
1854 for (Class<?> cl = subcl; in auditSubclass()
1855 cl != Thread.class; in auditSubclass()
1856 cl = cl.getSuperclass()) in auditSubclass()
1859 cl.getDeclaredMethod("getContextClassLoader", new Class<?>[0]); in auditSubclass()
[all …]
/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/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/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/ojluni/annotations/hiddenapi/sun/misc/
DCleaner.java38 private static synchronized sun.misc.Cleaner add(sun.misc.Cleaner cl) { in add() argument
42 private static synchronized boolean remove(sun.misc.Cleaner cl) { in remove() argument
/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()

1234