/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
Asn1BitString.java | 40 private Integer maximumSize = null; // null == unbounded. 52 maximumSize = max; 76 maximumSize == null || value.length() <= maximumSize, "Too large %s", 103 maximumSize == null || value.length() <= maximumSize, "Too large %s", 105 if (maximumSize == null) { 109 if (minimumSize == maximumSize) { 110 if (maximumSize == 0) { 113 if (maximumSize < SIXTYFOUR_K) [all...] |
Asn1GeneralString.java | 39 private Integer maximumSize = null; // Null == unconstrained. 66 maximumSize = max; 80 Preconditions.checkState(maximumSize == null || value.length <= maximumSize, 83 if (maximumSize == null) { 91 if (aligned && maximumSize * characterBitCount > 16) { 95 if (minimumSize == maximumSize 96 && maximumSize < SIXTYFOUR_K) { 100 if (maximumSize >= SIXTYFOUR_K) { 104 // A little oddity when maximumSize != minimumSize [all...] |
Asn1BMPString.java | 40 private Integer maximumSize = null; // Null == unconstrained. 67 maximumSize = max; 82 Preconditions.checkState(maximumSize == null || length <= maximumSize, 85 if (maximumSize == null) { 90 if (aligned && maximumSize * characterBitCount > 16) { 94 if (minimumSize == maximumSize 95 && maximumSize < SIXTYFOUR_K) { 99 if (maximumSize >= SIXTYFOUR_K) { 103 // A little oddity when maximumSize != minimumSize [all...] |
Asn1OctetString.java | 38 private Integer maximumSize = null; // null == unbounded. 50 maximumSize = max; 82 maximumSize == null || value.length <= maximumSize, "Too large %s", 84 if (maximumSize == null) { 90 } else if (minimumSize == maximumSize) { 91 if (maximumSize == 0) { 94 if (maximumSize < SIXTYFOUR_K) { 96 for (int i = 0; i < maximumSize; i++) { 99 if (aligned && maximumSize > 2) [all...] |
Asn1SequenceOf.java | 36 private Integer maximumSize = null; // Null is unbounded. 47 maximumSize = max; 109 Preconditions.checkState(maximumSize == null 110 || sequence.size() <= maximumSize, 113 if (maximumSize == null || maximumSize >= PerAlignedUtils.SIXTYFOUR_K) { 119 } else if (maximumSize != minimumSize) { 123 sequence.size(), minimumSize, maximumSize)); 127 sequence.size(), minimumSize, maximumSize)); 150 if (maximumSize == null || maximumSize >= PerAlignedUtils.SIXTYFOUR_K) [all...] |
Asn1IA5String.java | 50 private Integer maximumSize = null; // Null == unconstrained. 93 maximumSize = max; 103 Preconditions.checkArgument(maximumSize == null 104 || value.length() <= maximumSize, 125 if (aligned && (maximumSize == null || maximumSize * characterBitCount > 16)) { 129 if (maximumSize != null) { 130 if (minimumSize == maximumSize && maximumSize < SIXTYFOUR_K) { 134 if (maximumSize >= SIXTYFOUR_K) [all...] |
Asn1Utf8String.java | 34 private Integer maximumSize = null; // null == unbounded. 42 maximumSize = max; 86 maximumSize == null || value.length() <= maximumSize, "Too large %s",
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
MapMaker.java | 43 private final int maximumSize; 46 long expirationMillis, int maximumSize, int initialCapacity) { 47 this(expirationMillis, null, maximumSize, initialCapacity); 51 int maximumSize, int initialCapacity) { 52 super(initialCapacity, /* ignored loadFactor */ 0.75f, (maximumSize != -1)); 55 this.maximumSize = maximumSize; 69 return (maximumSize == -1) ? false : size() > maximumSize; 163 private int maximumSize = -1 [all...] |
GenericMapMaker.java | 58 * See {@link MapMaker#maximumSize}. 60 abstract GenericMapMaker<K0, V0> maximumSize(int maximumSize);
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
AbstractSessionContext.java | 39 private volatile int maximumSize; 52 if (maximumSize > 0 && size() > maximumSize) { 64 * @param maximumSize of cache 66 AbstractSessionContext(int maximumSize) { 67 this.maximumSize = maximumSize; 135 return maximumSize; 181 int oldMaximum = maximumSize; 182 maximumSize = size [all...] |
/external/guava/guava-tests/benchmark/com/google/common/cache/ |
LoadingCacheSingleThreadBenchmark.java | 34 @Param({"1000", "2000"}) int maximumSize; 58 .maximumSize(maximumSize) 70 while (cache.getUnchecked(nextRandomKey()) < maximumSize) {}
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
MapMakerSingleThreadBenchmark.java | 37 @Param({"1000", "2000"}) int maximumSize; 61 .maximumSize(maximumSize) 73 while (cache.get(nextRandomKey()) < maximumSize) {}
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
MapMakerTest.java | 77 MapMaker maker = new MapMaker().maximumSize(16); 80 maker.maximumSize(16); 94 /** Tests of the built map with maximumSize. */ 98 new MapMaker().maximumSize(0).makeMap(); 108 new MapMaker().maximumSize(mapSize).makeMap();
|
/external/guava/guava/src/com/google/common/collect/ |
MinMaxPriorityQueue.java | 131 * MinMaxPriorityQueue} instances that are limited to {@code maximumSize} 136 public static Builder<Comparable> maximumSize(int maximumSize) { 138 .maximumSize(maximumSize); 146 * MinMaxPriorityQueue#maximumSize(int)}. 164 private int maximumSize = Integer.MAX_VALUE; 182 * that are limited to {@code maximumSize} elements. Each time a queue grows 186 public Builder<B> maximumSize(int maximumSize) { [all...] |
GenericMapMaker.java | 78 * See {@link MapMaker#maximumSize}. 80 abstract GenericMapMaker<K0, V0> maximumSize(int maximumSize);
|
MapMaker.java | 118 int maximumSize = UNSET_INT; 199 * {@link com.google.common.cache.CacheBuilder}, with {@link #maximumSize} being 200 * replaced by {@link com.google.common.cache.CacheBuilder#maximumSize}. Note that {@code 206 MapMaker maximumSize(int size) { 207 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", 208 this.maximumSize); 210 this.maximumSize = size; 212 if (maximumSize == 0) { 313 * #maximumSize maximum size} instead of using soft references. You should only use this method if 357 * evicted immediately. This has a very similar effect to invoking {@link #maximumSize [all...] |
/external/guava/guava/src/com/google/common/cache/ |
CacheBuilder.java | 67 * .maximumSize(10000) 80 * String spec = "maximumSize=10000,expireAfterWrite=10m"; 106 * {@linkplain #maximumSize(long) maximumSize}, {@linkplain #maximumWeight(long) maximumWeight}, 111 * <p>If {@linkplain #maximumSize(long) maximumSize} or 221 long maximumSize = UNSET_INT; 400 public CacheBuilder<K, V> maximumSize(long size) { 401 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", 402 this.maximumSize); [all...] |
CacheBuilderSpec.java | 46 * <li>{@code maximumSize=[long]}: sets {@link CacheBuilder#maximumSize}. 69 * <li>{@code maximumSize} and {@code maximumWeight} 99 .put("maximumSize", new MaximumSizeParser()) 113 @VisibleForTesting Long maximumSize; 164 return CacheBuilderSpec.parse("maximumSize=0"); 175 if (maximumSize != null) { 176 builder.maximumSize(maximumSize); 244 maximumSize, [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderSpecTest.java | 40 assertNull(spec.maximumSize); 53 assertNull(spec.maximumSize); 74 CacheBuilderSpec spec = parse("maximumSize=9000"); 76 assertEquals(9000, spec.maximumSize.longValue()); 83 CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec)); 88 parse("maximumSize=10, maximumSize=20"); 119 parse("maximumSize=10, maximumWeight=20"); 129 assertNull(spec.maximumSize); 152 assertNull(spec.maximumSize); [all...] |
NullCacheTest.java | 45 .maximumSize(0) 95 .maximumSize(0) 111 .maximumSize(0)
|
CacheBuilderFactory.java | 151 Integer concurrencyLevel, Integer initialCapacity, Integer maximumSize, 162 if (maximumSize != null) { 163 builder.maximumSize(maximumSize);
|
CacheEvictionTest.java | 35 * Tests relating to cache eviction: what does and doesn't count toward maximumSize, what happens 36 * when maximumSize is reached, etc. 47 .maximumSize(i) 68 .maximumSize(MAX_SIZE) 99 .maximumSize(MAX_SIZE) 152 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).build(loader); 165 .maximumSize(MAX_SIZE) 183 .maximumSize(10) 281 .maximumSize(10)
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilder.java | 61 * .maximumSize(10000) 74 * String spec = "maximumSize=10000,expireAfterWrite=10m"; 100 * {@linkplain #maximumSize(long) maximumSize}, {@linkplain #maximumWeight(long) maximumWeight}, 105 * <p>If {@linkplain #maximumSize(long) maximumSize} or 215 long maximumSize = UNSET_INT; 332 public CacheBuilder<K, V> maximumSize(long size) { 333 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", 334 this.maximumSize); [all...] |
LocalCache.java | 72 final long maximumSize = builder.maximumSize; 76 (builder.maximumSize != UNSET_INT), 77 builder.maximumSize, 471 private final long maximumSize; 477 long maximumSize, 481 this.maximumSize = maximumSize; 488 boolean removal = (maximumSize == UNSET_INT) ? false : (size() > maximumSize); [all...] |
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilderTest.java | 96 builder.maximumSize(-1); 102 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().maximumSize(16); 105 builder.maximumSize(16);
|