Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/io/
DByteArrayOutputStream.java102 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in ByteArrayOutputStream
116 if (newCapacity - MAX_ARRAY_SIZE > 0) in grow()
124 return (minCapacity > MAX_ARRAY_SIZE) ? in hugeCapacity()
126 MAX_ARRAY_SIZE; in hugeCapacity()
/libcore/ojluni/src/main/java/java/util/
DAbstractCollection.java208 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in AbstractCollection
228 if (newCap - MAX_ARRAY_SIZE > 0) in finishToArray()
242 return (minCapacity > MAX_ARRAY_SIZE) ? in hugeCapacity()
244 MAX_ARRAY_SIZE; in hugeCapacity()
DPriorityQueue.java284 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in PriorityQueue
298 if (newCapacity - MAX_ARRAY_SIZE > 0) in grow()
306 return (minCapacity > MAX_ARRAY_SIZE) ? in hugeCapacity()
308 MAX_ARRAY_SIZE; in hugeCapacity()
DVector.java255 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in Vector
264 if (newCapacity - MAX_ARRAY_SIZE > 0) in grow()
272 return (minCapacity > MAX_ARRAY_SIZE) ? in hugeCapacity()
274 MAX_ARRAY_SIZE; in hugeCapacity()
DHashtable.java193 threshold = (int)Math.min(initialCapacity, MAX_ARRAY_SIZE + 1); in Hashtable()
381 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in Hashtable
397 if (newCapacity - MAX_ARRAY_SIZE > 0) { in rehash()
398 if (oldCapacity == MAX_ARRAY_SIZE) in rehash()
401 newCapacity = MAX_ARRAY_SIZE; in rehash()
406 threshold = (int)Math.min(newCapacity * loadFactor, MAX_ARRAY_SIZE + 1); in rehash()
1198 threshold = (int)Math.min(length * loadFactor, MAX_ARRAY_SIZE + 1); in readObject()
DArrayList.java258 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in ArrayList
272 if (newCapacity - MAX_ARRAY_SIZE > 0) in grow()
281 return (minCapacity > MAX_ARRAY_SIZE) ? in hugeCapacity()
283 MAX_ARRAY_SIZE; in hugeCapacity()
/libcore/ojluni/src/main/java/java/util/stream/
DNodes.java61 static final long MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in Nodes
167 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in builder()
205 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in intBuilder()
242 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in longBuilder()
279 return (exactSizeIfKnown >= 0 && exactSizeIfKnown < MAX_ARRAY_SIZE) in doubleBuilder()
322 if (size >= MAX_ARRAY_SIZE) in collect()
359 if (size >= MAX_ARRAY_SIZE) in collectInt()
397 if (size >= MAX_ARRAY_SIZE) in collectLong()
435 if (size >= MAX_ARRAY_SIZE) in collectDouble()
467 if (size >= MAX_ARRAY_SIZE) in flatten()
[all …]
DNode.java270 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/lang/
DAbstractStringBuilder.java135 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in AbstractStringBuilder
154 return (newCapacity <= 0 || MAX_ARRAY_SIZE - newCapacity < 0) in newCapacity()
163 return (minCapacity > MAX_ARRAY_SIZE) in hugeCapacity()
164 ? minCapacity : MAX_ARRAY_SIZE; in hugeCapacity()
/libcore/ojluni/src/main/java/java/util/concurrent/
DPriorityBlockingQueue.java140 private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; field in PriorityBlockingQueue
297 if (newCap - MAX_ARRAY_SIZE > 0) { // possible overflow in tryGrow()
299 if (minCap < 0 || minCap > MAX_ARRAY_SIZE) in tryGrow()
301 newCap = MAX_ARRAY_SIZE; in tryGrow()
/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/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