/libcore/luni/src/main/java/libcore/util/ |
D | BasicLruCache.java | 31 private final int maxSize; field in BasicLruCache 34 public BasicLruCache(int maxSize) { in BasicLruCache() argument 35 if (maxSize <= 0) { in BasicLruCache() 38 this.maxSize = maxSize; in BasicLruCache() 73 trimToSize(maxSize); in get() 96 trimToSize(maxSize); in put() 100 private void trimToSize(int maxSize) { in trimToSize() argument 101 while (map.size() > maxSize) { in trimToSize()
|
/libcore/ojluni/src/test/java/util/HashMap/ |
D | WhiteBoxResizeTest.java | 95 int maxSize = 1 << 30; in testTableSizeFor() local 96 assertEquals(tableSizeFor(maxSize - 1), maxSize); in testTableSizeFor() 97 assertEquals(tableSizeFor(maxSize), maxSize); in testTableSizeFor() local 98 assertEquals(tableSizeFor(maxSize + 1), maxSize); in testTableSizeFor() 99 assertEquals(tableSizeFor(Integer.MAX_VALUE), maxSize); in testTableSizeFor() local
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | Cache.java | 258 private int maxSize; field in MemoryCache 266 public MemoryCache(boolean soft, int maxSize) { in MemoryCache() argument 267 this(soft, maxSize, 0); in MemoryCache() 270 public MemoryCache(boolean soft, int maxSize, int lifetime) { in MemoryCache() argument 271 this.maxSize = maxSize; in MemoryCache() 384 if (maxSize > 0 && cacheMap.size() > maxSize) { in put() 386 if (cacheMap.size() > maxSize) { // still too large? in put() 459 maxSize = size > 0 ? size : 0; in setCapacity()
|
D | DisabledAlgorithmConstraints.java | 471 private int maxSize; // the maximal available key size field in DisabledAlgorithmConstraints.KeySizeConstraint 479 this.maxSize = Integer.MAX_VALUE; in KeySizeConstraint() 484 this.maxSize = length; in KeySizeConstraint() 488 this.maxSize = Integer.MAX_VALUE; in KeySizeConstraint() 492 this.maxSize = Integer.MAX_VALUE; in KeySizeConstraint() 496 this.maxSize = length; in KeySizeConstraint() 500 this.maxSize = length > 1 ? (length - 1) : 0; in KeySizeConstraint() 505 this.maxSize = -1; in KeySizeConstraint() 555 return !((size < minSize) || (size > maxSize) || in permitsImpl()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | MemoryCache.java | 24 public MemoryCache(boolean soft, int maxSize) { in MemoryCache() argument 28 public MemoryCache(boolean soft, int maxSize, int lifetime) { in MemoryCache() argument 93 private int maxSize; field in MemoryCache
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | IcuZoneRulesProvider.java | 77 ZoneRulesCache(int maxSize) { in ZoneRulesCache() argument 78 super(maxSize); in ZoneRulesCache()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 252 public Stream<T> limit(long maxSize) { in limit() argument 253 return s.limit(maxSize); in limit() 443 public IntStream limit(long maxSize) { in limit() argument 444 return s.limit(maxSize); in limit() 654 public LongStream limit(long maxSize) { in limit() argument 655 return s.limit(maxSize); in limit() 847 public DoubleStream limit(long maxSize) { in limit() argument 848 return s.limit(maxSize); in limit()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | IntPipeline.java | 439 public final IntStream limit(long maxSize) { 440 if (maxSize < 0) 441 throw new IllegalArgumentException(Long.toString(maxSize)); 442 return SliceOps.makeInt(this, 0, maxSize);
|
D | LongPipeline.java | 421 public final LongStream limit(long maxSize) { 422 if (maxSize < 0) 423 throw new IllegalArgumentException(Long.toString(maxSize)); 424 return SliceOps.makeLong(this, 0, maxSize);
|
D | DoublePipeline.java | 405 public final DoubleStream limit(long maxSize) { 406 if (maxSize < 0) 407 throw new IllegalArgumentException(Long.toString(maxSize)); 408 return SliceOps.makeDouble(this, (long) 0, maxSize);
|
D | ReferencePipeline.java | 589 public final Stream<P_OUT> limit(long maxSize) { 590 if (maxSize < 0) 591 throw new IllegalArgumentException(Long.toString(maxSize)); 592 return SliceOps.makeRef(this, 0, maxSize);
|
D | DoubleStream.java | 288 DoubleStream limit(long maxSize); in limit() argument
|
D | IntStream.java | 286 IntStream limit(long maxSize); in limit() argument
|
D | LongStream.java | 286 LongStream limit(long maxSize); in limit() argument
|
D | Stream.java | 672 Stream<T> limit(long maxSize);
|
/libcore/ojluni/src/main/java/java/security/ |
D | Security.java | 940 int maxSize = Integer.parseInt(prop); in isConstraintSatisfied() local 941 if (requestedSize <= maxSize) { in isConstraintSatisfied()
|
/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | DoubleStream.annotated.java | 52 public java.util.stream.DoubleStream limit(long maxSize); in limit() argument
|
D | IntStream.annotated.java | 52 public java.util.stream.IntStream limit(long maxSize); in limit() argument
|
D | LongStream.annotated.java | 52 public java.util.stream.LongStream limit(long maxSize); in limit() argument
|