/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | PollArrayWrapper.java | 49 PollArrayWrapper(int newSize) { in PollArrayWrapper() argument 50 newSize = (newSize + 1) * SIZE_POLLFD; in PollArrayWrapper() 51 pollArray = new AllocatedNativeObject(newSize, false); in PollArrayWrapper() 100 void grow(int newSize) { in grow() argument 102 PollArrayWrapper temp = new PollArrayWrapper(newSize); in grow()
|
D | AbstractPollSelectorImpl.java | 148 int newSize = pollWrapper.totalChannels * 2; in implRegister() local 149 SelectionKeyImpl temp[] = new SelectionKeyImpl[newSize]; in implRegister() 155 pollWrapper.grow(newSize); in implRegister()
|
D | FileChannelImpl.java | 370 public FileChannel truncate(long newSize) throws IOException { in truncate() argument 372 if (newSize < 0) in truncate() 404 if (newSize < size) { in truncate() 406 rv = nd.truncate(fd, newSize); in truncate() 413 if (p > newSize) in truncate() 414 p = newSize; in truncate()
|
D | DatagramChannelImpl.java | 435 int newSize = Math.max(rem, 1); in receive() local 436 ByteBuffer bb = Util.getTemporaryDirectBuffer(newSize); in receive() 441 int n = receiveIntoNativeBuffer(fd, bb, newSize, 0); in receive()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ComparableTimSort.java | 886 int newSize = minCapacity; 887 newSize |= newSize >> 1; 888 newSize |= newSize >> 2; 889 newSize |= newSize >> 4; 890 newSize |= newSize >> 8; 891 newSize |= newSize >> 16; 892 newSize++; 894 if (newSize < 0) // Not bloody likely! 895 newSize = minCapacity; 897 newSize = Math.min(newSize, a.length >>> 1); [all …]
|
D | TimSort.java | 919 int newSize = minCapacity; 920 newSize |= newSize >> 1; 921 newSize |= newSize >> 2; 922 newSize |= newSize >> 4; 923 newSize |= newSize >> 8; 924 newSize |= newSize >> 16; 925 newSize++; 927 if (newSize < 0) // Not bloody likely! 928 newSize = minCapacity; 930 newSize = Math.min(newSize, a.length >>> 1); [all …]
|
D | Vector.java | 286 public synchronized void setSize(int newSize) { in setSize() argument 288 if (newSize > elementCount) { in setSize() 289 ensureCapacityHelper(newSize); in setSize() 291 for (int i = newSize ; i < elementCount ; i++) { in setSize() 295 elementCount = newSize; in setSize() 1300 final int newSize = size - removeCount; in removeIf() local 1301 for (int i=0, j=0; (i < size) && (j < newSize); i++, j++) { in removeIf() 1305 for (int k=newSize; k < size; k++) { in removeIf() 1308 elementCount = newSize; in removeIf()
|
D | ArrayList.java | 657 int newSize = size - (toIndex-fromIndex); in removeRange() local 658 for (int i = newSize; i < size; i++) { in removeRange() 661 size = newSize; in removeRange() 1433 final int newSize = size - removeCount; in removeIf() local 1434 for (int i=0, j=0; (i < size) && (j < newSize); i++, j++) { in removeIf() 1438 for (int k=newSize; k < size; k++) { in removeIf() 1441 this.size = newSize; in removeIf()
|
D | Scanner.java | 856 int newSize = buf.capacity() * 2; in makeSpace() local 857 CharBuffer newBuf = CharBuffer.allocate(newSize); in makeSpace()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 1370 int newSize = 0; in removeAll() local 1375 temp[newSize++] = element; in removeAll() 1377 if (newSize != n) { in removeAll() 1378 Object[] newElements = new Object[len - n + newSize]; in removeAll() 1380 System.arraycopy(temp, 0, newElements, lo, newSize); in removeAll() 1382 lo + newSize, len - hi); in removeAll() 1383 size = newSize; in removeAll() 1406 int newSize = 0; in retainAll() local 1411 temp[newSize++] = element; in retainAll() 1413 if (newSize != n) { in retainAll() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Vector.java | 77 public synchronized void setSize(int newSize) { in setSize() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Vector.annotated.java | 47 public synchronized void setSize(int newSize) { throw new RuntimeException("Stub!"); } in setSize() argument
|
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/ |
D | FileChannelImpl.java | 104 public java.nio.channels.FileChannel truncate(long newSize) throws java.io.IOException { in truncate() argument
|