Home
last modified time | relevance | path

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

/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java47 public ArrayDeque(int numElements) { in ArrayDeque() argument
55 private void allocateElements(int numElements) { in allocateElements() argument
/libcore/ojluni/src/main/java/java/util/
DArrayDeque.java128 private void allocateElements(int numElements) { in allocateElements() argument
132 if (numElements >= initialCapacity) { in allocateElements()
133 initialCapacity = numElements; in allocateElements()
187 public ArrayDeque(int numElements) { in ArrayDeque() argument
188 allocateElements(numElements); in ArrayDeque()
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java1079 int numElements = set.size(); in check_navigableSet() local
1084 for (int i = 0; i < numElements; i++) { in check_navigableSet()
1098 expectedElementsInOrder.subList(i, numElements)); in check_navigableSet()
1101 expectedElementsInOrder.subList(i, numElements)); in check_navigableSet()
1104 expectedElementsInOrder.subList(i + 1, numElements)); in check_navigableSet()
1112 if (numElements == 0) { in check_navigableSet()
1132 int numElements = set.size(); in check_orderedSet() local
1133 assertEquals(expectedElementsInOrder.size(), numElements); in check_orderedSet() local
1137 SpliteratorTester.runSizedTests(set, numElements); in check_orderedSet()
1140 SpliteratorTester.runSubSizedTests(set, numElements); in check_orderedSet()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrayDeque.annotated.java44 public ArrayDeque(int numElements) { throw new RuntimeException("Stub!"); } in ArrayDeque() argument
/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()