Home
last modified time | relevance | path

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

/libcore/benchmarks/src/benchmarks/regression/
DPriorityQueueBenchmark.java41 List<Integer> allElements = new ArrayList<Integer>(); in setUp() local
46 allElements.add(i); in setUp()
49 Collections.shuffle(allElements, random); in setUp()
52 pq.add(allElements.get(i)); in setUp()
53 seekElements.add(allElements.get(i)); in setUp()
57 pq.add(allElements.get(i)); in setUp()
61 seekElements.add(allElements.get(i)); in setUp()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTester.java274 ArrayList<T> allElements = new ArrayList<>(); in runDistinctTests() local
281 spliterator.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
284 split1.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
286 assertEquals(distinct.size(), allElements.size()); in runDistinctTests()
289 allElements.clear(); in runDistinctTests()
294 while (spliterator.tryAdvance(value -> { distinct.add(value); allElements.add(value); })) { in runDistinctTests()
299 while (split1.tryAdvance(value -> { distinct.add(value); allElements.add(value); })) { in runDistinctTests()
303 assertEquals(distinct.size(), allElements.size()); in runDistinctTests()