Home
last modified time | relevance | path

Searched refs:MAX_ARRAY_SIZE (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DByteArrayOutputStream.java104 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in ByteArrayOutputStream
118 if (newCapacity - MAX_ARRAY_SIZE > 0) in grow()
126 return (minCapacity > MAX_ARRAY_SIZE) ? in hugeCapacity()
128 MAX_ARRAY_SIZE; in hugeCapacity()
/libcore/ojluni/src/main/java/java/util/stream/
DSortedOps.java346 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
385 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
444 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
483 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
543 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
582 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
642 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
681 if (size >= Nodes.MAX_ARRAY_SIZE) in begin()
DNodes.java61 static final long MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in Nodes
175 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in builder()
213 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in intBuilder()
250 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in longBuilder()
287 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in doubleBuilder()
330 if (size >= MAX_ARRAY_SIZE) in collect()
367 if (size >= MAX_ARRAY_SIZE) in collectInt()
405 if (size >= MAX_ARRAY_SIZE) in collectLong()
443 if (size >= MAX_ARRAY_SIZE) in collectDouble()
475 if (size >= MAX_ARRAY_SIZE) in flatten()
[all …]
DNode.java274 if (size >= Nodes.MAX_ARRAY_SIZE) in asArray()
DSpinedBuffer.java216 if (size >= Nodes.MAX_ARRAY_SIZE) in asArray()
562 if (size >= Nodes.MAX_ARRAY_SIZE) in asPrimitiveArray()
/libcore/ojluni/src/main/java/java/util/
DHashtable.java198 threshold = (int)Math.min(initialCapacity * loadFactor, MAX_ARRAY_SIZE + 1); in Hashtable()
398 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in Hashtable
414 if (newCapacity - MAX_ARRAY_SIZE > 0) { in rehash()
415 if (oldCapacity == MAX_ARRAY_SIZE) in rehash()
418 newCapacity = MAX_ARRAY_SIZE; in rehash()
423 threshold = (int)Math.min(newCapacity * loadFactor, MAX_ARRAY_SIZE + 1); in rehash()
1249 this.threshold = (int)Math.min(length * loadFactor, MAX_ARRAY_SIZE + 1); in defaultWriteHashtable()
1308 threshold = (int)Math.min(length * lf, MAX_ARRAY_SIZE + 1); in readHashtable()
DArrayDeque.java132 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in ArrayDeque
146 || (newCapacity = (oldCapacity + jump)) - MAX_ARRAY_SIZE > 0) in grow()
172 if ((minCapacity = oldCapacity + needed) - MAX_ARRAY_SIZE > 0) { in newCapacity()
179 return (oldCapacity + jump - MAX_ARRAY_SIZE < 0) in newCapacity()
181 : MAX_ARRAY_SIZE; in newCapacity()
/libcore/ojluni/annotations/hiddenapi/java/util/
DPriorityQueue.java184 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in PriorityQueue
DVector.java274 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in Vector
DArrayList.java229 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in ArrayList
/libcore/ojluni/src/main/java/java/lang/
DAbstractStringBuilder.java188 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in AbstractStringBuilder
209 int SAFE_BOUND = MAX_ARRAY_SIZE >> coder; in newCapacity()
216 int SAFE_BOUND = MAX_ARRAY_SIZE >> coder; in hugeCapacity()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java268 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in AbstractStringBuilder
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java205 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in PriorityBlockingQueue
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java520 static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in ConcurrentHashMap
4464 if (sz > MAX_ARRAY_SIZE) in toArray()
4471 if (n >= MAX_ARRAY_SIZE) in toArray()
4473 if (n >= MAX_ARRAY_SIZE - (MAX_ARRAY_SIZE >>> 1) - 1) in toArray()
4474 n = MAX_ARRAY_SIZE; in toArray()
4487 if (sz > MAX_ARRAY_SIZE) in toArray()
4497 if (n >= MAX_ARRAY_SIZE) in toArray()
4499 if (n >= MAX_ARRAY_SIZE - (MAX_ARRAY_SIZE >>> 1) - 1) in toArray()
4500 n = MAX_ARRAY_SIZE; in toArray()