Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/cache/
DLocalCache.java190 final long maxWeight; field in LocalCache
245 maxWeight = builder.getMaximumWeight(); in LocalCache()
263 initialCapacity = Math.min(initialCapacity, (int) maxWeight); in LocalCache()
274 && (!evictsBySize() || segmentCount * 20 <= maxWeight)) { in LocalCache()
295 long maxSegmentWeight = maxWeight / segmentCount + 1; in LocalCache()
296 long remainder = maxWeight % segmentCount; in LocalCache()
313 return maxWeight >= 0; in evictsBySize()
4569 final long maxWeight;
4586 cache.maxWeight,
4597 long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight,
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java162 assertEquals(CacheBuilder.UNSET_INT, map.maxWeight); in testDefaults()
2421 assertEquals(localCacheOne.maxWeight, localCacheTwo.maxWeight); in testSerializationProxyLoading()
2438 assertEquals(localCacheTwo.maxWeight, localCacheThree.maxWeight); in testSerializationProxyLoading()
2476 assertEquals(localCacheOne.maxWeight, localCacheTwo.maxWeight); in testSerializationProxyManual()
2491 assertEquals(localCacheTwo.maxWeight, localCacheThree.maxWeight); in testSerializationProxyManual()