Searched refs:maxSegmentWeight (Results 1 – 3 of 3) sorted by relevance
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 290 long maxSegmentWeight = maxWeight / segmentCount + 1; in LocalCache() local 294 maxSegmentWeight--; in LocalCache() 297 createSegment(segmentSize, maxSegmentWeight, builder.getStatsCounterSupplier().get()); in LocalCache() 1924 int initialCapacity, long maxSegmentWeight, StatsCounter statsCounter) { in createSegment() argument 1925 return new Segment<K, V>(this, initialCapacity, maxSegmentWeight, statsCounter); in createSegment() 2093 final long maxSegmentWeight; field in LocalCache.Segment 2137 Segment(LocalCache<K, V> map, int initialCapacity, long maxSegmentWeight, in Segment() argument 2140 this.maxSegmentWeight = maxSegmentWeight; in Segment() 2169 if (!map.customWeigher() && this.threshold == maxSegmentWeight) { in initTable() 2695 while (totalWeight > maxSegmentWeight) { in evictEntries()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 172 totalSize += segment.maxSegmentWeight; in getTotalSegmentSize()
|
D | LocalCacheTest.java | 285 totalCapacity += map.segments[i].maxSegmentWeight; in checkMaximumSize() 296 totalCapacity += map.segments[i].maxSegmentWeight; in checkMaximumSize()
|