Home
last modified time | relevance | path

Searched refs:newSize (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
DPollArrayWrapper.java49 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()
DAbstractPollSelectorImpl.java146 int newSize = pollWrapper.totalChannels * 2; in implRegister() local
147 SelectionKeyImpl temp[] = new SelectionKeyImpl[newSize]; in implRegister()
153 pollWrapper.grow(newSize); in implRegister()
DFileChannelImpl.java353 public FileChannel truncate(long newSize) throws IOException { in truncate() argument
355 if (newSize < 0) in truncate()
386 if (newSize < size) { in truncate()
388 rv = nd.truncate(fd, newSize); in truncate()
395 if (p > newSize) in truncate()
396 p = newSize; in truncate()
DDatagramChannelImpl.java441 int newSize = Math.max(rem, 1); in receive() local
442 ByteBuffer bb = Util.getTemporaryDirectBuffer(newSize); in receive()
446 int n = receiveIntoNativeBuffer(fd, bb, newSize, 0); in receive()
/libcore/ojluni/src/main/java/java/util/
DComparableTimSort.java886 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 …]
DTimSort.java919 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 …]
DVector.java286 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()
1292 final int newSize = size - removeCount; in removeIf() local
1293 for (int i=0, j=0; (i < size) && (j < newSize); i++, j++) { in removeIf()
1297 for (int k=newSize; k < size; k++) { in removeIf()
1300 elementCount = newSize; in removeIf()
DArrayList.java657 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()
DScanner.java851 int newSize = buf.capacity() * 2; in makeSpace() local
852 CharBuffer newBuf = CharBuffer.allocate(newSize); in makeSpace()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java1375 int newSize = 0; in removeAll() local
1380 temp[newSize++] = element; in removeAll()
1382 if (newSize != n) { in removeAll()
1383 Object[] newElements = new Object[len - n + newSize]; in removeAll()
1385 System.arraycopy(temp, 0, newElements, lo, newSize); in removeAll()
1387 lo + newSize, len - hi); in removeAll()
1388 size = newSize; in removeAll()
1411 int newSize = 0; in retainAll() local
1416 temp[newSize++] = element; in retainAll()
1418 if (newSize != n) { in retainAll()
[all …]