Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java1194 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()
1201 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1206 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1209 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1219 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()
1226 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1231 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1235 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1243 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1248 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
[all …]
DComputingConcurrentHashMapTest.java125 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()
137 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
140 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalLoadingCacheTest.java301 assertTrue(segment.recencyQueue.isEmpty()); in testAsMapRecency()
303 assertSame(one, segment.recencyQueue.peek().getKey()); in testAsMapRecency()
305 assertFalse(segment.recencyQueue.isEmpty()); in testAsMapRecency()
DLocalCacheTest.java468 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()
480 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
483 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
1875 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()
1882 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1887 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1890 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1900 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()
1907 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1912 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
[all …]
DCacheTesting.java289 assertEquals(0, segment.recencyQueue.size());
307 assertEquals(0, segment.recencyQueue.size());
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java2068 final Queue<ReferenceEntry<K, V>> recencyQueue; field in MapMakerInternalMap.Segment
2101 recencyQueue = (map.evictsBySize() || map.expiresAfterAccess()) in Segment()
2255 recencyQueue.add(entry); in recordRead()
2303 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2064 final Queue<ReferenceEntry<K, V>> recencyQueue; field in LocalCache.Segment
2102 recencyQueue = map.usesAccessQueue() in Segment()
2544 recencyQueue.add(entry); in recordRead()
2591 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()