Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/util/
DCollectionUtilsTest.java33 List<Reference<String>> refs = new ArrayList<Reference<String>>(); in testDereferenceIterable() local
34 refs.add(newLiteralReference("a")); in testDereferenceIterable()
35 refs.add(newLiteralReference("b")); in testDereferenceIterable()
36 refs.add(newLiteralReference("c")); in testDereferenceIterable()
37 refs.add(newLiteralReference("d")); in testDereferenceIterable()
38 refs.add(newLiteralReference("e")); in testDereferenceIterable()
40 Iterable<String> strings = CollectionUtils.dereferenceIterable(refs, true); in testDereferenceIterable()
43 refs.get(1).clear(); // b in testDereferenceIterable()
45 assertEquals(4, refs.size()); in testDereferenceIterable()
50 assertEquals(3, refs.size()); in testDereferenceIterable()
[all …]
/libcore/benchmarks/src/benchmarks/
DReferenceBenchmark.java78 List<Object> refs = new ArrayList<Object>(); in timeAllocImplicitEnqueueAndRemove() local
80 refs.add(new PhantomReference<Object>(new Object(), queue)); in timeAllocImplicitEnqueueAndRemove()
/libcore/ojluni/src/main/java/java/lang/reflect/
DProxy.java515 private final WeakReference<Class<?>>[] refs; field in Proxy.KeyX
520 refs = (WeakReference<Class<?>>[])new WeakReference<?>[interfaces.length]; in KeyX()
522 refs[i] = new WeakReference<>(interfaces[i]); in KeyX()
536 equals(refs, ((KeyX) obj).refs); in equals()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DProxy.java233 private final java.lang.ref.WeakReference<java.lang.Class<?>>[] refs; field in Proxy.KeyX
236 refs = new java.lang.ref.WeakReference[0];
/libcore/ojluni/src/main/native/
Dzip_util.c827 && zip->refs < MAXREFS) { in ZIP_Get_From_Cache()
828 zip->refs++; in ZIP_Get_From_Cache()
865 zip->refs = 1; in ZIP_Put_In_Cache0()
944 if (--zip->refs > 0) { in ZIP_Close()
Dzip_util.h211 jint refs; /* number of active references */ member