Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/util/
DCollectionUtilsTest.java31 List<Reference<String>> refs = new ArrayList<Reference<String>>(); in testDereferenceIterable() local
32 refs.add(newLiteralReference("a")); in testDereferenceIterable()
33 refs.add(newLiteralReference("b")); in testDereferenceIterable()
34 refs.add(newLiteralReference("c")); in testDereferenceIterable()
35 refs.add(newLiteralReference("d")); in testDereferenceIterable()
36 refs.add(newLiteralReference("e")); in testDereferenceIterable()
38 Iterable<String> strings = CollectionUtils.dereferenceIterable(refs, true); in testDereferenceIterable()
41 refs.get(1).clear(); // b in testDereferenceIterable()
43 assertEquals(4, refs.size()); in testDereferenceIterable()
48 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/native/
Dzip_util.h209 jint refs; /* number of active references */ member
Dzip_util.c822 && zip->refs < MAXREFS) { in ZIP_Get_From_Cache()
823 zip->refs++; in ZIP_Get_From_Cache()
860 zip->refs = 1; in ZIP_Put_In_Cache0()
939 if (--zip->refs > 0) { in ZIP_Close()