Searched refs:maxSegmentWeight (Results 1 – 3 of 3) sorted by relevance
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 295 long maxSegmentWeight = maxWeight / segmentCount + 1; in LocalCache() local 299 maxSegmentWeight--; in LocalCache() 302 createSegment(segmentSize, maxSegmentWeight, builder.getStatsCounterSupplier().get()); in LocalCache() 1875 int initialCapacity, long maxSegmentWeight, StatsCounter statsCounter) { in createSegment() argument 1876 return new Segment<K, V>(this, initialCapacity, maxSegmentWeight, statsCounter); in createSegment() 2045 final long maxSegmentWeight; field in LocalCache.Segment 2089 Segment(LocalCache<K, V> map, int initialCapacity, long maxSegmentWeight, in Segment() argument 2092 this.maxSegmentWeight = maxSegmentWeight; in Segment() 2121 if (!map.customWeigher() && this.threshold == maxSegmentWeight) { in initTable() 2667 while (totalWeight > maxSegmentWeight) { in evictEntries()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 177 totalSize += segment.maxSegmentWeight; in getTotalSegmentSize()
|
D | LocalCacheTest.java | 317 totalCapacity += map.segments[i].maxSegmentWeight; in checkMaximumSize() 330 totalCapacity += map.segments[i].maxSegmentWeight; in checkMaximumSize()
|