/libcore/ojluni/src/main/java/java/io/ |
D | ByteArrayOutputStream.java | 104 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/ |
D | SortedOps.java | 346 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()
|
D | Nodes.java | 61 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 …]
|
D | Node.java | 274 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/util/ |
D | Hashtable.java | 198 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()
|
D | ArrayDeque.java | 132 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/ |
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/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 188 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/ |
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
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 520 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()
|