Home
last modified time | relevance | path

Searched refs:maximumSize (Results 1 – 25 of 45) sorted by relevance

12

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DFixedSampleSizeRechunker.java33 public final int maximumSize; field in FixedSampleSizeRechunker.Results
41 int maximumSize, in Results() argument
47 this.maximumSize = maximumSize; in Results()
80 int maximumSize = 0; in rechunk() local
95 maximumSize = Math.max(maximumSize, sizes[newSampleIndex]); in rechunk()
108 return new Results(offsets, sizes, maximumSize, timestamps, flags, duration); in rechunk()
DTrackSampleTable.java36 public final int maximumSize; field in TrackSampleTable
51 int maximumSize, in TrackSampleTable() argument
62 this.maximumSize = maximumSize; in TrackSampleTable()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAbstractSessionContext.java40 private volatile int maximumSize; field in AbstractSessionContext
52 if (maximumSize > 0 && size() > maximumSize) {
66 AbstractSessionContext(int maximumSize) { in AbstractSessionContext() argument
67 this.maximumSize = maximumSize; in AbstractSessionContext()
134 return maximumSize; in getSessionCacheSize()
180 int oldMaximum = maximumSize; in setSessionCacheSize()
181 maximumSize = size; in setSessionCacheSize()
293 if (size > maximumSize) { in trimToSize()
294 int removals = size - maximumSize; in trimToSize()
/external/conscrypt/common/src/main/java/org/conscrypt/
DAbstractSessionContext.java39 private volatile int maximumSize; field in AbstractSessionContext
51 if (maximumSize > 0 && size() > maximumSize) {
65 AbstractSessionContext(int maximumSize) { in AbstractSessionContext() argument
66 this.maximumSize = maximumSize; in AbstractSessionContext()
134 return maximumSize; in getSessionCacheSize()
180 int oldMaximum = maximumSize; in setSessionCacheSize()
181 maximumSize = size; in setSessionCacheSize()
293 if (size > maximumSize) { in trimToSize()
294 int removals = size - maximumSize; in trimToSize()
/external/guava/guava/src/com/google/common/collect/
DMinMaxPriorityQueue.java142 public static Builder<Comparable> maximumSize(int maximumSize) { in maximumSize() method in MinMaxPriorityQueue
143 return new Builder<Comparable>(Ordering.natural()).maximumSize(maximumSize); in maximumSize()
166 private int maximumSize = Integer.MAX_VALUE; field in MinMaxPriorityQueue.Builder
190 public Builder<B> maximumSize(int maximumSize) { in maximumSize() method in MinMaxPriorityQueue.Builder
191 checkArgument(maximumSize > 0); in maximumSize()
192 this.maximumSize = maximumSize; in maximumSize()
211 this, initialQueueSize(expectedSize, maximumSize, initialContents)); in create()
226 @VisibleForTesting final int maximumSize; field in MinMaxPriorityQueue
238 this.maximumSize = builder.maximumSize; in MinMaxPriorityQueue()
290 return size <= maximumSize || pollLast() != element; in offer()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DMinMaxPriorityQueue.java142 public static Builder<Comparable> maximumSize(int maximumSize) { in maximumSize() method in MinMaxPriorityQueue
143 return new Builder<Comparable>(Ordering.natural()).maximumSize(maximumSize); in maximumSize()
166 private int maximumSize = Integer.MAX_VALUE; field in MinMaxPriorityQueue.Builder
190 public Builder<B> maximumSize(int maximumSize) { in maximumSize() method in MinMaxPriorityQueue.Builder
191 checkArgument(maximumSize > 0); in maximumSize()
192 this.maximumSize = maximumSize; in maximumSize()
211 this, initialQueueSize(expectedSize, maximumSize, initialContents)); in create()
226 @VisibleForTesting final int maximumSize; field in MinMaxPriorityQueue
238 this.maximumSize = builder.maximumSize; in MinMaxPriorityQueue()
290 return size <= maximumSize || pollLast() != element; in offer()
[all …]
/external/guava/android/guava/src/com/google/common/cache/
DCacheBuilder.java232 long maximumSize = UNSET_INT; field in CacheBuilder
433 public CacheBuilder<K, V> maximumSize(long maximumSize) { in maximumSize() argument
435 this.maximumSize == UNSET_INT, "maximum size was already set to %s", this.maximumSize); in maximumSize()
441 checkArgument(maximumSize >= 0, "maximum size must not be negative"); in maximumSize()
442 this.maximumSize = maximumSize; in maximumSize()
480 this.maximumSize == UNSET_INT, "maximum size was already set to %s", this.maximumSize); in maximumWeight()
521 this.maximumSize == UNSET_INT, in weigher()
523 this.maximumSize); in weigher()
537 return (weigher == null) ? maximumSize : maximumWeight; in getMaximumWeight()
904 if (maximumSize != UNSET_INT) { in toString()
[all …]
DCacheBuilderSpec.java111 @VisibleForTesting @NullableDecl Long maximumSize; field in CacheBuilderSpec
171 if (maximumSize != null) { in toCacheBuilder()
172 builder.maximumSize(maximumSize); in toCacheBuilder()
239 maximumSize, in hashCode()
260 && Objects.equal(maximumSize, that.maximumSize) in equals()
334 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
337 spec.maximumSize = value; in parseLong()
347 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java231 long maximumSize = UNSET_INT; field in CacheBuilder
432 public CacheBuilder<K, V> maximumSize(long maximumSize) { in maximumSize() method in CacheBuilder
434 this.maximumSize == UNSET_INT, "maximum size was already set to %s", this.maximumSize); in maximumSize()
440 checkArgument(maximumSize >= 0, "maximum size must not be negative"); in maximumSize()
441 this.maximumSize = maximumSize; in maximumSize()
479 this.maximumSize == UNSET_INT, "maximum size was already set to %s", this.maximumSize); in maximumWeight()
520 this.maximumSize == UNSET_INT, in weigher()
522 this.maximumSize); in weigher()
536 return (weigher == null) ? maximumSize : maximumWeight; in getMaximumWeight()
1004 if (maximumSize != UNSET_INT) { in toString()
[all …]
DCacheBuilderSpec.java111 @VisibleForTesting @Nullable Long maximumSize; field in CacheBuilderSpec
171 if (maximumSize != null) { in toCacheBuilder()
172 builder.maximumSize(maximumSize); in toCacheBuilder()
239 maximumSize, in hashCode()
260 && Objects.equal(maximumSize, that.maximumSize) in equals()
333 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
336 spec.maximumSize = value; in parseLong()
346 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java38 assertNull(spec.maximumSize); in testParse_empty()
51 assertNull(spec.maximumSize); in testParse_initialCapacity()
73 assertEquals(9000, spec.maximumSize.longValue()); in testParse_maximumSize()
80 CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec)); in testParse_maximumSize()
123 assertNull(spec.maximumSize); in testParse_concurrencyLevel()
145 assertNull(spec.maximumSize); in testParse_weakKeys()
174 assertNull(spec.maximumSize); in testParse_softValues()
195 assertNull(spec.maximumSize); in testParse_weakValues()
242 assertNull(spec.maximumSize); in testParse_writeExpirationDays()
289 assertNull(spec.maximumSize); in testParse_accessExpirationDays()
[all …]
DCacheBuilderTest.java148 builder.maximumSize(-1); in testMaximumSize_negative()
155 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumSize(16); in testMaximumSize_setTwice()
158 builder.maximumSize(16); in testMaximumSize_setTwice()
166 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumSize(16); in testMaximumSize_andWeight()
177 CacheBuilder.newBuilder().initialCapacity(512).maximumSize(Long.MAX_VALUE); in testMaximumSize_largerThanInt()
202 builder.maximumSize(16); in testMaximumWeight_setTwice()
231 CacheBuilder.newBuilder().weigher(constantWeigher(42)).maximumSize(1); in testWeigher_withMaximumSize()
236 CacheBuilder.newBuilder().maximumSize(1).weigher(constantWeigher(42)); in testWeigher_withMaximumSize()
389 CacheBuilder.newBuilder().maximumSize(0).removalListener(listener).build(identityLoader()); in testNullCache()
593 .maximumSize(5000) in testRemovalNotification_get_basher()
DCacheEvictionTest.java44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().maximumSize(i).build(loader); in testEviction_setMaxSegmentSize()
61 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(MAX_SIZE).build(loader); in testEviction_maxSizeOneSegment()
93 .maximumSize(MAX_SIZE) in testEviction_maxSize()
261 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).build(loader); in testUpdateRecency_onGet()
276 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).concurrencyLevel(1).build(loader); in testUpdateRecency_onInvalidate()
293 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(10).build(loader); in testEviction_lru()
391 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(10).build(loader); in testEviction_invalidateAll()
DNullCacheTest.java46 .maximumSize(0) in testGet()
99 .maximumSize(0) in testGet_computeNull()
118 .maximumSize(0) in testGet_runtimeException()
DCacheBuilderFactory.java163 Integer maximumSize,
177 if (maximumSize != null) {
178 builder.maximumSize(maximumSize);
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java38 assertNull(spec.maximumSize); in testParse_empty()
51 assertNull(spec.maximumSize); in testParse_initialCapacity()
73 assertEquals(9000, spec.maximumSize.longValue()); in testParse_maximumSize()
80 CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec)); in testParse_maximumSize()
123 assertNull(spec.maximumSize); in testParse_concurrencyLevel()
145 assertNull(spec.maximumSize); in testParse_weakKeys()
174 assertNull(spec.maximumSize); in testParse_softValues()
195 assertNull(spec.maximumSize); in testParse_weakValues()
242 assertNull(spec.maximumSize); in testParse_writeExpirationDays()
289 assertNull(spec.maximumSize); in testParse_accessExpirationDays()
[all …]
DLocalCacheMapComputeTest.java44 .maximumSize(count) in setUp()
61 Cache<String, String> c = CacheBuilder.newBuilder().maximumSize(1).build(); in testComputeIfAbsentEviction()
73 Cache<String, String> c = CacheBuilder.newBuilder().maximumSize(1).build(); in testComputeEviction()
DCacheBuilderTest.java148 builder.maximumSize(-1); in testMaximumSize_negative()
155 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumSize(16); in testMaximumSize_setTwice()
158 builder.maximumSize(16); in testMaximumSize_setTwice()
166 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumSize(16); in testMaximumSize_andWeight()
177 CacheBuilder.newBuilder().initialCapacity(512).maximumSize(Long.MAX_VALUE); in testMaximumSize_largerThanInt()
202 builder.maximumSize(16); in testMaximumWeight_setTwice()
231 CacheBuilder.newBuilder().weigher(constantWeigher(42)).maximumSize(1); in testWeigher_withMaximumSize()
236 CacheBuilder.newBuilder().maximumSize(1).weigher(constantWeigher(42)); in testWeigher_withMaximumSize()
465 CacheBuilder.newBuilder().maximumSize(0).removalListener(listener).build(identityLoader()); in testNullCache()
669 .maximumSize(5000) in testRemovalNotification_get_basher()
DCacheEvictionTest.java44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().maximumSize(i).build(loader); in testEviction_setMaxSegmentSize()
61 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(MAX_SIZE).build(loader); in testEviction_maxSizeOneSegment()
93 .maximumSize(MAX_SIZE) in testEviction_maxSize()
261 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).build(loader); in testUpdateRecency_onGet()
276 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).concurrencyLevel(1).build(loader); in testUpdateRecency_onInvalidate()
293 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(10).build(loader); in testEviction_lru()
391 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(10).build(loader); in testEviction_invalidateAll()
DNullCacheTest.java46 .maximumSize(0) in testGet()
99 .maximumSize(0) in testGet_computeNull()
118 .maximumSize(0) in testGet_runtimeException()
DCacheBuilderFactory.java163 Integer maximumSize,
177 if (maximumSize != null) {
178 builder.maximumSize(maximumSize);
/external/guava/guava-tests/benchmark/com/google/common/cache/
DLoadingCacheSingleThreadBenchmark.java34 int maximumSize; field in LoadingCacheSingleThreadBenchmark
65 .maximumSize(maximumSize) in setUp()
78 while (cache.getUnchecked(nextRandomKey()) < maximumSize) {} in setUp()
/external/guava/android/guava-tests/benchmark/com/google/common/cache/
DLoadingCacheSingleThreadBenchmark.java34 int maximumSize; field in LoadingCacheSingleThreadBenchmark
65 .maximumSize(maximumSize) in setUp()
78 while (cache.getUnchecked(nextRandomKey()) < maximumSize) {} in setUp()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DLocalCache.java71 final long maximumSize = builder.maximumSize; in LocalCache() local
76 (builder.maximumSize != UNSET_INT), in LocalCache()
77 builder.maximumSize, in LocalCache()
473 private final long maximumSize; field in LocalCache.CapacityEnforcingLinkedHashMap
479 long maximumSize, in CapacityEnforcingLinkedHashMap() argument
483 this.maximumSize = maximumSize; in CapacityEnforcingLinkedHashMap()
490 boolean removal = (maximumSize == UNSET_INT) ? false : (size() > maximumSize); in removeEldestEntry()
/external/cldr/tools/java/org/unicode/cldr/util/
DPatternCache.java48 …cache = CacheBuilder.newBuilder().initialCapacity(INITIAL_CAPACITY).maximumSize(MAX_CAPACITY).reco…
50 …cache = CacheBuilder.newBuilder().initialCapacity(INITIAL_CAPACITY).maximumSize(MAX_CAPACITY).buil…

12