Home
last modified time | relevance | path

Searched refs:estimateSize (Results 1 – 25 of 52) sorted by relevance

123

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DRangeTest.java119 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 …]
DConcatOpTest.java133 assertEquals(sp.estimateSize(), Long.MAX_VALUE); in assertUnsized()
140 assertTrue(sp.estimateSize() < Long.MAX_VALUE); in assertSized()
DSliceOpTest.java219 public long estimateSize() { in testSkipLimitOpsWithNonSplittingSpliterator() method in SliceOpTest.NonSplittingNotSubsizedOrderedSpliterator
220 return s.estimateSize(); in testSkipLimitOpsWithNonSplittingSpliterator()
/libcore/ojluni/src/main/java/java/util/stream/
DStreams.java119 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();
DStreamSpliterators.java219 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 …]
DAbstractShortCircuitTask.java103 long sizeEstimate = rs.estimateSize(); in compute()
134 sizeEstimate = rs.estimateSize(); in compute()
DAbstractTask.java293 long sizeEstimate = rs.estimateSize(); in compute()
314 sizeEstimate = rs.estimateSize(); in compute()
DForEachOps.java281 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/
DSpliteratorTestHelper.java432 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/
DSpliteratorTestHelper.java432 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/
DSpliteratorsTest.java39 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 …]
DSpliteratorTester.java236 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()
DHashMapTest.java153 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/
DSpliterators.java853 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 …]
DSpliterator.java395 long estimateSize(); in estimateSize() method
408 return (characteristics() & SIZED) == 0 ? -1L : estimateSize(); in getExactSizeIfKnown()
DSplittableRandom.java849 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
DRandom.java1016 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/
DRandom.java229 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
DArrayDeque.java278 public long estimateSize() { in estimateSize() method in ArrayDeque.DeqSpliterator
DPriorityQueue.java257 public long estimateSize() { in estimateSize() method in PriorityQueue.PriorityQueueSpliterator
DVector.java380 public long estimateSize() { in estimateSize() method in Vector.VectorSpliterator
/libcore/ojluni/src/main/java/java/nio/
DCharBufferSpliterator.java88 public long estimateSize() { in estimateSize() method in CharBufferSpliterator
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java758 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/
DLinkedBlockingQueue.java252 public long estimateSize() { in estimateSize() method in LinkedBlockingQueue.LBQSpliterator
DPriorityBlockingQueue.java296 public long estimateSize() { in estimateSize() method in PriorityBlockingQueue.PBQSpliterator

123