/libcore/ojluni/src/main/java/java/util/ |
H A D | ArrayDeque.java | 195 allocateElements(c.size()); 565 public int size() { method in class:ArrayDeque 781 * size of this deque. 816 int size = (tail - head) + (wrap ? elements.length : 0); 817 int firstLeg = size - (wrap ? tail : 0); 819 if (size > len) { 820 a = (T[]) Arrays.copyOfRange(elements, head, head + size, 824 if (size < len) 825 a[size] = null; 857 * @serialData The current size ({ [all...] |
H A D | Spliterators.java | 172 * {@code toIndex} is greater than the array size 234 * {@code toIndex} is greater than the array size 300 * {@code toIndex} is greater than the array size 366 * {@code toIndex} is greater than the array size 403 * reporting its {@link java.util.Collection#size()} as its initial size. 426 * as the source of elements, and with a given initially reported size. 436 * size is not equal to the actual number of elements in the source. 440 * @param size The number of elements in the source, to be reported as 449 long size, 448 spliterator(Iterator<? extends T> iterator, long size, int characteristics) argument 505 spliterator(PrimitiveIterator.OfInt iterator, long size, int characteristics) argument 562 spliterator(PrimitiveIterator.OfLong iterator, long size, int characteristics) argument 619 spliterator(PrimitiveIterator.OfDouble iterator, long size, int characteristics) argument 1728 IteratorSpliterator(Iterator<? extends T> iterator, long size, int characteristics) argument 1861 IntIteratorSpliterator(PrimitiveIterator.OfInt iterator, long size, int characteristics) argument 1955 LongIteratorSpliterator(PrimitiveIterator.OfLong iterator, long size, int characteristics) argument 2049 DoubleIteratorSpliterator(PrimitiveIterator.OfDouble iterator, long size, int characteristics) argument [all...] |
H A D | Vector.java | 35 * accessed using an integer index. However, the size of a 42 * size; it is usually larger because as components are added to the 43 * vector, the vector's storage increases in chunks the size of 109 * incremented when its size becomes greater than its capacity. If 153 * has size {@code 10} and its standard capacity increment is 197 * size. If the capacity of this vector is larger than its current 198 * size, then the capacity is changed to equal the size by replacing 219 * larger one. The size of the new data array will be the old size plu 314 public synchronized int size() { method in class:Vector [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | ReduceOps.java | 74 public void begin(long size) { 112 public void begin(long size) { 163 public void begin(long size) { 214 public void begin(long size) { 252 public void begin(long size) { 294 public void begin(long size) { 350 public void begin(long size) { 388 public void begin(long size) { 430 public void begin(long size) { 486 public void begin(long size) { [all...] |
H A D | SpinedBuffer.java | 67 * arrays are always the same size, and for any i <= spineIndex, 130 * Ensure that the buffer has at least capacity to hold the target size 212 long size = count(); 213 if (size >= Nodes.MAX_ARRAY_SIZE) 215 E[] result = arrayFactory.apply((int) size); 429 * arrays are always the same size, and for any i <= spineIndex, 472 /** Create a new array-of-array of the proper type and size */ 473 protected abstract T_ARR[] newArrayArray(int size); argument 475 /** Create a new array of the proper type and size */ 476 public abstract T_ARR newArray(int size); argument 747 newArrayArray(int size) argument 752 newArray(int size) argument 861 newArrayArray(int size) argument 866 newArray(int size) argument 977 newArrayArray(int size) argument 982 newArray(int size) argument [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | LinkedBlockingQueueTest.java | 57 * Returns a new queue of given size containing consecutive 68 assertEquals(n, q.size()); 161 assertEquals(SIZE, q.size() + q.remainingCapacity()); 166 assertEquals(SIZE, q.size() + q.remainingCapacity()); 274 assertEquals(SIZE, q.size()); 296 assertEquals(SIZE, q.size()); 545 assertEquals(0, q.size()); 582 assertEquals(SIZE - i, q.size()); 595 assertEquals(SIZE - i, q.size()); 709 assertEquals(0, q.size()); [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | InnerNodeImpl.java | 52 return insertChildAt(newChild, children.size()); 70 return (!children.isEmpty() ? children.get(children.size() - 1) : null); 74 if (parent == null || index + 1 >= parent.children.size()) { 82 return children.size() != 0; 169 for (int i = fromIndex; i < children.size(); i++) {
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | GroupByOpTest.java | 71 assertEquals(2, m.keySet().size()); 87 assertEquals(2, result.keySet().size()); 111 int uniqueSize = data.into(new HashSet<>()).size(); 115 new MapperData<>(mZero, Math.min(1, data.size())), 131 // - Total number of values equals size of data 147 assertEquals(result.keySet().size(), md.expectedSize);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestDocumentBuilderFactory.java | 120 new DocumentBuilderSetting[mergedSettings.size()]; 121 for (int i = 0; i < mergedSettings.size(); i++) { 185 DocumentBuilderSetting[] settings = new DocumentBuilderSetting[list.size()];
|
H A D | DOMTestFramework.java | 172 int size(Collection collection); method in interface:DOMTestFramework 174 int size(NamedNodeMap collection); method in interface:DOMTestFramework 176 int size(NodeList collection); method in interface:DOMTestFramework
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | SelectorTest.java | 111 assertEquals(1,keySet.size()); 162 assertEquals(1, selectedKeys.size()); 179 assertEquals(0, selectedKeys.size()); 274 // time if keys.size() == 0 (initial state of selector). 385 assertEquals(0, selector.selectedKeys().size()); 402 assertEquals(1, selectedKeys.size()); 419 assertEquals(1, selectedKeys.size()); 449 assertEquals(0, selector.selectedKeys().size()); 477 assertEquals(1, selectedKeys.size()); 511 assertEquals(1, selectedKeys.size()); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | Support_Format.java | 60 assertEquals("size mismatch\n" + 63 " results=" + results, expectedResults.size(), results.size()); 64 for (int i = 0; i < results.size(); ++i) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
H A D | JarEntryTest.java | 92 assertEquals("Wrong entry constructed--wrong size", 311, jarEntry 177 if (1 == certs_bob.size()) { 182 assertEquals(2, certs_bob.size()); 183 assertEquals(1, certs_alice.size());
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ThreadTest.java | 163 visibleTraces.set(Thread.getAllStackTraces().size()); 186 private Thread newThread(final AtomicInteger finalizedThreadsCount, final int size) { argument 188 long[] memoryPressure = new long[size];
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | BufferedInputStream.java | 58 * a different size. 180 * with the specified buffer size, 183 * buffer array of length <code>size</code> 187 * @param size the buffer size. 188 * @exception IllegalArgumentException if size <= 0. 190 public BufferedInputStream(InputStream in, int size) { argument 192 if (size <= 0) { 193 throw new IllegalArgumentException("Buffer size <= 0"); 195 buf = new byte[size]; [all...] |
/libcore/ojluni/src/main/java/sun/net/ |
H A D | ProgressMonitor.java | 114 if (progressListenerList.size() > 0) 151 if (progressListenerList.size() > 0) 183 if (progressListenerList.size() > 0) 254 // 8K - same as default I/O buffer size
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | NativeObject.java | 46 // may be smaller than the base address due to page-size rounding 73 protected NativeObject(int size, boolean pageAligned) { argument 75 this.allocationAddress = unsafe.allocateMemory(size); 79 long a = unsafe.allocateMemory(size + ps); 117 * The offset of the address to be read. Note that the size of an 133 throw new InternalError("Address size not supported"); 145 * size of an address is implementation-dependent. 159 throw new InternalError("Address size not supported"); 356 * Returns the native architecture's address size in bytes. 358 * @return The address size o [all...] |
H A D | ServerSocketAdaptor.java | 196 public void setReceiveBufferSize(int size) throws SocketException { argument 197 // size 0 valid for ServerSocketChannel, invalid for ServerSocket 198 if (size <= 0) 199 throw new IllegalArgumentException("size cannot be 0 or negative"); 201 ssc.setOption(StandardSocketOptions.SO_RCVBUF, size);
|
H A D | DatagramSocketAdaptor.java | 312 public void setSendBufferSize(int size) throws SocketException { argument 313 if (size <= 0) 314 throw new IllegalArgumentException("Invalid send size"); 315 setIntOption(StandardSocketOptions.SO_SNDBUF, size); 322 public void setReceiveBufferSize(int size) throws SocketException { argument 323 if (size <= 0) 324 throw new IllegalArgumentException("Invalid receive size"); 325 setIntOption(StandardSocketOptions.SO_RCVBUF, size);
|
H A D | SocketAdaptor.java | 391 public void setSendBufferSize(int size) throws SocketException { argument 392 // size 0 valid for SocketChannel, invalid for Socket 393 if (size <= 0) 394 throw new IllegalArgumentException("Invalid send size"); 395 setIntOption(StandardSocketOptions.SO_SNDBUF, size); 402 public void setReceiveBufferSize(int size) throws SocketException { argument 403 // size 0 valid for SocketChannel, invalid for Socket 404 if (size <= 0) 405 throw new IllegalArgumentException("Invalid receive size"); 406 setIntOption(StandardSocketOptions.SO_RCVBUF, size); [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ManifestEntryVerifier.java | 162 for (int i=0; i < digests.size(); i++) { 173 for (int i=0; i < digests.size(); i++) { 205 for (int i=0; i < digests.size(); i++) {
|
H A D | DisabledAlgorithmConstraints.java | 366 * Key size constraint. 401 private int minSize; // the minimal available key size 402 private int maxSize; // the maximal available key size 407 case EQ: // an unavailable key size 441 int size = KeyUtil.getKeySize(key); 443 if (size == 0) { 444 return true; // we don't allow any key of size 0. 445 } else if (size > 0) { 446 return ((size < minSize) || (size > maxSiz [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | SpliteratorTester.java | 36 ArrayList<T> recorder = new ArrayList<T>(expectedElements.size()); 54 ArrayList<T> recorder = new ArrayList<T>(expectedElements.size()); 205 assertEquals(distinct.size(), allElements.size()); 219 assertEquals(distinct.size(), allElements.size());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FilterOutputStreamTest.java | 57 assertEquals("Bytes not written after flush", 500, bos.size()); 69 assertEquals("Bytes not written after flush", 500, bos.size());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | GZIPOutputStreamTest.java | 36 TestGZIPOutputStream(OutputStream out, int size) throws IOException { argument 37 super(out, size);
|