/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | SpinedBufferTest.java | 90 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testSpliterator() 99 long splitSizes = (split == null) ? 0 : split.getExactSizeIfKnown(); in testLastSplit() 100 long lastSplitSize = spliterator.getExactSizeIfKnown(); in testLastSplit() 165 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testIntSpliterator() 174 long splitSizes = (split == null) ? 0 : split.getExactSizeIfKnown(); in testIntLastSplit() 175 long lastSplitSize = spliterator.getExactSizeIfKnown(); in testIntLastSplit() 240 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testLongSpliterator() 249 long splitSizes = (split == null) ? 0 : split.getExactSizeIfKnown(); in testLongLastSplit() 250 long lastSplitSize = spliterator.getExactSizeIfKnown(); in testLongLastSplit() 316 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown()); in testDoubleSpliterator() [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 203 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testForEach() 233 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testTryAdvance() 263 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTryAdvanceForEach() 294 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTraverseAndSplit() 361 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testSplitOnce() 367 long s1Size = s1.getExactSizeIfKnown(); in testSplitOnce() 368 long s2Size = (s2 != null) ? s2.getExactSizeIfKnown() : 0; in testSplitOnce() 424 long beforeSize = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor() 441 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor() 542 long parentSize = parentAndRightSplit.getExactSizeIfKnown(); in testSplitUntilNull() [all …]
|
D | TestData.java | 102 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofSupplier() 132 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofIntSupplier() 163 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofLongSupplier() 194 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofDoubleSupplier()
|
D | IntStreamTestScenario.java | 152 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
D | DoubleStreamTestScenario.java | 153 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
D | LongStreamTestScenario.java | 152 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
D | StreamTestScenario.java | 163 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 203 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testForEach() 233 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testTryAdvance() 263 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTryAdvanceForEach() 294 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTraverseAndSplit() 361 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testSplitOnce() 367 long s1Size = s1.getExactSizeIfKnown(); in testSplitOnce() 368 long s2Size = (s2 != null) ? s2.getExactSizeIfKnown() : 0; in testSplitOnce() 424 long beforeSize = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor() 441 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor() 542 long parentSize = parentAndRightSplit.getExactSizeIfKnown(); in testSplitUntilNull() [all …]
|
D | TestData.java | 101 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofSupplier() 131 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofIntSupplier() 162 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofLongSupplier() 193 … s -> (int) s.get().spliterator().getExactSizeIfKnown()); in ofDoubleSupplier()
|
D | IntStreamTestScenario.java | 149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
D | DoubleStreamTestScenario.java | 149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
D | LongStreamTestScenario.java | 149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
D | StreamTestScenario.java | 160 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 40 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyIntSpliterator() 57 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyRefSpliterator() 70 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyLongSpliterator() 87 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyDoubleSpliterator() 106 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArray() 135 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArrayRange() 217 assertEquals(16, intSp.getExactSizeIfKnown()); in test_spliterator_int() 293 assertEquals(16, longSp.getExactSizeIfKnown()); in test_spliterator_long() 330 assertEquals(16, doubleSp.getExactSizeIfKnown()); in test_spliterator_double() 449 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliterator_Collection() [all …]
|
D | SpliteratorTester.java | 237 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSizedTests() 252 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSubSizedTests() 259 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSubSizedTests() 264 spliterator.getExactSizeIfKnown() + child.getExactSizeIfKnown()); in runSubSizedTests()
|
D | HashMapTest.java | 154 assertEquals(0, m.entrySet().spliterator().getExactSizeIfKnown()); in test_entrySet_subsizeEstimates()
|
D | CollectionsTest.java | 286 assertEquals(1, sp.getExactSizeIfKnown()); in testSingletonSpliterator()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamSpliteratorTest.java | 90 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 96 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 148 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 154 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 189 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 195 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 231 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 237 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | AbstractPipeline.java | 470 … return StreamOpFlag.SIZED.isKnown(getStreamAndOpFlags()) ? spliterator.getExactSizeIfKnown() : -1; in exactOutputSizeIfKnown() 484 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyInto() 501 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyIntoWithCancel()
|
D | StreamSpliterators.java | 160 bufferSink.begin(spliterator.getExactSizeIfKnown()); in doAdvance() 228 public final long getExactSizeIfKnown() { 231 ? spliterator.getExactSizeIfKnown() 550 public long getExactSizeIfKnown() { in getExactSizeIfKnown() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 551 return get().getExactSizeIfKnown(); in getExactSizeIfKnown()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterator.java | 407 default long getExactSizeIfKnown() { in getExactSizeIfKnown() method
|
D | Collections.java | 1664 public long getExactSizeIfKnown() { 1665 return s.getExactSizeIfKnown();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 4330 assertEquals(16, intSp.getExactSizeIfKnown()); in test_spliterator_int() 4407 assertEquals(16, longSp.getExactSizeIfKnown()); in test_spliterator_long() 4446 assertEquals(16, doubleSp.getExactSizeIfKnown()); in test_spliterator_double()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Collections.java | 3295 public long getExactSizeIfKnown() { in getExactSizeIfKnown() method in Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableEntrySetSpliterator
|