/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()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 43 assertEquals(0, empty.estimateSize()); in testEmptyIntSpliterator() 60 assertEquals(0, empty.estimateSize()); in testEmptyRefSpliterator() 73 assertEquals(0, empty.estimateSize()); in testEmptyLongSpliterator() 90 assertEquals(0, empty.estimateSize()); in testEmptyDoubleSpliterator() 109 assertEquals(8, sp.estimateSize()); in testSpliteratorObjectArray() 138 assertEquals(8, sp.estimateSize()); in testSpliteratorObjectArrayRange() 220 assertEquals(16, intSp.estimateSize()); in test_spliterator_int() 296 assertEquals(16, longSp.estimateSize()); in test_spliterator_long() 333 assertEquals(16, doubleSp.estimateSize()); in test_spliterator_double() 452 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()
|
D | SpliteratorTest.java | 56 public long estimateSize() { in estimateSize() method in SpliteratorTest.PrimitiveIntegerSpliterator
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Streams.java | 113 public long estimateSize() { in estimateSize() method in Streams.RangeIntSpliterator 132 long size = estimateSize(); in trySplit() 237 public long estimateSize() { in estimateSize() method in Streams.RangeLongSpliterator 255 long size = estimateSize(); in trySplit() 310 public long estimateSize() { in estimateSize() method in Streams.AbstractStreamBuilderImpl 705 unsized = aSpliterator.estimateSize() + bSpliterator.estimateSize() < 0; in ConcatSpliterator() 739 public long estimateSize() { 743 long size = aSpliterator.estimateSize() + bSpliterator.estimateSize(); 747 return bSpliterator.estimateSize();
|
D | StreamSpliterators.java | 219 public final long estimateSize() { 224 return exactSizeIfKnown == -1 ? spliterator.estimateSize() : exactSizeIfKnown; 533 public long estimateSize() { in estimateSize() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 534 return get().estimateSize(); in estimateSize() 650 long leftSplitFenceUnbounded = index + leftSplit.estimateSize(); in trySplit() 678 public long estimateSize() { in estimateSize() method in StreamSpliterators.AbstractWrappingSpliterator.SliceSpliterator 692 this(s, sliceOrigin, sliceFence, 0, Math.min(s.estimateSize(), sliceFence)); in OfRef() 736 if (index >= sliceOrigin && (index + s.estimateSize()) <= sliceFence) { in forEachRemaining() 761 this(s, sliceOrigin, sliceFence, 0, Math.min(s.estimateSize(), sliceFence)); in OfPrimitive() 798 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 | ForEachOps.java | 280 long sizeEstimate = rightSplit.estimateSize(), sizeThreshold; in compute() 307 sizeEstimate = rightSplit.estimateSize(); in compute() 378 this.targetSize = AbstractTask.suggestTargetSize(spliterator.estimateSize()); in ForEachOrderedTask() 406 while (rightSplit.estimateSize() > sizeThreshold && in doCompute()
|
D | AbstractTask.java | 304 long sizeEstimate = rs.estimateSize(); in compute() 325 sizeEstimate = rs.estimateSize(); in compute()
|
/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/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/ |
D | SpliteratorTestHelper.java | 473 assertEquals(beforeSize, split.estimateSize() + spliterator.estimateSize()); in splitSixDeepVisitor() 577 long parentEstimateSize = parentAndRightSplit.estimateSize(); in testSplitUntilNull() 591 if (parentEstimateSize != Long.MAX_VALUE && leftSplit.estimateSize() > 0 in testSplitUntilNull() 592 && parentAndRightSplit.estimateSize() > 0) { in testSplitUntilNull() 593 assertTrue(leftSplit.estimateSize() < parentEstimateSize, in testSplitUntilNull() 595 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() 596 assertTrue(parentAndRightSplit.estimateSize() < parentEstimateSize, in testSplitUntilNull() 598 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() 601 assertTrue(leftSplit.estimateSize() <= parentEstimateSize, in testSplitUntilNull() 603 leftSplit.estimateSize(), parentEstimateSize)); in testSplitUntilNull() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 897 public long estimateSize() { in estimateSize() method in Spliterators.EmptySpliterator 1009 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.ArraySpliterator 1092 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.IntArraySpliterator 1175 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.LongArraySpliterator 1258 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in Spliterators.DoubleArraySpliterator 1381 public long estimateSize() { in estimateSize() method in Spliterators.AbstractSpliterator 1491 public long estimateSize() { in estimateSize() method in Spliterators.AbstractIntSpliterator 1601 public long estimateSize() { in estimateSize() method in Spliterators.AbstractLongSpliterator 1711 public long estimateSize() { in estimateSize() method in Spliterators.AbstractDoubleSpliterator 1863 public long estimateSize() { in estimateSize() method in Spliterators.IteratorSpliterator [all …]
|
D | Spliterator.java | 401 long estimateSize(); in estimateSize() method 414 return (characteristics() & SIZED) == 0 ? -1L : estimateSize(); in getExactSizeIfKnown()
|
/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/lang/ |
D | StringUTF16.java | 1104 public long estimateSize() { 1219 public long estimateSize() { return (long)(fence - index); } 1304 public long estimateSize() { return (long)(fence - index); } 1391 public long estimateSize() { return (long)(fence - index); } 1507 public long estimateSize() { return (long)(fence - index); }
|
D | StringLatin1.java | 695 public long estimateSize() { in estimateSize() method in StringLatin1.LinesSpliterator 808 public long estimateSize() { return (long)(fence - index); } in estimateSize() method in StringLatin1.CharsSpliterator
|
/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
|