Home
last modified time | relevance | path

Searched refs:numElements (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DArrayDeque.java127 private void allocateElements(int numElements) { in allocateElements() argument
131 if (numElements >= initialCapacity) { in allocateElements()
132 initialCapacity = numElements; in allocateElements()
180 public ArrayDeque(int numElements) { in ArrayDeque() argument
181 allocateElements(numElements); in ArrayDeque()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java940 protected final long acquirePermits(long numElements) { in acquirePermits() argument
944 assert numElements > 0; in acquirePermits() local
948 return unlimited ? numElements : 0; in acquirePermits()
949 grabbing = Math.min(remainingPermits, numElements); in acquirePermits()
954 return Math.max(numElements - grabbing, 0); in acquirePermits()