/libcore/ojluni/src/main/java/java/io/ |
D | ByteArrayOutputStream.java | 102 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/ |
D | AbstractCollection.java | 208 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()
|
D | PriorityQueue.java | 284 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()
|
D | Vector.java | 255 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()
|
D | Hashtable.java | 193 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()
|
D | ArrayList.java | 258 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/ |
D | Nodes.java | 61 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 …]
|
D | Node.java | 270 if (size >= Nodes.MAX_ARRAY_SIZE) in asArray()
|
D | SpinedBuffer.java | 216 if (size >= Nodes.MAX_ARRAY_SIZE) in asArray() 562 if (size >= Nodes.MAX_ARRAY_SIZE) in asPrimitiveArray()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 135 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/ |
D | PriorityBlockingQueue.java | 140 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/ |
D | PriorityQueue.java | 184 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in PriorityQueue
|
D | Vector.java | 274 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in Vector
|
D | ArrayList.java | 229 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in ArrayList
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | AbstractStringBuilder.java | 268 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in AbstractStringBuilder
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | PriorityBlockingQueue.java | 205 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 field in PriorityBlockingQueue
|