/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | RangeTest.java | 119 assertEquals(s.estimateSize(), 1L << 32); in testIntRange() 246 assertEquals(s.estimateSize(), Long.MAX_VALUE); in testLongLongRange() 257 assertTrue(s.estimateSize() == Long.MAX_VALUE); in testLongLongRange() 258 assertTrue(s1.estimateSize() < Long.MAX_VALUE); in testLongLongRange() 259 assertTrue(s2.estimateSize() < Long.MAX_VALUE); in testLongLongRange() 261 assertEquals(s.estimateSize() + s1.estimateSize() + s2.estimateSize(), in testLongLongRange() 272 assertEquals(s.estimateSize(), Long.MAX_VALUE); in testLongLongRange() 279 assertTrue(s.estimateSize() < Long.MAX_VALUE); in testLongLongRange() 280 assertTrue(s1.estimateSize() < Long.MAX_VALUE); in testLongLongRange() 282 assertEquals(s.estimateSize() + s1.estimateSize(), end - start); in testLongLongRange() [all …]
|
D | ConcatOpTest.java | 133 assertEquals(sp.estimateSize(), Long.MAX_VALUE); in assertUnsized() 140 assertTrue(sp.estimateSize() < Long.MAX_VALUE); in assertSized()
|
D | SliceOpTest.java | 219 public long estimateSize() { in testSkipLimitOpsWithNonSplittingSpliterator() method in SliceOpTest.NonSplittingNotSubsizedOrderedSpliterator 220 return s.estimateSize(); in testSkipLimitOpsWithNonSplittingSpliterator()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Streams.java | 119 public long estimateSize() { in estimateSize() method in Streams.RangeIntSpliterator 138 long size = estimateSize(); in trySplit() 244 public long estimateSize() { in estimateSize() method in Streams.RangeLongSpliterator 262 long size = estimateSize(); in trySplit() 318 public long estimateSize() { in estimateSize() method in Streams.AbstractStreamBuilderImpl 713 unsized = aSpliterator.estimateSize() + bSpliterator.estimateSize() < 0; in ConcatSpliterator() 747 public long estimateSize() { 751 long size = aSpliterator.estimateSize() + bSpliterator.estimateSize(); 755 return bSpliterator.estimateSize();
|
D | StreamSpliterators.java | 219 public final long estimateSize() { 224 return spliterator.estimateSize(); 535 public long estimateSize() { in estimateSize() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 536 return get().estimateSize(); in estimateSize() 652 long leftSplitFenceUnbounded = index + leftSplit.estimateSize(); in trySplit() 680 public long estimateSize() { in estimateSize() method in StreamSpliterators.AbstractWrappingSpliterator.SliceSpliterator 694 this(s, sliceOrigin, sliceFence, 0, Math.min(s.estimateSize(), sliceFence)); in OfRef() 738 if (index >= sliceOrigin && (index + s.estimateSize()) <= sliceFence) { in forEachRemaining() 763 this(s, sliceOrigin, sliceFence, 0, Math.min(s.estimateSize(), sliceFence)); in OfPrimitive() 800 if (index >= sliceOrigin && (index + s.estimateSize()) <= sliceFence) { in forEachRemaining() [all …]
|
D | AbstractShortCircuitTask.java | 103 long sizeEstimate = rs.estimateSize(); in compute() 134 sizeEstimate = rs.estimateSize(); in compute()
|
D | AbstractTask.java | 293 long sizeEstimate = rs.estimateSize(); in compute() 314 sizeEstimate = rs.estimateSize(); in compute()
|
D | ForEachOps.java | 281 long sizeEstimate = rightSplit.estimateSize(), sizeThreshold; in compute() 308 sizeEstimate = rightSplit.estimateSize(); in compute() 379 this.targetSize = AbstractTask.suggestTargetSize(spliterator.estimateSize()); in ForEachOrderedTask() 407 while (rightSplit.estimateSize() > sizeThreshold && in doCompute()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 432 assertEquals(beforeSize, split.estimateSize() + spliterator.estimateSize()); in splitSixDeepVisitor() 538 long parentEstimateSize = parentAndRightSplit.estimateSize(); in testSplitUntilNull() 552 if (parentEstimateSize != Long.MAX_VALUE && leftSplit.estimateSize() > 0 in testSplitUntilNull() 553 && parentAndRightSplit.estimateSize() > 0) { in testSplitUntilNull() 554 assertTrue(leftSplit.estimateSize() < parentEstimateSize, in testSplitUntilNull() 556 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() 557 assertTrue(parentAndRightSplit.estimateSize() < parentEstimateSize, in testSplitUntilNull() 559 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() 562 assertTrue(leftSplit.estimateSize() <= parentEstimateSize, in testSplitUntilNull() 564 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 432 assertEquals(beforeSize, split.estimateSize() + spliterator.estimateSize()); in splitSixDeepVisitor() 538 long parentEstimateSize = parentAndRightSplit.estimateSize(); in testSplitUntilNull() 552 if (parentEstimateSize != Long.MAX_VALUE && leftSplit.estimateSize() > 0 in testSplitUntilNull() 553 && parentAndRightSplit.estimateSize() > 0) { in testSplitUntilNull() 554 assertTrue(leftSplit.estimateSize() < parentEstimateSize, in testSplitUntilNull() 556 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() 557 assertTrue(parentAndRightSplit.estimateSize() < parentEstimateSize, in testSplitUntilNull() 559 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() 562 assertTrue(leftSplit.estimateSize() <= parentEstimateSize, in testSplitUntilNull() 564 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 39 assertEquals(0, empty.estimateSize()); in testEmptyIntSpliterator() 56 assertEquals(0, empty.estimateSize()); in testEmptyRefSpliterator() 69 assertEquals(0, empty.estimateSize()); in testEmptyLongSpliterator() 86 assertEquals(0, empty.estimateSize()); in testEmptyDoubleSpliterator() 105 assertEquals(8, sp.estimateSize()); in testSpliteratorObjectArray() 134 assertEquals(8, sp.estimateSize()); in testSpliteratorObjectArrayRange() 216 assertEquals(16, intSp.estimateSize()); in test_spliterator_int() 292 assertEquals(16, longSp.estimateSize()); in test_spliterator_long() 329 assertEquals(16, doubleSp.estimateSize()); in test_spliterator_double() 448 assertEquals(8, sp.estimateSize()); in testSpliterator_Collection() [all …]
|
D | SpliteratorTester.java | 236 assertEquals(expectedSize, spliterator.estimateSize()); in runSizedTests() 251 assertEquals(expectedSize, spliterator.estimateSize()); in runSubSizedTests() 258 assertEquals(expectedSize, spliterator.estimateSize()); in runSubSizedTests() 262 assertEquals(expectedSize, spliterator.estimateSize() + child.estimateSize()); in runSubSizedTests()
|
D | HashMapTest.java | 153 assertEquals(0, m.entrySet().spliterator().estimateSize()); in test_entrySet_subsizeEstimates() 222 assertEquals(expectedEstimate, spliterator.estimateSize()); in assertSubsizeEstimate() 223 assertEquals(expectedEstimate, child.estimateSize()); in assertSubsizeEstimate()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 853 public long estimateSize() { in estimateSize() method in Spliterators.EmptySpliterator 965 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.ArraySpliterator 1048 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.IntArraySpliterator 1131 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.LongArraySpliterator 1214 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.DoubleArraySpliterator 1337 public long estimateSize() { in estimateSize() method in Spliterators.AbstractSpliterator 1447 public long estimateSize() { in estimateSize() method in Spliterators.AbstractIntSpliterator 1557 public long estimateSize() { in estimateSize() method in Spliterators.AbstractLongSpliterator 1667 public long estimateSize() { in estimateSize() method in Spliterators.AbstractDoubleSpliterator 1819 public long estimateSize() { in estimateSize() method in Spliterators.IteratorSpliterator [all …]
|
D | Spliterator.java | 395 long estimateSize(); in estimateSize() method 408 return (characteristics() & SIZED) == 0 ? -1L : estimateSize(); in getExactSizeIfKnown()
|
D | SplittableRandom.java | 849 public long estimateSize() { in estimateSize() method in SplittableRandom.RandomIntsSpliterator 905 public long estimateSize() { in estimateSize() method in SplittableRandom.RandomLongsSpliterator 962 public long estimateSize() { in estimateSize() method in SplittableRandom.RandomDoublesSpliterator
|
D | Random.java | 1016 public long estimateSize() { in estimateSize() method in Random.RandomIntsSpliterator 1071 public long estimateSize() { in estimateSize() method in Random.RandomLongsSpliterator 1127 public long estimateSize() { in estimateSize() method in Random.RandomDoublesSpliterator
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 229 public long estimateSize() { in estimateSize() method in Random.RandomDoublesSpliterator 283 public long estimateSize() { in estimateSize() method in Random.RandomIntsSpliterator 338 public long estimateSize() { in estimateSize() method in Random.RandomLongsSpliterator
|
D | ArrayDeque.java | 278 public long estimateSize() { in estimateSize() method in ArrayDeque.DeqSpliterator
|
D | PriorityQueue.java | 257 public long estimateSize() { in estimateSize() method in PriorityQueue.PriorityQueueSpliterator
|
D | Vector.java | 380 public long estimateSize() { in estimateSize() method in Vector.VectorSpliterator
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBufferSpliterator.java | 88 public long estimateSize() { in estimateSize() method in CharBufferSpliterator
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 758 public long estimateSize() { in estimateSize() method in ThreadLocalRandom.RandomIntsSpliterator 813 public long estimateSize() { in estimateSize() method in ThreadLocalRandom.RandomLongsSpliterator 869 public long estimateSize() { in estimateSize() method in ThreadLocalRandom.RandomDoublesSpliterator
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | LinkedBlockingQueue.java | 252 public long estimateSize() { in estimateSize() method in LinkedBlockingQueue.LBQSpliterator
|
D | PriorityBlockingQueue.java | 296 public long estimateSize() { in estimateSize() method in PriorityBlockingQueue.PBQSpliterator
|