/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 | LongStreamTestScenario.java | 152 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
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 | 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 | LongStreamTestScenario.java | 149 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
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 | StreamTestScenario.java | 160 … | (sp.getExactSizeIfKnown() < 0 ? 0 : Spliterator.SIZED), true); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/ |
D | SpliteratorTestHelper.java | 251 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testForEach() 284 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testTryAdvance() 314 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTryAdvanceForEach() 345 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testMixedTraverseAndSplit() 412 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in testSplitOnce() 418 long s1Size = s1.getExactSizeIfKnown(); in testSplitOnce() 419 long s2Size = (s2 != null) ? s2.getExactSizeIfKnown() : 0; in testSplitOnce() 465 long beforeSize = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor() 480 long sizeIfKnown = spliterator.getExactSizeIfKnown(); in splitSixDeepVisitor() 581 long parentSize = parentAndRightSplit.getExactSizeIfKnown(); in testSplitUntilNull() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
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 | SpliteratorsTest.java | 44 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyIntSpliterator() 61 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyRefSpliterator() 74 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyLongSpliterator() 91 assertEquals(0, empty.getExactSizeIfKnown()); in testEmptyDoubleSpliterator() 110 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArray() 139 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArrayRange() 221 assertEquals(16, intSp.getExactSizeIfKnown()); in test_spliterator_int() 297 assertEquals(16, longSp.getExactSizeIfKnown()); in test_spliterator_long() 334 assertEquals(16, doubleSp.getExactSizeIfKnown()); in test_spliterator_double() 453 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliterator_Collection() [all …]
|
D | HashMapTest.java | 154 assertEquals(0, m.entrySet().spliterator().getExactSizeIfKnown()); in test_entrySet_subsizeEstimates()
|
D | CollectionsTest.java | 288 assertEquals(1, sp.getExactSizeIfKnown()); in testSingletonSpliterator()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamSpliteratorTest.java | 94 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 100 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 152 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 158 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 193 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 199 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 235 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 241 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining()
|
D | SliceOpTest.java | 363 assertEquals(parSpliterator.getExactSizeIfKnown(), 800); 370 assertEquals(parSpliterator.getExactSizeIfKnown(), 350); 373 assertEquals(prefix.getExactSizeIfKnown(), 450); 378 assertEquals(seqSpliterator.getExactSizeIfKnown(), 800);
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | AbstractPipeline.java | 474 long size = StreamOpFlag.SIZED.isKnown(flags) ? spliterator.getExactSizeIfKnown() : -1; in exactOutputSizeIfKnown() 512 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyInto() 530 wrappedSink.begin(spliterator.getExactSizeIfKnown()); in copyIntoWithCancel()
|
D | StreamSpliterators.java | 160 bufferSink.begin(spliterator.getExactSizeIfKnown()); in doAdvance() 220 long exactSizeIfKnown = getExactSizeIfKnown(); 228 public final long getExactSizeIfKnown() { 548 public long getExactSizeIfKnown() { in getExactSizeIfKnown() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 549 return get().getExactSizeIfKnown(); in getExactSizeIfKnown()
|
D | WhileOps.java | 720 public long getExactSizeIfKnown() {
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterator.java | 413 default long getExactSizeIfKnown() { in getExactSizeIfKnown() method
|
/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()
|