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.java1220 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()
1227 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1232 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1235 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1245 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()
1252 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1257 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1261 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1269 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1274 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
[all …]
DComputingConcurrentHashMapTest.java129 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()
141 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
144 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalLoadingCacheTest.java274 assertTrue(segment.recencyQueue.isEmpty()); in testAsMapRecency()
276 assertSame(one, segment.recencyQueue.peek().getKey()); in testAsMapRecency()
278 assertFalse(segment.recencyQueue.isEmpty()); in testAsMapRecency()
DLocalCacheTest.java434 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()
446 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
449 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
1788 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()
1795 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1800 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1803 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()
1813 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()
1820 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
1825 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()
[all …]
DCacheTesting.java284 assertEquals(0, segment.recencyQueue.size());
302 assertEquals(0, segment.recencyQueue.size());
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java2118 final Queue<ReferenceEntry<K, V>> recencyQueue; field in MapMakerInternalMap.Segment
2151 recencyQueue = (map.evictsBySize() || map.expiresAfterAccess()) in Segment()
2290 recencyQueue.add(entry); in recordRead()
2338 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2112 final Queue<ReferenceEntry<K, V>> recencyQueue; field in LocalCache.Segment
2150 recencyQueue = map.usesAccessQueue() in Segment()
2572 recencyQueue.add(entry); in recordRead()
2619 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()